MissionControl icon indicating copy to clipboard operation
MissionControl copied to clipboard

[Controller Request]: TIM Gamepad

Open bocaci opened this issue 3 years ago • 1 comments

Controller Name

TIM Gamepad

Current Controller Behaviour

Controller successfully pairs with the console but doesn't respond to inputs

Controller vendor and product ID

btdb crashes on run?

Supported Features

  • [X] Rumble/Vibration
  • [X] Motion Controls
  • [X] Player Number Indicator
  • [X] Battery Level Reporting

Input Report Format

The gamepad uses the xbox layout, i'll write down buttons as they're called on the pad bud B->A, A->B and so on...

01 bf 80 02 00 00 80 80 80 80 00 00 00 00    B
01 c7 80 01 00 00 80 80 80 80 00 00 00 00    A
01 cf 80 08 00 00 80 80 80 80 00 00 00 00    X
01 d7 80 10 00 00 80 80 80 80 00 00 00 00   Y

01 df 80 40 00 00 80 80 80 80 00 00 00 00    L1
01 eb 80 00 01 00 80 80 80 80 ff 00 00 00     L2
01 ff 80 80 00 00 80 80 80 80 00 00 00 00     R1
01 0b 80 00 02 00 80 80 80 80 00 ff 00 00     R2

01 18 80 00 04 00 80 80 80 80 00 00 00 00    SELECT
01 20 80 00 10 00 80 80 80 80 00 00 00 00    HOME
01 60 80 00 08 00 80 80 80 80 00 00 00 00    START

01 68 06 00 00 00 80 80 80 80 00 00 00 00    D-PAD LEFT
01 8a 01 00 00 00 80 80 80 80 00 00 00 00    D-PAD RIGHT
01 93 04 00 00 00 80 80 80 80 00 00 00 00    D-PAD DOWN
01 9b 00 00 00 00 80 80 80 80 00 00 00 00    D-PAD UP

01 d3 80 00 00 00 80 80 80 80 00 00 02 00    Back Arrow Control
01 db 80 00 00 00 80 80 80 80 00 00 01 00    Home Control
01 eb 80 00 00 3a 80 80 80 80 00 00 00 00     Third Control

01 6c 80 00 00 00 80 00 80 80 00 00 00 00    L-Analog Up
01 15 80 00 00 00 80 ff 80 80 00 00 00 00     L-Analog Down
01 6a 80 00 00 00 00 00 80 80 80 00 00 00   L-Analog Left
01 38 80 00 00 00 ff 80 80 80 00 00 00 00    L-Analog Right

01 a0 80 00 00 00 80 80 80 00 00 00 00 00   R-Analog Up
01 1c 80 00 00 00 80 80 80 ff 00 00 00 00    R-Analog Down
01 6c 80 00 00 00 80 80 00 80 00 00 00 00   R-Analog Left
01 ba 80 00 00 00 80 80 ff 80 00 00 00 00    R-Analog Right

Additional Details

This thing here: https://www.tim.it/prodotti/smart-home/tim-gamepad-2-bt

bocaci avatar Mar 21 '22 19:03 bocaci

Thanks for the clear and detailed report :) I'll get to work on adding the control mappings.

btdb crashes on run?

Oops, didn't realise I was still linking to the old version of btdb. That hasn't worked since 13.0.0. Try this one.

Regarding the supported features of the controller, if you can find the packet format of the outgoing data sent to the controller on a platform where it's working I can add support. Unfortunately I can't really offer a simple way of doing this, but a USB capture on PC via Wireshark, or a bluetooth HCI dump on android while using software that triggers rumble, sets player leds etc would probably suffice.

ndeadly avatar Mar 22 '22 02:03 ndeadly