sdp8483 / esp32-arduino-can Goto Github PK
View Code? Open in Web Editor NEWThis project forked from miwagner/esp32-arduino-can
An Arduino CAN-Bus library for ESP32
License: MIT License
This project forked from miwagner/esp32-arduino-can
An Arduino CAN-Bus library for ESP32
License: MIT License
Greetings! Many thanks for this wonderful work!
I'm using ESP32 Wrover and sn65hvd230dr and i have this problem: I'm trying to use the esp32can_receive.ino example and it works as expected. But at the same time, when there is no data exchange on the bus, the message TWAI RX: ESP_ERR_TIMEOUT constantly appears in the serial monitor. At the same time, the example itself seems to work fine.
I tried compiling the code using Arduino Release v2.0.15 based on ESP-IDF v4.4.7, as well as Arduino Release v3.0.0 RC1 based on ESP-IDF v5.1, but the problem remains.
Perhaps this is not a problem, but due to the constant loading of the monitor, I do not have time to see the diagnostic messages that I myself send to the serial monitor...
Please help me correct the situation...
There is a typo on send example:
void setup() {
Serial.begin(115200);
Serial.println("ESP32-Arduino-CAN Send Basic Demo");
/* initialize and start, use pin 5 as CAN_tx and pin 4 as CAN_rx, CAN bus is set to 500kbps */
ESP32Can.CANInit(GPIO_NUM_5, GPIO_NUM_4, ESP32_SPEED_500KBPS);
}
should be:
void setup() {
Serial.begin(115200);
Serial.println("ESP32-Arduino-CAN Send Basic Demo");
/* initialize and start, use pin 5 as CAN_tx and pin 4 as CAN_rx, CAN bus is set to 500kbps */
ESP32Can.CANInit(GPIO_NUM_5, GPIO_NUM_4, ESP32CAN_SPEED_500KBPS);
}
Implement CAN filtering and provide examples.
Esp32 1mbit with this library
if (ESP32CAN_OK == ESP32Can.CANReadFrame(&rx_frame)) { /* only print when CAN message is received*/ processdata(rx_frame); }
Seems as though its not as responsive as the Wagner version. Wagner vers doesnt do 1mbit but it does 500k. 500k is really fast but this one reading at 1mbit seems like there is a small delay somewhere?
Would it be possible to add support for esp32-s3?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.