2026-09-03 01:56:29 +08:00
|
|
|
@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
|
2026-09-03 22:27:23 +08:00
|
|
|
rem 入口在项目根, 代码在 src\; cd 进 src 是为了让 py 之间的 import 正常解析。
|
2026-09-03 01:56:29 +08:00
|
|
|
chcp 65001 >nul
|
|
|
|
|
set PYTHONUTF8=1
|
2026-09-03 22:27:23 +08:00
|
|
|
cd /d "%~dp0src"
|
|
|
|
|
"%~dp0venv\Scripts\python.exe" ecat_tool.py %*
|
2026-09-03 01:56:29 +08:00
|
|
|
pause
|