esp32 canbus transmitter

jastrdk
Posts: 1
Joined: Fri Jan 04, 2019 9:00 am

esp32 canbus transmitter

Postby jastrdk » Fri Jan 04, 2019 9:05 am

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..

ESP_Dazz
Posts: 308
Joined: Fri Jun 02, 2017 6:50 am

Re: esp32 canbus transmitter

Postby ESP_Dazz » Mon Jan 07, 2019 5:11 pm

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.

Who is online

Users browsing this forum: No registered users and 59 guests