<?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>Changing MTU size using data length extension</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51184/changing-mtu-size-using-data-length-extension</link><description>Hi 
 I am having trouble changing the MTU size. I am using SDK 15.3 on nRF52832. I am developing a combined peripheral/central application, but I only need Data Length Extension on the peripheral part, which holds 3 custom services and 2 standard services</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 May 2021 07:20:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51184/changing-mtu-size-using-data-length-extension" /><item><title>RE: Changing MTU size using data length extension</title><link>https://devzone.nordicsemi.com/thread/308454?ContentTypeID=1</link><pubDate>Thu, 06 May 2021 07:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97cedff0-75b7-40b0-badb-51703d924c14</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Shemin,&lt;/p&gt;
&lt;p&gt;Please open a new ticket in Devzone if you need help with this. This thread is 2 years old. Click on the &amp;#39;Support+&amp;#39; ticket on the right side of the search bar and then click to open a new public Q&amp;amp;A ticket.&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1620285571424v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing MTU size using data length extension</title><link>https://devzone.nordicsemi.com/thread/308429?ContentTypeID=1</link><pubDate>Thu, 06 May 2021 04:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0618673-6bff-4402-a015-481d78ab3ba3</guid><dc:creator>Shemin Nizar</dc:creator><description>&lt;p&gt;Hi , I have also tried to user android device as&amp;nbsp; a peripheral to communicate with remote nrf52 device, but due to rx and tx octet mismatching of data symmetric issue , after mtu exchange communication not&amp;nbsp; able to continue like for notification enable , sending image information , but using nrf connect app it s working .&lt;/p&gt;
&lt;p&gt;Will you please able to help fix this issue&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Shemin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing MTU size using data length extension</title><link>https://devzone.nordicsemi.com/thread/206590?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 11:18:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a98b518d-e078-4536-8358-e1fccb3f59c3</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Happy to help :) first part of the log output says the packet data length is being updated to 27 (both for RX and TX). The ATT packet will then be sent over several on-air packets, see Bjørn&amp;#39;s answer in&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41629/what-is-the-difference-between-data-length-and-mtu/162140#162140"&gt; this ticket&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing MTU size using data length extension</title><link>https://devzone.nordicsemi.com/thread/206229?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 07:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77e1da35-3f37-42e0-9f26-e8b4da91870d</guid><dc:creator>Kasper Leonhardt</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was referring to the third party app &amp;quot;BLE scanner&amp;quot; from BluePixel. I have tried &amp;quot;nFR Connect&amp;quot; It seems to better handle the long writes. And my peripheral device application works fine.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="sql"&gt;[00:00:13.122,000] &amp;lt;info&amp;gt; app: Peripheral connected
[00:00:13.122,000] &amp;lt;info&amp;gt; app: Sending PHY Update.
[00:00:13.223,000] &amp;lt;warning&amp;gt; app: Backends flushed
[00:00:13.234,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 27 on connection 0x1.
[00:00:13.234,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 27
[00:00:13.234,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 27
[00:00:13.234,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 328
[00:00:13.234,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 328
[00:00:13.234,000] &amp;lt;info&amp;gt; app: Data length updated to 27 bytes.

[00:00:13.483,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: ATT MTU updated to 64 bytes on connection 0x1 (response).
[00:00:13.483,000] &amp;lt;info&amp;gt; app: ATT MTU exchange completed. MTU set to 64 bytes.
[00:00:13.634,000] &amp;lt;info&amp;gt; app: PHY update rejected. PHY set to 1 Mbps.

[00:01:37.643,000] &amp;lt;info&amp;gt; app: on_write: patient handle: 37 Len: 30&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I do not understand the first part of the log with the data length and max_?_octets. But &amp;quot;ATT MTU exchange completed. MTU set to 64 bytes.&amp;quot; and &amp;quot;app: on_write: patient handle: 37 Len: 30&amp;quot; says it all. :-)&lt;/p&gt;
&lt;p&gt;Thanks for your guidance.&lt;/p&gt;
&lt;p&gt;Kasper&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing MTU size using data length extension</title><link>https://devzone.nordicsemi.com/thread/206128?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2019 13:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3c3714d-a11e-4d9d-8ddc-3904ea018b43</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;With BLE scanner do you mean &amp;quot;nRF Connect app&amp;quot;? You should be using nRF Connect app for Android.&lt;/p&gt;
&lt;p&gt;And we recommend using nRF Sniffer v2.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing MTU size using data length extension</title><link>https://devzone.nordicsemi.com/thread/205496?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 09:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4245b484-0433-4736-8dc5-5ee680a036c0</guid><dc:creator>Kasper Leonhardt</dc:creator><description>&lt;p&gt;Hi Marjeris&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I have tried with the following devices.&lt;/p&gt;
&lt;p&gt;Samsung S10+ (Android 9) (Supports 2Mbps, and apparently only RX/TX:&amp;gt;67/27)&lt;br /&gt;Alcatel 8082 1T EEA (Android 8.1) (Will soon be tested)&lt;br /&gt;Sony Z5 Compact (LinageOS, Android 7.1.2) (Supports only 1Mbps, and apparently only RX/TX:&amp;gt;67/27, reduced later to 27/27 by phone) (Used for the trace in the original post)&lt;br /&gt;Lenovo Tablet TB-8304F1 (Android 7.0) (Supports only 1Mbps, and apparently only RX/TX:27/27)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The Samsung phone seems to do the same as the Sony phone, except that the data length is NOT reduced to 27 even that it is not symmetric:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:36:18.813,000] &amp;lt;info&amp;gt; app: Peripheral connected
[00:36:18.813,000] &amp;lt;info&amp;gt; app: Sending PHY Update.
[00:36:18.901,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: ATT MTU updated to 64 bytes on connection 0x1 (response).
[00:36:18.901,000] &amp;lt;info&amp;gt; app: ATT MTU exchange completed. MTU set to 64 bytes.
[00:36:18.904,000] &amp;lt;warning&amp;gt; app: Backends flushed
[00:36:19.291,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 67 on connection 0x1.
[00:36:19.291,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 27
[00:36:19.291,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 67
[00:36:19.291,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 328
[00:36:19.291,000] &amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 2120
[00:36:19.291,000] &amp;lt;info&amp;gt; app: Data length updated to 67 bytes.
[00:36:19.760,000] &amp;lt;info&amp;gt; app: PHY update accepted. PHY set to 2 Mbps.
[00:36:43.604,000] &amp;lt;debug&amp;gt; app: BLE_GAP_EVT_SEC_PARAMS_REQUEST
[00:36:45.588,000] &amp;lt;info&amp;gt; peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 1, procedure: Bonding
[00:36:45.588,000] &amp;lt;info&amp;gt; app: Link status. Role: 1. conn_handle: 1, Procedure: 1
[00:36:45.588,000] &amp;lt;info&amp;gt; app: BLE_GAP_EVT_AUTH_STATUS: status=0x0 bond=0x1 lv4: 0 kdist_own:0x3 kdist_peer:0x3
[00:36:46.088,000] &amp;lt;info&amp;gt; app: on_write: handle: 22 Len: 4
[00:37:02.077,000] &amp;lt;info&amp;gt; app: Peripheral disconnected. conn_handle: 0x1, reason: 0x13&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Can you recommend any other app for browsing services and reading/writing characteristics. I cannot find any other than BLE Scanner.&amp;nbsp;Are you aware of apps that can display the capabilities for DataLengtExtensien?&amp;nbsp;Bluetooth version implementation?&lt;/p&gt;
&lt;p&gt;I will try to set up the BLE Sniffer later. (Not a trivial task, last time I gave up. I miss the old BLE Sniffer three years which was much easier to setup)&lt;/p&gt;
&lt;p&gt;BR&lt;br /&gt;Kasper&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing MTU size using data length extension</title><link>https://devzone.nordicsemi.com/thread/205374?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 15:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea517485-93dd-4c3a-b377-db8fa83065a7</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Kasper,&lt;/p&gt;
&lt;p&gt;Sorry for the late answer. The Softdevice only supports symmetric RX/TX data length settings, from the logs you can see RX setting was different from TX so that&amp;#39;s why TX sets to 27. Can you try to setup the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer"&gt;BLE sniffer&lt;/a&gt; to see what is happening between your device and your phone? What kind of phone are you using? Are you sure it supports higher data lengths? It needs to support DLE for both TX&amp;nbsp; and RX.&lt;/p&gt;
[quote user=""]I have read some guides that tells that besides&amp;nbsp;defining your needed data length, you also needs to enable data length extension. But how? Is this done automatically by the softdevice?[/quote]
&lt;p&gt;This is done automatically by the GATT module when you define a higher data length.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>