Hi,
I'm trying to set MAC address for Bluetooth in WL18xx. Could someone help with these questions?
a) What is the exact command sequence to set MAC for bluetooth?
b) Is BT mac address is already fused when WL18xx gets shipped?
Thanks.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'm trying to set MAC address for Bluetooth in WL18xx. Could someone help with these questions?
a) What is the exact command sequence to set MAC for bluetooth?
b) Is BT mac address is already fused when WL18xx gets shipped?
Thanks.
Hiep,
The "hciconfig reset" command resets the WL18xx Bluetooth. This will revert the BD_ADDR of the chip to the default address burnt in the devices ROM.
If you want to change the BD_ADDR, do the following every time the device is initialized after a power cycle or reset.
example : changing the BD_ADDR to "01:23:45:67:89:AB"
1. Before changing the BD_ADDR, read the default address.
hcitool cmd 0x04 0x0009
2. Send VS_Write_BD_ADDR (0xFC06) command. (Note that the ogf and ocf for this command are 0x3f and 0x0006 repectively. Reference for opcode and ocf, ogf)
hcitool cmd 0x3f 0x0006 0x01 0x23 0x45 0x67 0x89 0xab
3. Read the new BD_ADDR using the HCI_Read_BD_ADDR (0x1009) command.
hcitool cmd 0x04 0x0009
Best regards,
Vihang