Page 1 of 1

esp32 canbus transmitter

Posted: Fri Jan 04, 2019 9:05 am
by jastrdk
Hi guys,

I am completely new to esp32 and wants to make an esp32 device that transmits a single can message every 200ms.

I have found thomas barth's thread about the can driver and most information but i am not sure how to actually write the code and load the driver etc. is anyone able to help me get this project to life?

http://www.barth-dev.de/can-driver-esp32/

Can you guys explain if i can write this code in Arduino IDE and load it to the esp32 from there?

In that case. Where should i write the driver and load the code?

Hope someone is able to help a newbee..

Re: esp32 canbus transmitter

Posted: Mon Jan 07, 2019 5:11 pm
by ESP_Dazz
Here's a third party CAN driver for the ESP32 in Arudino. However, the driver only supports basic features (e.g. sending, receiving , filtering) and won't support features such as bus-off recovery and error detection/handling.

If you're looking for something with more features, you can take a look at the ESP-IDF CAN Driver or Thomas Barth's Driver. But bear in mind that both these drivers were written for ESP-IDF and will therefore require a bit of work to port them over to Arduino.