<?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>Misunderstanding about adertising mode &amp;quot;Whitelist&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/949/misunderstanding-about-adertising-mode-whitelist</link><description>Dear Nordic Developer Zone, 
 I am using nRF51822 with softdevice. 
 I don&amp;#39;t understand very well the advertising mode &amp;quot;whitelist&amp;quot;.
 My target is to be able to connect with only one paired iPhone. 
 So, the first time I power on the nRF51822, I advertise</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Jul 2014 09:19:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/949/misunderstanding-about-adertising-mode-whitelist" /><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4545?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2014 09:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83949c2d-f6ea-4e6a-bc5a-352b575f3bb0</guid><dc:creator>Shafy</dc:creator><description>&lt;p&gt;Hi,
Is this issue fixed in SD V6.0 and SDK 5.2 also ?  I understand that device_manager_peripheral.c  which has the fix is a file for SDk 6.0 and it cant be used in SDk5.2.  i have bonded with one android phone, but still another phone is able to connect with the device.&lt;/p&gt;
&lt;p&gt;Thanks
Shafy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4543?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2014 01:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a1c882f-265a-4218-9bcc-89b108f6d394</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Patch in SDK6.0, use SD7.0: The issue 1 and 2 are fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4544?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2014 10:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cec2bb6-2a3f-4847-9e0c-0d9a64b1d64f</guid><dc:creator>S&amp;#233;bastien Despont</dc:creator><description>&lt;p&gt;Hi Matt, check the reported bugs list for SDK 6.0 : &lt;a href="https://devzone.nordicsemi.com/blogs/12/nrf51-sdk-v600-bug-report-and-temporary-workaround/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; and let us know if the point 1 or 2 fix
the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4542?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2014 09:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a500bba0-edeb-4b36-aeea-14e802416c71</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Use SDK6.0 and SD7.0, still have this issue.&lt;/p&gt;
&lt;p&gt;void advertising_start(void)
{
uint32_t err_code;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Initialize advertising parameters (used when starting advertising).
memset(&amp;amp;m_adv_params, 0, sizeof(m_adv_params));

m_adv_params.type        = BLE_GAP_ADV_TYPE_ADV_IND;
m_adv_params.p_peer_addr = NULL;    // Undirected advertisement.
m_adv_params.interval    = APP_ADV_INTERVAL;
m_adv_params.timeout     = APP_ADV_TIMEOUT_IN_SECONDS;
  

ble_gap_whitelist_t  whitelist;
ble_gap_addr_t       * p_whitelist_addr[BLE_GAP_WHITELIST_ADDR_MAX_COUNT];
ble_gap_irk_t        * p_whitelist_irk[BLE_GAP_WHITELIST_IRK_MAX_COUNT];
        
whitelist.addr_count = BLE_GAP_WHITELIST_ADDR_MAX_COUNT;
whitelist.irk_count  = BLE_GAP_WHITELIST_IRK_MAX_COUNT;
whitelist.pp_addrs   = p_whitelist_addr;
whitelist.pp_irks    = p_whitelist_irk;
        
err_code = dm_whitelist_create(&amp;amp;m_app_handle, &amp;amp;whitelist);
APP_ERROR_CHECK(err_code);
        
if ((whitelist.addr_count != 0) || (whitelist.irk_count != 0))
{
    m_adv_params.fp          = BLE_GAP_ADV_FP_FILTER_BOTH;
    m_adv_params.p_whitelist = &amp;amp;whitelist;
    advertising_init(BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED);    
}
else
{
    m_adv_params.fp          = BLE_GAP_ADV_FP_ANY;
    m_adv_params.p_whitelist = NULL;
    advertising_init(BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE);
}


err_code = sd_ble_gap_adv_start(&amp;amp;m_adv_params);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4541?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2014 11:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2c63c29-99ed-468f-ba17-a9717e964b4c</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;If you have bonded with one of your Android devices, and the device is added to the whitelist, there shouldn&amp;#39;t be any such problems. However, if you have problems with this, can you please either post a question or a support case separately, making sure to include your complete code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4540?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2014 18:28:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99af50c4-f9d3-4ebe-8abe-70dff3bc718a</guid><dc:creator>julian</dc:creator><description>&lt;p&gt;for same issue, I set
#define BLE_BONDMNGR_MAX_BONDED_CENTRALS   1
and follow same&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
APP_ERROR_CHECK(ble_bondmngr_whitelist_get(&amp;amp;whitelist));
            if ((whitelist.addr_count != 0) || (whitelist.irk_count != 0)) {
                adv_params.fp          = BLE_GAP_ADV_FP_FILTER_CONNREQ;
                adv_params.p_whitelist = &amp;amp;whitelist;                
                advertising_init(BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED);
advertising_init(BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED);

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but two of my android phone are able to connect to the nrf51822, and I am using sdk 5.2 and SD 6.0 release.&lt;/p&gt;
&lt;p&gt;anything I am missing here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4534?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2013 08:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cae7dd56-c9e3-4e09-9d1f-1fc1e85d93e7</guid><dc:creator>S&amp;#233;bastien Despont</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;I have tested with SDK5 and softdevice 6 and there is no longer problem.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4539?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2013 13:51:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fec08723-c511-4a71-a187-2cfbcc55c22d</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Just in case you&amp;#39;ve missed it, a new release is now out, that includes the fix for this issue.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d also be happy if you could accept my answer above, since it seems to answer the original question here. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4538?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2013 13:09:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7426e76-566c-4c33-90b5-2467d1cdfdbb</guid><dc:creator>S&amp;#233;bastien Despont</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;I confirm that if I pair the dongle-&amp;quot;Matser control panel&amp;quot; first, the iPhone cannot be connected due to whitelist restriction. But, of course, the opposite doesn&amp;#39;t work because of IRK whitelist problem you mentionned.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4537?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2013 09:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebdcfb43-a867-40f3-ace7-d7dec0d238a4</guid><dc:creator>S&amp;#233;bastien Despont</dc:creator><description>&lt;p&gt;I am glad to read your comment. So I really looking forward to testing the next Softdevice version.&lt;/p&gt;
&lt;p&gt;I have just tested to pair the dongle-&amp;quot;Master emulator&amp;quot; first, but I still have similar problem. I can also connect and pair the second iPhone (it means a third master) and pair it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4536?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2013 09:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ff366eb-f824-4833-81c4-9d8304a6f8d0</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;The problem is also there in the alpha, which is why I recommended you to test with the final when it is available, which have fixed this issue. With 5.2.1 and 6.0.0-alpha I can see similar problems to the ones you report, so I&amp;#39;m hopeful that the final 6.0.0 release will fix the problem for you as well.&lt;/p&gt;
&lt;p&gt;If you have a Master Emulator dongle, you should be able to bond your device with the Master Control Panel, and then see that your iPhone is not able to connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4535?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2013 09:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9cfd74e-9d81-4f13-a773-2f86727b9510</guid><dc:creator>S&amp;#233;bastien Despont</dc:creator><description>&lt;p&gt;Dear Ole Morten,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. I have just tested to upgrade the Softdevice to version 6.0.0-1 alpha but the problem persists. :(&lt;/p&gt;
&lt;p&gt;After pairing the first iPhone, I am still able to connect to the nRF51822 with the second one and perform a pairing. It seems that the whitelist has no effect with IOS. But unfortunately, I can&amp;#39;t test with other kind of central.&lt;/p&gt;
&lt;p&gt;By the way, I am using the very last version of the SDK 4.4.2.&lt;/p&gt;
&lt;p&gt;Can you confirm that you don&amp;#39;t have this kind of problem on your side?&lt;/p&gt;
&lt;p&gt;I know that it is another problem and I don&amp;#39;t want to interfere with the main purpose of this question, but after pairing the second iPhone, the first one is no longer able to read secure characteristics (no problem with non-secure ones) of the nRF51822. I will open a second question on this topic when the whitelist problem will be fixed.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding about adertising mode "Whitelist"</title><link>https://devzone.nordicsemi.com/thread/4533?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2013 13:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c77de514-a4e1-4113-8473-c0d3d81cb900</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Your code looks very reasonable, and I suspect that what you see is a known issue with S110 version 5.2.1. As you can see in its release notes, it says:
&amp;quot;On a bonded device using IRK based whitelisting, the white list is not effective until after the first advertising event (NRFFOETT-515, DRGN-3141)&amp;quot;&lt;/p&gt;
&lt;p&gt;There isn&amp;#39;t any workaround you can do from your application for this, except to make sure to upgrade to the final 6.0.0 as soon as it&amp;#39;s available (should be very soon).&lt;/p&gt;
&lt;p&gt;Apart from this bug, you are correct that even when using whitelisting all Centrals will be able to see the device, the only effect of the whitelist is that the Peripheral will not accept the Connection request from other Centrals than the ones it has in its whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>