Ok. But I get the same result:

  TRACE: hid_interrupt_read(): retrieving interrupt report from device
004/003[0] ...
WARNING: hid_interrupt_read(): failed to get interrupt read from device
004/003[0]: could not claim interface 0: Device or resource busy
hid_interrupt_read 21

Jordi.

2009/7/28 Charles Lepple <[email protected]>

> On Jul 28, 2009, at 1:42 AM, Jordi Puigsegur wrote:
>
>  What am I doing wrong?
>>
>
> This does not seem right:
>
>  ret = hid_interrupt_read(hid, USB_ENDPOINT_OUT+1, (void*)&packet,
> sizeof(packet), 1000);
>
> The "_OUT" direction is relative to the PC, so a _read needs to have an _IN
> endpoint, and a _write needs a _OUT endpoint.
>
> Given the following section in lsusb, it should probably be
> USB_ENDPOINT_IN+1:
>
>      Endpoint Descriptor:
>        bLength                 7
>        bDescriptorType         5
>        bEndpointAddress     0x81  EP 1 IN
>        bmAttributes            3
>          Transfer Type            Interrupt
>          Synch Type               None
>          Usage Type               Data
>        wMaxPacketSize     0x0008  1x 8 bytes
>        bInterval               1
>
>
>

Attachment: output.txt.gz
Description: GNU Zip compressed data

Attachment: test.c.gz
Description: GNU Zip compressed data

_______________________________________________
libhid-discuss mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
http://libhid.alioth.debian.org/

Reply via email to