GithubHelp home page GithubHelp logo

sdp8483 / esp32-arduino-can Goto Github PK

View Code? Open in Web Editor NEW

This project forked from miwagner/esp32-arduino-can

9.0 9.0 4.0 23 KB

An Arduino CAN-Bus library for ESP32

License: MIT License

C++ 100.00%

esp32-arduino-can's People

Contributors

miwagner avatar per1234 avatar premultiply avatar sdp8483 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

esp32-arduino-can's Issues

Constant loading of the monitor with the message TWAI RX: ESP_ERR_TIMEOUT

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

Typo on Send example

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);
} 

A little bit of lag/delay when gettiing data?

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?

ESP32-S3

Would it be possible to add support for esp32-s3?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.