-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATOM CAN-example don't work (also the EASYLOADER examples) #39
Comments
I have exactly the same problem, tried with arduino 1.8.10 and 1.8.15. tried on usb 3.0 and 2.0 port, all the same problem. any solution? this line causes the problem : "ESP32Can.CANWriteFrame(&tx_frame);" |
I also have exactly the same problem, I've tried four M5atom CAN units, all have the same problem, any ideas how I can solve this? commenting out this line alows the program to continue, not very helpful : "ESP32Can.CANWriteFrame(&tx_frame);" |
I found a solution that works for me, place this line “ESP32Can.CANStop();" after this line "ESP32Can.CANWriteFrame(&tx_frame);" and place this line "ESP32Can.CANInit();" before "ESP32Can.CANWriteFrame(&tx_frame);" . It would seem that sending more than three frames sequentially will cause the M5Atom CAN to lockup. Reinitializing the ESP32Can for each TX frame avoids this issue. |
Update, I'm using an M5Atom CAN to transmit a single message containing simulated Toyota speed information, the software runs fine for about 21minutes then the CAN chip stops transmitting, the software keeps running but no data on the CANBus. I’ve tried a few modules, but they all do the same thing. |
I tried everything; even the EASYLOADER examples to find out that these don't work either!!!, I own 6 CAN-bus boards and different ATOM5 and MATRIX modules. I tested them all. Always the same problem: when resetting the sender only 2 messages are send than hang... And the receiver keeps rebooting after the button is 1 time pressed, until the sender is reset, but I don't get any further than that.
For the moment I'm still guessing the direction of the problem:
I tried to avoid conflicts by:
But everything to no avail.
I found out this M5-Atom CAN example is actually based on the same libraries and examples from:
http://www.iotsharing.com/2017/09/how-to-use-arduino-esp32-can-interface.html
So I guess it should work on other boards.
Someone having any idea to search in what direction ?
The text was updated successfully, but these errors were encountered: