Bluetooth support in libhal
David Zeuthen
david at fubar.dk
Fri Jul 22 11:43:37 PDT 2005
Hi,
On Fri, 2005-07-22 at 12:58 +0200, P. Durante wrote:
> Hi,
> I'm taking a look at the HAL cvs repo, I can't find whether it can
> already handle bluetooth device-related events (basically
> plugging/unplugging), is someone working on it? I'd like to, and would
> really appreciate if someone points me directly to what files I'll
> need to hack on :)
> As an aside, since the bluetooth specification describes many
> different transport layers between the bluetooth host and the hardware
> (namely: USB, RS232 and UART), one has to implement "listeners" for
> every layer or is there already support for the HCI (Host Controller
> Interface) ? the latter option would be the best, since in linux the
> hci interface is very well done and abstracts over all of the layers
> mentioned above transparently.
My view is basically that we need sysfs support in the kernel bluetooth
subsystems to get structures like in [1]. Once we have this, it's
trivial to add support to hal. Good news is that I actually just spoke
with Marcel Holtmann today (at OLS) and showed him this and he asked me
to forward the patch.
Cheers,
David
[1] : A few months back I played around with patching the kernel to do
stuff like this
[root at daxter ~]# tree /sys/class/bluetooth/hci0
/sys/class/bluetooth/hci0
|-- address
|-- device -> ../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2.1/3-2.1:1.0
|-- flags
|-- inquiry_cache
|-- name
`-- type
1 directory, 5 files
[root at daxter ~]# tree /sys/bus/btdev/
/sys/bus/btdev/
|-- devices
| `-- 1E:01:E9:F2:50:00 -> ../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2.1/3-2.1:1.0/1E:01:E9:F2:50:00
`-- drivers
`-- btdev
`-- version
4 directories, 1 file
[root at daxter ~]# tree /sys/class/input/event3/
/sys/class/input/event3/
|-- dev
`-- device -> ../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2.1/3-2.1:1.0/1E:01:E9:F2:50:00
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list