MechaCon/UART commands: Difference between revisions

From PS2 Developer wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
These commands can be sent to [[MechaCon]] via it's UART interface. They exist for manufacturing and servicing purposes. For wiring up a serial terminal to the MechaCon UART interface, see [[Test points/MechaCon UART|MechaCon UART test points]].
These commands can be sent to [[MechaCon]] via it's UART interface. They exist for manufacturing and servicing purposes. For wiring up a serial terminal to the MechaCon UART interface, see [[Test points/MechaCon UART|MechaCon UART test points]].
To enable the UART interface, the console must be put in testmode by pulling the RMC test point to ground.
To enable the UART interface, the console must be put into testmode by pulling the TEST_MODE0 test point to ground. The interface operates at '''57600 baud 8N1''' and rather non-standard '''3.5 V'''.
 
3.3 V signal levels work fine for communication, but care must be taken not to additionally connect an internal 3V3 voltage regulator, which is provided on some USB UART interfaces, to the console, since this will conflict with the console's own 3V5 voltage regulation and could damage the USB device and/or the console. On such interfaces, it should suffice to '''just connect Rx, Tx and GND'''. Even better would be to use a RS-232-to-TTL level shifter, which can take the 3V5 voltage as reference directly from the console itself.


'''Instead of working with raw MechaCon commands, it is recommended for users to use pre-made tools like [https://github.com/ps2homebrew/PMAP/tags PMAP]. The purpose of this page is to provide documentation for the further development of PS2 tools.'''
'''Instead of working with raw MechaCon commands, it is recommended for users to use pre-made tools like [https://github.com/ps2homebrew/PMAP/tags PMAP]. The purpose of this page is to provide documentation for the further development of PS2 tools.'''
Large differences exist between the SPC970-based MechaCon and the ARM-based "Dragon" MechaCon.


== Commands ==
== Commands ==
{| border="1" cellspacing="0" cellpadding="5" border="#999" class="wikitable" style="border:1px solid #999; border-collapse: collapse;"
All communication uses ASCII-encoded Hex-values.
|- bgcolor="#cccccc"
* [[MechaCon/UART commands/SPC970|SPC970 commands]]
! Command !! Description !! Parameters !! Return values !! remarks
* [[MechaCon/UART commands/Dragon|Dragon commands]]
|-
| 0xc00 || MECHA_CMD_INIT_SHIMUKE || || ||
|-
| 0xc01 || MECHA_CMD_INIT_MECHACON || || ||
|-
| 0xc10 || MECHA_CMD_DISC_MODE_CD_8 || || ||
|-
| 0xc11 || MECHA_CMD_DISC_MODE_CD_12 || || ||
|-
| 0xc12 || MECHA_CMD_DISC_MODE_DVDSL_8 || || ||
|-
| 0xc13 || MECHA_CMD_DISC_MODE_DVDDL_8 || || ||
|-
| 0xc14 || MECHA_CMD_DISC_MODE_DVDSL_12 || || ||
|-
| 0xc15 || MECHA_CMD_DISC_MODE_DVDDL_12 || || ||
|-
 
|}

Latest revision as of 13:28, 15 September 2024

Overview[edit | edit source]

These commands can be sent to MechaCon via it's UART interface. They exist for manufacturing and servicing purposes. For wiring up a serial terminal to the MechaCon UART interface, see MechaCon UART test points. To enable the UART interface, the console must be put into testmode by pulling the TEST_MODE0 test point to ground. The interface operates at 57600 baud 8N1 and rather non-standard 3.5 V.

3.3 V signal levels work fine for communication, but care must be taken not to additionally connect an internal 3V3 voltage regulator, which is provided on some USB UART interfaces, to the console, since this will conflict with the console's own 3V5 voltage regulation and could damage the USB device and/or the console. On such interfaces, it should suffice to just connect Rx, Tx and GND. Even better would be to use a RS-232-to-TTL level shifter, which can take the 3V5 voltage as reference directly from the console itself.

Instead of working with raw MechaCon commands, it is recommended for users to use pre-made tools like PMAP. The purpose of this page is to provide documentation for the further development of PS2 tools.

Large differences exist between the SPC970-based MechaCon and the ARM-based "Dragon" MechaCon.

Commands[edit | edit source]

All communication uses ASCII-encoded Hex-values.