Multi Train Controller (Sony PlayStation 2)

Overview

NameMulti Train Controller (Sony PlayStation 2)
Release dateDecember 18, 2003
Serial codeSOTP-031201
NotesReleased with 4 cartridges: P4-B7, P4-B7 (without B1), P5-B5 and P5-B8. Additional cartridges sold separately: P5-B7 and P13-B7.

Supported software (WIP)

SoftwareSupportNotes
BVE Trainsim (PC)NativeSupported via input plugin.
Densha de GO! 3 Tsūkin-hen (Sony PlayStation 2)NativeP5/B8 cartridge.
Densha de GO! Final (Sony PlayStation 2)NativeP5/B8 cartridge.
Densha de GO! Professional 2 (Sony PlayStation 2)NativeP5/B8 cartridge.
Densha de GO! Ryojōhen (Sony PlayStation 2)NativeP5/B8 cartridge.
Densha de GO! Shinkansen San'yō Shinkansen-hen (Sony PlayStation 2)NativeP5/B8 cartridge.
OpenBVE (PC)NativeSupported via input plugin.
Railfan: Chicago Transit Authority Brown Line (Sony PlayStation 3)NativeP5/B8 cartridge.
Train Simulator + Densha de GO!: Tokyu Line (Sony PlayStation 2)NativeP4/B7, P5/B5 cartridges.
Train Simulator Real: THE Keihin Electric Express Railway (Sony PlayStation 2)NativeP5/B5 cartridge.
Train Simulator Real: THE Yamanote Line (Sony PlayStation 2)NativeP5/B8 cartridge.
Train Simulator: Keisei, Toei Asakusa, Keikyu Lines (Sony PlayStation 2)NativeP5/B5, P13/B7 cartridges.
Train Simulator: Kyūshū Shinkansen (Sony PlayStation 2)NativeP5/B7, P13/B7 cartridges.
Train Simulator: Midosuji Line (Sony PlayStation 2)NativeP4/B2-B7, P5/B5 cartridges.

Technical details

This controller has one handle with several notch cartridges (P4/B7, P4/B2-B7, P5/B5, P5/B7, B5/B8, P13/B7), a D-Pad and 7 buttons (Select, Start, A, B, C, D, ATS). The A button can distinguish between “soft” and “hard” presses. In addition, the controller has four lamps.

Internally, it is a vendor-specific class device. The USB descriptors and the reported data change depending on the notch cartridge inserted.

Product nameNone
ManufacturerNone
Vendor ID0x0AE4
0x1C06 (P5/B5)
Product ID0x0101
0x77A7 (P5/B5)
0x0004 (P5/B8)
Serial numberNone
USB standard descriptorP4/B7
P4/B7 (without B1)
P5/B5
P5/B7
P5/B8
P13/B7
HID report descriptorP4/B7, P4/B2-B7, P5/B7, P13/B7 (recreated, not provided by actual device)

P5/B5 cartridge

When this cartridge is inserted, the controller emulates the Train Mascon. The buttons are mapped 1:1 except the D button, which is mapped to the Close () button.

The lamps are used as follows, from top to bottom: doors, ATS, 45 and 15.

P5/B8 cartridge

When this cartridge is inserted, the controller emulates the Two handle controller “Type 2”. The buttons are mapped 1:1 and ATS is mapped to START. The reverser is mapped to the D-pad UP and DOWN buttons.

Only the top lamp is used, for the doors.

P4/B7, P4/B2-B7, P5/B7, P13/B7 cartridges

When any of these cartridges is inserted, the controller functions similarly to the P5/B5 mode and data changes depending on the amount of notches. The specific cartridge in use can be detected by looking at the bcdDevice value from the standard USB descriptor:

P4/B7P4/B2-B7P5/B7P13/B7
0x03000x04000x08000x0A00

Input

The controller sends reports to the host (PS2) formed by 4 bytes:

Byte 1Byte 2Byte 3Byte 4
0x01Reverser+handleButtons 1Buttons 2

The reverser+handle byte combines two values representing the state of the reverser and the power/brake handle. The handle notch is represented sequentially starting from 0x1 (Emergency), brake notches from highest to lowest, N and power notches from lowest to highest.

ForwardNeutralBackwards
0x8X0x0X0x4X

Note: the P5/B7 and P13/B7 cartridges do not make use of the reverser and use both nibbles for the handle notch.

The first button byte uses six bits to represent the state of the physical buttons. 0 means that the button is released and 1 that it is pressed. A bitmask can be used to retrieve the buttons.

Bit 0Bit 1Bit 2Bit 3Bit 4Bit 5
ATSDA (soft)A (hard)BC

The second button byte also uses six bits to represent the state of the physical buttons.

Bit 0Bit 1Bit 2Bit 3Bit 4Bit 5
STARTSELECTUPDOWNLEFTRIGHT

Output

The controller supports receiving data via a control transfer to turn on/off the lamps. The setup packet is as follows:

bmRequestTypebRequestwValuewIndexwLength
0x400x50Lamp data0x00000x0000

Changing wValue controls the lamps with the logic below.

  • Door lamp: 0x0X is Off, 0x1X is On.
  • Signal lamp: 0xX0 is Off, 0xX1 is ATS, 0xX2 is 45, 0xX3 is 15.