[DIGImend-devel] tinkering with HUION tablet and the hidrd-convert tool to generate a HID report.
Brought to you by:
spb_nick
|
From: Vince H. <Vi...@Pl...> - 2014-12-13 18:15:30
|
the info file gives example of converting the hex input into xml
I get invalid output format.
the output from your dump program is:
$ cat HID-descriptor2.native
05 0D 09 02 A1 01 85 07 09 20 A1 00 09 42 09 44
09 45 09 3C 09 43 09 44 15 00 25 01 75 01 95 06
81 02 09 32 75 01 95 01 81 02 81 03 05 01 09 30
75 10 95 01 A4 55 0D 65 13 35 00 46 10 27 27 40
9C 00 00 81 02 09 31 46 6A 18 26 A8 61 81 02 B4
05 0D 09 30 26 FF 07 46 FF 07 55 00 66 11 E1 75
10 81 02 C0 C0 05 01 09 02 A1 01 85 09 09 01 A1
00 05 09 19 01 29 03 15 00 25 01 95 03 75 01 81
02 95 05 81 01 05 01 09 30 75 10 95 01 A4 35 00
46 00 08 26 00 08 81 02 09 31 46 00 08 26 00 08
81 02 B4 05 0D 09 30 26 FF 07 46 FF 07 75 10 81
B2 C0 C0
$ cat HID-descriptor2.native | hidrd-convert -i hex -o spec
produces
what appears to be correct
Usage Page (Digitizer), ; Digitizer (0Dh)
Usage (Pen), ; Pen
(02h, application collection)
Collection (Application),
Report ID (7),
Usage (Stylus), ; Stylus
(20h, logical collection)
Collection (Physical),
Usage (Tip Switch), ; Tip
switch (42h, momentary control)
Usage (Barrel Switch), ; Barrel
switch (44h, momentary control)
Usage (Eraser), ; Eraser
(45h, momentary control)
Usage (Invert), ; Invert
(3Ch, momentary control)
Usage (Secondary Tip Switch), ;
Secondary tip switch (43h, momentary control)
Usage (Barrel Switch), ; Barrel
switch (44h, momentary control)
Logical Minimum (0),
Logical Maximum (1),
Report Size (1),
Report Count (6),
Input (Variable),
Usage (In Range), ; In range
(32h, momentary control)
Report Size (1),
Report Count (1),
Input (Variable),
Input (Constant, Variable),
Usage Page (Desktop), ; Generic
desktop controls (01h)
Usage (X), ; X (30h,
dynamic value)
Report Size (16),
Report Count (1),
Push,
Unit Exponent (13),
Unit (Inch),
Physical Minimum (0),
Physical Maximum (10000),
Logical Maximum (40000),
Input (Variable),
Usage (Y), ; Y (31h,
dynamic value)
Physical Maximum (6250),
Logical Maximum (25000),
Input (Variable),
Pop,
Usage Page (Digitizer), ; Digitizer (0Dh)
Usage (Tip Pressure), ; Tip
pressure (30h, dynamic value)
Logical Maximum (2047),
Physical Maximum (2047),
Unit Exponent (0),
Unit (Centimeter * Gram * Seconds^-2),
Report Size (16),
Input (Variable),
End Collection,
End Collection,
Usage Page (Desktop), ; Generic
desktop controls (01h)
Usage (Mouse), ; Mouse
(02h, application collection)
Collection (Application),
Report ID (9),
Usage (Pointer), ; Pointer
(01h, physical collection)
Collection (Physical),
Usage Page (Button), ; Button (09h)
Usage Minimum (01h),
Usage Maximum (03h),
Logical Minimum (0),
Logical Maximum (1),
Report Count (3),
Report Size (1),
Input (Variable),
Report Count (5),
Input (Constant),
Usage Page (Desktop), ; Generic
desktop controls (01h)
Usage (X), ; X (30h,
dynamic value)
Report Size (16),
Report Count (1),
Push,
Physical Minimum (0),
Physical Maximum (2048),
Logical Maximum (2048),
Input (Variable),
Usage (Y), ; Y (31h,
dynamic value)
Physical Maximum (2048),
Logical Maximum (2048),
Input (Variable),
Pop,
Usage Page (Digitizer), ; Digitizer (0Dh)
Usage (Tip Pressure), ; Tip
pressure (30h, dynamic value)
Logical Maximum (2047),
Physical Maximum (2047),
Report Size (16),
Input (Variable, Non Linear, No Preferred, Bit7),
End Collection,
End Collection
but attempt to use -o xml generates error
appears the built in help says no xml output available while the
info output example shows using -o xml
Did I built it wrong?
------------
Vince
|