- server.py: claim the flash (state=bootloader) before spawning the task so
the concurrent-request guard is effective immediately; guard the bundled
image existence in the flash endpoint; single device.info() call per
endpoint; 400 for refused flashes (409 stays for already-running);
remove stale nvcurve-wireview-fw-*.bin temp files at startup
- wireview_firmware.py: drain stderr in its own reader thread (a full pipe
buffer would have hung the flash until timeout); chunked stdout reads
instead of per-character read(2); BuildStruct field checks in dataclass
order
- wireview.py: document the intentional 0xF1 overlap between CMD_BOOTLOADER
and SCREEN_RESUME_UPDATES (different command namespaces)
- tests: check() now fails loudly under pytest (optional import, standalone
runs unaffected); explicit reader-thread sync in test_enter_bootloader;
less brittle flash-progress assertion; self-documenting checksum
corruption in test_hex_parser
- frontend: refreshFirmware in useCallback + effect deps; NaN% guard on
flash.progress; explicit clear/keep masks in handleClear; WS firmware
message reuses WireViewFlashProgress via Pick
- docs: clarify that the dfu-util :leave modifier is what makes the device
exit the bootloader and reboot; document the 400 vs 409 API contract;
README now mentions per-pin readings, pin-imbalance gauge and fault
clearing
Port of the wireview-linux firmware update feature:
- nvcurve/wireview_firmware.py: Intel-HEX parser (checksum-verified),
BuildStruct identity extraction (vendor/product/version/build string
at image base + 192), compatibility verdicts (version then build
date, Noctua Edition product alias + 2026-09-02 floor), and a
dfu-util flasher (progress parsing, exit-74-after-:leave quirk,
timeouts).
- Bundle TG-WV-PRO2-FW.hex (v05, build 20260902_0741, base
0x08000000) in nvcurve/firmware/.
- WireViewSerialDevice.enter_bootloader() sends the top-level 0xF1
command; vendor/product ids are exposed in info().
- GET /api/wireview/firmware (device vs. bundled verdict, dfu-util
availability, flash state) and POST /api/wireview/firmware/flash
(gates: serial transport, product match, Noctua floor, downgrade/
same require override). The flash runs as a background task
(bootloader -> wait for 0483:df11 -> dfu-util) with progress
streamed over /ws/wireview.
- WireView tab: Firmware card with device vs. bundled firmware,
verdict, dfu-util/hwmon warnings, confirm dialog, live progress
bar; re-checks after the device reboots.
- tests/test_wireview_firmware.py: 66 tests (HEX parser, checksum
rejection, identity, all verdict paths, mocked flasher, bootloader
command via pty); added to the Makefile test target.
- Docs: firmware section in docs/WireView.md, README note.
- Per-pin bar now scales against the 9.2 A per-pin rating (10 A full
scale, red at/over rating) instead of the 55 A total connector OCP
- Debounced app-wide warning banner (visible on all tabs) when the
current between two pins diverges by > 2 A for ~7 s - the signature
of a bad pin contact that can overheat and melt the 12VHPWR
connector; 5 s grace period after clearing
- New pin_imbalance_a sample field (max - min pin current) in both the
serial and hwmon sample builders, plus frontend type
- Docs: README + WireView.md cover the warning and threshold; fresh
screenshot with the new per-pin labels
- Tests: vitest setup + 9 unit tests for the debounce state machine;
3 new backend checks for pin_imbalance_a
The device is not usable out of the box on Linux: without the udev rule
the port is root:uucp 0660 with no stable name, and ModemManager probes
it for ~30 s after every plug. New docs/WireView.md covers the one-time
setup (udev rule, dialout group, port access, verification,
troubleshooting); README links to it from the feature note and the
documentation list.