<?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>Significant difference in connection time with different adv intervals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29963/significant-difference-in-connection-time-with-different-adv-intervals</link><description>Hi, 
 I have the following set up: 
 The remote: nrf51822 acts as central 
 The wheels: Each wheel has nrf51822 acting as peripheral. 
 The remote needs to first connect(at time: T1), then bond with both the wheels, exchange some handshake information</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Feb 2018 20:09:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29963/significant-difference-in-connection-time-with-different-adv-intervals" /><item><title>RE: Significant difference in connection time with different adv intervals</title><link>https://devzone.nordicsemi.com/thread/121019?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2018 20:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09295323-926d-4d3d-8fd1-8e6dd12fa3bb</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;The problem is the scanner will block the radio for 300 ms during the scan window. So you need a connection supervision timeout that is long enough to allow that, and accept that you could get that amount of latency on the connection. For reference the scheduling documentation for the SD is available &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/multilink_scheduling/multilink_scheduling.html?cp=2_3_1_0_14"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Significant difference in connection time with different adv intervals</title><link>https://devzone.nordicsemi.com/thread/120021?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2018 22:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dae4865-c326-4400-83f1-f9d55e62b7a4</guid><dc:creator>nordicdev</dc:creator><description>&lt;p&gt;Hi run_ar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for the reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I thought that once connection has established, if the connection interval is short and frequent that would have less impact even if the scan interval is long - please correct me if I am wrong (in my case, my min connection interval = 7.5msec and max connection interval = 30msec; adv interval = 200msec; scan window = 300msec and scan interval = 600msec). In other words, do you mind explaining the relation between the connection interval and scan interval in my case and the cons of having the above settings in my set-up once the connection has established? Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Significant difference in connection time with different adv intervals</title><link>https://devzone.nordicsemi.com/thread/119671?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 08:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c411936e-67c3-4bbf-bfc5-553d0b7ff67c</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;As long as you only need to interact with one device that would probably be fine. But you risk that it still takes a couple of seconds to establish the connection. If you are interacting with several devices I would recommend that you use a shorter scan interval, i.e. something that matches your connection interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Significant difference in connection time with different adv intervals</title><link>https://devzone.nordicsemi.com/thread/119463?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2018 03:45:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afc4c898-c776-47d8-9326-68c7f40f0bf4</guid><dc:creator>nordicdev</dc:creator><description>&lt;p&gt;Hi run_ar, thanks for the reply. What if I have advertisement interval as 200msec and scan window as 1000msec and scan interval as 2000msec? Then, more chances are for not missing all 5 advertisement packets (0 to 1000msec has five 200 msec advertisement packets). Will there be any problems in this set up?Your thoughts, please.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Significant difference in connection time with different adv intervals</title><link>https://devzone.nordicsemi.com/thread/119153?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 13:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94d9af9e-ce9c-4651-837f-ac5f3d7be5c0</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;The scan window cannot be larger that the scan interval. But, yes, if you scan all the time that would increase the chance of establishing the connection faster. Or at least receive the advertisement packet. If you have several scanners performing active scanning it might not be a good idea if all of them scans and sends scan requests that interfere with the connection request.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Significant difference in connection time with different adv intervals</title><link>https://devzone.nordicsemi.com/thread/119152?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 23:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18b2d4db-5f6c-4161-9a7f-765eff1284ce</guid><dc:creator>nordicdev</dc:creator><description>&lt;p&gt;Hi run_ar,
This makes sense. Thank you very much for the clear explanation. What if I have the scan interval as 40msec and scan window of 50msec? Then, there would be more chance of hits than misses, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Significant difference in connection time with different adv intervals</title><link>https://devzone.nordicsemi.com/thread/119151?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 09:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3ad811e-8262-4877-ae13-9d246161aa1b</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/attachment/3cd334ee77e5971f0414e6b931daa73d" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;This means that with a scan interval 100ms and a scan window 50, when using an advertisement interval of 50 ms or 200 ms, there is a significatn risk you will have to wait for a long time. Maybe you could try using 190ms as advertisemenet interval instead? I would also assume that if you use 40 instead of 50 ms you should see considerable faster connection esthablishement.&lt;/p&gt;
&lt;p&gt;Diclaimer: the advertising random delay is not accounted for in the picture above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Significant difference in connection time with different adv intervals</title><link>https://devzone.nordicsemi.com/thread/119150?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 22:24:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91fecd80-0890-412e-bfd0-9c06d5347c71</guid><dc:creator>nordicdev</dc:creator><description>&lt;p&gt;Hi run_ar,
thanks for the reply. Please find my settings:&lt;/p&gt;
&lt;p&gt;Hash define SCAN_INTERVAL               0x00A0  // Determines scan interval in units of 0.625 millisecond.&lt;/p&gt;
&lt;p&gt;Hash define SCAN_WINDOW                 0x0050 // Determines scan window in units of 0.625 millisecond.&lt;/p&gt;
&lt;p&gt;Hash define SCAN_TIMEOUT            0x0000 // Timout when scanning. 0x0000 disables timeout.&lt;/p&gt;
&lt;p&gt;Hash define MIN_CONNECTION_INTERVAL     MSEC_TO_UNITS(7.5, UNIT_1_25_MS)&lt;/p&gt;
&lt;p&gt;Hash define MAX_CONNECTION_INTERVAL     MSEC_TO_UNITS(30, UNIT_1_25_MS)&lt;/p&gt;
&lt;p&gt;I thought, from a logical point of view, there wouldnt be much of a difference (from a user point of view - seeing how long it takes to connect) when advertisement interval is 50msec Vs200msec. Please correct me if I am wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Significant difference in connection time with different adv intervals</title><link>https://devzone.nordicsemi.com/thread/119149?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 10:11:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f03b91b3-195f-4608-8004-bb740d5ed6dd</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Most likely it is expected behavior. But could you also tell us what you scan interval and window is? that could help understanding this. Rememer that the time it takes to establish a connection depends on both the advertiser and the scanner settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>