<?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>Slow connect in a SDK15 previously bonded peripherial device.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51897/slow-connect-in-a-sdk15-previously-bonded-peripherial-device</link><description>Hi! 
 I have SDK15 central (nRF52832) with previously bonded peripherial device also SDK15 (nRF52810). 
 All works. But sometime when power on on the peripherial device, connect establish up to 5 seconds. 
 In a LOG central i see next: 
 0&amp;gt; &amp;lt;info&amp;gt; app</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Sep 2019 06:12:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51897/slow-connect-in-a-sdk15-previously-bonded-peripherial-device" /><item><title>RE: Slow connect in a SDK15 previously bonded peripherial device.</title><link>https://devzone.nordicsemi.com/thread/209064?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 06:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ec4ea9b-4b41-4aee-b894-4be09a99d26d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, reducing the advertisement interval to 500ms should result in a faster connection establishment. The timing on the central side is fixed, as stated before, a central will wait for the second adv. packet before sending the actual conn.request. After that the central and will exchange packets to exchange link layer features, agree on connection interval, etc. You can try to lower the connection interval and then increase after the connection and service discovery phase is complete.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow connect in a SDK15 previously bonded peripherial device.</title><link>https://devzone.nordicsemi.com/thread/208999?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 14:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd18ab2a-ef71-4512-b7b5-f7c78b5c9c39</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Thanks, therefore, next step to increase connect time- more fast advertise on peripherial side? For ex. rfom 1 s to 500 ms? Is there all possibility to&amp;nbsp;&lt;span&gt;increase connect time of central?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow connect in a SDK15 previously bonded peripherial device.</title><link>https://devzone.nordicsemi.com/thread/208977?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 13:39:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e4b1fd2-d0d8-423a-b999-ff0e3756758c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The Scanner interval and window you are using&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Scan interval: 100ms (160 * 0.625ms)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Scan window: 98.75ms (158 * 0.625ms)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;means that you are effectivly scanning for 98,75% of the time, there is a 1,25ms gap between the end of one scan event and the start of the next. In addition there is also some time that the SD needs to reconfigure the RADIO frequency when swiching channels.&amp;nbsp; So if you want to increase the time it take to connect you will have to decrease the advertisement interval on the peripheral side.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow connect in a SDK15 previously bonded peripherial device.</title><link>https://devzone.nordicsemi.com/thread/208731?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 14:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a44dde-9ed0-4442-be08-8653e9da7789</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;&lt;span&gt;320 and 300 -no effect, but change to 0xA0 0x9E - more faster. Any else idea how to increase connection speed ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow connect in a SDK15 previously bonded peripherial device.</title><link>https://devzone.nordicsemi.com/thread/208725?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 13:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fec67ee7-44c2-43b5-bbb2-c05b73096c72</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, you can try that.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow connect in a SDK15 previously bonded peripherial device.</title><link>https://devzone.nordicsemi.com/thread/208722?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 13:51:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa7c76a5-eebe-4e67-b180-b1e5205b2717</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I very fear to make&amp;nbsp;&lt;span&gt;continously scanning becouse once I did it. And nRF can&amp;#39;t works fine. Your collegias told me that shouldn&amp;#39;t make&amp;nbsp;continously scanning due to nRF should handle requests beetwen scan interval. For this reason I rest small window beetwen scanning.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;May be should increase both parameters? For ex. 320 and 300?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow connect in a SDK15 previously bonded peripherial device.</title><link>https://devzone.nordicsemi.com/thread/208701?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 13:19:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699bc8ad-2f01-4082-b576-a0260f1215b3</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;span&gt;Yes, im just stating that the Central will always wait for a second advertisement&amp;nbsp;packet before sending the actual connection request.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Scan Interval: (0x00A0) 160 * 0.625ms = 0.10seconds&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Scan window:&amp;nbsp;(0x0096) 150 * 0.625ms =&amp;nbsp;93.75 milliseconds.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try setting the Scan Window = Scan Interval, then you should be scanning &amp;quot;continously&amp;quot;( takes some time to switch between the advertisment channels).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow connect in a SDK15 previously bonded peripherial device.</title><link>https://devzone.nordicsemi.com/thread/208675?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 12:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b6cf083-3598-41e6-885a-19e50c752110</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Advertising interval on the peripherial side is 1 Sec, like in the SDK13. Ofcourse,&amp;nbsp;&lt;span&gt;the peripheral device is still in range.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;May be should change the window scan?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow connect in a SDK15 previously bonded peripherial device.</title><link>https://devzone.nordicsemi.com/thread/208652?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 11:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bacd2de3-b1c5-40e9-8026-cdb89f07556d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Mikhail,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What advertisement interval is the peripheral device using?&lt;/p&gt;
&lt;p&gt;The central will actually send the connection request upon receiving the second advertisment packet from the peripheral. This is to ensure that the peripheral device is still in range and avoid sending conn requests on spurious advertisment packets. Hence, the delay between the&lt;span&gt;BLE_GAP_EVT_ADV_REPORT and the connected event will be atleast 2 x the advertisement interval.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It could also be the deffered logging, i.e. log statments are queued and processed when the CPU is idleing, is contributing to the delay as well.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>