Files
Claude e94e79469e Merge cryan209/courier-emu main (3 commits)
Brings in f1ccd92 (board reads move to dumps/), d138dc2 (3453 flash
boot, browser GUI, Apple USB Modem line, RTP/G.711, V.90 and x2 timing,
Quad) and e84e324 (native worker gate and resampler loops).

Conflicts:
- Frame timing (machine.py, worker_poll.py, native/c5x_capi.cpp): keep
  the upstream frame-source code (_frame_irq_due, worker_frame_due, XF
  edges). Add the fork's opt-in COURIER_INT0_TOUT source into those
  functions, and keep COURIER_INT0_EXACT. The new struct fields are at
  the end of WorkerPollState, in C and ctypes.
- bearer_line.py and the closed-loop probe: keep the fork's opt-in line
  loss, noise and A-law test settings, with the upstream imports, frame
  constants and dumps/ paths.
- Docs: keep the STE text of the fork, with the dumps/ paths. Keep the new
  upstream sections. The README stays a short landing page. The new
  README text of the upstream goes to docs/research-log.md,
  docs/current-boundary.md, docs/usage.md and the new docs/gui.md (STE).
  docs/README.md lists the new upstream notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRyJwNajT59BytMgdQ
2026-11-23 14:32:24 +00:00

2.6 KiB

courier-emu

courier-emu is an emulator harness for the firmware of the USRobotics Courier modems. It runs the original firmware images, so that D-Modem can do interoperability tests against a Courier without the hardware.

The harness runs the Intel 80186 or 386EX supervisor and the TMS320C5x DSP of the modem together, and it gives the same result each time. It models the ASIC, the codec, the DAA, the board latches and the settings EEPROM. Two instances can share one telephone line, and one instance can dial out through SIP.

  • Analog Couriers (main211.xmf and other XMF images), the ISDN I-modem (.nac and .xmp images) and the Quad server modem
  • A live AT console on the firmware of the modem, and a browser console (./courier gui)
  • Two modems on one line (link), with Bell 103, V.34 and x2 tests
  • A minimal SIP user agent on the modeled DAA
  • An experimental line backend for the Apple USB Modem (macOS)
  • Tools that read the flash, the RAM and the ASIC ports of a real board

Status: this is research work. The analog 403 firmware negotiates V.34/LAPM and V.90/LAPM over SIP, and the I-modem connects at V.90 to a RasFinder. The Quad connects with V.34 and x2. Sustained reliability is not yet solved. Refer to Current boundary and Research notes.

This repository is a fork of cryan209/courier-emu.

Quick start

You must have Python 3.10 or later. The firmware images are not in the repository. Put the image that you use in the top folder. Then do these commands:

./courier info main211.xmf                       # check and describe an XMF image
./courier isdn-run Ie030002.nac --terminal       # an AT console on the I-modem

The ./courier launcher makes .venv at the first start, and installs the dependencies (Unicorn and Capstone) in it. To exit the terminal, push Ctrl-].

Documentation

Licence

AGPL-3.0-only (LICENSE), or a commercial licence from the D-Modem Authors (COMMERCIAL-LICENSE.md). Contributions come with a contributor agreement (CONTRIBUTING.md). The firmware images belong to their owners and are not under these terms.