marlinarnz / eVCU

ESP32-based electric vehicle control unit for flexible interplay of analogue and CAN-bus based devices
MIT License
7 stars 2 forks source link

FD CAN not supported by ESP32 #5

Open jetpax opened 1 year ago

jetpax commented 1 year ago

Since many vehicles have CAN-FD/FlexCAN busses which the ESP32 internal CAN does not support, it would be highly desirable to support an external CAN-FD interface on SPI, for example the MCP2518FD.

In any case a typical eVCU really needs more than one CAN interface, ideally 3, so extending the framework to support multiple CAN busses would likely be a requirement going forward anyway.

marlinarnz commented 1 year ago

That sounds like a very reasonable and useful extension that could easily be implemented with the DeviceSPI base class (see TeslaShunt as an example SPI implementation). Admittedly, you seem to have more experience with CAN busses than I do. Would you be willing to take over this implementation?