-
Notifications
You must be signed in to change notification settings - Fork 169
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
Faulty CAN wiring can crash board #27
Comments
https://esp32.com/viewtopic.php?t=12607 Seems that the Arduino can stack indeed has problems and we need to use the official one from the esp32 idf. |
Some good info here: sandeepmistry/arduino-CAN#118 |
Another repo with same problem: timurrrr/arduino-CAN#2 |
There is a pending pull request to add a timeout to the write operation but the repo owner didn't respond for over a year. |
The CAN code is a bit strange on this board. If there is not someone alive on the CAN bus to ack the messages that the board sends, then the entire board will crash. The problem is that after the watchdog resets the board, the crash will continue to happen (since the code will try to send more CAN messages right away). After restoring the wires the board starts working again.
In proper CAN terminology, I believe this is called a BUS error state.
Steps to reproduce:
This isn't really a problem, since the Inverter that is connected should act accordingly and shut everything down in a CAN failure situation. But it would be very nice if the LilyGo could stay ON in this bus error state, since the board now can control contactors. In the event of CAN failure, after 60seconds the LilyGo enters faulted state, and in this state contactors are opened. So this bug is preventing this shutdown process from happening. Again, not a massive problem since the inverter will shut down the charge process.
Help wanted! :)
The text was updated successfully, but these errors were encountered: