<?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 set static nRF52 MAC address in using nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65025/how-to-set-static-nrf52-mac-address-in-using-nrf-connect-sdk</link><description>Hi, 
 could you please advise us on how to set a static MAC address for the nRF52 series? We haven&amp;#39;t been able to find it in the documentation. And it seems that default is that it changes randomly after each startup. 
 Thanks, 
 Lukas</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Oct 2020 13:59:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65025/how-to-set-static-nrf52-mac-address-in-using-nrf-connect-sdk" /><item><title>RE: How to set static nRF52 MAC address in using nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/273523?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 13:59:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f7037cd-9ef4-421b-a996-63facbf965ac</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Typically you can use the DEVICEADDR[0..1] in FICR for this:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/ficr.html?cp=4_2_0_12_0_13#register.DEVICEADDR-0"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/ficr.html?cp=4_2_0_12_0_13#register.DEVICEADDR-0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is not possible to change this address, however it is randomly generated in our production with the sole intent to be used for random static address in BLE.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set static nRF52 MAC address in using nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/270743?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 07:42:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deee6894-c8c3-4faf-ab75-2b482bdb64fd</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;Well, we have been able to get it working by commenting out some code in Zephyr. However, as you might feel this is not the best way.&lt;/p&gt;
[quote userid="13562" url="~/f/nordic-q-a/65025/how-to-set-static-nrf52-mac-address-in-using-nrf-connect-sdk/270577"]Have you tried to just create a const&amp;nbsp;&lt;span&gt;bt_addr_le_t&lt;/span&gt;&lt;span&gt;&amp;nbsp;address and pass that to&amp;nbsp;&lt;/span&gt;bt_set_id_addr() before calling bt_enable()?[/quote]
&lt;p&gt;This is related to our previous question. Seems like it should work this way. But do we really need to create our own address? Wouldn&amp;#39;t it make sense to use and store the generated one? Should be more robust.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set static nRF52 MAC address in using nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/270577?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 12:17:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b763d012-c34d-477f-9d20-effb7a150725</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Have you tried to just create a const&amp;nbsp;&lt;span&gt;bt_addr_le_t&lt;/span&gt;&lt;span&gt;&amp;nbsp;address and pass that to&amp;nbsp;&lt;/span&gt;bt_set_id_addr() before calling bt_enable()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set static nRF52 MAC address in using nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/270168?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 16:46:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e5a8cd2-08a4-4aae-a919-5da874617baa</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t want to put pressure on you, but could you please try to briefly answer our questions? I think we don&amp;#39;t need the sample and we will figure it out. Only answers would be sufficient. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set static nRF52 MAC address in using nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/268204?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 07:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7ef37f0-b1a5-45ed-a950-53bd2aa6468f</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;Ok, we got the&amp;nbsp;&lt;span&gt;CONFIG_BT_SETTINGS=y in the host. However, we are still not able to figure out the workflow of how to set a random static address.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In the Zephyr API, we found function bt_set_id_addr() that we perhaps should use. However, usage is not clear to me.&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Seems like we need to define our own MAC address while calling&amp;nbsp;&lt;span&gt;bt_set_id_addr(). Is there an option on how to store the generated one?&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Where should we call settings_save()?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;settings_load() could be called only after bt_enable() or it throws an error.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Do we need to use&amp;nbsp;BT_LE_ADV_OPT_USE_IDENTITY?&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Would you be please so kind and provide us an example code on how to get it working with the nRF91 host and nRF52 controller?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set static nRF52 MAC address in using nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/267015?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 13:07:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d1cfb6b-9142-4624-acd9-315d6cac8932</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Try setting&amp;nbsp;&lt;span&gt;CONFIG_BT_PRIVACY=n set or&amp;nbsp;CONFIG_BT_SETTINGS=y in the proj.conf file. It should not hurt to set&amp;nbsp;them in the nrf52 controller as well.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set static nRF52 MAC address in using nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/266731?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 12:23:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f06983f-0d2e-4702-b1b6-4a2b613b2647</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;It wasn&amp;#39;t enabled. However, when we tried it, we were not able to get it working due to the Zephyr settings module.&lt;/p&gt;
&lt;p&gt;These configs should be set on Bluetooth Host, right? In our case, we are using nRF9160 as a host and nRF52 as a controller.&amp;nbsp;Should it work without problems?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set static nRF52 MAC address in using nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/265478?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 08:16:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:953bae70-f602-4a51-874e-2e29df0a9ef5</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Is&amp;nbsp;CONFIG_BT_PRIVACY=y set or&amp;nbsp;CONFIG_BT_SETTINGS=n set?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>