Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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]);
    if ((fd = open(argv[1], O_RDONLY)) < 0) {
    perror("hiddev open");

  2. #2
    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:

    If you poke around the directory which contains the README, I think you'll find some source code.


  3. #3
    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

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts