<?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>I want to change the BLE address.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18877/i-want-to-change-the-ble-address</link><description>I use it. nRF52832 PCA10040 Vesion12.2.0 
 I am working on the ble_app_uart example as a base. 
 I used the sd_ble_gap_addr_set command to change the BLE address but it was not possible. 
 What should I do?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Jan 2017 06:13:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18877/i-want-to-change-the-ble-address" /><item><title>RE: I want to change the BLE address.</title><link>https://devzone.nordicsemi.com/thread/72937?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2017 06:13:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f30d1ee6-f6ba-4667-a2c7-1e38bcea27a6</guid><dc:creator>bull</dc:creator><description>&lt;p&gt;Thank you :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to change the BLE address.</title><link>https://devzone.nordicsemi.com/thread/72936?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 08:38:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa28ba53-1f19-4d9d-8ea0-0f8889a0d0df</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The error code you are seeing 12802 (0x3202) corresponds to the error &lt;a href="https://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;. The description of this error is: &lt;em&gt;The upper two bits of the address do not correspond to the specified address type.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;From your code, you set the address type to 7 (&lt;code&gt;p_addr.addr_type = 7&lt;/code&gt;), which is not a defined &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/group___b_l_e___g_a_p___a_d_d_r___t_y_p_e_s.html"&gt;GAP Address type&lt;/a&gt;. The default address type is &lt;code&gt;BLE_GAP_ADDR_TYPE_RANDOM_STATIC&lt;/code&gt; (0x01). Also make sure the two LSB of the address corresponds to the specifications for the address type, as shown in this image:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1108.BLE_5F00_GAP_5F00_AddressTypes.png" alt="BLE_addr_types" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to change the BLE address.</title><link>https://devzone.nordicsemi.com/thread/72938?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 06:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62c406b2-69c7-41bf-885f-d7c90c187158</guid><dc:creator>bull</dc:creator><description>&lt;p&gt;ble_gap_addr_t	p_addr;
p_addr.addr_id_peer = 1;
p_addr.addr_type = 7;
p_addr.addr[0] = 0xb4;
p_addr.addr[1] = 0x39;
p_addr.addr[2] = 0x34;
p_addr.addr[3] = 0x00;
p_addr.addr[4] = 0x00;
p_addr.addr[5] = 0x71;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_stack_init();   
    	
    **err_code = sd_ble_gap_addr_set(&amp;amp;p_addr);**
    	
gap_params_init();
services_init();
advertising_init();
conn_params_init();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Can I do this at this location?&lt;/p&gt;
&lt;p&gt;Is there a mistake in this address?&lt;/p&gt;
&lt;p&gt;The error code is 12802.&lt;/p&gt;
&lt;p&gt;Can you represent the minimum requirements in bytes?
ex) 0x00 0x01 0xf0 0x01 0x01 0x01&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to change the BLE address.</title><link>https://devzone.nordicsemi.com/thread/72935?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 05:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c363efc0-de8d-41d8-b4c1-c433a0b70099</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Hi, have you received an error number after calling sd_ble_gap_addr_set command?&lt;/p&gt;
&lt;p&gt;A static address is a 48-bit randomly generated address and shall meet the following
requirements&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The two most significant bits of the static address shall be equal to ‘1’&lt;/li&gt;
&lt;li&gt;All bits of the random part of the static address shall not be equal to ‘1’&lt;/li&gt;
&lt;li&gt;All bits of the random part of the static address shall not be equal to ‘0’&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Have you followed the above?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>