If I bought unique MAC address from IEEE. How can I update to nrf51822?
If I bought unique MAC address from IEEE. How can I update to nrf51822?
Most customers use only a Random Device Address, as a Public Device Address usually does not provide any benifits. That said, you can set the address using the sd_ble_gap_address_set()
SoftDevice call. The first parameter should be set to BLE_GAP_ADDR_CYCLE_MODE_NONE
and the second parameter is a pointer to a struct containing the address and address type, ble_gap_addr_t
. Here the address type shall be BLE_GAP_ADDR_TYPE_PUBLIC
.
You will have to make this call every time you enable the SoftDevice. In practice this means once every boot-up. As you will use a different address for every device, you will probably want to write the address to a specific location in flash during production, and read the address from flash and use that with the call to sd_ble_gap_address_set()
.
Most customers use only a Random Device Address, as a Public Device Address usually does not provide any benifits. That said, you can set the address using the sd_ble_gap_address_set()
SoftDevice call. The first parameter should be set to BLE_GAP_ADDR_CYCLE_MODE_NONE
and the second parameter is a pointer to a struct containing the address and address type, ble_gap_addr_t
. Here the address type shall be BLE_GAP_ADDR_TYPE_PUBLIC
.
You will have to make this call every time you enable the SoftDevice. In practice this means once every boot-up. As you will use a different address for every device, you will probably want to write the address to a specific location in flash during production, and read the address from flash and use that with the call to sd_ble_gap_address_set()
.
I want to know how to do this too. I have searched other thread that it needs to call everytime in bootup. Is it correct? And which type of addreas should choose? And what is the difference between the two options which can be passed to the api for the first argument?