Commit Graph
20 Commits
Author SHA1 Message Date
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
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
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
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
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
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 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
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 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 3e1b87be7e Line stick: routed PCB, fab files, renders; CI checks its DRC
Fully routed: DRC 0 errors, 0 unconnected, matches its schematic (the
2.5 mm isolation rule included). Gerbers and the JLC placement file in
fab/; the two Skyworks chips and the RJ11 are hand-fitted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-22 15:52:07 +00:00
Claude 5f7698895c firmware: phone-line stick (PS_BOARD=line), Si3056 DAA over USB
pico-serial Line's firmware: a USB front end for its Si3056 + Si3018 DAA,
the modem itself being D-Modem on the host (SPEC-L.md).

- Si3056 bring-up: 48 MHz MCLK from the USB PLL on GPIO21, reset in
  serial mode 0, PLL1 N = 125 / M = 256, 9600 Hz, 16-bit mode, line side
  powered up; FDT checked.
- si3056.pio: the RP2040 as the serial port's slave; every word through
  the portable frame engine (daa_frame.c) from the PIO's interrupt.
  Register accesses ride in secondary frames (LSB flag, then FC pin).
- USB: one vendor interface shaped like the SmartUSB56's (alt 1:
  isochronous OUT/IN at 1 ms, IN lengths set by the codec's clock, and an
  interrupt endpoint for events), vendor requests for rate, hook, flash,
  line monitor, register access, status, reset, UF2; 1209:0002.
- Host tests (test_line.c): the frame engine against a model of the
  Si3056's serial port, the sample streams, the device logic; mutations
  of the frame engine are caught. PROTOCOL.md "Line stick" documents it
  for the host's driver; CI builds it.

Not yet run on hardware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-22 11:23:50 +00:00
Claude 9316d5e60f Line stick: spec, netlist and schematic (Si3056 + Si3018 DAA)
pico-serial Line, a USB-C phone-line stick shaped like Apple's USB Modem:
a softmodem whose modem is D-Modem-RE on the host. SPEC-L.md covers the
architecture, the DAA (Si3056 for 9600 Hz sampling, so D-Modem's V.90
works), the USB interface, mechanics and compliance.

build_netlist.py and build_schematic.py take --variant line: the Si3056
datasheet's typical application (Figure 17) with a 1.25 A telecom fuse,
parts checked against JLCPCB stock. New footprints for the RJ11 and the
fuse; the symbol cache now keeps every board's symbols. ERC clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-22 11:04:45 +00:00
Claude 046b2a722f firmware: document every core function; add a check for it
tools/check_docs.py lists functions with no comment (public ones count
as documented by their header prototype); CI runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-18 21:14:17 +00:00
Claude ff1225a16b Merge branch 'worktree-agent-a368972070f3c05aa' into ccr-46ff3724-oyb4hv 2026-10-18 10:53:54 +00:00
Claude cddb085d4e firmware: Bluetooth for pico-serial W (BLE NUS, SPP, pairing)
PS_BOARD=w builds for the W board: the RM2 wired as on Pico W, with
BTstack polled from the main loop.

- Classic SPP server ("pico-serial", RFCOMM 1) with credit-based flow
  control; LE Nordic UART Service plus the pico-serial control service
  (line coding, outputs, inputs, mode, break, flow, credits, info).
- Port ownership (SPEC-W 4.6) in a new portable links layer
  (src/core/link.c): USB with its port open, else the first wireless
  link, else USB. The wired boards behave as before.
- Over SPP, DCD follows the phone's CONNECT / NO CARRIER.
- Pairing only in a 2-minute window (at power-up with no bonds, PAIR
  button, or a new USB request); hold PAIR 10 s to forget. Up to 4 bonds
  in flash, below the settings sector. Just Works with LE Secure
  Connections / SSP; data and control need an encrypted link.
- BT LED shows advertising, the pairing window or a connection; RD/SD go
  to the RM2's GPIOs.
- Host tests for the links layer; CI builds the W image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-18 10:53:28 +00:00
Claude 8f5d5d39a0 hardware: M2 screw-hole footprint for the W board; footprint script renamed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-18 10:52:08 +00:00
Claude 8408842086 hardware: W board placement, keep-outs and CI checks
build_pcb.py takes --variant w: the outline, RM2, USB-C, LEDs, pairing
button and screw holes come from the printed hood's script; the antenna
keep-out has no copper on any layer. The front half is placed as on the
hood board. CI now checks both boards. Routing follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-18 10:46:18 +00:00
Claude 5337ab65f0 hardware: lay out and route the 4-layer PCB
build_pcb.py builds the board from the schematic: outline, JLC rules,
net classes, placement on both sides, GND/+3V3 fanout, Freerouting 1.9
plus a rip-up finisher, then pours. DRC, ERC and schematic parity are
clean. Adds Gerbers, drill and JLC placement files, renders, docs, and a
CI workflow that checks ERC, DRC and parity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-18 09:54:09 +00:00
Claude 886d6742d9 Licensing: firmware under AGPL-3.0-only or a commercial licence
Same arrangement as the rest of D-Modem: LICENSING.md, the AGPL text in
firmware/COPYING, and an SPDX-License-Identifier line in every firmware
source file (and the generated pin header, via build_netlist.py). Notes
the third-party parts (Pico SDK, picotool, TinyUSB, rp2040js, the boot
ROM, KiCad symbols). The hardware's licence is not yet decided.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-18 00:37:17 +00:00
Claude d61e37ba5e Firmware v0.1: USB CDC to RS-232 with DCE/DTE auto-detect
firmware/: Pico SDK 2.3.1 + TinyUSB 0.21.0 (for CDC SERIAL_STATE).
- portable core (src/core): role detection from chip A STATUS / chip B
  INVALID with both chips off (3 x 50 ms samples, 1 s loss), modem-line
  mapping (DCE: host DTR -> DCD+DSR, RTS -> CTS; DTE: DTR/RTS through),
  hold-off at 3/4 buffer, FLOW_AUTO latch for 3-wire cables, SERIAL_STATE
  with one-shot error events, line coding with flagged adjustments,
  timed break, settings in flash with CRC
- RP2040 layer: GPIO with the transceivers' inversion, UART with IRQs and
  per-byte error flags, UART pins routed to the active chip, flash
  settings, watchdog; USB composite: CDC, the pico-serial control vendor
  interface (PROTOCOL.md) and Raspberry Pi's reset interface (picotool)
- GPIO numbers generated from the netlist (build_netlist.py now writes
  firmware/src/generated/board_pins.h)
- boards: hood (16 MB flash, crystal margin) and a Pico bench rig

Tests: 22 host tests on the core with a fake HAL (sanitizers; checked by
breaking the core on purpose), and an end-to-end test that boots the real
image in rp2040js: enumeration, detection, line mapping, data both ways,
SERIAL_STATE, vendor requests, DTE mode (20 checks). CI workflow runs
both plus builds for both boards. Not yet run on hardware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-17 19:15:50 +00:00