# ESP32 C5 Network Watchdog

ESP32-C5 Network WatchDog by Ping

巴掌大的 ESP32-C5 板子做成网络体检仪：同时扫 2.4 GHz 和 5 GHz，存主备两组 Wi-Fi，连接掉了十秒内自动重连，两个都失败就退回配网热点。

- id: dateno1-esp32-c5-network-watchdog
- author: dateno1
- repository: https://github.com/dateno1/ESP32-C5-Network-Watchdog
- license: Apache-2.0
- shape: square
- scenes: wearable
- boards: ESP32-C5
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/dateno1-esp32-c5-network-watchdog/
- html_zh: https://esp32gallery.com/zh/projects/dateno1-esp32-c5-network-watchdog/
- json: https://esp32gallery.com/data/catalog/projects/dateno1-esp32-c5-network-watchdog.json

## Hardware

Supported hardware: ESP32-C5. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32-C5。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
A small ESP32-C5 board turns into a network health meter: it scans both 2.4 GHz and 5 GHz, stores a primary and a fallback Wi-Fi profile, reconnects within ten seconds of a drop and falls back to a setup hotspot when both fail. Monitoring uses non-blocking ICMP after a five-second settle gate so slow DHCP does not skew the numbers, and results are averaged over rolling 10-minute and 60-minute windows. Four touch pages show live latency, the two statistics views and the device's IP, mask, gateway and DNS. The backlight idles at 60% and jumps to 100% for thirty seconds on a touch, while an on-board WS2812 reports portal, connecting, healthy, failing and reconnecting states.
```

## 中文

```
巴掌大的 ESP32-C5 板子做成网络体检仪：同时扫 2.4 GHz 和 5 GHz，存主备两组 Wi-Fi，连接掉了十秒内自动重连，两个都失败就退回配网热点。监测部分用非阻塞 ICMP，开始前先等五秒让 DHCP 落定，免得慢启动污染统计；结果按最近 10 分钟和 60 分钟两个滚动窗口算平均延迟和成功率，四个触摸页面分别看实时、十分钟、一小时和本机网络参数。屏幕平时压在 60% 背光，摸一下亮到 100% 保持三十秒。板载一颗 WS2812，用五种颜色表示配网中、连接中、正常、目标失败和断线重连。
```
