<?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>Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10860/disconnection-procedure-after-ll-conn-parameter-update-leads-to-supervision-timeout</link><description>Hi all 
 We use the nRF51822 with the S130 V1.0.0 in the peripheral role and a Galaxy S5 in the central role. As soon as the S5 connects to the nRF, we send a connection parameter update request (L2CAP) to the S5 for increasing the communication speed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Jun 2016 07:00:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10860/disconnection-procedure-after-ll-conn-parameter-update-leads-to-supervision-timeout" /><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40643?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 07:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ec8be15-8247-490f-8b2e-6bbb7f872463</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Thangaraj: The issue disappeared when moving to S130 v2.0. Could you please check ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40642?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2016 12:08:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:182c439f-9cc3-4b94-9a70-4dca138d276d</guid><dc:creator>Thangaraj</dc:creator><description>&lt;p&gt;Am facing the same issue, Was this fixed ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40641?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 10:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aa934c6-d30f-4d73-843f-102042c36791</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;Hi Hung. Sorry for the late response! I&amp;#39;ve now created a case via MyPage and uploaded the demo application there. Kind regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40640?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 13:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bf6877d-246b-4578-9536-ada272e42755</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;Hi Hung. Ok, I will create a stripped-down demo application and open a case via MyPage due to confidentiality. Unfortunately, I will not have time to do this until next week. Kind regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40639?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2016 08:51:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e7b400-cd6f-4071-84aa-e292a19a5c25</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Remo,&lt;/p&gt;
&lt;p&gt;The trace I attached on Dec 17 in the answer already has the LL_TERMINATE_IND right 1 connection event before the disconnection.&lt;/p&gt;
&lt;p&gt;Please send me the full project, that I can compile and test here. If there is confidential information concern, please create a case on Mypage on our website, attach the project there and add link to this case on devzone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40638?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2016 07:44:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4e1a4de-92f1-427c-bcc7-04f76cde78a9</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;My mistake, 16 is of course one connection interval before the instant, and not two. Can you send me a sniffer trace where you terminate the link in the connection interval before the instant? Maybe I see some differences between our procedures... I&amp;#39;ve sent you some code snippets via PM. Do you need more?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40637?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 13:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:836979f4-b0f0-431c-8e1c-01bb0c96cfad</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Remo: 0x0011 = 17. I am not sure 16 is one instance before or two ?
I tried both 1, 2 3 instance before, all worked.
If you can provide me a simple example (modified code from SDK for example) that I can reproduce here then it&amp;#39;s easier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40636?ContentTypeID=1</link><pubDate>Mon, 04 Jan 2016 15:12:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea6a003b-cb7a-4dba-968c-2b1c2b934e59</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;Hi Hung.&lt;/p&gt;
&lt;p&gt;I think it depends on when the LL_TERMINATE_IND is sent and when the new connection parameters would by applied. I added a new sniffer trace in which the nRF sends the LL_TERMINATE_IND packet two connection intervals before the Instant. In this case the BLE_GAP_EVT_DISCONNECTED event occurs right afterwards.&lt;/p&gt;
&lt;p&gt;So far, I tested following cases (the Instant was always 0x0011):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;nRF sends LL_TERMINATE_IND in connection event 15 -&amp;gt; Good&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;nRF sends LL_TERMINATE_IND in connection event 16 -&amp;gt; Fail&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;nRF sends LL_TERMINATE_IND in connection event 17 -&amp;gt; Good&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Can you please try to terminate the connection two intervals before the instant and check if you can reproduce it?&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40635?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2015 16:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06c5a834-2954-434c-9e77-1cafef9e44da</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Remo,&lt;/p&gt;
&lt;p&gt;I tried with different setup (including 48.75 ms interval) and still couldn&amp;#39;t reproduce it here. You can try to change the connection parameter on your side to check if it helps. You can use the Master Control Panel application on PC, you have full control over the central device with this application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40634?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 16:57:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c40134f-7134-4821-9bc9-cb86162586dd</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;Hi Hung. Thank you for your sniffer trace. I saw that the connection interval in &amp;quot;your&amp;quot; connection is 200ms while the interval in &amp;quot;my&amp;quot; connection is 48.75ms. Maybe that has an influence... Is it possible that you can send me your code so can I can look for differences?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40633?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 12:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20c04871-e7a7-4fbe-91c4-c591f74964c6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Remo,&lt;/p&gt;
&lt;p&gt;I tried many different scenarios here but non of them showed the issue you were having.
You can have a look at the trace attached &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;here&lt;/a&gt; (using Nordic sniffer ), you can use Wireshark to open (you need to run Nordic sniffer to install the  plugin)&lt;/p&gt;
&lt;p&gt;You can find that the advertising started right after the LL_TERMINATE_IND packet, suggesting that the Disconnected event was received right after packet.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_5F00_PUpdate_5F00_Disconnect.pcapng"&gt;trace_PUpdate_Disconnect.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40631?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 08:36:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cf6c2cd-7560-4df0-b84c-ffc02d3c2d39</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;The problem with providing a simple code is, that our nRF application is controlled by another controller via commands on the UART interface. E.g. one command starts the advertising and another command terminates the connection. Therefore, would just some particular code snippets be enough?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40629?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 08:33:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:883392a0-7b87-4e34-96c5-d35dc358f091</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;Hi. I have uploaded another sniffer trace in which the last connection was terminated successfully (the disconnected event was received immediately). All previous connections were terminated and the disconnected event occurred first after the supervision timeout. The phrase &amp;quot;Now it happens sometimes&amp;quot; means that the supervision timeout occurs in most cases. That is, when the &amp;#39;instant&amp;#39; of the connection parameter update applies after the connection should be terminated, as you can see in the second sniffer trace file.&lt;/p&gt;
&lt;p&gt;The occurrence of the problem depends on the timing when the connection update request is sent (and the instant signaled by the central) and when the terminate request is sent. When you tried to reproduce it, could you verify with the sniffer that the terminate request was sent before the &amp;#39;instant&amp;#39;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40628?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 13:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b6b2359-bcec-49ce-bfc2-8fed3a3e27da</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Remo,
The sniffer wouldn&amp;#39;t tell much. I&amp;#39;m seeing the peripheral didn&amp;#39;t start to advertise after disconnection. I assume you added a breakpoint or didn&amp;#39;t start advertising when disconnected in your application.
When you mentioned &amp;quot;Now it happens sometimes&amp;quot;, how often it was ? Have you found a way to reproduce the issue all the time ?  I tried several times here but couldn&amp;#39;t reproduce. A simple code that can show the issue would be great.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40630?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 07:11:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df653c94-034d-44de-9bce-3003ce1c9e32</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve uploaded the sniffer trace. Can you work with this format? I have to recheck if I can provide you the code.
Kind regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection procedure after LL conn. parameter update leads to supervision timeout</title><link>https://devzone.nordicsemi.com/thread/40632?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 11:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:806a2abc-f38c-405e-804d-cab1c5881f79</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Remo,&lt;/p&gt;
&lt;p&gt;Could you provide the sniffer trace and maybe the example code that can generate the issue.
I tried here but couldn&amp;#39;t reproduce that. The BLE_GAP_EVT_DISCONNECTED event came right after the nRF51 sent the LL_TERMINATE_IND.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>