<?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>Fast connecting to a bonded device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79897/fast-connecting-to-a-bonded-device</link><description>Hello all, 
 I have a BLE central application based on nRF Connect SDK V1.6.1 and a BLE peripheral application based on nRF5 SDK 17.1.0. The peripheral wakes up on interrupt and starts advertising. The central scans all the time for the peripheral and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Sep 2021 12:58:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79897/fast-connecting-to-a-bonded-device" /><item><title>RE: Fast connecting to a bonded device</title><link>https://devzone.nordicsemi.com/thread/331519?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 12:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e11a985-1e8a-4359-acdd-e4df572b1646</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I understand. That seems to be the only option for now.&lt;/p&gt;
&lt;p&gt;In case other find this thread, it turns out that the Zephyr Bluetooth controller implementation now takes 4 connection events to secure the link,&amp;nbsp;due to control procedure handling moved to lower priority Upper Link Layer (previously it was 3 connection events).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fast connecting to a bonded device</title><link>https://devzone.nordicsemi.com/thread/331505?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 12:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c62d7a9-9033-4c6a-8839-68eef4595a0b</guid><dc:creator>db_lw</dc:creator><description>&lt;p&gt;Ok, thank you for your help. I will then not use bonding at the moment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fast connecting to a bonded device</title><link>https://devzone.nordicsemi.com/thread/331268?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 10:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62afdd3d-d827-4f2c-8209-15603d400685</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;I tested a similar setup on my end but with 1 Mbps and see the same. I will check more with the stack team, but it looks like it is&amp;nbsp;difficult to speed this up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fast connecting to a bonded device</title><link>https://devzone.nordicsemi.com/thread/331227?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 07:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1513be9e-3562-410d-85c8-6119f19fd4cf</guid><dc:creator>db_lw</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;thanks for your response. Ok, I guess then I have to reconsider using bonding for this application.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/79897/fast-connecting-to-a-bonded-device/331129#331129"]Could you test that just for comparison?[/quote]
&lt;p&gt;I probably won&amp;#39;t do that because in this case the use of coded phy is mandatory.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fast connecting to a bonded device</title><link>https://devzone.nordicsemi.com/thread/331129?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 14:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb9ef109-c87e-479c-9351-2589da752f7b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;The sniffer trace shows well what happens on air, and there are a few connection events between&amp;nbsp;LL_ENC_REQ/RSP and LL_START_ENC_REQ/RSP. Unfortunately I was not able to conclude if it is possible to reduce the time more or not today, so I will have to get back to you early next week.&lt;/p&gt;
&lt;p&gt;Edit: I discussed a bit with the BT stack team and they did not see much room for improvement, but may be that it could be slightly faster with 1 Mbps instead of coded phy. Could you test that just for comparison?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fast connecting to a bonded device</title><link>https://devzone.nordicsemi.com/thread/330856?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 12:47:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5670a3c-a1df-47a9-bdd3-8cb0614ad37c</guid><dc:creator>db_lw</dc:creator><description>&lt;p&gt;I attached my sniffer trace. Maybe you can see something that&amp;#39;s causing a delay.&lt;/p&gt;
&lt;p&gt;Edit: Sniffer trace with key for decryption.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_lesc_5F00_conn_5F00_already_5F00_bonded_5F00_with_5F00_key.pcapng"&gt;devzone.nordicsemi.com/.../ble_5F00_lesc_5F00_conn_5F00_already_5F00_bonded_5F00_with_5F00_key.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fast connecting to a bonded device</title><link>https://devzone.nordicsemi.com/thread/330844?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 12:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:709eff58-a093-40d6-a2ef-cae785911405</guid><dc:creator>db_lw</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;thanks for your reply.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/79897/fast-connecting-to-a-bonded-device/330777#330777"]Can you make a sniffer trace showing the packet exchange on air?[/quote]
&lt;p&gt;I wasn&amp;#39;t aware that the sniffer is able to capture Coded PHY. The last time I check it wasn&amp;#39;t supported. I will capture a sniffer trace.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/79897/fast-connecting-to-a-bonded-device/330777#330777"]Do you call&amp;nbsp;bt_conn_set_security() immediately after the connection was established?[/quote]
&lt;p&gt;I would say it&amp;#39;s immediately. I call it in the callback function that is registered with bt_conn_cb_register().&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fast connecting to a bonded device</title><link>https://devzone.nordicsemi.com/thread/330777?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 09:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6669d787-942f-4ca9-a645-64db22020892</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Just connecting and encrypting an already bonded link should be fast. Can you make a sniffer trace showing the packet exchange on air? Do you call&amp;nbsp;bt_conn_set_security() immediately after the connection was established?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>