<?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>Long duration of ~1.5sec to establish a connection with BLE5 on nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60933/long-duration-of-1-5sec-to-establish-a-connection-with-ble5-on-nrf52840</link><description>Hi, 
 we have two nrf52840 which shall connect very quickly. 
 The scan+advertise cycle is very fast (we have no bootloader). After switching on the peripheral it is recognized by the central in probably 0.1sec 
 But the connection cycle takes about 1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 May 2020 08:54:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60933/long-duration-of-1-5sec-to-establish-a-connection-with-ble5-on-nrf52840" /><item><title>RE: Long duration of ~1.5sec to establish a connection with BLE5 on nrf52840</title><link>https://devzone.nordicsemi.com/thread/247789?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 08:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc631612-d6a7-42b7-8f3e-db5f361f97e3</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;The connection is usually established very fast, what takes time is the Service Discovery procedure. In the Service discovery procedure, there are about 10-20 messages sent back and forth to iterate trough the ATTribute table of the Peripheral. If the connection interval is 100ms you will have a delay of 1-2s before the central can enable any notifications or read any characteristics. Lowering the Connection interval will reduce this delay, you can increase the connection interval to 100ms afterward if that&amp;#39;s your goal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suggest you set up a DK as a sniffer according to&amp;nbsp;&lt;a title="nRF Sniffer for Bluetooth LE" href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html?cp=8_4"&gt;RF Sniffer for Bluetooth LE&lt;/a&gt;, and study the sniffer trace of one of your connection establishment events. This will give you a good insight into what&amp;#39;s going on on-air.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>