asic-rs telemetry: board temp thresholds -> target/hot/dangerous (LuxOS, Braiins; remap ePIC)
build-test-release / release (push) Successful in 16m46s
build-test-release / release (push) Successful in 16m46s
Round 19 #10 telemetry extension. Live-verified against the corpus miners, this remodels the board temperature thresholds to item #10's target/hot/dangerous scheme and adds the LuxOS and Braiins backends. Supersedes the ePIC-only critical/shutdown model shipped in v0.72.0. Core (asic-rs-core): - MinerData: temp_critical/temp_shutdown -> temp_target/temp_hot/temp_dangerous. - parse_temperature_limits (defaulted on the existing GetFluidTemperature trait) now returns (target, hot, dangerous); parse_data wires all three fields. Backends (each reads an already-fetched or single command; live-verified): - LuxOS: new tempctrl RPC; ChipTarget/ChipHot/ChipDangerous (live 10.4.1.60 = 83/93/100). - Braiins v25_07 + v26_04: configuration/constraints cooling_constraints defaults (live 10.4.1.83 = 60/80/90); WEB_CONSTRAINTS already fetched for tuning caps. - ePIC remap: Shutdown Temp -> hot, Critical Temp -> dangerous, no target. - VNish (settings restart_temp/param) handled in a follow-up (needs settings auth); Antminer/WhatsMiner expose no thresholds -> (None,None,None). GUI: the two temp columns (Critical/Shutdown) become three (Target/Hot/Dangerous), right-aligned, Temperature category, auto-hidden when empty. MinerRow gains temp_target_c/temp_hot_c/temp_dangerous_c; to_row reads them. ALL_COLUMNS 70 -> 71. Fixtures captured from live: luxminer tempctrl.json, braiins configuration_constraints.json. Fixture tests for epic, luxminer, braiins v26_04 assert the parsed thresholds. Patch 0029. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6
This commit is contained in:
@@ -563,10 +563,11 @@ pub struct MinerRow {
|
||||
/// (round 11 #17).
|
||||
pub env_temp_c: f64,
|
||||
pub outlet_temp_c: f64,
|
||||
/// Board temperature safety thresholds in Celsius (round 19 #10, T3); `None`
|
||||
/// when the firmware does not report them (ePIC today).
|
||||
pub temp_critical_c: Option<f64>,
|
||||
pub temp_shutdown_c: Option<f64>,
|
||||
/// Board temperature safety thresholds in Celsius (round 19 #10, T3): target /
|
||||
/// hot / dangerous. `None` per field when the firmware does not report it.
|
||||
pub temp_target_c: Option<f64>,
|
||||
pub temp_hot_c: Option<f64>,
|
||||
pub temp_dangerous_c: Option<f64>,
|
||||
/// Individual cooling-fan RPMs (empty if unknown). PSU fan is tracked
|
||||
/// separately below since it is not part of the cooling-fan set.
|
||||
pub fan_rpms: Vec<f64>,
|
||||
@@ -1113,10 +1114,12 @@ pub enum Column {
|
||||
FluidTemp,
|
||||
EnvTemp,
|
||||
OutletTemp,
|
||||
/// Board temperature safety thresholds (round 19 #10, T3). Populated where the
|
||||
/// firmware reports them (ePIC today); auto-hidden when empty.
|
||||
CriticalTemp,
|
||||
ShutdownTemp,
|
||||
/// Board temperature safety thresholds (round 19 #10, T3): target / hot /
|
||||
/// dangerous. Populated where the firmware reports them (LuxOS full set, ePIC
|
||||
/// hot+dangerous, Braiins defaults, VNish target+dangerous); auto-hidden empty.
|
||||
TargetTemp,
|
||||
HotTemp,
|
||||
DangerousTemp,
|
||||
PsuFan,
|
||||
/// PSU identity + rated voltage envelope (round 17 R5). Populated where the
|
||||
/// firmware exposes PSU info (ePIC today).
|
||||
@@ -1175,7 +1178,7 @@ pub enum Column {
|
||||
|
||||
/// Every column, in registry order. Ip first, then the default-visible set
|
||||
/// (UI-SPEC order), then all remaining metrics.
|
||||
pub const ALL_COLUMNS: [Column; 70] = [
|
||||
pub const ALL_COLUMNS: [Column; 71] = [
|
||||
Column::Ip,
|
||||
Column::Hashrate,
|
||||
Column::Hashrate1m,
|
||||
@@ -1203,8 +1206,9 @@ pub const ALL_COLUMNS: [Column; 70] = [
|
||||
Column::FluidTemp,
|
||||
Column::EnvTemp,
|
||||
Column::OutletTemp,
|
||||
Column::CriticalTemp,
|
||||
Column::ShutdownTemp,
|
||||
Column::TargetTemp,
|
||||
Column::HotTemp,
|
||||
Column::DangerousTemp,
|
||||
Column::PsuFan,
|
||||
Column::PsuVersion,
|
||||
Column::PsuSerial,
|
||||
@@ -1311,8 +1315,9 @@ impl Column {
|
||||
Column::FluidTemp => "Fluid temp",
|
||||
Column::EnvTemp => "Env temp",
|
||||
Column::OutletTemp => "Outlet temp",
|
||||
Column::CriticalTemp => "Critical temp",
|
||||
Column::ShutdownTemp => "Shutdown temp",
|
||||
Column::TargetTemp => "Target temp",
|
||||
Column::HotTemp => "Hot temp",
|
||||
Column::DangerousTemp => "Dangerous temp",
|
||||
Column::PsuFan => "PSU fan (RPM)",
|
||||
Column::PsuVersion => "PSU version",
|
||||
Column::PsuSerial => "PSU serial",
|
||||
@@ -1359,7 +1364,7 @@ impl Column {
|
||||
}
|
||||
Column::Power => 90,
|
||||
Column::ChipTemp | Column::FluidTemp | Column::EnvTemp | Column::OutletTemp => 95,
|
||||
Column::CriticalTemp | Column::ShutdownTemp => 105,
|
||||
Column::TargetTemp | Column::HotTemp | Column::DangerousTemp => 105,
|
||||
Column::Fan1 | Column::Fan2 | Column::Fan3 | Column::Fan4 | Column::PsuFan => 90,
|
||||
Column::FanSpeedPercent => 80,
|
||||
Column::Target => 110,
|
||||
@@ -1422,8 +1427,9 @@ impl Column {
|
||||
| Column::FluidTemp
|
||||
| Column::EnvTemp
|
||||
| Column::OutletTemp
|
||||
| Column::CriticalTemp
|
||||
| Column::ShutdownTemp
|
||||
| Column::TargetTemp
|
||||
| Column::HotTemp
|
||||
| Column::DangerousTemp
|
||||
| Column::Fan1
|
||||
| Column::Fan2
|
||||
| Column::Fan3
|
||||
@@ -1511,8 +1517,9 @@ impl Column {
|
||||
Column::FluidTemp => SortKey::Num(r.fluid_temp_c),
|
||||
Column::EnvTemp => SortKey::Num(r.env_temp_c),
|
||||
Column::OutletTemp => SortKey::Num(r.outlet_temp_c),
|
||||
Column::CriticalTemp => SortKey::Num(r.temp_critical_c.unwrap_or(none)),
|
||||
Column::ShutdownTemp => SortKey::Num(r.temp_shutdown_c.unwrap_or(none)),
|
||||
Column::TargetTemp => SortKey::Num(r.temp_target_c.unwrap_or(none)),
|
||||
Column::HotTemp => SortKey::Num(r.temp_hot_c.unwrap_or(none)),
|
||||
Column::DangerousTemp => SortKey::Num(r.temp_dangerous_c.unwrap_or(none)),
|
||||
Column::Fan1 => SortKey::Num(r.fan_rpms.first().copied().unwrap_or(none)),
|
||||
Column::Fan2 => SortKey::Num(r.fan_rpms.get(1).copied().unwrap_or(none)),
|
||||
Column::Fan3 => SortKey::Num(r.fan_rpms.get(2).copied().unwrap_or(none)),
|
||||
@@ -1612,8 +1619,9 @@ impl Column {
|
||||
Column::FluidTemp => num(r.fluid_temp_c, 1, " C"),
|
||||
Column::EnvTemp => num(r.env_temp_c, 1, " C"),
|
||||
Column::OutletTemp => num(r.outlet_temp_c, 1, " C"),
|
||||
Column::CriticalTemp => r.temp_critical_c.map(|v| num(v, 0, " C")).unwrap_or_default(),
|
||||
Column::ShutdownTemp => r.temp_shutdown_c.map(|v| num(v, 0, " C")).unwrap_or_default(),
|
||||
Column::TargetTemp => r.temp_target_c.map(|v| num(v, 0, " C")).unwrap_or_default(),
|
||||
Column::HotTemp => r.temp_hot_c.map(|v| num(v, 0, " C")).unwrap_or_default(),
|
||||
Column::DangerousTemp => r.temp_dangerous_c.map(|v| num(v, 0, " C")).unwrap_or_default(),
|
||||
// Per-fan RPM: blank (not "-") when the fan index is absent, so a miner
|
||||
// with fewer fans leaves the extra Fan columns empty and auto-hide can
|
||||
// drop them (round 19 #8).
|
||||
@@ -1736,7 +1744,7 @@ impl Column {
|
||||
| Column::Uptime | Column::Target | Column::BoardHashrate | Column::BoardVoltage
|
||||
| Column::BoardFrequency => (3, "Performance"),
|
||||
Column::ChipTemp | Column::FluidTemp | Column::EnvTemp | Column::OutletTemp
|
||||
| Column::CriticalTemp | Column::ShutdownTemp => {
|
||||
| Column::TargetTemp | Column::HotTemp | Column::DangerousTemp => {
|
||||
(4, "Temperature")
|
||||
}
|
||||
Column::Fan1 | Column::Fan2 | Column::Fan3 | Column::Fan4 | Column::PsuFan
|
||||
|
||||
@@ -1151,8 +1151,9 @@ async fn to_row(miner: &dyn Miner) -> MinerRow {
|
||||
fluid_temp_c,
|
||||
env_temp_c,
|
||||
outlet_temp_c,
|
||||
temp_critical_c: data.temp_critical,
|
||||
temp_shutdown_c: data.temp_shutdown,
|
||||
temp_target_c: data.temp_target,
|
||||
temp_hot_c: data.temp_hot,
|
||||
temp_dangerous_c: data.temp_dangerous,
|
||||
fan_rpms,
|
||||
fan_speed_percent: data.fan_speed_percent,
|
||||
psu_fan_rpm,
|
||||
|
||||
Reference in New Issue
Block a user