Hi Team,
We are using nRF54L15.
1. Is there any api to read BLE MAC address?. If yes, can please provide it?
2. What are the configurations need to make 'yes' in .prj to read BLE MAC address?
Regards,
Sravan Rikka
Hi Team,
We are using nRF54L15.
1. Is there any api to read BLE MAC address?. If yes, can please provide it?
2. What are the configurations need to make 'yes' in .prj to read BLE MAC address?
Regards,
Sravan Rikka
The MAC address programmed into the device, in the factory information configuration registers (FICR), can be read using the hwinfo driver in Zephyr.
https://docs.zephyrproject.org/latest/doxygen/html/group__hwinfo__interface.html
A call to "hwinfo_get_device_id(buf, 6)" with a pointer to a buffer of at least 6 bytes in length will retrieve this value.
It is also possible to use vendor specific HCI commands to get the current address. Look into using "bt_hci_cmd_send_sync" with "SDC_HCI_OPCODE_CMD_IP_READ_BD_ADDR". Similarly, this requires a pointer to a buffer of at least 6 bytes in length
Thanks,
Helmut Lord
The MAC address programmed into the device, in the factory information configuration registers (FICR), can be read using the hwinfo driver in Zephyr.
https://docs.zephyrproject.org/latest/doxygen/html/group__hwinfo__interface.html
A call to "hwinfo_get_device_id(buf, 6)" with a pointer to a buffer of at least 6 bytes in length will retrieve this value.
It is also possible to use vendor specific HCI commands to get the current address. Look into using "bt_hci_cmd_send_sync" with "SDC_HCI_OPCODE_CMD_IP_READ_BD_ADDR". Similarly, this requires a pointer to a buffer of at least 6 bytes in length
Thanks,
Helmut Lord