mirror of
https://github.com/D-Modem/courier-emu.git
synced 2026-11-28 20:38:07 -08:00
--reset sweeps the port space either side of a reset, on the theory that a restart would strobe the DSP download window at 0x40-0x56. It does not, and the reason is structural rather than sampling rate: the monitor is firmware. The board stops answering the moment it restarts and is readable again only once the supervisor is back at its command loop, by which point anything the reset did to the download window is finished. The probe races it anyway rather than waiting for ATZ's own OK, which would guarantee missing the outage - MonitorPort.write_raw sends without waiting and the probe then hammers one port on a 0.45 s timeout. The first read fails and the next, 375 ms later, answers; every read after that is steady. So the outage is under 375 ms and the resolution floor is the modem's own ~165 ms reply latency, which is why a shorter timeout would not buy much. Across the reset: zero of 256 ports differ, all 32 non-zero ports are identical, and nothing is still moving while it settles. The download window reads the same alternating 00/FF either side. Nothing in the port space records that a reset happened. Moving that window needs a transition the monitor can survive, and there are two: power-on, which cannot be observed through the firmware's own monitor, and a call setup, which bridge.py notes re-enters the download routine and which needs the loop off hook. ATZ is admitted to the transport's allowlist for this. It reloads the stored profile and reads NVRAM without writing it - AT&W is the command that stores, and it is neither present nor admitted - so a reset discards this probe's RAM-only settings rather than persisting them. The board was verified responsive afterwards, with port 0x7e still reading b3 and ATI7 still 7.4.16. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>