Re: [Bluez-devel] Bluetooth and HAL

Marcel Holtmann
2005-01-20T00:26:25Z

Hi Paul,

> I want to add bluetooth devices in HAL (Hardware Abstraction Layer).
> This way all programs interesting in bluetooth devices can be notified of
> the addition or removal of a bluetooth device.
> What should we export about a bluetooth device that might be
> of interest for userspace programs ?
> I think of the following, but I don't know if we really need all of them:
>
> bluetooth.address string (ex: 00:0d:33:44:33:c6)
> bluetooth.interface string (ex: hci0)
> bluetooth.interface_up int
> bluetooth.linux.driver string (ex: hci_usb)
> bluetooth.linux.ifindex int
> bluetooth.linux.sysfs_path string
> bluetooth.HCI_version int
> bluetooth.HCI_revision int
> bluetooth.LMP_version int
> bluetooth.LMP_version int
> bluetooth.Manufacturer string
> bluetooth.ChipVersion string
> Maybe :
> bluetooth.features ?
> bluetooth.packet_types ?
>
> Corrections, comments and suggestions are appreciate.

looks fine so far, but ChipVersion is vendor specific and not really of
interest. For interface_up you may should simply take all flags and then
the userspace application can decode it like hciconfig does. You may
wanna include the features, but be aware of the extended features from
the Bluetooth 1.2 specification. The packet_types are useless and I am
going to remove that support at some point. Maybe you wanna add the
class of device value.

Regards

Marcel