Commit Graph
94 Commits
Author SHA1 Message Date
Claude 7a24d40f02 docs: rewrite SPEC-WB.md in Simplified Technical English
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-14 10:30:42 +00:00
Claude 0b45910ff9 docs: rewrite SPEC-L.md in Simplified Technical English
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-14 10:29:51 +00:00
Claude 3b2d926864 docs: rewrite SPEC-W.md in Simplified Technical English
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-14 10:28:50 +00:00
Claude 5a5ebd3262 docs: rewrite SPEC.md in Simplified Technical English
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-14 10:27:42 +00:00
Claude de1536a470 docs: rewrite README, docs index, CONTRIBUTING and enclosure notes in Simplified Technical English
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-14 10:25:39 +00:00
Claude 219e1a8e79 docs: rewrite the netlist and placement notes in Simplified Technical English
The prose lines come from the generator scripts, so the scripts change too.
Nets, pins, parts and values do not change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-14 10:25:02 +00:00
Claude a23028606e docs: add the STE style guide and require it in CONTRIBUTING.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-14 10:23:51 +00:00
Neo af6506e501 Merge pull request #3 from D-Modem/claude/project-thread-9jie98
SPEC-S0 (ISDN S0 stick) and SPEC-FX (FPGA line board study)
2026-11-08 17:03:13 -08:00
Neo e1254d80f6 Merge pull request #12 from D-Modem/claude/project-thread-xqjct0
Contributor agreement and sign-off check
2026-11-08 17:03:05 -08:00
Claude ecc1c08a31 Contributor agreement check: Claude's commits on this repository's branches are exempt
As bbs: commits by Claude (noreply@anthropic.com) on a branch of the
repository itself are not checked; on a fork's pull request they still are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSQaj3bYPQDZU4qf9U
2026-11-08 11:42:26 +00:00
Claude e338cbb5d6 Contributor agreement: copyright assigned to D-Modem
Contributors now assign the copyright in their contributions to D-Modem
(the D-Modem organization, its rights held by its owner on its behalf),
with a licence back to them, and an exclusive licence where an
assignment doesn't take effect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSQaj3bYPQDZU4qf9U
2026-11-07 11:10:49 +00:00
Claude 1586f88386 Contributor agreement: CONTRIBUTING.md and a sign-off check on pull requests
Each contribution comes with the suite's contributor agreement (the one
bbs, menu and brand already use): the contributor keeps the copyright
and licenses it to the D-Modem Authors under the repository's licence
and any other terms, commercial ones included.  Each commit's
Signed-off-by line says they agree.  The new workflow checks for that
line on every commit of a pull request, except pull requests from the
owner, the organization's members and bots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSQaj3bYPQDZU4qf9U
2026-11-07 10:58:30 +00:00
NeoandClaude 06e2affc12 README: link the website (#11)
Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-05 18:21:37 -08:00
NeoandClaude dc1c24e3f4 Add the site, with a protocol reference made from the headers (#10)
firmware/tools/protocol_ref.py writes docs/protocol-reference.md from
protocol.h, line_proto.h and wb_proto.h: every request, constant and
enum, and each wire struct's fields with their offsets and sizes (checked
against the headers' _Static_asserts). The firmware workflow and the new
Pages workflow fail if the page is out of date.

The site is docs/, the README, the specs and the firmware, hardware,
enclosure and net list pages (extra.site_include), on brand's theme.


Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-05 18:01:00 -08:00
Neo 968bf76d28 Merge pull request #9 from D-Modem/claude/project-thread-6n8z9z
README: add the header banner
2026-11-05 17:36:15 -08:00
Claude f8d6ec270d README: add the header banner
The 1280x320 banner from D-Modem/brand (banner/hardware@2x.png), kept at
.github/banner.png.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR7XmhWoFbzJFFFqde
2026-11-06 01:32:15 +00:00
Neo c9f1d09502 Merge pull request #8 from D-Modem/claude/project-thread-cwmrpa
Landing-page README, current names, CI skips doc-only changes
2026-11-05 02:52:58 -08:00
Claude fd98296efe README as a landing page; current names; CI skips doc-only changes
The README now introduces all four boards (it said spec only and listed
only the W variant), with a quick start, a docs index (docs/README.md)
and the suite's repositories. D-Modem-RE and dmodem-android become
D-Modem and the D-Modem app, as in brand's naming guide. The firmware
and hardware workflows skip changes to their hand-written Markdown; the
generated NETLIST*.md and placement.md files still trigger them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn
2026-11-05 10:40:58 +00:00
Neo e41e327c21 Merge pull request #7 from D-Modem/claude/project-thread-tc183j
Docs: dmodemd's sources are under frontend/ now
2026-10-31 19:18:44 -07:00
Claude 4c9e80d0b5 Docs: D-Modem-RE's dmodemd and asterisk are under frontend/ now
D-Modem/D-Modem#49 moved the programs built on libdmodem into frontend/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSnYKZ4hXc7DHCsuMA
2026-11-01 02:02:10 +00:00
Neo e6f2f6313e Merge pull request #6 from D-Modem/claude/project-thread-hdz9ld
CI: move actions to their Node 24 versions
2026-10-31 18:58:46 -07:00
Claude e74e4fd9fe 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).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
2026-11-01 01:51:37 +00:00
Neo dabe62a5ad Merge pull request #5 from D-Modem/claude/project-thread-hdz9ld
CI: key the apt cache on the runner image
2026-10-31 18:38:18 -07:00
Claude 43a67aaa4e 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:23 +00:00
Neo f6a9362344 Merge pull request #4 from D-Modem/claude/project-thread-hdz9ld
CI: cache apt downloads
2026-10-31 18:24:48 -07:00
Claude e9bc87fc5e 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:54 +00:00
Claude d1440b0c70 SPEC-S0 0.2: software S0 on the RP2040, no ISDN chip
Sydney chose the software S0 for rev A. The line is driven by a
74LVC2G125 through the transmit transformer and read by a TLV3202
against a PWM-set threshold; PIO moves the bits, core 1 runs I.430
(clock and frame recovery, the TE's two-bit offset, D-channel access,
activation), core 0 USB and HDLC. 96 MHz gives 500 cycles a bit. Adds
bench test signals and a conformance plan; the XHFC-1SU becomes the
fallback. SPEC-FX points at the new sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTei4CQRzN1vNsNV5s
2026-10-30 22:28:44 +00:00
Claude acc26a1755 SPEC-FX: an FPGA line board for ADSL or ISDN, feasibility study
ECP5-25F with a USB 2.0 HS ULPI PHY, an AD9866 front end, a THS6222
line driver and a Si5351 sample clock; one gateware streams samples
for ADSL, ISDN U and WB modes run in D-Modem on the host, plus a soft
S0 port in logic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTei4CQRzN1vNsNV5s
2026-10-30 22:23:27 +00:00
Claude f8671a0906 SPEC-S0: CAPI through dmodem-capid, above the line backend
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTei4CQRzN1vNsNV5s
2026-10-30 14:35:50 +00:00
Claude 98ea1a3b40 SPEC-S0: an ISDN S/T (S0) stick, draft 0.1
An XHFC-1SU behind the RP2040: B-channels over its PCM bus in PIO,
the D-channel's HDLC frames over SPI, TE and NT mode, switchable
terminations. The USB interface follows the Line stick's; LAPD, Q.931
and CAPI stay in dmodemd. A software S0 in PIO is the analysed fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTei4CQRzN1vNsNV5s
2026-10-30 14:35:03 +00:00
Neo 2ddc0111f3 Merge pull request #2 from D-Modem/claude/project-thread-v0cc83
Name the D-Modem Authors as the copyright holder
2026-10-29 05:20:35 -07:00
Claude 51aab8c70b Name Neo-Desktop as the commercial licence contact
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUwD2JJ5d6fgHmpVTw
2026-10-29 12:19:01 +00:00
Claude 838afca480 Name the D-Modem Authors as the copyright holder
Copyright lines, licensing texts and metadata named Neo-Desktop; they
now name the D-Modem Authors, and the licensing contact points at the
D-Modem organisation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUwD2JJ5d6fgHmpVTw
2026-10-29 11:14:57 +00:00
Neo 7b3098f13b Merge pull request #1 from D-Modem/claude/project-thread-v0cc83
Point the source location at github.com/D-Modem/hardware
2026-10-29 03:00:34 -07:00
Claude 46d15f0b86 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:42 +00:00
Claude 5977662c5b WB stick: routed PCB, fab files, renders; CI checks it
Fully routed, DRC 0 errors / 0 unconnected with schematic parity, ERC
clean. Gerbers and the JLC placement file in hardware/kicad/fab/; the
RJ11 is hand-fitted. CI now regenerates and checks all four boards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 11:53:21 +00:00
Claude 0cb6224bee wb: the codec's input network on top beside its inputs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 11:50:03 +00:00
Claude 662b40ea24 wb: screw to one side, LEDs forward, test pads in the middle
Opens the board's centre between the codec and the RP2040 for routing.
The WB shell's boss and light tubes follow (stick.py --variant wb).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 10:48:32 +00:00
Claude a66c85e428 wb: codec turned to face the RP2040, DVSS tied to its exposed pad
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 09:59:02 +00:00
Claude 5a005c4d14 SPEC-WB: rates measured on the simulated pair
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 09:58:37 +00:00
Claude 3cf4e4997e SPEC-WB: transmit level and replica capacitor as built
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 09:41:19 +00:00
Claude 5e2a81df06 Merge branch 'worktree-agent-a4506ef221c3629cc' into ccr-46ff3724-oyb4hv 2026-10-27 09:39:51 +00:00
Claude 82216f453d firmware docs: the WB stick (PROTOCOL.md, README)
PROTOCOL.md "WB stick": finding it (1209:0003, subclass 0x57, the Line
stick's endpoints and Microsoft OS 2.0 set; 480-byte packets), the
samples (mono S16, the hybrid or the line channel), the requests,
loopbacks, levels, the structures, and the codec's clocks per rate.

README: the board in the build list and layout, a "WB stick" section
(clocks, bring-up, the hybrid's routing, frames, LEDs, tests), and two
findings for the spec: the differential drive on AVDD gives about +3 dBm
for a full-scale sine (+4.8 dBm where it clips), short of SPEC-WB's
+8 dBm, since SLAA557 allows a differential headphone load only on AVDD;
and the A-LDO's 1.77 V is just under the 1.8 V SLAA557 wants for the
0.9 V common mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 09:39:00 +00:00
Claude bce166e430 wb: wait for the MicPGAs' gain flags too before calling the codec up
SLAA557: the PGA soft-steps from mute after power-up; page 0 register
36 D7/D3 say when it has reached the programmed gain. The bring-up now
waits for them with the ADCs' power flags (200 ms at most), and a test
covers a codec whose MicPGAs never get there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 09:39:00 +00:00
Claude 6d7a5dcda5 firmware: the wideband stick (PS_BOARD=wb), TLV320AIC3204 over USB
pico-serial WB (SPEC-WB.md): the Line stick's USB device in front of a
TLV320AIC3204 codec at 96 kHz (48 and 192 kHz for tests), USB 1209:0003.

- Clocks (SPEC-WB 4): MCLK is the 12 MHz crystal on GPIO21 (GPOUT0);
  the codec's PLL P=1 R=1 J.D=8.1920 makes 98.304 MHz; NDAC=NADC=
  MDAC=MADC=4; 96 kHz: DOSR=AOSR=64, PRB_P7/PRB_R7, BCLK N=4 (6.144
  MHz, 64 a frame); 192 kHz: 32, PRB_P17/PRB_R13, N=2; 48 kHz: 128,
  PRB_P1/PRB_R1, N=8. The codec is the I2S master, 32-bit words.
- Bring-up (src/core/wb_codec.c) in SLAA557's order: pin and software
  reset, PLL, dividers, I2S, INT1 on MFP5, weak AVDD off then the A-LDO
  at 1.77 V, CM 0.9 V, the left DAC's + and - to HPL and HPR (one DAC,
  a differential drive), drivers up and their gain flags waited for,
  then the DAC and both ADCs, their flags waited for.
- The hybrid in the left MicPGA: + IN1L, IN1R; - IN2R, IN3R; 10 k each
  (P1 R52=0x41, R54=0x14): line minus replica. The right MicPGA takes
  the line alone (IN2R - IN1L, 20 k); the replica alone can't be routed
  differentially.
- I2S slave in PIO (src/wb/i2s.pio), full duplex, DMA ping-pong blocks of
  32 frames into src/core/wb_audio.c; out of step, it stops and is
  restarted (counted).
- Requests (src/core/wb_proto.h): info, status (peaks, codec flags),
  rate, carrier LED, TX gain (DAC volume), RX gain (MicPGA), input
  channel, firmware and codec loopbacks, codec register read/write by
  page, reset, UF2. Mono S16 packets up to 240 samples (480 bytes).
- test_wb.c: the clocks re-derived from the registers and checked
  against SLAA557's limits for every rate, the MicPGA bits against the
  netlist, the bring-up order and timeouts, packet sizing, the samples
  path, the requests. Each of 15 deliberate breaks is caught.
- CI builds PS_BOARD=wb and runs test_wb.

All five boards build (SDK 2.3.1, TinyUSB 0.21.0); host tests and
check_docs pass. Nothing has run on a WB board yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 09:37:55 +00:00
Claude 7a0136ee52 firmware: share the sticks' USB device and sample streams
Ahead of the wideband stick, which needs the same USB device and the
same sample streams as the Line stick:
- src/core/sstream.c: the two sample streams (head start, under- and
  overruns, counters), out of daa_frame.c; line_stream_t is now the
  frames plus an sstream_t.
- src/stick/usb_stick.c (was src/line/usb_line.c): descriptors, class
  driver and Microsoft OS 2.0 set, with the stick's numbers and requests
  behind stick.h; the Line stick's part is src/line/line_stick.c. The
  descriptors are the same bytes as before.
- sfifo.h: SFIFO_SIZE can be set per build.

Line builds; host tests (test_line unchanged but for field paths) and
check_docs pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 09:22:05 +00:00
Claude 8114a23eef wb: PCB placement and rules, shell variant
build_pcb.py --variant wb: the Line stick's USB end, the transformer
across a 4 mm isolation gap, codec and hybrid behind it; ground vias in
the codec's exposed pad. stick.py --variant wb: LINK/DATA labels and
the transformer in the collision check (out-wb/).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 09:15:45 +00:00
Claude d3c7166a9a schematic: wb variant (TLV320AIC3204, PE-65848 footprint and symbol)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 09:07:45 +00:00
Claude 4b5451a195 netlist: wb variant, the wideband bare-pair stick (SPEC-WB)
TLV320AIC3204 codec (I2S on GP2-5, I2C1 on GP6/7, MCLK on GP21),
headphone drive through 60.4 R into a Pulse PE-65848 transformer,
a x10 replica arm subtracted in the codec's mixer, 0.5 uF/500 V DC
block in the split line winding, sidactor and TeleLink fuse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 09:05:45 +00:00
Claude c0405e1d41 SPEC-WB: verified parts; run at 96 kHz (codec ADC passband 37 kHz)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-27 09:00:31 +00:00