<?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 GATT procedure (%d) failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65513/sd-gatt-procedure-d-failed</link><description>Background: SDK 16.0.0, SoftDevice 7.0.1, 1 ble_central connected 6 ble_peripheral, Send an instruction to 6 ble_peripherals every 50 milliseconds, at the same time, the ble_peripheral returns the response data to the ble_central . An error will be reported</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Oct 2021 05:48:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65513/sd-gatt-procedure-d-failed" /><item><title>RE: SD GATT procedure (%d) failed</title><link>https://devzone.nordicsemi.com/thread/336319?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 05:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:032b0479-be0f-4214-bf40-b1113c5ac469</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to know that. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&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 GATT procedure (%d) failed</title><link>https://devzone.nordicsemi.com/thread/336306?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 01:52:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8067eef9-f34b-488f-9c2b-a1c82b49192f</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;thanks for your reply,&amp;nbsp;According to your suggestion, I modified the code as follows and found no problem with 0x13,&lt;/p&gt;
&lt;p&gt;do&lt;br /&gt; {&lt;br /&gt;&amp;nbsp; err_code = ble_nus_data_send(&amp;amp;m_nus, data_array, &amp;amp;len, m_conn_handle);&lt;br /&gt;&amp;nbsp; if ((err_code != NRF_ERROR_INVALID_STATE) &amp;amp;&amp;amp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; (err_code != NRF_ERROR_RESOURCES) &amp;amp;&amp;amp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; (err_code != NRF_SUCCESS) &amp;amp;&amp;amp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; (err_code != NRF_ERROR_BUSY) &amp;amp;&amp;amp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; (err_code != NRF_ERROR_NOT_FOUND))&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; APP_ERROR_CHECK(err_code);&lt;br /&gt;&amp;nbsp;}&lt;br /&gt; } while (err_code == NRF_ERROR_BUSY || err_code == NRF_ERROR_RESOURCES);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD GATT procedure (%d) failed</title><link>https://devzone.nordicsemi.com/thread/335853?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 06:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e8b967d-9b7c-41ac-aa5b-b59b235d4bd0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the log, the error 0x13 seems from&amp;nbsp;sd_ble_gattc_write()&amp;nbsp;&lt;span&gt;in&amp;nbsp;queue_process()&amp;nbsp;request_process(). See my explanation in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57919/ble-gatt-queue-library-with-sd_ble_gattc_write-nrf_error_resources/235743#235743"&gt;thread&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;                NRF_LOG_DEBUG(&amp;quot;GATTC Write Request&amp;quot;);
                err_code = sd_ble_gattc_write(conn_handle,
                                              &amp;amp;ble_req.params.gattc_write);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please try to patch the module provided by Vidar&amp;nbsp;in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61118/issue-about-ram-setting-and-nrf_error_resources/248572#248572"&gt;post&lt;/a&gt; and see if you get the same result.&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><item><title>RE: SD GATT procedure (%d) failed</title><link>https://devzone.nordicsemi.com/thread/335835?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 01:20:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:117267a8-7258-4f6b-9c6b-a5928eab4fc1</guid><dc:creator>yoyou</dc:creator><description>&lt;table class="memberdecls"&gt;
