J2Kbr / GtunerIV

Gtuner IV - Titan Two's software bug report.
http://www.consoletuner.com
25 stars 4 forks source link

Add HID Configuration for Thrustmaster flight pedals #405

Closed J2Kbr closed 3 years ago

J2Kbr commented 3 years ago

Decoded USB descriptors:

[USB DESCRIPTOR]
12           bLength: 18
01           bDescriptorType: 1 DEVICE
00 01        bcdUSB: 1.00
00           bDeviceClass: 0 
00           bDeviceSubClass: 0 
00           bDeviceProtocol: 0 
40           bMaxPacketSize0: 64
4F 04        idVendor: 044F ThrustMaster, Inc.
79 B6        idProduct: B679 T-Rudder
10 01        bcdDevice: 1.10
01           iManufacturer: 1
02           iProduct: 2
03           iSerialNumber: 3
01           bNumConfigurations: 1

09           bLength: 9
02           bDescriptorType: 2 CONFIGURATION
29 00        wTotalLength: 41
01           bNumInterfaces: 1
01           bConfigurationValue: 1
00           iConfiguration: 0
80           bmAttributes: 128 Bus Powered
32           MaxPower: 100mA

09             bLength: 9
04             bDescriptorType: 4 INTERFACE
00             bInterfaceNumber: 0
00             bAlternateSetting: 0
02             bNumEndpoints: 2
03             bInterfaceClass: 3 Human Interface Device
00             bInterfaceSubClass: 0 
00             bInterfaceProtocol: 0 
00             iInterface: 0

09               bLength: 9
21               bDescriptorType: 33 HID
10 01            bcdHID: 1.10
00               bCountryCode: 0
01               bNumDescriptors: 1
22               bDescriptorType: 34
3E 00            wDescriptorLength: 62

07               bLength: 7
05               bDescriptorType: 5 ENDPOINT
01               bEndpointAddress: 1 OUT
03               bmAttributes: 3 Interrupt, None, Data
40 00            wMaxPacketSize: 64
05               bInterval: 5

07               bLength: 7
05               bDescriptorType: 5 ENDPOINT
81               bEndpointAddress: 1 IN
03               bmAttributes: 3 Interrupt, None, Data
40 00            wMaxPacketSize: 64
05               bInterval: 5

[STRING 1 DESCRIPTOR]
Thrustmaster

[STRING 2 DESCRIPTOR]
T-Rudder

[STRING 3 DESCRIPTOR]
00000000001A

