Hi
I am looking for unique id of nrf52. is there any to set or generate unique id throughout all nrf52 devices.
Thanks & Regards Paramvir Singh
Hi
I am looking for unique id of nrf52. is there any to set or generate unique id throughout all nrf52 devices.
Thanks & Regards Paramvir Singh
Hi,
You have the DEVICEID registers in FICR(Factory information configuration registers). The 2 DEVICEID registers each contain a 64 bit unique device identifier.
If you want to read and print the DEVICEID in the FICR register, you can do it like this:
NRF_LOG_INFO("DEVICEID0: %08X\n", NRF_FICR->DEVICEID[0]);
NRF_LOG_INFO("DEVICEID1: %08X\n", NRF_FICR->DEVICEID[1]);
Hi,
You have the DEVICEID registers in FICR(Factory information configuration registers). The 2 DEVICEID registers each contain a 64 bit unique device identifier.
If you want to read and print the DEVICEID in the FICR register, you can do it like this:
NRF_LOG_INFO("DEVICEID0: %08X\n", NRF_FICR->DEVICEID[0]);
NRF_LOG_INFO("DEVICEID1: %08X\n", NRF_FICR->DEVICEID[1]);
Is there any relation towards the MAC address you see when you use BLE ? Can you also use that as a unique identifer?
Hi Erlot,
The DEVICEADDR registers are used for that(48 bit device address). See this answer on how the MAC address is derived from the DEVICEADDR .
Thanks! :)
The 2 DEVICEID registers each contain a 64 bit unique (sic) device identifier
No! the DEVICEID is not unique - it is random!