diff --git a/crates/alkane-gui/src/bin/miner_probe.rs b/crates/alkane-gui/src/bin/miner_probe.rs index 4a5d6b1b..387a5030 100644 --- a/crates/alkane-gui/src/bin/miner_probe.rs +++ b/crates/alkane-gui/src/bin/miner_probe.rs @@ -8,15 +8,26 @@ //! Scan the given subnets and print, per responder (TSV): //! ip make firmware model_id control_board watts supports_power_limit supports_tuning //! -//! Mutation modes (setpl) are intentionally NOT included here: asic-rs exposes -//! no read-back of a miner's configured power limit, so an exact -//! restore-to-prior-state cannot be guaranteed from this tool alone. +//! miner_probe setpl +//! Apply a power limit to ONE miner and print the setter's result. This +//! MUTATES the device -- capture and restore its prior configured limit +//! separately (e.g. WhatsMiner cgminer API on :4028 reports "Power Limit" +//! read-only). asic-rs has no power-limit read-back, so this tool cannot +//! restore on its own. +//! +//! Credentials come from ~/.config/alkane-toolkit/scan-credentials.txt, or from +//! ALKANE_PROBE_USER / ALKANE_PROBE_PASS if set (so a test can authenticate +//! without touching the app's saved config). use asic_rs::MinerFactory; use asic_rs::core::traits::miner::MinerAuth; use futures_util::StreamExt; +use measurements::Power; fn load_creds() -> Option<(String, String)> { + if let (Ok(u), Ok(pw)) = (std::env::var("ALKANE_PROBE_USER"), std::env::var("ALKANE_PROBE_PASS")) { + return Some((u, pw)); + } let home = std::env::var("HOME").ok()?; let p = std::path::PathBuf::from(home) .join(".config/alkane-toolkit/scan-credentials.txt"); @@ -51,7 +62,7 @@ async fn scan(cidrs: &[String]) { } }; } - println!("ip\tmake\tfirmware\tmodel_id\tcontrol_board\twatts\tsupports_power_limit\tsupports_tuning"); + println!("ip\tmake\tfirmware\tfw_version\tmodel_id\tcontrol_board\twatts\tsupports_power_limit\tsupports_tuning\tbest_share\tsession_best_share"); let mut stream = f.scan_stream_with_ip(); let mut found = 0usize; while let Some((ip, miner)) = stream.next().await { @@ -63,10 +74,14 @@ async fn scan(cidrs: &[String]) { .as_ref() .map(|c| c.to_string()) .unwrap_or_default(); + let fw_ver = data.firmware_version.clone().unwrap_or_default(); + let bs = data.best_share.map(|v| format!("{v:.0}")).unwrap_or_default(); + let sbs = data.session_best_share.map(|v| format!("{v:.0}")).unwrap_or_default(); println!( - "{ip}\t{}\t{}\t{}\t{}\t{watts:.0}\t{}\t{}", + "{ip}\t{}\t{}\t{}\t{}\t{}\t{watts:.0}\t{}\t{}\t{bs}\t{sbs}", data.device_info.make, data.device_info.firmware, + fw_ver, data.device_info.model, cb, m.supports_set_power_limit(), @@ -78,6 +93,261 @@ async fn scan(cidrs: &[String]) { eprintln!("scan complete: {found} miner(s) responded"); } +/// Dump raw hashrate value/unit/algo (and expected) as asic-rs reports them, +/// to diagnose the SI-prefix handling for non-SHA algorithms (round-9 #8, Z15). +async fn hashrate(cidrs: &[String]) { + let mut f = factory(); + for c in cidrs { + f = match f.with_subnet(c) { + Ok(f) => f, + Err(e) => { + eprintln!("bad subnet {c}: {e}"); + return; + } + }; + } + println!("ip\tmodel\talgo\thr_value\thr_unit\texp_value\texp_unit"); + let mut stream = f.scan_stream_with_ip(); + while let Some((ip, miner)) = stream.next().await { + if let Some(m) = miner { + let data = m.get_data().await; + let hr = data.hashrate.as_ref(); + let exp = data.expected_hashrate.as_ref(); + println!( + "{ip}\t{}\t{}\t{}\t{}\t{}\t{}", + data.device_info.model, + hr.map(|h| h.algo.to_string()).unwrap_or_default(), + hr.map(|h| h.value).unwrap_or(0.0), + hr.map(|h| format!("{:?}", h.unit)).unwrap_or_default(), + exp.map(|h| h.value).unwrap_or(0.0), + exp.map(|h| format!("{:?}", h.unit)).unwrap_or_default(), + ); + } + } + eprintln!("hashrate dump complete"); +} + +async fn setpl(ip_s: &str, watts: f64) { + let ip: std::net::IpAddr = match ip_s.parse() { + Ok(ip) => ip, + Err(e) => { + eprintln!("bad ip {ip_s}: {e}"); + return; + } + }; + let f = factory(); + match f.scan_miner(ip).await { + Ok(Some(m)) => { + let data = m.get_data().await; + eprintln!( + "target {ip}: {} {} {} (supports_power_limit={})", + data.device_info.make, + data.device_info.firmware, + data.device_info.model, + m.supports_set_power_limit() + ); + match m.set_power_limit(Power::from_watts(watts)).await { + Ok(v) => println!("set_power_limit({watts:.0} W) -> Ok({v})"), + // {e:#} prints the full anyhow chain (the miner's own Msg is the + // root cause), which is exactly what we need to characterise #4. + Err(e) => println!("set_power_limit({watts:.0} W) -> Err: {e:#}"), + } + } + Ok(None) => eprintln!("no miner at {ip}"), + Err(e) => eprintln!("scan_miner {ip}: {e}"), + } +} + +/// LOCAL-ONLY: toggle a miner's locate light on then back off, to validate the +/// (token-authenticated) write path safely -- the LED is reversible and does not +/// disturb mining. Restores the light to off afterward. +async fn led(ip_s: &str) { + let ip: std::net::IpAddr = match ip_s.parse() { + Ok(ip) => ip, + Err(e) => { + eprintln!("bad ip {ip_s}: {e}"); + return; + } + }; + let f = factory(); + match f.scan_miner(ip).await { + Ok(Some(m)) => { + let data = m.get_data().await; + eprintln!( + "target {ip}: {} {} {} (supports_set_fault_light={})", + data.device_info.make, + data.device_info.firmware, + data.device_info.model, + m.supports_set_fault_light() + ); + match m.set_fault_light(true).await { + Ok(v) => println!("set_fault_light(on) -> Ok({v})"), + Err(e) => println!("set_fault_light(on) -> Err: {e:#}"), + } + let after_on = m.get_data().await.light_flashing; + println!(" light_flashing after on = {after_on:?}"); + // Restore: turn the locate light back off. + match m.set_fault_light(false).await { + Ok(v) => println!("set_fault_light(off) [restore] -> Ok({v})"), + Err(e) => println!("set_fault_light(off) [restore] -> Err: {e:#}"), + } + let after_off = m.get_data().await.light_flashing; + println!(" light_flashing after off = {after_off:?}"); + } + Ok(None) => eprintln!("no miner at {ip}"), + Err(e) => eprintln!("scan_miner {ip}: {e}"), + } +} + +/// Apply a single "default" pool group to ONE miner via asic-rs set_pools_config +/// (the same path the GUI's pool feature uses). MUTATES the device's pool config. +/// Usage: setpools +async fn setpools(ip_s: &str, url: &str, user: &str, pass: &str) { + use asic_rs::core::config::pools::{PoolConfig, PoolGroupConfig}; + use asic_rs::core::data::pool::PoolURL; + let ip: std::net::IpAddr = match ip_s.parse() { + Ok(ip) => ip, + Err(e) => { + eprintln!("bad ip {ip_s}: {e}"); + return; + } + }; + let f = factory(); + match f.scan_miner(ip).await { + Ok(Some(m)) => { + let data = m.get_data().await; + eprintln!( + "target {ip}: {} {} {} (supports_pools_config={})", + data.device_info.make, + data.device_info.firmware, + data.device_info.model, + m.supports_pools_config() + ); + let group = PoolGroupConfig { + name: "default".to_string(), + quota: 1, + pools: vec![PoolConfig { + url: PoolURL::from(url.to_string()), + username: user.to_string(), + password: pass.to_string(), + }], + }; + match m.set_pools_config(vec![group]).await { + Ok(v) => println!("set_pools_config -> Ok({v})"), + Err(e) => println!("set_pools_config -> Err: {e:#}"), + } + // Read back the configured pools to verify. + let after = m.get_data().await; + for (i, p) in after.pools.iter().flat_map(|g| g.pools.iter()).enumerate() { + let u = p.url.as_ref().map(|u| u.to_string()).unwrap_or_default(); + let acct = p.user.clone().unwrap_or_default(); + println!(" pool[{i}] {u} user={acct}"); + } + } + Ok(None) => eprintln!("no miner at {ip}"), + Err(e) => eprintln!("scan_miner {ip}: {e}"), + } +} + +/// READ-ONLY: dump a miner's structured messages (code + severity + component + +/// text) plus its per-board data, to design health/error attribution. +async fn msgs(ip_s: &str) { + let ip: std::net::IpAddr = match ip_s.parse() { + Ok(ip) => ip, + Err(e) => { + eprintln!("bad ip {ip_s}: {e}"); + return; + } + }; + let f = factory(); + match f.scan_miner(ip).await { + Ok(Some(m)) => { + let d = m.get_data().await; + println!( + "{ip}: {} {} hashboards={:?} expected={:?}", + d.device_info.firmware, + d.device_info.model, + d.hashboards.len(), + d.expected_hashboards, + ); + for b in d.hashboards.iter() { + println!( + " board position={} hashrate={:?} chips={:?}/{:?}", + b.position, + b.hashrate.clone().map(|h| h.as_unit(asic_rs::core::data::hashrate::HashRateUnit::TeraHash).value), + b.working_chips, + b.expected_chips, + ); + } + if d.messages.is_empty() { + println!(" (no messages)"); + } + for msg in &d.messages { + println!( + " MSG code={} sev={:?} comp={:?} :: {}", + msg.code, msg.severity, msg.component, msg.message + ); + } + } + Ok(None) => eprintln!("no miner at {ip}"), + Err(e) => eprintln!("scan_miner {ip}: {e}"), + } +} + +/// Set the locate light to an explicit on/off state (round 16/G1). Capability-gated. +async fn light(ip_s: &str, on: bool) { + let Ok(ip) = ip_s.parse::() else { + eprintln!("bad ip {ip_s}"); + return; + }; + match factory().scan_miner(ip).await { + Ok(Some(m)) => { + if !m.supports_set_fault_light() { + eprintln!("{ip}: locate light not supported"); + return; + } + match m.set_fault_light(on).await { + Ok(v) => println!("{ip} light {} -> Ok({v})", if on { "on" } else { "off" }), + Err(e) => println!("{ip} light -> Err: {e:#}"), + } + } + Ok(None) => eprintln!("no miner at {ip}"), + Err(e) => eprintln!("scan_miner {ip}: {e}"), + } +} + +/// Run a simple lifecycle action (restart / pause / resume) on one miner (G1). +/// Capability-gated; MUTATES (pause/restart disrupt mining -- run on the test bed). +async fn lifecycle(ip_s: &str, verb: &str) { + let Ok(ip) = ip_s.parse::() else { + eprintln!("bad ip {ip_s}"); + return; + }; + match factory().scan_miner(ip).await { + Ok(Some(m)) => { + let res = match verb { + "restart" if m.supports_restart() => m.restart().await, + "pause" if m.supports_pause() => m.pause(None).await, + "resume" if m.supports_resume() => m.resume(None).await, + "restart" | "pause" | "resume" => { + eprintln!("{ip}: {verb} not supported"); + return; + } + _ => { + eprintln!("unknown lifecycle verb {verb}"); + return; + } + }; + match res { + Ok(v) => println!("{ip} {verb} -> Ok({v})"), + Err(e) => println!("{ip} {verb} -> Err: {e:#}"), + } + } + Ok(None) => eprintln!("no miner at {ip}"), + Err(e) => eprintln!("scan_miner {ip}: {e}"), + } +} + fn main() { let args: Vec = std::env::args().collect(); let rt = match tokio::runtime::Builder::new_current_thread().enable_all().build() { @@ -89,8 +359,47 @@ fn main() { }; match args.get(1).map(String::as_str) { Some("scan") if args.len() >= 3 => rt.block_on(scan(&args[2..])), + Some("hashrate") if args.len() >= 3 => rt.block_on(hashrate(&args[2..])), + Some("setpl") if args.len() == 4 => { + let watts: f64 = args[3].parse().unwrap_or(-1.0); + if watts <= 0.0 { + eprintln!("watts must be a positive number"); + std::process::exit(2); + } + rt.block_on(setpl(&args[2], watts)); + } + Some("led") if args.len() == 3 => rt.block_on(led(&args[2])), + Some("light") if args.len() == 4 && matches!(args[3].as_str(), "on" | "off") => { + rt.block_on(light(&args[2], args[3] == "on")) + } + Some(v @ ("restart" | "pause" | "resume")) if args.len() == 3 => { + rt.block_on(lifecycle(&args[2], v)) + } + Some("setpools") if args.len() == 6 => { + rt.block_on(setpools(&args[2], &args[3], &args[4], &args[5])) + } + Some("msgs") if args.len() == 3 => rt.block_on(msgs(&args[2])), _ => { - eprintln!("usage: miner_probe scan [...]"); + eprintln!( + "miner_probe -- asic-rs config + scan CLI for the alkane-toolkit fleet\n\ + \n\ + READ (safe on any miner):\n\ + \x20 scan [...] discover + telemetry (TSV)\n\ + \x20 hashrate [...] raw hashrate/algo dump\n\ + \x20 msgs structured faults + per-board data\n\ + \n\ + WRITE (MUTATES the miner -- use the test-bed miners, not production):\n\ + \x20 light set the locate light\n\ + \x20 led toggle locate light on then off (reversible test)\n\ + \x20 pause pause mining\n\ + \x20 resume resume mining\n\ + \x20 restart restart/reboot\n\ + \x20 setpl set power limit\n\ + \x20 setpools set the default pool group\n\ + \n\ + Each write verb is capability-gated (skips miners that do not support it).\n\ + Credentials: ALKANE_PROBE_USER/PASS or ~/.config/alkane-toolkit/scan-credentials.txt." + ); std::process::exit(2); } } diff --git a/docs/aftermarket-parity-roadmap.md b/docs/aftermarket-parity-roadmap.md new file mode 100644 index 00000000..1a7c371d --- /dev/null +++ b/docs/aftermarket-parity-roadmap.md @@ -0,0 +1,517 @@ +# Aftermarket Toolkit Config + Scan Parity Roadmap + +Scope: configuration and scanning/telemetry features only. Firmware flashing/installation +flows are out of scope except where a toolkit exposes config as part of them. This is a +plan document only; no repo source was edited and no live miner was mutated in producing it. + +Repo: `/home/noah/Ultron/projects/miner-firmware/alkane-toolkit` + +Sources merged: baseline audit of alkane-toolkit today, plus gap-closed per-toolkit specs for +Braiins toolbox + Braiins OS REST API, LuxOS installer + luxminer :4028 JSON API, ePIC +rig-runner + PowerPlay/UMC OS REST API (:4028), and WhatsMiner (btminer :4028 read + :8889 / +4028-token write path, WhatsMinerTool feature surface). + +--- + +## 1. Executive summary + +Our toolkit already covers the universal fleet-management basics on every make: discovery and +make/model/firmware identification, core live telemetry (hashrate, expected hashrate, wattage, +efficiency, temps, fans, pools, messages, uptime, locate light), and seven capability-gated +write actions (fault light, pause, resume, restart, set power limit, set tuning percent, +configure pools). Those write actions are wired into the GUI right-click menu but are almost +entirely absent from the committed CLI (`miner_probe` at git HEAD has only `scan`; setpl / led / +setpools / msgs / hashrate are uncommitted local-only additions). + +Where we fall short of the aftermarket toolkits is the deep configuration surface each firmware +exposes: structured autotuning (power/hashrate target, named presets, per-board overclock), +cooling/thermal configuration, fan control, DPS / perpetual-tune / ATM auto-scaling, network +config, timezone, change-password, factory reset, advanced keyed settings, and the richer scan +reads that feed those dialogs (constraints/limits tables, PSU info, per-chip health/frequency, +best-share, network config read). A recurring pattern: the asic-rs backend already implements a +setter (change_password, factory_reset, set_timezone_config, set_temperature_config, set +scaling/tuning config on some makes) but the GUI and CLI never surface it, so the gap is pure +UI/CLI wiring rather than new protocol work. The other recurring pattern is a scan read that is +fetched but discarded (BOS fan duty, per-pool extended stats, Lux per-chip health detail). + +Headline parity (have = 1.0, partial = 0.5, missing = 0): + +- Antminer (union across BOS / LuxOS / VNish / ePIC / stock, 58 distinct features): + have 15, partial 15, missing 28 -> weighted parity approximately 39%. +- WhatsMiner (WhatsMinerTool + btminer API, 30 distinct features): + have 12, partial 5, missing 13 -> weighted parity approximately 48%. + +Biggest gaps, both makes: structured tuning (targets/presets/per-board), cooling + fan config, +DPS/ATM/perpetual-tune auto-scaling, and the CLI being effectively read-only today. + +Top ~12 highest-priority gaps (detail in section 3): + +1. Commit the full write CLI in `miner_probe` (light/pause/resume/restart/pools/power + new config verbs). CLI is read-only today; every UI action lacks a committed command. +2. Structured tuning: power target + hashrate target + tuner-mode + reset (BOS; stock Antminer / WhatsMiner mining-mode; unifies with per-make backends). +3. Named preset / profile select (LuxOS 21 profiles, VNish presets, ePIC tune-presets) via `SupportsPresets` + `SupportsTuningConfig::Preset`. +4. Cooling configuration (BOS cooling modes/temps/fan-pause; LuxOS tempctrl+fanctrl; ePIC fanspeed/shutdowntemp/critical-temp) - largest single missed config family. +5. Manual fan control (LuxOS fanset, ePIC fanspeed, antminer/epic backend `SupportsFanConfig`). +6. Auto-scaling: BOS DPS + LuxOS ATM + ePIC PerpetualTune (needs a dedicated auto-tuning config trait; ScalingConfig cannot carry it). +7. Per-board voltage/frequency override (LuxOS voltageset/frequencyset, ePIC /tune/clock + /tune/voltage) via `TuningTarget::Manual`. +8. Timezone config (BOS/VNish/ePIC backends complete; UI/CLI missing) - pure wiring. +9. Change password (BOS/VNish/antminer/ePIC backends complete; UI/CLI missing) - pure wiring; add for WhatsMiner (backend gap). +10. Factory reset (BOS/VNish/antminer backends complete; UI/CLI missing) + WhatsMiner restore_factory backend gap. +11. Best-share + session-best-share scan (two columns exist, no backend fills them; BOS/LuxOS/WhatsMiner summary all carry the value). +12. Network config read + write (all makes) and PSU-info scan (BOS/ePIC/WhatsMiner) - new core structs/traits. + +File written: `/tmp/claude-1000/-home-noah/312805ea-e1aa-4f86-9144-632f3a9c1252/scratchpad/aftermarket-parity-roadmap.md` + +--- + +## 2. Parity matrices + +Legend: our_support = have / partial / missing. UI = exposed in GUI right-click menu today. +CLI = exposed in committed `miner_probe` today (uncommitted local-only additions are marked +`local`). Toolkit columns: B = Braiins toolbox/BOS, L = LuxOS/luxminer, V = VNish, E = ePIC/ +PowerPlay, S = stock Antminer. A dot means that toolkit exposes the feature. + +### 2a. Antminer parity matrix + +Category C = config, T = telemetry/scan. + +| # | Feature | Cat | B | L | V | E | S | our_support | asic-rs trait | UI | CLI | +|---|---------|-----|---|---|---|---|---|-------------|---------------|----|-----| +| 1 | Discovery + make/model/fw ID | T | . | . | . | . | . | have | MinerFactory + Validate + GetDeviceInfo | yes | scan | +| 2 | Device identity (mac/serial/host/ctrl-board/versions/PIC) | T | . | . | . | . | . | have | GetMAC/GetHostname/GetSerialNumber/GetControlBoardVersion/GetApiVersion/GetFirmwareVersion | yes | scan | +| 3 | Live telemetry core (hr/exp-hr/watts/eff/temps/fans/state/uptime/light) | T | . | . | . | . | . | have | GetHashrate/GetExpectedHashrate/GetWattage/GetHashboards/GetFans/GetOperatingState/GetIsMining/GetUptime/GetLightFlashing | yes | no | +| 4 | Per-hashboard telemetry (board_name/chip_type/multi-window) | T | . | . | . | . | . | partial | GetHashboards | yes | no | +| 5 | Fan RPM + commanded duty ratio | T | . | . | . | . | . | partial | GetFans | yes | no | +| 6 | Pool list + extended per-pool share stats | T | . | . | . | . | . | partial | GetPools | yes | no | +| 7 | Best share + session best share | T | . | . | . | . | . | missing | GetBestShare/GetSessionBestShare (empty impls) | no | no | +| 8 | PSU info (model/hw/fw/voltage range) | T | . | . | . | . | | missing | none (new GetPsuInfo) | no | no | +| 9 | Fluid / immersion temperature | T | . | . | . | | | partial | GetFluidTemperature (BOS empty; VNish impl) | yes | no | +| 10 | Tuning target read (configured + scaled) | T | . | . | . | . | | partial | GetTuningTarget/GetScaledTuningTarget | yes | no | +| 11 | Tuner / power / hashrate constraints read | T | . | . | | . | | partial | GetTuningCapabilities (BOS have; Lux limits missing) | yes | no | +| 12 | Cooling constraints read | T | . | . | | . | | missing | none (new GetCoolingCapabilities) | no | no | +| 13 | DPS / hashboard / scaling constraints read | T | . | . | | . | | missing | none (new) | no | no | +| 14 | Advanced keyed settings read (22 keys) | T | . | | | | | missing | none (new AdvancedSettings) | no | no | +| 15 | Network config read (ip/mask/gw/dns/proto) | T | . | . | . | . | | partial | partial (GetMAC/GetHostname drop the rest) | no | no | +| 16 | Diagnostics data-collection archive | T | . | | | . | | partial | ReadLogs (compose) | no | no | +| 17 | Firmware update check (read only) | T | . | . | . | . | | have | UpgradeFirmware::check_firmware_update | no | no | +| 18 | Structured messages / events / appeals | T | . | . | . | . | . | have | GetMessages | yes | no | +| 19 | Per-chip health detail (score/errors) | T | | . | | | | partial | DataField::Chips (reduced) | no | no | +| 20 | Per-chip frequency array | T | | . | | | | missing | none (frequencyget unused) | no | no | +| 21 | Temp-control targets read | T | . | . | . | . | | missing | none (Lux tempctrl / ePIC shutdowntemp unmapped) | no | no | +| 22 | Limits / bounds read | T | | . | | . | | missing | none (Lux limits / ePIC capabilities partial) | no | no | +| 23 | Operating-state / paused (derived) | T | . | . | . | . | | partial | GetOperatingState (Lux missing/derivable) | yes | no | +| 24 | Perpetual-tune / ATM / DPS status read | T | . | . | | . | | missing | none (ePIC perpetualtune / Lux atm unmapped) | no | no | +| 25 | Scheduler / idle-periods read | T | | | | . | | missing | none | no | no | +| 26 | Fault / locate light on-off | C | . | . | . | . | . | have | SetFaultLight | yes | local | +| 27 | Pause mining | C | . | . | . | . | . | have | Pause | yes | no | +| 28 | Resume mining | C | . | . | . | . | . | have | Resume | yes | no | +| 29 | Restart / reboot | C | . | . | . | . | . | have | Restart | yes | no | +| 30 | Configure pools (write) | C | . | . | . | . | . | have | SupportsPoolsConfig | yes | local | +| 31 | Set power limit / power target (watts) | C | . | . | . | . | . | have | SetPowerLimit (VNish masked) | yes | local | +| 32 | Set tuning percent / throttle | C | | | . | | | have | SetTuningPercent | yes | no | +| 33 | Set hashrate target + tuner-mode + reset + steps | C | . | . | . | . | | missing | SupportsTuningConfig (BOS false) | no | no | +| 34 | Named preset / profile select | C | | . | . | . | | partial | SupportsPresets + SupportsTuningConfig::Preset | no | no | +| 35 | Custom profile create / remove | C | | . | | | | missing | none (profilenew/profilerem) | no | no | +| 36 | Per-board voltage + frequency override | C | | . | . | . | | missing | SupportsTuningConfig::Manual (unwired) | no | no | +| 37 | Cooling config (mode/temps/fan-pause/min-fans/range) | C | . | . | . | . | | missing | partial (SupportsTemperatureConfig/FanConfig defaults) | no | no | +| 38 | Manual fan control | C | | . | | . | . | missing | SupportsFanConfig (antminer/epic true; unwired UI) | no | no | +| 39 | Temperature / thermal-limit config | C | . | . | . | . | | partial | SupportsTemperatureConfig (VNish only) | no | no | +| 40 | DPS / auto-scaling config | C | . | | | . | | missing | SupportsScalingConfig (epic true; BOS false) | no | no | +| 41 | ATM auto-thermal-tuning (min/max profile + windows) | C | | . | | | | missing | none (new SupportsAutoTuningConfig) | no | no | +| 42 | Perpetual-tune config (algo + target) | C | | | | . | | missing | none (new; overlaps auto-tuning trait) | no | no | +| 43 | Timezone config | C | . | | . | . | | partial | SupportsTimezoneConfig (backends done, UI/CLI missing) | no | no | +| 44 | Change password | C | . | | . | . | | partial | ChangePassword (backends done, UI/CLI missing) | no | no | +| 45 | Factory reset | C | . | | . | | | partial | FactoryReset (backends done, UI/CLI missing) | no | no | +| 46 | Network config write (dhcp/static) | C | . | . | . | . | | missing | none (new SupportsNetworkConfig) | no | no | +| 47 | Advanced keyed settings write | C | . | | | | | missing | none (new AdvancedSettings) | no | no | +| 48 | Remove tuned profiles (force retune) | C | . | | | | | missing | none | no | no | +| 49 | Stock miner mode (high/normal/low/sleep) | C | . | | | | . | missing | SupportsTuningConfig::MiningMode (stock impl, unwired) | no | no | +| 50 | Chip health check trigger | C | | . | | | | missing | none (healthchipset) | no | no | +| 51 | Reset miner (process restart, no reboot) | C | | . | | | | missing | none (reset_miner unwired) | no | no | +| 52 | Kill (hard-stop) | C | | . | | | | missing | none | no | no | +| 53 | Hostname set | C | . | . | . | . | | missing | none (mostly install-time on Lux) | no | no | +| 54 | Coin type select | C | | | | . | | missing | none (/coin) | no | no | +| 55 | Board enable / disable | C | | | | . | | missing | none (/boardenable) | no | no | +| 56 | Scheduler / idle-periods write | C | | | | . | | missing | none (/scheduler) | no | no | +| 57 | Shutdown-temp / critical-temp / overdrive / idle-on-loss | C | | | | . | | missing | none (ePIC misc setters) | no | no | +| 58 | Custom contract apply (Braiins pool) | C | . | | | | | missing | none (niche) | no | no | + +Antminer totals: have 15, partial 15, missing 28 (of 58). + +### 2b. WhatsMiner parity matrix + +Toolkit column W = WhatsMinerTool / btminer API (:4028 read + :8889 or 4028-token write). +btminer notes: :4028 is anonymous read-only; privileged writes go to :8889 (AES-ECB + md5-crypt +token) or 4028 with host_sign token. Confirmed writes on stock BTMiner: update_pools, +restart_btminer, set_power_pct, reboot, poweroff, update_network, update_password, restore_factory, +restore_dhcp, update_power_mode, update_coin_type. Confirmed NOT on stock 4028: set_freq, +set_voltage, set_led, adjust_power (LED/per-board tuning live in the ~40% uncharted :8889 space). + +| # | Feature | Cat | W | our_support | asic-rs trait | UI | CLI | +|---|---------|-----|---|-------------|---------------|----|-----| +| 1 | Discovery + make/model/fw ID | T | . | have | MinerFactory + Validate | yes | scan | +| 2 | Device identity (mac/serial/model/control-board) | T | . | have | GetMAC/GetSerialNumber/GetDeviceInfo | yes | scan | +| 3 | Live telemetry core (hr/exp/watts/eff/temps/fans/uptime) | T | . | have | GetHashrate/GetWattage/GetHashboards/GetFans/GetUptime | yes | no | +| 4 | Ambient / environment temperature | T | . | have | GetFluidTemperature (ambient) | yes | no | +| 5 | PSU fan RPM | T | . | have | GetFans (PSU fan, WhatsMiner-only) | yes | no | +| 6 | Pool list + accepted/rejected | T | . | have | GetPools | yes | no | +| 7 | Best share + session best share | T | . | missing | GetBestShare/GetSessionBestShare (empty) | no | no | +| 8 | PSU info (get_psu: model/vout/true-power) | T | . | missing | none (new GetPsuInfo) | no | no | +| 9 | Error codes / health messages (get_error_code) | T | . | have | GetMessages | yes | no | +| 10 | Operating state / paused | T | . | missing | GetOperatingState (not populated for WM) | no | no | +| 11 | Power-mode read (high/normal/low) | T | . | missing | none | no | no | +| 12 | Per-board detail (freq/chips/serial/voltage) | T | . | partial | GetHashboards | yes | no | +| 13 | Fault / locate light on-off | C | . | have | SetFaultLight (supports=true) | yes | local | +| 14 | Restart / reboot | C | . | have | Restart | yes | no | +| 15 | Pause mining | C | . | have | Pause | yes | no | +| 16 | Resume mining | C | . | have | Resume | yes | no | +| 17 | Configure pools (write, 3 slots) | C | . | have | SupportsPoolsConfig | yes | local | +| 18 | Set power limit (watts) | C | . | partial | SetPowerLimit (v1/v2/v3; error-swallow bug r15 #4) | yes | local | +| 19 | Power-mode set (high/normal/low/sleep) | C | . | partial | SupportsTuningConfig (v2/v3 true; MiningMode unwired) | no | no | +| 20 | Set power percent | C | . | missing | none (set_power_pct; SetTuningPercent false for WM) | no | no | +| 21 | Poweroff device | C | . | missing | none (distinct from pause) | no | no | +| 22 | Change password (update_password) | C | . | missing | ChangePassword (WM supports=false) | no | no | +| 23 | Network config (update_network / restore_dhcp) | C | . | missing | none (new SupportsNetworkConfig) | no | no | +| 24 | Factory reset (restore_factory) | C | . | missing | FactoryReset (WM supports=false) | no | no | +| 25 | Coin type select (update_coin_type) | C | . | missing | none | no | no | +| 26 | Timezone / NTP config | C | . | missing | SupportsTimezoneConfig (WM false) | no | no | +| 27 | Fan / cooling config | C | . | missing | SupportsFanConfig (WM false) | no | no | +| 28 | Per-board freq / voltage tuning | C | . | missing | none (not on stock 4028; :8889 uncharted) | no | no | +| 29 | Structured tuning config (target) | C | . | partial | SupportsTuningConfig (v2/v3 true; unwired UI/CLI) | no | no | +| 30 | Restore miner setting (revert config) | C | . | missing | none | no | no | + +WhatsMiner totals: have 12, partial 5, missing 13 (of 30). + +--- + +## 3. Prioritized gap list (missing + partial) + +Each gap gives: asic-rs backend work, ui.rs ConfigAction / action wiring, miner_probe/CLI surface, +clean-integration note, hardware verification plan (IP/model + read-back + restore), and priority. +Standard UI wiring for any NEW capability (a compile break otherwise), applied throughout below: +(1) add bool to `struct MinerCaps` (model.rs); (2) add to `MinerCaps::intersect` and `any_control()`; +(3) set it in the caps literal in scan.rs `to_row` from the matching `supports_*()`; (4) add a +`ConfigAction` variant with label()/progress_label(); (5) add an apply_action arm calling the +`&dyn Miner` trait method; (6) add ID_CTX_* const + a gated `menu.menu_append` block + a handler +arm in ui.rs; (7) add a `miner_probe` subcommand. Any NEW setter trait must join the +`SupportsConfigs` supertrait bundle (traits/miner.rs) and get a `ConfigField` variant +(config/collector.rs) or it will not dispatch on `&dyn Miner`. + +HARD constraint reflected in every verification plan: config-WRITE tests run on a bench/lab unit +or a unit pulled from production during a maintenance window, NEVER on the live production units +that are read-only (BOS .83/.27, LuxOS .60/.67, ePIC .6/.10, the WhatsMiner fleet). Read paths +verify against those live units. + +### PRIORITY: HIGH + +G1. Commit a full write CLI in miner_probe (all makes). +- Backend: none (reuse existing traits). +- CLI: promote uncommitted local-only modes into committed subcommands and add config verbs: + `light `, `pause`, `resume`, `restart`, `setpools `, + `config power ` (was `setpl`), plus every new config verb below. Each does + arg-parse + capability gate + constraint clamp before the call. +- Integration: the CLI mirrors the GUI ConfigAction set one-to-one; a shared apply layer keeps + them from diverging. +- HW verify: read-only verbs vs live units (`miner_probe scan`, hashrate). LED is reversible even + on production (does not disturb hashing): set on -> read state true -> set off -> read false. + Disruptive verbs (pause/restart/power) on bench only. +- Priority: HIGH (unblocks scripted fleet ops; every UI action is CLI-invisible today). + +G2. Structured tuning: power target + hashrate target + tuner-mode + reset + relative steps. +- Backend: implement `SupportsTuningConfig` for BraiinsV2604 (set_tuning_config: HashRate -> PUT + performance/hashrate-target, Power -> reuse SetPowerLimit path; switching target type flips + tuner_mode); flip supports_tuning_config -> true. Stock Antminer v2020/v2023_07 already map + `TuningTarget::MiningMode` Low/Normal/High (unwired). WhatsMiner v2/v3 already true. +- UI: `ConfigAction::HashrateTarget(f64)` (or unified TuningTarget action) + MinerCaps.tuning_config + gate + dialog offering power|hashrate|default clamped to tuner_constraints. +- CLI: `config hashrate `, `config tuner default`, `config mode `. +- Integration: one generic tuning action routes to per-make backends; clamp via GetTuningCapabilities. +- HW verify: bench BOS S19J Pro (hashrate_target 70.75-252.57 TH/s) - record tuner_mode+target, + set, read back configuration/miner + tuner-state, restore original. NEVER on .83/.27. +- Priority: HIGH. + +G3. Named preset / profile select. +- Backend: LuxOS - impl `SupportsPresets::get_presets` from `profiles` (21 dynamic steps, list + live never hardcoded) and `SupportsTuningConfig::set_tuning_config(Preset(name)) -> rpc.profileset` + (flip privileged=true; see G16). VNish get_presets already true. ePIC - map Tune Presets from + /capabilities and `POST /tune` / `POST /perpetualtune`. +- UI: MinerCaps.tuning_config + `ConfigAction::Preset(String)` + ID_CTX_PRESET dialog populated + live from get_presets(). Note the existing GUI "Presets" button is unrelated (view layouts). +- CLI: `presets ` (list), `setpreset `. +- HW verify: LuxOS bench (.67 shows config Profile=495MHz/Step -2) - snapshot Profile, profileset + another, read back, restore. NEVER on .60/.67 production. +- Priority: HIGH. + +G4. Cooling configuration (largest missed config family). +- Backend: BOS - impl `SupportsTemperatureConfig` (hot/dangerous/target) + `SupportsFanConfig` + (Auto{target_temp,idle_speed} / Manual{fan_speed}) + a NEW cooling-mode trait/enum + CoolingMode{Auto,Manual,Immersion} + fan-pause (mode/runtime/pwm) + min-required-fans + + custom-fan-range on a CoolingConfig aggregate (endpoint from a web capture; do not execute). + LuxOS - add rpc.tempctrlset + wire tempctrl/fanctrl. ePIC - POST /fanspeed, /fans/minimum, + /shutdowntemp, /criticaltemp. +- UI: `ConfigAction::Cooling(CoolingConfig)` + gate + dialog whose ranges come from cooling + constraints (new CoolingCapabilities read, G8). +- CLI: `config cooling --mode ... --target-temp ... --hot-temp ...`. +- HW verify: bench BOS/LuxOS/ePIC - record cooling/state + config temps + fan duty, set (e.g. + target-temp to current), read back, restore. NEVER on production. +- Priority: HIGH. + +G5. Manual fan control. +- Backend: LuxOS impl `SupportsFanConfig` -> rpc.fanset(speed|-1, min_fans) (already + privileged=true); antminer/epic backends already report supports_fan_config=true (unwired). + ePIC POST /fanspeed. +- UI: MinerCaps.fan + `ConfigAction::Fan(FanConfig)` + ID_CTX_FAN dialog (Auto vs Manual %, + clamped to limits FanSpeed range). +- CLI: `fans ` (read FANCTRL) + `setfan `. +- HW verify: LuxOS bench (.60 FANCTRL FanMinSpeed 20, MinFans 1) - snapshot, fanset 80, read + ~80, restore fanset -1 (auto). Never below thermally safe speed. NEVER on production. +- Priority: HIGH. + +G6. Auto-scaling config: BOS DPS + LuxOS ATM + ePIC PerpetualTune. +- Backend: BOS impl `SupportsScalingConfig::set_scaling_config` (power_step/min_power_target/ + shutdown/duration); note ScalingConfig lacks hashrate_step/on_start_percent/mode - extend it or + carry via set_tuning_config's Option. LuxOS + ePIC need a dedicated core + `SupportsAutoTuningConfig` trait + AtmConfig/PerpetualTuneConfig struct (min/max profile, three + temp windows, startup/post-ramp timings, algorithm select) added to the SupportsConfigs bundle + with a ConfigField::Atm so the collector iterates it. ePIC: POST /perpetualtune{,/algo,/reset, + /errorthrottle} with algorithms VoltageOptimizer/BoardTune/ChipTune/PowerTune (min/max from + /capabilities). +- UI: `ConfigAction::Dps` / `ConfigAction::Atm` / `ConfigAction::PerpetualTune` + gates + dialogs + fed by the constraints reads (G8). +- CLI: `config dps on|off [...]`, `atm ` / `setatm ...`, `config perpetualtune ...`. +- HW verify: bench per make - record current config, set current-equivalent params, read back, + restore off/original. NEVER on production. +- Priority: HIGH. + +G7. Per-board voltage + frequency override. +- Backend: LuxOS add rpc.voltageset/frequencyset/frequencystop; handle + `TuningTarget::Manual{boards:(freq,voltage)}` in set_tuning_config (exact type match, no new + trait). ePIC POST /tune/clock/{all,board,chip}, /tune/voltage, /tune/config/chip. Determine + per-board vs per-chip grammar on the bench first (Lux frequencyget returns 126 per-chip freqs). +- UI: reuse tuning-config dialog with an Advanced manual per-board mode, clamped to limits. +- CLI: `setmanual `. +- HW verify: bench with CONSOLE access only (bad voltage can damage a board) - snapshot + voltageget/frequencyget, apply small delta, read back, restore via profileset(default). +- Priority: HIGH. + +G8. Constraints / limits / capabilities scan reads (plumbing for every dialog above). +- Backend: BOS parse cooling_constraints + dps_constraints + hashboards_constraints from the + already-fetched WEB_CONSTRAINTS response into new CoolingCapabilities/ScalingCapabilities/ + HashboardCapabilities. LuxOS parse `limits` (PowerTarget 1000-4000, AtmMinutes 1-1440, AtmTemp + 1-10, FanSpeed -1..100, MinFans 0-4, Frequency 100-1000 step 5-25, BypassVoltage 11.5-15.5). + ePIC parse /capabilities (Default Clock/Voltage/Hashrate, Tune Presets, PerpetualTune min/max, + Psu Info). +- UI/CLI: not necessarily a visible column; required to validate/clamp dialog inputs. `limits `, + `capabilities `. +- HW verify: read-only on live units (already captured on .83, .60, .6). No restore. +- Priority: HIGH (blocks safe write dialogs). + +G9. Best share + session best share scan. +- Backend: BOS impl GetBestShare from WEB_MINER_STATS /miner_stats/best_share (or best_share_str + for large diffs; verified 130601978 live on .83; session stays None - BOS has no session field). + LuxOS add DataField::BestShare -> summary /SUMMARY/0/Best Share and SessionBestShare -> + /SUMMARY/0/Best Session Share (verified 638881749 live on .60). WhatsMiner map btminer summary + best-share. All reuse already-fetched responses. +- UI: populates the two existing MinerRow columns that no backend fills today. +- CLI: appears in `scan` extended output. +- HW verify: read-only vs live units, assert equals the API value. No restore. +- Priority: HIGH (cheap, two dead columns). + +### PRIORITY: MEDIUM + +G10. Timezone config (BOS/VNish/ePIC). +- Backend: COMPLETE (SupportsTimezoneConfig; BOS GraphQL setTimezone, ePIC POST /timezone). No + asic-rs work. +- UI: `ConfigAction::Timezone(Tz)` + MinerCaps.timezone gate + dialog populated from + get_timezone_config's available list. +- CLI: `config timezone `. +- HW verify: bench - read current tz, set to same, read back, restore. Low risk. +- Priority: MEDIUM (pure wiring). + +G11. Change password (BOS/VNish/antminer/ePIC; WhatsMiner needs backend). +- Backend: COMPLETE for BOS/VNish/antminer/ePIC (ChangePassword; re-auths on success). WhatsMiner + gap - impl update_password over the :8889/4028-token path (supports currently false). +- UI: `ConfigAction::ChangePassword(String)` + gate + dialog; GUI must update saved credentials on + success (change_password takes &mut self and re-auths). +- CLI: `config password `. +- HW verify: bench only - change to temp password then back; verify get_data() still authenticates. + NEVER on production (a failed change locks the toolkit out). +- Priority: MEDIUM. + +G12. Factory reset (BOS/VNish/antminer; WhatsMiner needs backend). +- Backend: COMPLETE for BOS/VNish/antminer (FactoryReset; distinct from restore.rs stock-firmware + flow). WhatsMiner gap - impl restore_factory (supports currently false). +- UI: `ConfigAction::FactoryReset` + gate + STRONG double-confirm dialog. +- CLI: `config factory-reset --yes`. +- HW verify: bench only, destructive - read config before/after. NEVER on production. +- Priority: MEDIUM (low frequency, but backend already there). + +G13. Pool config completeness + LuxOS session-bug fix. +- Backend: LuxOS - flip addgroup/groupquota/removegroup/addpool/switchpool/enablepool/disablepool + to privileged=true (they currently send no session_id, so writes fail on password-set units); + add the missing rpc.removepool. Extend build_pools_dialog with incremental ops + (switch/enable/disable/quota/remove) beyond wholesale replace-all. +- UI: richer pools dialog; caps.pools already wired. +- CLI: committed `setpools` already planned in G1; add per-op verbs. +- HW verify: sacrificial bench NOT pointed at a production pool - reproduce the "Missing session_id" + error on a password-set bench unit, then confirm privileged=true fixes it; restore original pools. +- Priority: MEDIUM (correctness bug on locked units). + +G14. Enrich per-hashboard / fan / pool telemetry (fetched-but-discarded fields). +- Backend: BOS add fan target_speed_ratio (commanded duty) to FanData; add stale_shares/ + last_difficulty/generated_work/last_share_time/per-pool best_share to PoolData; add board_name/ + chip_type to BoardData. LuxOS retain per-chip Score/ReadErrors/WriteErrors/BadHashCount from + healthchipget. All from already-fetched responses. +- UI: tooltips / detail panels; additive. +- CLI: extended `scan` / `healthchip `. +- HW verify: read-only vs live units, assert new fields populate (BOS fan duty 0.63 on .83, Lux + per-chip Score 88-102 on .60). No restore. +- Priority: MEDIUM. + +G15. PSU info scan (BOS/ePIC/WhatsMiner). +- Backend: add core PsuInfo struct (model, hw/fw version, min/max voltage, serial, true-power) + + GetPsuInfo trait + MinerData field. BOS reads WEB_MINER_DETAILS /psu_info; ePIC /capabilities + Psu Info; WhatsMiner get_psu (unauth read). +- UI: MinerRow detail/tooltip. +- CLI: appears in scan detail. +- HW verify: read-only (BOS .83 psu APW121215d/e 11.96-15.2V; ePIC .6 PSU Type 117). No restore. +- Priority: MEDIUM. + +G16. Network config read + write (all makes). +- Backend: add core NetworkInfo struct + GetNetworkInfo (read) and NetworkConfig struct + + SupportsNetworkConfig (write, added to the SupportsConfigs bundle + ConfigField::Network). BOS + GET/PUT /network; LuxOS `config` read + rpc.netset; ePIC GET/POST /network + /wifi; WhatsMiner + update_network / restore_dhcp. Confirm grammar on bench first. +- UI: address/protocol MinerRow columns (read); `ConfigAction::Network(NetworkConfig)` + + ID_CTX_NETWORK dialog (write) behind explicit confirm + warning. Pre-fill from the read. +- CLI: `net ` (read), `config network dhcp|static [...] --yes`. +- HW verify: read-only for the read side vs live units. Write on a bench unit with SERIAL/CONSOLE + access ONLY (a wrong static config strands the miner; note the LuxOS fleet uses 1:1 NAT so netset + rewrites the miner's real interface). Change hostname (benign) then restore; do NOT change IP on a + remotely-managed unit. +- Priority: MEDIUM (read side); network-write is high-risk, gate hard. + +G17. Structured messages / per-chip health / temp-target / operating-state reads (LuxOS + ePIC). +- Backend: LuxOS map tempctrl targets (Target/Hot/ChipTarget/WaterInlet) + derive GetOperatingState + from config CurtailMode/IsTuning/SystemStatus + frequencyget per-chip array. ePIC map + PerpetualTune status + Scheduler read + HBStatus. +- UI: optional columns + detail panels; operating-state feeds the Paused column with real state. +- CLI: `tempctrl `, `freqs `. +- HW verify: read-only vs live (Lux .60 tempctrl Target 45/ChipTarget 83; CurtailMode/IsTuning + present). Derived paused state verified after a bench curtail sleep. No restore for reads. +- Priority: MEDIUM. + +G18. WhatsMiner power-mode set + set-power-percent + poweroff. +- Backend: wire WhatsMiner v2/v3 SupportsTuningConfig MiningMode (high/normal/low) via + update_power_mode; add set_power_pct path; add poweroff (distinct from pause). Note the r15 #4 + set_power_limit error-swallow bug should be fixed while here. +- UI: mode selector via the generic tuning action (G2); poweroff as a maintenance menu item with + strong confirm. +- CLI: `config mode `, `config power-pct `, `poweroff --yes`. +- HW verify: bench WhatsMiner (M30S-class) - read summary, set mode, read back, restore; poweroff + characterized on bench then power-cycle to recover. NEVER on the live fleet. +- Priority: MEDIUM. + +### PRIORITY: LOW + +G19. BOS advanced keyed settings (read + write, 22 keys with danger-gating). +- Backend: new AdvancedSettings trait (keyed map + static metadata: type/default/status/min_version/ + enum/min-max/depends-on from `advanced list`); read is safe/additive, write requires danger + confirm. Transport from a web capture; do not execute writes. +- UI: Advanced-settings editor panel validating against metadata, explicit confirm for + status=dangerous keys. +- CLI: `advanced-get [--key K|--all]`, `advanced set [--force]`, `advanced reset`. +- HW verify: read-only vs .83 (22 keys captured). Write on bench, benign key (mdns_enabled) only. +- Priority: LOW-MEDIUM (read side medium, write low). + +G20. LuxOS maintenance: reset-miner / kill / chip-health-check / custom-profile create-remove. +- Backend: add rpc.reset_miner wiring (CLI-only), rpc.healthchipset, rpc.profilenew/profilerem. + kill semantics to be characterized on bench first (recommend omit from fleet GUI). +- UI: profile create/delete under the preset submenu; reset-miner/kill CLI-only. +- CLI: `resetminer `, `healthchip [set ...]`, `profilenew/profilerem`. +- HW verify: bench only. +- Priority: LOW. + +G21. ePIC misc setters: coin type, board enable/disable, scheduler/idle-periods, shutdown/critical +temp, overdrive, idle-on-connection-lost, hostname. +- Backend: POST /coin, /boardenable + /disableboardonfailure + /enableboardsonidle, /scheduler + + /scheduler/idleperiods, /shutdowntemp + /criticaltemp, /overdrive, /idleonconnectionlost, /hostname. +- UI: grouped under an ePIC advanced/maintenance submenu (most are ePIC-specific, gate on make). +- CLI: matching `config ...`. +- HW verify: bench ePIC (.6/.10 are read-only production). +- Priority: LOW. + +G22. Diagnostics collect + firmware update-check surfacing + BOS custom-contract. +- Backend: none new (compose get_data + read_logs + config + constraints into a tarball); surface + check_firmware_update current-vs-latest. Custom-contract is niche Braiins-pool - document/defer. +- UI: "Collect diagnostics..." menu item; optional update badge. +- CLI: `collect [-o dir]`. +- HW verify: read-only compose vs .83. +- Priority: LOW. + +--- + +## 4. Recommended implementation order (shippable rounds) + +Round A - CLI foundation and cheap wins (unblocks everything else): +- G1 (commit write CLI), G9 (best-share/session-best-share), G8 (constraints/limits/capabilities + reads), G14 (fetched-but-discarded telemetry), G13 backend session-bug fix (LuxOS privileged=true). +Rationale: G8 is required plumbing for the write dialogs; G1/G9/G14 are low-risk and immediately +visible; the LuxOS session fix is a correctness bug. + +Round B - pure UI/CLI wiring of complete backends: +- G10 (timezone), G11 (change password, non-WM), G12 (factory reset, non-WM). +Rationale: backends already implemented; only UI ConfigAction + CLI verbs + dialogs needed. + +Round C - structured tuning (the flagship parity family): +- G2 (power/hashrate target + tuner-mode + stock mining-mode), G3 (preset/profile select), + G7 (per-board override). +Rationale: single generic tuning action + per-make backends; the biggest config-parity closer. + +Round D - cooling and auto-scaling: +- G4 (cooling config), G5 (fan control), G6 (DPS/ATM/PerpetualTune). +Rationale: depends on Round A constraints reads; largest remaining missed family. + +Round E - WhatsMiner config depth: +- G18 (power-mode/power-pct/poweroff), G11+G12 WhatsMiner backends (change_password, + restore_factory), G16 WhatsMiner network (update_network/restore_dhcp). + +Round F - network + advanced + long tail: +- G16 (network read everywhere + gated write), G15 (PSU info), G17 (Lux/ePIC extra reads), + G19 (BOS advanced), G20 (LuxOS maintenance), G21 (ePIC misc), G22 (diagnostics/update/contract). + +--- + +## 5. Verification coverage note + +Confirmed on real hardware, read-only, this run: +- Braiins OS: 10.4.1.83 and 10.4.1.27 (Antminer S19J Pro NoPic, BOS 26.09-plus, API 1.8.0). Verified + live: version/details/network/miner_stats/hashboards/cooling-state/pools/tuner-state/constraints, + best_share 130601978, tuner_constraints (power 944-6435 W, hashrate 70.75-252.57 TH/s), cooling + + dps + hashboards constraints, PSU info, fan duty 0.63, configured-tuning-target None in default + power mode (both units), advanced 22-key read via braiins-toolbox. +- LuxOS: 10.4.1.60 (Profile default) and 10.4.1.67 (Profile 495MHz/Step -2), Antminer S19j Pro, + LUXminer 2026.9.21, API 3.7, IsPowerTargetSupported=false. Verified live: version/summary/stats/ + devs/devdetails/temps/fans/pools/events, 21 profiles, full `limits` bounds table, atm, tempctrl, + fanctrl (FANCTRL), healthchipget per-chip, frequencyget (126 freqs), voltageget, config network + + Update* + CurtailMode/IsTuning/SystemStatus, best-share 638881749; check-command matrix (Exists/ + Access) for led/profileset/atmset/fanset/tempctrlset/voltageset/frequencyset/curtail/rebootdevice/ + resetminer/kill/netset and the N/N set hostnameset/passwd/timezone/timezoneset/factoryreset. +- ePIC / PowerPlay UMC: 10.4.1.6 and 10.4.1.10 (AntMiner S19j Pro, BM1362), UMC API v1.36.0, 63 + OpenAPI paths captured. Verified live read-only: /summary, /capabilities (Tune Presets + + PerpetualTune algorithms VoltageOptimizer/BoardTune/ChipTune/PowerTune with min/max + Psu Info), + /perpetualtune status, /network, /ethernet, /temps, /timezone, /scheduler, /otelsettings, + /hashratesplit config+status. +- WhatsMiner: fleet scanned read-only across 10.7.1.0/24 and 10.8.1.0/24 via `miner_probe scan` + (M30S-class, H6OS/H616 control boards, mix of watts and supports_power_limit flags). btminer :4028 + anonymous reads (summary/get_token/get_error_code) confirmed as the read surface. + +Taken from docs / --help / source / reverse-engineering only (not executed live this run): +- Every config-WRITE path on every make (hard rule: no live mutation). Write endpoints and grammars + are described from braiins-toolbox --help, luxminer RPC docs, the ePIC OpenAPI POST definitions, + and the WhatsMiner btminer RE wiki (8889 command table + 4028 token flow). +- BOS firmware-update-check (hits the vendor release server), custom-contract, and the advanced-set + transport (needs a web capture to pin the exact GraphQL/REST call). +- WhatsMiner :8889 privileged writes (update_pools/set_power_pct/restart confirmed in prior RE + sessions; LED/per-board tuning live in the ~40% uncharted :8889 command space and are unverified). +- Stock Antminer / MicroBT miner set-mode was confirmed in the asic-rs source (mapping present) but + not probed against a live stock unit this run. diff --git a/thirdparty/asic-rs/patches/0013-braiins-luxminer-best-share.patch b/thirdparty/asic-rs/patches/0013-braiins-luxminer-best-share.patch new file mode 100644 index 00000000..505321c7 --- /dev/null +++ b/thirdparty/asic-rs/patches/0013-braiins-luxminer-best-share.patch @@ -0,0 +1,98 @@ +Subject: [PATCH 0013] braiins+luxminer: implement best-share / session-best-share (round 16 G9) + +The GetBestShare/GetSessionBestShare traits had empty impls on every backend, so +MinerData.best_share/session_best_share were always None and the toolkit's two +"Best share" / "Session best" columns were dead. + +Braiins v26_04: map DataField::BestShare to the already-fetched miner/stats WebAPI +response (/miner_stats/best_share) and parse it. (BOS has no session-best field -> +session stays None.) Verified live read-only on 10.4.1.83: 130601978. + +LuxMiner v1: map DataField::BestShare + SessionBestShare to the already-fetched +summary RPC (/SUMMARY/0/Best Share and /Best Session Share) and parse both. +Verified live read-only on 10.4.1.60 (638881749/638881749) and 10.4.1.67 +(497802665/497802665). + +No extra network calls (both reuse commands already collected by get_data). +diff --git a/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs b/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs +index fa947aee..e65fb201 100644 +--- a/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs ++++ b/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs +@@ -286,6 +286,14 @@ impl GetDataLocations for BraiinsV2604 { + tag: None, + }, + )], ++ DataField::BestShare => vec![( ++ WEB_MINER_STATS, ++ DataExtractor { ++ func: get_by_pointer, ++ key: Some("/miner_stats/best_share"), ++ tag: None, ++ }, ++ )], + DataField::TuningTarget => vec![ + ( + WEB_MINER_CONFIGURATION, +@@ -548,7 +556,13 @@ impl GetUptime for BraiinsV2604 { + } + } + +-impl GetBestShare for BraiinsV2604 {} ++impl GetBestShare for BraiinsV2604 { ++ fn parse_best_share(&self, data: &HashMap) -> Option { ++ // Braiins OS reports the all-time best share at miner/stats -> miner_stats.best_share ++ // (round 16 / G9). Large diffs may exceed f64 exactness but are fine for display. ++ data.extract::(DataField::BestShare) ++ } ++} + impl GetSessionBestShare for BraiinsV2604 {} + + impl GetOperatingState for BraiinsV2604 { +diff --git a/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs b/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs +index aac39eb6..2d1331bf 100644 +--- a/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs ++++ b/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs +@@ -445,6 +445,22 @@ impl GetDataLocations for LuxMinerV1 { + tag: None, + }, + )], ++ DataField::BestShare => vec![( ++ RPC_SUMMARY, ++ DataExtractor { ++ func: get_by_pointer, ++ key: Some("/SUMMARY/0/Best Share"), ++ tag: None, ++ }, ++ )], ++ DataField::SessionBestShare => vec![( ++ RPC_SUMMARY, ++ DataExtractor { ++ func: get_by_pointer, ++ key: Some("/SUMMARY/0/Best Session Share"), ++ tag: None, ++ }, ++ )], + DataField::Uptime => vec![( + RPC_STATS, + DataExtractor { +@@ -888,8 +904,18 @@ impl GetUptime for LuxMinerV1 { + } + } + +-impl GetBestShare for LuxMinerV1 {} +-impl GetSessionBestShare for LuxMinerV1 {} ++impl GetBestShare for LuxMinerV1 { ++ fn parse_best_share(&self, data: &HashMap) -> Option { ++ // LuxOS summary -> "Best Share" (all-time), round 16 / G9. ++ data.extract::(DataField::BestShare) ++ } ++} ++impl GetSessionBestShare for LuxMinerV1 { ++ fn parse_session_best_share(&self, data: &HashMap) -> Option { ++ // LuxOS summary -> "Best Session Share" (since boot), round 16 / G9. ++ data.extract::(DataField::SessionBestShare) ++ } ++} + + impl GetOperatingState for LuxMinerV1 {} + diff --git a/vendor/asic-rs-firmwares-braiins/.cargo-checksum.json b/vendor/asic-rs-firmwares-braiins/.cargo-checksum.json index 069a71df..f6120283 100644 --- a/vendor/asic-rs-firmwares-braiins/.cargo-checksum.json +++ b/vendor/asic-rs-firmwares-braiins/.cargo-checksum.json @@ -1 +1 @@ -{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"18185f4a958f2c0bc51e01bc95d111f4568e07097cf18739e5ec687e8180dc08","Cargo.lock":"0e64661b31a5535239aa725bec30622c38d1bc1f24a35c8cdea5670b846d552a","Cargo.toml":"c1931f8d6840ba7033b805c0f9f9b195548fc0d04f12f2361177c96c78f08d14","Cargo.toml.orig":"42a763ec0e22dbbc2603c92c2df33cbf9d9508655ca83154aeff9000ddf02466","src/backends/mod.rs":"0c0ca2b00e9be74108292ce021c675948ab177f969d4ba5c2f4baec7229c6b9e","src/backends/util.rs":"3455b89673a948142c50af7631fcb7a8f4943fb68be5d07edeef35854cffeec1","src/backends/v21_09/graphql.rs":"41dbc5f2e74b0d79a0b3bb127b65e5dc05ed2edeb8e4692d80bf5b790e8ccfda","src/backends/v21_09/mod.rs":"cecd805037b4db105ba40b5aa9079f82698996bc37fe81c4664e75223c530f5f","src/backends/v21_09/rpc.rs":"5a538f840be6aa5f53dac529d50532c24778a4f8d75e04e751b4aac0064126a0","src/backends/v21_09/web.rs":"c703525004e8269aab11416cc32af9a2452f186d5e288746a423348fb47acd4d","src/backends/v25_03/mod.rs":"3fd1e79d3b019367919329ba4b84e10c1651c6f3d852c89244bc54add8b958ec","src/backends/v25_05/mod.rs":"ba8b9d563e38546289a40327b964cabc27084590258a17eba7eb41dc1c04e7f9","src/backends/v25_07/mod.rs":"d75936fe7677a8a696f9ed3b9abf55fbccb7ebafbc40152d9339dc2cd99bb543","src/backends/v25_07/web.rs":"a6b076e377a17141961a0d45fba18e1f7a1b73c3bb69d216b8b353a6e5f6282f","src/backends/v26_04/mod.rs":"3bca8811e071cda8950cc8b475190c96e0f4eca5e5b7ada71303f4e8b389958b","src/backends/v26_04/web.rs":"b0307bd12ba0721ef82395d96fdb216459a70792d90ab9f657767c906ad11248","src/firmware.rs":"f4a16e40ef817227a6e792e2b4144169e8974e70d8a005e85744892c395f51ef","src/lib.rs":"53f7acddeff8f7d82f80d09e0a9f91962011f9ccf2e441c4ca05cd7fc4eb292e","src/test/json/mod.rs":"cffee651b5121c510e29947f971d5b863f4bae9e956569adc2ec7c64376de3d4","src/test/json/v21_09/gql_boards.json":"7da6ee777e102b44a7cbbe93cfce6162ee47e1712162404270a4b5c4a32af356","src/test/json/v21_09/gql_pools.json":"9ecdcd94bc7c2f0624102a1307db89ed9d6f7d6bebbf1f0de857c42d3252311e","src/test/json/v21_09/gql_system.json":"f96f4b72ec3445b1dcf0b0f362895bb41d00dc315de010eee899194760f30585","src/test/json/v21_09/gql_tuning.json":"1bc5b211b5a50569df7e272a68548a70ad53bffe1809f0d0e5ca4ba2e978235d","src/test/json/v21_09/mod.rs":"dfda0fa3911708fbb5d1ec888e75f4fb54113163dbcad58f139ec54f31743cba","src/test/json/v21_09/version.json":"05b6782c56a9323956057bfb41fcfa5b094ce8026e2b09fed6e7e763a36fb6b5","src/test/json/v21_09/web_net_conf.json":"fc611bc3f1aa670aa05df9db3d3901a2a20efb49af0277eeb6c0ffce9826f089","src/test/json/v24_09/gql_boards.json":"e5150647abf8a97bb23ab247d569560a23a62d799d735c60b8ec88f35897be18","src/test/json/v24_09/gql_events.json":"897590fb3244229baa90c956da6755a39a67da1d92f438ac299a7b9c5a58c49c","src/test/json/v24_09/gql_pools.json":"51f632ee8a382f508cfdb93b2b52672ba8da5dd7c036a69ff18978f6d4649bd4","src/test/json/v24_09/gql_system.json":"714956c0117f34c17525f47120c763119e1f723b7befaccb5d2452b0af8ce5f0","src/test/json/v24_09/gql_tuning.json":"1bc5b211b5a50569df7e272a68548a70ad53bffe1809f0d0e5ca4ba2e978235d","src/test/json/v24_09/mod.rs":"8cc10ac110f41e5134484ce91cf21b66e78f6f359421b76f95761a7ce552c5f0","src/test/json/v24_09/version.json":"44c41d6527c60347f747bdc7bb30d88dca6d9e3dc8d661ff6a3c41472934fb36","src/test/json/v24_09/web_net_conf.json":"383f41510781127735c774edba55542a06c53eee7a193a1c5adbbc9c8655dda7","src/test/json/v25_03/gql_boards.json":"ceaa8811151e544fd863ed2f741a34e43b9fc31e5dcf7ba06d4195d57aebfd4e","src/test/json/v25_03/gql_events.json":"897590fb3244229baa90c956da6755a39a67da1d92f438ac299a7b9c5a58c49c","src/test/json/v25_03/gql_pools.json":"a870a516ffadf24aa54b798a9307350a5a6507da71ebbc9f63f28aefccc49c05","src/test/json/v25_03/gql_system.json":"feab8055a969afec0855171365ac98bdf9f43e99ffc75df6338d1b6c36fc8e1e","src/test/json/v25_03/gql_tuning.json":"6f3959de2a5606360e1c745264640a76c851faabd0bd34e1aac7673b83a43f93","src/test/json/v25_03/mod.rs":"8cc10ac110f41e5134484ce91cf21b66e78f6f359421b76f95761a7ce552c5f0","src/test/json/v25_03/version.json":"44c41d6527c60347f747bdc7bb30d88dca6d9e3dc8d661ff6a3c41472934fb36","src/test/json/v25_03/web_net_conf.json":"440da11d909e43d9a5bf6cda37b745406732bc058944570030ad7625091ae2ba","src/test/json/v25_05/gql_boards.json":"306e9aefea6bab9a631feed698ec890f45ad90c88a83ee42f84185f63d109ed3","src/test/json/v25_05/gql_events.json":"897590fb3244229baa90c956da6755a39a67da1d92f438ac299a7b9c5a58c49c","src/test/json/v25_05/gql_pools.json":"b554537653fabc71c25c81799bc9d95b3f42e14c760bb3e7698d1918d956aaee","src/test/json/v25_05/gql_system.json":"64d6dca3458572f0a842ad244f45aec31a754f029f57a14487c65b390f21fcd1","src/test/json/v25_05/gql_tuning.json":"6f3959de2a5606360e1c745264640a76c851faabd0bd34e1aac7673b83a43f93","src/test/json/v25_05/mod.rs":"8cc10ac110f41e5134484ce91cf21b66e78f6f359421b76f95761a7ce552c5f0","src/test/json/v25_05/version.json":"ad08c5ccc614c90be5970dac38a667d8735c26cfc28d7eb7f92954a54ed21c28","src/test/json/v25_05/web_net_conf.json":"5ba03fdfec06cbc413df44a29fe9cef8c0d86d160c3481df5e1ef2f3924c688f","src/test/json/v25_07/actions_locate.json":"2ed27c1421e6928dbe13dbfdb5c59e1045b30341fe7ebe05700006bc5ac572c0","src/test/json/v25_07/configuration_miner.json":"d0e49788f64ea37e35185483eccc8fe1270131fd0179b600175ac912a88df56d","src/test/json/v25_07/cooling_state.json":"2a6153060c8c279b70d9efe339053e3ac7771efd114f35789a33e683d1b71954","src/test/json/v25_07/miner_details.json":"3668e95fa5cbb3012205a82141f34da538731b83c5d1ed1330578bfd9afa1d73","src/test/json/v25_07/miner_errors.json":"3c7ce2ccedd172e6cb49859e7dac24bf562f7ef3de88a2477b20e55dadd7f2d1","src/test/json/v25_07/miner_hw_hashboards.json":"c7c3729aefedad742b209f10d48581c43b691944db578e56d1fd56667bc98191","src/test/json/v25_07/miner_stats.json":"55876a44ff068fe73413bd7d3f6e69795e0085feb23f9f54b1c83c9a7e40c35d","src/test/json/v25_07/mod.rs":"20a139a0659b8d793121ca91ec044bd6ea46b37529217c2812f1785a3106bdeb","src/test/json/v25_07/network.json":"c16ae038fc642e2c21636b37ab5c811f9fc321159633ba54351a086622a589a4","src/test/json/v25_07/performance_tuner_state.json":"121d36b9ad7e43a5c33530367518648c89d998b8f387fa7628e3ede7901c635d","src/test/json/v25_07/pools.json":"7d01b46f5e2740cd62b4d92ee3737023d42a524e73408307bc9b8b633ca32313","src/test/json/v25_07/version.json":"5f8f9f077bd6a6bca8c015d36dcc0e0fde2bdd931c28194e7baa2ea9a71fa307","src/test/json/v25_11/actions_locate.json":"2ed27c1421e6928dbe13dbfdb5c59e1045b30341fe7ebe05700006bc5ac572c0","src/test/json/v25_11/configuration_miner.json":"d0e49788f64ea37e35185483eccc8fe1270131fd0179b600175ac912a88df56d","src/test/json/v25_11/cooling_state.json":"998e315e4fb0eb91da5725acee7d40f863b5d26c790e8d3f8c9ef727357697ee","src/test/json/v25_11/miner_details.json":"c2f9059446bfb40d9b737aaf6636f73b594b88a18e162b6ccea0af6847495a1d","src/test/json/v25_11/miner_errors.json":"7f9fded490bb8435c1ed67328f138f2bdd9f10dcc8f99e6384d00c83756ffe22","src/test/json/v25_11/miner_hw_hashboards.json":"e7fe217c44549737874be301380335e2a3a127c1556992f20e906c2d8af74275","src/test/json/v25_11/miner_stats.json":"3e816ea7210242cbee94449bef15570a1177e54a20826f8d185434133974f0dc","src/test/json/v25_11/mod.rs":"20a139a0659b8d793121ca91ec044bd6ea46b37529217c2812f1785a3106bdeb","src/test/json/v25_11/network.json":"1d4db8147fcc4b3018aac111d94c6948cc4f1b891ff579288b3509c74d80a37f","src/test/json/v25_11/performance_tuner_state.json":"68ed121eed255033092bc9906f5b6be20ed2d56db24a3ff87c6d3d8508e44049","src/test/json/v25_11/pools.json":"ac3b27aa307276dc83c76f9173e530a7e028f47e5bfbe4765c3521fcdb8e744b","src/test/json/v25_11/version.json":"5bae6e9acc33a72f5eccf5469a898e6fa993cef32ba645f8c9ca7c25644e97ed","src/test/json/v26_04/actions_locate.json":"2ed27c1421e6928dbe13dbfdb5c59e1045b30341fe7ebe05700006bc5ac572c0","src/test/json/v26_04/configuration_miner.json":"ab5deaf410b09b65946de403f500841210892046ac1db9a76431286038626465","src/test/json/v26_04/cooling_state.json":"e275678500882836d2d56ca946436f6f56f9fe0481cd17fd4d920c679cecec9f","src/test/json/v26_04/miner_details.json":"78f5512b1478b7a8451cb1ffc313ff373e04fc80d814116a02c91e5331a54dc3","src/test/json/v26_04/miner_errors.json":"57267de6573161f3da5f175e4dd9c803307082792a048e8665febc97ee627990","src/test/json/v26_04/miner_hw_hashboards.json":"4e5bee3455604b2f6057d6fe27c86ba1b83059a97886c9fac41135de8da8f87f","src/test/json/v26_04/miner_stats.json":"086a7c3b4fa15d3c82c09d3bef5430304670e66e7e12d7c0c3f60bc6c0641cd5","src/test/json/v26_04/mod.rs":"20a139a0659b8d793121ca91ec044bd6ea46b37529217c2812f1785a3106bdeb","src/test/json/v26_04/network.json":"9a53a51853e31747d0e7f731860d1a0da3008fb2a88b798f5f95f7766cb72140","src/test/json/v26_04/performance_tuner_state.json":"1effaffcc5395d1c920ed7dc6a9e8c59e89b87e011504c17f6685a257bb91500","src/test/json/v26_04/pools.json":"30db2a4dd798cb909f22a5b360e5e57364b02ce63cc25151bbfb9f7649f1b421","src/test/json/v26_04/version.json":"ac21d0e6bc7ddb33669f1168b3f4b7ce8ec2d16989c626dab373e6635a3cc292","src/test/mod.rs":"ed52c3d613eabc4a0346bb38bcfdf7a94933d61e368d3c9094821edeab92f81b"},"package":"23001a9a0c55cbf04aa8ee401601527393feca8e367a33fe913321d4aafb3071"} \ No newline at end of file +{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"18185f4a958f2c0bc51e01bc95d111f4568e07097cf18739e5ec687e8180dc08","Cargo.lock":"0e64661b31a5535239aa725bec30622c38d1bc1f24a35c8cdea5670b846d552a","Cargo.toml":"c1931f8d6840ba7033b805c0f9f9b195548fc0d04f12f2361177c96c78f08d14","Cargo.toml.orig":"42a763ec0e22dbbc2603c92c2df33cbf9d9508655ca83154aeff9000ddf02466","src/backends/mod.rs":"0c0ca2b00e9be74108292ce021c675948ab177f969d4ba5c2f4baec7229c6b9e","src/backends/util.rs":"3455b89673a948142c50af7631fcb7a8f4943fb68be5d07edeef35854cffeec1","src/backends/v21_09/graphql.rs":"41dbc5f2e74b0d79a0b3bb127b65e5dc05ed2edeb8e4692d80bf5b790e8ccfda","src/backends/v21_09/mod.rs":"cecd805037b4db105ba40b5aa9079f82698996bc37fe81c4664e75223c530f5f","src/backends/v21_09/rpc.rs":"5a538f840be6aa5f53dac529d50532c24778a4f8d75e04e751b4aac0064126a0","src/backends/v21_09/web.rs":"c703525004e8269aab11416cc32af9a2452f186d5e288746a423348fb47acd4d","src/backends/v25_03/mod.rs":"3fd1e79d3b019367919329ba4b84e10c1651c6f3d852c89244bc54add8b958ec","src/backends/v25_05/mod.rs":"ba8b9d563e38546289a40327b964cabc27084590258a17eba7eb41dc1c04e7f9","src/backends/v25_07/mod.rs":"d75936fe7677a8a696f9ed3b9abf55fbccb7ebafbc40152d9339dc2cd99bb543","src/backends/v25_07/web.rs":"a6b076e377a17141961a0d45fba18e1f7a1b73c3bb69d216b8b353a6e5f6282f","src/backends/v26_04/mod.rs":"5bedf59eaf2fcaa64be6f75272b1a01ecc1a3508baee103e73d3ecfc716d3783","src/backends/v26_04/web.rs":"b0307bd12ba0721ef82395d96fdb216459a70792d90ab9f657767c906ad11248","src/firmware.rs":"f4a16e40ef817227a6e792e2b4144169e8974e70d8a005e85744892c395f51ef","src/lib.rs":"53f7acddeff8f7d82f80d09e0a9f91962011f9ccf2e441c4ca05cd7fc4eb292e","src/test/json/mod.rs":"cffee651b5121c510e29947f971d5b863f4bae9e956569adc2ec7c64376de3d4","src/test/json/v21_09/gql_boards.json":"7da6ee777e102b44a7cbbe93cfce6162ee47e1712162404270a4b5c4a32af356","src/test/json/v21_09/gql_pools.json":"9ecdcd94bc7c2f0624102a1307db89ed9d6f7d6bebbf1f0de857c42d3252311e","src/test/json/v21_09/gql_system.json":"f96f4b72ec3445b1dcf0b0f362895bb41d00dc315de010eee899194760f30585","src/test/json/v21_09/gql_tuning.json":"1bc5b211b5a50569df7e272a68548a70ad53bffe1809f0d0e5ca4ba2e978235d","src/test/json/v21_09/mod.rs":"dfda0fa3911708fbb5d1ec888e75f4fb54113163dbcad58f139ec54f31743cba","src/test/json/v21_09/version.json":"05b6782c56a9323956057bfb41fcfa5b094ce8026e2b09fed6e7e763a36fb6b5","src/test/json/v21_09/web_net_conf.json":"fc611bc3f1aa670aa05df9db3d3901a2a20efb49af0277eeb6c0ffce9826f089","src/test/json/v24_09/gql_boards.json":"e5150647abf8a97bb23ab247d569560a23a62d799d735c60b8ec88f35897be18","src/test/json/v24_09/gql_events.json":"897590fb3244229baa90c956da6755a39a67da1d92f438ac299a7b9c5a58c49c","src/test/json/v24_09/gql_pools.json":"51f632ee8a382f508cfdb93b2b52672ba8da5dd7c036a69ff18978f6d4649bd4","src/test/json/v24_09/gql_system.json":"714956c0117f34c17525f47120c763119e1f723b7befaccb5d2452b0af8ce5f0","src/test/json/v24_09/gql_tuning.json":"1bc5b211b5a50569df7e272a68548a70ad53bffe1809f0d0e5ca4ba2e978235d","src/test/json/v24_09/mod.rs":"8cc10ac110f41e5134484ce91cf21b66e78f6f359421b76f95761a7ce552c5f0","src/test/json/v24_09/version.json":"44c41d6527c60347f747bdc7bb30d88dca6d9e3dc8d661ff6a3c41472934fb36","src/test/json/v24_09/web_net_conf.json":"383f41510781127735c774edba55542a06c53eee7a193a1c5adbbc9c8655dda7","src/test/json/v25_03/gql_boards.json":"ceaa8811151e544fd863ed2f741a34e43b9fc31e5dcf7ba06d4195d57aebfd4e","src/test/json/v25_03/gql_events.json":"897590fb3244229baa90c956da6755a39a67da1d92f438ac299a7b9c5a58c49c","src/test/json/v25_03/gql_pools.json":"a870a516ffadf24aa54b798a9307350a5a6507da71ebbc9f63f28aefccc49c05","src/test/json/v25_03/gql_system.json":"feab8055a969afec0855171365ac98bdf9f43e99ffc75df6338d1b6c36fc8e1e","src/test/json/v25_03/gql_tuning.json":"6f3959de2a5606360e1c745264640a76c851faabd0bd34e1aac7673b83a43f93","src/test/json/v25_03/mod.rs":"8cc10ac110f41e5134484ce91cf21b66e78f6f359421b76f95761a7ce552c5f0","src/test/json/v25_03/version.json":"44c41d6527c60347f747bdc7bb30d88dca6d9e3dc8d661ff6a3c41472934fb36","src/test/json/v25_03/web_net_conf.json":"440da11d909e43d9a5bf6cda37b745406732bc058944570030ad7625091ae2ba","src/test/json/v25_05/gql_boards.json":"306e9aefea6bab9a631feed698ec890f45ad90c88a83ee42f84185f63d109ed3","src/test/json/v25_05/gql_events.json":"897590fb3244229baa90c956da6755a39a67da1d92f438ac299a7b9c5a58c49c","src/test/json/v25_05/gql_pools.json":"b554537653fabc71c25c81799bc9d95b3f42e14c760bb3e7698d1918d956aaee","src/test/json/v25_05/gql_system.json":"64d6dca3458572f0a842ad244f45aec31a754f029f57a14487c65b390f21fcd1","src/test/json/v25_05/gql_tuning.json":"6f3959de2a5606360e1c745264640a76c851faabd0bd34e1aac7673b83a43f93","src/test/json/v25_05/mod.rs":"8cc10ac110f41e5134484ce91cf21b66e78f6f359421b76f95761a7ce552c5f0","src/test/json/v25_05/version.json":"ad08c5ccc614c90be5970dac38a667d8735c26cfc28d7eb7f92954a54ed21c28","src/test/json/v25_05/web_net_conf.json":"5ba03fdfec06cbc413df44a29fe9cef8c0d86d160c3481df5e1ef2f3924c688f","src/test/json/v25_07/actions_locate.json":"2ed27c1421e6928dbe13dbfdb5c59e1045b30341fe7ebe05700006bc5ac572c0","src/test/json/v25_07/configuration_miner.json":"d0e49788f64ea37e35185483eccc8fe1270131fd0179b600175ac912a88df56d","src/test/json/v25_07/cooling_state.json":"2a6153060c8c279b70d9efe339053e3ac7771efd114f35789a33e683d1b71954","src/test/json/v25_07/miner_details.json":"3668e95fa5cbb3012205a82141f34da538731b83c5d1ed1330578bfd9afa1d73","src/test/json/v25_07/miner_errors.json":"3c7ce2ccedd172e6cb49859e7dac24bf562f7ef3de88a2477b20e55dadd7f2d1","src/test/json/v25_07/miner_hw_hashboards.json":"c7c3729aefedad742b209f10d48581c43b691944db578e56d1fd56667bc98191","src/test/json/v25_07/miner_stats.json":"55876a44ff068fe73413bd7d3f6e69795e0085feb23f9f54b1c83c9a7e40c35d","src/test/json/v25_07/mod.rs":"20a139a0659b8d793121ca91ec044bd6ea46b37529217c2812f1785a3106bdeb","src/test/json/v25_07/network.json":"c16ae038fc642e2c21636b37ab5c811f9fc321159633ba54351a086622a589a4","src/test/json/v25_07/performance_tuner_state.json":"121d36b9ad7e43a5c33530367518648c89d998b8f387fa7628e3ede7901c635d","src/test/json/v25_07/pools.json":"7d01b46f5e2740cd62b4d92ee3737023d42a524e73408307bc9b8b633ca32313","src/test/json/v25_07/version.json":"5f8f9f077bd6a6bca8c015d36dcc0e0fde2bdd931c28194e7baa2ea9a71fa307","src/test/json/v25_11/actions_locate.json":"2ed27c1421e6928dbe13dbfdb5c59e1045b30341fe7ebe05700006bc5ac572c0","src/test/json/v25_11/configuration_miner.json":"d0e49788f64ea37e35185483eccc8fe1270131fd0179b600175ac912a88df56d","src/test/json/v25_11/cooling_state.json":"998e315e4fb0eb91da5725acee7d40f863b5d26c790e8d3f8c9ef727357697ee","src/test/json/v25_11/miner_details.json":"c2f9059446bfb40d9b737aaf6636f73b594b88a18e162b6ccea0af6847495a1d","src/test/json/v25_11/miner_errors.json":"7f9fded490bb8435c1ed67328f138f2bdd9f10dcc8f99e6384d00c83756ffe22","src/test/json/v25_11/miner_hw_hashboards.json":"e7fe217c44549737874be301380335e2a3a127c1556992f20e906c2d8af74275","src/test/json/v25_11/miner_stats.json":"3e816ea7210242cbee94449bef15570a1177e54a20826f8d185434133974f0dc","src/test/json/v25_11/mod.rs":"20a139a0659b8d793121ca91ec044bd6ea46b37529217c2812f1785a3106bdeb","src/test/json/v25_11/network.json":"1d4db8147fcc4b3018aac111d94c6948cc4f1b891ff579288b3509c74d80a37f","src/test/json/v25_11/performance_tuner_state.json":"68ed121eed255033092bc9906f5b6be20ed2d56db24a3ff87c6d3d8508e44049","src/test/json/v25_11/pools.json":"ac3b27aa307276dc83c76f9173e530a7e028f47e5bfbe4765c3521fcdb8e744b","src/test/json/v25_11/version.json":"5bae6e9acc33a72f5eccf5469a898e6fa993cef32ba645f8c9ca7c25644e97ed","src/test/json/v26_04/actions_locate.json":"2ed27c1421e6928dbe13dbfdb5c59e1045b30341fe7ebe05700006bc5ac572c0","src/test/json/v26_04/configuration_miner.json":"ab5deaf410b09b65946de403f500841210892046ac1db9a76431286038626465","src/test/json/v26_04/cooling_state.json":"e275678500882836d2d56ca946436f6f56f9fe0481cd17fd4d920c679cecec9f","src/test/json/v26_04/miner_details.json":"78f5512b1478b7a8451cb1ffc313ff373e04fc80d814116a02c91e5331a54dc3","src/test/json/v26_04/miner_errors.json":"57267de6573161f3da5f175e4dd9c803307082792a048e8665febc97ee627990","src/test/json/v26_04/miner_hw_hashboards.json":"4e5bee3455604b2f6057d6fe27c86ba1b83059a97886c9fac41135de8da8f87f","src/test/json/v26_04/miner_stats.json":"086a7c3b4fa15d3c82c09d3bef5430304670e66e7e12d7c0c3f60bc6c0641cd5","src/test/json/v26_04/mod.rs":"20a139a0659b8d793121ca91ec044bd6ea46b37529217c2812f1785a3106bdeb","src/test/json/v26_04/network.json":"9a53a51853e31747d0e7f731860d1a0da3008fb2a88b798f5f95f7766cb72140","src/test/json/v26_04/performance_tuner_state.json":"1effaffcc5395d1c920ed7dc6a9e8c59e89b87e011504c17f6685a257bb91500","src/test/json/v26_04/pools.json":"30db2a4dd798cb909f22a5b360e5e57364b02ce63cc25151bbfb9f7649f1b421","src/test/json/v26_04/version.json":"ac21d0e6bc7ddb33669f1168b3f4b7ce8ec2d16989c626dab373e6635a3cc292","src/test/mod.rs":"ed52c3d613eabc4a0346bb38bcfdf7a94933d61e368d3c9094821edeab92f81b"},"package":"23001a9a0c55cbf04aa8ee401601527393feca8e367a33fe913321d4aafb3071"} \ No newline at end of file diff --git a/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs b/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs index fa947aee..e65fb201 100644 --- a/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs +++ b/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs @@ -286,6 +286,14 @@ impl GetDataLocations for BraiinsV2604 { tag: None, }, )], + DataField::BestShare => vec![( + WEB_MINER_STATS, + DataExtractor { + func: get_by_pointer, + key: Some("/miner_stats/best_share"), + tag: None, + }, + )], DataField::TuningTarget => vec![ ( WEB_MINER_CONFIGURATION, @@ -548,7 +556,13 @@ impl GetUptime for BraiinsV2604 { } } -impl GetBestShare for BraiinsV2604 {} +impl GetBestShare for BraiinsV2604 { + fn parse_best_share(&self, data: &HashMap) -> Option { + // Braiins OS reports the all-time best share at miner/stats -> miner_stats.best_share + // (round 16 / G9). Large diffs may exceed f64 exactness but are fine for display. + data.extract::(DataField::BestShare) + } +} impl GetSessionBestShare for BraiinsV2604 {} impl GetOperatingState for BraiinsV2604 { diff --git a/vendor/asic-rs-firmwares-luxminer/.cargo-checksum.json b/vendor/asic-rs-firmwares-luxminer/.cargo-checksum.json index 4a12d240..3da6e8db 100644 --- a/vendor/asic-rs-firmwares-luxminer/.cargo-checksum.json +++ b/vendor/asic-rs-firmwares-luxminer/.cargo-checksum.json @@ -1 +1 @@ -{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"fe8effe2bfdda5d4c390656c016729f531a2b1c60033228557659c0befdde9f2","Cargo.lock":"a2b2cb45bb8b574e4f29ffdcdb5ebafd1dd87a0e6e11b47383973a99be367784","Cargo.toml":"503efa00123f8567f5fe40bf6a93e9e453d13094df0e0e1b7e98bdacdfbd2595","Cargo.toml.orig":"1c4ba0315fb491c086fc22a5c9bafaf7288c6b1fd48679c3d03dbd9df156a8b5","src/backends/mod.rs":"548d988b877410e330a55e275f64b2adad95ca5f1a0f085fe144957c96b8906f","src/backends/v1/mod.rs":"06f28c59112bd40771db1c865d00402ae37f18146a3eaf9de905d3f4a0a6ba51","src/backends/v1/rpc.rs":"9dea9c65629e1e9b833b96a4ae88014f7195a26036104f92daa264fbdf13feba","src/firmware.rs":"d95345295ae5043dfc357e69ae56c564b261fdb3b19b5c0ad1765267ff05ab3f","src/lib.rs":"53f7acddeff8f7d82f80d09e0a9f91962011f9ccf2e441c4ca05cd7fc4eb292e","src/test/json/mod.rs":"24191681066d5cf6a3022ad59c1baa92b57e3ce7717bb78d6a682af9e19a38c4","src/test/json/v1/config.json":"6ca9e6217d853d4bf1e75d69159630e9c9184ede96751706b88dfb699b5d59ad","src/test/json/v1/devs.json":"8f746dc6a02953eee5ee96dcf53be8dc7880a8ffc2c6e303f0284bcf6a97f42d","src/test/json/v1/events.json":"913683ff97af3333018807e1cc6e43467ea8a55925e5964dc402616615e2a5e3","src/test/json/v1/fans.json":"f8a9a1234d651055c80f4ebb1380bbb4e6d19eb33012902c55fff1385e592447","src/test/json/v1/healthchipget_0.json":"10619460049333ca016b2beec59ecc514ed9077fb19bdf7d0ed697201f8cb96c","src/test/json/v1/healthchipget_1.json":"80927fb1480c95be7f3a4e155d63f68f97720530ff7cf5d5ade06f2a3e810bf0","src/test/json/v1/healthchipget_2.json":"1e93ee2ab472ee7af58add08b4251e3ce0ad4f986d4325abbf43fd4c9b3dd28f","src/test/json/v1/mod.rs":"5a050f07455e622e35ad79ab1c8a6daf2ea38c4198472e49c6bbfe80538a9e48","src/test/json/v1/pools.json":"0068745327e31853fec051172abb7337f18a4cf9972c51967113d63f4f31f504","src/test/json/v1/power.json":"80534bb4581de7c8b747bf33b5d629b909c6e16a531d18ecb4afd7ffad3f014f","src/test/json/v1/profiles.json":"1f00429036e270daa08f12cd2d7357135070c57acd7a899a3c0af6167fe82abb","src/test/json/v1/stats.json":"2b105f0eb927046c9d2389bde978a43e3d54d12a420dfbe400786bb2f0ae31ca","src/test/json/v1/summary.json":"aaea3378eb7040952037e2f1ef7bd5f20a1b242bf93d4ba0501c46104b0b31a0","src/test/json/v1/temps.json":"1ee781cd2be3ed6a6a07e23be930248735fb51348c160453ba10f6ef71fcb7f1","src/test/json/v1/version.json":"4beb6ca5c0ebf359cee0434fdcc4d0a1a0607436634e46be3fd951e2256595df","src/test/json/v1/voltageget_0.json":"c445fa8674c2542b2d296fbafdd3166c53008dfbd9da8095327217989d37f1da","src/test/json/v1/voltageget_1.json":"96b91c3447dd66e7f1f575ed3b99611062e8b1d516d31422b74e425c46b2f49c","src/test/json/v1/voltageget_2.json":"7d40544021b2e32401135ae333067b770d2d736ada9e60deaca8fd8f5a79a1e3","src/test/mod.rs":"ed52c3d613eabc4a0346bb38bcfdf7a94933d61e368d3c9094821edeab92f81b"},"package":"513792d93a2a21d5258d9e6ac0e6dc9e0a6365118934514b4e656792add78066"} \ No newline at end of file +{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"fe8effe2bfdda5d4c390656c016729f531a2b1c60033228557659c0befdde9f2","Cargo.lock":"a2b2cb45bb8b574e4f29ffdcdb5ebafd1dd87a0e6e11b47383973a99be367784","Cargo.toml":"503efa00123f8567f5fe40bf6a93e9e453d13094df0e0e1b7e98bdacdfbd2595","Cargo.toml.orig":"1c4ba0315fb491c086fc22a5c9bafaf7288c6b1fd48679c3d03dbd9df156a8b5","src/backends/mod.rs":"548d988b877410e330a55e275f64b2adad95ca5f1a0f085fe144957c96b8906f","src/backends/v1/mod.rs":"3e57d2c72d1d48c0b86f5438202633fcd9c1ebf375bd87ffe53ea5298ae936ad","src/backends/v1/rpc.rs":"9dea9c65629e1e9b833b96a4ae88014f7195a26036104f92daa264fbdf13feba","src/firmware.rs":"d95345295ae5043dfc357e69ae56c564b261fdb3b19b5c0ad1765267ff05ab3f","src/lib.rs":"53f7acddeff8f7d82f80d09e0a9f91962011f9ccf2e441c4ca05cd7fc4eb292e","src/test/json/mod.rs":"24191681066d5cf6a3022ad59c1baa92b57e3ce7717bb78d6a682af9e19a38c4","src/test/json/v1/config.json":"6ca9e6217d853d4bf1e75d69159630e9c9184ede96751706b88dfb699b5d59ad","src/test/json/v1/devs.json":"8f746dc6a02953eee5ee96dcf53be8dc7880a8ffc2c6e303f0284bcf6a97f42d","src/test/json/v1/events.json":"913683ff97af3333018807e1cc6e43467ea8a55925e5964dc402616615e2a5e3","src/test/json/v1/fans.json":"f8a9a1234d651055c80f4ebb1380bbb4e6d19eb33012902c55fff1385e592447","src/test/json/v1/healthchipget_0.json":"10619460049333ca016b2beec59ecc514ed9077fb19bdf7d0ed697201f8cb96c","src/test/json/v1/healthchipget_1.json":"80927fb1480c95be7f3a4e155d63f68f97720530ff7cf5d5ade06f2a3e810bf0","src/test/json/v1/healthchipget_2.json":"1e93ee2ab472ee7af58add08b4251e3ce0ad4f986d4325abbf43fd4c9b3dd28f","src/test/json/v1/mod.rs":"5a050f07455e622e35ad79ab1c8a6daf2ea38c4198472e49c6bbfe80538a9e48","src/test/json/v1/pools.json":"0068745327e31853fec051172abb7337f18a4cf9972c51967113d63f4f31f504","src/test/json/v1/power.json":"80534bb4581de7c8b747bf33b5d629b909c6e16a531d18ecb4afd7ffad3f014f","src/test/json/v1/profiles.json":"1f00429036e270daa08f12cd2d7357135070c57acd7a899a3c0af6167fe82abb","src/test/json/v1/stats.json":"2b105f0eb927046c9d2389bde978a43e3d54d12a420dfbe400786bb2f0ae31ca","src/test/json/v1/summary.json":"aaea3378eb7040952037e2f1ef7bd5f20a1b242bf93d4ba0501c46104b0b31a0","src/test/json/v1/temps.json":"1ee781cd2be3ed6a6a07e23be930248735fb51348c160453ba10f6ef71fcb7f1","src/test/json/v1/version.json":"4beb6ca5c0ebf359cee0434fdcc4d0a1a0607436634e46be3fd951e2256595df","src/test/json/v1/voltageget_0.json":"c445fa8674c2542b2d296fbafdd3166c53008dfbd9da8095327217989d37f1da","src/test/json/v1/voltageget_1.json":"96b91c3447dd66e7f1f575ed3b99611062e8b1d516d31422b74e425c46b2f49c","src/test/json/v1/voltageget_2.json":"7d40544021b2e32401135ae333067b770d2d736ada9e60deaca8fd8f5a79a1e3","src/test/mod.rs":"ed52c3d613eabc4a0346bb38bcfdf7a94933d61e368d3c9094821edeab92f81b"},"package":"513792d93a2a21d5258d9e6ac0e6dc9e0a6365118934514b4e656792add78066"} \ No newline at end of file diff --git a/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs b/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs index aac39eb6..2d1331bf 100644 --- a/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs +++ b/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs @@ -445,6 +445,22 @@ impl GetDataLocations for LuxMinerV1 { tag: None, }, )], + DataField::BestShare => vec![( + RPC_SUMMARY, + DataExtractor { + func: get_by_pointer, + key: Some("/SUMMARY/0/Best Share"), + tag: None, + }, + )], + DataField::SessionBestShare => vec![( + RPC_SUMMARY, + DataExtractor { + func: get_by_pointer, + key: Some("/SUMMARY/0/Best Session Share"), + tag: None, + }, + )], DataField::Uptime => vec![( RPC_STATS, DataExtractor { @@ -888,8 +904,18 @@ impl GetUptime for LuxMinerV1 { } } -impl GetBestShare for LuxMinerV1 {} -impl GetSessionBestShare for LuxMinerV1 {} +impl GetBestShare for LuxMinerV1 { + fn parse_best_share(&self, data: &HashMap) -> Option { + // LuxOS summary -> "Best Share" (all-time), round 16 / G9. + data.extract::(DataField::BestShare) + } +} +impl GetSessionBestShare for LuxMinerV1 { + fn parse_session_best_share(&self, data: &HashMap) -> Option { + // LuxOS summary -> "Best Session Share" (since boot), round 16 / G9. + data.extract::(DataField::SessionBestShare) + } +} impl GetOperatingState for LuxMinerV1 {}