<?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>Getting own bluetooth address of device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23861/getting-own-bluetooth-address-of-device</link><description>Hello, 
 I have migrated from SoftDevice S130 2.0.1 to SoftDevice S132 3.0.0 and found one mismathing in ble_gap_evt_connected_t structure. 
 There is absent an own_addr field which excites in previous version.
I used that field to get local bluetooth</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Aug 2017 08:44:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23861/getting-own-bluetooth-address-of-device" /><item><title>RE: Getting own bluetooth address of device</title><link>https://devzone.nordicsemi.com/thread/93877?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2017 08:44:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:765de1b4-a585-443f-b1a3-fb0a047e3641</guid><dc:creator>shenzn</dc:creator><description>&lt;p&gt;Thanks a lot, Hung Bui! I have found mistake in my source code. There is no any problem in &lt;strong&gt;sd_ble_gap_addr_get()&lt;/strong&gt; It works fine now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting own bluetooth address of device</title><link>https://devzone.nordicsemi.com/thread/93881?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 16:02:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a3fddb4-4310-4469-bce6-028af7c2bfdb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes it should properly.
I don&amp;#39;t know how you test, but we haven&amp;#39;t got any report like what you described. My quick test in the ble_app_proximity showed the above result, the address in the advertising match with the address i got when calling sd_ble_gap_addr_get(). Check the image above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting own bluetooth address of device</title><link>https://devzone.nordicsemi.com/thread/93880?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 13:08:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63fad076-695b-456f-8391-a39b20b79f5a</guid><dc:creator>shenzn</dc:creator><description>&lt;p&gt;When it advertising I see different addresses by peer_addr = &amp;amp;p_ble_evt-&amp;gt;evt.gap_evt.params.connected.peer_addr;
But I want to know my own address without looking for that address on another side of communication chain. The problem is that  sd_ble_gap_addr_get()  returns incorrect address. Different which I see during advertising. Hung Bui, Did you try the  sd_ble_gap_addr_get() function? Does it work correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting own bluetooth address of device</title><link>https://devzone.nordicsemi.com/thread/93878?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 12:52:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f58e7f99-a2f1-4b53-9923-aed9d46f7bfd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Can you use a phone or PC to check the address ? Try, for example, to let 2 devices advertising at the same time, and find the address, they should have different address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting own bluetooth address of device</title><link>https://devzone.nordicsemi.com/thread/93879?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 17:24:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aa792bc-650d-40ec-b4f2-05e1f9f7d226</guid><dc:creator>shenzn</dc:creator><description>&lt;p&gt;Sure, the sd_ble_gap_addr_get() has not return the same address. But it does in my case. I did like you say and check When it advertises I see unique address but if I use the mentioned function I am not able to get that address. So that function returns all the time the same value on different chips. So I am wondering if is it buggy function or me doing something wrong? If any way to check it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting own bluetooth address of device</title><link>https://devzone.nordicsemi.com/thread/93876?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 14:42:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24e4cc4d-9a7a-43ae-9b38-e59fe51f4455</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It doesn&amp;#39;t sound very right that all chip returns same address. The default address should match with the 48bit DEVICEADDR in the FICR.
Could you try to test with any ble peripheral example in the SDK ? Simply add sd_ble_gap_addr_get() call in and check the address. It should match with address when advertising. You can use PC or a Phone to check the address of the advertiser.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1220.address.PNG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting own bluetooth address of device</title><link>https://devzone.nordicsemi.com/thread/93884?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 12:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c16677b-a2ba-4425-965d-6808436df905</guid><dc:creator>shenzn</dc:creator><description>&lt;p&gt;I do not know which type of address is used (resolvable or static). How to check it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting own bluetooth address of device</title><link>https://devzone.nordicsemi.com/thread/93883?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 12:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2df6df2c-579e-4b5d-b208-0d111a2a674c</guid><dc:creator>shenzn</dc:creator><description>&lt;p&gt;Thanks for the answer Hung Bui!
In my case the sd_ble_gap_addr_get() function gets all the same value (0x04 0x00 0x20 0xE5 0x08 0x00) for different nFR52832 chips.
That is why I have asked about that thing.
If any other way to get the unique bluetooth address?
And why sd_ble_gap_addr_get() function returns the same value for different chips in my case?
Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting own bluetooth address of device</title><link>https://devzone.nordicsemi.com/thread/93882?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 11:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec13b29a-75b2-4cde-a5f6-a4a39d425f68</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Shenzn,&lt;/p&gt;
&lt;p&gt;Do you use resolvable random address ? Or you simply use the static random address comes as the default with the chip  ?&lt;/p&gt;
&lt;p&gt;If you use the static random address, you can just call sd_ble_gap_addr_get() to get the address. It should not be the same for all chips. Each chip should have different address in the FICR.&lt;/p&gt;
&lt;p&gt;If you use resolvable random address ( requires you to use _opt command to set) then it&amp;#39;s not much point of getting that address because it will change over time.&lt;/p&gt;
&lt;p&gt;Could you let me know what is the use of own_addr in your case ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>