LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to code a host application to talk to a HID device in Debian Linux (https://www.linuxquestions.org/questions/linux-software-2/how-to-code-a-host-application-to-talk-to-a-hid-device-in-debian-linux-775093/)

timxu 12-11-2009 11:14 PM

How to code a host application to talk to a HID device in Debian Linux
 
Hi All,
I got a trouble about communicating between host application and HID device (with a button) in a embedded Debian Linux OS. The both of them are working fine on ubuntu. When I insert my HID device on my embedded debian linux Unit, following message show up:
# usb 1-1: new low speed USB device using ehci_marvell and address 3
usb 1-1: configuration #1 chosen from 1 choice
HID device not claimed by input or hiddev

and in /dev folder some usbdev files are generated:
usbdev1.3
usbdev1.3_ep00
usbdev1.3_ep02
usbdev1.3_ep81
usbdev1.3_ep83

When I run my host app, and press the button, no any data transferring happened (check with CATc captured data). I know the host app run fine on uBuntu, because I know how to open /dev/usb/hiddev0 in my code. I don't know how to open this kind of file in debian linux. I tried use each files above, the button still doesn't work. Can anyone help me to point out if it is HID driver issue or coding issue.

Thanks

worm5252 12-12-2009 03:57 PM

Not sure how to fix this, but is the HID device identified if you run lsusb?


All times are GMT -5. The time now is 10:36 AM.