這是一個用於將aracer x系列的wifi即時資訊轉換為racechhrono rc3格式的程式。
config.txt
: 用於設定初始化ECU所需的IP、init、watchdog等數據。
main.py
: 負責與ECU和Racechrono進行通訊。
decode.py
: 負責將ECU送來的資訊做轉換,轉換後的數據填入Racechrono所接受的RC3協議。
TwistedProxyCalcTk.py
: 提供一個GUI界面,用於測試ECU的數據對應的資訊。由於使用了tk做GUI,因此只能在win、mac平台上使用。
將下列字串複製到terminal執行
curl -sLo installer.sh https://raw.githubusercontent.com/timliucode/Aracer_TCPdecode2Racechrono/main/installer.sh && chmod +x installer.sh && ./installer.sh
如果要更新請在目錄內執行git pull
編輯 config.txt
文件,設定初始化ECU所需的IP、init、watchdog等數據。
執行 ./main.py
以開始與ECU和Racechrono的通訊。
如有偵錯需求,執行時可帶 -l
就會產生log日誌便於分析
啟用日誌後會在目錄下產生三個檔案,每次執行都會創建新的檔案
console_log
在terminal print出來的資訊會記錄在這裡
ECU_log
ECU送來的資訊會記錄在這裡
RC3_log
轉換後的資訊會記錄在這裡
如果需要測試ECU的數據對應的資訊,可以執行 TwistedProxyCalcTk.py
。
Python
Twisted 套件
這個程式已在Windows和Android (termux)上進行過測試。