<?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>Whats the simplest way to do the re-bonding of the nrf52840 after deleting the pairing key from the smartphone ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78084/whats-the-simplest-way-to-do-the-re-bonding-of-the-nrf52840-after-deleting-the-pairing-key-from-the-smartphone</link><description>1. I&amp;#39;ve deleted the peers from the device by running the BMS sdk example, still i am unable to connect the previously bonded device where i&amp;quot;ve deleted the key. 
 2. The pm_evt_handler desnt gets called but the disconnection takes place? What are the things</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Aug 2021 14:48:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78084/whats-the-simplest-way-to-do-the-re-bonding-of-the-nrf52840-after-deleting-the-pairing-key-from-the-smartphone" /><item><title>RE: Whats the simplest way to do the re-bonding of the nrf52840 after deleting the pairing key from the smartphone ?</title><link>https://devzone.nordicsemi.com/thread/322930?ContentTypeID=1</link><pubDate>Mon, 02 Aug 2021 14:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5c2b72b-0451-4b1b-af5f-f8e6ccb18688</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rit De,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For security reasons by default it&amp;#39;s not allowed to reinitialize bonding after the bonding is&amp;nbsp;established. It&amp;#39;s because if we allow that an attacker can spoof that it&amp;#39;s the central and that the central has lost bonding. By doing that he can replace the central and remove the bond information in the peripheral. So it&amp;#39;s the best if you have a physical button to erase bond on the device so that it can have a new bond with the central.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;However if you want to allow re-bonding /re-pairing, it&amp;#39;s possible to do so. You would need to add&amp;nbsp;PM_EVT_CONN_SEC_CONFIG_REQ event handling inside&amp;nbsp;pm_evt_handler to return&amp;nbsp;allow_repairing = true. Please have a look at this case:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37837/sdk15-paring-problem"&gt;devzone.nordicsemi.com/.../sdk15-paring-problem&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>