<?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_gap_data_length_update error 0x13</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29100/sd_ble_gap_data_length_update-error-0x13</link><description>Hi 
 I have a problem changing the max_rx_octets and max_tx_octets parameters with the sd_ble_gap_data_length_update function. On request from the app the size is attempted to be changed to the maximum value of 251. 
 I receive a 0x13 error (NRF_ERROR_RESOURCES</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Apr 2019 08:41:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29100/sd_ble_gap_data_length_update-error-0x13" /><item><title>RE: sd_ble_gap_data_length_update error 0x13</title><link>https://devzone.nordicsemi.com/thread/182295?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 08:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e0d88d6-9c25-4dd3-bfbd-d775c6b6a2ee</guid><dc:creator>akash</dc:creator><description>&lt;p&gt;Did you solve the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_data_length_update error 0x13</title><link>https://devzone.nordicsemi.com/thread/115487?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2018 09:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f5d75f1-b3f7-48a2-aec2-92df7b1443d2</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;There is no exact answer to this as that is depending on the application. So the GAP event length wil affect the number of buffer used by communications. the longer the lengtht the more buffers (max 7 i think). You can also have longer events by using the connection extension in the options api, if you want to limit the number of buffers and still be able to send many packets per connection event. The attribute table will need to be increased if you have a lot of services and characteristics, and/or if the size of the characteristics increase. So if you get a NRF_ERROR_NO_MEM when adding service and characteristecs you need to increase the attr_tab_size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_data_length_update error 0x13</title><link>https://devzone.nordicsemi.com/thread/115485?ContentTypeID=1</link><pubDate>Wed, 27 Dec 2017 08:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a301ba54-57ee-49ce-9406-551577b9ef0f</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;OK, if I use peripheral node to call sd_ble_gap_data_length_update(), the ATT MTU exchange can pass and my two UART nodes can work. However, the effective packet size is still 20.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_data_length_update error 0x13</title><link>https://devzone.nordicsemi.com/thread/115484?ContentTypeID=1</link><pubDate>Wed, 27 Dec 2017 06:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3ba01f9-5abd-4bac-9420-390021ea6832</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;yes, I did change RAM start and size.&lt;/p&gt;
&lt;p&gt;Yes, I also use RTT viewer to see log messages.&lt;/p&gt;
&lt;p&gt;In my testing code, I modified Nordic UART service example codes to extend MTU packet size. My error may be caused by central node calling sd_ble_gap_data_length_update() upon event BLE_GAP_EVT_CONNECTED.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_data_length_update error 0x13</title><link>https://devzone.nordicsemi.com/thread/115483?ContentTypeID=1</link><pubDate>Wed, 27 Dec 2017 06:42:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6324ac27-7eea-42c6-851c-b6df3738ef8a</guid><dc:creator>Dream Cob</dc:creator><description>&lt;p&gt;sd_ble_gap_data_length_update() function is called by peripheral. After you changed NRF_SDH_BLE_GAP_EVENT_LENGTH from 3 to 200, did you change RAM start and size application use?
If you connect segger J-link, you can see log on J-Link RTT viewer using NRF_LOG_INFO or other functions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_data_length_update error 0x13</title><link>https://devzone.nordicsemi.com/thread/115482?ContentTypeID=1</link><pubDate>Wed, 27 Dec 2017 06:12:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c3a42da-98b0-4a94-8532-34a1d3286dbc</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;after changing NRF_SDH_BLE_GAP_EVENT_LENGTH from 3 to 200, that 0x13 error is gone, but I have new error, which I am not sure happens at where.&lt;/p&gt;
&lt;p&gt;I wonder who should call sd_ble_gap_data_length_update() to exchange new MTU size, central or peripheral nodes, or both can?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_data_length_update error 0x13</title><link>https://devzone.nordicsemi.com/thread/115481?ContentTypeID=1</link><pubDate>Tue, 26 Dec 2017 11:19:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11119a18-30fb-4add-bba0-7185456859dc</guid><dc:creator>Dream Cob</dc:creator><description>&lt;p&gt;I have resolved this error on changing from 3 to 200 for NRF_SDH_BLE_GAP_EVENT_LENGTH.
I have unchanged for NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE. It is 1408 in default.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_data_length_update error 0x13</title><link>https://devzone.nordicsemi.com/thread/115486?ContentTypeID=1</link><pubDate>Tue, 26 Dec 2017 10:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58d7c0af-d789-4e39-aa59-7123ef47b3f0</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;I have also encountered this error.&lt;/p&gt;
&lt;p&gt;What are the correct values of NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE and NRF_SDH_BLE_GAP_EVENT_LENGTH?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_data_length_update error 0x13</title><link>https://devzone.nordicsemi.com/thread/115480?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 10:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25e8686b-6fc6-404f-97c4-63a38c9090a1</guid><dc:creator>Dream Cob</dc:creator><description>&lt;p&gt;Did you check NRF_SDH_BLE_GAP_EVENT_LENGTH parameter in sdk_config.h?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_data_length_update error 0x13</title><link>https://devzone.nordicsemi.com/thread/115479?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2017 08:10:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81d80d38-bccb-4f76-a055-53352495161a</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Did you check the RAM start and RAM size settings? And also the size of your attribute table: NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>