[libhid-discuss] Still can't interrupt_read() properly

Lars.G.Troppen at kongsberg.com Lars.G.Troppen at kongsberg.com
Thu Sep 11 06:11:09 UTC 2008


Hi, what kernel versin are you using? I have seen similar behaviour on Redhat WS4 & 5.

I ended up removing the usb 2.0 driver from the kernel (had no other use for it)

eg. rmmod ehci_hcd

Best Regards
lars

-----Original Message-----
From: libhid-discuss-bounces+lars.g.troppen=kongsberg.com at lists.alioth.debian.org [mailto:libhid-discuss-bounces+lars.g.troppen=kongsberg.com at lists.alioth.debian.org] On Behalf Of Marian Aldenhoevel
Sent: 10. september 2008 08:48
To: libhid-discuss List
Subject: Re: [libhid-discuss] Still can't interrupt_read() properly

Hi,

>> It then returns FAIL. That is understandable from the libhid code,
>> but I did get the 12 Bytes I was wanting (11 for the report,
>> there's the 0x42 reportID in front).
>
> So try 12 bytes.

Does not help. No change.

First request:

  TRACE: hid_set_output_report(): looking up report ID...
   TRACE: hid_prepare_parse_path(): preparing search path of depth 3 for parse
tree of USB device 001/002[0]...
   TRACE: hid_prepare_parse_path(): search path prepared for parse tree of USB
device 001/002[0].
  NOTICE: hid_find_object(): found requested item.
   TRACE: hid_set_output_report(): sending report ID 0x02 (length: 12) to USB
device 001/002[0]...
  NOTICE: hid_set_output_report(): successfully sent report to USB device
001/002[0].
  NOTICE: hid_interrupt_read(): successfully got interrupt report from device
001/002[0]

Second request:

   TRACE: hid_set_output_report(): sending report ID 0x02 (length: 12) to USB
device 001/002[0]...
  NOTICE: hid_set_output_report(): successfully sent report to USB device
001/002[0].
   TRACE: hid_interrupt_read(): retrieving interrupt report from device
001/002[0] ...
WARNING: hid_interrupt_read(): failed to get all of interrupt report from
device 001/002[0]; requested: 12 bytes, sent: 0 bytes.

libHid returns HID_RET_FAIL_INT_READ. I try again:

   TRACE: hid_interrupt_read(): retrieving interrupt report from device
001/002[0] ...
WARNING: hid_interrupt_read(): timeout on interrupt read from device 001/002[0]

And that's it. Sometimes it works on the second or third try. Not this time.

Ciao, MM

_______________________________________________
libhid-discuss mailing list
libhid-discuss at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss



More information about the libhid-discuss mailing list