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

pico-serial

A USB-C to DB25 RS-232 adapter built on a bare RP2040. One female DB25 works as either a modem (DCE, plugs straight into a computer) or a computer port (DTE, via a male-male gender changer), auto-detected. Made so a phone running dmodem-android can plug straight into a vintage computer's serial port.

Status: spec only. See SPEC.md.

Wireless variant (Bluetooth LE for iPhone, classic Bluetooth serial for Android): see SPEC-W.md.

S
Description
Open source hardware modem designs. Supported by the D-Modem suite
https://d-modem.github.io/hardware
Readme
16 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 49.5%
Python 35%
Common Lisp 11.7%
TypeScript 1.8%
CMake 1.7%
Other 0.3%