All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
RB23xx RailBOX decoder firmware over Soft-AP, capabilities-driven firmware jobs,
WPA2-PSK join via wpa_supplicant, LongFred commissioning on 192.168.4.x
(ESP-IDF default, no hub LAN overlap), and Soft-AP addressing without a
connected /24 in main.
- RB23xx driver — Soft-AP discovery (
RB2300_*/RB2310_*/RB2302_*), WPA2-PSK join (factory password00000000, never logged), and firmware.binupload viaPOST /upload?p=/{filename}matching therbCLI. Max 5 MiB, 120 s deadline. A TCP reset after a full write is success (decoder reboot). Soft-AP only. The HTTP client acceptsTransfer-Encoding: chunked(RailBOX file browser keeps the TCP connection open).
- Firmware job limits (max bytes, allowed reach modes, ESP
.app.binrequirement, RST-after-write) and Soft-AP PSK come from drivercapabilitiesinstead of per-driver branches in shared runtime code. update_firmwareis now aDeviceDrivertrait method (uniformfilenameparameter); the registry no longer manually dispatches with per-driver signatures.- WPA2-PSK join always uses
wpa_supplicanton the programming interface (USB adapters and brcmfmac do not complete a 4-way handshake from a PMK passed via nl80211 CONNECT). The supplicant is killed on radio release. Association waits forCTRL-EVENT-CONNECTED, not carrier alone. - LongFred Soft-AP commissioning addresses are now
192.168.4.1/ source192.168.4.2(ESP-IDF default, same as WiFred). This no longer overlaps the BigFred hub LAN (192.168.0.0/24). Requires matching LongFred firmware; older devices at192.168.0.1will not program. - Soft-AP
source/prefixis assigned withIFA_F_NOPREFIXROUTE. The kernel does not install a connected subnet inmain; only the existing policy/32tohostleaves via the wireless interface.
Static linux/arm64 and linux/amd64 musl binaries (wireless-programmer-linux-*).
Hub operators can update without reflashing OS: make hub-upload to
/data/opt/wireless-programmer/ (see bigfred-os).
Hub Soft-AP programming for LongFred (and WiFred) when the device AP shares the
hub's LAN subnet — e.g. LongFred at 192.168.0.1 on a hub whose Ethernet is
also 192.168.0.0/24. Includes policy routing, sysctl tuning, HTTP client
framing for embassy-net RST-after-respond, active scan, association verification,
--log-level, and make hub-upload for /data/opt on read-only hub rootfs.
- Soft-AP radio scan on Raspberry Pi 5 / brcmfmac: bring the interface up
before scanning, use an active wildcard scan (like
iw scan) instead of a short passive dwell, wait forNEW_SCAN_RESULTS(with a timed dump fallback), and surface trigger failures asscan_failedinstead of an empty candidate list. 2.4 GHz channels are preferred, with an all-band fallback if the firmware rejects the frequency list. - Soft-AP programming on hubs whose LAN overlaps the device subnet (e.g. the
LongFred Soft-AP at
192.168.0.1, which is also the hub's own LAN address). Both directions were broken:- Outbound
Connection refused— the route lookup hit thelocaltable and delivered to loopback.SO_BINDTODEVICEdoes not overridefrom all lookup local. The daemon parks that rule at pref 1 and installsfrom <source> to <host> lookup 100at pref 0, with a /32 via the wireless device in table 100, then flushes the route cache. Output sockets bind the wireless source address so the rule matches. Restored on release. - Inbound
timed out— replies whose source is a locally-owned address were dropped as a martian source. The radio now setsaccept_local=1andrp_filter=0on the wireless device (andall) while associated, and restores the previous values on release. Connection reset by peeronreadafter a successful connect — the LongFred HTTP server (embassy-net) sends the200withContent-Lengthand thenabort()s, which is a TCP RST. The client used to keep reading until EOF, so the RST on the nextreadfailed a request that had already arrived. It now stops when theContent-Lengthbody is complete. Existing devices keepabort(); new firmwareclose()s after a successful response (FIN instead of RST).
- Outbound
- Soft-AP association was never verified, so a rejected or abandoned
NL80211_CMD_CONNECTwas reported as success and only surfaced later as a confusing HTTP error.connect_opennow brings the link up first (the previous job'sreleaseputs it down, so association was attempted on a down interface), surfaces CONNECT errors instead of draining them, waits for carrier, and retries once after a fresh scan because the kernel drops its BSS cache when the link goes down. A genuine failure now reportsassociation timed out. releaseremoves the on-link address it assigned. A leftover192.168.0.2/24onwlan0kept a second route for the hub's own LAN subnet, which made later attempts fail with a mix ofEHOSTUNREACH,ECONNRESET, andECONNREFUSED.
- A Soft-AP HTTP request that exhausts its retries logs the destination,
source address, and bound device, each attempt's error kind at
debug, and — when the destination is also a local address — which of the two collision fixes is missing.
--log-level error|warn|info|debug|tracefor the daemon andfake(-vremains an alias fordebug;RUST_LOGis honoured when both are omitted). Scan logs the interface state, trigger result, and raw BSS count; atdebugevery SSID; atinfowhen APs were seen but none matchedlongfred_prog/wiFred-config.make hub-upload— cross-build musl arm64 and deploy to/data/opt/wireless-programmer/on the hub (scp -Ofor Dropbear).
Static linux/arm64 and linux/amd64 musl binaries (wireless-programmer-linux-*).
Hub operators can update without reflashing OS: make hub-upload to
/data/opt/wireless-programmer/ (see bigfred-os).
First public release of wireless-programmer — a Rust daemon on the BigFred hub
(Raspberry Pi 5) that discovers and programs physical throttle hardware. Clients
(bigfred, bigfred-wizard, CLI) talk to it over a Unix socket.
- Daemon & IPC — length-prefixed JSON on
$BIGFRED_DATA_DIR/run/wireless-programmer/wireless-programmer.sock; job registry with one programming job at a time; optionalSO_PEERCREDpeer auth. - WiFred driver — Soft-AP discovery (
wiFred-config*), HTTP programming, roster + wiThrottle server + BigFred identity, post-program verify. - LongFred driver — Soft-AP discovery (
longfred_prog*), HTTP programming, verify, and negative verify tests. - LongFred firmware OTA — HTTP update over Soft-AP and LAN (mDNS
_longfred-ota._tcp.local); USB update viaespflash; streaming job progress for long-running uploads. - Digitrax FRED driver — wired throttle commissioning via Z21 LAN
LAN_LOCONET_DISPATCH_ADDR(0xA3); Z21 discovery (scan --mode z21) via mDNS and UDP broadcast probe. - Radio & link — nl80211/rtnetlink scan; bounded HTTP client; selectable
wireless interface (
--interface/WIRELESS_PROGRAMMER_INTERFACE). - Fake mode —
--interface fakewith in-process Soft-AP HTTP mocks and standalonewireless-programmer fakefor dev/CI without WiFi hardware. - CLI — daemon,
scan,probe,identify,program,job get|watch|cancel,link-status,hello;--json,--timeout, request/roster file inputs. - Client SDKs — Rust
wp-clientcrate and Go client (go/client, vendored bybigfred). - Crate layout —
wp-proto,wp-core,wp-link,wp-drivers,wp-fake,wp-client,wireless-programmerbinary. - Docs — socket API (
docs/api.md), CLI guide (docs/cli.md), Go client (docs/go-client.md), per-driver notes (docs/drivers/). - Build & CI — Makefile (
build,dev,release, musl targets); org reusable workflows for musl CI and tagged releases; ELF version section.wireless-programmer.version.
- Socket permissions and CLI honesty so peers and one-shot clients can reach the daemon reliably.
- #1 — LongFred Soft-AP programming driver
- #2 — LongFred firmware OTA (HTTP + USB)
- #4 — FRED programming via Z21 LAN dispatch
Static linux/arm64 and linux/amd64 musl binaries (wireless-programmer-linux-*)
for hub deployment. Hub OS pulls the arm64 build (see
bigfred-os).