From de1536a4702bb8bfcda94a1b192934d690c50216 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 10:25:39 +0000 Subject: [PATCH] docs: rewrite README, docs index, CONTRIBUTING and enclosure notes in Simplified Technical English Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6 Signed-off-by: Claude --- CONTRIBUTING.md | 5 ++- README.md | 33 +++++++------- docs/README.md | 4 +- hardware/enclosure/README.md | 85 +++++++++++++++++++----------------- 4 files changed, 68 insertions(+), 59 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a6463aa..6d28dd1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,8 @@ # Contributing -Contributions are welcome: issues, fixes and features alike. Before -sending a change, build what it affects and run its tests (the firmware's in [firmware/README.md](firmware/README.md)). +We welcome contributions: issues, fixes and features. Before you send a +change, build the parts that it changes and run their tests. For the +firmware tests, see [firmware/README.md](firmware/README.md). Write all technical documentation in ASD-STE100 Simplified Technical English. Follow docs/STYLE.md. diff --git a/README.md b/README.md index f4786c8..8704dad 100644 --- a/README.md +++ b/README.md @@ -5,21 +5,22 @@ Open RP2040 boards for the D-Modem suite: serial adapters and phone-line USB sticks. -pico-serial connects a phone or computer running [D-Modem](https://github.com/D-Modem/D-Modem) -or [the D-Modem app](https://github.com/D-Modem/app) to vintage serial -ports and to real telephone lines. Every board is a bare RP2040 with its -own flash, crystal and regulator: no Pico module. +pico-serial connects a phone or computer to vintage serial ports and to +real telephone lines. The phone or computer runs [D-Modem](https://github.com/D-Modem/D-Modem) +or [the D-Modem app](https://github.com/D-Modem/app). Each board has a bare +RP2040 with its own flash, crystal and regulator. The boards do not use a +Pico module. | Board | What it is | Spec | | --- | --- | --- | -| pico-serial | USB-C to DB25 RS-232. One female DB25 works as a modem (DCE) or a computer port (DTE), detected automatically | [SPEC.md](SPEC.md) | -| pico-serial W | The same adapter with Bluetooth: BLE for iPhone and iPad, classic Bluetooth serial for Android | [SPEC-W.md](SPEC-W.md) | -| pico-serial Line | A USB modem stick for a real telephone line: a Si3056 DAA, the modem itself being D-Modem on the host | [SPEC-L.md](SPEC-L.md) | -| pico-serial WB | A wideband stick for bare copper pairs, sampling at 96 kHz for D-Modem's V.wb mode | [SPEC-WB.md](SPEC-WB.md) | +| pico-serial | USB-C to DB25 RS-232. One female DB25 operates as a modem (DCE) or as a computer port (DTE). The board finds the mode automatically | [SPEC.md](SPEC.md) | +| pico-serial W | The same adapter with Bluetooth: BLE for iPhone and iPad, and classic Bluetooth serial for Android | [SPEC-W.md](SPEC-W.md) | +| pico-serial Line | A USB modem stick for a real telephone line, with a Si3056 DAA. The modem is D-Modem on the host | [SPEC-L.md](SPEC-L.md) | +| pico-serial WB | A wideband stick for bare copper pairs. It samples at 96 kHz for the V.wb mode of D-Modem | [SPEC-WB.md](SPEC-WB.md) | Status: the specs are drafts. CI builds the firmware and runs its tests -on the host and in an RP2040 emulator; the boards are generated for -KiCad 9. Nothing has run on a real board yet. +on the host and in an RP2040 emulator. A script makes the board files for +KiCad 9. At this time, nothing has run on a real board. ## Quick start @@ -28,14 +29,14 @@ cmake -S firmware -B firmware/build -G Ninja # -DPS_BOARD=hood, w, line, wb or ninja -C firmware/build # -> firmware/build/pico-serial-hood.uf2 ``` -The board files are generated from `hardware/netlist/build_netlist.py`. +The script `hardware/netlist/build_netlist.py` makes the board files. ## Documentation -The documentation is also a website, [d-modem.github.io/hardware](https://d-modem.github.io/hardware/), with reference pages made from the code. +The documentation is also a website, [d-modem.github.io/hardware](https://d-modem.github.io/hardware/). The website has reference pages that a script makes from the code. -- [docs/](docs/README.md): an index of every spec and guide -- [Firmware](firmware/README.md): building, flashing, Bluetooth, tests +- [docs/](docs/README.md): an index of all specs and guides +- [Firmware](firmware/README.md): how to build and flash, Bluetooth, tests - [Control protocol](firmware/PROTOCOL.md): the USB vendor interface for host apps - [Hardware](hardware/README.md): netlist, schematic, PCB, enclosures @@ -46,14 +47,14 @@ The documentation is also a website, [d-modem.github.io/hardware](https://d-mode | [D-Modem](https://github.com/D-Modem/D-Modem) | The open V.92 softmodem: dmodemd, libdmodem and the Asterisk, FreeSWITCH and ARI modules | | [app](https://github.com/D-Modem/app) | The D-Modem app for Android and iOS: a dial-up modem on a SIP call | | [hardware](https://github.com/D-Modem/hardware) | pico-serial: RP2040 serial adapters and phone-line USB sticks | -| [menu](https://github.com/D-Modem/menu) | modemmenu: the login and menu dial-up callers reach | +| [menu](https://github.com/D-Modem/menu) | modemmenu: the login and the menu that dial-up callers get to | | [bbs](https://github.com/D-Modem/bbs) | A bulletin board for telnet, SSH, TN3270 and modem callers | | [go3270](https://github.com/D-Modem/go3270) | A Go library for 3270 terminal servers, used by bbs | | [brand](https://github.com/D-Modem/brand) | Logos, colours, type and the naming guide | ISDN S0 stick (an ISDN basic rate S/T port for D-Modem, TE or NT): see [SPEC-S0.md](SPEC-S0.md). -FPGA line board (study: ADSL, ISDN U or S0 by gateware and host software): see [SPEC-FX.md](SPEC-FX.md). +FPGA line board (a study: ADSL, ISDN U or S0 through gateware and host software): see [SPEC-FX.md](SPEC-FX.md). ## Licence diff --git a/docs/README.md b/docs/README.md index 7bda0f9..7f2d145 100644 --- a/docs/README.md +++ b/docs/README.md @@ -9,9 +9,9 @@ ## Firmware -- [firmware/README.md](../firmware/README.md): build, flash, what it does, Bluetooth, automatic baud rate, tests, the Line and WB sticks +- [firmware/README.md](../firmware/README.md): how to build and flash, the functions, Bluetooth, automatic baud rate, tests, the Line and WB sticks - [firmware/PROTOCOL.md](../firmware/PROTOCOL.md): the control protocol for host apps -- [Protocol reference](protocol-reference.md): every request, constant and wire struct in the protocol headers, made from them (`firmware/tools/protocol_ref.py`) +- [Protocol reference](protocol-reference.md): all requests, constants and wire structs in the protocol headers. A script makes this page from the headers (`firmware/tools/protocol_ref.py`) ## Hardware diff --git a/hardware/enclosure/README.md b/hardware/enclosure/README.md index 678ecb9..bea61a4 100644 --- a/hardware/enclosure/README.md +++ b/hardware/enclosure/README.md @@ -2,64 +2,67 @@ # pico-serial W hood -A 3D-printed DB25 hood for the wireless board (see `../../SPEC-W.md` §2.2). +This is a 3D-printed DB25 hood for the wireless board (see `../../SPEC-W.md` §2.2). ```sh pip install cadquery # once python3 hardware/enclosure/w_hood.py ``` -It writes `out/` and refuses to if anything collides or any metal part -enters the RM2 antenna keep-out. +The script writes `out/`. If a part collides with a different part, or if a +metal part goes into the keep-out area of the RM2 antenna, the script stops +and does not write the files. | File | Use | |---|---| -| `out/hood-top.stl`, `out/hood-bottom.stl` | Send to the print service (MJF PA12 recommended) | -| `out/hood-top.step`, `out/hood-bottom.step` | The same parts as STEP, for services or CAD that prefer it | -| `out/assembly.step` | Hood, board, DB25, RM2, USB-C, screws together, for checking fit in any CAD viewer | -| `out/board-outline.dxf` | PCB outline and screw holes: import into KiCad as Edge.Cuts | -| `out/rf-keepout.dxf` | Antenna keep-out: no copper on any layer, no parts | -| `out/placement.md` | Positions the layout must use: RM2, USB-C, LEDs, button, holes, height limits | -| `out/*.svg` | Views for a quick look | +| `out/hood-top.stl`, `out/hood-bottom.stl` | Send these files to the print service (we recommend MJF PA12) | +| `out/hood-top.step`, `out/hood-bottom.step` | The same parts as STEP files, for services or CAD tools that use STEP | +| `out/assembly.step` | The hood, board, DB25, RM2, USB-C and screws together. Use this file to examine the fit in a CAD viewer | +| `out/board-outline.dxf` | The PCB outline and the screw holes. Import this file into KiCad as Edge.Cuts | +| `out/rf-keepout.dxf` | The antenna keep-out area: no copper on any layer, no parts | +| `out/placement.md` | The positions that the layout must use: RM2, USB-C, LEDs, button, holes, height limits | +| `out/*.svg` | Views for a quick examination | -All dimensions are parameters at the top of `w_hood.py`. Change a -parameter and re-run; the checks run again. +All dimensions are parameters at the top of `w_hood.py`. If you change a +parameter, run the script again. Then the script does the checks again. -**Hardware per hood:** -- 2 × Keystone 2400 thumbscrews (4-40 × 5/16″, DigiKey 36-2400-ND); +**Hardware for each hood:** +- 2 × Keystone 2400 thumbscrews (4-40 × 5/16″, DigiKey 36-2400-ND). - 3 × M2 × 10 pan-head self-tapping screws. -**Not yet printed.** Order one pair first and check: -- the flange fit; -- that the thumbscrews reach a real computer's jack posts; -- that your USB-C cable's plug seats fully. +**Not printed at this time.** Order one pair first. Then examine these items: +- The fit of the flange. +- The thumbscrews must engage the jack posts of a real computer. +- The plug of your USB-C cable must go fully into the receptacle. # pico-serial Line stick -The phone-line stick's shell (`../../SPEC-L.md` §7): about the length of a -disposable lighter, like Apple's USB Modem, with the RJ11 at one end and -the USB-C at the other. +This is the shell of the phone-line stick (`../../SPEC-L.md` §7). Its length +is about the length of a disposable lighter, as with the USB Modem of Apple. +The RJ11 is at one end and the USB-C is at the other end. ```sh python3 hardware/enclosure/stick.py ``` -It writes `out-line/` (the two halves as STL and STEP, an assembly, the -board outline, `placement.md`) and refuses to if anything collides. +The script writes `out-line/`: the two halves as STL and STEP, an assembly, +the board outline and `placement.md`. If a part collides with a different +part, the script stops and does not write the files. -- **Size:** 82 × 24 × 19.9 mm. The 13 mm-tall RJ11 sets the thickness; - a lighter is about 15. -- **RJ11:** its opening is flush with the end face; the socket's front - fills the end wall's cut-out. -- **USB-C:** the receptacle sits 1.1 mm inside a 13.2 × 7.6 mm opening, - so a plug's overmould seats fully (as the W hood). -- **Fixing:** one M2 × 8 self-tapping screw from below, through the - board, on the USB side of the isolation gap. The end walls hold the - board's ends. -- **LEDs:** OH (off hook) and RI (ringing), under light tubes, labelled. -- **Bottom face:** the Source Location and `CERN-OHL-S-2.0`. +- **Size:** 82 × 24 × 19.9 mm. The RJ11 is 13 mm tall, and it sets the + thickness. The thickness of a lighter is about 15. +- **RJ11:** Its opening is flush with the end face. The front of the socket + fills the cut-out in the end wall. +- **USB-C:** The receptacle is 1.1 mm inside a 13.2 × 7.6 mm opening. Thus + the overmould of a plug can go fully in (the same as the W hood). +- **Attachment:** One M2 × 8 self-tapping screw goes in from below, through + the board, on the USB side of the isolation gap. The end walls hold the + ends of the board. +- **LEDs:** OH (off hook) and RI (ring signal), under light tubes, with + labels. +- **Bottom face:** The Source Location and `CERN-OHL-S-2.0`. -Print in MJF PA12 as the hood. **Not yet printed.** +Print in MJF PA12, the same as the hood. **Not printed at this time.** ## pico-serial WB stick @@ -69,7 +72,11 @@ The wideband stick (`../../SPEC-WB.md`) uses the same shell: python3 hardware/enclosure/stick.py --variant wb ``` -It writes `out-wb/`. The differences: the lid reads "pico-serial WB", the -LEDs are LINK and DATA, and the collision check includes the 8.6 mm-tall -line transformer, which the shell's 13 mm headroom clears. **Not yet -printed.** +The script writes `out-wb/`. These are the differences: + +- The lid shows the text "pico-serial WB". +- The LEDs are LINK and DATA. +- The collision check includes the line transformer, which is 8.6 mm tall. + The 13 mm headroom of the shell is sufficient for it. + +**Not printed at this time.**