[libhid-discuss] Opening Microchip Mouse In a Circle Demo in ubuntu

Charles Lepple clepple at ghz.cc
Thu Aug 7 12:22:05 UTC 2008


On Aug 7, 2008, at 4:37 AM, Kim Chuan Lim wrote:

> parse tree of HIDInterface 004/006[0]:
>  path: 0xffff0001.0x00000000; type: 0x80
>  path: 0xffff0001.0x00000000; type: 0x80
>  path: 0xffff0001.0x00000000; type: 0x80
>  path: 0xffff0001.0x00000000; type: 0x80
[...]

> TRACE: hid_reset_parser(): resetting the HID parser for USB device
> 004/006[0]...
>  TRACE: hid_get_input_report(): looking up report ID...
>  TRACE: hid_prepare_parse_path(): preparing search path of depth 2
> for parse tree of USB device 004/006[0]...
>  TRACE: hid_prepare_parse_path(): search path prepared for parse tree
> of USB device 004/006[0].
>  NOTICE: hid_find_object(): found requested item.
>  TRACE: hid_get_input_report(): retrieving report ID 0x00 (length:
> 64) from USB device 004/006[0]...
> WARNING: hid_get_input_report(): failed to retrieve report from USB
> device 004/006[0]:error sending control message: Broken pipe.

Can you send the code you are using for this portion? The "Broken  
pipe" error probably means that the device was not expecting a  
request for that many bytes.

>            Item(Local ): Usage Minimum, data= [ 0x01 ] 1
>                            (null)
>            Item(Local ): Usage Maximum, data= [ 0x40 ] 64
>                            (null)


The hid_dump_tree() function does not properly print the trace for a  
range of Usage IDs. So your "Usage Path" in libhid would probably  
look something like { 0xffff0001, 0xffff0001 } through { 0xffff0001,  
0xffff0040 }.

-- 
Charles Lepple





More information about the libhid-discuss mailing list