<?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>Data len is set to 0xF4(244) ERROR</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69801/data-len-is-set-to-0xf4-244-error</link><description>Hello 
 When I send data over BLE, I got this messages in debug terminal. 
 &amp;lt;info&amp;gt; app: Debug logging for UART over RTT started. &amp;lt;info&amp;gt; app: Connected &amp;lt;info&amp;gt; app: Data len is set to 0xF4(244) &amp;lt;error&amp;gt; app: Fatal error 
 
 I changed BLE_GATT_ATT_MTU 23</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Jan 2021 09:13:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69801/data-len-is-set-to-0xf4-244-error" /><item><title>RE: Data len is set to 0xF4(244) ERROR</title><link>https://devzone.nordicsemi.com/thread/287150?ContentTypeID=1</link><pubDate>Mon, 04 Jan 2021 09:13:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc4b43e2-60de-4bd2-882e-4e3748922a6a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can try to set the NRF_SDH_BLE_GAP_DATA_LENGTH config option to 251 and increase the NRF_SDH_BLE_GAP_EVENT_LENGTH. NRF_SDH_BLE_GAP_DATA_LENGTH will increase the radio packet length, and NRF_SDH_BLE_GAP_EVENT_LENGTH will allow more packets to be sent per connection inverval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data len is set to 0xF4(244) ERROR</title><link>https://devzone.nordicsemi.com/thread/286990?ContentTypeID=1</link><pubDate>Wed, 30 Dec 2020 11:58:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19e93c63-f8f9-48ae-b5bf-b358dfacd247</guid><dc:creator>ENENER</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;It works fine.&lt;/p&gt;
&lt;p&gt;But, I want to increase the throughput more.&lt;/p&gt;
&lt;p&gt;Is there more ways to increase the throughput?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data len is set to 0xF4(244) ERROR</title><link>https://devzone.nordicsemi.com/thread/286813?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2020 10:17:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ee0dea7-4db7-421d-8610-78c3cdd25093</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Assume the error is 0x13 hexadecimal? At least that&amp;#39;s what was shown in the screenshot you posted earlier. In that case, you are actually getting the NRF_ERROR_RESOURCES error, not NRF_ERROR_TIMEOUT.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1609235269290v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This error means the Softdevice&amp;#39;s notification queue is full, and that you need to wait for packets to be transmitted before attempting to add more packets to the queue. In other words, the throughput of your connection is too low to keep up with the current SAADC sample rate.&lt;/p&gt;
&lt;p&gt;To increase the throughput you may try to recuce the MAX_CONN_INTERVAL paramater. 15 ms for instance.&lt;/p&gt;
&lt;p&gt;API documentation for reference: &lt;span&gt;&lt;a title="sd_ble_gatts_hvx" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=4_7_3_1_2_4_2_4#ga313fe43c2e93267da668572e885945db"&gt;sd_ble_gatts_hvx&lt;/a&gt;&lt;/span&gt;()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data len is set to 0xF4(244) ERROR</title><link>https://devzone.nordicsemi.com/thread/286794?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2020 08:28:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f38bf7e7-3bcd-436b-b240-8700409bdd01</guid><dc:creator>ENENER</dc:creator><description>&lt;p&gt;I founded out error return where ble_nus_data_send in SAADC callback.&lt;/p&gt;
&lt;p&gt;Also, I checked the err_code is 13&lt;/p&gt;
&lt;p&gt;I understood err code 13 means timeout between nrf52 and my central device.&lt;/p&gt;
&lt;p&gt;But, I can&amp;#39;t still solve this problem.&lt;/p&gt;
&lt;p&gt;Do you have any idea?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data len is set to 0xF4(244) ERROR</title><link>https://devzone.nordicsemi.com/thread/286506?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2020 17:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9323728c-4769-4ca3-be51-0c461c7f6bcc</guid><dc:creator>awneil</dc:creator><description>[quote userid="93929" url="~/f/nordic-q-a/69801/data-len-is-set-to-0xf4-244-error/286474#286474"]How to I debug?[/quote]
&lt;p&gt;SES: &lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html"&gt;https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Keil:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_keil/UG/gsg/debug_keil.html"&gt;https://infocenter.nordicsemi.com/topic/ug_gsg_keil/UG/gsg/debug_keil.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data len is set to 0xF4(244) ERROR</title><link>https://devzone.nordicsemi.com/thread/286474?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2020 13:39:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:591169f6-c4fa-492a-98cd-80b69af1023c</guid><dc:creator>ENENER</dc:creator><description>&lt;p&gt;If I want to debug, do I have to breakpoint in app_error-handler() funcrtion?&lt;/p&gt;
&lt;p&gt;How to I debug??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data len is set to 0xF4(244) ERROR</title><link>https://devzone.nordicsemi.com/thread/286471?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2020 13:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c70f295-2e43-4367-9f12-2ca790745999</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, but the problem happens later in your SAADC callback. Please try to debug the code to find out where the error is returned.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data len is set to 0xF4(244) ERROR</title><link>https://devzone.nordicsemi.com/thread/286466?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2020 13:25:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:878bf14c-c96f-4b83-8d85-fe3978e4d607</guid><dc:creator>ENENER</dc:creator><description>&lt;p&gt;I found &amp;quot;Data len is set to ox%d(%d)&amp;quot; in gatt_evt_handler() function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data len is set to 0xF4(244) ERROR</title><link>https://devzone.nordicsemi.com/thread/286463?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2020 13:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a640a413-76b6-4a70-a46c-85961f393b2f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It looks like you have a function inside saadc_callback() that returns the&amp;nbsp;NRF_ERROR_RESOURCES error.&amp;nbsp; Are you able to debug the code to find out which function it is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data len is set to 0xF4(244) ERROR</title><link>https://devzone.nordicsemi.com/thread/286290?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 12:50:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96cf53c9-f4ed-4c89-ae3d-c4a3c1bb5d78</guid><dc:creator>awneil</dc:creator><description>[quote userid="93929" url="~/f/nordic-q-a/69801/data-len-is-set-to-0xf4-244-error"]&amp;lt;info&amp;gt; app: Data len is set to 0xF4(244)[/quote]
&lt;p&gt;Do a text search in the source code to see where that message comes from&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>