docs: Ubuntu host-side verification via Windows udprelay - verified end-to-end

This commit is contained in:
OpenCode 2026-09-11 19:10:28 +08:00
parent e03d130f0f
commit 3351bf3776

View File

@ -91,6 +91,30 @@ Get-Process enet-validator | Stop-Process -Force
- **1947 端口**:40B ASCII 许可令牌广播(`BlZRQphA…`,每 ~34s 一轮)
- 真机固件过滤:AECH 仅应答源 IP=192.168.123.113
## Ubuntu 主机侧验证(跨网段经 Windows 中继)
Ubuntu 机器(192.168.58.7)只有 58 网段,Butler 在 123 网段且 AECH 固件只认源 IP=192.168.123.113。
架构:`Ubuntu hostdemo → Windows udprelay(源伪装 .113)→ Butler`。已实测全链路(2026-09-11)。
```powershell
# ① Windows 侧启动中继(先启动;占用 UDP 31772,与 show 模式互斥,二选一)
.\target\release\enet-validator.exe udprelay 0.0.0.0:31772 192.168.123.1 192.168.123.113
```
```bash
# ② Ubuntu 侧(git pull && cargo build --release 后)
cd ~/enet-validator
HOSTDEMO_MODE=show HOSTDEMO_LISTEN=0.0.0.0:31772 \
nohup ./target/release/enet-validator hostdemo 192.168.58.107 0 > ~/show_ubuntu.log 2>&1 &
# 目标 IP = Windows 机器的 58 网段地址; HOSTDEMO_LISTEN = 本地实际绑定
# (帧内宣告 IP 由程序固定为 192.168.123.113, 与 socket 绑定解耦)
# 停止
pkill -f "enet-validator hostdemo"
```
实测结果:发现 217B ✓ → AERE 认领 PASS ✓ → RDM 发现 3 台灯具 ✓ → DMX 渐变上灯 ✓
## Ubuntu 虚拟 Butler 部署
```