[INTERFACE 0 HID DESCRIPTOR]
05 01        (GLOBAL) USAGE_PAGE         0x0001 Generic Desktop Page 
09 04        (LOCAL)  USAGE              0x00010004 Joystick (CA=Application Collection) 
A1 01        (MAIN)   COLLECTION         0x01 Application (Usage=0x00010004: Page=Generic Desktop Page, Usage=Joystick, Type=CA)
15 00          (GLOBAL) LOGICAL_MINIMUM    0x00 (0)
35 00          (GLOBAL) PHYSICAL_MINIMUM   0x00 (0)
26 FF03        (GLOBAL) LOGICAL_MAXIMUM    0x03FF (1023) 
46 FF03        (GLOBAL) PHYSICAL_MAXIMUM   0x03FF (1023) 
09 30          (LOCAL)  USAGE              0x00010030 X (DV=Dynamic Value) 
09 31          (LOCAL)  USAGE              0x00010031 Y (DV=Dynamic Value) 
09 32          (LOCAL)  USAGE              0x00010032 Z (DV=Dynamic Value) 
75 10          (GLOBAL) REPORT_SIZE        0x10 (16) Number of bits per field 
95 03          (GLOBAL) REPORT_COUNT       0x03 (3) Number of fields 
81 02          (MAIN)   INPUT              0x00000002 (3 fields x 16 bits) 0=Data 1=Variable 0=Absolute 0=NoWrap 0=Linear 0=PrefState 0=NoNull 0=NonVolatile 0=Bitmap 
06 00FF        (GLOBAL) USAGE_PAGE         0xFF00 Vendor-defined 
09 20          (LOCAL)  USAGE              0xFF000020  
75 08          (GLOBAL) REPORT_SIZE        0x08 (8) Number of bits per field 
95 25          (GLOBAL) REPORT_COUNT       0x25 (37) Number of fields 
81 02          (MAIN)   INPUT              0x00000002 (37 fields x 8 bits) 0=Data 1=Variable 0=Absolute 0=NoWrap 0=Linear 0=PrefState 0=NoNull 0=NonVolatile 0=Bitmap 
09 21          (LOCAL)  USAGE              0xFF000021  
95 20          (GLOBAL) REPORT_COUNT       0x20 (32) Number of fields 
91 02          (MAIN)   OUTPUT             0x00000002 (32 fields x 8 bits) 0=Data 1=Variable 0=Absolute 0=NoWrap 0=Linear 0=PrefState 0=NoNull 0=NonVolatile 0=Bitmap 
06 F0FF        (GLOBAL) USAGE_PAGE         0xFFF0 Vendor-defined 
09 40          (LOCAL)  USAGE              0xFFF00040  
09 47          (LOCAL)  USAGE              0xFFF00047  
26 FF00        (GLOBAL) LOGICAL_MAXIMUM    0x00FF (255) 
75 08          (GLOBAL) REPORT_SIZE        0x08 (8) Number of bits per field
95 3F          (GLOBAL) REPORT_COUNT       0x3F (63) Number of fields 
B1 02          (MAIN)   FEATURE            0x00000002 (63 fields x 8 bits) 0=Data 1=Variable 0=Absolute 0=NoWrap 0=Linear 0=PrefState 0=NoNull 0=NonVolatile 0=Bitmap 
C0           (MAIN)   END_COLLECTION     Application
J2Kbr commented 3 years ago

TFlight 4 in PC mode:

[USB DESCRIPTOR]
12 01 10 01 00 00 00 40 4F 04 7B B6 00 01 01 02 00 01 09 02 29 00 01 01 00 80 32 09 04 00 00 02 03 00 00 00 09 21 11 01 00 01 22 A0 00 07 05 84 03 40 00 05 07 05 03 03 40 00 05 

[STRING 1 DESCRIPTOR]
00 00 00 02 00 00 02 01 80 06 03 01 04 09 00 1A 
1A 03 54 00 68 00 72 00 75 00 73 00 74 00 6D 00 61 00 73 00 74 00 65 00 72 00 

[STRING 2 DESCRIPTOR]
00 00 00 02 00 00 02 01 80 06 03 02 04 09 00 1E 
1E 03 54 00 2E 00 46 00 6C 00 69 00 67 00 68 00 74 00 20 00 48 00 6F 00 74 00 61 00 73 00 

[INTERFACE 0 HID DESCRIPTOR]
00 00 00 02 00 00 02 01 81 06 22 00 00 00 00 A0 
05 01 09 05 A1 01 85 01 09 30 09 31 09 32 09 35 15 00 26 FF 00 75 08 95 04 81 02 09 39 15 00 25 07 35 00 46 3B 01 65 14 75 04 95 01 81 42 65 00 05 09 19 01 29 0E 15 00 25 01 75 01 95 0E 81 02 06 00 FF 09 20 75 06 95 01 81 02 05 01 09 33 09 34 15 00 26 FF 00 75 08 95 02 81 02 06 00 FF 09 21 95 36 81 02 85 05 09 22 95 1F 91 02 85 03 0A 21 27 95 2F B1 02 C0 06 F0 FF 09 40 A1 01 85 F0 09 47 95 3F B1 02 85 F1 09 48 95 3F B1 02 85 F2 09 49 95 0F B1 02 85 F3 0A 01 47 95 07 B1 02 C0
J2Kbr commented 3 years ago

HID Configuration file for 044FB679.hid and 044FB67B.hid already exists.

@Users: Be sure the Titan Two is equipped with Micro SD-Card and, with the device connected to the computer via PROG port, open Gtuner IV, go to Device Configuration and click "Configure". This operation will copy the custom HID configuration files to the sd-card, providing the Titan Two the information needed to enable all inputs from T-Rudder and T.Flight.