Skip to contentSkip to conversation

BT_ADDR not updated

DISCUSSION Randy Yates 2 participants 2 messages Feb 16, 2013 – Feb 18, 2013 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

This question is regarding bluez 5.2:

i'm changing bt addr "on-the-fly" via a vendor-specific hcitool command but the bluetoothctl is not seeing the new address, even after a hciconfig hci0 reset

however i do see the new address via "hcitool dev", so it's getting changed in the device

is there some bug in bluez updating the device address on a reset?

Signature · 3 lines
Randy Yates
Digital Signal Labs
http://www.digitalsignallabs.com
#1 lore raw

Hi Randy,

Quoted 10 lines · Randy Yates

This question is regarding bluez 5.2:

i'm changing bt addr "on-the-fly" via a vendor-specific hcitool command but the bluetoothctl is not seeing the new address, even after a hciconfig hci0 reset

however i do see the new address via "hcitool dev", so it's getting changed in the device

is there some bug in bluez updating the device address on a reset?

The address is assumed to stay unchanged from the moment that the existence of the controller is presented to user space, i.e. there is no event through which user space would be notified of changes to its address. If your hardware requires this kind of initialization (e.g. if it doesn't have a proper address from the start) the best place for writing the address would probably be the HCI driver's initialization routine.

Johan