Commit Graph
14 Commits
Author SHA1 Message Date
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 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 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 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 d5f9e0bd2d Auto-baud: don't lock on a single character
A rate too fast can split one character (a lone CR, as Enter sends on
many terminals) into two "characters", which passed the 2-character
rule: a lone CR locked onto the wrong rate in 80% of trials. Now the
rate is chosen first, and the 2 characters are counted only at that
rate, so one character waits.

Tests: one-character cases (CR, LF, 0x55, 0xFF...) at every rate must
not decide; CR LF and CR CR must lock and decode at every rate. Docs
note that Enter (CR LF), or Enter twice on a CR-only terminal, is
enough to learn the rate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-18 01:36:52 +00:00
Claude d18fcbcca7 Firmware: learn the far end's baud rate (auto-baud)
As DCE the board now works out the computer's baud rate from what it
types, like a Hayes modem, so the host's speed setting doesn't have to
match the terminal's.

- PIO (autobaud.pio) times each low/high stretch on the RX pin while the
  UART keeps the pin.
- src/core/autobaud.c decodes those timings at every standard rate
  (110-230400) and picks the one they fit: bit length vs the shortest
  stretch, edges on bit boundaries, framing/parity, then the slowest rate
  whose edges score near the best.
- The characters it learned from ("AT") are decoded and passed on; the
  UART switches only once the line is idle.
- Re-learns on 3 framing errors in 2 s, AUTOBAUD_RESTART, or a new peer.
- Baud mode setting (saved, settings byte 7): auto (learn as DCE, host's
  as DTE), host, learn. Vendor requests 8 SET_BAUD_MODE and
  9 AUTOBAUD_RESTART; GET_INFO grows to 14 bytes with flags
  BAUD_LOCKED/BAUD_LEARNING and the baud mode.
- Tests: detector suite (every rate, 5 formats, jitter, rate error,
  glitches, mid-character starts), 5 new core tests, and the emulator
  test drives "AT\r" at 9600 and "ATI3\r" at 115200 onto GP1 with PIO
  stepped per CPU cycle.
- Docs: firmware README, PROTOCOL.md, SPEC.md 5.7 and 6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-18 01:18:45 +00:00
Claude 3de517fbdb Licensing: hardware under CERN-OHL-S-2.0 or a commercial licence
- hardware/LICENSE: CERN-OHL-S-2.0 text (SPDX license-list-data)
- SPDX lines on the hardware scripts and specs, and in the generated
  NETLIST.md and placement.md; the schematic's title block names the
  licence and the Source Location
- Notice under section 4: products display the Source Location; the hood
  has github.com/Neo-Desktop/pico-serial and CERN-OHL-S-2.0 debossed
  underneath, and SPEC.md asks for both on the silkscreen
- LICENSING.md: hardware section, Source Location, what's covered, the
  KiCad library exception, Available Components; notes the repository
  must be public before products are shared

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-18 00:42:01 +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
Claude 8caa62c535 Spec: wireless variant (BLE for iPhone, SPP for Android)
SPEC-W.md: Raspberry Pi RM2 (CYW43439) wired exactly like a Pico W so the
SDK's defaults work; its 35.5 x 18.5 mm antenna keep-out doesn't fit a
DB25 hood, so a separate small-case board is proposed. BLE Nordic UART
Service for data (generic iOS apps work, no MFi), a control service for
modem lines/line coding/mode, optional L2CAP channel; classic SPP server
so dmodem-android's existing Bluetooth client mode works unchanged, with
DCD-from-result-codes for Android's missing modem lines; pairing window,
bonding, LE Secure Connections; USB > first wireless link port ownership.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-17 18:21:38 +00:00
Claude 60fd087dee Hardware netlist: the whole board, generated and checked
hardware/netlist/build_netlist.py defines every part and connection
(SPEC 0.3) and writes a KiCad netlist, a readable net list and a JLC
parts list with LCSC numbers. It refuses to write if a pin is left
unaccounted for, a net has one pin or two outputs, an RS-232 line lacks
one driver and one receiver, or a power pin is off a supply; with KiCad
library checkouts it also checks pin names/numbers against KiCad's
symbols and pads against the footprints. The two RS-232 chips' pin
tables come from their datasheets (KiCad has no symbols for them).

81 parts (69 fitted, 6 LEDs + resistors DNP), 82 nets. Adds a 10k RUN
pull-up. Not yet imported into KiCad (not available here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-17 09:15:47 +00:00
Claude 4e4b9e865a Spec: record why the board has two RS-232 chips
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-17 09:07:16 +00:00
Claude 9853080538 Spec 0.3: everything from one LCSC order
- DCE transceiver: MaxLinear SP3238EEA-L/TR (the only 5T/3R with real
  LCSC stock); its STATUS works in shutdown, so auto-detect reads each
  chip's status output; TI TRS3238E from DigiKey as the fallback if its
  off-state leakage disappoints
- DTE: TI MAX3243EIDBR; USB-C: HRO TYPE-C-31-M-12
- DB25 MHDB25SS solder cup and MHDPPK25-K hood from LCSC (qty 1),
  hand-fitted; DigiKey parts kept as backups
- LCSC part numbers and stock for every line; samples to buy first

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-17 09:03:39 +00:00
Claude 3f3023fe7b Spec 0.2: DCE and DTE on one DB25, sourced parts
- both roles on one female DB25: a TRS3238E (DCE) and a MAX3243E (DTE)
  on the same pins, one powered at a time, the role auto-detected from
  what's attached (ROUT1B / INVALID still work in shutdown); DTE through
  a male-male gender changer
- parts checked stocked and buyable at qty 1 (DigiKey/LCSC), with second
  sources and the parts avoided and why
- solder-cup DB25 straddling the board, Adam Tech hood, target outline
- LEDs optional, not fitted by default

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
2026-10-17 08:50:03 +00:00
Claude f6373301dd Hardware spec: RP2040 USB-C to DB25 (DCE) serial adapter
Draft spec for a bare-RP2040 board (no Pico module): parts, RP2040
support circuit, USB-C, MAX3238E DCE wiring and DB25 pinout, firmware
signal mapping, dmodem-android compatibility, layout, open questions.

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