Thoughts on a new driver
Phil Dibowitz <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hey folks,
I have a USB device that isn't support in linux. So, of course, I've been
toying with the idea of writing a driver for it.
It's a Logitech Harmony 880 universal remote. I'm thinking it's probably a
good candidate for a user-space libusb driver. The way it operates is pretty
simple: you go to a website, configure how your system is setup, it
generates a binary file you then download and use the proprietary mac/win
software to transfer this binary image to the device. The device reloads and
has it's new configuration.
So at a relatively blind guess, I'm thinking a few setup commands and a data
transfer is about all there is to this thing. That is of course without
having used any USB sniffers or anything.
Which leads me to my question. I'm not entirely sure where to start. Am I
right in thinking this is a good candidate for libusb? If so, I've glanced
at the libusb developers guide, but is there a way to figure out what this
thing expects? Should I start by trying to get some hardware docs from
Logitech (who given they supposedly have a linux driver "in the works" I
suspect is unlikely to give me anything), or is this thing (seemingly)
simple enough to figure out?
What's odd is when I plug it in, it declares itself a HID device:
bInterfaceClass 3 Human Interface Devices
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
Feb 1 22:44:04 rider kernel: usb 3-1: new full speed USB device using
uhci_hcd and address 2
Feb 1 22:44:05 rider kernel: HID device not claimed by input or hiddev
Feb 1 22:44:05 rider kernel: usbcore: registered new driver usbhid
Feb 1 22:44:05 rider kernel: drivers/usb/input/hid-core.c: v2.6:USB HID
core driver
I may end up getting some time to poke at this in a month or so, so I
thought I'd starting thinking/asking about this now...
--
Phil Dibowitz [email protected]
Open Source software and tech docs Insanity Palace of Metallica
http://www.phildev.net/ http://www.ipom.com/
"Never write it in C if you can do it in 'awk';
Never do it in 'awk' if 'sed' can handle it; Never use 'sed' when 'tr'
can do the job; Never invoke 'tr' when 'cat' is sufficient; Avoid
using 'cat' whenever possible" -- Taylor's Laws of Programming
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
signature.asc
(application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFwt6iN5XoxaHnMrsRAnp2AJ92uzBKviO6Rj6EjlIVAB7zejdjCACZATgt GrmV1rBLtndAD/6pUUk+jog= =Czl4 -----END PGP SIGNATURE-----