Skip to content

Add Dot storage control and verified device firmware upgrades with Windows Pro support - #81

Merged
Anheledir merged 5 commits into
mainfrom
feature/device-maintenance
Nov 30, 2026
Merged

Anheledir merged 5 commits into
mainfrom
feature/device-maintenance

Conversation

@Anheledir

@Anheledir Anheledir commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Adds spn storage status/on/off and verified device firmware version/upgrade commands. Firmware upgrades validate official/local OTA ZIP layout, checksums, product, version and current device identity; dry-run performs no device writes or storage changes. Downgrades and automatic replay after ambiguous transfers are refused.

Windows gains aligned uncached READ2ME v1 transfers for read-only Pro devices. Dot USB access uses optional system libusb on Linux/macOS. Windows raw USB storage control is refused before backend initialization: source review proved that UsbDk captures the whole device and detaches its Windows storage driver. A safe Windows backend is tracked in #82. Mounted Windows firmware upgrades and the uncached Pro READ2ME channel remain independent of libusb. Storage-off Dot updates restore the saved preference before sending image bytes. Active mounted storage is ejected manually; automatic safe ejection is tracked separately in #79. Live LED delivery over raw USB is also separate work.

SPN serializes device writes, refuses firmware updates while its host is running, and retains a ten-second quiet period after transfer. A successful transfer is reported separately from confirmed installation. Unknown/repeated maintenance options fail before hardware access.

Validation: 164 .NET tests, 13 Python tooling tests, published Linux CLI/terminal smoke checks and dry-run against the real upstream 1.1.17 Dot OTA ZIP passed locally. Native Windows/Linux/macOS builds, installation/CLI acceptance, JSON compatibility and startup checks passed on the exact merged head (908074c). Native build run: https://github.com/Anheledir/SidePulse.NET/actions/runs/46408515450. No physical hardware was accessible from this cloud VM; #78 tracks hardware acceptance, including the Windows read-only Pro native channel; safe Windows Dot USB control remains #82.

Upstream review and remaining work are documented in docs/reviews/upstream-2026-11-30.md. Existing upstream baseline is retained because the remaining additions still need disposition. Retains upstream MIT attribution.

Closes #77. Related #72, #78, #79, #80.

Native Windows CI exposed a pre-existing install-acceptance cleanup race after a portable executable exits. The smoke harness now retries only Windows sharing/lock violations for up to ten seconds; permanent access failures and persistent locks still fail. Three Python tests cover those distinctions. Application behavior is unchanged by this harness fix.

@Anheledir
Anheledir merged commit 162e410 into main Nov 30, 2026
17 checks passed
@Anheledir
Anheledir deleted the feature/device-maintenance branch November 30, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Dot storage control and verified firmware updates, including Windows

1 participant