<?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>how many packets per connection interval 52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32630/how-many-packets-per-connection-interval-52832</link><description>I&amp;#39;m using 52832/S132 V2/SDK11. For the test I only send notification to central just to see how many I can send in each interval. I keep calling sd_ble_gatts_hvx() until I get BLE_ERROR_NO_TX_PACKETS. 
 What I found is if I send only 4 bytes each time</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Mar 2018 23:15:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32630/how-many-packets-per-connection-interval-52832" /><item><title>RE: how many packets per connection interval 52832</title><link>https://devzone.nordicsemi.com/thread/126033?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 23:15:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11142845-d6b2-4d23-baf7-7d3ab605ae45</guid><dc:creator>bluebeam</dc:creator><description>&lt;p&gt;I didn&amp;#39;t handle the TX_COMPLETE message since it&amp;#39;s just testing code. Basically I was calling the function in a while loop until I get the error BLE_ERROR_NO_TX_PACKETS:&lt;/p&gt;
&lt;p&gt;do{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... ...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; err_code = sd_ble_gatts_hvx(m_conn_state.conn_handle, &amp;amp;hvx_params);&lt;/p&gt;
&lt;p&gt;}while(err_code == NRF_SUCCESS);&lt;/p&gt;
&lt;p&gt;I just wan to understand how the TX buffering works in soft device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how many packets per connection interval 52832</title><link>https://devzone.nordicsemi.com/thread/125779?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 15:18:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31e7aef8-a488-489c-9b0a-a34125c48f65</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;You also have to handle the TX messages, unless your BLE stuff runs in an interrupt context. The internal buffers are IMHO only free&amp;#39;d when the corresponding TX message was processed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how many packets per connection interval 52832</title><link>https://devzone.nordicsemi.com/thread/125643?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 06:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:418c1298-7cde-47a2-8acc-d5e7a1bbe759</guid><dc:creator>bluebeam</dc:creator><description>&lt;p&gt;That&amp;#39;s just my test code. So I did it in a while loop. That&amp;#39;s as fast as application code can run to feed the buffer. I didn&amp;#39;t use any data buffer of my own.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how many packets per connection interval 52832</title><link>https://devzone.nordicsemi.com/thread/125494?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 10:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11178c9a-4bfc-459c-a777-9b442ae8bc4f</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Looking at my own performance numbers, the NRF52832 seems to be fast enough that you can queue new TX packets &lt;em&gt;during&lt;/em&gt; a connection event. But that depends a lot on how fast your feeding code is - I used a rather large (KB sized) FIFO.&lt;/p&gt;
&lt;p&gt;Note that the &lt;em&gt;central&lt;/em&gt; may also limit the amount of data transferred in one interval. Note that &lt;a href="https://developer.apple.com/library/content/qa/qa1931/_index.html" rel="noopener noreferrer" target="_blank"&gt;Apple&lt;/a&gt; says the connection interval should be 30ms.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>