mirror of
https://github.com/D-Modem/hardware.git
synced 2026-11-28 17:48:05 -08:00
d18fcbcca76ad216df13dcd99b2d9f44de4c5d5e
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
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.
Licence
Firmware: AGPL-3.0-only, or a commercial licence from Neo-Desktop. Hardware: CERN-OHL-S-2.0, or a commercial licence from Neo-Desktop. See LICENSING.md.
Description
Open source hardware modem designs. Supported by the D-Modem suite
https://d-modem.github.io/hardware
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%