Device Descriptor for DrvProj

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
Connection Information
Port: 6
Speed: Low Speed
Device address: 3
Open pipes: 1
Connection status: Device connected
Device Descriptor
USB version: 1.1
Device class: 0x0 - (Defined at Interface level)
Device subclass: 0x0 - Unknown
Device protocol: 0x0 - Unknown
Control pipe max size: 8 bytes
Vendor ID: 0x16c0 (Unknown)
Product ID: 0x616 (Unknown)
Product version: 1.35
Manufacturer: Not specified
Product: GAMETRIX VIPER WHEEL PRO
Serial Number: 0123456789ABCDEF
Configurations: 1
Configuration Descriptor
Number of interfaces: 1
Configuration value: 0x1
Attributes: Bus powered
Max power: 250 mA
Interface Descriptor: 0, Alternate setting: 0
Number of endpoints: 1
Interface class: 0x3 - Human Interface Devices
Interface subclass: 0x0 - No Subclass
Interface protocol: 0x0 - None
Endpoint address 0x1, Input, Interrupt, max packet size: 8 bytes, update interval: 8 1-millisecond frames
HID Descriptor
Usage Page: 1 (Generic Desktop Controls)
Usage: 4 (Joystick)
Collection
Collection
Usage: 48 (Direction-X)
Report Size: 12
Report Count: 1
Logical Minimum: 0
Logical Maximum: 4095
Physical Maximum: 4095
Input: 2 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position)
Usage Page: 1 (Generic Desktop Controls)
Usage: 57 (Hat Switch)
Logical Maximum: 7
Physical Maximum: 315
Unit: 20
Report Size: 4
Report Count: 1
Input: 66 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,Null State)
Usage Page: 9 (Buttons)
Usages (1-13): Button 1 (Primary), Button 2 (Secondary), Button 3 (Tertiary), Button 4, Button 5,
Unknown, Unknown, Unknown, Unknown, Unknown, Unknown, Unknown, Unknown
Logical Minimum: 0
Logical Maximum: 1
Report Size: 1
Report Count: 16
Unit Exponent: 0
Unit: 0
Input: 2 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position)
Usage Page: 1 (Generic Desktop Controls)
Usage: 49 (Direction-Y)
Usage: 53 (Rotate-Z)
Report Size: 8
Report Count: 2
Logical Minimum: 0
Logical Maximum: 255
Physical Maximum: 255
Input: 2 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position)
Usage Page: 1 (Generic Desktop Controls)
Usage: 0 (Undefined)
Report Size: 8
Report Count: 2
Input: 3 (Constant,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position)
Usage Page: 8 (LEDs)
Usage: 67 (Slow Blink On Time)
Logical Minimum: 0
Logical Maximum: 255
Physical Minimum: 0
Physical Maximum: 255
Report Size: 8
Report Count: 1
Output: 130 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position,Volatile)
Usage: 68 (Slow Blink Off Time)
Output: 130 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position,Volatile)
Usage: 69 (Fast Blink On Time)
Output: 130 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position,Volatile)
Usage: 70 (Fast Blink Off Time)
Output: 130 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position,Volatile)
End Collection
End Collection
GAMETRIX VIPER WHEEL ARCADE
HID Descriptor
Usage Page: 1 (Generic Desktop Controls)
Usage: 4 (Joystick)
Collection
Collection
Usage: 48 (Direction-X)
Report Size: 12
Report Count: 1
Logical Minimum: 0
Logical Maximum: 4095
Physical Maximum: 4095
Input: 2 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position)
Usage Page: 1 (Generic Desktop Controls)
Usage: 57 (Hat Switch)
Logical Maximum: 7
Physical Maximum: 315
Unit: 20
Report Size: 4
Report Count: 1
Input: 66 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,Null State)
Usage Page: 9 (Buttons)
Usages (1-13): Button 1 (Primary), Button 2 (Secondary), Button 3 (Tertiary), Button 4, Button 5,
Unknown, Unknown, Unknown, Unknown, Unknown, Unknown, Unknown, Unknown
Logical Minimum: 0
Logical Maximum: 1
Report Size: 1
Report Count: 16
Unit Exponent: 0
Unit: 0
Input: 2 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position)
Usage Page: 1 (Generic Desktop Controls)
Usage: 49 (Direction-Y)
Report Size: 8
Report Count: 1
Logical Minimum: 0
Logical Maximum: 255
Physical Maximum: 255
Input: 2 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position)
Usage Page: 1 (Generic Desktop Controls)
Usage: 0 (Undefined)
Report Size: 8
Report Count: 3
Input: 3 (Constant,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position)
Usage Page: 8 (LEDs)
Usage: 67 (Slow Blink On Time)
Logical Minimum: 0
Logical Maximum: 255
Physical Minimum: 0
Physical Maximum: 255
Report Size: 8
Report Count: 1
Output: 130 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position,Volatile)
Usage: 68 (Slow Blink Off Time)
Output: 130 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position,Volatile)
Usage: 69 (Fast Blink On Time)
Output: 130 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position,Volatile)
Usage: 70 (Fast Blink Off Time)
Output: 130 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position,Volatile)
End Collection
End Collection
Пакет данных вибрации – 4 байта, в китайском драйвере описан как управление светодиодами
Данные передаются только в 3-м и 4-м байтах (для двух моторов)
Существует ещё одна версия китайского драйвера, которая не требует формального описания пакета OUTPUT в HIDe, но данные о вибрации передаёт таким же способом