Ok. But I get the same result:<br><br> TRACE: hid_interrupt_read(): retrieving interrupt report from device 004/003[0] ...<br>WARNING: hid_interrupt_read(): failed to get interrupt read from device 004/003[0]: could not claim interface 0: Device or resource busy<br>
hid_interrupt_read 21<br><br>Jordi.<br><br><div class="gmail_quote">2009/7/28 Charles Lepple <span dir="ltr"><clepple@ghz.cc></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Jul 28, 2009, at 1:42 AM, Jordi Puigsegur wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What am I doing wrong?<br>
</blockquote>
<br></div>
This does not seem right:<br>
<br>
ret = hid_interrupt_read(hid, USB_ENDPOINT_OUT+1, (void*)&packet, sizeof(packet), 1000);<br>
<br>
The "_OUT" direction is relative to the PC, so a _read needs to have an _IN endpoint, and a _write needs a _OUT endpoint.<br>
<br>
Given the following section in lsusb, it should probably be USB_ENDPOINT_IN+1:<br>
<br>
Endpoint Descriptor:<br>
bLength 7<br>
bDescriptorType 5<br>
bEndpointAddress 0x81 EP 1 IN<br>
bmAttributes 3<br>
Transfer Type Interrupt<br>
Synch Type None<br>
Usage Type Data<br>
wMaxPacketSize 0x0008 1x 8 bytes<br>
bInterval 1<br>
<br>
<br>
</blockquote></div><br>