@echo off rem EtherCAT master tool for DCU LAN9252 (scan/flash/send/monitor) rem Examples: ecat.bat status | ecat.bat flash | ecat.bat send --u64 0x1,0x2,0x3,0x4 --duration 5 rem 入口在项目根, 代码在 src\; cd 进 src 是为了让 py 之间的 import 正常解析。 chcp 65001 >nul set PYTHONUTF8=1 cd /d "%~dp0src" "%~dp0venv\Scripts\python.exe" ecat_tool.py %* pause