Commit Graph
60 Commits
Author SHA1 Message Date
Claude 546e29de30 D-Modem-RE: the Apple USB Modem rings (notification 0x09)
A real call's log showed the ring as notification 0x09 every 40 ms;
dmodemd now rings on that, so RING (and auto answer) works (D-Modem
#80).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSpDnDnJUjH5xnnnwz
2026-11-04 04:23:20 +00:00
Claude 1772859bd2 D-Modem-RE: no phantom rings on the Apple USB Modem
Its ring detector reports every millisecond with bit 15 set while
nobody calls; dmodemd now takes a ring as both polarities (D-Modem
#79).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSpDnDnJUjH5xnnnwz
2026-11-04 00:40:25 +00:00
Claude 5e6a0cb36d D-Modem-RE: the Apple USB Modem hooks with its DAA when SET_HOOK_STATE stalls
The real device stalled SET_HOOK_STATE at start-up; dmodemd now hooks
with the Si3056's register 5 instead, as Apple's driver can (D-Modem
#78).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSpDnDnJUjH5xnnnwz
2026-11-03 23:27:11 +00:00
Claude 3e29022872 Update D-Modem-RE: the Apple USB Modem's notifications read whole
The first real Apple USB Modem stopped at start-up: a notification
overflowed dmodemd's 16-octet read, then the hook request stalled.
D-Modem/D-Modem#77 reads the interrupt endpoint a whole packet at a
time, as Apple's driver does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSpDnDnJUjH5xnnnwz
2026-11-03 10:51:01 +00:00
Claude 2d53e019d7 Update D-Modem-RE: dsvd_audio without posix_spawn() on Android API < 28
The release build (minSdk 26) failed on dsvd_audio.cpp's posix_spawn()
calls; D-Modem/D-Modem#76 starts its command with fork() there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSpDnDnJUjH5xnnnwz
2026-11-03 08:45:18 +00:00
Claude 9183a2d3aa Support the Apple USB Modem (05AC:1401) as the modem's line
D-Modem-RE (D-Modem) updated to its main with the Apple USB Modem's
driver (usb_apple.cpp), built into the engine. UsbModems knows it
(05AC:1401 and 05AC:8220, 9600 Hz), the app is offered when one is
plugged in, and native-test's usb_line_test.py runs calls on its fake
(apple_line).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSpDnDnJUjH5xnnnwz
2026-11-03 08:39:35 +00:00
Claude c88fd1e862 Update D-Modem-RE to its latest main
The submodule from 7f53883 to 04a7341 (116 commits: point-of-sale V.22
fast connect and V.29 FastPOS, T.434 and T.44 fax, and the rest since).
The host's engine tests pass on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSpDnDnJUjH5xnnnwz
2026-11-03 07:56:22 +00:00
Claude e60ba4e8b2 external/d-modem-re: D-Modem main (7f53883)
Moves the core from 502a827 to D-Modem main's latest: V.110/V.120 on
the clear channel, V.18 text telephones, class 2 and 2.0 fax, the
mISDN line and dmodem-capid (not built for Android: gradle builds only
dmodem_jni and dmodem_pty), the AT reference rework.

.gitmodules now follows main, not the old feature branch.

native-test builds and passes 13/13; tools/doc_check.py is clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRU1DLnbp5FrrPXuTh6
2026-10-31 09:12:07 +00:00
Claude 3891c3b83f Mobile calls: +MS=VCVM, the core's new name for V.cvm
D-Modem-RE now names V.cvm VCVM (like K56 and VWB); the mobile-call
line sends +MS=VCVM. A saved V_CVM setting from an older version reads
as VCVM. The submodule moves to the D-Modem commit with the rename.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUhzHK9FsNkkr7T6X3
2026-10-30 15:20:30 +00:00
Claude 308fa9f76c D-Modem-RE: INFO1a in the log
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-28 06:01:36 +00:00
Claude 11431b09c3 D-Modem-RE: V.34 loop timing (the SmartUSB56's dial-outs)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-28 02:54:23 +00:00
Claude d15305020a D-Modem-RE: the SmartUSB56's own automatic transmit level
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-28 02:20:33 +00:00
Claude e115f9aaf8 Bump d-modem-re: the remote's MP in full in the log
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-28 01:22:06 +00:00
Claude 8e8cf66e5f Bump d-modem-re: no phantom RING from the SmartUSB56's FIFO underruns
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-28 01:08:48 +00:00
Claude a8e137c474 Bump d-modem-re: dialling out no longer stalls on the remote's MP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-28 00:16:09 +00:00
Claude 6f73bbdf82 Bump d-modem-re: a V.34 answer no longer stalls on its own echo
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-28 00:00:55 +00:00
Claude 0c3c87726f Bump d-modem-re to its default branch: V.wb, V.34 answerer fixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 23:35:35 +00:00
Claude bc8a3b1381 Bump d-modem-re: doc_check passes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:03:56 +00:00
Claude 1a014580ee Bump d-modem-re to its default branch (the Agere work merged, macOS port)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 07:54:25 +00:00
Claude 501275eecf Bump d-modem-re: V.34 no longer takes random training bits for J
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 07:41:34 +00:00
Claude aa2f1cad00 Bump d-modem-re: the Agere modem starts again after a stop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 07:22:24 +00:00
Claude cac586cbe8 USB line: automatic transmit level, on by default
A switch over the transmit level: on, D-Modem-RE's DMODEM_USB_TX_GAIN=auto
sets it for each call from the remote's answer tone; off, the dB as
before. Bumps d-modem-re for it (and rings no longer hidden by caller
ID's listening).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 07:09:04 +00:00
Claude cf2a34b3a2 Bump d-modem-re: Agere modem restarts; USB errors in the log
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 06:48:20 +00:00
Claude 357a832446 Bump d-modem-re: no phantom ring after hang-up
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 06:32:45 +00:00
Claude f5866e3eda D-Modem-RE: no phantom rings from the Agere Polaris's stuck ring bit; playback lead capped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 06:11:52 +00:00
Claude 19c5e5c379 D-Modem-RE: the Agere's Polaris rings detected (codec register 0x0a8 bit 1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 22:16:30 +00:00
Claude 603a9c7016 D-Modem-RE: the Agere's ring registers polled on hook and logged; the samples' range logged
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 22:03:58 +00:00
Claude 394cdaa316 USB line: a transmit level setting (-20 to 20 dB), D-Modem-RE's DMODEM_USB_TX_GAIN
For a line or modem that hears the modem too faintly: the first Agere
device's remote does (V.34 asks for 7200 at most, V.22bis's carrier is
lost there) while its own samples check out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 21:39:11 +00:00
Claude f06b8095db D-Modem-RE: the Agere's transmit ring kept from paired transfers; 60 ms of playback to spare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 19:17:40 +00:00
Claude c4dbd56a1a D-Modem-RE: the Agere's transmit ring kept steady (averaged count, corrections past a slack)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 18:48:16 +00:00
Claude ad61c88eb8 Record each call on a USB modem's line, for a bug report; share the latest from the log
A setting (the USB line's "Record each call") sets D-Modem-RE's
DMODEM_USB_REC to the captures folder: each call off hook to on hook a
stereo WAV (the line's, the modem's); the last 5 kept; the log screen's
Recording shares the newest. D-Modem-RE: the recording, and the Agere's
failed IN packets counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 18:34:31 +00:00
Claude 02ce8466ad D-Modem-RE: the Agere paced as Windows' driver does (16 transfers in flight, 2 samples a packet)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 18:19:09 +00:00
Claude 482fef123c D-Modem-RE: the Agere's Polaris DAA driven, its hook the right way round
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 11:40:19 +00:00
Claude 601324744c D-Modem-RE: the Agere's OH LED on GPIO 4; the LED probe over all 32 GPIO bits
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 11:04:08 +00:00
Claude d5bab92cf2 A special build to probe the Agere's LEDs (-Pdmodem.special=led-probe); D-Modem-RE: ring indices left alone off hook
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 10:50:43 +00:00
Claude 5cfa4d3ffa D-Modem-RE: the Agere's start-up step from Windows' driver, ring indices off hook, registers logged
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 10:38:50 +00:00
Claude 03a196af25 D-Modem-RE: the Agere modem's two LEDs (READY/DATA, OH); its playback catches up after a burst
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 10:09:42 +00:00
Claude e2b9d1ccfe Agere: on its ROM's own isochronous stream (D-Modem-RE), no patches in the app
D-Modem-RE now streams the Agere modem as Agere's Windows driver does:
alternate setting 1, the ROM's command 0x0c, a packet each way every 2
microframes, nothing downloaded into it. So the app ships no Agere
patches: the agereFirmware assets, installAgereFirmware and its test,
and the bring-up's environment variables go. The transfer counts log an
isochronous IN transfer's packets; the host test checks the alternate
setting and the packets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 09:22:48 +00:00
Claude 3f17b78714 Agere: the codec settings its ROM gives at boot tried at start (rate measured each way)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 08:07:35 +00:00
Claude e73aa87255 Agere: its descriptors, ROM and registers dumped to the log at start; transfers back to 2
8 in flight made no difference: the device sends a packet every 19.5 ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 07:33:30 +00:00
Claude 75cd6b0370 Agere: 8 bulk transfers in flight each way; the IN round trips timed in the log
The device starts its next IN packet only once the last has gone; with
Agere's driver's 2 in flight an app's round trip through libusb seems to
leave it waiting (2459 samples a second, at every ARM clock). The log's
transfer counts now say how long the IN transfers take to come back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 07:07:09 +00:00
Claude 3e705c6e73 Agere: D-Modem-RE's command 0x10 in wIndex, and its clock sweep at start while it's brought up
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 06:16:43 +00:00
Claude dfc58299ea D-Modem-RE: the Agere's stream state read back after command 0x10, its mode as wIndex if not streaming
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 05:39:44 +00:00
Claude f93ac19dbc Agere USB 2.0 soft modems as the line (D-Modem-RE a30aa39)
D-Modem-RE's third USB line, usb_agere.cpp (047E:2892, 047E:2828), in
the app's native build beside the SmartUSB56's and the pico-serial
Line's. Its ROM patches (D-Modem-RE's firmware/agere: Agere's, under
Agere's licence, with its LICENSE and NOTICE.md) are copied into the
APK's assets at build time (agereFirmware) and installed in the app's
files when an Agere modem is the line, DMODEM_AGERE_FIRMWARE pointing
D-Modem-RE at them. UsbModems knows the two IDs, and runs it at 8000 Hz
(the others at 9600); Android offers the app when one is plugged in;
the line's settings say so.

native-test: agere_host on D-Modem-RE's fake Agere modems
(fake_agere.cpp), their patches the tests' own in a firmware directory:
usb_line_test.py's agere run, ATI3, caller ID, CONNECT 33600 both ways,
data, hang up, unplugged. AgereFirmwareTest: the patches installed as
shipped (D-Modem-RE's SHA-256 sums), the licence beside them.

D-Modem-RE a30aa39 too: V.cvm's MPs through AMR-WB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 03:14:40 +00:00
Claude 6a2880223e D-Modem-RE: zstd in LAPM, V.80, V.92 and V.34 fixes (79e00fa)
- zstd compression of its own (RFC 8878, no libzstd), negotiated in
  LAPM's XID in every mode beside V.44 and V.42bis; AT+DSZ; CONNECT
  .../ZSTD. V.cvm: V.44 with Annex E's preset dictionary, zstd's too.
- V.80 synchronous access mode (framed and transparent).
- Retrains and rate renegotiations on the DTE's request; V.92 FPE's
  restart at B1u (#257); a V.34 retrain's reversal.
- The escape keeps the data still waiting to go out.
- A FreePBX module (dialling out with profiles, Backup & Restore).
- The hang-up while ringing fix (a800759) merged in it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-25 22:31:53 +00:00
Claude cd97abbf1c Hanging up a ringing SIP call: at once (D-Modem-RE a800759)
D-Modem-RE's core stopped a call hung up while being set up after 48 of
the line's samples, and a SIP call ringing without early media has none:
ATH while it rang waited until the far end gave up. Its fix
(claude/hangup-while-ringing): the stop done on time once no samples
have come for 100 ms.

engine_test's call 5: the engine dials a dmodemd that rings and doesn't
answer, then ATH: the modem back in 0.1 s (it took until the engine was
stopped), the status idle and on hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-25 05:30:50 +00:00
Claude 4e94931656 D-Modem-RE: modern C++ throughout (2ca2a79)
D-Modem-RE's tree in C++17's ways: fixed-width types (u8 .. s64,
include/dm_types.h), std::string and std::vector in place of C strings
and malloc, C++ casts and headers; settings from the environment through
dsp/env.h. Its behaviour unchanged.

For the app: include/ on the include path of its native code and the
host's tests (D-Modem-RE gives it to its own directories alone); the
peer line's Host overrides in the new types (s16 start/stop/speaker,
s32 dte_write, u64 now_ms); t30_line's page callback and bits too.
The host's engine, USB line and C API tests pass, and DModemKit's Swift
tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-25 04:25:20 +00:00
Claude dc9e15aff1 D-Modem-RE: SmartUSB56 caller ID and its extras, SmartDAA, V.22 (7d1790f)
- dmodemd --usb: SmartUSB56 caller ID and the ST75951 silicon DAA; its
  LEDs, wake on ring, handset, international line controls, voice codec,
  RHOM and buzzer (each opt-in).
- SmartDAA (Conexant): its power up, line setup, hook and country table.
- V.22: 1200 bit/s symbols decided around their point.
- Clang preferred where it is installed.

The app says the SmartUSB56 has caller ID now too. The host's USB test
links D-Modem-RE's fake stick alone, without the real libusb behind it:
libusb_get_port_numbers (wake on ring's, unused there) stubbed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-23 23:53:39 +00:00
Claude 6250dec5b5 D-Modem-RE: USB modems, Windows, Si3054/Si3056 line settings (ed4ee27)
- dmodemd --usb: the pico-serial Line stick beside the SmartUSB56, each
  country's line settings in its Si3056 DAA (Host::country()).
- The country's line settings on an HD-audio Si3054.
- Windows: dmodemd.exe, the USB modems there, its own virtual modem
  driver; an Alpine Dockerfile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-22 19:16:22 +00:00
Claude aed9ab62cc D-Modem-RE: adaptive answer and voice mode fixes (7d68d64)
- Adaptive answer: slow legacy callers (V.22, V.21, Bell 103) answered
  as data; fax senders with no CNG, or a cut-short one, found as fax.
- Voice mode: calling tones reported, the call kept for fax or data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-19 02:38:13 +00:00