<?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>Client (Nrf Connect ) has bonding keys while Peripheral don&amp;#39;t</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111090/client-nrf-connect-has-bonding-keys-while-peripheral-don-t</link><description>In case of peripheral losing keys, but client(Android nrf connect app) still has them. ( shows it is in &amp;#39;Disconnected + &amp;#39;Bonded&amp;#39; ) 
 On the next connection attempt, there is a &amp;#39;connection&amp;#39; and straight away a &amp;#39;disconnection&amp;#39; event on the peripheral side</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 May 2024 16:22:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111090/client-nrf-connect-has-bonding-keys-while-peripheral-don-t" /><item><title>RE: Client (Nrf Connect ) has bonding keys while Peripheral don't</title><link>https://devzone.nordicsemi.com/thread/484757?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 16:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:550d0b15-94b7-40aa-a8cf-0e563e1c3847</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The behavior you&amp;#39;re describing is typically managed by the Bluetooth stack on the phone, which automatically attempts to authenticate (and thus pair) when connecting to a device it has previously bonded with. This is standard behavior for Bluetooth devices and is part of the security measures in the Bluetooth specification.&lt;/p&gt;
&lt;p&gt;If the phone has bonding information stored, it will attempt to authenticate the connection using that information. If you want to prevent this, you would need to delete the bonding information on the phone before initiating the connection. This is typically done through the phone&amp;#39;s Bluetooth settings, not programmatically through your app.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Client (Nrf Connect ) has bonding keys while Peripheral don't</title><link>https://devzone.nordicsemi.com/thread/484628?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 08:40:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d5cf71e-2cbc-4905-8b71-11c108ddbdf4</guid><dc:creator>DS4</dc:creator><description>&lt;p&gt;&lt;em&gt;Thanks, regarding &lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;We usually suggest users delete bond information on the phone side to start a new bond process.&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Can bonding keys be deleted while devices are connected, and pairing has not started yet?&lt;br /&gt;&lt;br /&gt;When I press connect on the App, it also continues to auth/pair..(if it has bonding keys)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can I disable it, so it waits for pairing command ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Client (Nrf Connect ) has bonding keys while Peripheral don't</title><link>https://devzone.nordicsemi.com/thread/483116?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 16:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c8270bf-189a-4e91-9a36-c06209ba5e67</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Which SDK are you using, nRF5 or NCS?&lt;/span&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;In case of peripheral losing keys, but client(Android nrf connect app) still&amp;nbsp;&amp;nbsp;has them. (&amp;nbsp; shows it is&amp;nbsp;&amp;nbsp;in&amp;nbsp; &amp;#39;Disconnected + &amp;#39;Bonded&amp;#39; )&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the next connection attempt, there is a &amp;#39;connection&amp;#39; and straight away a &amp;#39;disconnection&amp;#39; event on the peripheral side. Nrf connect on Android&amp;nbsp; then clears the keys ( shows: &lt;span&gt;Disconnected&amp;nbsp; ,&amp;nbsp;&lt;/span&gt;Not Bonded)&lt;/p&gt;[/quote]
&lt;p&gt;&lt;span&gt;If you are using nRF5 SDK, This is the default behavior (as implemented by Nordic SDK), and we have done it this way&amp;nbsp;due to a security aspect, you may not want an attacker to disguise itself as a bonded peer to delete/overwrite bonding information.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We usually suggest users delete bond information on the phone side to start a new bond process.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="DS4"]What in the process is causing a disconnection? Is there an event or something that forces the App to disconnect? Or is it AndroidOS?&amp;nbsp;[/quote]
&lt;p&gt;The default behavior of nRF5SDK is not to allow bonding in this situation, but you can allow it by handling it like this in your peer manager event handler:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;        case PM_EVT_CONN_SEC_CONFIG_REQ: 
            pm_conn_sec_config_t config = {.allow_repairing = true};
            pm_conn_sec_config_reply(p_evt-&amp;gt;conn_handle, &amp;amp;config);
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you are using NCS, you can refer to &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/103367/how-to-delete-specific-bonding-info-in-peripheral-when-central-has-forgotten-the-pairing-bonding"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Client (Nrf Connect ) has bonding keys while Peripheral don't</title><link>https://devzone.nordicsemi.com/thread/482894?ContentTypeID=1</link><pubDate>Sat, 11 May 2024 14:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16d6f1f8-ff55-47d4-a570-ed70af440d7a</guid><dc:creator>DS4</dc:creator><description>&lt;p&gt;Sorry , could you elaborate a little more?&lt;/p&gt;
&lt;p&gt;Who is&amp;nbsp; - It?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What in the process is causing a disconnection? Is there an event or something that forces the App to disconnect? Or is it AndroidOS?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, If a App is Connected and has keys for Bonding , can it wait for a request from the peripheral to bond&amp;nbsp; ? Can such app be created?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Client (Nrf Connect ) has bonding keys while Peripheral don't</title><link>https://devzone.nordicsemi.com/thread/482871?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 21:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82fae9d0-aff8-468f-b2d3-54dffbcf2f59</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It should delete the bond information on the nRF Connect app and initiate a new bond with the &lt;span&gt;peripheral device&lt;/span&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>