<?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>Fail to pair more than one device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/819/fail-to-pair-more-than-one-device</link><description>Hello, 
 I tested nRF51822 with ble_app_hids_keyboard example, i found it cannot pair with more than one devices. 
 Procedures: 
 
 Pair PCA10001 with iPhone#1, it can be paired and connected. 
 Turn off Bluetooth of iPhone#1 and try to pair PCA10001</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Dec 2013 09:03:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/819/fail-to-pair-more-than-one-device" /><item><title>RE: Fail to pair more than one device</title><link>https://devzone.nordicsemi.com/thread/4073?ContentTypeID=1</link><pubDate>Thu, 26 Dec 2013 09:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9f4d08c-11ce-4e69-8092-a6c5bb1e13f1</guid><dc:creator>kchuva</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have the same problem. When I try bonding from second device nRF51822 return &amp;quot;NRF_ERROR_FORBIDDEN&amp;quot; from on_auth_status method ble_bondmngr.c.
I think that&amp;#39;s happend because the Encryption Diversifier param from m_master equal with masters from database.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
if (INVALID_MASTER_HANDLE == m_master.bond.master_handle)
{
    uint32_t err_code = master_find_in_db(m_master.bond.master_id_info.div);

    if (err_code == NRF_SUCCESS)
    {
        // Possible DIV Collision indicate error to application,
        // not storing the new LTK
        err_code = NRF_ERROR_FORBIDDEN;
    }
}

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Why &amp;quot;div&amp;quot; param sended to mastter_find_in_db method from m_master? I think it must sended from new master info which stored in p_auth_status. Otherwise, we always find in db with old &amp;quot;div&amp;quot; param because it isn&amp;#39;t updating.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to pair more than one device</title><link>https://devzone.nordicsemi.com/thread/4067?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2013 11:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fae24d7-5305-4ae2-9068-2d05d784f451</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Unfortunately, I can&amp;#39;t quite remember what I thought when I wrote that... :-P&lt;/p&gt;
&lt;p&gt;However, my best guess is that my point was that if you always are open to receive connections from all Central devices, you may be connected to by a Central you don&amp;#39;t actually want to be connected to. So depending on how you intend your device to be used, you should put some thought into these problems, and make sure that things work as you want to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to pair more than one device</title><link>https://devzone.nordicsemi.com/thread/4066?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2013 01:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07995d5b-914d-49a0-9487-98773b12d21b</guid><dc:creator>Jamie</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;Can you elaborate more on what you mean above by, &amp;quot;If you always want to be connectable with new devices, you should not use whitelisting, but this might not always give desirable behavior.&amp;quot; What undesirable behavior might arise?&lt;/p&gt;
&lt;p&gt;Thanks,
Jamie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to pair more than one device</title><link>https://devzone.nordicsemi.com/thread/4072?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2013 12:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8c1b82d-bfeb-4241-841f-2bc4d8ca21c5</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Whitelisting based on address will not work with iOS, since it uses resolvable addresses, but whitelisting based on Identity Resolving Key works, even with resolvable addresses.&lt;/p&gt;
&lt;p&gt;Unfortunately, I&amp;#39;m still not able to replicate the original problem reported here, no matter if I use 4.4.1 or 4.4.2. On which file and line do you get this error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to pair more than one device</title><link>https://devzone.nordicsemi.com/thread/4071?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2013 21:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81247029-4b09-4116-a5f5-459405610a94</guid><dc:creator>S&amp;#233;bastien Despont</dc:creator><description>&lt;p&gt;Hi, I read somewhere that the whitelisting mode is not working with IOS because the address change randomly. So, after some times, the IOS app will not be able to be connected to your device  anymore. Just check before having troubles with your product. Perhaps some good guy from Nordic could add useful comment on this comment?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to pair more than one device</title><link>https://devzone.nordicsemi.com/thread/4070?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2013 08:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:505e08c1-1472-4c71-b2e1-b304368ebce8</guid><dc:creator>Henry Wong</dc:creator><description>&lt;p&gt;The error appear when I disconnect currently connected iPhone and wait for 30s, then pair another new iPhone. After I press &amp;quot;accept  pairing&amp;quot;, nRF51822 will reset due to &amp;quot;NRF_ERROR_FORBIDDEN&amp;quot;.&lt;/p&gt;
&lt;p&gt;I have this problem when I using SDK v.4.4.1. Fortunately, this error no longer appear after upgrading to v.4.4.2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to pair more than one device</title><link>https://devzone.nordicsemi.com/thread/4069?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2013 17:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42d12ddb-56fc-4519-9cb6-4e9dedfa6ef4</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;From which method exactly do you get the FORBIDDEN error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to pair more than one device</title><link>https://devzone.nordicsemi.com/thread/4068?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2013 05:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bbd4659-a104-445d-b5ad-9f42a305b7a7</guid><dc:creator>Henry Wong</dc:creator><description>&lt;p&gt;Thanks for your reply, but the problem still cannot be solved.
I have wait for whitelist advertising timeout to pair a new iPhone. However, it always give out the error &amp;quot;NRF_ERROR_FORBIDDEN&amp;quot;. I need to power reset the nRF51822 in order to get successfully pairing for the new iPhone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to pair more than one device</title><link>https://devzone.nordicsemi.com/thread/4065?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2013 13:56:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09cbc294-69a0-4751-bde4-e66f1824d78c</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;When the keyboard application has been bonded with something, it will advertise with whitelist first, with a 30 s timeout. As long as it uses the whitelist, it will not be connectable for other devices, giving the behavior you describe. However, after this 30 s timeout, new devices should be able to connect.&lt;/p&gt;
&lt;p&gt;If you always want to be connectable with new devices, you should not use whitelisting, but this might not always give desirable behavior. You should therefore take some care to make sure you cover the use cases you want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>