<?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>how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19098/how-to-set-ble-gap-address-type-to-random_private_resolvable</link><description>I want to change the ble gap address type to RANDOM_PRIVATE_RESOLVABLE. In gap_params_init(), I add these line at the end of the function 
 ble_gap_addr_t *p_gap_address;
err_code = sd_ble_gap_addr_get(p_gap_address);
APP_ERROR_CHECK(err_code);
p_gap_address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Nov 2018 13:37:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19098/how-to-set-ble-gap-address-type-to-random_private_resolvable" /><item><title>RE: how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/thread/157098?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 13:37:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60cb97b1-618c-43c0-ac04-e0542933ff1e</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;For sd_ble_gap_addr_set&lt;/p&gt;
&lt;pre&gt;The address type must be either @ref BLE_GAP_ADDR_TYPE_PUBLIC or @ref BLE_GAP_ADDR_TYPE_RANDOM_STATIC&lt;/pre&gt;
&lt;p&gt;If you want to use a private address you should use sd_ble_gap_privacy_set. See &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s112.api.v6.1.0/group___b_l_e___g_a_p___p_r_i_v_a_c_y___a_d_v___m_s_c.html?cp=2_3_0_1_0_2_1_3_5_2"&gt;message sequence chart here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/thread/156532?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 17:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b244af3-4d07-4dbc-9590-3dd82ea376b0</guid><dc:creator>Shawn N.</dc:creator><description>&lt;p&gt;I am also running into this.&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;sd_ble_gap_addr_set&lt;/pre&gt;
&lt;p&gt;should accept&lt;/p&gt;
&lt;pre&gt;BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE&lt;/pre&gt;
&lt;p&gt;addresses.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/thread/156438?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 09:04:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3852522b-8229-4483-a460-5c8f29e5954c</guid><dc:creator>ntn</dc:creator><description>&lt;p&gt;Hi, I stumbled upon this question again, 2 years later. One use case should be the eddystone application, where the address shall be changed constantly for privacy reason. I looked into Nordic Eddystone implementation and BLE_GAP_ADDR_TYPE_PUBLIC was used, which is wrong and should be private non resolvable address.&lt;/p&gt;
&lt;p&gt;I however cannot manage to set the address to BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE, even if I have set the MSB 2 bits to 0x00. Error number 12802 (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/group___b_l_e___e_r_r_o_r_s___g_a_p.html#ga3eda228736d6c1dcbcf9aba2bd059068"&gt;&lt;code&gt;BLE_ERROR_GAP_INVALID_BLE_ADDR&lt;/code&gt;&lt;/a&gt;). SD 6.1, SDK 15.2. Is there any example in SDK that managed to set address type to BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE? Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/thread/73890?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2017 08:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1436522f-ac71-427c-8cef-3fd24d3fe778</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Yes, the using the timeslot api would work. Could it be possible to use a normal random static address? As long as you are non connectable I guess it shouldn&amp;#39;t matter? And could you also elaborate on the usecase, i.e. why you need to use a private non resolvable address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/thread/73888?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2017 09:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79e19670-0690-4776-ae21-5032cdfa4f97</guid><dc:creator>Marius Heil</dc:creator><description>&lt;p&gt;Sadly no, I am currently still using v2 of the SoftDevice because it is compatible for both nRF51 and nRF52. Will have to find something later when I migrate. I will probably disable and enable advertising/scanning/etc using the timeslot API. Hopefully this works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/thread/73889?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2017 09:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6327c59f-f0fa-4119-b405-3be3916ae0dd</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Looks like you are right. Did you figure out a way to do this? if not, I will check if there is any other way to manually set a Private non resolvable address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/thread/73891?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 14:07:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e029ea2-f53b-4823-87d9-b7b855f05313</guid><dc:creator>Marius Heil</dc:creator><description>&lt;p&gt;Do I really have to use sd_ble_gap_privacy_set if I want to use BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE? Or can I keep my code that works with version v2 by simply changing the GAP address myself using sd_ble_gap_addr_set?&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I have just implemented a multi advertiser that can broadcast using different addresses, but no it seems like this functionality has been modified and this is no longer possible :-( Any workarounds? This was the only sensible method for broadcasting multiple messages,...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/thread/73887?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 16:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c577c11f-cfdd-4e07-9470-d1849b1b1c68</guid><dc:creator>Moritz</dc:creator><description>&lt;p&gt;The error you got was &amp;quot;NRF_ERROR_INVALID_ADDR   (NRF_ERROR_BASE_NUM + 16)&amp;quot;
So your program was stuck in an endless loop.&lt;/p&gt;
&lt;p&gt;Your code needs to look like this to work.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_gap_privacy_params_t ble_gap_privacy_params = {0};
ble_gap_privacy_params.privacy_mode = BLE_GAP_PRIVACY_MODE_DEVICE_PRIVACY;
ble_gap_privacy_params.private_addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE;
ble_gap_privacy_params.private_addr_cycle_s = BLE_GAP_DEFAULT_PRIVATE_ADDR_CYCLE_INTERVAL_S;
ble_gap_privacy_params.p_device_irk = NULL;
err_code = sd_ble_gap_privacy_set(&amp;amp;ble_gap_privacy_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: how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/thread/73886?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 11:33:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:551bc7ae-74f3-448d-8d3f-6294e105af14</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;you don&amp;#39;t have to do sd_ble_gap_privacy_get first. just initialize the struct to 0. Anyway it looks like you are using the correct parameters. How do verify if this works or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/thread/73885?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 03:32:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:773125e6-31da-45db-92e0-44944222cfb8</guid><dc:creator>littlebei</dc:creator><description>&lt;p&gt;I tried to use sd_ble_gap_privacy_set() to set a random private resolvable address. I added these code in gap_params_init():&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	ble_gap_privacy_params_t *ble_gap_privacy_params;
	err_code = sd_ble_gap_privacy_get(ble_gap_privacy_params);
	APP_ERROR_CHECK(err_code);
	ble_gap_privacy_params-&amp;gt;privacy_mode = BLE_GAP_PRIVACY_MODE_DEVICE_PRIVACY;
	ble_gap_privacy_params-&amp;gt;private_addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE;
	ble_gap_privacy_params-&amp;gt;private_addr_cycle_s = BLE_GAP_DEFAULT_PRIVATE_ADDR_CYCLE_INTERVAL_S;
	ble_gap_privacy_params-&amp;gt;p_device_irk = NULL;
	err_code = sd_ble_gap_privacy_set(ble_gap_privacy_params);
	APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;No error or warning, but it still does not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ble gap address type to RANDOM_PRIVATE_RESOLVABLE</title><link>https://devzone.nordicsemi.com/thread/73884?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 11:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af033b92-52dd-4685-a6d1-92e07be60d25</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;For S132 v3 you need to use  &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=2_3_0_1_1_2_1_2_25#ga2203b7709d7178bc35e7f903bd0e913f"&gt;sd_ble_gap_privacy_set&lt;/a&gt; if you want to use a random private resolvable address. See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/structble__gap__privacy__params__t.html"&gt;ble_gap_privacy_params_t&lt;/a&gt; for details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>