Question
Setting a True Random Address
Posted on December 09, 2015 at 16:55
How do I set a true random address?
Usinghci_le_set_random_address
() I get 0xFF FF FF FF FF FF. Hardware is Nucleo-L053R8 & IDB05A1 Also setting a Beacon with BlueNRG GUI v1.8.0 with a random address also results in a address of 0xFF * 6 Following is the code I tried:- uint8_t RANDOM_BDADDR[] = {0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa};uint8_t bdaddr[BDADDR_SIZE];
uint8_t stack_mode = 4;
BlueNRG_RST();
ret = aci_hal_write_config_data(CONFIG_DATA_ROLE,CONFIG_DATA_ROLE_LEN,stack_mode);
ret = hci_le_set_random_address(RANDOM_BDADDR));
ret = hci_read_bd_addr(bdaddr);
//
bdaddr = 0xFF FF FF FF FF FF !?!