[libhid-discuss] Misunderstanding input and output paths

Xiaofan Chen xiaofanc at gmail.com
Fri Apr 23 05:32:06 UTC 2010


I will probably start with something simpler and
to understand the various concept of HID device,
Input/Output/Feature report and report IDs.

In the first glance, the device has multiple
report IDs. You can use Control Transfer
to set and get various reports. You can also
use Interrupt transfer for the Input/Output report.

The Windows program can of course help.

For a simpler HID device and how to use
libusb to control it, you can refer to the following
links.

Jan Axelson's generic HID firmware and Host
software and my simple libsub based program to drive
it under Linux/Windows/BSDs.
http://www.lvr.com/hidpage.htm
http://www.microchip.com/forums/tm.aspx?m=340898

I've added report ID support to the firmware and
have the corresponding libusb-1.0 based host software.
(tested under Linux, Windows and FreeBSD 8).
http://code.google.com/p/picusb/downloads/list
http://picusb.googlecode.com/files/Firmware_generic_hid.zip
http://picusb.googlecode.com/files/libusb1_lvrhid8.c

If you can, get Jan Axelson's USB Complete book
and have some good understand about USB and HID.



-- 
Xiaofan http://mcuee.blogspot.com



More information about the libhid-discuss mailing list