<?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_gattc_read() consecutive calls returns NRF_ERROR_BUSY</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84210/sd_ble_gattc_read-consecutive-calls-returns-nrf_error_busy</link><description>Hi! 
 I&amp;#39;m developing a small central BLE software, everything works well, please assume that I have correclty instantiated a connection, did the service and characteristic discovery. 
 While I&amp;#39;m connected to a device in an idle state (I&amp;#39;m not doing anything</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Feb 2022 12:09:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84210/sd_ble_gattc_read-consecutive-calls-returns-nrf_error_busy" /><item><title>RE: sd_ble_gattc_read() consecutive calls returns NRF_ERROR_BUSY</title><link>https://devzone.nordicsemi.com/thread/350653?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 12:09:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aae3f891-1487-417a-9df7-618e50fc7450</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I got some input from the team.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a title="Busy." href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group__nrf__error.html#ga5d2d8608f6d6a0329f58961a969e946e"&gt;NRF_ERROR_BUSY&lt;/a&gt;&amp;nbsp;returned by&amp;nbsp;&lt;a title="sd_ble_gattc_read" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html?cp=4_7_3_1_2_2_2_9#ga813daa5810a1d2ed31d2d6fe49d3ef11"&gt;sd_ble_gattc_read&lt;/a&gt;&amp;nbsp;means&amp;nbsp;&lt;span&gt;Client procedure is already in progress. In your case,&amp;nbsp;&lt;/span&gt;it should mean that sd_ble_gattc_read is called before event for the previous procedure is fetched from SD. Our guesses:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;something messed up with locking/unlocking in ble_c_device_read&lt;/li&gt;
&lt;li&gt;app initiate some other procedure in parallel&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Delay is not required, sd_ble_gattc_read can be called immediately after sd_ble_evt_get returns NRF_SUCCESS and event that finishes the previous procedure.&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gattc_read() consecutive calls returns NRF_ERROR_BUSY</title><link>https://devzone.nordicsemi.com/thread/350371?ContentTypeID=1</link><pubDate>Mon, 31 Jan 2022 09:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c931b3ff-9357-42fc-977a-9703b6dd84d5</guid><dc:creator>Davide Ghisalberti</dc:creator><description>&lt;p&gt;I see, but in the sequence chart there is no indication about delays or the value of them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For clearing, each call of my &amp;quot;ble_c_device_read&amp;quot; accounts for the call of &amp;quot;sd_ble_gattc_read&amp;quot; and waits for&amp;nbsp;&lt;span&gt;BLE_GATTC_EVT_READ_RSP before performing another call to sd_ble_gattc_read.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are there some suggested delay or it&amp;#39;s an empyrical value to be found for our application? There are some better documented indication about that? Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gattc_read() consecutive calls returns NRF_ERROR_BUSY</title><link>https://devzone.nordicsemi.com/thread/350360?ContentTypeID=1</link><pubDate>Mon, 31 Jan 2022 08:42:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ae5cb0e-346a-4d08-856d-8f4f30652f29</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You should follow the flow in this&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/support-private/support/283414/you%20should%20follow%20the%20flow%20in%20this%20message%20sequence%20chart."&gt;message sequence chart&lt;/a&gt;&amp;nbsp;&lt;span&gt;with delay. See this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/19721/where-use-sd_ble_gattc_read/76740#76740"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>