Commit Graph
167 Commits
Author SHA1 Message Date
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 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 e0a0396eb7 CI: upload the debug APK even when a test fails
The APK is built before the unit tests run, but the upload was skipped
whenever any test failed (PppLoopbackTest has been timing out on the
runners), so there was no APK to try on a phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVHnHRzok8eDG2idnz
2026-10-29 13:05:07 +00:00
Claude 4b08994783 proot build: fall back to Debian's copy of talloc when samba.org is down
samba.org has been timing out and returning 504s, which fails
native-proot/build.sh and with it the APK build and LinuxUiTest. Try
Debian's copy of the same tarball after it; the SHA-256 check still
covers whichever one is downloaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVHnHRzok8eDG2idnz
2026-10-29 12:40:26 +00:00
Claude d435187ee5 New launcher icon: rainbow RJ11 jack with the D-Modem carrier
Replace the blue handset-over-a-box icon with an adaptive launcher icon
from D-Modem/brand: the front of an RJ11 jack, its outline striped in
the six CD Rainbow Book colours like the org mark, with the white
sine-to-square carrier inside, on the brand navy.

- mipmap-anydpi-v26/ic_launcher(_round): adaptive icon (minSdk is 26,
  so no PNG fallbacks are needed)
- drawable/ic_launcher_foreground: the jack and carrier
- drawable/ic_launcher_monochrome: one-colour layer for themed icons
- values/ic_launcher_background: brand navy

Notification small icons still use ic_modem.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVHnHRzok8eDG2idnz
2026-10-29 12:12:52 +00:00
Neo 3fbd831c76 Merge pull request #1 from D-Modem/claude/project-thread-v0cc83
Point the submodule and links at the D-Modem organisation
2026-10-29 03:00:26 -07:00
Claude f0abbcc59b CI: read the D-Modem submodule with the DMODEM_TOKEN secret
Renamed from DMODEM_RE_TOKEN, now that D-Modem-RE is D-Modem/D-Modem.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUwD2JJ5d6fgHmpVTw
2026-10-29 09:59:16 +00:00
Claude f632959ef9 Point repository references at the D-Modem organisation
The repositories moved from Neo-Desktop to the D-Modem GitHub
organisation: D-Modem-RE is now D-Modem/D-Modem, pico-serial is
D-Modem/hardware, modemmenu (PBX-Modem) is D-Modem/menu, bbs-sec is
D-Modem/bbs and go3270-sec is D-Modem/go3270.  Update links, module
paths, submodule URLs and source-location strings to match.  Copyright
notices still name Neo-Desktop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUwD2JJ5d6fgHmpVTw
2026-10-29 09:02:38 +00:00
Claude 1627a1f3e5 Line settings: USB, Bluetooth, Wi-Fi / Cell and More buttons filter the line menu
Each kind's button shows only its lines in the menu (USB's one line is
picked at once); More shows every line.  The kind of the line saved is
lit at first.  The page's duplicate Line heading is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-28 09:55:38 +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 9ea558f09e Calls: an Answer only while one rings; the call's alerts in the log
Phantom incoming calls were reported with nothing in the log to say
where they came from. The log now says when the app shows a call
ringing in (and from what) and when it's gone, and when the call's
notification opens the app. And an Answer (or answer as fax) intent
Android hands back later, as when the app comes back from Recents,
does nothing with no call ringing: it went off hook for no call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-28 00:19:15 +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 1a467f7ac0 Native builds: D-Modem-RE's usb_wb.cpp (the pico-serial WB stick)
usb_line.cpp now calls into it; without it the JNI library didn't link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 23:43:39 +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 03827fac57 The app fades in as it starts (400 ms)
From the window's background, once: not again when it's recreated (as
when turned). Dialogs, as a ringing call's, are their own windows and
show at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 13:52:05 +00:00
Claude bcddbe5ee7 Tabs: a longer fade through (out in 100 ms, in over 300 ms)
The 180 ms fade wasn't seen on a phone: the new tab's first frame took
most of it. The old tab now fades out first and the new one in after,
eased.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 13:46:28 +00:00
Claude cab24b18d7 Transitions: tabs fade, Settings' pages slide in and out
A quick fade (180 ms in, 90 ms out) from one tab to the next. Settings:
into a page, it fades in from a twelfth to the right; back, the menu
fades in as the page fades and slides that far out to the right, over
it (220 ms).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 13:38:22 +00:00
Claude e18a3df8e5 Settings' menu as cards: an icon tile, the title in the accent colour
Each page a rounded card on the raised surface, its icon on a tile of
the background's colour, the title in the primary colour with what it's
set to beneath, the cards spaced apart; a Settings title over them, as
each page has its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 13:32:33 +00:00
Claude 4d24662752 Comments back above the functions they describe
PeerLine's tone(), XYModem's readBlock() and TransferJob's protocols:
the older comment had a property between it and its function (or
described the next one too); each now sits above what it describes,
and the properties have their own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:32:42 +00:00
Claude 9915decc6d Comments for every function: the last batch; CI checks it
The UI tests, Gradle's script, the iOS app and the native test hosts
(batch 6 of 8, comment lines only) and the checker's own. Every
function in the app is now documented; android.yml's docs job runs
tools/doc_check.py first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:23:54 +00:00
Claude ebbb5eb4a4 Comments for every function: the app's code and tests, batch 3 of 8
Comment lines only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:18:09 +00:00
Claude 96fe07be7e Comments for every function: the shared code, batch 7 of 8
Comment lines only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:17:47 +00:00
Claude d58905f2f2 Comments for every function: the app's code and native layer, batch 1 of 8
Comment lines only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:17:37 +00:00
Claude 6ea650bd84 Comments for every function: the app's code, batch 2 of 8
Comment lines only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:16:56 +00:00
Claude 12d7ae3693 Comments for every function: the app's tests, batch 5 of 8
Comment lines only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:16:38 +00:00
Claude 9b4debf4f5 Comments for every function: the first two batches; doc_check.py stricter
The tests' and shared code's functions in two of eight batches (comment
lines only). doc_check.py skips only lines of annotations alone, so a
function under an annotated property (@Volatile var) needs its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:16:27 +00:00
Claude 84a7ff0a15 tools/doc_check.py: every function documented
A comment on the line just above each function (or above its
annotations) in Kotlin, Swift and shell, a docstring or comment in
Python; C and C++ through D-Modem-RE's own check. The README says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:13:10 +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