<?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 have a question about Bluetooth MAC address.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98749/i-have-a-question-about-bluetooth-mac-address</link><description>Get the BLE address with sd_ble_gap_address_get() and send it to the smartphone app on the other device. However, I noticed that the address that can be obtained with sd_ble_gap_address_get() is different every time, 
 and when I investigated, the address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Apr 2023 02:17:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98749/i-have-a-question-about-bluetooth-mac-address" /><item><title>RE: I have a question about Bluetooth MAC address.</title><link>https://devzone.nordicsemi.com/thread/421133?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 02:17:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bef54edc-4bdf-400b-a7f6-3b58a20d3703</guid><dc:creator>hiroyasu</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/8984/switching-between-random-and-normal-mac-address"&gt;Switching between random and normal mac address?&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The above method worked for me.&lt;br /&gt;thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about Bluetooth MAC address.</title><link>https://devzone.nordicsemi.com/thread/420942?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 08:46:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ab9b647-c131-49c7-ac45-d5971e3b804e</guid><dc:creator>hiroyasu</dc:creator><description>&lt;p&gt;Mr. Vidar Berg&lt;/p&gt;
&lt;p&gt;First, sd_ble_gap_address_get(), sd_ble_gap_address_set()&lt;br /&gt;was wrong.&lt;br /&gt;Correctly sd_ble_gap_addr_get(), sd_ble_gap_addr_set()&lt;br /&gt;was.&lt;/p&gt;
&lt;p&gt;Then I checked the link.&lt;/p&gt;
&lt;p&gt;What I want to achieve is to display the MAC address displayed under the device in the android app nRFConnect in the iOS app as well.&lt;br /&gt;For that I tried the following:&lt;/p&gt;
&lt;p&gt;①&lt;br /&gt;sd_ble_gap_addr_get(&amp;amp;device_addr)&lt;/p&gt;
&lt;p&gt;②&lt;br /&gt; macaddr[0] = *((uint32_t *)0x100000A4);&lt;br /&gt; macaddr[1] = *((uint32_t *)0x100000A8);&lt;br /&gt; mcp = (uint8_t *)(&amp;amp;macaddr[0]);&lt;br /&gt; for(i=0;i&amp;lt;6;i++)&lt;br /&gt; {&lt;br /&gt;caddr.addr[i] = *mcp++;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;③&lt;br /&gt;NRF_FICR-&amp;gt;DEVICEADDR[0];&lt;br /&gt;NRF_FICR-&amp;gt;DEVICEADDR[0]&amp;gt;&amp;gt;8;&lt;br /&gt;NRF_FICR-&amp;gt;DEVICEADDR[0]&amp;gt;&amp;gt;16;&lt;br /&gt;NRF_FICR-&amp;gt;DEVICEADDR[0]&amp;gt;&amp;gt;24;&lt;br /&gt;NRF_FICR-&amp;gt;DEVICEADDR[1];&lt;br /&gt;NRF_FICR-&amp;gt;DEVICEADDR[1]&amp;gt;&amp;gt;8;&lt;/p&gt;
&lt;p&gt;However, none of them are different from the MAC address displayed in the android app nRFConnect.&lt;br /&gt;Additionally, the value changes each time you access it.&lt;br /&gt;I understand this is because it is &amp;quot;BLE_GAP_ADDR_TYPE_RANDOM_STATIC&amp;quot;.&lt;br /&gt;So how can I get the MAC address displayed on nRFConnect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about Bluetooth MAC address.</title><link>https://devzone.nordicsemi.com/thread/420875?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 00:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3bdc2fb-f6aa-4c79-89d5-877c332af944</guid><dc:creator>hiroyasu</dc:creator><description>&lt;p&gt;Mr. Vidar Berg&lt;/p&gt;
&lt;p&gt;thank you for your reply.&lt;/p&gt;
&lt;p&gt;It seems to be possible by using FICR-&amp;gt;DEVICEADDR from the link destination.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about Bluetooth MAC address.</title><link>https://devzone.nordicsemi.com/thread/420684?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 08:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6ff9afb-567d-4713-b64a-3db34027adac</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are you seeing this with any of our SDK examples? sd_ble_gap_address_get() should always return the same address unless your application is calling sd_ble_gap_address_set() at some point to&amp;nbsp;override the default HW address (is a random static address).&amp;nbsp;There is no public address provisioned on the chip.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can read more about the different address type in this post:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/7310/bluetooth-address-built-in-or-random"&gt;bluetooth address : built-in or random ?&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>