MAX DUO Pokémon Toolkit GitHub

Home / How it works

The USB protocol

Worked out from Datel's 2005 PC program and its firmware, read offline - nothing was learned by sending unknown commands to the device.

  • USB ID 05FD:DAAE, low-speed; interrupt OUT endpoint 0x02, IN 0x81.
  • Every message is 8 bytes. PC to DUO: CBW, a command byte, a 32-bit argument. DUO to PC: SBW, a code, a 32-bit value.
  • Strict turns: one PC packet, one GBA packet. A second packet in a row is never delivered - the rule v3 broke and the simulator now enforces.
  • A packet sent while the GBA is off waits in the USB chip; the firmware sees the waiting hello at start-up and goes straight to USB SERVER MODE.
Datel command What it does The toolkit
0x02 hello (replies with the version) used
0x11, 0x13 the stored-file directory; send file N used (--list)
0x0C, 0x0F, 0x20 firmware update --update only, after you type UPDATE
0x1C DeleteFile refused
0x0A, 0x0B, 0x25, 0x27 writes to the DUO's memory or a DS card refused

The commands this project added sit in slots Datel's firmware answers with "unknown command": the GBA save read, the lab, restart, the cartridge report, and on v4.2 run a program with POLL, PUT and STOP to talk to it. Full table: docs/PROTOCOL.md.

Another GBA Action Replay tool sends DeleteFile at start-up. On a MAX DUO that deletes a stored file. This toolkit never sends it.