Can not write on Hid device

Hello, I have a HID USB device on witch I can’t write.

With lsusb I see the endpoint

      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval     

 

I use the libusb.h for open, read and write with a C++ program. All works fine, but the write gets an Input/output Error.

0.001745] [00000ccb] libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=2

 

I see no output on the EndpointAddress, but a test program on Windows or QNX are running. I have test it with different Linux distribution and it is always the same behavior.

Does anyone know who can I solve the problem?

Thanks

More questions in this forum