<?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 connection takes long time with SDK17.1.0 example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81633/ble-connection-takes-long-time-with-sdk17-1-0-example</link><description>Hi, 
 I am currently evaluating BLE long range feature for one of the our product. for this, using two nRF52840 dongle PCA10059. One used for peripheral and another for central. Using SDK 17.1.0 examples and S140. 
 When central initiate connection with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Nov 2021 10:16:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81633/ble-connection-takes-long-time-with-sdk17-1-0-example" /><item><title>RE: BLE connection takes long time with SDK17.1.0 example</title><link>https://devzone.nordicsemi.com/thread/339187?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 10:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1242d853-69f8-481b-a5dd-43d7318c9edb</guid><dc:creator>karanbakshi</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for clarification and support.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bipin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE connection takes long time with SDK17.1.0 example</title><link>https://devzone.nordicsemi.com/thread/339184?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 10:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c36e7813-330a-4699-aa89-0647df99f896</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Setting scan interval and window to the same will increase the chance to discover advertising devices as it will effectively be scanning for the entire scan interval instead of just for part of it, which I assume is why this resolved it. What might have occurred is that you missed an advertising because the app stops scanning after receiving one advertisement.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE connection takes long time with SDK17.1.0 example</title><link>https://devzone.nordicsemi.com/thread/338975?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 10:08:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abd286e6-90de-42b4-b03c-f07c6746dff4</guid><dc:creator>karanbakshi</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After changing scan&amp;nbsp;window to similar to scan interval, delay issue in connection resolved. Now it is connected in couple of seconds. Earlier scan interval was 160 and window was 80 so I have made both equal to 160.&lt;/p&gt;
&lt;p&gt;for my knowledge, if you know, Does this change in scan parameter affects in connection timing?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bipin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE connection takes long time with SDK17.1.0 example</title><link>https://devzone.nordicsemi.com/thread/338912?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 07:08:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a152128b-a288-49c4-a3e9-6919f6eccb47</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="karanbakshi"]With this kind of advertisement, I am facing delay in connection via central.[/quote]
&lt;p&gt;I assume this is pointing to the Dongle central you&amp;#39;re using, and you only see this (3 minute) delay when using this central? Can you show me&amp;nbsp;a snippet of how you handle advertisements in your central device? If possible, could you do a sniffer trace of this happening, so we can see what causes this delay on the air. If you don&amp;#39;t have a dedicated sniffer device, check out the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html"&gt;nRF Sniffer &lt;/a&gt;that can be used with one of our&amp;nbsp;DKs or the Dongle&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE connection takes long time with SDK17.1.0 example</title><link>https://devzone.nordicsemi.com/thread/338688?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 07:16:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a25a3849-6ca7-4723-b039-a92b56d5fb46</guid><dc:creator>karanbakshi</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;Let me explain my advertisement logic here as I have observed one thing regarding it.&lt;/p&gt;
&lt;p&gt;Peripheral device advertise interval is 2sec. With sample code, using stack advertisement function, there is not much delay in connection. it is connected within 10 second maximum.&lt;/p&gt;
&lt;p&gt;But I am using timer based advertisement means running 2 second timer, on timer interrupt start advertisement, on radio notification event stops advertisement and start it again on next 2sec timer interrupt.&amp;nbsp;set radio notification on NRF_RADIO_NOTIFICATION_TYPE_INT_ON_INACTIVE.&lt;/p&gt;
&lt;p&gt;With this kind of advertisement, I am facing delay in connection via central. but with phone app as a central, it connects within some seconds.&lt;/p&gt;
&lt;p&gt;I am following timer based advertisement because I am also controlling other iBeacon and Eddystone frames using same kind of timer and radio notification event.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bipin Patel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE connection takes long time with SDK17.1.0 example</title><link>https://devzone.nordicsemi.com/thread/338603?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 14:19:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9a082fa-9a38-46b6-84a5-d205a18ed70b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Just to make sure. Are you saying it takes more than 3 minues from NRF_SUCCESS until the Dongle connects to the other one? The connection supervision timeout should trigger way before that. Can you try any of the default examples (ble_app_uart and ble_app_uart_c for instance) in the SDK to check if you are able to connect within a reasonable timeframe there? It shouldn&amp;#39;t take more than a few seconds from when they both are turned on. I have tested with Coded PHY myself and have not seen this amount of time for a connection to be initiated successfully.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>