MAX DUO Pokémon Toolkit GitHub

Home / Features

Wireless Adapter (over the air)

Simulator

The cable route has the DUO play a Wireless Adapter. With two real adapters (arrived 25 November) the DUO's GBA plays the game instead, speaking librfu's commands to a real adapter in its own link port, and reaches the other game over the air.

Command What it does Status
adapter-check the DUO asks a real adapter what a game asks, listens to a search, and compares every answer with its own adapter's Simulator hardware test 21
adapter-check --host broadcasts a distributor; a game finds and joins the DUO Simulator hardware test 22
gift --air --card FILE.wc3 a Wonder Card over the air, end to end: the game's Mystery Gift finds the DUO, links and saves the card Simulator hardware test 23
(air_join build) the DUO joins a game's group as a child: found, connected, named, told it may join Simulator

Hardware you need

One adapter goes in the DUO's GBA link port while the DUO sits in the cartridge slot. On an original GBA both are on the top edge and collide; on a GBA SP (slot at the bottom, link port at the top) or a Game Boy Player they don't. The game's GBA takes the other adapter.

How it was built: the air model

Each game talks to its own adapter model over a simulated link cable; the adapters relay over "the air": broadcast and search, hosting, connecting, data both ways, one packet a frame each way in order (as real adapters exchange once per radio frame). The emulated DUO is one station; Python games with their own adapters are the others. In that model:

  • a game hosts, another finds it, joins, and three packets go each way;
  • the DUO hosts a distributor, a game finds it, sends its name, is told it may join, links, and saves the Wonder Card and its script byte for byte, with no retries;
  • the tool's own gift --air command does the same with an English card (serial 0x7F7D).

Five planted bugs (three in the firmware, two in the tool) are each caught by these tests.

Photo wanted: a GBA SP with the DUO and a Wireless Adapter, and the game's GBA receiving a card over the air (hardware test 23)

Detail: how the wireless link works, docs/WIRELESS.md.