<?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>only 4 packets of data can be sent out at a time (as a slave)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51898/only-4-packets-of-data-can-be-sent-out-at-a-time-as-a-slave</link><description>I am now experiencing such a problem. I packaged 20 packets of data, each packet of data is 13 bytes, and then I want to send it out, but only 4 packets of data can be sent out at a time (as a slave), when I use When nrf_connect (as host) software receives</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Sep 2019 10:56:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51898/only-4-packets-of-data-can-be-sent-out-at-a-time-as-a-slave" /><item><title>RE: only 4 packets of data can be sent out at a time (as a slave)</title><link>https://devzone.nordicsemi.com/thread/209391?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2019 10:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c120448c-b7e0-4778-9c6e-83e85e635ad3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NRF_ERROR_RESOURCES&amp;nbsp;means you have run out of tx buffers in the Softdevice and that you need to wait for &amp;quot;tx complete&amp;quot; event before queueing more packets as illustrated by the message sequence chart:&amp;nbsp;&lt;a title="GATTS Handle Value Notification" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___b_l_e___g_a_t_t_s___h_v_n___m_s_c.html?cp=3_4_2_5_2_4_3_5"&gt;GATTS Handle Value Notification&lt;/a&gt;. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You may increase the notification queue size and event length through sd_ble_cfg_set() in ble_stack_init(). The configuration option in sdk_config.h I mentioned earlier is not available in this SDK version. But n&lt;/span&gt;&lt;span&gt;ote that the number of packets you can send per event&amp;nbsp;varies between phones and what chipset they use. We have tested a selection of phones internally for this, see section 4.5 of the pdf uploaded &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/what-to-keep-in-mind-when-developing-your-ble-andr"&gt;here &lt;/a&gt;to see the results.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: only 4 packets of data can be sent out at a time (as a slave)</title><link>https://devzone.nordicsemi.com/thread/209108?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 08:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2791d96-3ef5-41ab-96e3-49b4e94a2674</guid><dc:creator>Fridedrich</dc:creator><description>&lt;p&gt;hi vidar,the nRF connect on Android and sdk 13.1,&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span title=""&gt;Today, I found that when I sent the sd_ble_gatts_hvx function to send data, when I sent it to the 5th package, I returned the NRF_ERROR_RESOURCES status. Do you know what the reason is? I look forward to your reply, thank you.&lt;/span&gt;&lt;/span&gt;&lt;span class="tlid-translation-gender-indicator translation-gender-indicator"&gt;&lt;/span&gt;&lt;span class="tlid-trans-verified-button trans-verified-button" style="display:none;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: only 4 packets of data can be sent out at a time (as a slave)</title><link>https://devzone.nordicsemi.com/thread/209101?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 08:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3294863-5eb3-4141-86b2-c44547ec6fe8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;nRF connect on Android, iOS or PC? Also, which SDK version is this project based on?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: only 4 packets of data can be sent out at a time (as a slave)</title><link>https://devzone.nordicsemi.com/thread/209041?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 00:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a9d401d-6610-41f3-831d-9733ad6033ee</guid><dc:creator>Fridedrich</dc:creator><description>&lt;div class="result-shield-container tlid-copy-target"&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span title=""&gt;Thank you for your reply. I didn&amp;#39;t find NRF_SDH_BLE_GAP_EVENT_LENGTH in sdk_config.h. Also, I am using the nrf_connect tool. Can you give me more suggestions? Thank you.&lt;/span&gt;&lt;/span&gt;&lt;span class="tlid-translation-gender-indicator translation-gender-indicator"&gt;&lt;/span&gt;&lt;span class="tlid-trans-verified-button trans-verified-button" style="display:none;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: only 4 packets of data can be sent out at a time (as a slave)</title><link>https://devzone.nordicsemi.com/thread/208899?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 11:35:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7a07a50-7777-4311-a8df-e904224ed96a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The BLE event length and the utilization of the notification buffer determine how many packets you can send per connection event. Have you tried to increase the&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH symbol in sdk_config.h? Around &amp;#39;12&amp;#39; should be sufficient to maximize throughput with default MTU/DLE. Also, note that the number of packets may be limited by the GAP central, so you may get more packets through if you test with nRF connect on Android or iOS.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>