Property 'bluetooth_hci.address' not reliable?

Bastien Nocera hadess at hadess.net
Sat Apr 4 09:40:21 PDT 2009


On Sat, 2009-04-04 at 16:56 +0200, Roel Huybrechts wrote:
> Good afternoon :)
> 
> 
> I'm using HAL to find any Bluetooth devices attached to my computer in
> order to get (amongst other things) their MAC address. I've found the
> 'bluetooth_hci.address' property to be no reliable way to do this.

The address of the device will be 00:00:00:00:00:00 before it's been
powered up. HAL probably gets the property before the device is fully
setup, or the Bluetooth netlink kernel code isn't telling HAL the
address changed. Either way, use the BlueZ D-Bus interface instead.

Cheers



More information about the hal mailing list