<?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 the MAC address of a node which is about to be provisioned?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74505/how-to-get-the-mac-address-of-a-node-which-is-about-to-be-provisioned</link><description>Dear Community, 
 From a provisioner, I want to get the MAC address of a device (provisionee) during the provisioning process. Is there an example somewhere in the forum please? 
 Thanks,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 May 2021 09:35:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74505/how-to-get-the-mac-address-of-a-node-which-is-about-to-be-provisioned" /><item><title>RE: How to get the MAC address of a node which is about to be provisioned?</title><link>https://devzone.nordicsemi.com/thread/310364?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 09:35:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef57b811-20f0-4281-93a1-8cf13f25781d</guid><dc:creator>MarcK</dc:creator><description>&lt;p&gt;Ok thanks so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the MAC address of a node which is about to be provisioned?</title><link>https://devzone.nordicsemi.com/thread/310363?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 09:34:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78d7b2dd-36bd-4df1-921d-111d6e2d3884</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Marc,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In our implementation the static address is used when advertising unprovisioned beacon.&amp;nbsp;The provisioner report the MAC address of the unprovisioned beacon in&amp;nbsp;beacon_packet_in()&amp;nbsp;p_packet_meta-&amp;gt;scanner.adv_addr.&lt;/p&gt;
&lt;p&gt;Due to privacy reason it&amp;#39;s not preferred to use static MAC address but resolvable random address when communicate with ADV bearer.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the MAC address of a node which is about to be provisioned?</title><link>https://devzone.nordicsemi.com/thread/310339?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 08:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:526b086d-8494-479b-b6c9-2ed49a10182f</guid><dc:creator>MarcK</dc:creator><description>&lt;p&gt;Sorry for the late reply! Too bad for me as the problem is still opened on my side.&lt;/p&gt;
&lt;p&gt;I would like to retrieve the MAC Address (instead of unicast address) of the provisionee and then create a subscription group based on the last 2 bytes of the MAC address. In a mesh network composed of several tags, this will permit to address generic on off message to the wanted tag thanks to an application on a smartphone displaying a list of tags.&lt;/p&gt;
&lt;p&gt;For information I am using PB-ADV for provisioning. The provisioner is a development kit NRF52832.&lt;/p&gt;
&lt;p&gt;The only way I see to get MAC address is by using sd_ble_gap_addr_get(&amp;amp;ble_addr) but this is only for the MAC address on the device where the firmware is running.&lt;/p&gt;
&lt;p&gt;Maybe the MAC address is included within a frame when communicating the provisioner?&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 the MAC address of a node which is about to be provisioned?</title><link>https://devzone.nordicsemi.com/thread/307270?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 13:12:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f45a0387-0a61-40b3-9984-2ed675bbbffe</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Marc,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you give more information about what you plan to do with the MAC address of the device ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which provisioning method are you using ? (PB-ADV or PB-GATT). Which device you used as the provisioner ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After the device get provisioned the MAC address is not very important as the device operate with the unicast address instead.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;When scanning for the PB-ADV or PB-GATT provisionee beacon the provisioner/scanner should be able to get the BLE MAC address of the node.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>