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,
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,
Hi Marc,
Could you give more information about what you plan to do with the MAC address of the device ?
Which provisioning method are you using ? (PB-ADV or PB-GATT). Which device you used as the provisioner ?
After the device get provisioned the MAC address is not very important as the device operate with the unicast address instead.
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.
Sorry for the late reply! Too bad for me as the problem is still opened on my side.
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.
For information I am using PB-ADV for provisioning. The provisioner is a development kit NRF52832.
The only way I see to get MAC address is by using sd_ble_gap_addr_get(&ble_addr) but this is only for the MAC address on the device where the firmware is running.
Maybe the MAC address is included within a frame when communicating the provisioner?
Thanks.
Hi Marc,
In our implementation the static address is used when advertising unprovisioned beacon. The provisioner report the MAC address of the unprovisioned beacon in beacon_packet_in() p_packet_meta->scanner.adv_addr.
Due to privacy reason it's not preferred to use static MAC address but resolvable random address when communicate with ADV bearer.
Ok thanks so much!
Ok thanks so much!