feat: add strix command-line client with GCP live view and logging

This commit is contained in:
randogoth 2026-10-25 19:19:13 +02:00
parent 6bee626b7f
commit 76fedf2852
4 changed files with 264 additions and 0 deletions

View file

@ -6,6 +6,8 @@ The firmware serves the same commands over USB serial and over HTTP on its own W
The firmware speaks a line protocol over the board's USB serial port (115200 baud setting, ignored by native USB). Send one command per line. Every reply is a single JSON line, except `entropy`. Errors look like `{"error":"..."}`, and settings changes confirm with `{"ok":true}`.
`tools/strix.py` (`devbox run strix <command>`) wraps the USB protocol. `strix gcp [--log file.csv] [--full]` follows the per-second trials with a live cumulative Z² − 1 and its p = 0.05 envelope, reconnects after USB dropouts and fills gaps from the device's history. The log has GCP-style rows: `13,<unix time>,<UTC date-time>,<g0>,<g1>,<g2>,<g3>` (200-bit sums, empty for unhealthy generators), after a `12,gmtime,Date/Time,g0,g1,g2,g3` header.
## Commands
| Command | Reply |