Ports
May 20, 2013, 11:55:16 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: 1 [2]
  Print  
Author Topic: USBCV HID Descriptor error  (Read 4866 times)
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1625


WWW
« Reply #15 on: March 13, 2012, 09:54:57 am »

(I see that DTImporter is posted earlier in this thread.) Offhand I don't know for sure, but perhaps it wants each item in a separate line? If so, you would need to decode the values in the descriptor and reformat it. For example, line 1 would be

0x05 0x01  (Usage page Generic Desktop)

Jan
« Last Edit: March 13, 2012, 10:21:16 am by Jan Axelson » Logged
jdunne
Member
***
Posts: 25


« Reply #16 on: March 13, 2012, 01:38:52 pm »

Jan, you are correct, but I think MikeH already noticed that and was looking for help decoding his report descriptors into a format like that.  The simplest way I can think of to do that is to use a USB bus analyzer (I use CATC USB Chief) which will decode the report descriptor for you. 

If you don't have a USB bus analyzer, the other way is to get the HID specification and manually decode the data.  Your descriptor isn't that long, so it should only take a couple hours or so to decode at worst case. 

There might be a software tool which will do the job, but I've never heard of it.  I did quite a bit of searching too a while back.

Good Luck.

Joe
Logged
mihooper
Member
***
Posts: 19


« Reply #17 on: March 13, 2012, 02:12:45 pm »

Joe,
You are correct. I was just looking for help decoding this mess....Smiley I agree that a bus analyzer is the best/easiest way. I think I'm going to spring for one of the ~$200 software analyzers. Thanks for your help and your importer.

MikeH
Logged

Thx,
MikeH
mihooper
Member
***
Posts: 19


« Reply #18 on: March 14, 2012, 12:39:29 pm »

Just for completeness, here's the results of the decoded, poorly formatted HID reports descriptor (using USBlyzer):
Code:
Interface 0 HID Report Descriptor Mouse
Item Tag (Value) Raw Data
Usage Page (Generic Desktop) 05 01 
Usage (Mouse) 09 02 
Collection (Application) A1 01 
    Usage (Pointer) 09 01 
    Collection (Physical) A1 00 
        Usage Page (Button) 05 09 
        Usage Minimum (Button 1) 19 01 
        Usage Maximum (Button 3) 29 03 
        Logical Minimum (0) 15 00 
        Logical Maximum (1) 25 01 
        Report Count (3) 95 03 
        Report Size (1) 75 01 
        Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02 
        Report Count (1) 95 01 
        Report Size (5) 75 05 
        Input (Cnst,Ary,Abs) 81 01 
        Usage Page (Generic Desktop) 05 01 
        Usage (X) 09 30 
        Usage (Y) 09 31 
        Usage (Wheel) 09 38 
        Logical Minimum (-127) 15 81 
        Logical Maximum (127) 25 7F 
        Report Size (8) 75 08 
        Report Count (3) 95 03 
        Input (Data,Var,Rel,NWrp,Lin,Pref,NNul,Bit) 81 06 
    End Collection C0 
End Collection C0 
Thanks for the suggestion.
Logged

Thx,
MikeH
jdunne
Member
***
Posts: 25


« Reply #19 on: March 14, 2012, 02:24:04 pm »

MikeH,

Glad you got it sorted out.  Now you can run it through DTImporter and make sure there are no errors.

Joe
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!