Matto Marjanovic wrote:
I'm trying to write a user-space tool for a simple HID device. All this
device wants is to either receive or send 8 bytes in 'Report 0'.

The method used in libhid[1] is to bypass hiddev and use libusb directly on the usbfs nodes for the device.


hiddev works reasonably well for devices with simple descriptors that conform to the HID spec, but it is much easier to work around HID implementation bugs in userspace.

I'm not saying that libhid is the silver bullet for your problem (it is currently undergoing a rewrite[2]), but you might find the "force open" function to be helpful in getting past hiddev.

You can email the libhid development list if you have any questions about the code.

[1] http://savannah.nongnu.org/projects/libhid
[2] http://cvs.ailab.ch/cgi-bin/viewcvs.cgi/libhid/src/
[3] https://ailab.ch/mailman/listinfo/libhid

--
Charles Lepple
http://www.ghz.cc/charles/



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to