&lt;tbody&gt;
&lt;tr class="memitem:gac94383171545e604e8347a044e8be13f"&gt;
&lt;td class="memItemLeft" align="right" colspan="1" rowspan="1" valign="top"&gt;#define&amp;nbsp;&lt;/td&gt;
&lt;td class="memItemRight" colspan="1" rowspan="1" valign="bottom"&gt;&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group__nrf__error.html#gac94383171545e604e8347a044e8be13f"&gt;NRF_ERROR_RESOURCES&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___n_r_f___e_r_r_o_r_s___b_a_s_e.html#ga6657d0b1e8f050685ddf7d7c1d85c8e8"&gt;NRF_ERROR_BASE_NUM&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;+ 19)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="memdesc:gac94383171545e604e8347a044e8be13f"&gt;
&lt;td class="mdescLeft" colspan="1" rowspan="1"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td class="mdescRight" colspan="1" rowspan="1"&gt;
&lt;p&gt;Not enough resources for operation.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;But I don&amp;#39;t know what kind of resource shortage is。The smaller the time interval between sending data, the more likely this problem is。&lt;/p&gt;
&lt;p&gt;sender code:&lt;/p&gt;
&lt;p&gt;do&lt;br /&gt; {&lt;br /&gt; ret_val = ble_nus_c_string_send(&amp;amp;m_ble_nus_c, tmp, len);&lt;br /&gt; if ( (ret_val != NRF_ERROR_INVALID_STATE) &amp;amp;&amp;amp; (ret_val != NRF_ERROR_RESOURCES) )&lt;br /&gt; {&lt;br /&gt;&amp;nbsp; &amp;nbsp;APP_ERROR_CHECK(ret_val);&lt;br /&gt; }&lt;br /&gt; } while (ret_val == NRF_ERROR_RESOURCES);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD GATT procedure (%d) failed</title><link>https://devzone.nordicsemi.com/thread/335659?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 08:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc982156-0d0f-4301-a8ee-509209404ac5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The error 0x13 is 19 in decimal and that means&amp;nbsp;&amp;nbsp;&lt;a title="Not enough resources for operation." href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group__nrf__error.html#gac94383171545e604e8347a044e8be13f"&gt;NRF_ERROR_RESOURCES&lt;/a&gt;.&amp;nbsp;&lt;span&gt;See Vidar&amp;#39;s answer in this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61118/issue-about-ram-setting-and-nrf_error_resources/248572#248572"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&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 GATT procedure (%d) failed</title><link>https://devzone.nordicsemi.com/thread/335610?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 03:41:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed87bc4d-ca5d-408d-8a0f-573e178d38f9</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (1) succeeded on connection handle: 0.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Write Request&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (1) succeeded on connection handle: 0.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Write Request&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (1) succeeded on connection handle: 0.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Write Request&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;error&amp;gt; nrf_ble_gq: SD GATT procedure (1) failed on connection handle 0 with error: 0x00000013.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; ble_nus_c: A GATT Client error has occurred on conn_handle: 0X0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD GATT procedure (%d) failed</title><link>https://devzone.nordicsemi.com/thread/268274?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 11:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c55179f9-381f-4085-ab06-ade7edb0dfbe</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi John,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should debug and find the error that comes from which function. Set&amp;nbsp;NRF_LOG_DEFAULT_LEVEL to 4 in the sdk_config.h to output logs from NRF_LOG_DEBUG macro. Please provide the debug log.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD GATT procedure (%d) failed</title><link>https://devzone.nordicsemi.com/thread/267905?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2020 15:56:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed2c5fd0-f8f2-45ab-8669-e1ae91868a6b</guid><dc:creator>role_2099</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;I used ble_app_uart_c and ble_app_uart, and modify the example for multilink. My ble_app_uart_c connect to STM32 use UART, CMD is from STM32 MCU, 50ms is controlled by STM32.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD GATT procedure (%d) failed</title><link>https://devzone.nordicsemi.com/thread/267857?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2020 13:19:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edccaf33-3e58-4e99-9395-cc7ac3512295</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi John,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using&amp;nbsp;ble_app_uart_c and&amp;nbsp;&lt;span&gt;ble_app_uart? Did you modify the example? Does it also happen to only one&amp;nbsp;ble_peripheral?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Could you check the error come from which request_err_code_handle in the project?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Maybe&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/58466/uart-streaming-from-central-to-peripheral"&gt;this &lt;/a&gt;and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56450/nus-client-nusc-nrf_error_resources-from-ble_gq"&gt;this &lt;/a&gt;post can help. If not, please compile with debug mode to provide the debug log.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>