ping -c 4 <桩IP> && telnet <桩IP> 8883AT+CSQ # 信号强度,<10 视为盲区AT+CGATT? # 是否附着 PDP,返回 0 即卡欠费/APN 错信号值 4 表示“找网失败”,值 8 表示 TCP 已建链。
2 条 AT 指令即可区分“信号问题”还是“IP 问题”。tcp.port==8883 && ssl.alert)grep -i "certificate verify" /var/log/ocpp.logx509: certificate has expired or is not yet valid 即可秒定“证书过期”。select last_heartbeat from cp where charge_box_id='XXX'
order by ts desc limit 1;ocpp_msg 表,若 BootNotification 后无 Heartbeat 记录,说明固件 crash 或线程饿死。tail -f /tmp/ocpp | grep -E "Heartbeat|WebSocket"Send Heartbeat 无 HeartbeatResponse ➜ 云端 MQTT 消费掉线,重启云端容器即可恢复。#!/bin/bashID=$1echo "=== 网络 ==="ping -W 2 -c 3 $ID >/dev/null && echo "ok" || echo "network down"echo "=== TLS ==="echo | openssl s_client -connect $ID:8883 2>&1 | grep "Verify return code"echo "=== 心跳 ==="redis-cli --raw hget cp:$ID last_seen | xargs -i date -d @{}network down ➜ 派给运营商;certificate ➜ 派给证书管理员;last_seen 超时 ➜ 派给平台运维。联系人: 深圳市芯橙科技有限公司
手机: 18025316892
电话: 0755-21010929
邮箱: shutao.chen@x-cheng.com
地址: 深圳市龙华区民治大道展滔科技大厦B座911