[libhid-discuss] retrieving large HID descriptor bytes
mike stone
vrspace1987 at yahoo.com.tw
Fri Jun 18 06:52:45 UTC 2010
Peter Stuge <peter <at> stuge.se> writes:
Hi Peter,
>
> > usb_interrupt_read worked. usb_control_msg failed.
>
> How does the control transfer fail?
>
tmp[0] = 'S'; tmp[1] = 'c'; tmp[2] = 0x0; tmp[3] = 0x0; tmp[4] = '\n';
ret = usb_control_msg(dev_handle, 0x22, 0x9, 0x200, 0x0, &tmp[0], 24, 1000);
if( ret < 0)
printf("usb_control_msg failed*** %i \n", ret);
usb_control_msg failed*** -2
Thanks!
Mike
More information about the libhid-discuss
mailing list