Comments (5)
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.
You can try to merge it privately and test.
miwagner/ESP32-Arduino-CAN#45
from battery-emulator.
The miwagner arduino driver and Thomas Barthe's arduino ESP-32 CAN driver are significantly different than the current ESP-IDF CAN driver. They are NOT direct ports.
The miwagner and Thomas Barth Arduino ESP32 CAN drivers have some big issues with queues, and it doesnt have any protection/safety with large multi-threaded/tasked programs. If you are trying to send CAN messages from several different areas of your multi-tasked code, it usually gets choked sooner or later....
And the biggest issue of all is that it doesnt have the IRAM_ATTR directive, which would allow it to try to access random parts of flash/code at ANY time....this includes during an OTA update (which disables flash-cache). If you leave the miwagner/Thomas Barth Arduino ESP32 CAN driver running during an OTA update, it was guaranteed to crash the whole ESP32.
The official ESP-IDF CAN driver doesnt have any of these issues, and is completely safe to use with any program, and have running at all times, including during an OTA update.
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.
from battery-emulator.
Some good info here: sandeepmistry/arduino-CAN#118
from battery-emulator.
Another repo with same problem: timurrrr/arduino-CAN#2
from battery-emulator.
Pull request merged to main that prevents the crash 💪 ! Thanks @rjsc and Caboom! #48
from battery-emulator.
Related Issues (20)
- Solis single phase hybrid inverter possible? HOT 4
- Solax X3 Ultra compatibility? HOT 6
- Standalone Battery Check HOT 1
- Modbus eats too much resources, causes CAN to deadlock HOT 4
- Feature request: Add ability to save WiFi settings to flash HOT 1
- Feature request bucket: MQTT HOT 3
- Feature request : Add support for Volkswagen MEB BMS HOT 5
- Connection schema for Leaf+Sungrow SH10RT HOT 2
- No contact between two Lillygo HOT 3
- BMW Hybrid Batteries HOT 1
- Wrong PYLON 30kW Leaf capacity HOT 1
- SOFAR - LEAF bug HOT 2
- proper HW HOT 7
- Last Event information on events page keeps updating on refresh the page HOT 1
- Solax Surplus Energy kWh correction HOT 2
- BMW i3 battery reboot does not work
- Option in User_settings to set name HOT 3
- Battery not found - Fronius Primo Gen24 Plus HOT 5
- OTA handling - add controlled update using Standby/Updating states availabe on BYD protocol
- WIFI disconnects after random periods and never recovers HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from battery-emulator.