* VT220 and VT320: G0-G3 and shifts, NRCS, 8-bit replies, DECSCA, DECUDK Phase 2, part 1. The character sets move into CharsetShifting, which VtInterpreter composes: G0-G3, GL and GR, the locking shifts (SI, SO, LS2, LS3, LS1R-LS3R) and single shifts (SS2, SS3, and their C1 forms), designators of two characters and 96-character sets (ESC - . /), the national replacement sets, DEC Supplemental, DEC Technical and Latin-1, each at the level that has it, and DECSC keeping them all. Also: - S7C1T/S8C1T: replies with C1 controls - DECSCA with DECSED and DECSEL (a protected bit SGR leaves alone) - DECSCL: the operating level and 7- or 8-bit replies - DSR ?15, ?25, ?26 and ?6 (DECXCPR) - DECRQPSR (DECCIR, DECTABSR), DECRQUPSS and DECAUPSS - DECRQSS for DECSCL, DECSCA, DECSLPP, DECSCPP, DECSNLS - DECUDK in UserKeys: Shift with F6-F20 sends what the host loaded - F13-F20, Find and Select keys, and LK201 and UDK key bar pages - a VT320 profile (level 3) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY * VT320 status line and DECDLD soft characters Phase 2, part 2: - DECSSDT and DECSASD: the indicator status line (the cursor's place) or the host's own, written with a cursor of its own (StatusLine); shown below the screen on Android and iOS, the screen a line shorter - DECDLD (SoftFont): a soft set's glyphs read from their sixels, kept as code points of plane 15, designated by the host's Dscs (a GSet SOFT slot in CharsetShifting) and drawn from their bitmaps by both apps; BitmapFont now takes a width (rows as Ints), so the soft glyphs keep theirs (a VT320's 15x12) - DECRQSS for DECSSDT and DECSASD; DECCIR names the soft set Pages (NP, PP, PPA and the rest) are a VT330's and VT420's: they go with Phase 3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY * VT420, VT510, VT520, VT525: margins, rectangles, pages, colour table Phase 3. A Vt420Interpreter extends VtInterpreter through its hooks (an ESC, a CSI, a DCS, DECRQSS and DECRQM a subclass takes): - DECLRMM and DECSLRM: the emulator's printing, wrapping, CR, scrolling, IL/DL and ICH/DCH keep between the margins - Rectangles: DECCRA, DECERA, DECSERA, DECFRA, DECCARA and DECRARA (DECSACE: a stream or a rectangle), DECRQCRA's checksum, DECIC/DECDC - DECBI and DECFI - pages: NP, PP, PPA, PPR, PPB over six, DECXCPR telling the page - DECSNLS, DECSLPP, DECSCPP; DECNKM, DECBKM - VT5xx: DECRQDE, the bell volume and keyboard sequences taken; VT525: DECAC and the colour table (DECRQTSR 2, DECRSTS in RGB or HLS) - VT420, VT510, VT520 and VT525 profiles Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY * Viewdata (Prestel) and Minitel terminals Phase 8. Both build on ByteControlInterpreter through a VideotexInterpreter (the teletext palette, the mosaics' glyphs on the emulator, a cursor wrapping round the screen): - Mosaic: 2x3 block graphics, contiguous and separated, drawn from bitmaps the app makes, at plane 15 code points (the soft glyph path) - Viewdata: the screen kept as its codes, each row drawn again from them with teletext Level 1's spacing attributes (set-at and set-after); Prestel's controls; # and Enter send 0x5f - Minitel: row 0 the status row, US addressing, G0/G1, SS2 accents and symbols, ESC attributes with the background and separation taken at a delimiter, REP, CSI commands, PRO1-PRO3 (ENQROM answered, ROULEAU, Mixte's 80 columns, Téléinformatique as a VT100), its function keys - key bars for both, captures as .vdt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY * VT525 colour table: DEC's HLS from Sixel's, not a copy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY --------- Co-authored-by: Claude <noreply@anthropic.com>
D-Modem app
A dial-up modem in your pocket: the D-Modem app for Android and iOS.
The app is a V.92/V.90/V.91, V.34 and class 1 fax modem whose telephone line is a SIP account's G.711 call, over Wi-Fi or mobile data. The modem is D-Modem's open modem core and DSP, built for the phone; no modem hardware is needed. Toward a BBS on a real phone line it is the digital modem, up to 56000 bit/s downstream; toward another digital modem, V.91 at up to 62667 bit/s both ways.
- A terminal, a dialling directory and the modem's AT console
- Class 1 fax up to 14400 bit/s: PDFs and images sent, faxes received as PDFs, T.38 too
- A vintage computer's external modem, on a USB serial adapter, pico-serial, Bluetooth serial or TCP
- Real phone lines through USB modems (the pico-serial Line stick among them), a Hayes modem on a serial adapter, or a Bluetooth modem
- Two phones as each other's line over Wi-Fi or Bluetooth, no SIP account needed
- The phone's own mobile calls as a slow line, where Android allows it
Quick start
Android: open the project in Android Studio, or
git submodule update --init
./gradlew assembleDebug
iOS: see docs/ios.md. The full steps, Docker included, are in docs/building.md.
Documentation
The documentation is also a website, d-modem.github.io/app, with reference pages made from the code.
docs/ covers the modem's lines, fax, adapters and phone lines, every screen of the app, building for Android and iOS, and the source layout.
The D-Modem suite
| Repository | What it is |
|---|---|
| D-Modem | The open V.92 softmodem: dmodemd, libdmodem and the Asterisk, FreeSWITCH and ARI modules |
| app | The D-Modem app for Android and iOS: a dial-up modem on a SIP call |
| hardware | pico-serial: RP2040 serial adapters and phone-line USB sticks |
| menu | modemmenu: the login and menu dial-up callers reach |
| bbs | A bulletin board for telnet, SSH, TN3270 and modem callers |
| go3270 | A Go library for 3270 terminal servers, used by bbs |
| brand | Logos, colours, type and the naming guide |
Licence
GNU Affero General Public License version 3 only (COPYING), or a commercial licence from the D-Modem Authors (COMMERCIAL-LICENSE.md), as D-Modem (see its LICENSING.md for the parts it fetches: libre is BSD-3-Clause, Mbed TLS Apache-2.0). Contributions come with a contributor agreement (CONTRIBUTING.md).