I have a HID compliant Wi_Spy USB plug-in stick module. However I cannot manage
to read the device HID reports from my C program whatever I try. I have written
software for this device using Windows before, so I suspect the problem lies
mainly in the linux setting up.
Here are some of the steps I tried, I am sure I must be missing something, any
ideas? (The target is running the standard Debian off-the-peg TS7800
installation)
(1) With the stick plugged in, entering 'lsusb' on the console returns:
Bus 002 Device 002: ID 1781:083e
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Which tells me the stick is present and working.
(2) entering "cat /proc/bus/usb/devices" also tells me the stick is present and
working as I can get all sort of details about it.
(3) Then I entered "mknod /dev/usb/hid/hiddev0 c 180 96" as suggested by
various web articles (all the way to "hiddev15 c 180 111" )
(4) From what I understand from the app notes, opening one of the above files
e.g. "hiddev0" and calling ioctl functions with arguments such as
HIDIOCGDEVINFO should return information about the stick, plus actual data
reports. I am familiar with this side of HID from my Windows programming.
(5) However, I cannot open file "/dev/usb/hid/hiddev0" at all, I get a -1 error
(or any of the others: hiddev0-15)
(6) Doing a console "file" on hiddev0 returns "hiddev0: character special
(180/96)" So something exists!
(7) Having said all that, I can programmatically open file
"/dev/bus/usb/001/002" and even call ioclt() on it, but the report contents I
get back are meaningless
Any ideas what I may be doing wrong?
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|