<?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>Effect of connection interval on connection stability</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67254/effect-of-connection-interval-on-connection-stability</link><description>Hi, 
 1.I have a long-rage ( Coded PHy ) connection between a Master and a Peripheral. Master is 52840 , Peripheral is 52833 ( on battery ) 
 We have notice that setting longer connection interval ( &amp;gt; 150 ) is making the connection unstable. 
 lowering</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 17 Oct 2020 09:53:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67254/effect-of-connection-interval-on-connection-stability" /><item><title>RE: Effect of connection interval on connection stability</title><link>https://devzone.nordicsemi.com/thread/275447?ContentTypeID=1</link><pubDate>Sat, 17 Oct 2020 09:53:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10fb1843-0750-4f57-84b0-8304d0e405eb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Ran,&lt;/p&gt;
[quote user="wrani"]&lt;p&gt;So, after reading quite a bit, it seems that for most application, the following combination offers low power consumtion and high througput when needed :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Short Connection Interval + High Slave Latency + Long&amp;nbsp;&lt;span&gt; supervision timeout&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Combined with max MTU and DATA_LENGTH values.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Correct ?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Yes, that is correct, particularly for the peripheral device. For the central it needs to listen on every connection interval, so slave latency would not help as much in that case.&lt;/p&gt;
[quote user="wrani"]Is there a safe slave latency value , one the does not causes time drifts between to NRF52&amp;#39;s ?[/quote]
&lt;p&gt;BLE uses window widening to accommodate more drift as the connection interval or slave latency increases (adding more margin). (This is only up to a certain point though,&amp;nbsp;up to when&amp;nbsp; the window widening time is (CI/2) - TIFS - see BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 6, Part B section 4.2.4 for details). So anything up to this value which is set automatically, and also depends on clock accuracy, should be considered equally safe.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Effect of connection interval on connection stability</title><link>https://devzone.nordicsemi.com/thread/275363?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 12:47:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0cdcf46-2086-4ffe-9ecf-d7d48d1be577</guid><dc:creator>wrani</dc:creator><description>&lt;p&gt;Einar Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My peripheral is a battery operated device that controls solenoid remotely.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That matters to me most is :&lt;/p&gt;
&lt;p&gt;a. Power Consumptions - Device is Idle 99% of the time&lt;/p&gt;
&lt;p&gt;b. Reliability - I need as much a guarantee that message travel arrives safely from the Gateway ( NRF52850)&lt;/p&gt;
&lt;p&gt;b. long range ( via coded phy and 8db TX )&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I care &amp;quot;less&amp;quot; about&amp;nbsp; &amp;quot;responsivness&amp;quot; and &amp;quot;throughput&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, after reading quite a bit, it seems that for most application, the following combination offers low power consumtion and high througput when needed :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Short Connection Interval + High Slave Latency + Long&amp;nbsp;&lt;span style="background-color:#ffffff;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt; supervision timeout&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Combined with max MTU and DATA_LENGTH values.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Correct ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a safe slave latency value , one the does not causes time drifts between to NRF52&amp;#39;s ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Ran&amp;nbsp;&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: Effect of connection interval on connection stability</title><link>https://devzone.nordicsemi.com/thread/275247?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 06:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32f791e6-3abd-4d98-8334-60ce88c2db5c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Ran,&lt;/p&gt;
[quote user="wrani"]&lt;p&gt;&lt;span style="background-color:rgba(255, 255, 255, 1);color:rgba(17, 23, 26, 1);float:none;font-family:&amp;#39;GT Eesti&amp;#39;, &amp;#39;Helvetica&amp;#39;, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;text-align:left;text-decoration:none;text-indent:0;text-transform:none;white-space:normal;"&gt;if the connection interval is 30&lt;/span&gt; ..&lt;span style="background-color:rgba(255, 255, 255, 1);color:rgba(17, 23, 26, 1);float:none;font-family:&amp;#39;GT Eesti&amp;#39;, &amp;#39;Helvetica&amp;#39;, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;text-align:left;text-decoration:none;text-indent:0;text-transform:none;white-space:normal;"&gt; you reduce the connection&amp;nbsp;interval to 60&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why going from 30 to 60 is reducing the connection interval ? number went up. what am I missing here ?&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;Ah, yes. I guess I was focused on the number of packets when i wrote &amp;quot;reduce&amp;quot;. Updated the post to &amp;quot;increase&amp;quot; now.&lt;/p&gt;
[quote user="wrani"]Also - what is &amp;quot;short&amp;quot; for connection interval ? 30 sounds right ?[/quote]
&lt;p&gt;I mean that as a relative term, and it depends on a lot of factors.&amp;nbsp; As explained in my previous post, if you have a bad channel to begin with (such as with long distance between the peers) and expect a lot of packet loss for that reason, then increasing the connection interval while keeping the supervision timeout is expected to cause more timeouts, as explained in my previous post.&amp;nbsp;So the mechanism is not that complicated in principle.&lt;/p&gt;
&lt;p&gt;Exactly which tradeoff makes sense for you is difficult for me to say.&amp;nbsp;What rate of packet loss do you expect? What is the connection supervision timeout (you have not stated)? Is a timeout a problem or not, etc?&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Effect of connection interval on connection stability</title><link>https://devzone.nordicsemi.com/thread/275242?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 04:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8403c2ba-2ba5-421e-a437-86664719b2d7</guid><dc:creator>wrani</dc:creator><description>&lt;p&gt;Thx. as for&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;if the connection interval is 30&lt;/span&gt; ..&lt;span style="background-color:#ffffff;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt; you reduce the connection&amp;nbsp;interval to 60&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why going from 30 to 60 is reducing the connection interval ? number went up. what am I missing here ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also - what is &amp;quot;short&amp;quot; for connection interval ? 30 sounds right ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ran&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Effect of connection interval on connection stability</title><link>https://devzone.nordicsemi.com/thread/275200?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 19:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f279be2f-235a-48a0-9377-0278b636f49d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Ran,&lt;/p&gt;
[quote user=""]Why does the conn. interval&amp;nbsp;causes disconnection&amp;nbsp; ? is this a Coded Phy thing ?&amp;nbsp;[/quote]
&lt;p&gt;The connection interval impacts the stability of the link because it affects the number of packets that can be lost before the connection times out. For example, if the connection interval is 30 and the supervision timeout is 300, then you must loose 10 packets in a row in order to get a supervision timeout. But if you increase the connection&amp;nbsp;interval to 60, but keep the 300 supervision timeout, then you only need to loos 5 packets in a row in order to get a timeout.&lt;/p&gt;
[quote user=""]With power consumption in mind, I am struggling to com up with the connection parameters so I can satisfy all 15 connections.&amp;nbsp;[/quote]
&lt;p&gt;I suggest you use a very long connection supervision timeout (at least if you don&amp;#39;t have restrictions on latency). The maximum supervision timeout is 32 seconds. You could also combine that with using a short&amp;nbsp;connection interval, but use slave latency. (With slave latency connection intervals can be skipped, but retransmissions will occur on every connection interval until success or supervision timeout.)&lt;/p&gt;
[quote user=""]3. Do I need to consider the Peripherals RSSI ( or distance from Master) and set different connection parameters ? ( requested by Peripheral )&amp;nbsp;&lt;br /&gt;- Or - one size fits all ?&amp;nbsp;[/quote]
&lt;p&gt;I would try to find a common configuration for simplicity. If what I suggested above is acceptable and you have the same requirements for all the links, then I do not see why you could not use the same connection parameters on all links as well.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>