diff --git a/crates/alkane-gui/src/bin/miner_probe.rs b/crates/alkane-gui/src/bin/miner_probe.rs index f511ace2..69bc6640 100644 --- a/crates/alkane-gui/src/bin/miner_probe.rs +++ b/crates/alkane-gui/src/bin/miner_probe.rs @@ -300,13 +300,15 @@ async fn msgs(ip_s: &str) { println!(" fans(rpm)={fans:?} psu_fans={}", d.psu_fans.len()); for b in d.hashboards.iter() { println!( - " board pos={} hr={:?}TH chips={:?}/{:?} board_temp={:?} outlet_temp={:?}", + " board pos={} hr={:?}TH chips={:?}/{:?} board_temp={:?} outlet_temp={:?} freq={:?}MHz volt={:?}V", b.position, th(&b.hashrate), b.working_chips, b.expected_chips, b.board_temperature.as_ref().map(|t| t.as_celsius()), b.outlet_chip_temperature.as_ref().map(|t| t.as_celsius()), + b.frequency.as_ref().map(|f| f.as_megahertz()), + b.voltage.as_ref().map(|v| v.as_volts()), ); } if d.messages.is_empty() { diff --git a/crates/alkane-gui/src/fixtures.rs b/crates/alkane-gui/src/fixtures.rs index 68a0c9e6..fc01f74d 100644 --- a/crates/alkane-gui/src/fixtures.rs +++ b/crates/alkane-gui/src/fixtures.rs @@ -67,6 +67,12 @@ impl Board { } else { vec![] }; + // Per-board configured frequency/voltage for the G7 read-side tooltip demo. + let (board_frequencies, board_voltages) = if self.mining { + (vec![590.0, 590.0, 565.0], vec![13.50, 13.50, 13.35]) + } else { + (vec![], vec![]) + }; // Air-cooled WhatsMiners report an ambient reading (asic-rs surfaces it in // its fluid_temperature field); the scan routes it to env_temp for // air-cooled models, so the demo mirrors that (round 11 #17). @@ -117,6 +123,8 @@ impl Board { hashrate_ths: self.hashrate, expected_ths: self.expected, board_hashrates, + board_voltages, + board_frequencies, efficiency, power_w: self.power, chip_temp_c: self.temp, diff --git a/crates/alkane-gui/src/model.rs b/crates/alkane-gui/src/model.rs index 18204dbb..9333235d 100644 --- a/crates/alkane-gui/src/model.rs +++ b/crates/alkane-gui/src/model.rs @@ -456,6 +456,11 @@ pub struct MinerRow { /// The per-board tooltip shows actual / expected (round 18 #3). Empty when the /// firmware reports no per-board expected hashrate. pub board_expected_hashrates: Vec, + /// Per-hashboard configured voltage (V) and frequency (MHz), index-aligned + /// with the hashboards (round 18 / roadmap G7 read side). Shown in the per-board + /// Health tooltip; 0.0 where the firmware reports no value. + pub board_voltages: Vec, + pub board_frequencies: Vec, #[allow(dead_code)] // retained for the "slow" band; not shown as its own column pub efficiency: f64, pub power_w: f64, @@ -799,11 +804,22 @@ impl MinerRow { let expected = self.board_expected_hashrates.get(i).copied().unwrap_or(0.0); let a = hashrate_num_for(&self.algorithm, actual); let e = hashrate_num_for(&self.algorithm, expected); - match (a, e) { + let mut s = match (a, e) { (Some(a), Some(e)) => format!("{num} \u{00b7} {a} / {e} {unit}"), (Some(a), None) => format!("{num} \u{00b7} {a} {unit}"), _ => num.to_string(), + }; + // Per-board configured frequency / voltage (round 18 / G7 read side), + // appended when the firmware reports them. + let freq = self.board_frequencies.get(i).copied().unwrap_or(0.0); + let volt = self.board_voltages.get(i).copied().unwrap_or(0.0); + if freq > 0.0 { + s.push_str(&format!(" \u{00b7} {freq:.0} MHz")); } + if volt > 0.0 { + s.push_str(&format!(" \u{00b7} {volt:.2} V")); + } + s } else { String::new() // padding slot for fleet alignment }; diff --git a/crates/alkane-gui/src/scan.rs b/crates/alkane-gui/src/scan.rs index 9cd85deb..21a01bd5 100644 --- a/crates/alkane-gui/src/scan.rs +++ b/crates/alkane-gui/src/scan.rs @@ -675,6 +675,18 @@ async fn to_row(miner: &dyn Miner) -> MinerRow { .unwrap_or(0.0) }) .collect(); + // Per-board configured voltage (V) and frequency (MHz), index-aligned, for the + // per-board tooltip (round 18 / roadmap G7 read side). 0.0 where unreported. + let board_voltages: Vec = data + .hashboards + .iter() + .map(|b| b.voltage.as_ref().map(|v| v.as_volts()).unwrap_or(0.0)) + .collect(); + let board_frequencies: Vec = data + .hashboards + .iter() + .map(|b| b.frequency.as_ref().map(|f| f.as_megahertz()).unwrap_or(0.0)) + .collect(); let fan_rpms: Vec = data .fans .iter() @@ -928,6 +940,8 @@ async fn to_row(miner: &dyn Miner) -> MinerRow { expected_ths, board_hashrates, board_expected_hashrates, + board_voltages, + board_frequencies, efficiency: data.efficiency.unwrap_or(0.0), power_w, // PSU info (round 17 R5/G15; ePIC exposes it today). A reported-but-zero