hthctl doctor
应检查:配置能否解析、Profile 能否解析、contract hash、API 版本 hth.api.v1、串口路径(serial 模式)、socket 路径、安全动作能否编码、心跳周期是否小于 30 s、Profile 与安装是否匹配。doctor 不打开串口写危险动作。
其它:
hthctl devices
hthctl capabilities --device hood.0
hthctl snapshot --device hood.0
hthctl watch
hthctl events
hthctl faults
hthctl health
hthctl validate-action --file batch.json
hthctl enter-safe-mode --device hood.0
hthctl 默认连接 mock/本地 socket 策略以实现安全:对真实 control endpoint 需要显式确认参数(与 SDK 示例相同精神)。它 从不 直接 open 串口。
hthd --check-config --config /etc/hth/hthd.yaml
未知字段报错。serial 模式缺安全值不得静默填默认。改安全合同通过 重启 生效,不做半热更新。
systemctl status hthd
journalctl -u hthd -o short-iso --no-pager | tail
ls -l /run/hth/*.sock
# 不应出现 TCP 监听
ss -lntp | grep hthd || true
生命周期卡在 PROBING:启动期温度无响应是 合同行为。看 GET_MOTOR_STATUS 的 startup_complete,不要用温度超时判死。
watchdog_tripped=1:FPGA 已把 PTC 0 / FAN 10。恢复靠下一帧合法 SET_ALL。Host 应记录故障并避免把门心跳写成 0 以外的“创意值”。
hth-capture --out /var/lib/hth/captures/run1
# Replay 配置 backend.kind=replay,且必须拒绝打开真串口
Capture 是诊断工具,不是数据湖。Manifest 应含 api_version、profile hash、capability hash、起止时间。
SERIAL_PERMISSION_DENIED:hth 是否在串口组、udev MODE/GROUP 是否生效Permission denied on socket:用户是否在 hth-observe / hth-control,是否重新登录使组生效hthd --check-config 新配置systemctl restart hthd — 旧 Lease 全部作废,控制客户端必须重拿api_version 仍为 hth.api.v1 或按兼容性政策 bumpkill -9 当日常停止手段还指望安全帧一定发出Hardware validation: NOT RUN