AnsweredAssumed Answered

Setting a True Random Address

Question asked by mitchell.juen on Dec 9, 2015
Latest reply on Jan 13, 2016 by Marchese.Graziella

How do I set a true random address?
Using hci_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;



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  !?!