<?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>Bond Manager Issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/904/bond-manager-issue</link><description>Although there are some posts dealing with bond manager issues, I have not been able to find a similar issue. I am using part of the BLE code from nRFready Desktop 2 v1.0.4. I&amp;#39;ve found an issue with how the master GAP Address type are stored by the bond</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Nov 2013 13:50:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/904/bond-manager-issue" /><item><title>RE: Bond Manager Issue</title><link>https://devzone.nordicsemi.com/thread/4398?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2013 13:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:238bc64a-cd7f-4043-8717-5b9f95ca55b1</guid><dc:creator>Ignacio Lopez</dc:creator><description>&lt;p&gt;Thanks. Great answer! This is exactly what I see. And yes, I was testing with and iOS device. I tested with the MCP and the master address is not stored as BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE. I will follow your advices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond Manager Issue</title><link>https://devzone.nordicsemi.com/thread/4397?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2013 12:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbc49403-ba68-4b0d-bf43-6c0c5a992a1f</guid><dc:creator>Audun</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;there are several issues that can cause this behavior. First of all, I suggest upgrading to the bondmanager found in SDK 4.4.2. Compared to Desktop 2 v1.0.4, this bondmanager release fixes many issues, several of which are related to resolvable addresses (used most notably by iOS).&lt;/p&gt;
&lt;p&gt;First off, is the condition (&lt;em&gt;m_masters_db[master_handle].bond.master_addr.addr_type == BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE&lt;/em&gt;) true regardless of which Master you are connected to? When connected to for example the Nordic Master Emulator it should be false.
Let&amp;#39;s assume that you are connecting to an iOS device, in which case it&amp;#39;s expected that this is the correct address type.&lt;/p&gt;
&lt;p&gt;Resolvable addresses can be changed at any time, and thus it doesn&amp;#39;t make sense to use that address for directed advertising. Instead undirected advertising with a whitelist should be used. The Identity Resolve Key (IRK) is put in the whitelist, which makes it possible to recognize the Master even though it has changed its address. The bondmanager will handle IRKs and can be used to generate a whitelist for you (&lt;em&gt;ble_bondmngr_whitelist_get()&lt;/em&gt;). Several bugs related to address types and IRK storage has been fixed lately, so again I suggest upgrading to SDK 4.4.2 bondmanager.&lt;/p&gt;
&lt;p&gt;The address type can be found in ble_bondmngr.c, m_masters_db[x].bond.master_addr.addr_type. m_masters_db is a RAM struct. The contents of this struct is loaded from flash during bondmanager initialization. You can take a look at the flash storage area to see if there is any data there at all:
Open address FLASH_PAGE_BOND (default value 255 in DT2 v1.0.4) * 1024 in the debugger. If this area is all F&amp;#39;s (flash erase value), then the data is invalid. If it&amp;#39;s not just F&amp;#39;s there is probably valid data there, and you can take a closer look at the &lt;em&gt;m_masters_db&lt;/em&gt; array during bondmanager initialization.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>