<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20345/more-than-1-packet-per-ci-with-s132-v3-0-0</link><description>Hello! I am using a nRF52832 device, along with SDK 12.1.0 and S132 v3.0.0. Data is being sent data through BLE and received on an Android phone. 
 After some tests I noticed that I was not achieving the expected data throughput on the BLE connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Mar 2017 11:52:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20345/more-than-1-packet-per-ci-with-s132-v3-0-0" /><item><title>RE: More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/thread/79296?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2017 11:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e916e284-9ff1-4e96-87c0-3616f7250335</guid><dc:creator>AmiguelS</dc:creator><description>&lt;p&gt;Thank you all for your answers. As it turns out, the reason I was not achieving the expected result was due to very high Wi-Fi interference. The implementation presented on the question is working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/thread/79290?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2017 18:50:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8455c44f-7597-45f2-a343-1812bb74a3ce</guid><dc:creator>AmiguelS</dc:creator><description>&lt;p&gt;@kristin It is printing 1 packet added.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/thread/79293?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 10:39:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88e285f5-521c-4d54-b902-59df183ef1f3</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Ah, yes, that&amp;#39;s right.&lt;/p&gt;
&lt;p&gt;In the while-loop for sending packets, could you add a counter that you print to a terminal, containing the number of packets added to the TX buffer before the error code  BLE_ERROR_NO_TX_PACKETS is returned?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/thread/79292?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2017 13:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:213de1f7-c61f-4f24-a13f-9a098dbd5d32</guid><dc:creator>AmiguelS</dc:creator><description>&lt;p&gt;@kristin The idea is exactly to send new packets as soon as possible. So, when a packet transmission is finished (&lt;code&gt;TX_COMPLETE&lt;/code&gt; received), a new packets is queued, with  &lt;code&gt;send()&lt;/code&gt;. And in &lt;code&gt;send()&lt;/code&gt;, if &lt;code&gt;NO_TX_PACKETS&lt;/code&gt; is returned and &lt;code&gt;waiting&lt;/code&gt; is set, the function will return, it will not clear &lt;code&gt;waiting&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/thread/79291?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2017 12:20:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40283ef4-48eb-4c0f-a405-9a969a09b38f</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I suspect that the problem is in &lt;code&gt;case BLE_EVT_TX_COMPLETE:&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The code snippet below will send more packets when &amp;quot;waiting&amp;quot; is &amp;#39;true&amp;#39; (&amp;#39;1&amp;#39;).&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if(waiting)
            send();
        break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In send(), &amp;quot;waiting&amp;quot; is set to &amp;#39;0&amp;#39; before exiting the function. Therefore, &amp;quot;waiting&amp;quot; will most likely be &amp;#39;0&amp;#39; in the event BLE_EVT_TX_COMPLETE.&lt;/p&gt;
&lt;p&gt;My suggestion is to try the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if(waiting)
{
     waiting = 0;
     send();
}
break;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/thread/79295?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2017 10:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:658451cf-1287-405e-833e-f875d880caf7</guid><dc:creator>AmiguelS</dc:creator><description>&lt;p&gt;@kristin I have edited the original question and added a code sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/thread/79289?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2017 07:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:173fd742-0176-499c-a950-5de3409e9ebd</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Okay, I see. What does your code for sending the notifications look like?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/thread/79294?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 17:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:822fecfa-3be1-4143-ba11-f16e6a450c56</guid><dc:creator>AmiguelS</dc:creator><description>&lt;p&gt;As per your suggestion, I used a nRF51 dongle connected to a PC, along with nRF Connect.
Still, I only received 1 &lt;code&gt;TX_COMPLETE&lt;/code&gt; event for each connection interval, with &lt;code&gt;p_ble_evt-&amp;gt;evt.common_evt.params.tx_complete.count = 1&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/thread/79288?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 13:26:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b107a9e5-62a9-4eb8-98a5-1a455d222ac9</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;@AmiguelS: Do you have a nRF51/2-DK or a nRF51-Dongle that you could use as central? If so,could you use nRF Connect (PC) as a central and compare with the results from the phone, check if there is still only one packet per connection interval?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/thread/79298?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 11:20:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9021a787-5653-418a-8914-e262fecc853c</guid><dc:creator>AmiguelS</dc:creator><description>&lt;p&gt;@endnode Hi! Thanks for the reply. My central device (Android phone) only receives notifications. I have used this same phone, along with an nRF51 device running S110 (SDK 6) and have been able to receive 4 notification packets per connection interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: More than 1 packet per CI with S132 V3.0.0</title><link>https://devzone.nordicsemi.com/thread/79297?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 10:55:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:078cb3ec-a70f-440a-9b7e-b7bd1898d4a7</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hello Amiguel,&lt;/p&gt;
&lt;p&gt;But it depends on both sides of the link! Are you sure that your GAP Central device is able to send multiple PDUs/MTUs within one connection interval? Have you tested it with some SDK example which works (like Nordic BLE UART example and their mobile application)?&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>