2400-WEB

A dial-up modem that lives in a web page

This site is a working modem: ITU-T V.32bis up to 14,400 bit/s, V.22bis at 2400, and the older 1200 and 300 bit/s modes behind it. Its line side is an audio channel: a WebSocket or WebRTC call, or your sound card. Its serial side is a plain byte stream that can be wired to anything; out of the box it is wired to a small simulated bulletin board.

Nothing is faked on the wire. Characters really are framed with start and stop bits, scrambled, mapped onto a constellation (16 points at 2400 bit/s, 128 trellis-coded points at 14,400), and recovered at the far end from audio alone.

  dial-in page                                              host page
 +----------+   +---------+   +--------+           +--------+   +---------+   +-----------+
 | terminal |---| AT cmds |---| V.22bis|~~ audio ~~| V.22bis|---| serial  |---| simulated |
 | (80x25)  |   | (Hayes) |   | modem  |  (WebRTC) | modem  |   | port    |   | system    |
 +----------+   +---------+   +--------+           +--------+   +---------+   +-----------+
                              originate                          answer        BBS / echo /
                              1200 Hz                            2400 Hz       real serial port

Try it

  1. Open the host modem in one tab and power it on.
  2. Open the dial-in terminal in another tab, or on another machine using the same server.
  3. Type ATDT 555-2400 and press Enter. After the answer tone and handshake you get CONNECT 2400.

The pages need a secure context (https:// or localhost) because the modem runs in an AudioWorklet. Calls between different machines are set up through the bundled server's signaling relay; without it, calls only work between tabs of one browser.