<?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>[nRF Connect SDK](Urgent)Re-bonding with Android</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89360/nrf-connect-sdk-urgent-re-bonding-with-android</link><description>Target nRF52832(nrf52dk_nrf52832) SDK NCS v1.9.1 
 prj.conf CONFIG_BT_MAX_PAIRED=4 CONFIG_BT_KEYS_OVERWRITE_OLDEST=y 
 If Nordic BLE reach max pairing, BLE delete its pairing, but Android has previous pairing. What if I should do in that case? I found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jun 2022 06:21:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89360/nrf-connect-sdk-urgent-re-bonding-with-android" /><item><title>RE: [nRF Connect SDK](Urgent)Re-bonding with Android</title><link>https://devzone.nordicsemi.com/thread/374440?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2022 06:21:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fcb7f2b-9ae3-4b0b-a9ff-20893b87a13c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. The fact remains that the bond has to be deleted on the Android device if deleted on the nRF, but other than that what you describe is fine. You can use&amp;nbsp;bt_set_bondable() to enable or disable bonding, and you can use&amp;nbsp;bt_conn_set_security() to encrypt a link (and start bonding if a bond does not already exist).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK](Urgent)Re-bonding with Android</title><link>https://devzone.nordicsemi.com/thread/374423?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2022 23:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8adfb2c7-14bc-4e55-92de-869ad5caa901</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;1. Our usage requires lots of Android(+iOS) with one BLE device, so that BLE can delete its pairing.&lt;br /&gt;2. As this case subject, I want to make bonding again without user action. If&amp;nbsp;security_changed() have error (not 0), I call&amp;nbsp;&lt;span&gt;bt_conn_set_security(). BLE initiate bonding process. I want double check if it is fine.&lt;br /&gt;&lt;br /&gt;Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK](Urgent)Re-bonding with Android</title><link>https://devzone.nordicsemi.com/thread/374389?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2022 15:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55b74551-cb33-4503-b4d2-4dbd68e56533</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Generally, if the bond is delete on the nRF and not deleted on the phone, any subsequent reconnections will fail and the only way to solve this is to also delete the bond on the phone. To avoid this, try to avoid having to delete bonds on the nRF (increase the maximum amount of bonds to a level you will normally not reach, provided you have enough flash for it).&lt;/p&gt;
[quote user="Tim Hwang"]&lt;p&gt;&lt;span&gt;I found that if err is not 0, I call following two functions&amp;nbsp;&lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;span&gt;&amp;nbsp;BLE initiate pairing process again.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Is it good sequence? Or let me have good solution.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; bt_set_bondable(true);&lt;br /&gt; bt_conn_set_security(conn, BT_SECURITY_L4);&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I do not see how this would fix the issue you described in your initial post, but perhaps there is something I am not getting. Perhaps you can elaborate?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK](Urgent)Re-bonding with Android</title><link>https://devzone.nordicsemi.com/thread/374257?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2022 05:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0786ad23-69e3-4b0a-ab3e-c0c18f524233</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;&lt;span&gt;I found that if err is not 0, I call following two functions&amp;nbsp;&lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;span&gt;&amp;nbsp;BLE initiate pairing process again.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Is it good sequence? Or let me have good solution.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; bt_set_bondable(true);&lt;br /&gt; bt_conn_set_security(conn, BT_SECURITY_L4);&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>