next: find Alkane OS boards in the scan; install/update/uninstall only where they apply #35

Merged
noah merged 2 commits from feature/alkane-scan into next 2026-11-12 15:13:20 -07:00
Owner

A board running Alkane OS never appeared in the GUI scan: asic-rs recognises miners by their cgminer socket or vendor web UI, and Alkane exposes neither. The refresh also marked such a row offline.

  • New alkane_detect probe for addresses asic-rs does not identify: GET /api/identity (alkane-os 0.1.2+), falling back to /api/summary's alkane-os STATUS. Used by scan and refresh.
  • Context menu: Install alkane OS... only for a supported board not yet on Alkane (stock Antminer on XIL (C49), or by model S17/S17 Pro/T17 when stock reports no control board); Update alkane OS... for a supported board already on Alkane; Uninstall alkane OS only for Alkane boards. Mixed selections get neither install nor update.

Verified live on the bench S17 in both states (Alkane 0.1.2: update + uninstall offered; genuine stock S17 with its miner software down: install offered). Local run of main's verify steps: fmt, clippy -D warnings (workspace + GUI), 200 tests, pr-surface self-test, headless UI self-test all pass.

Generated with Claude Code

https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i

A board running Alkane OS never appeared in the GUI scan: asic-rs recognises miners by their cgminer socket or vendor web UI, and Alkane exposes neither. The refresh also marked such a row offline. - New `alkane_detect` probe for addresses asic-rs does not identify: `GET /api/identity` (alkane-os 0.1.2+), falling back to `/api/summary`'s `alkane-os` STATUS. Used by scan and refresh. - Context menu: **Install alkane OS...** only for a supported board not yet on Alkane (stock Antminer on XIL (C49), or by model S17/S17 Pro/T17 when stock reports no control board); **Update alkane OS...** for a supported board already on Alkane; **Uninstall alkane OS** only for Alkane boards. Mixed selections get neither install nor update. Verified live on the bench S17 in both states (Alkane 0.1.2: update + uninstall offered; genuine stock S17 with its miner software down: install offered). Local run of main's verify steps: fmt, clippy -D warnings (workspace + GUI), 200 tests, pr-surface self-test, headless UI self-test all pass. Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i
noah added 2 commits 2026-11-12 15:01:59 -07:00
Merge pull request 'main: promote next (alkane-os install/uninstall, genuine-firmware restore, Zynq fixes)' (#32) from next into main
build-test-release / windows (push) Successful in 7m25s
build-test-release / release (push) Successful in 19m26s
50102800a3
gui: find boards running Alkane OS in the scan; offer install/update/uninstall only where they apply
verify / verify (pull_request) Skipped
source / check (pull_request) Successful in 7m17s
315c595714
The fleet scan (asic-rs) recognises miners by their cgminer socket or vendor
web UI. A board running Alkane OS exposes neither, so it never appeared and
could not be right-clicked; the periodic refresh also marked it offline.

- alkane_detect: probe addresses asic-rs does not identify over HTTP:
  GET /api/identity (alkane-os 0.1.2+: os, version, board, MAC, hostname),
  falling back to /api/summary's "alkane-os" STATUS for older images. Used by
  the scan and the refresh. Rows show Firmware "Alkane" with the version, MAC,
  hostname and control board (XIL (C49) for zynq-7010).
- Context menu: "Install alkane OS..." only for a supported board (control
  board alkane-os has an image for; a stock Antminer on XIL (C49), or by model
  S17/S17 Pro/T17 when the stock miner software is down and reports no board)
  that is not running Alkane; "Update alkane OS..." for a supported board
  already running it (same dialog, updated in place); "Uninstall alkane OS"
  only for boards running Alkane. Mixed selections get neither install nor
  update.
- Docs updated.

Verified live on the bench S17: running Alkane -> found as Alkane 0.1.2,
XIL (C49), update + uninstall offered; restored to stock -> found as Antminer
S17 Stock, install offered. Unit tests for the probe parsing and the menu
rules; an ignored live scan test (ALKANE_TEST_SCAN_RANGE).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i
noah merged commit 1fa4aa5532 into next 2026-11-12 15:13:20 -07:00
Sign in to join this conversation.