-
-
Notifications
You must be signed in to change notification settings - Fork 116
ESP32 BLE causes Exception when using the v1.1.10 dev branch #259
Comments
Looks like a memory issue?
|
Disabling the BLE solved the issue, zero crashes. |
Perhaps this is the cause? espressif/arduino-esp32#1711 |
Tried to expand the things a bit, used a spare ESP32 with JUST a pir and the BLE, with this yaml: esphomeyaml:
name: tv_rack
board: nodemcu-32s
platform: ESP32
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_psk
domain: '.local'
#esp32_ble_tracker:
mqtt:
broker: 'mqtt.server.local'
username: ''
password: ''
topic_prefix: 'tv_rack'
# Enable logging
logger:
level: debug
ota:
password: 'k1tch3n'
binary_sensor:
- platform: status
name: "tv rack status"
- platform: gpio
name: "tv rack PIR"
pin: 12
Whit this configuration I don't have crashes anymore, compared with the original one that contains two custom sensors over i2c (max44009, and BMP180, and yes, I still can't make the built-in BMP85 component to report a correct result) and several pirs. However, when un-commenting the ble, what I got are constant wifi crashes and re-connects. |
No, that's not the issue. esphomelib isn't repeatedly calling those methods. However, I just noticed that we could do a small optimization for the memory usage of BLE (#261). I personally haven't seen this problem on my own ESPs, what exact ESP32s are you using? Or more specifically: how much memory (RAM) do they have? |
Thanks for your time! A NodeMCU ESP32s |
I can confirm that if I flash the very same board with just a PIR and the BLE enabled, it works flawlessly, with some wifi drops that very likely be caused by my infrastructure, so it is very likely a memory issue. |
I'm afraid that the problem remains even after using the latest changes:
Same chip and configuration. |
Operating environment/Installation (Hass.io/Docker/pip/etc.):
pip, windows 10
ESP (ESP32/ESP8266/Board/Sonoff):
ESP32s by DoIT
Affected component:
BLE tracker
Description of problem:
Got these exception when enabling the BLE tracker component:
Problem-relevant YAML-configuration entries:
Traceback (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: