<?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>pairing bonding fail</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86706/pairing-bonding-fail</link><description>Hi， 
 Hello everyone, I have encountered a problem in the pairing and bonding process of BLE.I use two NRF52832 development boards, one acts as a slave and the other acts as a master.Before the two peers have never been paired, the pairing and bonding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Apr 2022 06:50:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86706/pairing-bonding-fail" /><item><title>RE: pairing bonding fail</title><link>https://devzone.nordicsemi.com/thread/362741?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 06:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b79a1c2-3e6c-4fc1-b1c0-37dcfa67fd14</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, thank you for explaining. I think you could create two whitelists for the two separate classes for example. I assume the class A/B devices respectively have something in common with each other, like device names or a UUID/service for instance. This can be used to add the devices into one &amp;quot;group&amp;quot; I guess, as they will each be part of one &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_pm_usage.html&amp;amp;anchor=lib_pm_usage_whitelist"&gt;whitelist&lt;/a&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><item><title>RE: pairing bonding fail</title><link>https://devzone.nordicsemi.com/thread/362520?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 08:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d712e0e4-ef4f-4778-b14d-848828cf98d3</guid><dc:creator>Abner</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for not expressing clearly.&lt;/p&gt;
&lt;p&gt;There are three classes of devices in my system，one is BLE master, another is BLE slave whose name is &amp;quot;SLAVE_CLASS_A&amp;quot; we can call it class A device, and the last one is also BLE slave but whose name is &amp;quot;SLAVE_CLASS_B&amp;quot; we can call it class B device.The master can connect up to&amp;nbsp;four&amp;nbsp;class A devices and four class B devices at the same time,in this way, the master will record at most eight devices bonding information.When the master has stored the bonding information of four&amp;nbsp;class A devices and four&amp;nbsp;class B devices, when another new class A&amp;nbsp;device arrives, the master must delete the earliest recorded of class A&amp;nbsp;device bonding information.&lt;/p&gt;
&lt;p&gt;So the problem I need to solve is that I must know whether the bonding record stored in the FLASH belongs to a class A device or a class B device, and the order in which the records are stored.&lt;/p&gt;
&lt;p&gt;The SDK version i used is 17.0.2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pairing bonding fail</title><link>https://devzone.nordicsemi.com/thread/362502?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 07:49:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:493d9536-35ca-4845-9707-8b1106cb9e30</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I might be misunderstanding your latest question, but what do you mean by &amp;quot;recorded up to 4&amp;quot; here? If you&amp;#39;re only bonding to two devices, why would you record up to 4 &amp;quot;types&amp;quot; of bonding info, and how would this record ever exceed 4? Sorry if I&amp;#39;m not understanding what you&amp;#39;re trying to do, but please try explaining in detail what exactly you mean here.&lt;/p&gt;
&lt;p&gt;What SDK version are you using? I think the&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Flib_pm_usage.html&amp;amp;anchor=lib_pm_usage_data"&gt; peer manager storage data section&lt;/a&gt; should be helpful for storing data using the peer manager.&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><item><title>RE: pairing bonding fail</title><link>https://devzone.nordicsemi.com/thread/362282?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 10:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d390219c-01ef-4246-9bad-1d6a658ec1a5</guid><dc:creator>Abner</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks, I got it.I have added the function pm_peer_delete();on both the maser side and the slave side to prevent either side from deleting the bonding information and causing the connection to fail.&lt;/p&gt;
&lt;p&gt;In the current project, I have another function that needs to be implemented.The master needs to record the bonding information of two types of devices.The bonding information of each type of device can be recorded up to 4.When the bonding information of a certain type of device exceeds 4,according to the principle of first-in, first-out, delete the earliest record of this type of&amp;nbsp;device.&lt;/p&gt;
&lt;p&gt;Currently I&amp;#39;m reading the code of the peer_manager module, which does a lot of the pairing bonding and information storage work.I am not sure whether I should intervene in the record key before the peer_manager module writes the bonding information to the flash, or use FDS to record the bonding information to facilitate operations such as later deletion.&lt;/p&gt;
&lt;p&gt;If you have better suggestions or comments, please let me know, thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pairing bonding fail</title><link>https://devzone.nordicsemi.com/thread/362260?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 09:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a163f514-c19d-4240-a7ca-7595f117bc42</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Indeed, if only one of the devices delete the bonding information, the two devices won&amp;#39;t be able to connect again until both delete the peer data. I think the easiest way around this would be to make the peripherals run a &lt;span&gt;pm_peer_delete(); function if it fails to connect to the central X amount of times, or just delete bonding upon disconnections.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>