<?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>Random BLE disconnect/re-connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67647/random-ble-disconnect-re-connect</link><description>Hi, 
 
 We are developing a product that consists of a &amp;quot;central&amp;quot; and &amp;quot;peripheral&amp;quot; device. A small amount of data is periodically send from the central to peripheral device (to keep the 2 in sync). The period ranges from nom. 500ms up to several seconds</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Oct 2020 00:13:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67647/random-ble-disconnect-re-connect" /><item><title>RE: Random BLE disconnect/re-connect</title><link>https://devzone.nordicsemi.com/thread/277490?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 00:13:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27bccdbc-5a2e-4190-9fd4-d9834429d92c</guid><dc:creator>chrismy</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Chris.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE disconnect/re-connect</title><link>https://devzone.nordicsemi.com/thread/277392?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 12:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9b2c0df-3276-494b-a4f1-4d4e2adb26e0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Chris,&lt;/p&gt;
[quote user="chrismy"]Thanks for that.&amp;nbsp; My &amp;quot;central&amp;quot; device had its min/max connection intervals set to 7.5ms/30ms, while the slave was 100ms/200ms.&amp;nbsp; By setting the peripheral to 7.5ms/30ms (as per the central device) it is now working very well.[/quote]
&lt;p&gt;Good to hear.&lt;/p&gt;
[quote user="chrismy"]Is it correct to say that what is meant by MIN_CONNECTION_INTERVAL and MAX_CONNECTION_INTERVAL is the time the radio is asleep[/quote]
&lt;p&gt;The connection interval itself is the time between the start of two consecutive connection events. The radio will be turned off between the end of a connection event and the start of the next. This min and max connection interval configuration are used to determine the connection interval used for the link. Specifically, the central first dictates the connection interval, but this can subsequently be updated based on suggestions from the peripheral and decision by the central (this is done in a connection parameter update procedure).&amp;nbsp;&lt;/p&gt;
[quote user="chrismy"]What is meant by the SUPERVISION_TIMEOUT?&amp;nbsp; Is that essentially the time it needs to have lost packets for before it gives up and disconnects?[/quote]
&lt;p&gt;Yes. The supervision timeout specifies a duration of which a packet needs to be successfully transferred (i.e. sent and acknowledged). If no packet is successfully transmitted during this time, the link will be disconnected due to supervision timeout.&lt;/p&gt;
[quote user="chrismy"]Just trying to gain a better understanding of how to configure the system for next time.[/quote]
&lt;p&gt;That makes sense. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/28058/what-is-connection-parameters/110496#110496"&gt;This post&lt;/a&gt; gives a good overview of the connection parameters.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE disconnect/re-connect</title><link>https://devzone.nordicsemi.com/thread/277262?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 00:20:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94671375-be0b-4fb6-a74d-ad8e26d0e3fa</guid><dc:creator>chrismy</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Einar,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for that.&amp;nbsp; My &amp;quot;central&amp;quot; device had its min/max connection intervals set to 7.5ms/30ms, while the slave was 100ms/200ms.&amp;nbsp; By setting the peripheral to 7.5ms/30ms (as per the central device) it is now working very well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is it correct to say that what is meant by MIN_CONNECTION_INTERVAL and MAX_CONNECTION_INTERVAL is the time the radio is asleep?&amp;nbsp; I.e. in my case the radio will now wake up and be active every 7.5 to 30ms?&amp;nbsp; I only ask as previously&amp;nbsp;I seemed to always have between 100 and 200ms of latency between the central device sending data and the peripheral device receiving the data (and this corresponded to the max/min conn interval).&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is meant by the SUPERVISION_TIMEOUT?&amp;nbsp; Is that essentially the time it needs to have lost packets for before it gives up and disconnects?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Just trying to gain a better understanding of how to configure the system for next time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Chris.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE disconnect/re-connect</title><link>https://devzone.nordicsemi.com/thread/277221?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 18:03:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17f482af-4bbb-40e2-a4fc-8b25ab90e5d2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Chris,&lt;/p&gt;
[quote user=""]Are there any timing parameters, etc that I can alter to make the system more &amp;quot;robust&amp;quot;?&amp;nbsp;[/quote]
&lt;p&gt;Yes. Assuming the disconnection reason is timeout due to packet loss, this can probably be improved by looking at the connection parameters. The combination of connection interval and supervision timeout (and paritally slave latency) dictates how many packets can be lost before the link is disconnected due to supervision timeout. Generally, reducing the connection interval and/or increasing the supervision timeout will make the link more robust.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>