Rendered from tools/probes/README.md in the repository.
Everything here is about the hardware and Datel's firmware, not the games. Offline tools read your
own copy of Datel's 1.06 update (CRC 1767E827, in firmware/build/fw.bin) and print addresses and
counts only. Hardware probes are ordinary read-only lab scripts and run only when Fred says so.
tests/test_probes.py checks all of it: the offline tools on Datel's image (when present), the
capture decoder on a synthetic capture, and every probe against the simulated DUO.
| Tool | Hardware? | What it answers |
|---|---|---|
fw_regscan.py |
no | Every control register and header-overlay address Datel's code touches, and how (read/write, width, constant values) |
fw_map.py |
no | Datel's USB command table (which of 0x02-0x27 it answers), the 19-entry screen table, who calls each hardware routine, blank stretches, and with --compare exactly which words a Reckless build changes |
usb_trace.py |
watches only | Decodes a Wireshark/USBPcap capture of Datel's PC program or this toolkit: every packet named and timed, turn-taking checked, answer latency, a census of commands |
sim_vs_hw.py [--write] |
no | Replays every lab script ever run on the real DUO through the simulator and compares the results by content-independent signature; lists every mismatch (lab/sim_accuracy.md) |
behaviours.py [--write] |
no | The register of every behaviour the simulator models, its source (measured / Datel's code / guess) and whether it has been checked against hardware; writes docs/SIMULATOR_ACCURACY.md |
duo_probes.py plan |
no | Lists every probe: its question, group, operation count and the only writes it makes |
duo_probes.py write [--queue] |
no | Writes session 32's lab scripts and job lists (--queue also fills lab_job.json) |
duo_probes.py usb |
yes (USB only) | USB descriptors (bInterval) and 200 timed HELLOs |
duo_probes.py report |
no | Reads lab_results/ and the lab log; writes lab/sessions/session32/summary.md with no Datel bytes in it |
Session 32's probes
| Probe | Group | Question |
|---|---|---|
| p_regs | core | Do Datel's 24 write-only registers read back? What do they hold at rest? |
| p_decode | core | Which address bits does the Actel decode in the control area? |
| p_window | core | What reads at 0x09FE0400 (the code window) with the DUO's own mapping? |
| p_flash | core | Are the DUO flash's two undescribed stretches blank? |
| p_busmap | core | Is anything else mapped in the 32 MB cartridge space? |
| p_waitcnt | core | Which of 16 ROM wait-state settings can the DUO's flash, and the game, keep up with? |
| p_mirror | core | Where do the flash and the game mirror? Does the header overlay repeat in the flash's mirror? |
| p_idexit | core | How does the Sanyo save chip leave ID mode? (the simulator disagrees with October's probe) |
| p_garble | restart | Straight after a restart, are the first bytes ever garbled? (sessions 6-7's open question) |
| speed_* | speed | Five timed reads (1, 16, 64 KB; compressible and not) to refit the speed model |
--lab probe |
core | Save-chip IDs under each game mapping (the lab's own probe) |
--cart-report |
core | The cartridge report, for the record |
| p_switch | console | Which LINK_IN bits follow the AR switch, the AR button and a DS card? |
Run (after Fred's yes), with the DUO in USB SERVER MODE and a cartridge in the slot:
python lab_runner.py # the 17 queued jobs, ~5 min
python maxduo_saves.py --lab script lab/sessions/session32/p_switch.json # ~20 s: switch, button, DS card
python tools/probes/duo_probes.py usb
python tools/probes/duo_probes.py report