<?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>How to config BLE to minimize time of building connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80012/how-to-config-ble-to-minimize-time-of-building-connection</link><description>Hi 
 I am a beginner of bluetooth 
 I want to build BLE connection between nrf52833 and nrf52810 as soon as possible (maybe in 100-200ms) 
 can I achieve that by config Advertising Interval,Scan Interval and Scan window or others configuration? 
 SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Oct 2021 07:54:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80012/how-to-config-ble-to-minimize-time-of-building-connection" /><item><title>RE: How to config BLE to minimize time of building connection</title><link>https://devzone.nordicsemi.com/thread/332493?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 07:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c85cf03-e789-4daf-837e-7160995d3770</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Eric_H"]Because master can catch the advertising a least once time in its&amp;nbsp;&lt;span&gt;scan window,&amp;nbsp;&lt;/span&gt;the time cost of connection will less then 120 ms(for 3 channel*40 ms) is it correct?Or I misunderstand how scan and advertisement work ?[/quote]
&lt;p&gt;Yes, that is correct.&lt;/p&gt;
[quote user="Eric_H"]&lt;p&gt;And, is it any others configuration can help it connect faster(maybe whitelist...)?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;You can try adding pairing/bonding to the example, that should help with the connection speed.&amp;nbsp;&lt;span&gt;You will need to add the peer manager to the example in order to support pairing/bonding.&amp;nbsp;&lt;/span&gt;&lt;span&gt;You&amp;nbsp;should&amp;nbsp;take&amp;nbsp;a look at another example on how it is done, for example &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_hrs.html?cp=8_1_4_2_2_13" rel="noopener noreferrer" target="_blank"&gt;ble_app_hrs&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to config BLE to minimize time of building connection</title><link>https://devzone.nordicsemi.com/thread/332177?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 14:28:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83821228-8e7f-4663-9922-d41b18b988e8</guid><dc:creator>Eric_H</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;thanks for your reply&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t modify any default setting except&amp;nbsp;&lt;span&gt;a&lt;/span&gt;&lt;span&gt;dvertising interval, scan interval and scan window&lt;/span&gt;&lt;span&gt;(maintain the original configuration from nrf_ble_uart example),&lt;/span&gt;and I test it in a quiet room with seldom&amp;nbsp;&lt;span&gt;wireless devices.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I want to know that is it possible to make it&amp;nbsp; connect&amp;nbsp; fast every time(as sometimes it can do),&lt;/span&gt;&lt;span&gt;for example if I set:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;advertising interval: 20ms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;scan interval: 40ms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;scan window: 40ms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Because master can catch the advertising a least once time in its&amp;nbsp;&lt;span&gt;scan window,&amp;nbsp;&lt;/span&gt;the time cost of connection will less then 120 ms(for 3 channel*40 ms) is it correct?Or I misunderstand how scan and advertisement work ?&lt;/p&gt;
&lt;p&gt;And, is it any others configuration can help it connect faster(maybe whitelist...)?&lt;/p&gt;
&lt;p&gt;Thanks you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to config BLE to minimize time of building connection</title><link>https://devzone.nordicsemi.com/thread/331370?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 15:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:039f1b5e-38a2-475a-be71-1c484dfdb3d2</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;p&gt; want to build BLE connection between nrf52833 and nrf52810 as soon as possible (maybe in 100-200ms)&lt;/p&gt;
&lt;p&gt;can I achieve that by config Advertising Interval,Scan Interval and Scan window or others configuration?&lt;/p&gt;[/quote]
&lt;p&gt;You can adjust the mentioned parameters for it to connect faster.&lt;/p&gt;
[quote user=""]Sometimes they build connection immediately but sometimes they spend 2-3 second,which longer a lot then I expect[/quote]
&lt;p&gt;2-3 second does seem a bit long. Have you made any modifications other than the a&lt;span&gt;dvertising interval, scan interval and scan window? Are you around a lot of wireless devices when testing?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>