Results 1 to 3 of 3
I use following from Linux-HId.pdf, but the linux console return "hiddev open: No such device"
Do anybody know why? many thanks
int main (int argc, char **argv) {
int fd ...
- 05-05-2008 #1Just Joined!
- Join Date
- May 2008
- Posts
- 2
USB "hiddev" problem
I use following from Linux-HId.pdf, but the linux console return "hiddev open: No such device"
Do anybody know why? many thanks
int main (int argc, char **argv) {
int fd = -1;
int version;
/* ioctl() requires a file descriptor, so we check we got one, and then open it */
if (argc != 2) {
fprintf(stderr, "usage: %s hiddevice - probably /dev/usb/hiddev0\n", argv[0]);
exit(1);
}
if ((fd = open(argv[1], O_RDONLY)) < 0) {
perror("hiddev open");
exit(1);
}
- 05-06-2008 #2Just Joined!
- Join Date
- Mar 2008
- Posts
- 9
Hi David,
Go to /dev/usb and run "ls". Make sure hiddev0 is listed.
Btw, I tried developing a device driver with libhid and it was HORRIBLE! I found no documentation or examples. This README was my friend:
ftp://lx10.tx.ncsu.edu/pub/Linux/dri...README_mcc_usb
If you poke around the directory which contains the README, I think you'll find some source code.
Tiberiu
- 05-07-2008 #3Just Joined!
- Join Date
- May 2008
- Posts
- 2
Hi Tiberiu ,
Go to /dev/usb and run "ls". Make sure hiddev0 is listed.
i check with "ls" hiddev0 is listed,but still cannot open the device
and also thanks for yr info about libhid,and hiddev
currently, i search in internet for info about using HID class and Audio class for USB device, and then i find hiddev and try to use it, for audio class, i still studying whether the usbaudio.c under sound directory in linux is audio class or something else


Reply With Quote
