Skip to content

Latest commit

 

History

History
374 lines (371 loc) · 8.12 KB

README_PROTOCOL.md

File metadata and controls

374 lines (371 loc) · 8.12 KB

DualSense™ protocol

Sent data to controller

Via USB

Byte Dec Byte Hex Name Values Description
0 0x00 Report ID
1 0x01 Feature flags (physical effects)
2 0x02 Feature flags (lights) bit 0: MIC_MUTE_LED_CONTROL_ENABLE
bit 1: POWER_SAVE_CONTROL_ENABLE
bit 2: LIGHTBAR_CONTROL_ENABLE
bit 3: RELEASE_LEDS
bit 4: PLAYER_INDICATOR_CONTROL_ENABLE
bit 5: UNKNOWN_FLAG_5
bit 6: OVERALL_EFFECT_POWER
bit 7: UNKNOWN_FLAG_7
Flag RELEASE_LEDS makes trouble and is currently disabled. All other known flags are enabled.
3 0x03 Motor rumble right 0 - 255 A.K.A. "small rumble"
4 0x04 Motor rumble left 0 - 255 A.K.A. "big rumble"
5 0x05 headphone, speaker, mic volume, audio flags (USB_Host_Shield_2.0)
6 0x06 headphone, speaker, mic volume, audio flags (USB_Host_Shield_2.0)
7 0x07 headphone, speaker, mic volume, audio flags (USB_Host_Shield_2.0)
8 0x08
9 0x09 Mute button led 0x00 - Off
0x01 - On
10 0x0A Power save control 0x00 - Unmute mic
0x10 - Mute mic
11 0x0B Right trigger - effect mode 0x01 - CONTINUOUS_RESISTANCE
0x02 - SECTION_RESISTANCE
0x06 - VIBRATING
0x23 - EFFECT_EXTENDED
0xFC - CALIBRATE
12 0x0C Right trigger - Parameter 1 Start of resistance section
13 0x0D Right trigger - Parameter 2
14 0x0E Right trigger - Parameter 3
15 0x0F Right trigger - Parameter 4
16 0x10 Right trigger - Parameter 5
17 0x11 Right trigger - Parameter 6
18 0x12 Right trigger - Parameter 7
19 0x13
20 0x14
21 0x15
22 0x16 Left trigger - effect mode 0x01 - CONTINUOUS_RESISTANCE
0x02 - SECTION_RESISTANCE
0x06 - VIBRATING
0x23 - EFFECT_EXTENDED
0xFC - CALIBRATE
23 0x17 Left trigger - Parameter 1 Start of resistance section
24 0x18 Left trigger - Parameter 2
25 0x19 Left trigger - Parameter 3
26 0x1A Left trigger - Parameter 4
27 0x1B Left trigger - Parameter 5
28 0x1C Left trigger - Parameter 6
29 0x1D Left trigger - Parameter 7
30 0x1E
31 0x1F
32 0x20
33 0x21
34 0x22
35 0x23
36 0x24
37 0x25 Trigger motor effect strengths? (USB_Host_Shield_2.0)
38 0x26 Speaker volume? (USB_Host_Shield_2.0)
39 0x27 Led brightness, pulse? (USB_Host_Shield_2.0)
40 0x28 LIGHTBAR_SETUP_CONTROL_ENABLE? (dualsense (Javascript))
41 0x29 Lightbar control 0b100 - LIGHTBAR_CONTROL_ENABLE
0b000 - LIGHTBAR_CONTROL_DISABLE?
42 0x2A Lightbar setup 0x01 - LIGHT_ON
0x02 - LIGHT_OFF
43 0x2B Led brightness 0x01 - FULL
0x02 - MEDIUM
0x03 - LOW
Sets brightness of mute button and player leds.
Only works when light-effects flag MIC_MUTE_LED_CONTROL_ENABLE is NOT set. This is done interally when setting brightness.
44 0x2C Player leds 0b00000 - OFF
0b00100 - CENTER
0b01010 - INNER
0b10001 - OUTER
0b11111 - ALL
CENTER: The single, center LED.
INNER: The two LEDs adjacent to and directly surrounding the CENTER LED.
OUTER: The two outermost LEDs surrounding the INNER LEDs.
45 0x2D Lightbar led color red 0 - 255
46 0x2E Lightbar led color green 0 - 255
47 0x2F Lightbar led color blue 0 - 255