From: Johannes E. <joh...@er...> - 2004-03-29 19:30:47
|
On Mon, Mar 29, 2004, Oliver Stabel <oli...@gm...> wrote: > I am trying to receive data from my IR USb controler using interrupts. > I can successfully send control messages but I just receive an error > (0x92) when calling usb_interrupt_read: > > ... > rc = usb_set_configuration(lcd, 0x01); > printf("\nset_configuration %d\n", rc); // returns 0 > usb_claim_interface(lcd, i); > printf("\nclaim interface %d %d\n", rc, i); // returns 0 0 > rc = usb_interrupt_read(lcd, 0x81, cbuffer, 8, 0x35); > printf("\ninterrupt read %x\n", rc); // returns ffffff92 > ... [snip descriptors] ffffff92 = -110 = -ETIMEDOUT You should probably display return codes as signed decimal integers since it will be easier to determine what the problem is. Why do you have your timeout set to 0x35 (50 milliseconds)? Seems awefully low to me. JE |