<?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>nRF52810  paring bonding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68000/nrf52810-paring-bonding</link><description>I use the template for pairing and binding. For the first time, after binding, for the second time, I bind again, prompting to reject binding. How can I match and bind many times, thank you!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Nov 2020 01:26:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68000/nrf52810-paring-bonding" /><item><title>RE: nRF52810  paring bonding</title><link>https://devzone.nordicsemi.com/thread/278690?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 01:26:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2390d48d-9190-4e90-8e04-bcd4270c9e63</guid><dc:creator>liuyanfeng</dc:creator><description>&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;hi, Simonr &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;I see what you mean. After the first binding between the device and the app, the app will be unbound. If you want to bind multiple times, the device will reject it.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;I mean, after the app clicks delete bind, click bind again to bind? It is not to call advertising after disconnection_ start(erase_ Bonds); function&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810  paring bonding</title><link>https://devzone.nordicsemi.com/thread/278611?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 13:41:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd6e1c30-1178-4bb9-af44-dae8eb701513</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Are you using the ble_app_template example in the nRF5 SDK, which version of the SDK are you using? Are you saying that you connect and pair to a device successfully once, and then disconnecting from that device and trying to pair with it again?&lt;/p&gt;
&lt;p&gt;If you delete the bonding information on the nRFConnect side the bonding information will still be present on the nRF52 device, which might be what you&amp;#39;re seeing here. To resolve this, you have to delete the bonding information on the nRF somehow. The most straightforward way is to erase the whole flash on the chip by using the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;nRF Command line Tool &lt;/a&gt;nrfjprog --eraseall, but this is not very smooth as you&amp;#39;ll have to flash the application onto the device again after the fact.&lt;/p&gt;
&lt;p&gt;Most of our example projects lets you erase bonding information by pressing a button, but you can also do this upon a disconnected event by calling the erase_bonds; function (see code snippet below).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;case BLE_GAP_EVT_DISCONNECTED:
        {
            bool erase_bonds;
            NRF_LOG_INFO(&amp;quot;Disconnected.&amp;quot;);
            
            advertising_start(erase_bonds); //added by AUAK
            
            break;
        }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>