Coder Social home page Coder Social logo

aracer_tcpdecode2racechrono's Introduction

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)上進行過測試。

aracer_tcpdecode2racechrono's People

Contributors

timliucode avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.