<?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 rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24813/ble-rare-disconnection-on-softdevice-with-active-timeslot-session</link><description>Hi,
During testing I noticed rare BLE connection loses with Softdevice S110 when timeslot session is active. It is hard to catch them with sniffer due to rare behaviour. So the question is about ever known reasons of connection loses while timeslot session</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Sep 2017 11:46:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24813/ble-rare-disconnection-on-softdevice-with-active-timeslot-session" /><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97680?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 11:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70576920-6e76-4415-9bd2-67348febbbc9</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Hi, it hard to say definitely now. I have to perform alot of tests. But subjectively, yes. It did help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97681?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2017 07:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b0a9db3-ff43-4fd4-86f1-ae5d8a2489da</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Did it help to use Timeslot priority NORMAL?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97679?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 12:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73c2b43e-93d9-4b10-b6d4-21cc4c51d850</guid><dc:creator>Valer_I</dc:creator><description>&lt;ul&gt;
&lt;li&gt;&amp;quot;&lt;em&gt;So you can try two things: Increase CST&lt;/em&gt;&amp;quot; - I cant, because iPhones rejects connection parameters update request if CST higher than 6s (confirmed in &amp;quot; Bluetooth Accessory Design Guidelines for Apple Products Release R7,  3.6 Connection Parameters&amp;quot;)&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97677?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 10:16:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e6cf0ba-4984-400f-b2ae-f63988a2fc59</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Thanks, the links are usefull for me! Yes sniffer was placed near nRF slave device. But my question was abot attempts of SD to mainanin connection. In lower part of your figure master does not update NESN bit, slave receive it and do not try to retransmit emediately but keeps slave latency enabled. And at same (as presented in log) behaviour the link range is better for SD connection than for my own stack connection. This fact pushed me to ask question here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97678?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 09:16:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c861f95-2210-4c43-b1fa-2edd40e4907e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;You can actually see that the Softdevice (Slave) answers your phone (Master), but as you walk out of range the phone stops hearing the Slave. Your sniffer seems to always be in range of the Slave and records everything.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nesn.png" alt="nesn" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/blogs/841/bluetooth-smart-and-the-nordics-softdevices-part-2/"&gt;Here&lt;/a&gt; is a good blog explaining the NESN mechanisms.&lt;/p&gt;
&lt;p&gt;Regarding the Timeslot I suggest that you have a look at &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.sds/dita/softdevices/s130/concurrent_multiprotocol_tsl_api/tsl_usage_examples.html"&gt;this documentation&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97682?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 11:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c71acae4-0445-4679-8995-aef46f1d7a5e</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Dear Martin Børs-Lind, I have done some research and have additional question. I updated my original question with sniffer log. The setup was as next: I placed sniffer near my nRF device( peripheral ) and connected it to the phone with nRFConnect. I walked away with phone until connection was broken. In log I did not seen any attempts of softdevice to maintain the connection.
So what &amp;quot;When the Softdevice notices that a connection is approaching supervision timeout though, it will disregard all time slots, regardless of their priority level, to maintain the connection.&amp;quot; is about? Could you explain into more details?
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97673?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2017 07:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe6d4342-3868-4db0-8981-f589b0c7472d</guid><dc:creator>Martin Tverdal</dc:creator><description>&lt;p&gt;Just want to clarify. If the SoftDevice will not drop any packets it considers important to service a HIGH priority timeslot. It will only voluntarily drop what it considers as un-important packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97672?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2017 06:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:297435e3-6396-460f-bfb6-1a5c9f3f5a98</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Yes, decrease. The Softdevice will voluntarily drop packets to service timeslots instead, and a BLE link can only lose so and so many packets before the link breaks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97675?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 21:48:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49068fad-dc12-4971-a4f2-1f07f0933e0f</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Thanks, i&amp;#39;ll try. One more thing to clarify &amp;quot;high timeslot priority will impact the link quality&amp;quot; means decrease link qualify?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97676?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 10:46:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e06c30f1-526f-4aaf-9464-5d11977af82f</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;When you are using the Timeslot API your are allowing the Softdevice to exploit slave latency and supervision timeout and skip certain BLE events if they coincide with a scheduled timeslot event.&lt;/p&gt;
&lt;p&gt;When the Softdevice notices that a connection is approaching supervision timeout though, it will disregard all time slots, regardless of their priority level, to maintain the connection. This is because keeping the BLE link alive always has priority over the timeslot API. If your timeslots have priority NORMAL however, the Softdevice will discard all timeslot events that coincides with BLE events. So yes, a high timeslot priority will impact the link quality. Your CST is also relatively short, so if the Softdevice skips a few BLE events to run timeslot events, you get vulnerable to disconnects due to packet loss. So you can try two things: Increase CST and use timeslot priority NORMAL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97674?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 22:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9d331ab-6140-407c-9b91-6682b699417c</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;HI, I faced the problem with android phone and windows 10 centrals. I have to enable logging on central to get the disconnection reason. Answer to second question ci: 30ms, sl:25, cst:6s.
And the third question make me think to do some code review. At connection I always use high priority in connection abnd timeslots length are about 2500us, timeslot extention not implemented.Could  high timeslot priority have impact on softdevice&amp;#39;s connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97671?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2017 13:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:882eea83-1cd1-4e33-b1c5-926223dbcee4</guid><dc:creator>Martin Tverdal</dc:creator><description>&lt;p&gt;Hi,
Disconnects does not have to be a symptom of a bug in code. It can just be that the link was lost due to noise in the environment. To rule this out it would be very interesting to know the disconnect reason. Maybe it is just BLE_HCI_CONNECTION_TIMEOUT? It is interesting to know the disconnect reason on both sides. What is you central side? A phone? It should report a disconnect reason too, and it would be helpful in order to understand what is going on.&lt;/p&gt;
&lt;p&gt;Second question: What connection parameters are you using? What is the connection interval? What is slave latency? And what is supervision timeout?&lt;/p&gt;
&lt;p&gt;Third question: How are you using the timetlot API? Do you ever use NRF_RADIO_PRIORITY_HIGH? or always NRF_RADIO_PRIORITY_NORMAL? What is the longest timeslot length in us you request? And do you use the feature to extend the timeslot once you are in it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97667?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2017 20:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:372ff9bb-3608-4b55-b181-4467df461aeb</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;I use distinct sound notification on device at connection, disconnection and firmware start. So thats why I can exclude hardfault or reboot.I do not use sdk, but only &amp;quot;sd_ble_&amp;quot; level API. I do not caught reason yet because I can get it on peripheral side only, and device is not connected to debug interface. I think of passing this data to central over ble after reconnection. It occurs 2-3 times a day, sometimes at night.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97668?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2017 15:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83a1dd4e-f4c5-4d0a-bf30-83bbf3014c65</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I misread your question and assumed that by &amp;quot;logs on the central side&amp;quot; you were able to read out some debug messages from your peripheral device.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;What SDK are you using?&lt;/li&gt;
&lt;li&gt;On a BLE_GAP_EVT_DISCONNECTED event you can read out the reason with p_ble_evt-&amp;gt;evt.gap_evt.params.disconnected.reason.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;I use watchdog for 30s and seen logs on central side, it restores connection immediately&lt;/em&gt; Is this really a guarantee that you are not experiencing reboots or hard faults?&lt;/li&gt;
&lt;li&gt;Can you estimate how frequently this occurs?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97669?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2017 14:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f144e44-ca49-42b5-aa6d-a75dcdc24eef</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;8.0.0&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I receive BLE_GAP_EVT_DISCONNECTED but do not know the reason yet. Just after I start advertising and central connect it back.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;No, what logger are you talking about?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Long time connection without any &amp;quot;load&amp;quot; on central or peripheral device.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble rare disconnection on softdevice with active timeslot session.</title><link>https://devzone.nordicsemi.com/thread/97670?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2017 12:19:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38cf281f-a90d-43c3-a0fd-a9f1f377192e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;It seems strange that the connection is lost without any warnings, reboots, or hard faults at all.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;What S110 version are you using?&lt;/li&gt;
&lt;li&gt;Are you getting the BLE_GAP_EVT_DISCONNECTED event with any disconnect reason?&lt;/li&gt;
&lt;li&gt;Do you get any useful information from the logger?&lt;/li&gt;
&lt;li&gt;Are you staying in connection for a long time or connecting and disconnecting rapidly.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>