[libhid-discuss] Opening Microchip Mouse In a Circle Demo in ubuntu
Kim Chuan Lim
lim.kim.chuan at gmail.com
Thu Aug 7 13:50:16 UTC 2008
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/007[0]...
TRACE: hid_prepare_parse_path(): search path prepared for parse tree
of USB device 004/007[0].
NOTICE: hid_find_object(): found requested item.
TRACE: hid_get_input_report(): retrieving report ID 0x00 (length:
64) from USB device 004/007[0]...
WARNING: hid_get_input_report(): failed to retrieve report from USB
device 004/007[0]:error sending control message: Broken pipe.
hid_get_input_report failed with return code 20
On Thu, Aug 7, 2008 at 2:19 PM, Charles Lepple <clepple at ghz.cc> wrote:
> On Aug 7, 2008, at 9:07 AM, Kim Chuan Lim wrote:
>
>> Please find the codes below..
>>
>> int const PATH_OUT[2] = {0xffff0001,0x81};
>
> Try changing that to {0xffff0001, 0xffff0000} and see if it works.
>
>> int i=0;
>> char packet[64];
>> packet[0] =0x0;
>> ret = hid_get_input_report(hid, PATH_OUT, 2, packet, 64);
>> if (ret != HID_RET_SUCCESS) {
>> fprintf(stderr, "hid_get_input_report failed with return code
>> %d\n", ret);
>> break;
>> }else{
>>
>> fprintf(stderr, " data is availabled \n");
>> }
>>
>>
>> On Thu, Aug 7, 2008 at 1:22 PM, Charles Lepple <clepple at ghz.cc> wrote:
>>>
>>> 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
>>>
>>>
>>>
>>
>> _______________________________________________
>> libhid-discuss mailing list
>> libhid-discuss at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
>
>
> --
> Charles Lepple
> clepple at ghz.cc
>
>
>
More information about the libhid-discuss
mailing list