spe-remote — SPE Expert remote control server
Tells a new client at once whether the amp is on (v3.0.4, November 2026). The server keeps the last state the amplifier reported, and it used to send that to every client that connected, even when the amp had been off for hours. A dashboard that took a state message as “the amp is on” then showed ON, and a power toggle built on that sent power_off when the operator wanted power_on. The server now sends the state at connect only while the amp is replying, and always sends its presence heartbeat straight away, with serial set to up or down. The README documents that heartbeat as the message to use for an ON/OFF indication.
Recovers a stalled USB serial read by itself (v3.0.3, November 2026). After a USB error, the Pi's FTDI driver can stop delivering data while the port still looks open, so the amp read as down until someone restarted the service. The server now reopens a port that has gone silent. It keeps the DTR line steady while it does so, because DTR is the amp's remote power line. Reopens wait after a power click, and slow down to once a minute while the amp is off.
Cross-origin WebSocket connections refused (v3.0.2, October 2026). WebSockets are not covered by CORS, so until this release any web page open in a browser on the LAN could connect to the server and send power_on, oper or tune. The server now refuses a browser connection whose origin is not the server itself. Its own dashboard, MacExpert, Node-RED’s WebSocket client and scripts connect as before. A new guide shows how to bind the server to localhost and put Caddy in front of it for TLS and a login. Contributed by Vinod VU3ESV.
Modern Python 3 remote-control server for SPE Expert HF amplifiers (1.3K-FA / 1.5K-FA / 2K-FA). Runs on a Raspberry Pi over USB serial and serves both a built-in web dashboard and a WebSocket API. Implements the full SPE Application Programmer's Guide Rev 1.1 plus the undocumented RCU command set, so the amplifier's LCD can be mirrored frame-by-frame.
Mixed-client broadcast — text JSON for browsers, binary RCU frames for the MacExpert companion app — over the same socket. Threaded reader + async writer survive the USB-serial poll glitches that crash naive serial_asyncio setups.
Server-side ballistics: p_out_avg (EMA, ~1 s settle) and p_out_peak (peak-hold, 600 W/s decay) travel alongside raw p_out, so a RAW / AVG / PEAK pill toggle on the shack dashboards reads meaningful values at CW-swing speeds without every client rolling its own filter. Interactive ./configure.sh lists the Pi's /dev/serial/by-id/ aliases for menu pick, walks through the optional Flex block, and preserves saved settings across re-runs; sudo ./install-service.sh --update re-configures and restarts the live systemd unit with a diff preview.
Optional flex: config opens a second connection to a FlexRadio 6000-series rig over the SmartSDR TCP API and orchestrates an SM5TOG-style ATU tune plus the full sub-band SWEEP; leave flex.host empty and the server auto-discovers the radio via SmartSDR's UDP broadcast on port 4992. All four UIs (MacExpert, the bundled dashboard, Node-RED /ui, Vue /shack) receive the same tune_event stream. Based on original work by OH2GEK, rewritten and extended.