DualSense HID Commands: Difference between revisions

From PS5 Developer wiki
Jump to navigation Jump to search
m (Fixed Erase Device Info Command)
 
(57 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Set BD Address =
= Get MCU Unique ID =
Get MediaTek Main MCU Unique ID
<pre>
ReportID = 128,
DeviceID = 1,
ActionID = 9
</pre>
 
= Read Device Info =
 
<pre>
ReportID = 128,
DeviceID = 1,
ActionID = 12
</pre>
 
= Erase Device Info ['''DANGER'''] =
 
<pre>
ReportID = 128,
DeviceID = 1,
ActionID = 13
</pre>
 
= Spider DSP Init Get Status =
 
<pre>
ReportID = 129,
DeviceID = 16,
ActionID = 1
</pre>
 
= Spider DSP Get Status =
 
<pre>
ReportID = 129,
DeviceID = 16,
ActionID = 2
</pre>
 
= Spider DSP Patch Finalize =
<pre>
ReportID = 128,
DeviceID = 16,
ActionID = 5
</pre>
 
= Spider DSP Finalize Get Status =
<pre>
ReportID = 129,
DeviceID = 16,
ActionID = 5
</pre>
 
= Spider DSP Firmware Patch =
<pre>
ReportID = 128,
DeviceID = 16,
ActionID = 2,
DataLen = 57
</pre>
 
= Spider DSP Firmware Patch Init =
 
<pre>
ReportID = 128,
DeviceID = 16,
ActionID = 1
</pre>
 
= Spider DSP Firmware Verify =
<pre>
ReportID = 128,
DeviceID = 16,
ActionID = 3
</pre>
 
= Spider DSP Firmware Verify Status =
<pre>
ReportID = 129,
DeviceID = 16,
ActionID = 5
</pre>
 
= Spider DSP Firmware Verify Request =
 
<pre>
ReportID = 128,
DeviceID = 16,
ActionID = 7
</pre>
 
= Spider DSP Firmware Verify Request Status =
 
<pre>
ReportID = 129,
DeviceID = 16,
ActionID = 7
</pre>
 
= Get TP UID =
Get Touch Panel Ubique ID
<pre>
ReportID = 128,
DeviceID = 5,
ActionID = 2
</pre>
 
= Get TP Version =
Get Touch Panel Version
<pre>
ReportID = 128,
DeviceID = 5,
ActionID = 4
</pre>
 
= Get Table ID =
 
<pre>
ReportID = 164,
DeviceID = 3,
ActionID = 2,
DataLenLocal = 5
</pre>
 
= Reset =
 
<pre>
ReportID = 128,
DeviceID = 1,
ActionID = 1
</pre>
 
= Request Table ID =
 
<pre>
ReportID = 160,
DeviceID = 3,
ActionID = 2
</pre>
 
= Reboot Secure Boot Loader =
 
<pre>
ReportID = 128,
RebootCmd = 1
</pre>
 
= Read Patch Info =
 
<pre>
ReportID = 128,
DeviceID = 9,
ActionID = 13
</pre>
 
= Get Firmware Info =
 
<pre>
    ReportID = 32
</pre>
 
= Start Gyroscope Offset =
 
<pre>
ReportID = 144,
ActionID = 1,
DeviceID = 2,
TargetID = 7
</pre>
 
= Get Gyroscope Offset State =
 
<pre>
ReportID = 145,
DeviceID = 2,
TargetID = 7
</pre>
 
= Get BlueTooth Patch Data =
 
<pre>
ReportID = 129,
DeviceID = 14,
ActionID = 3
</pre>
 
= Get BlueTooth Patch Info =
 
<pre>
ReportID = 129,
DeviceID = 9,
ActionID = 13
</pre>
 
= Get Audio Codec State =
 
<pre>
ReportID = 164,
DeviceID = 16,
ActionID = 1
</pre>
 
= Flash =
 
<pre>
ReportID = 240,
DownloadCmd = 0,
DataLen = 57,
WriteCmd = 1
</pre>
 
= Audio Codec Select =
 
<pre>
ReportID = 160,
DeviceID = 16,
ActionID = 1
</pre>
 
= Blue Tooth Patch =
 
<pre>
ReportID = 128,
DeviceID = 14,
ActionID = 2,
DataLen = 57
</pre>
 
= Read Blue Tooth Patch =
 
<pre>
ReportID = 128,
DeviceID = 14,
ActionID = 4
</pre>
 
= Read Blue Tooth Patch Info =
 
<pre>
ReportID = 129,
DeviceID = 14,
ActionID = 4
</pre>
 
= Blue Tooth Patch Finalize =
 
<pre>
ReportID = 128,
DeviceID = 14,
ActionID = 5
</pre>
 
= Blue Tooth Patch Init =
 
<pre>
ReportID = 128,
DeviceID = 14,
ActionID = 1
</pre>
 
= Blue Tooth Patch Restart =
 
<pre>
ReportID = 128,
DeviceID = 14,
ActionID = 6
</pre>
 
= Blue Tooth Patch Verify =
 
<pre>
ReportID = 128,
DeviceID = 14,
ActionID = 3
</pre>
 
= Blue Tooth Restart Result =
 
<pre>
ReportID = 129,
DeviceID = 14,
ActionID = 6
</pre>
 
= Get BT Address =
<pre>
ReportID = 129,
DeviceID = 9,
ActionID = 2,
DataLen = 6
</pre>
 
= Set BT Address =


<pre>
<pre>
Line 41: Line 334:
</pre>
</pre>


= Set DFU Mode (DANGEROUS) =
= Set DFU Mode =
 
'''Note 1''': This command does not work with retail controllers 'tested with many controllers' but it may work with DVT/Prototype controllers.
'''Note 2''': The mainboard immediately boot into PBL (Primary Boot Loader) mode on the factory before flashing Main "Banana" firmware, then it will be disabled after that.
<pre>
<pre>
     ReportID = 160,
     ReportID = 160,
Line 59: Line 353:
</pre>
</pre>


= Set PC BAID =
= Write PCBAID =


<pre>
<pre>
Line 65: Line 359:
DeviceID = 1,
DeviceID = 1,
ActionID = 3,
ActionID = 3,
ReadCmd = 4,
DataLen = 6
DataLen = 6
</pre>
= Read PCBAID =
<pre>
ReportID = 128,
DeviceID = 1,
ActionID = 4,
</pre>
</pre>


Line 93: Line 394:
</pre>
</pre>


= Set Read OTP (Juicy?) =
= Get Read OTP  =
 
<pre>
ReportID = 164,
DeviceID = 3,
ActionID = 9
</pre>
 
= Set Read OTP =


<pre>
<pre>
Line 103: Line 412:
</pre>
</pre>


= Set Secure Boot Loader (Juicy?) DANGEROUS MAYBE? =
= Set Secure Boot Loader =


<pre>
<pre>
Line 126: Line 435:
ActionID = 1,
ActionID = 1,
Param = 1
Param = 1
</pre>
= Venom Get Status =
<pre>
ReportID = 129,
DeviceID = 15,
ActionID = 2
</pre>
</pre>


Line 134: Line 451:
DeviceID = 6,
DeviceID = 6,
ActionID = 3
ActionID = 3
</pre>
= Venom Finalize Get Status =
<pre>
ReportID = 129,
DeviceID = 15,
ActionID = 5
</pre>
= Venom Firmware Patch =
<pre>
ReportID = 128,
DeviceID = 15,
ActionID = 2,
DataLen = 57
</pre>
= Venom Firmware Patch Init =
<pre>
ReportID = 128,
DeviceID = 15,
ActionID = 1
</pre>
= Venom Firmware Verify =
<pre>
ReportID = 128,
DeviceID = 15,
ActionID = 3
</pre>
= Venom Firmware Verify Request =
<pre>
ReportID = 128,
DeviceID = 15,
ActionID = 7
</pre>
= Venom Firmware Verify Request Status =
<pre>
ReportID = 129,
DeviceID = 15,
ActionID = 7
</pre>
= Venom Firmware Verify Status =
<pre>
ReportID = 129,
DeviceID = 15,
ActionID = 5
</pre>
= Venom Init Get Status =
<pre>
ReportID = 129,
DeviceID = 15,
ActionID = 1
</pre>
= Venom Patch Finalize =
<pre>
ReportID = 128,
DeviceID = 15,
ActionID = 5
</pre>
= Set bonding =
<pre>
ReportID = 128,
DeviceID = 1,
ActionID = 14
</pre>
= NVS Lock =
<pre>
  ReportID = 128,
  DeviceID = 3,
  ActionID = 1,
</pre>
</pre>


Line 148: Line 554:
</pre>
</pre>


to unlock NVS, use the command
= NVS Lock Status =


<pre>
<pre>
SET 0x80 {3, 2, 101, 50, 64, 12}
  ReportID = 128,
  DeviceID = 3,
  ActionID = 3,
</pre>
</pre>
Results:
0 - Unlocked
1 - Locked

Latest revision as of 14:11, 19 April 2024

Get MCU Unique ID[edit | edit source]

Get MediaTek Main MCU Unique ID

	ReportID = 128,
	DeviceID = 1,
	ActionID = 9

Read Device Info[edit | edit source]

	ReportID = 128,
	DeviceID = 1,
	ActionID = 12

Erase Device Info [DANGER][edit | edit source]

	ReportID = 128,
	DeviceID = 1,
	ActionID = 13

Spider DSP Init Get Status[edit | edit source]

	ReportID = 129,
	DeviceID = 16,
	ActionID = 1

Spider DSP Get Status[edit | edit source]

	ReportID = 129,
	DeviceID = 16,
	ActionID = 2

Spider DSP Patch Finalize[edit | edit source]

	ReportID = 128,
	DeviceID = 16,
	ActionID = 5

Spider DSP Finalize Get Status[edit | edit source]

	ReportID = 129,
	DeviceID = 16,
	ActionID = 5

Spider DSP Firmware Patch[edit | edit source]

	ReportID = 128,
	DeviceID = 16,
	ActionID = 2,
	DataLen = 57

Spider DSP Firmware Patch Init[edit | edit source]

	ReportID = 128,
	DeviceID = 16,
	ActionID = 1

Spider DSP Firmware Verify[edit | edit source]

	ReportID = 128,
	DeviceID = 16,
	ActionID = 3

Spider DSP Firmware Verify Status[edit | edit source]

	ReportID = 129,
	DeviceID = 16,
	ActionID = 5

Spider DSP Firmware Verify Request[edit | edit source]

	ReportID = 128,
	DeviceID = 16,
	ActionID = 7

Spider DSP Firmware Verify Request Status[edit | edit source]

	ReportID = 129,
	DeviceID = 16,
	ActionID = 7

Get TP UID[edit | edit source]

Get Touch Panel Ubique ID

	ReportID = 128,
	DeviceID = 5,
	ActionID = 2

Get TP Version[edit | edit source]

Get Touch Panel Version

	ReportID = 128,
	DeviceID = 5,
	ActionID = 4

Get Table ID[edit | edit source]

	ReportID = 164,
	DeviceID = 3,
	ActionID = 2,
	DataLenLocal = 5

Reset[edit | edit source]

	ReportID = 128,
	DeviceID = 1,
	ActionID = 1

Request Table ID[edit | edit source]

	ReportID = 160,
	DeviceID = 3,
	ActionID = 2

Reboot Secure Boot Loader[edit | edit source]

	ReportID = 128,
	RebootCmd = 1

Read Patch Info[edit | edit source]

	ReportID = 128,
	DeviceID = 9,
	ActionID = 13

Get Firmware Info[edit | edit source]

    ReportID = 32

Start Gyroscope Offset[edit | edit source]

	ReportID = 144,
	ActionID = 1,
	DeviceID = 2,
	TargetID = 7

Get Gyroscope Offset State[edit | edit source]

	ReportID = 145,
	DeviceID = 2,
	TargetID = 7

Get BlueTooth Patch Data[edit | edit source]

	ReportID = 129,
	DeviceID = 14,
	ActionID = 3

Get BlueTooth Patch Info[edit | edit source]

	ReportID = 129,
	DeviceID = 9,
	ActionID = 13

Get Audio Codec State[edit | edit source]

	ReportID = 164,
	DeviceID = 16,
	ActionID = 1

Flash[edit | edit source]

	ReportID = 240,
	DownloadCmd = 0,
	DataLen = 57,
	WriteCmd = 1

Audio Codec Select[edit | edit source]

	ReportID = 160,
	DeviceID = 16,
	ActionID = 1

Blue Tooth Patch[edit | edit source]

	ReportID = 128,
	DeviceID = 14,
	ActionID = 2,
	DataLen = 57

Read Blue Tooth Patch[edit | edit source]

	ReportID = 128,
	DeviceID = 14,
	ActionID = 4

Read Blue Tooth Patch Info[edit | edit source]

	ReportID = 129,
	DeviceID = 14,
	ActionID = 4

Blue Tooth Patch Finalize[edit | edit source]

	ReportID = 128,
	DeviceID = 14,
	ActionID = 5

Blue Tooth Patch Init[edit | edit source]

	ReportID = 128,
	DeviceID = 14,
	ActionID = 1

Blue Tooth Patch Restart[edit | edit source]

	ReportID = 128,
	DeviceID = 14,
	ActionID = 6

Blue Tooth Patch Verify[edit | edit source]

	ReportID = 128,
	DeviceID = 14,
	ActionID = 3

Blue Tooth Restart Result[edit | edit source]

	ReportID = 129,
	DeviceID = 14,
	ActionID = 6

Get BT Address[edit | edit source]

	ReportID = 129,
	DeviceID = 9,
	ActionID = 2,
	DataLen = 6

Set BT Address[edit | edit source]

    ReportID = 128,
	DeviceID = 9,
	ActionID = 1,
	ReadCmd = 2,
	DataLen = 6

Set BlueTooth Disable Enable[edit | edit source]

	ReportID = 128,
	DeviceID = 9,
	ActionID = 5,
	Param = 0

Set BlueTooth Enable[edit | edit source]

    ReportID = 128,
	DeviceID = 9,
	ActionID = 5,
	Param = 1

Set BlueTooth Table[edit | edit source]

    ReportID = 165,
	PowerTable = 1,
	RadioTable = 2,
	DataLen = 16,
	DataBegin = 0,
	PowerTableSize = 224,
	RadioTableSize = 112,
	DataMaxLen = (max value of a byte, 255)
	DataMinLen = 0

Set DFU Mode[edit | edit source]

Note 1: This command does not work with retail controllers 'tested with many controllers' but it may work with DVT/Prototype controllers. Note 2: The mainboard immediately boot into PBL (Primary Boot Loader) mode on the factory before flashing Main "Banana" firmware, then it will be disabled after that.

    ReportID = 160,
	DisableMode = 0,
	EnablePBLMode = 1,
	EnableSBLMode = 2,
	EnableMode = 1

Set Hardware Version[edit | edit source]

    ReportID = 128,
	DeviceID = 1,
	ActionID = 5

Write PCBAID[edit | edit source]

ReportID = 128,
	DeviceID = 1,
	ActionID = 3,
	DataLen = 6

Read PCBAID[edit | edit source]

ReportID = 128,
	DeviceID = 1,
	ActionID = 4,

Set Power Charge Off[edit | edit source]

	ReportID = 128,
	DeviceID = 2,
	ActionID = 3,
	Param0 = 208,
	Param1 = 38,
	Param2 = 117,
	Param3 = 192

Set Power Charge On[edit | edit source]

	ReportID = 128,
	DeviceID = 2,
	ActionID = 2,
	Param0 = 208,
	Param1 = 38,
	Param2 = 117,
	Param3 = 192

Get Read OTP[edit | edit source]

	ReportID = 164,
	DeviceID = 3,
	ActionID = 9

Set Read OTP[edit | edit source]

ReportID = 160,
	DeviceID = 3,
	ActionID = 9,
	Offset = 23,
	Length = 1

Set Secure Boot Loader[edit | edit source]

ReportID = 160,
	SetCmd = 2

Set VDD External Power Off[edit | edit source]

ReportID = 160,
	DeviceID = 17,
	ActionID = 1,
	Param = 0

Set VDD External Power On[edit | edit source]

ReportID = 160,
	DeviceID = 17,
	ActionID = 1,
	Param = 1

Venom Get Status[edit | edit source]

	ReportID = 129,
	DeviceID = 15,
	ActionID = 2

Set Venom FW Version[edit | edit source]

ReportID = 128,
	DeviceID = 6,
	ActionID = 3

Venom Finalize Get Status[edit | edit source]

	ReportID = 129,
	DeviceID = 15,
	ActionID = 5

Venom Firmware Patch[edit | edit source]

	ReportID = 128,
	DeviceID = 15,
	ActionID = 2,
	DataLen = 57

Venom Firmware Patch Init[edit | edit source]

	ReportID = 128,
	DeviceID = 15,
	ActionID = 1

Venom Firmware Verify[edit | edit source]

	ReportID = 128,
	DeviceID = 15,
	ActionID = 3

Venom Firmware Verify Request[edit | edit source]

	ReportID = 128,
	DeviceID = 15,
	ActionID = 7

Venom Firmware Verify Request Status[edit | edit source]

	ReportID = 129,
	DeviceID = 15,
	ActionID = 7

Venom Firmware Verify Status[edit | edit source]

	ReportID = 129,
	DeviceID = 15,
	ActionID = 5

Venom Init Get Status[edit | edit source]

	ReportID = 129,
	DeviceID = 15,
	ActionID = 1

Venom Patch Finalize[edit | edit source]

	ReportID = 128,
	DeviceID = 15,
	ActionID = 5

Set bonding[edit | edit source]

	ReportID = 128,
	DeviceID = 1,
	ActionID = 14

NVS Lock[edit | edit source]

  ReportID = 128, 
  DeviceID = 3,
  ActionID = 1,

NVS Unlock[edit | edit source]

  ReportID = 128, 
  DeviceID = 3,
  ActionID = 2,
  Param0 = 101,
  Param1 = 50,
  Param2 = 64,
  Param3 = 12

NVS Lock Status[edit | edit source]

  ReportID = 128, 
  DeviceID = 3,
  ActionID = 3,

Results:

0 - Unlocked 1 - Locked