Repository navigation
Add Dot storage control and verified device firmware upgrades with Windows Pro support - #81
Merged
Merged
Conversation
…ot storage control
This was referenced Nov 30, 2026
…nance # Conflicts: # scripts/json_compatibility.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
spn storage status/on/offand 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.