-
Notifications
You must be signed in to change notification settings - Fork 16
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
BLE and WiFi together #61
Comments
Hi, Without a dump of the error it is hard to identify the cause. Possible root causes (outside of a software bug) are:
You can try the following:
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, |
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. |
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 Edit: I don't think you have 16MB psram. The classic ESP32 only supports 4MB psram maximum. You have 16MB Flash! |
To close this out, my board has 16MB of Flash ... Chip is ESP32-D0WD-V3 (revision v3.0) WiFi became stable when I removed the display code. There was no need to disable logging. Thanks for the help! |
Using the victron-ble.yaml code as a start, I have been able to connect to a Victron Orion Tr DC-DC Charger. With BLE and WiFi both enabled the ESP32 dev board is unstable, rebooting over and over with errors that BLE is unable to start and that it can not find the WiFi AP. I'm using an Ideaspark (Amazon) ESP32 dev board with an integrated LCD screen. With the WiFi code disabled, it works.
I read there is a coexistence module in the ESP32 code, but it is not working for me. Any suggestions?
Here is my code, still a bit rough but working ...
The text was updated successfully, but these errors were encountered: