hardbyte / hardbyte/python-can
Add support for the more efficient ElmüSoft Candlelight Protocol
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 1.6k
- 分支
- 697
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Hello**
The legacy Candlelight protocol from Geschwister Schneider has not been designed very well.
It has several design errors.
The transfer over USB is far from optimal. For each CAN FD packet 80 bytes are transferred over USB no matter how many data bytes the CAN packet has.
There is no useful error feedback and there is no feedback if a Tx packet has been acknowledged on CAN bus.
The legacy Candlelight protocol only sends a FAKE echo back to the host computer, even if the Tx packet has never been sent to CAN bus.
You have a big problem to find out WHY CAN bus does not work without a useful feedback.
Therefore I designed the new **ElmüSoft Candlelight 2.5 protocol** with lots of improvements, lots of new features and the maximum USB transfer speed that is possible.
I wrote a **Python demo** application that contains **ready-to-use classes** that can be copied and pasted into any Python project. They could also be integrated into python-can.
The firmware runs on several CAN bus adapters with STM32G431, STM32G473 and STM32G0B1 processors.
The Python classes were tested on Windows where they use WinUSB and on Linux where they use libusb.
Here you find a detailed description of the entire project:
https://netcult.ch/elmue/CANable%20Firmware%20Update/
The sourcecode is on Github:
https://github.com/Elmue/CANable-2.5-firmware-Slcan-and-Candlelight
The Python demo shows all the functionality of the new firmware:
And here a snippet of my manual with comparison between legacy and ElmüSoft Candlelight protocol in my firmware:
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先從連結的詳細專案描述以及 ElmüSoft Candlelight 2.5 firmware repository 中的 Python 示範開始,以了解通訊協定及其所需功能。接著檢視 python-can 既有的 Candlelight 支援,並確定整合入口。完成的標準是:python-can 支援新通訊協定的 USB 傳輸與 feedback 功能,同時不失去 legacy 支援。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- networking
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 活躍
- 描述清晰度
- 需要釐清
- 新手友好度
- 30/100