<?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>Is it possible set public MAC addr. with nRF Connect SDK (Zephyr)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74150/is-it-possible-set-public-mac-addr-with-nrf-connect-sdk-zephyr</link><description>Hello. 
 I have a question about setting MAC address. 
 
 For now, my device uses random static address from FICR. 
 And I also use &amp;quot;bt_set_id_addr()&amp;quot; function for test purpose. 
 
 But I couldn&amp;#39;t find the way that setting MAC address type to public address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 May 2021 08:06:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74150/is-it-possible-set-public-mac-addr-with-nrf-connect-sdk-zephyr" /><item><title>RE: Is it possible set public MAC addr. with nRF Connect SDK (Zephyr)?</title><link>https://devzone.nordicsemi.com/thread/307839?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 08:06:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61a33659-6b81-484d-b466-238815a4b3df</guid><dc:creator>Jason Lee</dc:creator><description>&lt;p&gt;Oh, I actually don&amp;#39;t need any helps.&lt;/p&gt;
&lt;p&gt;I solved this problem myself.&lt;/p&gt;
&lt;p&gt;I just respond brec&amp;#39;s question.&lt;/p&gt;
[quote userid="82302" url="~/f/nordic-q-a/74150/is-it-possible-set-public-mac-addr-with-nrf-connect-sdk-zephyr/307556#307556"]What was the API call? I see &lt;a href="https://docs.zephyrproject.org/latest/reference/bluetooth/controller.html?highlight=bluetooth%20api"&gt;bt_ctlr_set_public_addr()&lt;/a&gt;&lt;span&gt;&amp;nbsp;in mainline Zephyr, or is it&amp;nbsp;sdc_hci_cmd_vs_zephyr_write_bd_addr() in nrfxlib?&lt;/span&gt;[/quote]
&lt;p&gt;So, I think you can close this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your note.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/74150/is-it-possible-set-public-mac-addr-with-nrf-connect-sdk-zephyr/307660#307660"]Note that if you use the SoftDevice controller,&amp;nbsp;sdc_hci_cmd_vs_zephyr_write_bd_addr() is called when you call&amp;nbsp;bt_ctlr_set_public_addr(). Specifically this is because the implementation of&amp;nbsp;bt_ctlr_set_public_addr() when using&amp;nbsp; the SoftDevice controller is like this (nrf\subsys\bluetooth\controller\hci_driver.c):[/quote]
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible set public MAC addr. with nRF Connect SDK (Zephyr)?</title><link>https://devzone.nordicsemi.com/thread/307836?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 07:45:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa65489-5291-4f79-aec3-b844e4bc23ec</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You should use that in any case. Have you resolved the issue, or does it still not work? If not, can you share your code so that I can see if I spot something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible set public MAC addr. with nRF Connect SDK (Zephyr)?</title><link>https://devzone.nordicsemi.com/thread/307817?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 00:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30249e36-8b95-4db9-ad30-db1da2cd0356</guid><dc:creator>Jason Lee</dc:creator><description>&lt;p&gt;For now I&amp;#39;m using &amp;quot;&lt;span&gt;CONFIG_BT_LL_SW_SPLIT&lt;/span&gt;&lt;span&gt;=y&amp;quot; in prj.conf file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So that&amp;#39;s why I should use&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/reference/bluetooth/controller.html?highlight=bluetooth%20api"&gt;bt_ctlr_set_public_addr()&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for precise information.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible set public MAC addr. with nRF Connect SDK (Zephyr)?</title><link>https://devzone.nordicsemi.com/thread/307704?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 14:53:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6d24feb-f53a-4b4c-925b-b5719cb172b7</guid><dc:creator>brec</dc:creator><description>&lt;p&gt;Perfect! Thanks for the tip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible set public MAC addr. with nRF Connect SDK (Zephyr)?</title><link>https://devzone.nordicsemi.com/thread/307660?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 12:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5da020cc-a6ba-4c5e-9f44-46c527c029da</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Note that if you use the SoftDevice controller,&amp;nbsp;sdc_hci_cmd_vs_zephyr_write_bd_addr() is called when you call&amp;nbsp;bt_ctlr_set_public_addr(). Specifically this is because the implementation of&amp;nbsp;bt_ctlr_set_public_addr() when using&amp;nbsp; the SoftDevice controller is like this (nrf\subsys\bluetooth\controller\hci_driver.c):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void bt_ctlr_set_public_addr(const uint8_t *addr)
{
	const sdc_hci_cmd_vs_zephyr_write_bd_addr_t *bd_addr = (void *)addr;

	(void)sdc_hci_cmd_vs_zephyr_write_bd_addr(bd_addr);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible set public MAC addr. with nRF Connect SDK (Zephyr)?</title><link>https://devzone.nordicsemi.com/thread/307572?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 00:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa55fd6c-283c-44d9-a1ab-ed942a475792</guid><dc:creator>Jason Lee</dc:creator><description>&lt;p&gt;I just use the first one.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for let me know second one. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible set public MAC addr. with nRF Connect SDK (Zephyr)?</title><link>https://devzone.nordicsemi.com/thread/307556?ContentTypeID=1</link><pubDate>Thu, 29 Apr 2021 17:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5681e69f-566a-4ef1-a892-f4cb93faff1e</guid><dc:creator>brec</dc:creator><description>&lt;p&gt;What was the API call? I see &lt;a href="https://docs.zephyrproject.org/latest/reference/bluetooth/controller.html?highlight=bluetooth%20api"&gt;bt_ctlr_set_public_addr()&lt;/a&gt;&lt;span&gt;&amp;nbsp;in mainline Zephyr, or is it&amp;nbsp;sdc_hci_cmd_vs_zephyr_write_bd_addr() in nrfxlib?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible set public MAC addr. with nRF Connect SDK (Zephyr)?</title><link>https://devzone.nordicsemi.com/thread/305455?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 09:09:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdfb52f4-b218-4570-8fbd-299c0ac0044e</guid><dc:creator>Jason Lee</dc:creator><description>&lt;p&gt;I solve this my own. I didn&amp;#39;t know there are some&amp;nbsp;APIs for that.&lt;/p&gt;
&lt;p&gt;Anyway, I&amp;#39;ll close this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>