Repository navigation
Home
ctrpass can let a Linux computer StreetPass with nearby Nintendo 3DS consoles. It finds consoles that have StreetPass on, exchanges messages with them over local wireless, and keeps the messages it receives in an inbox you can browse, edit, or copy into an emulator for example.
ctrpass has four parts:
| Part | What it is |
|---|---|
ctrpass library |
Rust crate that implements the StreetPass protocol, message formats, game plugins and the message store. It has no Linux specific code of its own outside the radio backend. |
ctrpass command |
Linux command-line tool for scanning, exchanging, building messages, importing and exporting. |
| Python module | Bindings to the library, used by the desktop app. |
| Desktop app | GTK 4 and libadwaita app. Runs as your user and starts ctrpass serve through polkit when it requires the radio. |
StreetPass only works between consoles that are physically close to each other. Fewer people carry a 3DS now, so most consoles go days or weeks without a single pass, and games such as StreetPass Mii Plaza become hard to play. Emulators can read StreetPass data but cannot exchange it with real consoles.
ctrpass fills that gap. A computer with a suitable Wi-Fi adapter appears to a 3DS as another console, so it can:
- pass with your own console, or with consoles near the computer,
- hold messages for many games at once and hand them out to every console it meets,
- move messages between real consoles and emulators.
A good concept could be setting up a small Linux computer in a shop, especially gaming/tech focused ones, and it allows customers carrying a 3DS to get a StreetPass.
- Overview and requirements
- Choosing a Wi-Fi adapter
- Building and installing
- Making the key file
- First exchange with the desktop app
- First exchange from the command line
- Messages, games and emulators
- Troubleshooting
ctrpass reads and builds a game's messages through a plugin that describes the game's message body. Mii Plaza is built in. See Adding games with plugins to add other games or write a plugin.
How StreetPass works in-depth and how ctrpass implements it. Start at Protocol overview.
How to set up
- Overview and requirements
- Choosing a Wi-Fi adapter
- Building and installing
- Making the key file
- Desktop app
- Command line
- Messages and emulators
- Troubleshooting
Plugins
Protocol
- Overview
- Discovery
- Link setup
- Frames and CCMP
- YY transport
- Exchange flow
- Exchange objects
- CEC messages
- CEC message boxes
- Mii records
- Mii Plaza
- Keys
ctrpass library
Linux