Commit Graph
211 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
Neo 13c42cc1c7 Merge pull request #19 from D-Modem/claude/project-thread-m64hjq
D-Modem-RE: no phantom rings on the Apple USB Modem
2026-11-03 16:51:55 -08: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
Neo 207ec01e96 Merge pull request #18 from D-Modem/claude/project-thread-m64hjq
D-Modem-RE: Apple USB Modem hooks with its DAA when SET_HOOK_STATE stalls
2026-11-03 15:49:16 -08:00
Claude ad288dad4a CI: no release build on a pull request
The release job (R8) is the slowest; a pull request is tried with the
build job's debug APK. main, v* tags and manual runs still build it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSpDnDnJUjH5xnnnwz
2026-11-03 23:30:23 +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
Neo 06f6d8b878 Merge pull request #17 from D-Modem/claude/project-thread-m64hjq
Fix the Apple USB Modem not starting (D-Modem update)
2026-11-03 03:45:29 -08: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
Neo 12ab872d63 Merge pull request #16 from D-Modem/claude/project-thread-m64hjq
Support the Apple USB Modem, on the latest D-Modem
2026-11-03 00:59:11 -08: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
Neo 49e3eb11e1 Merge pull request #15 from D-Modem/claude/project-thread-tc183j
Find dmodemd's sources in D-Modem-RE's frontend/dmodemd
2026-10-31 19:18:40 -07:00
Neo cb0d1c6cd9 Merge pull request #14 from D-Modem/claude/project-thread-hdz9ld
CI: move actions to their Node 24 versions
2026-10-31 19:03:58 -07:00
Claude 0623a656db Find dmodemd's sources in D-Modem-RE's frontend/dmodemd
D-Modem-RE moved dmodemd/ to frontend/dmodemd/ (D-Modem/D-Modem#49).
DMODEM_RE_DMODEMD is that directory, or dmodemd/ in a tree from before
the move, so the submodule can be bumped whenever.  Its build directory
is still d-modem-re/dmodemd (the iOS package's library path).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSnYKZ4hXc7DHCsuMA
2026-11-01 02:01:59 +00:00
Claude 4b12deab91 CI: move actions to their Node 24 versions
GitHub warns that Node 20 actions are deprecated. checkout v6, cache
(and cache/restore, cache/save) v5, setup-java v5, setup-node v6,
upload-artifact v7, gradle setup-gradle v5 (v6 defaults to a proprietary
cache provider).

setup-swift has no Node 24 release yet: the DModemKit test uses the
runner image's Swift instead (6.4 on ubuntu-24.04; the package needs
tools 5.9).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
2026-11-01 01:51:35 +00:00
Neo 52ac4a4b21 Merge pull request #13 from D-Modem/claude/project-thread-hdz9ld
CI: cache apt and Homebrew downloads
2026-10-31 18:38:02 -07:00
Claude aa3e40e185 CI: key the package caches on the runner image
ImageOS and ImageVersion are the runner's environment variables, not the
workflow's env context, so ${{ env.ImageVersion }} was empty and the
cache key never changed with the image. Build the key in the shell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
2026-11-01 01:25:21 +00:00
Claude db3c98fd6e CI: cache apt and Homebrew downloads
Package installs sometimes stall on GitHub's runners. A local action
(.github/actions/apt, and .github/actions/brew where macOS builds) caches
the downloaded packages, and apt's package lists with them, keyed on the
runner image and the package list. A cache hit installs offline; a miss
installs as before, with retries and timeouts, and saves the cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
2026-11-01 01:11:52 +00:00
Neo ed1fcd3079 Merge pull request #12 from D-Modem/claude/project-thread-x9hagk
Android signing from CI's secrets
2026-10-31 09:52:59 -07:00
Claude 772cdf3c9a Android signing from CI's secrets
The debug and release signing configs take a PKCS12 keystore from
ANDROID_KEYSTORE_FILE and its password, alias and key password (the
store's if empty) from the environment; without them debug builds keep
the SDK's debug key and release builds stay unsigned. CI decodes
ANDROID_KEYSTORE_BASE64 into that file: the build job with the
repository's (debug) secrets, a new release job (assembleRelease,
bundleRelease) with the protected release environment's on main and v*
tags, the debug key on a pull request. Fork pull requests, with no
secrets, build as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRuUkndpo3FJrWFe84
2026-10-31 16:36:20 +00:00
Neo e95641e5a1 Merge pull request #11 from D-Modem/claude/project-thread-wo92ay
Rename the Android app to org.dmodem.app.android
2026-10-31 06:21:32 -07:00
Claude 24525a0d17 Rename the Android app to org.dmodem.app.android
The application id, namespace and Kotlin package of the Android app
are now org.dmodem.app.android (was com.neodesktop.dmodem), with the
JNI symbols (pty.c, jni.cpp's class name), ProGuard keeps, the USB
permission action, README and the generator scripts to match. The
shared Kotlin Multiplatform code moves to org.dmodem.app alongside it,
so the app now imports what it used to see as its own package.

The iOS bundle ids are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRipoddxponCaexwE4
2026-10-31 13:08:06 +00:00
Neo 12c04eb266 Merge pull request #10 from D-Modem/claude/project-thread-iw8j9d
CI: run the Apple job on macos-latest
2026-10-31 05:02:36 -07:00
Claude 2eaed3a344 CI: the macOS jobs on macos-latest
Pinned images (macos-14, macos-15) are retired on GitHub's schedule;
macos-latest follows the current one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRSUHzMG7AJLUWME6d
2026-10-31 11:44:33 +00:00
Neo cc8015963c Merge pull request #9 from D-Modem/claude/project-thread-jr548g
Update D-Modem core to latest main
2026-10-31 02:24:09 -07:00
Neo 393a085e0b Merge pull request #8 from D-Modem/claude/project-thread-lf4nuy
AT command reference in the app
2026-10-31 02:19:10 -07: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
Neo 410cfbc005 Merge pull request #4 from D-Modem/claude/project-thread-kw1hfz
Caller ID in the incoming call popup; CI uploads the APK unzipped
2026-10-31 02:09:05 -07:00
Claude 37a4ac710d AT command reference in the app: Settings, AT commands, and the terminal's menu
D-Modem-RE's A5 AT command manual (docs/at_commands.pdf, merged in
D-Modem/D-Modem #26) bundled in the assets and shown in the app: its
pages rendered with PdfRenderer, one under another, with a zoom, or
opened in the phone's PDF app (through the FileProvider, from the cache)
for its search and its contents' links.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVNHPWcCitx9W4sAfc
2026-10-31 09:06:07 +00:00
Claude ef52a3f580 Merge main into the caller ID branch
Keeps main's V_CVM -> VCVM settings migration next to the new callerId
setting, and takes main's d-modem-re pin, which already holds the
caller ID merge (D-Modem/D-Modem#15).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRQooB42bttmxqnS23Z
2026-10-30 21:39:38 +00:00
Neo 69e30fc1a9 Merge pull request #7 from D-Modem/claude/project-thread-ai22rg
Mobile calls: send +MS=VCVM (V.cvm's new name)
2026-10-30 08:40:57 -07:00
Claude 2ca383afd7 Settings: qualify CELL_VCVM in SettingsStore
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUhzHK9FsNkkr7T6X3
2026-10-30 15:23:01 +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
Neo 4740d727d6 Merge pull request #6 from D-Modem/claude/project-thread-bb7ios
CI speed-ups, and the native engine tests on GoogleTest
2026-10-30 08:14:16 -07:00
Claude 0bcb0354ad native-test: the GoogleTest tests' functions documented (doc_check)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
2026-10-30 14:34:00 +00:00
Claude 903e861dcf native-test: the engine and C API tests on GoogleTest
engine_test.cpp's five calls are now four GoogleTest tests, each with a
dmodemd of its own, and c_api_test.c is c_api_test.cpp, seven tests
(its header still compiled as C, c_api_header.c). ctest registers each
test on its own (gtest_discover_tests). GoogleTest is the system's
(libgtest-dev, added to the native job) or else fetched, v1.14.0 as
D-Modem-RE has it. The USB line tests stay as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
2026-10-30 14:32:16 +00:00
Claude bd3fa40dfd CI: each commit run once, superseded runs cancelled, time limits, one ABI on the emulator
- Pushes run CI only on main; a branch's commits run as its pull
  request (each PR commit ran everything twice). workflow_dispatch to
  run a branch by hand.
- A newer commit on a pull request cancels the run before it.
- Every job has a time limit: a hung test had a build job running for
  over an hour, with GitHub's default 6 hours to go.
- The emulator job builds x86_64 only (-Pdmodem.abis, new: the ABIs of
  the native code and proot, all four by default); the build job still
  builds all four.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
2026-10-30 14:16:54 +00:00
Neo 1eb596d6d3 Merge pull request #5 from D-Modem/claude/project-thread-bb7ios
Fix CI failures on main: lost bytes in ByteQueue, flaky loopback tests, iOS build
2026-10-30 07:15:47 -07:00
Claude 11861248eb Apple CI: the iOS app built for arm64 simulators only, as #4 has it
The job now gets as far as the app, whose x86_64 simulator link fails:
the shared Kotlin's XCFramework has no x86_64 simulator slice. #4's
apple.yml, unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
2026-10-30 12:21:12 +00:00
Claude 299daabfb1 PeerLoopbackTest: the fake pipe delivers what was written before its close
A phone turning down a wrong PIN writes DENIED and closes. The test's
pipe returned -1 as soon as it saw the close, before reading what was
already queued, so the caller now and then missed DENIED, took the call
as unanswered (503) and aPinToCall waited out its 15 s for a 403. A
socket delivers the data before the end; the fake now does too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
2026-10-30 12:20:37 +00:00
Claude fe6ab528f1 iOS engine build: #4's configure and link fixes, as they are there
The Apple job now gets past the shared Kotlin tests and stops where #4
fixed it: CMAKE_MACOSX_BUNDLE=OFF for dmodemd's install rule, and
libresolv, SystemConfiguration and CoreFoundation for libre. The files
are #4's, unchanged, so the two merge cleanly in either order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
2026-10-30 11:58:35 +00:00
Claude 6ed4134a0e Apple CI: build the iOS app for the arm64 simulator only (the shared XCFramework has no x86_64 slice)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUcd5i5X7Q7F2QBNEF
2026-10-30 11:54:52 +00:00
Claude acf2a05ecb NativeModemTest: SIP's log at level 4, so a line comes before the test ends
The test looks for a "sip: " line through the log hook. Since dmodemd's
SIP moved to libre, nothing at level 3 is said without a call or a
registrar's answer, and the test stops the modem within a few ms, so the
emulator job failed on main. At level 4 the SIP thread names its
addresses ("SIP on ...") before sip::start returns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
2026-10-30 11:51:45 +00:00
Claude 688b99b2bb ByteQueue: a chunk sent as a timed read runs out is no longer lost
poll(ms) waited with withTimeoutOrNull { ch.receive() }. When a chunk
arrived just as the timeout fired, the cancelled receive had already
taken it from the channel, and kotlinx.coroutines drops an element
delivered to a cancelled receive. Readers that poll in short waits
(the fake fax line's modems, TransferIo under every job, the PPP
loopback's pumps) lost bytes now and then: a lost AT command or frame
became a 4-10 s stall, and on slower CI runners a failed test
(EcmTest, JobsTest.dialUpInternet on iOS, PppLoopbackTest).

The wait is now a select of the receive and a timeout, which can't both
win, so the chunk stays in the channel when the timeout does. The new
ByteQueueTest loses a chunk within the first hundred on the old code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
2026-10-30 11:51:45 +00:00
Claude 49904cc837 Swift packages: link SystemConfiguration (libre's srv.c reads macOS's DNS servers)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUcd5i5X7Q7F2QBNEF
2026-10-30 11:40:36 +00:00
Claude d5b1a41bb7 D-Modem-RE: main with caller ID merged (D-Modem/D-Modem#15)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUcd5i5X7Q7F2QBNEF
2026-10-30 11:29:30 +00:00
Claude 9f09c55578 Swift packages: link libresolv (libre's res.c uses res_ninit), as the app project does
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUcd5i5X7Q7F2QBNEF
2026-10-30 11:28:09 +00:00
Claude e4b300d090 iOS engine build: no app bundles (dmodemd's install rule has no BUNDLE DESTINATION)
On iOS CMake makes every executable an app bundle; D-Modem-RE's
dmodemd install(TARGETS ... RUNTIME) then fails at configure ("no
BUNDLE DESTINATION for MACOSX_BUNDLE executable").  The engine builds
only dmodem_engine, so CMAKE_MACOSX_BUNDLE=OFF.  (The Apple job had
not got this far lately: its Kotlin tests failed first.)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUcd5i5X7Q7F2QBNEF
2026-10-30 11:15:58 +00:00
Claude 3d7bd92b0b D-Modem-RE: D-Modem/D-Modem#15's head (its 32-bit test build fixed)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUcd5i5X7Q7F2QBNEF
2026-10-30 11:08:48 +00:00