Claude 4aca104548 ZMODEM: zstd compression (CANZSTD/ZTZSTD) and resume
Zstd.kt is a plain Kotlin zstd (RFC 8878) for whole frames, ported from
D-Modem's link/zstd_codec.cpp, so the JVM, iOS and Linux targets share
it, with XXH64 for the content checksum. ZModem sets CANZSTD in its
ZRINIT, and sends a file as zstd frames (ZTZSTD in the ZFILE's ZF2) when
the receiver sets it, the type is not compressed and the first 64 KiB
gets 5% smaller. Positions stay offsets in the file and whole frames are
written, so ZRPOS and resume work as before; frames halve on each ZRPOS.

Incoming gets resume() and interrupted(): FolderIncoming and
PosixFolderIncoming keep a file cut short as a hidden .part and the next
transfer of the same name and size goes on after it.

Android: a terminal setting turns zstd off; the progress shows zstd.
iOS: the transfer view shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR1WNeCEtXUcjE8RgY
2026-11-20 22:21:15 +00:00
2026-11-20 15:31:31 +00:00

D-Modem/app: A dial-up modem in your pocket

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. Its telephone line is the G.711 call of a SIP account, through Wi-Fi or mobile data. The modem is the open modem core and DSP of D-Modem, built for the phone. You do not need modem hardware. Toward a BBS on a real phone line, the app is the digital modem, at up to 56000 bit/s downstream. Toward another digital modem, it uses V.91 at up to 62667 bit/s in the two directions.

  • A terminal, a dialling directory and the AT console of the modem
  • Class 1 fax at up to 14400 bit/s: the app sends PDFs and images, and receives faxes as PDFs. T.38 is also available
  • Voice calls through the modem on the speaker and microphone of the phone, and an answering machine that keeps messages on the phone (disabled until you enable it)
  • The external modem of a vintage computer, on a USB serial adapter, pico-serial, Bluetooth serial or TCP
  • Real phone lines through USB modems (for example, the pico-serial Line stick), a Hayes modem on a serial adapter, a MultiTech MT9234MU USB modem, or a Bluetooth modem
  • Two phones as the line for each other, through Wi-Fi or Bluetooth, without a SIP account
  • The mobile calls of the phone as a slow line, where Android permits it

Quick start

Android: open the project in Android Studio, or do these commands:

git submodule update --init
./gradlew assembleDebug

iOS: refer to docs/ios.md. The full procedures, with Docker, are in docs/building.md.

Documentation

The documentation is also a website, d-modem.github.io/app. It has reference pages that are made from the code.

docs/ gives information about the lines of the modem, fax, voice calls, adapters and phone lines, each screen of the app, the build 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).

S
Description
iOS and Android mobile app that runs on top of the D-Modem core
https://d-modem.github.io/app
Readme AGPL-3.0
30 MiB
0 Stars 1 Watchers 0 Forks
Languages
Kotlin 83.4%
Swift 7.3%
C 3.9%
C++ 2.8%
Python 1.4%
Other 1.2%