<?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>sd_ble_gatts_hvx  returns NRF ERROR RESOURCES while transferring bytes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83204/sd_ble_gatts_hvx-returns-nrf-error-resources-while-transferring-bytes</link><description>Hi Team , 
 After a few transmission of data i m getting continuously NRF ERROR RESOURCES , i have referred few of links which suggested to increase the NRF_SDH_BLE_GAP_EVENT_LENGTH which internally increase the softdevice buffer and i have done changes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Dec 2021 15:35:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83204/sd_ble_gatts_hvx-returns-nrf-error-resources-while-transferring-bytes" /><item><title>RE: sd_ble_gatts_hvx  returns NRF ERROR RESOURCES while transferring bytes</title><link>https://devzone.nordicsemi.com/thread/345390?ContentTypeID=1</link><pubDate>Wed, 29 Dec 2021 15:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a289faa-a5a2-418d-a6ef-e7ead2f84a0f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m afraid not. You may need to count the number of available buffer by using the&amp;nbsp;&lt;span&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE&amp;nbsp; event and the number of packet sent provided in the callback event:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt; * @note The application can keep track of the available queue element count for notifications by following the procedure below:&lt;/em&gt;&lt;br /&gt;&lt;em&gt; * - Store initial queue element count in a variable.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; * - Decrement the variable, which stores the currently available queue element count, by one when a call to this function returns @ref NRF_SUCCESS.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; * - Increment the variable, which stores the current available queue element count, by the count variable in @ref BLE_GATTS_EVT_HVN_TX_COMPLETE event.&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gatts_hvx  returns NRF ERROR RESOURCES while transferring bytes</title><link>https://devzone.nordicsemi.com/thread/345378?ContentTypeID=1</link><pubDate>Wed, 29 Dec 2021 14:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af9bab8c-194e-4093-a0b4-b3363e5f2443</guid><dc:creator>sowmiya</dc:creator><description>&lt;p&gt;&lt;span&gt;is there a way to check queue size of notifications&amp;nbsp; in BLE_GATTS_EVT_HVN_TX_COMPLETE ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gatts_hvx  returns NRF ERROR RESOURCES while transferring bytes</title><link>https://devzone.nordicsemi.com/thread/345363?ContentTypeID=1</link><pubDate>Wed, 29 Dec 2021 13:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d82b28f-fdd9-4479-9a1d-12d6331f2e29</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sowmiya,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you receive&amp;nbsp;&lt;span&gt;NRF ERROR RESOURCES you should follow what suggested in the documentation&amp;nbsp;of&amp;nbsp;sd_ble_gatts_hvx() : &amp;quot;Too many notifications queued.&amp;nbsp;Wait for a @ref BLE_GATTS_EVT_HVN_TX_COMPLETE event and retry.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Increasing&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH&amp;nbsp; won&amp;#39;t help fix the issue, especially if the connection interval is smaller than&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH&amp;nbsp;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>