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
As you are mentioning Linux as OS in use, I assume that you are not having installed Keil MDK:
http://www2.keil.com/mdk5
Fyi - Keil introduces a USB HID example at:
https://www.keil.com/pack/doc/mw/USB/html/dev_hid_tutorial.html
https://www.keil.com/pack/doc/mw/USB/html/index.html
Note, the USB HID interface, as part of the Middleware component, requires a registration of MDK:
http://www2.keil.com/mdk5/selector
http://www.keil.com/pack/doc/mw/General/html/index.html
Keil Distributors:
http://www.keil.com/distis/