Files
TTSDream/lan-ups/docs/lede.md
T

11 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# LEDE 路由器部署
1. 执行 `ssh root@192.168.5.1` 登录。用 USB 数据线将 UPS 从电脑移接到路由器,通过 `/sys/bus/usb/devices/` 下的 `idVendor` 和 `idProduct` 核对设备 ID `0665:5161`。
2. 刷新路由器的软件包列表,安装 `nut-server`、`nut-driver-blazer_usb` 和 `nut-upsc`。软件包可用性取决于固件和软件源。
3. 在路由器的 NUT 配置中添加名为 `h1000m` 的 UPS,驱动设为 `blazer_usb`,端口设为 `auto`。让服务端监听 `127.0.0.1` 和路由器的 LAN 地址 `192.168.5.1`,TCP 端口为 `3493`。
4. 启动服务后,在路由器运行 `upsc h1000m@127.0.0.1`,检查 `driver.name`、`ups.status` 和设备返回的电池数据。然后在电脑上启动自研监控,检查网页读数。
如果要配置停电自动关机,将路由器和通信路径上的交换机接到 UPS 供电,并先在客户端确认能收到状态变化。
[H1000M 同型号实测](https://github.com/networkupstools/nut/issues/995) · [OpenWrt 驱动包](https://openwrt.org/packages/pkgdata/nut-driver-blazer_usb)