Why CAN communication rate is only half of the original when using esp32 CAN communication

waoooaw
Posts: 2
Joined: Fri Feb 10, 2023 8:58 am

Why CAN communication rate is only half of the original when using esp32 CAN communication

Postby waoooaw » Fri Feb 10, 2023 11:21 am

I had a problem when using the esp32can to communicate with half the speed. The esp32 needs 1M to communicate with the stm32 at 500k. I don't know if this has anything to do with the can transceiver issue. I use can transceiver of waveshare sn6hd230, and the library I use is ardunio library of esp32can in platformio. Both of them encounter the problem of communication rate halved, and try to modify the underlying can communication still and other ways, but it is not possible, may I ask if anyone has encountered this problem, how to solve it

waoooaw
Posts: 2
Joined: Fri Feb 10, 2023 8:58 am

Re: Why CAN communication rate is only half of the original when using esp32 CAN communication

Postby waoooaw » Sat Feb 11, 2023 1:21 pm

This is an arduino library that located in
https://github.com/miwagner/ESP32-Arduino-CAN.git

themagicm
Posts: 10
Joined: Tue Mar 28, 2023 2:27 am

Re: Why CAN communication rate is only half of the original when using esp32 CAN communication

Postby themagicm » Sun Sep 24, 2023 6:51 pm

Are you suggesting that library works properly and can communicate at 1K?

DrMickeyLauer
Posts: 168
Joined: Sun May 22, 2022 2:42 pm

Re: Why CAN communication rate is only half of the original when using esp32 CAN communication

Postby DrMickeyLauer » Fri Sep 29, 2023 1:02 pm

I don't know anything about Arduino, but using the native TWAI layer there doesn't seem to be any problems with bitrates up to 1M. I suggest you try using an example program w/ ESP-IDF first before taking a look at the Arduino abstraction.

Who is online

Users browsing this forum: No registered users and 90 guests