views:

36

answers:

1

Hello. I am writing a libusb program to interact with a usb gamepad. I found it, opened it, detached from kernel, claimed interface, and when I try to usb_interrupt_read it returns -110 (resource temporarily unavailable) what is doing on? also, usb_set_configuration fails, so I commented it out. do I need it?

Why isn't it reading?

i = usb_interrupt_read(handle, 0x81, bytes, 8, 50);
printf("%d read\n", i);
perror("read");
A: 

If you didn't call usb_set_configuration(), how do you know the current configuration has an interrupt endpoint? Can you give some more information about that failure?

Carl Norum
I know that from the USB tree in Linux. what do you need t know about the failure? make I can give you more so you can give me more...
pvinis