<?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>A terminal that can not communicate.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47188/a-terminal-that-can-not-communicate</link><description>I found a terminal that can not communicate with BLE. I think that the sequence after MTU exchange is strange. The program used is sample HRM. The terminal used is &amp;quot;Xperia (TM) Z4 SO-03G&amp;quot;. 
 
 Is there a solution? 
 
 The usage environment is as follows</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jun 2019 00:07:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47188/a-terminal-that-can-not-communicate" /><item><title>RE: A terminal that can not communicate.</title><link>https://devzone.nordicsemi.com/thread/194477?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 00:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9082b557-c046-4113-a930-89527e8303a0</guid><dc:creator>zkt-1400</dc:creator><description>&lt;p&gt;Thank you for your detailed answer.&lt;br /&gt;I think that I would like to use s132_nrf52_6.1.1_softdevice because I think it has been changed to not disconnect.&lt;/p&gt;
&lt;p&gt;Current&lt;br /&gt;s132_nrf52_6.0.0_softdevice + SDK15&lt;br /&gt;&amp;darr;&lt;br /&gt;plans&lt;br /&gt;s132_nrf52_6.1.1_softdevice + SDK15&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A terminal that can not communicate.</title><link>https://devzone.nordicsemi.com/thread/192963?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 14:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:929a0bf1-ea9a-442c-a1a4-8c266ad3a226</guid><dc:creator>Sigurd</dc:creator><description>[quote user="zkt-1400"]Whether to execute Data Length Extension (DLE) is judged from the result of the following dialogue.[/quote]
&lt;p&gt;Yes, the&amp;nbsp;FeatureSet(&lt;span&gt;LL_FEATURE_REQ/LL_FEATURE_RSP) can be used for that, from the Bluetooth spec we have the following:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;span&gt;If the peer Link Layer has indicated either during a feature exchange procedure&lt;br /&gt;or by responding with an LL_UNKNOWN_RSP PDU that it does not support a&lt;br /&gt;procedure, then the Link Layer shall not use that procedure.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;But if the&amp;nbsp;FeatureSet have not be been exchanged yet,&amp;nbsp;it&amp;#39;s still allowed to use the DLE procedure (LL_LENGTH_REQ/LL_LENGTH_RSP), and if the other peer does not support DLE, it should respond with&amp;nbsp;LL_UNKNOWN_RSP PDU.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A terminal that can not communicate.</title><link>https://devzone.nordicsemi.com/thread/192861?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 08:48:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee103597-f6d5-4ead-86fc-be3f3d79cc68</guid><dc:creator>zkt-1400</dc:creator><description>&lt;p&gt;Thank you for your response.&lt;/p&gt;
&lt;p&gt;I have a question.&lt;/p&gt;
&lt;p&gt;Here is my recognition.&lt;br /&gt;Whether to execute Data Length Extension (DLE) is judged from the result of the following dialogue.&lt;br /&gt;・ LL_VERSION_IND&lt;br /&gt;・ LL_FEATURE_REQ and LL_FEATURE_RSP&lt;br /&gt;(Confirmation that the other party supports DLE)&lt;/p&gt;
&lt;p&gt;Why is softdevice running DLE without this interaction?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A terminal that can not communicate.</title><link>https://devzone.nordicsemi.com/thread/189495?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 08:19:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ced441a-81e9-4f6b-b8f5-56c6e4a354d5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="27086" url="~/f/nordic-q-a/47188/a-terminal-that-can-not-communicate/189432"]What does this change mean?&lt;br /&gt;Is the parameter different from MTU?[/quote]
&lt;p&gt;Yes, NRF_SDH_BLE_GAP_DATA_LENGTH is different from ATT MTU. DLE /&amp;nbsp;(&lt;span&gt;NRF_SDH_BLE_GAP_DATA_LENGTH&amp;nbsp;&lt;/span&gt;) is the on-air packet size.&lt;/p&gt;
&lt;p&gt;I took a closer look at the&amp;nbsp;HRM_xperia log, and I see that the xperia is&amp;nbsp;not following the Bluetooth specification. In&amp;nbsp;HRM_xperia.pcapng, the xperia sends a&amp;nbsp;LL_LENGTH_RSP packet where&amp;nbsp;Max RX time is set to 256 microseconds. &lt;span&gt;This is not allowed according to the Bluetooth spec.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1559031288255v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;From the spec:&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;nbsp;&lt;span&gt;BLUETOOTH SPECIFICATION Version 4.2 [Vol 6, Part B] page 57 , chapter&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.4.2.21 LL_LENGTH_REQ and LL_LENGTH_RSP&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The MaxRxTime field shall have a value in the range of 328 to 2120 microseconds&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I therefore suggest setting NRF_SDH_BLE_GAP_DATA_LENGTH&amp;nbsp;to 27 if you want to workaround this issue that the xperia has.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A terminal that can not communicate.</title><link>https://devzone.nordicsemi.com/thread/189432?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 02:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a87d97-6fdd-4686-8865-2568415f3d4d</guid><dc:creator>zkt-1400</dc:creator><description>&lt;p&gt;From the sniffer log, the phone is transmitting several packet 2 times, without waiting for response.&lt;/p&gt;
&lt;p&gt;&amp;rarr;&lt;br /&gt;This phenomenon may occur with any mobile phone connected.&lt;br /&gt;It can also occur when using the sample without changing it.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;1) Does the issue disappear if you set NRF_SDH_BLE_GAP_DATA_LENGTH in sdk_config.h to 27 ?&lt;/p&gt;
&lt;p&gt;&amp;rarr;&lt;br /&gt;I was able to connect.&lt;br /&gt;What does this change mean?&lt;br /&gt;Is the parameter different from MTU?&lt;/p&gt;
&lt;p&gt;I will attach the log.&lt;br /&gt;・HRM_DATA_LENGTH_27_iPhoneSE.pcapng&lt;br /&gt;・HRM_DATA_LENGTH_27_xperia.pcapng&lt;/p&gt;
&lt;p&gt;2) Does the issue disappear if you set NRF_SDH_BLE_GATT_MAX_MTU_SIZE in sdk_config.h to 23 ?&lt;/p&gt;
&lt;p&gt;&amp;rarr;&lt;br /&gt;I was able to connect.&lt;br /&gt;If this change is made, the MTU of all devices will be 23.&lt;br /&gt;So it is not suitable for me.&lt;br /&gt;When the communication partner is Bluetooth 4.2 or later, I want to extend the MTU and communicate.&lt;/p&gt;
&lt;p&gt;I will attach the log.&lt;br /&gt;・HRM_MAX_MTU_SIZE_23_iPhoneSE.pcapng&lt;br /&gt;・HRM_MAX_MTU_SIZE_23_xperia.pcapng&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/HRM_5F00_DATA_5F00_LENGTH_5F00_27_5F00_iPhoneSE.pcapng"&gt;devzone.nordicsemi.com/.../HRM_5F00_DATA_5F00_LENGTH_5F00_27_5F00_iPhoneSE.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/HRM_5F00_DATA_5F00_LENGTH_5F00_27_5F00_xperia.pcapng"&gt;devzone.nordicsemi.com/.../HRM_5F00_DATA_5F00_LENGTH_5F00_27_5F00_xperia.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/HRM_5F00_MAX_5F00_MTU_5F00_SIZE_5F00_23_5F00_iPhoneSE.pcapng"&gt;devzone.nordicsemi.com/.../HRM_5F00_MAX_5F00_MTU_5F00_SIZE_5F00_23_5F00_iPhoneSE.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/HRM_5F00_MAX_5F00_MTU_5F00_SIZE_5F00_23_5F00_xperia.pcapng"&gt;devzone.nordicsemi.com/.../HRM_5F00_MAX_5F00_MTU_5F00_SIZE_5F00_23_5F00_xperia.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A terminal that can not communicate.</title><link>https://devzone.nordicsemi.com/thread/189360?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 13:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33ce1685-7cae-4896-983f-11e0c48ff70c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;From the sniffer log, the phone is transmitting several packet 2 times, without waiting for response.&lt;/p&gt;
&lt;p&gt;1) Does the issue disappear if you set&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH in sdk_config.h to 27 ?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) Does the issue&amp;nbsp;&lt;/span&gt;&lt;span&gt;disappear if you set NRF_SDH_BLE_GATT_MAX_MTU_SIZE&amp;nbsp;&lt;/span&gt;&lt;span&gt;in sdk_config.h to 23 ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A terminal that can not communicate.</title><link>https://devzone.nordicsemi.com/thread/188672?ContentTypeID=1</link><pubDate>Thu, 23 May 2019 02:51:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40867650-f255-41d3-b77d-71db8c05a0ab</guid><dc:creator>zkt-1400</dc:creator><description>&lt;p&gt;I will attach a new sniffer log.&lt;br /&gt;Xperia Z4 SO-03G &amp;lt;---&amp;gt;&amp;nbsp;sample HRM&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The target terminal is Bluetooth 4.1.&lt;br /&gt;The OS of the target device is Android 7.0.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Why is MTU exchange successful for devices other than 23 on Bluetooth 4.1 devices?&lt;br /&gt;Will it succeed if the OS is Android 7.0?&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/HRM_5F00_xperia.pcapng"&gt;devzone.nordicsemi.com/.../HRM_5F00_xperia.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A terminal that can not communicate.</title><link>https://devzone.nordicsemi.com/thread/187505?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 11:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35248172-444c-45b8-97c4-45bc58a51f7a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;It does not work&amp;nbsp;with&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GATT_MAX_MTU_SIZE?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does the device disconnect?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you upload a sniffer log captured with&amp;nbsp;nRF-Sniffer v2?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A terminal that can not communicate.</title><link>https://devzone.nordicsemi.com/thread/187481?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 09:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea38d507-b4a9-421d-8bea-986460eadf0a</guid><dc:creator>zkt-1400</dc:creator><description>&lt;p&gt;Why is it that I can not communicate even though the MTU exchange on Xperia is successful?&lt;br /&gt;Why does it work for default values?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A terminal that can not communicate.</title><link>https://devzone.nordicsemi.com/thread/186860?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 08:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0362c6a4-0d90-40b7-81d4-32bef192fcd0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1. What is the difference between making MTU by default and turning it off?[/quote]
&lt;p&gt;If you turn it off, i.e. remove the gatt module&amp;nbsp;initialization, you will then not handle MTU requests from the central at all. If the MTU requests are not handled, you will get a GATT procedure timeout on the link, and the link will disconnect.&lt;/p&gt;
&lt;p&gt;Leaving it at default, you will just respond back to the central that you support the default value of 23.&lt;/p&gt;
[quote user=""]2. If MTU is the default, will the communication speed be slower if the data size is large?[/quote]
&lt;p&gt;You could get a higher&amp;nbsp;throughput with larger MTU, but DLE(data length/NRF_SDH_BLE_GAP_DATA_LENGTH) have a&amp;nbsp;greater&amp;nbsp;impact on&amp;nbsp;&lt;span&gt;throughput than MTU.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also, If you are using nRF-Sniffer v1, I would recommend upgrading to nRF-Sniffer v2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>