<?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>Get private Bluetooth device address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34787/get-private-bluetooth-device-address</link><description>I am reading through IETF RFC7668, IPv6 over BLUETOOTH(R) Low Energy . In section 3.2.2, it states the following: 
 At network interface initialization, both 6LN and 6LBR SHALL generate and assign to the Bluetooth LE network interface IPv6 link-local</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 May 2018 13:24:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34787/get-private-bluetooth-device-address" /><item><title>RE: Get private Bluetooth device address</title><link>https://devzone.nordicsemi.com/thread/133838?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 13:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e802086-0beb-45c4-931a-0f2d408729e1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are right, I read the question too quickly. For some reason &amp;quot;private&amp;quot; was converted to &amp;quot;public&amp;quot; in my head, which is obviously not the same :)&lt;/p&gt;
&lt;p&gt;As you write, the SoftDevice does not have an API to get the current private resolvable address of the device. The&amp;nbsp;sd_ble_gap_addr_get() will only return the identity address (public or random static), but not the current&amp;nbsp;private resolvable address. It should be possible for the application to calculate the resolvable address using information you can obtain with&amp;nbsp;sd_ble_gap_privacy_get(). It might not be as effective, but it should be OK as this is only done once per connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get private Bluetooth device address</title><link>https://devzone.nordicsemi.com/thread/133816?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 12:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97ea5042-7425-477b-bf96-de79f33ec056</guid><dc:creator>Mateusz</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Einar,&lt;/p&gt;
&lt;p&gt;According to the docs, sd_ble_gap_addr_set can only be used to set a public or static address, whereas the recommendation states to use a private address.&lt;/p&gt;
&lt;p&gt;Private addresses can be set, indirectly, with the SDK by using&amp;nbsp;sd_ble_gap_privacy_set, but there is no way to, as far I can tell, obtain the generated address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get private Bluetooth device address</title><link>https://devzone.nordicsemi.com/thread/133805?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 12:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30bf73be-393b-4af0-b2ca-364af25f5dee</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not see anything that prevent you from following the recommendation if you want to. The SDK support it by allowing the application to set the address using &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=2_3_1_1_0_2_1_2_1#gaef69dc212534adf4b78d211edce2267b"&gt;sd_ble_gap_addr_set&lt;/a&gt;&amp;nbsp;(sd_ble_gap_address_set for SoftDevice versions &amp;lt; 3.0.0).&amp;nbsp;Nordic does not provide private addresses, but you can obtain a&amp;nbsp;Bluetooth Address (BD_ADDR) range from the &lt;a href="http://standards.ieee.org/develop/regauth/oui/"&gt;IEEE Registration Authority&lt;/a&gt;&amp;nbsp;(see &lt;a href="https://www.bluetooth.com/specifications/assigned-numbers"&gt;Assigned Numbers&lt;/a&gt;&amp;nbsp;as the Bluetooth SIG website).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>