gta02 - bluetooth & usb
andy at openmoko.com
Mon Apr 21 11:28:54 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Somebody in the thread at some point said:
| quick one guys - where do i very quickly and reliably find out:
| 1. if bluetooth is up and active (what /proc or /sys magic file do i need)
One way is to parse /proc/bus/usb/devices... BT module has power and a
reset thing, but looking at those states doesn't tell you if it is ready
for duty. Or, if the BT device makes a network interface, test for
presence of that.
| 2. usb - when someone connects via usb (yes i can piggyback on the
| saying its connected to power and charging but really i want to detect
| connectivity - be it being plugged into a host, or a gadget being
| got any quick and dirties for me?
Same guy will help if we are being a host, I'll meddle around and see
about being a gadget.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the openmoko-kernel