<?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>Whitelisting one device with device manager</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72739/whitelisting-one-device-with-device-manager</link><description>Hello! 
 I&amp;#39;m currently working on a project similar to the nrfReady Desktop keyboard and I&amp;#39;m trying to apply bonding/whitelist so that it would only reconnect to only one central device unless the pairing button is pressed (goes into undirected bonding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Mar 2021 20:59:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72739/whitelisting-one-device-with-device-manager" /><item><title>RE: Whitelisting one device with device manager</title><link>https://devzone.nordicsemi.com/thread/300241?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 20:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3b94477-1fa1-4392-8cce-e978950b21c2</guid><dc:creator>mmak</dc:creator><description>&lt;p&gt;Thanks for the response! I&amp;#39;ll give the solutions above a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Whitelisting one device with device manager</title><link>https://devzone.nordicsemi.com/thread/299902?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 16:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:867a1c8f-716e-4ff4-828e-9a419b470827</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are working with a very old nRF5 SDK, the latest nRF5 SDK for the nRF51-series is nRF5 SDK v12.3. I could find some example for nRF5 SDK v10 below that may be helpful if you want to stay on older SDK.&lt;/p&gt;
&lt;p&gt;Typically you set&amp;nbsp;&lt;span&gt;DEVICE_MANAGER_MAX_BONDS to something larger that the number of bonds you want to support, you&amp;nbsp;should in any case delete the bonds that are not needed/used.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To delete one bond you can use:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v10.0.0/group__dm__cntxt__mgmt__api.html?cp=4_0_2_6_2_11_4_2_3#gaf267e34f237c41665fd9df15dd32c531" rel="noopener noreferrer" target="_blank"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v10.0.0/group__dm__cntxt__mgmt__api.html?cp=4_0_2_6_2_11_4_2_3#gaf267e34f237c41665fd9df15dd32c531&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, maybe you can check out this thread on devzone:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/question/39249/how-to-use-dm_device_delete/" rel="noopener noreferrer" target="_blank"&gt;https://devzone.nordicsemi.com/question/39249/how-to-use-dm_device_delete/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Alternatively, I do notice than one example we have on github do execute a system_reset() after all bonds are deleted. Likely to ensure that state machine and variables are set back to the correct state afterwards:&lt;br /&gt;&lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-peripheral-bond-handling/blob/master/main.c" rel="noopener noreferrer" target="_blank"&gt;https://github.com/NordicSemiconductor/nRF51-ble-peripheral-bond-handling/blob/master/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s slightly brute force method, but it will always work.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>