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>
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
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
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
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
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
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
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
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
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
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
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
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
The stick is now USB 2.1 with a BOS descriptor whose Microsoft OS 2.0
platform capability names vendor request 0x4D (LP_REQ_MS_OS_20). Windows
reads the descriptor set with it (device, IN, wIndex 7). The set gives
both interfaces the compatible ID WINUSB and a DeviceInterfaceGUID:
- the line interface gets D-Modem's {0463C853-BB62-4057-9E76-D14B0E3ACAFD},
the GUID its dmodem-usb.inf uses;
- the reset interface gets the Pico SDK's, so picotool works too.
dmodemd --usb (libusb) and picotool then work on Windows with no INF and
no Zadig.
Checked: the line firmware builds (SDK 2.3.1, TinyUSB 0.21.0), the BOS and
descriptor set parse as expected from the built ELF, host tests and
check_docs pass. Not yet tried on a real Windows host.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014mJrc5ZMECC5SzurFsvyAn
- Clearance to another net is the larger of the two nets' classes, as in
KiCad's DRC (it used the routed net's own: 0.25 mm next to TIP/RING).
- A failed rip-up restores every track as it was before it, rebuilt from
a record: undoing one level re-added its own ripped tracks over routes a
deeper level had made (shorts), and re-adding removed objects across
nested levels crashed KiCad's Python binding.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
The finishing router ignored rule areas: on the Line board it ran tracks
through the isolation gap and a screw's keep-out. It now treats every
no-track / no-via rule area as blocked (the hood and W boards had none of
their tracks there).
TIP, RING and the bridge's + (now LINE_*) keep 0.4 mm clearance; the
Si3018's low-voltage side (LS_*) gets 0.25 mm, so the line side can route.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
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
enclosure/stick.py makes the 82 x 24 x 20 mm stick: RJ11 flush with one
end, USB-C in an overmould opening at the other, two LED light tubes, one
M2 screw on the USB side of the isolation gap; it checks the fit and
writes the board outline and placement.
build_pcb.py --variant line places the board on that outline: the line
side (no planes) toward the RJ11, a 2.5 mm isolation gap that only the four
Y2 capacitors cross, the Si3056 and the RP2040 core toward USB-C. A DRU rule
holds 2.5 mm between line and USB-side copper. Fanout vias now respect
every no-via rule area (unchanged for the hood and W boards).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
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