Comments (4)
Hi,
This is a tricky problem. I don't think this issue is related to the victron integration as it uses a common pattern used by ESPHome and nobody has reported this issue.
Without a dump of the error it is hard to identify the cause. Possible root causes (outside of a software bug) are:
- Running out of memory. Happens very easily when using a display.
- Processor too busy. Happens sometimes when display is used.
- Hardware bug. Seen some ESP devices which are just tired.
You can try the following:
- Disable
logging
by settinglevel: None
. Logging is blocking operation in ESPHome and I have seen it causing unusual behavior. Especially on high volume levels like debug or verbose. - Disable the display. If it causes issues you might need to decrease the refresh rate and increase the data rate.
If you connect and flash the ESP device via USB then it should be possible to collect more details when it crashes to identify the root cause.
Cheers,
Fabian
from esphome-victron_ble.
Thanks for your comments, I'll give it another try ...
FWIW, I remember having issues with wifi stability before I added any code to enable the display. I'll go back to that and capture some of the log reports.
The board that I'm using has 16M of RAM, I did not think I was running out of memory from the errors I saw. I also tried several delayed start of BLE schemes without success such as those suggested here ... esphome/issues#2941 (comment)
Using Arduino IDE and the example from https://github.com/hoberman/Victron_BLE_Advertising_example plus some wifiseriallite code, BLE and wifi was rock solid. This didn't get my Victron data into HA but did point a finger at ESPHome.
from esphome-victron_ble.
All ESP32 have 384kb ram. You have additional 16mb PSRam. This additional psram is slow and can only be used for some things. Its not like a normal x86 computer. To use this psram you must add psram
to the esphome yaml. Or else it will not use it.
See https://esphome.io/components/psram.html
Edit: I don't think you have 16MB psram. The classic ESP32 only supports 4MB psram maximum. You have 16MB Flash!
from esphome-victron_ble.
To close this out, my board has 16MB of Flash ...
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 8c:4b:14:x:x:x
Auto-detected Flash size: 16MB
WiFi became stable when I removed the display code. There was no need to disable logging.
Thanks for the help!
from esphome-victron_ble.
Related Issues (20)
- Enhancement request: Toggle BatteryProtect load on/off HOT 1
- Multiplus reports sometimes strange wrong values HOT 3
- Export network output sensor HOT 2
- Support for SmartSolar MPPT 75/10 HOT 2
- Bmv monitor values high HOT 2
- Smart Battery Sense - Request HOT 7
- Readout of Victron DC/DC charger Orion XS HOT 15
- Yield Today has spikes of 655.35 kWh HOT 1
- blue smart chargers HOT 2
- MPPT - Panel Voltage HOT 1
- Sustain DEVICE_STATE for Multiplus-II using VE.Bus HOT 2
- more then one solarcharger possible? HOT 4
- Using with LVGL
- SmartSolar MPPT 75/10 missing PV Voltage HOT 1
- Problems adding shunt: "Bind key must be format XX." (31 character AES key) HOT 3
- Can it work with the ESP 8266? HOT 1
- Add support for Pheonix Smart Charger HOT 2
- Smart shunt missing KWH value HOT 4
- BMS Flags for SmartLithium
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 esphome-victron_ble.