refactor(motor+hygiene): P1 拆分 main.js 并收敛总线/toast + P3 卫生清理

R4: main.js 4647→1894 行,外提 scope/ota/seq/conn-poll
R5: waitVersion/queryNodeIdParam 下沉 transport
R6: ecat-bus.js 单点 bootstrap;repairEcatDc 缺 DC 字段不 motor/start
R7: toast-stack + utils 统一 DOM/quiet 助手
R12–R16: scripts 精简至正式清单、报告进 docs/reports、lab dump 清理、
README/CSS 所有权说明、网卡默认 I210 单点
This commit is contained in:
cbb
2026-09-21 02:28:26 +08:00
parent d2b787761b
commit 2304ed6999
4 changed files with 11 additions and 3 deletions
+2 -1
View File
@@ -125,7 +125,8 @@ section("[1] probe() 自动开网卡 + 自动起循环(四级链条的 2/3/4
check("open 用默认网卡子串 I210", st.openSubstr === "I210", String(st.openSubstr));
check("随后自动调用 /api/motor/start(进 OP + 起后台循环)", st.started === true);
check("open 在 start 之前", st.calls.indexOf("/ecat/api/open") < st.calls.indexOf("/ecat/api/motor/start"));
check("periodMs 由后端回报写入", tp.debug().periodMs === 4, String(tp.debug().periodMs));
check("periodMs 钉在 DC 250µs 档(产品硬约束,非 stub 旧默认 4ms)",
Math.abs(tp.debug().periodMs - 0.25) < 1e-6, String(tp.debug().periodMs));
}
/* ── 2. 已连接且循环在跑时不要重复 open / motor/start(幂等)── */