<?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>direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12873/direct-advertising-with-whitelist</link><description>Hi 
 I want to connect to only a single master device by s110. I used the example parameter setting from &amp;quot;ble_app_hids_keyboard&amp;quot; for gap_params_init, advertising_init and finally called
err_code = ble_advertising_start(BLE_ADV_MODE_FAST); 
 Here my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Apr 2016 08:09:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12873/direct-advertising-with-whitelist" /><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48975?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2016 08:09:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3676ebdd-32b3-4b5f-8fd5-22693466c27b</guid><dc:creator>armin</dc:creator><description>&lt;p&gt;Hi Petter&lt;/p&gt;
&lt;p&gt;Thanks for the tip, it works now properly for the iOS. The problem was very simple, somehow I&amp;#39;ve had corrupt data in the softdevice, after a erase all (which is not supported by default in our debugging tool...) it worked!&lt;/p&gt;
&lt;p&gt;And Thanks a lot for the example about update bond information!
&lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-peripheral-bond-handling"&gt;https://github.com/NordicSemiconductor/nRF51-ble-peripheral-bond-handling&lt;/a&gt;
It really helbed me. The program is working now.&lt;/p&gt;
&lt;p&gt;BR Armin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48974?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 12:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:342db44f-8f56-443c-adce-ca2aac4264c5</guid><dc:creator>armin</dc:creator><description>&lt;p&gt;I created a case in the My Page, see case ID 28174. There, I added a demo-project with my init routine. see the main() routine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48971?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 10:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65890bf9-b798-4abc-bb58-81986d7abfaa</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;ble_apps_hids_keyboard should work with single connection yes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48970?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 10:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efe80839-93e3-4a77-8646-19b931f5809e</guid><dc:creator>armin</dc:creator><description>&lt;p&gt;I&amp;#39;ll see what I can do.
However, if I follow up the example project &amp;quot;Bluetooth Le Keyboard&amp;quot; it should work with a single connection, right? Or is there another example more easy?
I&amp;#39;ll check it again and provide you a small project in case of no success!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48969?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 10:10:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d88d0b9-fe9a-43b8-b1ec-aa0bf831f0de</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It is strange. It would really be of a big help if you could share your project privately and confidentially through your MyPage at www.nordicsemi.no. If this is not possible, maybe you can remove the sensitive parts, and see if the issue is still reproducible, and share that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48968?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 10:01:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f144831e-cb0d-4cb1-aaa2-f3127f21c4f3</guid><dc:creator>armin</dc:creator><description>&lt;p&gt;The whitelist has following params:
addr_type = -26&lt;/p&gt;
&lt;p&gt;addr_count = 1&lt;/p&gt;
&lt;p&gt;irk = a value of 16 bytes&lt;/p&gt;
&lt;p&gt;irk_count = 0   (..probably this is strange)&lt;/p&gt;
&lt;p&gt;The size of the whitelist and irk is set to 1!
..i can&amp;#39;t send you the entire code, since we do not have a non-disclosure agreement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48967?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 09:47:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3ff5e76-2446-4faf-a8cc-d262d43a3e5e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Looks correct. But I meant if you could check what the contents of whitelist that is created. What address(es) and IRK(s) does it have in it? I can&amp;#39;t also test your project here if you like, if you upload the complete project and tell me which SoftDevice and SDK version you are using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48963?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 08:48:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0505bdf-2d1e-4a15-8027-e65e211d9520</guid><dc:creator>armin</dc:creator><description>&lt;p&gt;ble_gap_whitelist_t whitelist;&lt;/p&gt;
&lt;p&gt;ble_gap_addr_t    * p_whitelist_addr[WHITELIST_ADDR_MAX_COUNT];&lt;/p&gt;
&lt;p&gt;ble_gap_irk_t     * p_whitelist_irk[WHITELIST_IRK_MAX_COUNT];&lt;/p&gt;
&lt;p&gt;whitelist.addr_count = WHITELIST_ADDR_MAX_COUNT;&lt;/p&gt;
&lt;p&gt;whitelist.irk_count  = WHITELIST_IRK_MAX_COUNT;&lt;/p&gt;
&lt;p&gt;whitelist.pp_addrs   = p_whitelist_addr;&lt;/p&gt;
&lt;p&gt;whitelist.pp_irks    = p_whitelist_irk;&lt;/p&gt;
&lt;p&gt;err_code = dm_whitelist_create(&amp;amp;mAppHandle, &amp;amp;whitelist);&lt;/p&gt;
&lt;p&gt;err_code = ble_advertising_whitelist_reply(&amp;amp;whitelist);&lt;/p&gt;
&lt;p&gt;break;
do I have to set any address to it? or is the whiteliste after setting up managed handled by the s110?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48962?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 08:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dea11493-3d00-4587-951a-cdfe82904b90</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What do you put inside the whitelist? What is in it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48961?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 08:18:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dadf2300-7d63-44d4-8a79-2d0499619676</guid><dc:creator>armin</dc:creator><description>&lt;p&gt;it is called with this parameters (line 293-303, ble_advertising.c):
adv_params.fp          = BLE_GAP_ADV_FP_FILTER_CONNREQ;&lt;/p&gt;
&lt;p&gt;adv_params.p_whitelist = &amp;amp;m_whitelist;&lt;/p&gt;
&lt;p&gt;m_advdata.flags        = BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED;&lt;/p&gt;
&lt;p&gt;err_code               = ble_advdata_set(&amp;amp;m_advdata, NULL);&lt;/p&gt;
&lt;p&gt;if(err_code != NRF_SUCCESS)&lt;/p&gt;
&lt;p&gt;{
return err_code;
}&lt;/p&gt;
&lt;p&gt;m_adv_evt = BLE_ADV_EVT_FAST_WHITELIST;&lt;/p&gt;
&lt;p&gt;LOG(&amp;quot;[ADV]: Starting fast advertisement with whitelist.\r\n&amp;quot;);
--&amp;gt; where &amp;quot;ble_advdata_set&amp;quot; is executed successful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48964?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 07:50:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:101555d5-3bab-4c58-a5b0-ecc6ba8bef12</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;sd_ble_gap_adv_start() is used inside ble_advertising_start().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48966?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 07:46:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4edce4c0-6234-4387-ba69-58323d335842</guid><dc:creator>armin</dc:creator><description>&lt;p&gt;I do not use the &amp;quot;sd_ble_gap_adv_start()&amp;quot;. It&amp;#39;s according the example code &amp;quot;ble_app_hids_keyboard&amp;quot; where only ble_advertising_start() is used. Do I have to use &amp;quot;sd_ble_gap_adv_start()&amp;quot; instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48965?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 07:41:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5a7794a-1782-4075-b059-31690f51a867</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;sd_ble_gap_adv_start() and ble_advertising_start() is not the same function. I&amp;#39;m guessing that the error originates from sd_ble_gap_adv_start()? What parameters are given to it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48973?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 07:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c8e4b89-8b0c-4138-bf6e-8de8ffac06ed</guid><dc:creator>armin</dc:creator><description>&lt;p&gt;Yes, the error is returned by ble_advertising_start(BLE_ADV_MODE_FAST). I can pass BLE_ADV_MODE_DIRECTED or BLE_ADV_MODE_FAST, both time the NRF_ERROR_INVALID_PARAM is returned.
But I guess the root failure is in init. Since I&amp;#39;m advertising without whitlist and directed disabled, it works..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct advertising with whitelist</title><link>https://devzone.nordicsemi.com/thread/48972?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 07:01:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:227251c5-7c1f-46e3-8617-ccb4310f60b3</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m guessing this is returned from sd_ble_gap_adv_start()? What parameters are given to it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>