Scott Hiles wrote:

I have a module that is written to talk directly to the usb core that works
by sending the 8 bytes in a urb exactly the same way that the 8 bytes are
read from the device through a urb.  The code for that is in the project
wish.sourceforge.net and works just fine but has other side effects such as
conflicting with HID and having to change with every kernel release.  I want
to convert to HID so that I stop chasing the changes in the kernel.

The approach taken by libhid is to just use libusb to submit the data to the device. You might want to search the linux-usb-devel archives for libhid.


Have I oversimplified my assumption that writing is the reverse of reading
using the usage calls? I have seen multiple requests for information on how
to write multiple bytes but I cannot find any direction or indication that
someone has figured out how to actually do it.

Given the large installed user base with the (somewhat broken) hiddev kernel driver, I can see the appeal, but you may want to consider the libhid/libusb approach. libusb-0.1.8 now has a function to detach the kernel driver (usually hiddev) from the device's HID interface.


http://www.ghz.cc/~clepple/libhid/doc/html/

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



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to