<?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>LESC &amp;quot;Just Works&amp;quot; Reconnection Issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82209/lesc-just-works-reconnection-issues</link><description>SDK: NCS 1.7.1. 
 Based on: Peripheral UART example 
 Central: nRF Dongle 
 Peripheral: nRF52832 
 Hi, 
 I am running into an issue using the &amp;quot;Just Works&amp;quot; pairing method when attempting to reconnect after successfully pairing and bonding. I modified the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Feb 2022 14:36:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82209/lesc-just-works-reconnection-issues" /><item><title>RE: LESC "Just Works" Reconnection Issues</title><link>https://devzone.nordicsemi.com/thread/351161?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 14:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc22cec-4bc9-453f-a066-d0813f73688d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Sandeep&lt;/p&gt;
&lt;p&gt;Thanks for the reminder, and sorry for not getting back to you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The team confirmed that this is a limitation in the nRF Connect BLE application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately they don&amp;#39;t have any current plans to fix this, as they have a long backlog of other tasks to work on. As a short term quick fix they are planning to add a warning in the interface to inform users of the limitations in the bonding functionality.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC "Just Works" Reconnection Issues</title><link>https://devzone.nordicsemi.com/thread/350986?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 02:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2789f388-f34c-4312-8b3b-a81944017996</guid><dc:creator>swlnk</dc:creator><description>&lt;p&gt;Hello, I&amp;#39;m just checking to see if there&amp;#39;s any progress here.&amp;nbsp;Is there any plan for an update to nRF Connect for Desktop with this issue fixed?&lt;br /&gt;&lt;br /&gt;We have been using the nRF Connect for Desktop BLE application as one of our main test tools during development, and I&amp;#39;d like to know whether we can continue to rely on it long-term.&lt;br /&gt;&lt;br /&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC "Just Works" Reconnection Issues</title><link>https://devzone.nordicsemi.com/thread/348259?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 11:28:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa543d5f-282a-4646-8c83-268ff3a5a874</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Sandeep&lt;/p&gt;
&lt;p&gt;Sorry for the slow response, I just got back from an extended holiday.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the detailed description of the problem, I am now able to reproduce the problem here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will discuss this with the software team and get back to you. It is possible that the bonding data is not properly stored when using the nRF Connect for Desktop BLE application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC "Just Works" Reconnection Issues</title><link>https://devzone.nordicsemi.com/thread/346774?ContentTypeID=1</link><pubDate>Sat, 08 Jan 2022 00:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26b994a8-59ff-4aef-9399-9495e47aab20</guid><dc:creator>swlnk</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Torbj&amp;oslash;rn- &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I work with Tom, who asked the question above.&amp;nbsp;&lt;/span&gt;&lt;span&gt;I can see this issue using NCS v1.8.0 with the peripheral_lbs project, and it actually doesn&amp;#39;t matter if using JustWorks or pairing with a passkey - it fails in both cases.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;****************&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Steps to reproduce:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Use nRF52840 USB dongle with nRF Connect for Desktop v3.9.3, Bluetooth Low Energy app v3.0.0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Open peripheral_lbs project (included in NCS v1.8.0) in Segger Embedded Studio, with target board as nRF52DK for nRF52832&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Under &amp;quot;Configure nRF Connect SDK project&amp;quot; window, find the &amp;quot;Nordic LED-Button BLE GATT service example&amp;quot; options and select &amp;quot;Enable security&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Build and run project on nRF52 DK board, with TeraTerm running to monitor printk statements from the application&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Scan and connect to &amp;quot;Nordic_LBS&amp;quot; in nRF Connect for Desktop&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-After connection, select &amp;quot;Pair&amp;quot; in menu, check &amp;quot;Enable LE Secure Connection pairing&amp;quot; and &amp;quot;Perform bonding&amp;quot;, and click &amp;quot;Pair&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Passkey will be required, so read passkey from the printk output in TeraTerm and enter it in nRF Connect for Desktop&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Pairing succeeds. In desktop log, it says &amp;quot;Security updated, mode:1, level:4&amp;quot;, and it printk output it shows: &amp;quot;Pairing completed: E2:C9:26:D2:8A:4C (random), bonded: 1,&amp;nbsp;Security changed: E2:C9:26:D2:8A:4C (random) level 4&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;-Disconnect&lt;/p&gt;
&lt;p&gt;-Try to reconnect in nRF Connect for Desktop. The connection immediately terminates.&amp;nbsp;In the printk output it says: &amp;quot;Security failed: E2:C9:26:D2:8A:4C (random) level 1 err 9, Disconnected (reason 61)&amp;quot;.&amp;nbsp;In nRF Connect for Desktop it says: &amp;quot;Disconnected from device E7:ED:E5:26:FD:D6, reason: BLE_HCI_CONNECTION_TIMEOUT&amp;quot;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;****************&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A few notes:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-I made sure to use the &amp;quot;Delete bond information&amp;quot; option in nRF Connect for Desktop&amp;quot; and to complete erase the flash on the nRF52DK and reflash the board&amp;nbsp;every time that I ran this test, to make sure I was starting &amp;quot;clean&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-If you just &amp;quot;Delete bond information&amp;quot; on the central side before reconnecting, then the connection doesn&amp;#39;t fail. This implies that the problem is caused when the central is trying to encrypt the new link with the stored bond key&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-I modified the peripheral_lbs application to no longer use a passkey (by setting the passkey_display callback to NULL), and I can still see the same issue - initial pairing with bonding works, but the re-encrpytion on subsequent connections fails&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-As Tom mentioned, there&amp;#39;s no issues if I use an iPhone or an Android phone as the central running LightBlue. In the case of the iPhone, I had to modify a characteristic to require encrpytion in order to force the iPhone to send a pairing request.&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><item><title>RE: LESC "Just Works" Reconnection Issues</title><link>https://devzone.nordicsemi.com/thread/341865?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 12:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f284047c-6870-4963-9d97-cd89778c1ed7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Tom&lt;/p&gt;
&lt;p&gt;Thanks for the clarification.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Would you be able to share your code with me so I can try to reproduce the problem here?&lt;/p&gt;
&lt;p&gt;I can make the case private, if you don&amp;#39;t want to share your code in a public ticket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC "Just Works" Reconnection Issues</title><link>https://devzone.nordicsemi.com/thread/341592?ContentTypeID=1</link><pubDate>Wed, 01 Dec 2021 20:10:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9de322c5-ae3a-480d-993e-562bd88169c0</guid><dc:creator>Tom Jimenez</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, that is the dongle that I am referring to.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am using an unmodified firmware provided by the nRF Connect for Desktop application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Tom&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC "Just Works" Reconnection Issues</title><link>https://devzone.nordicsemi.com/thread/341467?ContentTypeID=1</link><pubDate>Wed, 01 Dec 2021 09:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41b9e472-5441-4a7f-8b37-33083fca16e5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Tom&lt;/p&gt;
&lt;p&gt;That is interesting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;By &amp;#39;nRF Dongle&amp;#39;, do you mean &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nrf52840-dongle"&gt;this one&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Which application are you using on the central side to control the dongle?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC "Just Works" Reconnection Issues</title><link>https://devzone.nordicsemi.com/thread/341410?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 23:59:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51905d01-c5b7-4f1f-b109-495a6d09507b</guid><dc:creator>Tom Jimenez</dc:creator><description>&lt;p&gt;Hello &lt;span&gt;Torbj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Yes, the bonding data is properly stored.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Upon doing some more testing, the example works with an iPhone and an Android as the central. The link is correctly re-encrypted upon reconnection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems as if the nRF dongle is the cause of the issue that we have been seeing. The dongle has the latest firmware on it and we tested multiple dongles with the same result.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Tom&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC "Just Works" Reconnection Issues</title><link>https://devzone.nordicsemi.com/thread/341391?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 19:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfabf25a-b7f2-4a0c-9a96-37c06568b883</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Tom&lt;/p&gt;
&lt;p&gt;Do you know if the bonding data is properly stored and recalled when you reconnect the already bonded connection?&lt;/p&gt;
&lt;p&gt;Typically what happens after the encryption is started is that you need to reconfigure the encryption data that was stored during the bonding phase.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tested LESC pairing in NCS myself yet, but I will check with my colleagues tomorrow if there is anything in particular to look out for.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>