<?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>How to know the bond has been removed in the peer device?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37807/how-to-know-the-bond-has-been-removed-in-the-peer-device</link><description>I am using nRF5_SDK_15.0.0_a53641a.zip to create an application needs paring and bond. Now I got a problem that, if a smartphone removed the bond manually in its phone settings, the device (N52840) seems that also needs to remove the bond by using delete_bonds</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Aug 2018 07:24:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37807/how-to-know-the-bond-has-been-removed-in-the-peer-device" /><item><title>RE: How to know the bond has been removed in the peer device?</title><link>https://devzone.nordicsemi.com/thread/145818?ContentTypeID=1</link><pubDate>Mon, 27 Aug 2018 07:24:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60a4df99-609c-497c-a9f5-11e27c1db8aa</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is not possible to tell if someone has deleted the bond on the smart phone or if the peer device is an attacker that is using the same address as the bonded smart phone. However it is possible to allow re-pairing based on the device address, but that imposes a security risk as an attacker can use the same address to bond with your device. Anyway as long as you are aware of that, but still wants to allow re-pairing, I think it should be sufficient to changed this part of the code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case PM_EVT_CONN_SEC_CONFIG_REQ:
        {
            // Reject pairing request from an already bonded peer.
            pm_conn_sec_config_t conn_sec_config = {.allow_repairing = false};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>