Skip to content

timliucode/Aracer_TCPdecode2Racechrono

Repository files navigation

Aracer x系列的wifi即時資訊轉racechhrono rc3的轉換程式

這是一個用於將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)上進行過測試。

About

aracer ecu tcp socket to Racechrono RC3 protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published