feat: add HIL diagnostics and meter health handling

This commit is contained in:
2026-08-17 22:33:04 +02:00
parent bc2ac6e8f6
commit aa25aa2c12
30 changed files with 2108 additions and 236 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
from pathlib import Path
from hil_common import main_guard, pio_command, run_checked
def main() -> int:
print("Stable serial candidates (listing only; no device is opened):")
by_id = Path("/dev/serial/by-id")
candidates = sorted(by_id.iterdir()) if by_id.is_dir() else []
if not candidates:
print(" none")
for candidate in candidates:
print(f" {candidate} -> {candidate.resolve()}")
print("\nPlatformIO discovery (metadata only):")
run_checked([pio_command(), "device", "list"])
return 0
if __name__ == "__main__":
main_guard(main)