6fb73c97462dd3e31e646e1005cca719c0f1663f
80
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
6fb73c9746 |
firmware: detect + label Bixbit and Hiveon (own colours)
Bixbit and Hiveon keep the stock Antminer web API, so asic-rs identifies them as "AntMiner Stock". Distinguish them at scan time from the cgminer `version` reply: Bixbit tags it with BixFirmware/BixMiner/BixAPIVersion (definitive; verified live on a Bixbit S19j Pro at 10.4.1.70); Hiveon carries a "hiveon" marker (best-effort -- no live Hiveon unit to confirm the exact signature yet). A real stock miner (no marker) stays "Stock". Firmware column colours: Bixbit -> pinkish-red (223,62,102, their logo); Hiveon -> darker logo orange (228,112,24), with "hiveon" added to the existing hive/hiveos alias. The probe is a short, timeout-bounded cgminer query run only for Antminer miners that first identified as stock. SELFTEST PASS. Hiveon detection to be re-verified once a Hiveon miner is available. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.44.0 |
||
|
|
49985631d4 |
antminer: read best-share fleet-wide + Bixbit "Power Estimated" wattage (R7)
Round 17 R7. Flashing Bixbit onto fleet units surfaced two Antminer scan gaps (patch 0019): the stock v2023_07 backend never fetched best-share at all (DataField::BestShare had no source), so it was blank for every stock/Bixbit Antminer; and it read wattage only from the cgminer stats, which Bixbit-based firmware leaves at 0 (real draw is in the summary as "Power Estimated"). Now maps BestShare/SessionBestShare to the cgminer summary and adds a "Power Estimated" wattage fallback (stock power still wins when present). Verified live: Bixbit S19j Pro (10.4.1.70) now reads 2615 W + best-share 178930671; stock S21 Pro (10.4.1.90) now reads best-share 299464394 -- both were blank before. 36 antminer backend tests + SELFTEST pass, no wattage regression. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.43.0 |
||
|
|
8fe61ec427 |
psu: PSU info scan + version/Vmin/Vmax columns + tooltip V/A (R5/G15)
Round 17 R5/G15. asic-rs had no PSU telemetry. Adds an optional PsuInfo to MinerData (model, version, rated voltage min/max, live output voltage/current), a DataField::Psu, and a default parse_psu backends override (patch 0018). ePIC populates it by merging the summary "Power Supply Stats" with the capabilities "Psu Info". GUI: three new columns -- "PSU version", "PSU Vmin", "PSU Vmax" (Hardware group in the picker) -- and the R2 power tooltip now shows the PSU output voltage (and amperage when the firmware reports a non-zero current; ePIC leaves current 0, so it shows just the voltage). Verified live on ePIC S19j Pro (10.4.1.6/.10): model 117, fw 22, Vmin 11.877 V, Vmax 15.182 V, output ~13.2 V. 8 model tests + 18 ePIC backend tests + SELFTEST pass. Non-ePIC firmware leave the PSU fields blank until they add parse_psu. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.42.0 |
||
|
|
34a1a1f3b1 |
tuning: structured power + hashrate target dialogs (Round C)
Round 17 C, first GUI increment. Adds "Set power target..." and "Set hashrate target..." to the right-click config menu, each a value prompt that shows the miner's current target and the firmware-advertised valid range, and validates the entry against it. - Power target routes through the existing set_power_limit path (LuxOS/Braiins/ WhatsMiner; VNish stays masked per operator guidance). Where the firmware advertises an envelope (Braiins: 944-6435 W) the prompt shows and enforces it. - Hashrate target routes through set_tuning_config for firmware that tunes by hashrate (ePIC). The apply path preserves the firmware's current tuning algorithm and scaling config (ePIC's set_tuning_config requires both), reading them back before writing the new target. Model gains: MinerRow.tuning_target_label + power/hashrate target min/max (from data.tuning_capabilities), and MinerCaps.hashrate_target (set when the miner actively tunes by hashrate via set_tuning_config). miner_probe's settune verb now mirrors the same algorithm+scaling-preserving apply path. Verified live (reversibly, restored after): ePIC S19j Pro (10.4.1.6) hashrate 94->92->94 TH via set_tuning_config Ok(true); LuxOS/Braiins power targets via set_power_limit (see the luxminer profile-name fix). Model tests + SELFTEST pass. Presets (G3) and per-board manual V/F (G7) are deferred: no firmware enumerates its presets through the standard tuning_capabilities API. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.41.0 |
||
|
|
0db89d6c55 |
miner_probe: add tune (read) + settune (write) verbs for structured tuning
Round 17 C groundwork. `tune <ip>` dumps a miner's structured-tuning surface -- what it supports (power_limit / tuning_percent / tuning_config), its current target, and the capability envelope (power/hashrate min-max or preset list) the firmware advertises. `settune <ip> <power|hashrate> <v>` applies a target via set_tuning_config where supported (ePIC/VNish/WM), falling back to the plain power-limit setter for a power target on firmware that tunes by power (LuxOS/Braiins). Used to map the live fleet before wiring the GUI: ePIC tunes by hashrate via set_tuning_config (needs an algorithm + scaling config); LuxOS/Braiins tune by power via set_power_limit; VNish/WM accept set_tuning_config; only Braiins advertises a min/max envelope; preset lists are not exposed by any firmware's tuning_capabilities. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.40.0 |
||
|
|
08b3d56864 |
luxminer: set power-limit profile by name so the default profile is reachable
Round 17 C, found via live tuning verification. LuxOS set_power_limit mapped
watts to a profile but applied it by the profile's Step. The factory "default"
profile has Step "0", which LuxOS profileset reads as an empty parameter
("Missing profile parameter"), so the setter could never select the default and
a miner nudged off it by a watts limit could not be returned to its factory
point. Key on the profile Name instead (patch 0017).
Verified live on a LuxOS S19j Pro (10.4.1.60): set_power_limit(2700)->480MHz/2632W,
set_power_limit(2900)->default/2794W (previously errored). Unit test updated.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6
|
||
|
|
4e825f3ee5 |
health: bare-data per-component tooltips (R2)
Round 17 R2. The Health column's per-icon tooltips were prose ("Hashboard 3:
faulted", "Power supply: OK (drawing power)"). Replace them with just the data an
operator wants:
- Hashboards: an operating board shows its number counting DOWN (n-1..0, left to
right) and its hashrate ("2 · 33.5 TH/s"); a faulted board shows its error
message with the firmware code; a board the failed PSU left untested shows
"unpowered". No "Hashboard N:" prose.
- Fans: just the RPM ("4700 rpm"), unless the fan has a fault (then the error+code).
- Control board: its own and un-attributed faults with codes, else a short OK.
- Power: a healthy PSU's output voltage + amperage when reported, else a short OK;
a faulted PSU shows the error and code.
Adds per-board hashrate (BoardData.hashrate) and the firmware error code
(MinerMessage.code) to the model, and forward-compatible PSU output V/A fields.
asic-rs does not yet expose PSU output V/A (roadmap G15), so the healthy-PSU
tooltip shows "PSU OK" until that lands, at which point it auto-upgrades to "V / A".
Unit tests (faults_attribute, health_tooltips_are_bare_data_round17_r2) pass;
SELFTEST PASS. Live data confirmed available (per-board hashrate + fan RPM on the
Braiins corpus miners).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6
v0.39.0
|
||
|
|
8e67c50fe0 |
health/pic: shrink fan icon (R1), blank PIC for non-Antminers (R6), add build cleanup
Round 17 queue. R1 -- the cooling-fan icon in the Health column read as oversized next to the brain/chip/bolt icons. All four use a square 512x512 viewBox at the same slot size, so the fan only *looked* bigger because the Font Awesome fan glyph fills its box more. Draw the fan at 80% size, centred in its full-size slot, so the slot advance and the per-icon tooltip hit-test (both keyed to the full width) are unchanged and nothing else moves. R6 -- WhatsMiner and other non-Antminer makes showed "?" in the PIC column. A per-board PIC MCU is an Antminer hashboard property with no meaning elsewhere, so the cell now shows nothing for non-Antminer brands; an unknown *Antminer* model still shows "?". Build hygiene (user ask) -- add scripts/clean-old-builds.sh to reclaim the local cargo target dir. The app/CLI ship as release and tests run under --release, so the debug tree, cross-compile trees, and coverage tree are disposable; a stray cargo check had grown the debug tree to 38G and filled the disk. The script drops those, keeps the warm release build, and is meant to run after each release push. SELFTEST PASS; model tests (pic_locked, faults_attribute, health) pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.38.0 |
||
|
|
da0d1582be |
scan: cap identification concurrency at 128 to fix Braiins value dropout (R4)
Round 17 R4. Scanning most values from Braiins OS units failed under a full fleet scan: a /24 returned watts=0 and no best-share/temps/fw for Braiins miners (and dropped a few responders entirely), while the same miner scanned in isolation populated fully. Root cause: asic-rs picks a scan concurrency of 1000 for any range up to /22, so a /24 fires all ~254 address probes at once. Over a real link (the fleet is reached across a WireGuard VPN, and a subnet full of dead IPs holds every TCP connect open for the whole identification timeout) that burst starves the per-responder get_data. A Braiins miner fans out ~12 authenticated REST calls; under the burst they drop miner/stats, so "most values" come back blank. It is not FD exhaustion (nofile is 500k), not the per-call timeout, and not an auth race. Fix: cap identification concurrency at 128 in the app (GUI scan + miner_probe). On the live fleet 128 was the highest cap that stayed fully reliable -- 192 already dropped responders, 254 blanked a Braiins miner. A /24 still finishes in ~35s; larger ranges just take proportionally longer and stay correct. Belt-and-suspenders in the braiins backend (patch 0016): single-flight the login (one auth instead of ~12 concurrent) and widen the defensive get_data timeout 5s -> 15s. Verified live: 10.4.1.0/24 now populates both Braiins corpus miners (.27 watts=2748 best=55217110, .83 watts=2749) fully and misses no responders (65/65). SELFTEST PASS. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.37.0 |
||
|
|
7f802c568f |
Scan progress: smooth per-address counter (was jumping ~1%/second)
The scan counter jumped in big steps (e.g. +45 for a 4590-address scan) because (a) progress was only emitted every total/100 addresses and (b) the drain timer ran once per second, so the gauge only refreshed ~1 Hz. The +45 was total/100, not a chosen value. Fix, both cheap: - scan.rs emits progress per address (throttled only above 5000 addresses to bound channel traffic) instead of every 1%. - ui.rs runs the scan/drain timer at 200 ms (5 Hz) so the counter climbs smoothly; drain_scan coalesces the many per-address updates into ONE gauge/status update per drain (no extra repaints). A tick accumulator keeps the once-per-second work (auto-rescan countdown, idle status) at 1 Hz despite the faster tick. Net: the counter now climbs several times a second in small increments; overhead is negligible (unbounded mpsc sends are cheap and the gauge still repaints once per tick). No user-facing setting added -- the smoothness is size-independent. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.36.0 |
||
|
|
86338062a5 |
Round 17 B (part 2, GUI): timezone / change-password / factory-reset dialogs + BOS fix
Wire G10/G11/G12 into the GUI (they already had CLI verbs in part 1): - MinerCaps gains timezone / change_password / factory_reset (probed from the matching supports_*() at scan time; intersect + any_control + is_empty updated). - ConfigAction gains Timezone(String) / ChangePassword(String) / FactoryReset with labels + apply arms. Timezone/FactoryReset go through apply_action(&dyn Miner); ChangePassword takes &mut self so it runs on the owned miner in the action loop. - ui.rs: a shared PromptKind (Power/Tuning/Timezone/Password) generalises the value prompt (timezone is IANA-validated before firing; password is non-empty); factory-reset uses the confirm dialog with a strong WIPES-config/DHCP warning. New gated context-menu items: Set timezone, Change password, Factory reset. Backend fix (asic-rs patch 0015): BOS send_command treated an empty 2xx body as a parse error, so change_password reported Ok(false) on success. Empty 2xx is now Null (success). Found + fixed while live-verifying G11. Verified live on Braiins 10.4.1.27: full change-password round-trip (root -> bftest2 -> read with new pw -> restore root), all Ok(true), unit left on root/root. Timezone shares the CLI-verified set_timezone_config path. Factory-reset is wired + gated but intentionally NOT live-fired: its behaviour is unrecoverable per firmware (can revert LuxOS to stock / reset network to DHCP and lose the unit) -- needs a truly sacrificial console-attached unit. GUI selftest + 89 unit tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.35.0 |
||
|
|
c4c85d5b3d |
Round 17 B (part 1, CLI): timezone / change-password / factory-reset verbs (G10/G11/G12)
Round B wires the already-complete SupportsTimezoneConfig / ChangePassword /
FactoryReset backends to the toolkit. Part 1 adds the committed CLI surface
(GUI dialogs follow in part 2):
- `timezone <ip> [<IANA>]` - read (no arg) or set the timezone (gated on
supports_timezone_config: Braiins/VNish/ePIC).
- `passwd <ip> <newpass>` - change the web/API password (gated).
- `factoryreset <ip>` - factory reset (gated).
Each is capability-gated and the usage banner marks passwd/factoryreset DANGEROUS.
Verified live: timezone set/read/restore end-to-end on Braiins 10.4.1.83
(set America/Edmonton -> read back -> restore Etc/GMT, all Ok). change-password
and factory-reset are implemented + gated but NOT live-run: both are destructive
on the shared corpus (change-password breaks the default auth every other test
relies on; factory-reset can reset a unit to DHCP and lose its IP) -- they need a
dedicated sacrificial/console-attached unit to verify live.
Also: ci/compute-version.sh now treats crates/alkane-gui/src/bin/* as a UI change
so CLI-tool changes trigger a release.
Note: the VNish timezone READ errors ("Unrecognised VNish timezone GMT, expected
GMT+N/-N") is a pre-existing vnish backend parse quirk, separate from this wiring.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6
v0.34.0
|
||
|
|
25c8ccf1ff |
Round 17 A (part 2, G13): LuxOS pool ops privileged + removepool
The luxminer pool write commands (addgroup/groupquota/removegroup/addpool/ switchpool/enablepool/disablepool) sent privileged=false -> no session_id, which fails with "Missing session_id" on password-set LuxOS units (all other LuxOS writes are already privileged). Flipped all seven to privileged=true and added the missing removepool. asic-rs patch 0014. Verified no regression on default corpus unit 10.4.1.60 (set_pools_config still applies). The password-set failure needs a password-set LuxOS unit to verify live. Round A remaining: G8 (constraints/limits reads) and G14 (telemetry enrichment) are deferred to the rounds that consume them (G8 -> the tuning/cooling dialogs in C/D; G14 -> detail-panel/tooltip work) rather than built as unused plumbing now. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.33.0 |
||
|
|
307539543d |
Round 17 A (part 1): committed write CLI (G1) + best-share reads (G9) + parity roadmap
Executing the aftermarket config+scan parity plan (docs/aftermarket-parity-roadmap.md, from the ultracode writer/adversary workflow). This is Round A's foundation + first cheap win. G1 - miner_probe is now a committed config+scan CLI, not a local-only diagnostic. Added capability-gated write verbs: `light <ip> <on|off>`, `pause`, `resume`, `restart` (alongside the existing setpl/setpools/led), a READ vs WRITE usage banner warning that write verbs mutate (use the test-bed miners, not production), and best_share/session_best_share columns in `scan`. Verified: `light on`/`light off` on a LuxOS corpus unit -> Ok(true) (reversible). G9 - implement GetBestShare/GetSessionBestShare (were empty impls feeding two dead columns): Braiins v26_04 reads miner/stats -> /miner_stats/best_share; LuxMiner v1 reads summary -> /SUMMARY/0/Best Share + Best Session Share. Both reuse already-collected responses (no extra calls). asic-rs patch 0013. Verified live read-only: BOS 10.4.1.83 = 130601978 (no session on BOS); LuxOS 10.4.1.60 = 638881749/638881749, 10.4.1.67 = 497802665/497802665 -- exact API match. (WhatsMiner stock summary exposes no best-share on the tested units; deferred. The roadmap's BOS source "miner_stats" was a typo for the real "miner/stats" endpoint.) Also commits the parity roadmap (docs/) as the plan of record for rounds A-F. Round A remainder (G8 constraints reads, G13 LuxOS pool-op privileged fix, G14 telemetry enrichment) follows; G13 needs a password-set LuxOS unit to fully verify. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.32.0 |
||
|
|
561c50e5dc |
GUI round 16 (#4/#5/#6/#7): UMC OS colour, pool + restore dialog polish, new icons
- #4 ePIC miners report their firmware family as "UMC OS"; colour that row light blue in the Firmware column (was falling through to the theme default / black), matching the existing ePIC colour. - #5 Configure-pools dialog: widen the "+" buttons so the glyph shows; the dropdown "add" entry now reads "Add new"; user-added values can be removed via a "Remove saved value" submenu (pool_prefs::remove_saved); dropped the intro tidbit and narrowed the window. - #6 Restore-to-stock confirmation: the miner list is now a height-capped, scrollable text box instead of one unbounded label, so restoring hundreds at once stays usable. Removed the "Flash firmware..." right-click option for now (the in-app flash path is parked while it is reworked). - #7 Replaced the brain (control board) and fan Health icons with the new operator-supplied artwork, image-traced from PNG to SVG (potrace) and stripped of explicit fills so the Health column's per-state recolouring still applies. Headless selftest passes (fixtures render through the real widgets); all GUI unit tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.31.0 |
||
|
|
74b97162f5 |
GUI round 16 (#1/#2/#3): per-component health attribution + tooltips
Health icons and their hover tooltips now reflect the miner's actual per-component faults instead of a generic "faulted". - #1 Each Health icon's tooltip carries the specific fault text for THAT component (e.g. "Slot 0 error reading chip id.", "Power current error."), sourced from asic-rs's structured MinerMessage.component (HashBoard idx / PowerSupply / Fan / ControlBoard) rather than fragile string matching on the summary. New MinerRow `faults` field + FaultComponent/Fault types; scan.rs maps messages -> faults. - #2 A power-supply fault turns the bolt icon red, lists the PSU faults on its tooltip, and greys (not reds) every hashboard -- the boards can't be powered or tested, so they read "unpowered (PSU fault)". - #3 When the miner reports board-specific faults, ONLY the named boards are red; the rest stay green. A whole-miner stall zeroes every board's hashrate, which previously reddened working boards the error codes actually exonerate. Backend enabler (asic-rs patch 0012): the WhatsMiner V1 backend now sources faults from get_error_code (like V2/V3; its summary error fields are empty on H6OS), and a targeted repair fixes firmware that emits an invalid bare-pair error_code array. Verified live: 10.7.1.231 (PSU) greys its boards + shows the 4 PSU faults on the bolt; 10.8.1.234 (540/541/561) reds boards 1+2 and leaves board 3 green. Unit tests cover the attribution and the malformed-array repair; all suites pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6 |
||
|
|
75663f4c23 |
asic-rs: implement LuxOS set_power_limit (via profiles); document ePIC PSU gating
Follow-up to the Round 15 corpus. The toolkit reported supports_power_limit=false for LuxOS and ePIC; investigated both against the live corpus (S19j Pro). LuxOS was genuinely under-reporting: it tunes by discrete named profiles that each carry a Watts rating (the `profiles` RPC gives Step + Watts), applied via profileset -- pure frequency/voltage tuning, no PSU dependency. Implemented SetPowerLimit to map the requested watts to the highest profile whose Watts does not exceed it (or the lowest profile when the target is below all of them). The pure mapping (parse_profile_watts + select_profile_at_or_below) has a unit test. Live-verified: set_power_limit(2500) on an S19j Pro picked step -4 (2385 W) and the miner's active profile became 445MHz/-4. ePIC is left at false, now with a comment explaining why: PowerPlay's only true power-limit path is the PowerTune perpetual-tune algorithm, which the firmware gates on the PSU -- on a fixed-voltage Bitmain APW12 (S19j Pro) it answers "Power optimization is not supported by this PSU". That is a per-PSU runtime property the synchronous capability check cannot see, so reporting true would over-advertise on most reflashed Antminers. Hashrate tuning remains available via set_tuning_config. Captured as asic-rs patch 0011. luxminer + epic crate tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.30.0 |
||
|
|
9eb6a0f229 |
asic-rs: fix Antminer locate-LED (and reboot) on legacy web-UI firmware
Round 15 #7. The "flash the light" action failed on old (< 2023.07) Antminer firmware -- the LuCI web-UI generation, e.g. the Z15/Z15J. set_fault_light returned Ok(false) on live hardware while appearing to "succeed". Root cause (confirmed on a live Z15): that firmware's blink.cgi ignores the JSON body {"blink":"true"} the backend sent (answering 200 with an empty text/html body, so the JSON parse fails and the error is swallowed into Ok(false)). Its own blink.html POSTs a form field action=startBlink/stopBlink and reads state back via action=onPageLoaded -> {"isBlinking":bool}; the action handler also often answers 401/500 even on success, so HTTP status is not a reliable signal. Fix (v2020 backend): add a form-encoded POST helper; blink() now fires action=startBlink/stopBlink, ignores the unreliable status, and reads the real state back via onPageLoaded; set_fault_light reports success only when the observed isBlinking matches the request. The LightFlashing read is routed to the same path (get_blink_status.cgi is 404 here) and remapped to {"blink":bool}. Also switch reboot() from POST to GET to match the same firmware's reboot.html (the Restart action was affected); not live-fired, to avoid rebooting production miners. Captured as asic-rs patch 0010. Also teach ci/compute-version.sh that vendor/* and thirdparty/asic-rs/* are backend changes, so vendored fixes trigger a release. Verified live: Z15/Z15J now return Ok(true) with the light genuinely toggling; VNish (4 control boards) and WhatsMiner (H6OS/H616) unchanged; antminer tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.29.0 |
||
|
|
bafbd519bb |
GUI round 15 (part 2, #13): Settings menu, localization, Logs page
Add a Settings menu (the old Credentials toolbar button is now "Settings") containing Credentials, a Language sub-menu, and a Logs page. Localization (#13): a small i18n layer -- visible strings are wrapped in t("English") and looked up per language, falling back to English. Built-in translations for Mandarin, Russian, French, Spanish and Portuguese cover the toolbar buttons, KPI captions and table column headers; changing the language re-labels them live (columns via a table rebuild) and localizes dialogs as they open. The choice persists under the config dir and loads at startup. (Dialog-internal strings and status text are not yet fully translated -- the framework is in place to extend them.) Logs page (#13): an in-app activity log (scans, operations applied, export, language change) shown in Settings > Logs with Refresh / Clear. New wx-rs bridge: menu sub-menus (menu_append_submenu). Bridge patches 0002/0003 regenerated. Unit tests + headless selftest pass; the Chinese UI was verified rendering end to end. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.28.0 |
||
|
|
0d19e958f0 |
GUI round 15 (part 1): pool dropdowns, aligned health icons, export, more
Twelve of the round-15 items (the code items; the live-hardware flashing/ testing and the settings/localization/logs work follow separately): #1 Configure-pools: three pool rows (address, account, worker, password), each field with a "+" dropdown of presets (top-11 BTC pool stratums; worker-name placeholders) plus user-addable, persisted entries. Worker picks insert at the cursor rather than replacing. Writes up to three pools per miner via set_pools_config, worker expanded per unit. #2 PIC detection: replace the broken SSH i2cdump (it read 0x48, the temp sensor, not the PIC) with a model lookup -- no firmware exposes PIC over the network, so infer it from the model (noPIC: S19k Pro, S21 family, T21, explicit noPIC; PIC: rest of the S19 line). #4 Zoom: an editable percent field in the status bar (type an exact scale) and Ctrl +/- / Ctrl+0 to zoom in/out/reset. #5 Health icons align in fixed slots (power, control, fans, hashboards); miners with fewer fans/boards leave a gap so hashboards still line up. The max fan/board counts are computed parametrically from the fleet. #6 Light: the locate-light column is on by default (last), shown as a green-over-red beacon flashing quickly instead of a single amber dot. #8 The bottom-left status line is now scan-only; operation progress lives in the Health column (per miner) and failures in the bottom-right indicator. #9 / #10 / #11: drop the Credentials-dialog blurb; move the scan-ranges format help to a tooltip; make Restore-to-stock a plain confirmation (no typed keyword, no warning wall). #12 Z15 fans: the v2020 backend now reads fans from higher fan slots (the Z15 reports fan3/fan4 with fan1/fan2 = 0). Vendored patch 0009. #14 Export: an Export button writes every scanned data point to a CSV, one value per cell (lists expanded to indexed columns) -- complete and machine-readable, unlike the on-screen table. #15 Health tooltips are per-icon: hovering a specific fan or hashboard shows just that component's state, with errors attributed to the board that names them in the message. New wx-rs bridge surface: widget tooltips, save-file dialog, insert-at-cursor, status-bar zoom entry + Ctrl+/-, the light beacon + alignment-gap sentinels, and per-icon cell tooltips (bridge patches 0002/0003 regenerated). Unit tests (worker templates, PIC map, CSV export, health) + headless selftest pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.27.0 |
||
|
|
368f992404 |
GUI round 14: bigger health icons, table zoom, pool config, op progress
Seven items from the round-14 list: #1 Health icons: render bigger (nearly the full row height) and packed tighter so a row of component icons stays large and readable; the icon sizes also scale with the new table zoom. #2 Scan timeout: a per-miner scan timeout (asic-rs identification timeout) is now configurable in the Scan-ranges dialog and persisted, so slow miners can be given longer or fast scans sped up. #3 Table zoom: a slider in the bottom-right of the status bar scales the whole table together -- font, component icons, row height, and column widths -- from 50% to 250% (default 100%). Implemented in the wx bridge (no Rust round-trip); the custom SegmentRenderer draws its text in the control's scaled font so the coloured columns zoom like the native ones, and the zoom is re-applied after a column rebuild so it survives show/ hide/reorder. #4 Operation progress: while an operation runs on a miner (refresh, config/light/power/tuning action, firmware flash, restore-to-stock, access check), its Health cell shows the progress text ("refreshing…", "restarting…", "setting pools…", …) instead of the component icons, and reverts to icons when the operation finishes. #5 Remove the SSH PIC probe: the "Detect PIC (SSH)..." right-click flow and its dialog, background probe, and pic_probe module are removed. PIC state stays a best-effort model-string heuristic in the PIC column. #6 WhatsMiner access: WhatsMiners now show the locked/unlocked padlock in the Access column instead of a blank cell -- since round 12 #8b gave the V1/V2/V3 backends their control commands, the same capability heuristic the other brands use applies to WhatsMiner too (the token access check still refines a read-only unit to "locked"). #7 Configure pools: a right-click "Configure pools..." flow (gated on the new pools capability) with three fields -- pool address and account (required) and an optional worker name. The worker name expands per miner from case-insensitive placeholders scanned from each unit: {ip1}..{ip4}, {serial}, {mac} (colons removed), {nameplate-hr} (rated TH), {brand}, {model}, {submodel}, {cpu}, {cb}, {firmware}, {hostname}. Applied via asic-rs set_pools_config on a background thread reusing the action plumbing. wx-rs bridge patches 0002/0003 regenerated. No vendored asic-rs changes. Unit tests (component health, worker-template expansion) + headless selftest pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.26.0 |
||
|
|
ecdb2fab9d |
GUI round 13: health-icon column, Z15J algorithm, Credentials + Columns dialogs
Five items from the round-13 list: #4/#5 Z15 hashrate / unknown algorithm: a Z15J reports its model as "ANTMINER Z15J", which asic-rs' alias table did not recognise, so it deserialised to Unknown and its Sol/s hashrate was left un-bucketed as "unknown hashrate". Add a first-class Z15J model (Equihash) in the makes crate, plus a family-letter fallback in the v2020 backend so other un-tabled Antminer models still resolve an algorithm (Z->Equihash, L->Scrypt, S/T->SHA-256; ambiguous K/DR stay Unknown). Live-verified on the Z15/Z15J fleet. Carried as vendored patch 0008. #3 Component-health column: a new Health column (power, control board, each fan front-to-back, each hashboard) drawn as coloured icons -- grey unreachable, red down, yellow sub-optimal, green healthy -- replacing the Errors, Boards and Status columns. Left-clicking the header cycles the sort through the component facets (overall/power/fans/hashboards); the active facet shows as a tag beside the chevron. Errors move to the cell tooltip. Four operator-supplied Font Awesome icons registered via the existing SVG-in-cell renderer (new SHAPE_BOLT/BRAIN/FAN/CHIP sentinels). #2 Credentials: rename the "Set scan credentials" button to "Credentials" and make the per-firmware defaults the main dialog (the global "all firmwares" login is folded in as the top row). #1 Columns dialog: narrower; new Alphabetical and Categories sort buttons (via a Column::category grouping and a wxbr_reorder_set_order bridge fn); one mouse handler that does both drag-to-reorder and drag-to-rubber-band- select (the old BEGIN_DRAG binding had silently disabled rubber-band selection); Ctrl+A select-all and Ctrl/Shift+Up/Down extend-selection. wx-rs bridge patches 0002/0003 regenerated. Unit tests + headless selftest pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6v0.25.0 |
||
|
|
a75fe5ba52 |
GUI round 12 (#8a): restore aftermarket firmware to stock (right-click)
Adds a right-click "Restore to stock firmware..." action for aftermarket-firmware miners, behind a strong typed (RESTORE) confirmation that lists exactly which miners will be reverted. All three supported firmwares self-restore for free (the stock image is retained on-device; no image is uploaded), per the live-confirmed flows in the miner-firmware wiki: - VNish: POST /api/v1/unlock -> bearer -> POST /api/v1/firmware/remove (~3 s) - LuxOS: luxminer :4028 logon -> uninstallluxos (credential-free) - Braiins: SSH `uninstall.sh` (re-flashes the on-NAND stock backup) New crates/alkane-gui/src/restore.rs runs the revert on a background thread with a result channel and a fake-scan demo path; VNish password reuses the round 12 #13 per-firmware default, Braiins uses the saved SSH login. The menu item only appears when the selection includes a revertible firmware. Also fixes an event-routing bug introduced in #12/#8a: the log-viewer Close and restore OK/Cancel buttons were mistakenly handled in the MenuItem match instead of ButtonClicked, so they never fired -- this restores #12's log-viewer Close button too. Moved them to the ButtonClicked match. Verified under Xvfb + openbox: the menu item shows for VNish/LuxOS/Braiins rows; the confirm dialog renders the targets and typed gate; typing RESTORE runs the (fake) revert and closes the dialog; a wrong value is rejected and the dialog stays open. restore unit test + GUI self-test pass. NOTE: no live restore was run -- the designated test range 10.2.1.0/24 is currently empty, and production miners were not touched; the live flash awaits a unit in that range. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.24.0 |
||
|
|
f1fb2f8623 |
GUI round 12 (#8b, part 2): WhatsMiner control commands on the older V1 backend
asic-rs already implements the full WhatsMiner proprietary control+monitoring surface for V2/V3 (adjust_power_limit, set_led, update_pools, reboot, power_off/ power_on + all reads), so the modern fleet was already covered. The gap was the V1 backend (firmware < 2022-07-29): it declared no control commands, so older units could only be monitored and the GUI's capability actions never appeared. V1-era firmware speaks the same classic btminer token write API as V2 (the round 12 #8b part 1 access-probe handshake proved V1 accepts get_token + AES), so the V1 backend now reuses V2's proven RPC client for writes and implements the same control commands: set_fault_light, set_power_limit, update_pools, restart, pause, resume (HasAuth routes the admin password to the write RPC). Verified live on a V1 unit that the token AES key (password) is accepted; the write path is byte-identical to V2's live-validated one. Some V1 units keep their API in read-only mode and answer writes with Code 45 "can't access write cmd" until an operator enables write access via the WhatsMiner Tool -- a per-device setting; the backend now fails those gracefully instead of hiding the command. 40 whatsminer crate tests pass; GUI self-test passes. Patch queue adds 0007. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
a6d286a147 |
GUI round 12 (#12): scan miner logs over the firmware API (PIC + metrics)
Adds a right-click "View log (API)..." action that fetches a miner's log through
its firmware API and regex-scans it -- the "logs through API" path for PIC
detection and other metrics without SSH.
Per firmware (crates/alkane-gui/src/log_scan.rs, curl-based like the access
probe, stdout drained on a thread so a large log never deadlocks the pipe):
- VNish: POST /api/v1/unlock -> bearer -> GET /api/v1/logs/miner (the full miner
log: PSU init, per-chain chip detection, tuning, errors).
- Stock Antminer: GET /cgi-bin/log.cgi (digest); older models (Z15) that do not
serve it are reported as "no log over its web API".
- WhatsMiner: get_error_code on :4028 (unauthenticated) formatted as the log.
The summary regex reports PIC status ("not present (no-PIC miner)" / "present --
<version line>"), the latest per-chain chip-detection line, and recent errors
from the log history. Creds reuse the round 12 #13 per-firmware defaults (VNish
password, else "admin"; Antminer web login from the saved global creds).
Verified live: VNish S19j Pro (10.7.1.25) log -> "PIC: not present (log reports a
no-PIC miner)" + chains + recent errors; WhatsMiner (10.8.1.45) -> its active
error codes; Z15 (10.5.1.196) -> honest "no log over its web API". Unit tests for
the summary + a headless ALKANE_LOG_SCAN diagnostic; self-test passes.
Note: WhatsMiner fault codes already surface in the Errors column via asic-rs's
get_error_code -> messages; this adds the raw-log view and the PIC scan on top.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
v0.23.0
|
||
|
|
3ba3211371 |
GUI round 12 (#8b, part 1): correct WhatsMiner lock/access with the :4028 token API
WhatsMiners were shown "locked/unauthenticated" even with their default login. Two causes, both fixed: - The access probe hit an Antminer-only endpoint (/cgi-bin/get_miner_conf.cgi via curl --digest) for EVERY make; WhatsMiners answer 307 there, so the check was always indeterminate. Added a real WhatsMiner check over its :4028 token API: get_token (unauthenticated) -> derive the AES key from the password (md5crypt + SHA256, the same scheme the vendored asic-rs whatsminer backend uses) -> send a NON-mutating encrypted `summary`. An encrypted reply means the password was accepted (unlocked); a plaintext "enc json load err" means rejected (locked). probe_access now branches on the miner brand. Candidate passwords: a per-firmware override (round 12 #13) if set, else the factory defaults admin (V1/V2) and super (V3); all attempts are non-mutating so trying both is safe. - The scan-time lock guess (!caps.any_control()) falsely marked older WhatsMiners locked because they route to the asic-rs V1 backend, which declares no control commands even though the miner is controllable via the token API. WhatsMiner lock state is now left unknown at scan time and decided by the real probe. Live-verified on the fleet: older 20220422.18.REL units (10.8.1.176, 10.7.1.196) and newer M30S+ (10.8.1.45) all report UNLOCKED with the default admin login; the Antminer digest path is unchanged (Z15 -> 200 with root/root -> unlocked). Added a headless `ALKANE_ACCESS_PROBE="<ip> <make>"` diagnostic and a deterministic AES unit test. Self-test passes. Note: this is the access/lock half of #8b. Implementing the full reverse- engineered WhatsMiner command set (control + monitoring over the token API) is tracked separately. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.22.0 |
||
|
|
c8d5cd71c4 |
GUI round 12 (#10): Z15 realtime hashrate + control board, from data we can read
Stock Antminer Z15/Z15J were mis-handled: their control board showed blank and
their realtime hashrate looked absent next to the target. Root cause: the version
detector only read summary.cgi, which the Z15 does not serve (404), so version
detection returned nothing and AntMiner::new fell through to the newest backend,
which mis-parsed the miner. Fixes (all in the vendored asic-rs antminer crate,
verified live on 10.5.1.x):
- Backend routing: fall back to the cgminer :4028 `version` RPC's CompileTime when
summary.cgi is absent, so a 2020 Z15 routes to the v2020 backend instead of the
default newest one.
- Control board "read, not guess": the Z15 has no miner_type.cgi, so read the
control board from the kernel build string in get_system_info.cgi
("Linux 4.6.0-xilinx-..." -> Xilinx). The ControlBoardVersion field now carries
both the subtype and the kernel; the parser prefers the explicit subtype and
falls back to the kernel marker (xilinx/zynq -> Xilinx, aml/meson -> AMLogic).
- Malformed cgminer stats: the Z15 emits a stats array with no commas between its
objects (invalid JSON serde rejected, which dropped every stats-derived field).
Insert the missing separators before parsing (a no-op on valid responses),
restoring expected hashrate, fans, hashboards and uptime. Expected hashrate now
gets the same Equihash Sol/s reinterpretation as the realtime rate, so both read
on one scale (e.g. 144k / 320k) instead of expected reading ~1e6x larger.
Live result: Z15/Z15J now report control board "Xilinx" and realtime/expected
hashrate on the same scale. asic-rs antminer crate tests (35) pass; GUI self-test
passes. Vendored source + refreshed checksum committed; patch queue adds 0006.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
|
||
|
|
c74e8ebaca |
GUI round 12 (#6): fade the locate-light dot in and out
The Light column's flashing-light dot now pulses (fades between ~30% and 100% opacity over a ~1.6 s cycle) instead of sitting static, so a flashing locate light reads as live. - A distinct SHAPE_PULSE_DOT sentinel marks the fading dot, so only the locate light pulses -- the hashboard health dots stay solid. - A wxTimer in the bridge advances an animation phase and, each 100 ms tick, emits a row change so the custom cell renderer re-runs (a plain Refresh() does not re-invoke a custom renderer under wxGTK's cell caching); the renderer blends the dot toward its cell background by the phase. The timer runs only while a visible row's light is actually flashing -- fill_rows calls set_light_pulse(true/false) -- so there is no idle repaint loop. Verified under Xvfb: with the fixture whose locate light flashes and the Light column shown, the dot's measured intensity oscillates across frames (strong amber to a pale tint and back); with no flashing light the timer stays stopped. Self-test still passes. wx-rs patches 0002/0003 regenerated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.21.5 |
||
|
|
282f0b195c |
GUI round 12 (#13): editable per-firmware default scan credentials
Adds a per-firmware default-login editor so the operator can set the discovery credentials each firmware is probed with, rather than a single global pair. - credentials.rs: a per-firmware store (firmware-credentials.txt, 0600, one "name<TAB>user<TAB>pass" line per firmware) keyed by the asic-rs firmware registry's Display name -- the same key the factory uses for with_firmware_discovery_auth. A firmware_default_creds() table seeds the editor with each firmware's shipped default (mirrors the asic-rs backends' default_auth constants; asic-rs does not expose them at the entry level). - configured_factory() precedence is now: a per-firmware override wins; else the single global scan credential (unchanged back-compat) applies to every backend; else the backend's own default_auth. Nothing saved -> plain MinerFactory::new(). - UI: the "Set scan credentials..." dialog gains a "Per-firmware defaults..." button opening an editor that lists every firmware in the compiled-in registry (read at runtime, not hard-coded) with editable user/pass fields prefilled from the saved override or the shipped default. Save persists only rows that differ from the shipped default (so defaults evolve with asic-rs and the file stays minimal); Reset to defaults clears all overrides. Verified under Xvfb: the editor lists all 16 registry firmwares with correct default logins (AntMiner root/root, WhatsMiner admin/admin, VNish blank/admin, UMC OS blank/letmein, ...). Round-trip/permissions/precedence covered by a unit test (folded into the existing HOME-scoped credentials test to avoid a parallel HOME race); self-test still passes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.21.4 |
||
|
|
1857a9e1a0 |
GUI round 12 (#9, #11): SVG icons in table cells (access padlocks + status)
Adds an SVG-backed icon path to the table's segment renderer: the Rust side registers a raw SVG per shape sentinel (with its viewBox dims), and the renderer recolours it to the cell's segment colour, rasterises once per (sentinel, colour, height) and caches the bitmap. The recolour matches the KPI cards' svg_recolored (replace currentColor + inject a root fill so fill-less SVGs inherit the colour). - #9: the Access column padlocks now use the operator-supplied Font Awesome lock/unlock SVGs (red closed = view-only, green open = writable) instead of the hand-drawn vector padlock. The vector padlock remains as a fallback if the SVG is somehow unregistered. - #11: the Status column renders its KPI icon (green rabbit = hashing, amber turtle = slow, red cracked wine glass = not hashing, blue otter = paused) instead of the status text, matching the dashboard cards. An unrecognised status still falls back to coloured text. The status dots (hashboards, locate light) stay vector so the round-12 #6 fade can drive them later. Self-test updated (Status is now a shape cell, verified structurally like the other icon columns) and still passes. Verified under Xvfb: the Access column shows the FA padlocks and, with the Status column enabled, the four status icons render in their KPI colours. wx-rs patches 0002/0003 regenerated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.21.3 |
||
|
|
b7a77cbed8 |
GUI round 12 (#7): batch multi-select in the Columns and Filter menus
Both list widgets now support Excel-style batch selection so several rows can be toggled at once. - Filter menu value list (wxCheckListBox): was wxLB_SINGLE, so only one value could ever be selected. Switched to wxLB_EXTENDED -- ctrl-click, shift-click and rubber-band drag now select a range of values. Clicking any selected row's checkbox applies that new checked state to every selected row. - Columns menu list (wxListCtrl): already multi-select for the drag-reorder, but a checkbox toggle only affected the clicked row. A toggle on a row that is part of a multi-row selection now applies to every selected row, so several columns can be shown/hidden together. Re-entrancy guarded (CheckItem re-fires the event). Verified under Xvfb by driving the real dialogs: ctrl-click selects several columns and one checkbox click toggles them together; shift-click selects a range of filter values and one checkbox click toggles them together. Headless self-test still passes. wx-rs patch 0003 regenerated to match the edited bridge. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.21.2 |
||
|
|
606ae85781 |
GUI round 12 (#2): keep KPI units visible when the window shrinks
The two wide KPI cards (SHA-256 Hashrate, Est. power) carry a units-bearing value like "685 TH" / "21.3 kW". When the window was narrowed the row squeezed these cards below the width their value needs, clipping the trailing unit so it read as "21.3" with no "kW". Two fixes: - A nested wxPanel does not re-run its own sizer when its parent resizes it, so each card's value/label centring kept whatever slot width it had at the previous window size. on_resize now re-lays-out every card on each size event, so the value stays centred and gets its full best-size width allocation. - Raise the wide-card minimum width (150 -> 176) to fit a ~20px icon + a value up to "118.0 PH" + the card's side inset, and derive the collapse threshold from the real per-card minimums. The wide cards now either show their full units or drop out of the row cleanly -- they never render a clipped value. Verified under Xvfb: at 1050px all seven cards show "685 TH" / "21.3 kW" in full; at 960px the two wide cards collapse and the five count cards fill the row. Headless self-test still passes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.21.1 |
||
|
|
ad9b0dc868 |
GUI round 12 (batch 1): black hashrate value, Control Board label, blank placeholder serials, sensible WhatsMiner temps
- #1: the total-hashrate KPI value renders in the default (black) text colour instead of accent blue (and now dims with focus like the other neutral cards). - #4: the board-code column header is now "Control Board". - #5 (serial): placeholder serials ("N/A", "none", "null", ...) render as an empty cell instead of the literal placeholder. - #3: the Chip-temp cell now prefers each board's board/PCB temperature over the hottest-chip (outlet) reading. WhatsMiner's outlet_chip is the max chip temp (verified live: ~100C on the hottest board of a M30S+ VE40) which read alarmingly high and didn't match the ~60-79C the miner itself reports; the board temperature is the figure the miner's UI shows. Falls back to the chip temp when no board temp is reported. Applies to all makes for consistency. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.21.0 |
||
|
|
aaf049bbfc |
GUI round 11: use the exact potraced beehive for the Hashrate KPI icon
Replaced the hand-traced beehive with an exact potrace of the operator-supplied beehive.png (parent miner-firmware folder): potrace -s on the flattened bilevel bitmap, then the black fill rewritten to currentColor so it recolours to the Hashrate accent. Renders correctly via wxBitmapBundle::FromSVG (nanosvg). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
8b7b0c70b4 |
GUI round 11: hand-traced beehive KPI icon (Hashrate)
Replaced the placeholder skep with a beehive matching the operator's reference (branch + hook on top, stacked pill bands, centre entrance), as an outline SVG using stroke="currentColor" so it recolours to the Hashrate accent. Hand-traced because a chat-pasted raster can't be reached as a file for potrace; if the source raster is saved to disk later, it can be image-traced for an exact match. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
3ae80efdde |
GUI round 11: KPI icons match their card text colour + recolour SVGs without a fill
- Each KPI icon now uses its card's value colour (dropped the amber special-case), so the otter matches the Paused text colour and the lightning bolt matches the Est-power text colour, etc. - svg_recolored also injects a root fill: some Font Awesome exports (e.g. the Free otter) omit fill entirely and default to black, so replacing currentColor alone left them black. Now shapes without their own fill inherit the card colour. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.20.1 |
||
|
|
7901d82c4b |
GUI round 11 follow-ups: equal-height zebra, backdrop dimming, SVG KPI icons, boards sort
- Zebra stripe heights: the cell rect wx hands a custom renderer is shrunk to the content size in BOTH dimensions, so shape cells (dots) and text cells filled different-height bands -> unequal stripes across columns. SegmentRenderer now fills an over-sized rect (full column width + well beyond the row vertically); the cell DC clips it to the real cell, giving uniform full-row stripes. Verified in a screenshot. - Focus dimming: the treeview's own state flags don't carry GTK_STATE_FLAG_BACKDROP (that lives on the toplevel), so uncoloured segments (combined-cell slashes, target hashrate, "Stock") never dimmed. ThemedTextColour now reads the toplevel window's active state (gtk_window_is_active) and forces BACKDROP onto the style-context state when inactive, so those segments take the same dimmed themed colour the native columns do. - KPI icons: replaced the hand-drawn vectors with operator-supplied Font Awesome Pro SVGs (rabbit=hashing, turtle=slow, cracked wine glass=not hashing, otter=paused) plus matching in-repo bolt (power) and hive (hashrate) SVGs. New wxbr_svg_icon renders an SVG via wxBitmapBundle::FromSVG; the GUI recolours each icon's currentColor to the card's colour and sizes it to the SVG aspect ratio. Removed the old wxbr_kpi_icon path. - Boards column sort: it sorted by total board count (all ~3, so no visible order). It now sorts by the number of ONLINE (green) boards, total count as a tiebreaker, so units with dead/missing boards surface. wx-rs bridge/Rust changes mirrored into patches 0002 (widgets.rs) and 0003 (widgets_bridge.cpp) per ADR 0003. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.20.0 |
||
|
|
8f7aab3f80 |
GUI round 11 (live-miner items #5/#6b/#8/#11): control-board scan gaps, VNish partner build, CVITek PIC bus
All root-caused and fixed against the live fleet (read-only scans; no device state changed). asic-rs changes go through the vendored tree + thirdparty/asic-rs patch queue (0003-0005) with refreshed checksums, per ADR 0003. #5 (XIL/CVITek + WhatsMiner blank control board): - VNish reports the board in short form in /api/v1/info "platform": "cv" (CVITek), "xil" (Xilinx), "aml" (AMLogic); AntMinerControlBoard::parse matched only the full names, so CVITek/Xilinx boards were blank. Added CV/XIL. - Old M30S firmware (< 2022.7.29 -> v1 backend) omits summary's "CB Platform" and v1's parse mandatorily stripped an "ALLWINNER_" prefix. Added get_version /Msg/platform as a fallback source and made the strip optional. - Verified live: S19k Pro cv->CVITek, S19 xil->Xilinx, M30S+ VE40->H6OS. #6b/#11 (VNish partner / shared-devfee build): - The partner build shows as /api/v1/info "build_name" ("WildRose", "vnishreturn"). The VNish backend (v1_2_0 + v1_3_0) now reads /build_name and combines it with the /fw_version number, so firmware_version reads e.g. "WildRose 1.2.7". Verified live on S19j Pro / S19k Pro. #8 (hashboard PIC detection): - pic_probe tried i2c-1/i2c-0 for CVITek, but a live VNish CVITek S19k Pro exposes the hashboard MCU on i2c-3 (i2cdump 0x48 = period-8 -> PIC). Broadened bus_candidates (cvi->[3,4,1,0], aml->[1,3,4,0], bb->[0,1,3,4], else->[1,0,3,4]); probe_pic stops at the first bus that classifies. The classify logic was already correct + unit-tested; only the bus map was wrong. The GUI picks up #5/#6b automatically through asic-rs (CPU/Board columns now populate for VNish CVITek/Xilinx and old M30S; FW Version shows the partner build); #8 is fixed in the GUI's own pic_probe. The miner_probe diagnostic's local-only mutation modes are left uncommitted as before. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
e593548746 |
GUI round 11 (#4): drag-reorder + multi-select columns dialog (no up/down buttons)
Replaces the columns dialog's wxRearrangeCtrl (checkboxes + up/down buttons) with a wxListCtrl-based list (new wxbr_reorder_list / Widget::reorder_list): - No up/down buttons; rows are reordered by dragging. - Native multi-select: Shift/Ctrl-click and rubber-band drag. - Keeps per-row checkboxes for show/hide; same [idx | !idx] order encoding, so apply_columns is unchanged. Drag-reorder is implemented by recording the selected rows' base indices on wxEVT_LIST_BEGIN_DRAG and moving that group to the row under the cursor on the following mouse-up (no real DnD loop is started, so the mouse-up still arrives). Verified: the dialog opens without crashing and renders the checkable, button- free list (headless click test). The drag and shift/ctrl multi-select interactions are not headlessly simulatable and need interactive confirmation. Bridge + Rust mirrored into patches 0002 (widgets.rs) and 0003 (widgets_bridge.cpp) per ADR 0003. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.19.2 |
||
|
|
2fd433c3b0 |
GUI round 11 (#15): drawn icons on the KPI cards
Each KPI card's value now leads with a small vector icon drawn into a transparent bitmap via wxGraphicsContext (new wxbr_kpi_icon -> Widget::kpi_icon): rabbit = Hashing, turtle = Slow, broken wine glass = Not hashing, otter = Paused, hive = SHA-256 Hashrate, lightning bolt = Est. power; Total has none. The icon takes the card's value colour (amber on the neutral Est. power card so the bolt reads). The icons are simple flat silhouettes so they render at ~22px without external assets (no emoji/pictographs in source). The rabbit, turtle, wine glass, hive, and lightning read clearly; the otter is the least distinct at this size. Bridge + Rust mirrored into patches 0002 (widgets.rs) and 0003 (widgets_bridge.cpp) per ADR 0003. Self-test passes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.19.1 |
||
|
|
5399f9fc49 |
GUI round 11: fix headless self-test after Status dropped from default columns
Round 11 #12 removed the Status column from the default view, but the runtime self-test (CI's "Headless UI self-test", separate from cargo test) read each miner's status from the displayed Status cell -- now absent -- so three status spot-checks failed and the self-test binary exited non-zero, failing CI. Status is a model property, so the checks now read it straight from the row (status_of(row) = rows[view_idx[row]].status()) instead of a displayed cell. Self-test passes (exit 0). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.19.0 |
||
|
|
6b4961d7bc |
GUI round 11 (#2): collapse the two wide KPI cards when the window is too narrow
When the window is narrowed past the width needed to fit all seven KPI cards at their minimum size, the two wide cards (SHA-256 Hashrate, Est. power) are hidden so the five miner-count cards fill the row; they return when there is room again. The five count cards still floor the window's minimum width (unchanged). Adds a resize event to the wx-rs bridge (WxEV_SIZE -> WxEventKind::Sized, p1 = client width) and a wxbr_sizer_show helper to hide/restore a sizer child and reclaim its space. The main panel binds it; App::on_resize toggles the two cards on a state change only (no per-drag relayout thrash). Bridge + Rust changes mirrored into patches 0002 (widgets.rs) and 0003 (widgets_bridge.cpp) per ADR 0003. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
fc7c665166 |
GUI round 11 (#9): option to hide columns with no scanned values
The Columns dialog gains a "Hide columns with no scanned values" checkbox. When on, columns whose cell is blank for every current row are hidden from the table. It is non-destructive: the hiding is applied at table-build time via a new App::table_columns() (used by every table-path caller in place of view.display_columns()), so clearing the option restores the columns and the underlying column order/visibility is never mutated. IP is never hidden, and nothing is hidden before the first scan (no rows -> nothing empty). Note: while the option is hiding columns, drag-reorder of the header is a no-op (the reorder validates against the full visible set); turn the option off to reorder. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
ae437c0d24 |
GUI round 11 (batch 1): default columns, control-board split cleanup, Stock/Env fixes, relative sort, consistent zebra + focus-dimming, hashboard/light dots, access icon
Table/model (Rust): - #12: default columns are now IP, Model, Errors, Hashrate, Power, Chip temp, Firmware, CPU, Boards, Access, in that display order (initial ViewState and the built-in "Default" preset both updated). - #14: removed the Control board column (CPU + Board replace it); the underlying control-board string stays on MinerRow for the SSH PIC probe. - #6 (part 1): firmware family strips the vendor word asic-rs prepends on stock firmware ("AntMiner Stock" -> "Stock"), moving it into FW Version. - #17: air-cooled miners' ambient reading routes to a new "Env temp" column instead of "Fluid temp" (asic-rs reports ambient in its fluid field and has no cooling-type flag; cooling type is inferred from the model name). - #16: relative-hashrate (actual/expected) sort -- the Hashrate header cycles absolute-asc/desc then relative-asc/desc, with right-click menu entries; HashrateRel is a sort-only pseudo-column. Rendering (wx-rs SegmentRenderer bridge, mirrored to patches/0003 per ADR 0003): - #3: the per-row zebra background now fills the whole column-wide cell (wx shrinks a custom renderer's rect to the content size, so the earlier fill covered only the text; Render now fills GetOwner()->GetWidth() and wxGTK clips it to the cell). - #1/#7: uncoloured segments (combined-cell slashes, "Stock" firmware) take the tree widget's themed text colour at its live GTK state, so they dim on window-backdrop like the native cells. - #10: the Boards column renders per-hashboard status dots (green hashing / red faulted / grey undetected, board 1 rightmost); the Light column renders a yellow locate dot while flashing. - #13: the Access column renders a padlock icon (green open = writable, red closed = view-only) instead of "locked"/"unlocked" text. Shapes draw from control-char sentinels (never emoji/pictographs), font- independent. Self-test verifies the icon columns structurally. 82 unit tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
b343746718 |
GUI round 10 (batch 2): consistent zebra on custom columns + neutral KPIs dim with focus
R10.1 (zebra consistency): wxGTK does not paint a custom renderer's cell background, so the per-row zebra colour set via GetAttrByRow appeared on the native columns but not on the SegmentRenderer columns (Hashrate, Chip temp, Firmware, ...), making the striping look inconsistent. SegmentRenderer::Render now paints the row's GetAttr() background itself (skipping selected rows, which the control already highlights) so every column stripes identically. R10.2 (focus dimming): the Total-miners and Est-power KPI cards and the plain segments in combined cells forced an explicit foreground colour, so they did not dim when the window lost focus like the rest of the dashboard. mk_card and repaint_theme now leave ColorKind::Neutral cards on the default text colour, and SegmentRenderer draws an uncoloured segment with the DC's current text foreground (falling back to wxSYS_COLOUR_WINDOWTEXT) instead of a hardcoded system colour. The widgets_bridge.cpp edit is mirrored into the wx-rs patch queue (patches/0003-widget-bridge-cpp.patch) per ADR 0003. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.18.1 |
||
|
|
aa75031112 |
GUI round 10 (batch 1): firmware family colour + FW Version, CPU/Board split, per-board chip temp, error count
#3 Firmware column now shows the firmware FAMILY, coloured (Stock=default, VNish=green, Braiins=purple, LuxOS=gold, BixBit=pink, ePIC=light-blue, Hive=orange, Alkane=navy -- Alkane wired for our future scannable firmware); the version moves to a new "FW Version" column. #4 Control board split into a "CPU" column (AML/CVI/BBB/XIL, WhatsMiner H3/H6/H616) and a "Board" column (C76/C88/CBE/C49/C55, CB2/CB4/CB6). Fixed the AMLogic 140mm heuristic so S21 Pro -> CBE (was C76). The combined ControlBoard column stays available (hidden). #5 "Worker" now shows just the rig name; a new "Pool account" column holds the account (pool username "account.rig" split on the first dot). #6 Chip temp shows per-hashboard temps as integers ("77 / 64 / 74"), each coloured on the blue-to-red scale, falling back to the integer average. #7 Errors column shows just the count (a number, even for one; no "errors" word); the hover tooltip lists the messages, now concise -- Info dropped, the repetitive "[Error]"/"[Warning]" prefixes stripped, and duplicates collapsed. Default profile updated to show Firmware/FW Version/CPU/Board/Errors. 80 offline tests pass; headless self-test PASS; screenshot-verified the colours, splits, per-board temps and error counts in the offline demo. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.18.0 |
||
|
|
8eb9a2caad |
GUI round 10 (#8): Z15/Z15J Equihash hashrate shows the correct SI prefix (k, not T)
Root-caused and verified against the live fleet. An Antminer Z15 shows its
hashrate as e.g. "288T" when it is really ~288 kSol/s ("288k"). Equihash miners
report a Sol/s rate in the cgminer "GHS" key, but asic-rs AntMiner parse_hashrate
takes the unit from the key name ("GHS" -> GigaHash), scaling the value 1e9x too
large. The value is a raw Sol/s count, so for Equihash use the base Hash unit;
the toolkit`s SI-prefixing then yields "288k".
Matched by algorithm, and by "Z15" model name for the Z15J (which asic-rs leaves
algo Unknown). Fixed in both the v2020 and v2023_07 AntMiner backends, via
asic-rs patch queue 0002. Verified live: Z15 288T -> ~288k, Z15J 138T -> ~110k.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
|
||
|
|
9e2b453eb5 |
GUI round 9 (#4 v2): WhatsMiner v2 power-limit now reports success on the apply-restart
Follow-up to
|
||
|
|
3530d67a5c |
GUI round 9 (#4): fix WhatsMiner power-limit (v3 auth/param) + asic-rs patch queue
Round-9 #4 -- "the power-limit on the WhatsMiners doesn't apply properly" -- root-caused and verified against the live fleet, then fixed in vendored asic-rs via a new patch queue (ADR 0003). Root cause: asic-rs routes a WhatsMiner to its v3 (WhatsMinerOS) backend when the firmware date is >= 2024-11-01. The v3 privileged power-limit write (command "set.miner.power_limit" on port 4433) authenticated against account "super" but hashed the token with the WEB/admin password, and sent the watt value as a float -- so the miner rejected every write with "invalid json or password is wrong". asic-rs then swallowed that (Ok(data.is_ok()) -> Ok(false)) so the GUI showed "refused" with no reason. (Older miners, fw < 2024-11-01, use the v2 "adjust_power_limit" path, which restarts the miner on a change -- see below.) Fix (thirdparty/asic-rs/patches/0001): - v3 set_auth: the "super" account's token password is a SEPARATE v3 credential (factory default "super"), NOT the web/admin password carried by `auth`; use "super". The web password still drives the v2 (admin) path. - v3 set_power_limit: send the watts as a bare integer (a float trips the firmware's "invalid json" parser). - v2 + v3: propagate the RPC error with `?` instead of swallowing it to Ok(false), so a real failure reaches the round-9 bottom-right error indicator with the miner's own message. Verified on a live M30S+ (fw 20241108, api 3.0.1) via a read-only 4028 capture/restore harness: the fixed request returns {"code":0,"msg":"ok"}; asic-rs set_power_limit now returns Ok(true) and the miner applies the limit (it restarts to re-tune, ~10 min ramp -- expected WhatsMiner behaviour). Matches the pyasic and HashSource whatsminer-api-3 references. All test miners were returned to their prior configured limit. asic-rs patch-queue mechanism (ADR 0003 updated): asic-rs is cargo-vendored, so in-place edits are documented as a numbered patch under thirdparty/asic-rs/ plus a checksum-refresh helper and scripts/apply-asic-rs-patches.sh for re-vendoring. The committed vendor/ tree has the patch applied and its .cargo-checksum.json refreshed, so builds need nothing extra (CI builds fresh; a note documents the local `cargo clean -p` cargo-caching gotcha). Known follow-up: the v2 backend (fw < 2024-11-01) reaches the miner via "adjust_power_limit" but a changed value restarts the miner and the in-restart status check reports failure; whether it applies correctly needs its own verification. The error-propagation change surfaces that honestly meanwhile. Compile-checked (release + tests); 79 offline tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.17.0 |
||
|
|
3ac4e104a0 |
GUI round 9 (#3): mask power-limit on VNish; naming passthrough fix; live-scan probe tool
#3 (power-limit shown where it shouldn't be): asic-rs advertises supports_set_power_limit = true unconditionally for whole firmware families, VNish included. Per operator guidance -- VNish Antminers should not expose the power-limit control, while Braiins keeps it -- mask the capability for VNish firmware in to_row; every other backend keeps asic-rs's answer. Verified against the live fleet (all VNish Antminers report true; Antminer stock Z15 / S21Pro already report false). #11 follow-up: asic-rs Unknown-model passthroughs carry the raw vendor string with the brand still in it (seen live: a NoPIC S19 as "ANTMINER S19 (88)"). Drop a redundant leading brand word in clean_antminer so the Model column never repeats the Brand column: "ANTMINER S19 (88)" -> "S19 (88)". New read-only diagnostic: crates/alkane-gui/src/bin/miner_probe.rs -- a standalone asic-rs CLI (`miner_probe scan <cidr>...`) that reuses the GUI's MinerFactory + saved-credential setup to inventory a range (ip/make/firmware/ model/control-board/watts/supports_power_limit/supports_tuning) without going through the wx event loop. Used to validate the round-9 naming + capability work against real hardware; kept as a hardware-check tool. It performs no mutations (asic-rs exposes no power-limit read-back, so exact restore-to-prior cannot be guaranteed from it alone). naming unit tests + headless self-test PASS; 80 offline tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bhv0.16.0 |