[libhid-discuss] problems with libhid and Oregon Scientific weather station WMRS203 (interrupt read)
Jordi Puigsegur
jordi.puigsegur at gmail.com
Tue Jul 28 19:18:30 UTC 2009
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 <clepple at ghz.cc>
> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/libhid-discuss/attachments/20090728/7ffd88ad/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output.txt.gz
Type: application/x-gzip
Size: 1158 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/libhid-discuss/attachments/20090728/7ffd88ad/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c.gz
Type: application/x-gzip
Size: 700 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/libhid-discuss/attachments/20090728/7ffd88ad/attachment-0001.bin>
More information about the libhid-discuss
mailing list