<?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>BLE 4.0 Disconnect issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56885/ble-4-0-disconnect-issue</link><description>Hello; 
 
 we are having a communication issue(a BIG one at this point) that we are experiencing with our BLE 4.0 tablets. Our device(has NRF52832) is designed to communicate with a XSlate R12 tablets. The older tablets out in the field have a BLE 4.0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Jan 2020 15:00:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56885/ble-4-0-disconnect-issue" /><item><title>RE: BLE 4.0 Disconnect issue</title><link>https://devzone.nordicsemi.com/thread/231215?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 15:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f85771e-9fcf-4edb-8d5f-66ec9fc17e95</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wael,&lt;/p&gt;
&lt;p&gt;If you can capture more traces, please do. The more traces we have the better to investigate the issue, even with the bad MIC issue.&amp;nbsp;&lt;br /&gt;However, it&amp;#39;s quite hard to debug if we can&amp;#39;t decrypt the packets properly. If you can find other BLE sniffer to try instead of using the Nordic&amp;#39;s one it would be useful.&amp;nbsp;&lt;br /&gt;I can see the connection parameter request in the trace, but I don&amp;#39; think it cause the issue. It happened need at the beginning of the connection and was performed normally, unless there is other ones in ones of the un-decryptable message.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Do you see the&amp;nbsp;disconnected&amp;nbsp;right after the log print out about the connection parameter update ? If you can have the log with timestamp, it would be useful.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE 4.0 Disconnect issue</title><link>https://devzone.nordicsemi.com/thread/231187?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 14:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d833f32-f31b-4534-97a7-980cb3db03b0</guid><dc:creator>Wael</dc:creator><description>&lt;p&gt;Hi Hung:&lt;/p&gt;
&lt;p&gt;Any update?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE 4.0 Disconnect issue</title><link>https://devzone.nordicsemi.com/thread/230915?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 15:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a94c0d03-508f-4aba-820b-1e0297554a5f</guid><dc:creator>Wael</dc:creator><description>&lt;p&gt;Hi Hung:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;the reason I think its a connection interval parameters is because when i run a device in debug mode and output to a text terminal, I see the request for a connection parameter update aside from the initial negotiation. it happens few minutes into the connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) when I run the device and connect with the nRF Connect App running on my laptop using the Nordic dongle, the issue does not happen.&lt;/p&gt;
&lt;p&gt;2) when I run the device and connect to the windows 10 BLE 4.0 tablet(internal BLE chipset), I get a disconnection anywhere from 5 to 20 minutes into the connection.&lt;/p&gt;
&lt;p&gt;3) &lt;span&gt;when I run the device and connect to the windows 10 BLE 4.0 tablet(external BLE 4.0 dongle), I&amp;nbsp;do NOT get a disconnection&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;sorry, I cant test with an example as our C# application running on the tablet is designed only to run and connect with our device. it would be a lot of work to change that code.&amp;nbsp;&lt;/p&gt;
&lt;div class="PD IF"&gt;
&lt;div class="JL" id=":fd.co"&gt;
&lt;div class="Mu SP" id=":fh.ma"&gt;&lt;span class="tL8wMe EMoHub" id=":fh.co" dir="ltr"&gt;our App does not invoke directly a low level function. It&amp;nbsp;&lt;/span&gt;&lt;span class="tL8wMe EMoHub" id=":fj.co" dir="ltr"&gt;uses an application layer API call available in&amp;nbsp;Windows.Devices.Bluetooth namespace&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ci"&gt;&lt;/div&gt;
&lt;p&gt;remember, we are only having problems with the older BLE 4.0 tablets which use Intel chipset that they no longer support. I hope this helps. your time and help is greatly appreciated.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE 4.0 Disconnect issue</title><link>https://devzone.nordicsemi.com/thread/230874?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 13:45:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6307a7c-3891-4c10-990a-7a1d55b5f27a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t think the connection interval negotiation would cause the issue, at least that not showed on the sniffer. Could you give some more information why you suspect the connection parameter change causing the issue ?&lt;/p&gt;
&lt;p&gt;Could you clarify what did you mean by &amp;quot;&amp;nbsp;&lt;span&gt;I do not get disconnects on nRF Connect app only the BLE 4.0 tablet&amp;quot; ? Did you have the issue on the nRFConnect app on the BLE4.0 tablet ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please try to test on any example, ble_app_proximity for example. The example support bonding, please do bonding when testing (you can read any characteristic, it would trigger bonding).&amp;nbsp;&lt;br /&gt;Could you&amp;nbsp;give some information about your C# application ? What it does, is there any low level BLE function ?&amp;nbsp;&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: BLE 4.0 Disconnect issue</title><link>https://devzone.nordicsemi.com/thread/230716?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 17:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2560624e-1ae6-4ed1-8b2d-7ec007b7983d</guid><dc:creator>Wael</dc:creator><description>&lt;p&gt;the error code I received on the DISCONNECT p_ble_evt-&amp;gt;evt.gap_evt.params.disconnected.reason was 0x1E which is&amp;nbsp;BLE_HCI_STATUS_CODE_INVALID_LMP_PARAMETER. I do not get disconnects on nRF Connect app only the BLE 4.0 tablet.&amp;nbsp;I think the central device does not like the min/max connection interval and it tries to change them and the device disconnects. The min and max values I am using is 20ms and 23ms respectively. It&amp;rsquo;s a windows 10 tablet which is running our c# application. its hard for me to understand the wireshark log.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;with regards to capturing traces again, I always see some undecrypteed packets no matter how many times I run it. is there anything I can do on the FW on the device side. I cannot change the interval timing as everything is sort of designed based on it. what example would you like me to test?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE 4.0 Disconnect issue</title><link>https://devzone.nordicsemi.com/thread/230712?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 16:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:773e11d2-60fe-446d-b7ab-e7e4794a2e6c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you try capture the traces again ? Please also try using the nRFConnect app to test. Just to check if the connection is kept.&amp;nbsp;&lt;br /&gt;Please also test with our stock examples in the SDK.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;What I can see in the trace is that there are lots of undecryptable packets, before the connection was lost. So I don&amp;#39;t know what could be wrong here.&amp;nbsp;&lt;br /&gt;What do you see in the firmware in the DISCONNECTED event , which disconnect reason was that ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE 4.0 Disconnect issue</title><link>https://devzone.nordicsemi.com/thread/230706?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 16:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f7098a3-76e1-4408-8057-5b1cf04ae73c</guid><dc:creator>Wael</dc:creator><description>&lt;p&gt;Hi Hung:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for taking the time to look over my case. the SW on the tablet is setup to reconnect when&amp;nbsp;a disconnection happens so in the log2 file there should be a few different connect/disconnects. unfortunately, the tablet fails to reconnect after about 4 to 8 reconnects. I have never used&amp;nbsp;wireshark and I really do not know how to find things in it. I was hopping you can help with that. the device is very close to the tablet and the dongle. Your time and effort will be greatly appreciated in any help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE 4.0 Disconnect issue</title><link>https://devzone.nordicsemi.com/thread/230644?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e25489d-b8e7-47d1-96ae-e3c00aff5535</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;HI Wael,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you point me to the place in the sniffer logs that you think when the issue happened ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;For some reason the sniffer couldn&amp;#39;t decrypt the last packets properly (bad MIC). I&amp;#39;m not sure why this happened. Please make sure you put the sniffer close to the 2 devices. Please try to capture other sniffer traces.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;If you use the BLE4.0 tablet to connect to a nRF52832 running one of our example in the SDK, do you see the same issue ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>