<?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>White-list without bond manager</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2000/white-list-without-bond-manager</link><description>Hi 
 Is possible to use GAP White-list to restrict connections without the bond manager system ?
Just by save the white-list with pstorage..... 
 for exemple, first open connection:
retrieve peer caracteristics with ble_gap_evt_connected_t
 https</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Sep 2015 14:36:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2000/white-list-without-bond-manager" /><item><title>RE: White-list without bond manager</title><link>https://devzone.nordicsemi.com/thread/8578?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2015 14:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de3be9e0-1c39-432e-bbf4-44acc1572748</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Solution is here: &lt;a href="https://devzone.nordicsemi.com/question/51252/whitelist-advertising-with-ble_gap_adv_fp_filter_connreq-leads-to-hardfault/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: White-list without bond manager</title><link>https://devzone.nordicsemi.com/thread/8577?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2014 08:14:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6be3b321-65d9-47ab-aacf-83a39c9ff0f2</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;As I said in my first reply, there shouldn&amp;#39;t be any problems with this. If you just want to use addresses for whitelisting, just make sure that the irk_count field is set to 0, in which case the contents for IRKs doesn&amp;#39;t matter. Also note that the pp_addrs should be initialized with a pointer to an array of addresses (i.e. if you have ble_gap_addr_t addresses[2], you should use &amp;amp;addresses as parameter).&lt;/p&gt;
&lt;p&gt;If you still have issues, please post your complete code project, either here or in a support case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: White-list without bond manager</title><link>https://devzone.nordicsemi.com/thread/8575?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2014 08:11:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adbbc55c-e827-4812-8429-e4b17e2999c0</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;As it seems you have found out, the hard fault occurs since you basically say &amp;quot;I want memory for a pointer to a whitelist struct&amp;quot;, but use it as a full whitelist struct. Since it is a static global, it will be initialized to 0, and wen you then try to access fields within this struct, it will dereference 0, and then try to access that address. That may very well cause a hard fault, since you may easily end up outside of the memory of the chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: White-list without bond manager</title><link>https://devzone.nordicsemi.com/thread/8573?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2014 08:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c110f67-d642-4d9d-94e4-fccbd476e024</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Unless there is other code you&amp;#39;re not showing, this will give you a 0x07 back from sd_ble_gap_adv_start(). The reason is that starting advertising with a filter policy, but an empty whitelist doesn&amp;#39;t really make sense. You should therefore make sure to check whether your whitelist actually have any content before you try using a filter policy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: White-list without bond manager</title><link>https://devzone.nordicsemi.com/thread/8576?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2014 15:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd4757d0-1f3b-44ef-b724-ad82dc3ce1d9</guid><dc:creator>thomas</dc:creator><description>&lt;p&gt;I think i don&amp;#39;t build my white-list structure correctly.irk keys  adds problems.
In all examples, whitelist come from the bond manager.&lt;/p&gt;
&lt;p&gt;How to correctly  generate a whitelist ? Is possible to use bond manager get whitelist function without the bond operation ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: White-list without bond manager</title><link>https://devzone.nordicsemi.com/thread/8572?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2014 09:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36d71be5-378c-4763-a139-00c24f505115</guid><dc:creator>thomas</dc:creator><description>&lt;p&gt;I&amp;#39;ve changed declaration ( i declared a ble_gap_whitelist_t directly, not a pointer)
The Hardfault doesn&amp;#39;t occur.&lt;/p&gt;
&lt;p&gt;But now, my sd_ble_gap_adv_start function return me the NRF_ERROR_INVALID_PARAM code. So i verified adv_params but i don&amp;#39;t find     anything..&lt;/p&gt;
&lt;p&gt;Do i forgot something ?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static ble_gap_whitelist_t whitelist;					

&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;whitelist.addr_count = 0x00;
whitelist.pp_addrs = NULL;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;static void advertising_start(void)
{
    uint32_t             err_code;
    ble_gap_adv_params_t adv_params;

		protection_mode = true;
		connection_state = false;
	
    // Start advertising
    memset(&amp;amp;adv_params, 0, sizeof(adv_params));
    
    dv_params.type        = BLE_GAP_ADV_TYPE_ADV_IND; //adv
    adv_params.p_peer_addr = NULL;
    adv_params.fp          = BLE_GAP_ADV_FP_FILTER_BOTH; // both with whitelist //
    adv_params.interval    = APP_ADV_INTERVAL;
    adv_params.timeout     = APP_ADV_TIMEOUT_IN_SECONDS;
		adv_params.p_whitelist = &amp;amp;whitelist;

    err_code = sd_ble_gap_adv_start(&amp;amp;adv_params);
    APP_ERROR_CHECK(err_code);
 
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: White-list without bond manager</title><link>https://devzone.nordicsemi.com/thread/8574?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2014 15:55:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6efe3de9-bd09-4566-b3d3-e2e6cfa036dd</guid><dc:creator>thomas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A part of my code to achieve this :&lt;/p&gt;
&lt;p&gt;i&amp;#39;ve declared a whitelist in global :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static ble_gap_whitelist_t *whitelist;					
static ble_gap_addr_t	*addr_array[BLE_GAP_WHITELIST_ADDR_MAX_COUNT];
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In my advertising initialization i want to initialize my whitelist without any pair so i do that ( when the device started the first time) :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;whitelist-&amp;gt;addr_count = 0x00;
whitelist-&amp;gt;pp_addrs = NULL;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;second line cause an hardfault and i don&amp;#39;t know wy ... Any idea ?
It&amp;#39;s possible to advertise with an empty whitelist ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: White-list without bond manager</title><link>https://devzone.nordicsemi.com/thread/8571?ContentTypeID=1</link><pubDate>Thu, 27 Mar 2014 16:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1900c38-b732-4688-a25f-a81fc05038bf</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Yes, this should be perfectly doable. You can store the address you get in the connected event somewhere in flash, for instance using the pstorage module, and then create a whitelist structure yourself when you want to start advertising again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>