<?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>UART NUS Data length changed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38942/uart-nus-data-length-changed</link><description>In this function : 
 /**@brief Function for handling events from the GATT library. */ void gatt_evt_handler(nrf_ble_gatt_t * p_gatt, nrf_ble_gatt_evt_t const * p_evt) { if ((m_conn_handle == p_evt-&amp;gt;conn_handle) &amp;amp;&amp;amp; (p_evt-&amp;gt;evt_id == NRF_BLE_GATT_EVT_ATT_MTU_UPDATED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Oct 2018 08:45:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38942/uart-nus-data-length-changed" /><item><title>RE: UART NUS Data length changed</title><link>https://devzone.nordicsemi.com/thread/151174?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 08:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e0ecc61-a4d7-4fdc-b918-55a6643f37e9</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Ok, can you please send me all of your project files so that I can try to debug it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART NUS Data length changed</title><link>https://devzone.nordicsemi.com/thread/151060?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 18:27:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30b6c3d9-3961-46fc-a47b-8fba93ff177e</guid><dc:creator>Dhillon</dc:creator><description>&lt;p&gt;Hi Hakon&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I changed to 27 but still the length is getting changed to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;info&amp;gt; app: Data len is set to 0xB6(182)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I notice in sdk_config.h have this macro as well which might be playing role in the change of length:&lt;/p&gt;
&lt;p&gt;NRF_SDH_BLE_GATT_MAX_MTU_SIZE&lt;/p&gt;
&lt;p&gt;What would be possible value to have 20 Byte payload only.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Bhupinderjeet Singh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART NUS Data length changed</title><link>https://devzone.nordicsemi.com/thread/150974?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 12:56:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c3f5f85-da1c-49e4-a0ea-cb94cc0031d7</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;The lowest value possible for &lt;span&gt;NRF_SDH_BLE_GAP_DATA_LENGTH&lt;/span&gt; is 27 so that&amp;#39;s probably your best option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART NUS Data length changed</title><link>https://devzone.nordicsemi.com/thread/150533?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 15:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01a5a050-d49a-47c7-8e19-98d65a0fcf62</guid><dc:creator>Dhillon</dc:creator><description>&lt;p&gt;Hi Hakon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Okay I want to keep data length 20 bytes.&lt;/p&gt;
&lt;p&gt;What will be the value of&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_DATA_LENGTH ??&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And what is the calculation to know how much will be the data length depending upon&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bhupinderjeet Singh&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART NUS Data length changed</title><link>https://devzone.nordicsemi.com/thread/150532?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 11:22:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f29a336f-5053-42d0-ae26-c2618c08a1d0</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;It is probably because NRF_SDH_BLE_GAP_DATA_LENGTH in sdk_config is set to 251, and the data length has been negotiated to 182.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>