<?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 get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2112/how-to-get-6-byte-mac-address-at-nrf51822</link><description>When I scan BLE device at nRF UARTv2.0 App in Android4.4, it is appar device name(Ex:Nordic_UART) and 6 byte device address(MAC address?).
I want to include mac address in device name.
How to get 6 byte mac address at nrf51822?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Jul 2019 03:21:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2112/how-to-get-6-byte-mac-address-at-nrf51822" /><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/195498?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 03:21:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4301cca4-9dfe-4263-b211-46ff84466ca4</guid><dc:creator>mikeg78</dc:creator><description>&lt;p&gt;So to confirm - the addresses are randomly selected but unique to any given nordic nRF chip? So your production will check for uniqueness and assign a new random number should a new selected address already exist. The reason I am confirming is that we need to rely on a unique identifier for our own production. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/128766?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 10:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f91faa4-3d19-4634-a236-ae66a85bd009</guid><dc:creator>Jakub</dc:creator><description>&lt;p&gt;What is the smallest part of MAC address that can be used as a unique ID of a certain device?&lt;br /&gt;&lt;br /&gt;I know that first 3 bytes are vendor-specific (Nordic) so another 3 bytes are unique across&amp;nbsp;Nordic products. But are they totally random, or is there any pattern that can allow us to use only 2 bytes for a specific product (nRF51822)?&lt;br /&gt;&lt;br /&gt;- - - -&lt;br /&gt;Disclaimer: I know this is an old thread, but frequently shows up in Google and that&amp;#39;s why I decided to include my question here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/125585?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 15:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e40476-b09d-403e-91d8-e8bca2d099e0</guid><dc:creator>Nero</dc:creator><description>&lt;p&gt;Hello ,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I want to display the 6 byte mac address of mycustom card by uart (I already configured uart), i want to know how I can use the registers NRF_FICR-&amp;gt; DEVICEADDR [0] and NRF_FICR-&amp;gt; DEVICEADDR [1] to achieve my objective.(if there are any example of that ) &lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/121326?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2018 00:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c32bb2f-0620-4f18-a9c9-8e8a31ede419</guid><dc:creator>CeDeROM</dc:creator><description>&lt;p&gt;Here IEEE SA RA provides a guide on MAC organization and assignment for production devices:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://standards.ieee.org/develop/regauth/tut/eui.pdf"&gt;standards.ieee.org/.../eui.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/121318?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 21:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fd10c89-0c1b-491d-8631-5761f276d679</guid><dc:creator>CeDeROM</dc:creator><description>&lt;p&gt;So numbers are random but not legitimate IEEE RA registered?&lt;/p&gt;
&lt;p&gt;Chips will work for testing but for production I need to buy my own MAC address space?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/9005?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2017 10:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:728064da-e343-4ffb-ac7c-09572eef55a5</guid><dc:creator>Artem Zemlyanukhin</dc:creator><description>&lt;p&gt;Håkon, thank you for response!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/9004?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2017 06:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bddadb12-ccf5-4ad1-865a-25b4fd50fba2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The BLE address we provide is a random static address, which means that it is random generated. This does not use any vendor name. The high order of randomness (46 bits are random) in this type of address does not provide 100 % security wrt. two devices having the same address, but the probability is quite low.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/9006?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 15:30:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ff739bd-4f35-43e6-990f-a4537b9bc5bb</guid><dc:creator>Artem Zemlyanukhin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can Nordic MAC address be the same as MAC address of BLE Soc made by another Vendor? As I understand, your MAC address is not an unique address where the first 3 bytes mean Vendor name (&lt;a href="http://www.coffer.com/mac_find/)."&gt;www.coffer.com/.../).&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/9008?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 12:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1e8e26d-2a5e-4466-9478-150070559edf</guid><dc:creator>uly</dc:creator><description>&lt;p&gt;You can also use nrfgo studio, run a BLE relevant example (e.g. ble_app_proximity), programming the ble_app_proximity.hex file. Then use your phone (bluetooth enabled) to find the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/9003?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2015 07:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d37015f1-d93a-433a-8da3-d560597c90c4</guid><dc:creator>Jacksonlv</dc:creator><description>&lt;p&gt;I use the code below but I got the mac address is different from I set .What&amp;#39;s more,I find  it is constant.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_gap_addr_t m_address_1;
m_address_1.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE;
for(uint8_t i = 0;i&amp;lt;2;i++)
{
   m_address_1.addr[i] = 0xAAAAAAAA;
}
sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &amp;amp;m_address_1);
while(1)
{      
        for(uint8_t i = 0;i&amp;lt;2;i++)
        {
          Serial.println(NRF_FICR-&amp;gt;DEVICEID[i]);
        }
        delay(1000);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/9002?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2015 08:42:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5172bcf1-33b5-4dfa-88e2-6917dd5306fb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Jackson,&lt;/p&gt;
&lt;p&gt;You can only change the MAC on your local device. To change it on a peer-device, you will need to implement a &amp;quot;hook&amp;quot; (or a ble service) to do this.&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/9001?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2015 08:37:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:269d0e9f-1fe1-48f3-91a9-55251bc4475b</guid><dc:creator>Jacksonlv</dc:creator><description>&lt;p&gt;Can I change the mac address by some APPs or some upper monitor?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/9007?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 06:55:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67296724-25a1-4e9a-b945-9a4d98544571</guid><dc:creator>Lee YongKwan</dc:creator><description>&lt;p&gt;Thanks for your help.
I succecced it.&lt;/p&gt;
&lt;p&gt;char strDeviceName[20];
void device_name_set(void)
{
int no;
no = NRF_FICR-&amp;gt;DEVICEADDR0%100000;
sprintf(&amp;amp;strDeviceName[0], &amp;quot;%s%05d\0&amp;quot;, &amp;amp;DEVICE_NAME[0], no);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;static void gap_params_init(void)
{
...
device_name_set();
err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode,
(uint8_t *) strDeviceName,
strlen(strDeviceName));
...
}&lt;/p&gt;
&lt;p&gt;Good day.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get 6 byte mac address at nrf51822</title><link>https://devzone.nordicsemi.com/thread/9000?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2014 11:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5111c21a-f08b-4548-9b8f-e719b4b39ded</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;By default, the BLE address is derived from the NRF_FICR-&amp;gt;DEVICEADDR[] and is of 48 bits length (6 bytes).
This registers are randomly generated in our production, and they are unique for each device (2^46 different combinations, due to MSbits set to &amp;#39;11&amp;#39;).&lt;/p&gt;
&lt;p&gt;You can read out the address using the API call, &amp;quot;sd_ble_gap_address_get(..);&amp;quot; or reading the FICR-&amp;gt;DEVICEADDR[x] registers.&lt;/p&gt;
&lt;p&gt;Example:
My device advertises with &amp;quot;0xE724 08C78790&amp;quot;&lt;/p&gt;
&lt;p&gt;DEVICEADDR[0] = 0x08C78790
DEVICEADDR[1] = 0xYYYYA724&lt;/p&gt;
&lt;p&gt;The reason why &amp;quot;A7&amp;quot; becomes &amp;quot;E7&amp;quot; is because the specification says that the 2 MSBit of the address must be set &amp;#39;11&amp;#39; (if you&amp;#39;re very interested, see Bluetooth Core v4.0, Vol 3, Part C, chapter 10.8.1.)&lt;/p&gt;
&lt;p&gt;BR
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>