Re: libusb_control_transfer returns LIBUSB_ERROR_IO and GetLastError()=1186 (Win7)
Xiaofan Chen <[email protected]> Wed, 5 Aug 2015 21:04:18 +0800
| Newsgroups | gmane.comp.lib.libusb.devel.windows |
|---|---|
| Message-ID | <CAGjSPUDF6murG=U3SVnGbB8jn6nPtSOpAfGF4RsdSVeM=ur1uA@mail.gmail.com> |
On Tue, Aug 4, 2015 at 4:06 PM, licedey <[email protected]> wrote: > Hello, > > I am trying to send Output Report to USB keyboard device using > libusb_control_transfer. After the call I've got such error from libusb > debug: > [ 0.157009] [00001c3c] libusb: debug [_hid_set_report] report ID: 0x00 > [ 0.157009] [00001c3c] libusb: debug [_hid_set_report] Failed to Write HID > Outpu > t Report: [1] Incorrect function > Control Out error - Input/Output Error (LIBUSB_ERROR_IO) (Last error - > 1168) Please use libusb mailing list for libusb related issues. This list is for libusb-win32, libusbdotnet and libusbK. libusb mailing list subscription: https://lists.sourceforge.net/lists/listinfo/libusb-devel BTW, if this is a generic HID device, please use HIDAPI instead, it may be more suitable than libusb. http://www.signal11.us/oss/hidapi/ -- Xiaofan ------------------------------------------------------------------------------