GeezerVison is showing github.com — opendectcell/tools/README.md at main · openDECTcell/opendectcell
71 lines (55 loc) · 4.66 KB File metadata and controls71 lines (55 loc) · 4.66 KB Copy raw file Download raw file OutlineEdit and raw actions
Programs that run on a PC, except gpio-activity.c, which runs on the box
(see the end). Python tools need only Python 3's standard library; run
them with python3 -I.
| Tool |
What it does |
| dect-fw-extract.py |
Takes the DECT chip firmware out of an official FRITZ!OS image, checks it against the builds openDECTcell knows, and prints the commands that copy it to the box. See docs/install.md, step 3 |
| sqfs_be.py |
SquashFS reader used by dect-fw-extract.py |
| Tool |
What it does |
| cell-testpeer.py |
A stand-in controller for testing a cell (dect-cell, dect-stubd -K): its own CA, enrolment, mutual TLS 1.3, HELLO and heartbeats, optional harmless MAIL_DOWNs. Needs the cryptography package (the only tool here that is not standard library only) |
| carddav-testserver.py |
A small CardDAV server for testing opendectcell-carddav: two address books in memory, discovery (well-known, principal, home set), REPORT multiget (--no-report refuses it), HTTPS with its own CA (made with openssl), Basic auth, PROPFIND/GET/PUT/DELETE with ETags, seed cards with the awkward cases; GET /_dump shows what the box wrote; --no-chunked reads a chunked request body as empty, as WSGI servers do |
For development and analysis
These helped bring up the chip and the calls. They read captures and logs
that dect-stubd writes during experiments (-w FILE, -a memdump, …).
-a memdump=ADDR[:LEN] reads chip peripheral space too (0xff....), not
only RAM, on the 08.25 STUB (measured 2026-11-07 on a 7520: the reply echoes
the address and live registers change between reads). A zero is no evidence:
addresses that are certainly unused also read 0000, so check a read against
a register that changes before you trust a zero.
More development tools are in src/tools/: dect-pcmcap
(PCM bring-up and capture; make cross builds it for the box, make for
reading captures on the PC with -S FILE) and dect-maildump (on the PC:
the mails in a dect-stubd -w capture; make).
Two on-box tools from the chip bring-up have no build rule; build them
with the SDK's compiler if you need them:
| Tool |
What it does |
| gpio-activity.c |
Checks through sysfs GPIO whether a fast signal (such as the PCM clock) is toggling |
| src/tools/dect-sla.c |
One-shot capture of the PCM pins through the kernel module (DECT_IOC_CAPTURE) |
|