Hi, I’ve been having issues with an ESP32 OMG running only a BLE gateway(0.92 release). We have a few Bluetooth devices transmitting in the house and a couple of xiaomi temperature sensors (one classic round, and one square e-ink version), and the gateway keeps dying every 1 – 1.5 days. A reset of the esp32 always solves it but it’s not manageable (is the internal watchdog not supposed to take care of such issue?).
Anyway, since keeping a computer connected to it for dozens of hours to debug the issue isn’t an option, I adapted a little program on an esp8266 to listen on a software serial pin, and write the data from that pin to a log file on an SD card which is accessible through a web server.
It isnt perfect since it missed a character here and there I guess due to timing issues of the software serial, but its readable.
Anyway, I attached this device to the TX pin on the esp32 and let it run until it died after about a day and a half, and then looked at the resulting logs.
First of all, right from the start I see a lot of disconnection messages pretty consistently every ~15 seconds or so:
5/11/2019 23:09:39 abort() was called at PC 0x401d1327 on core 0
Backtrace: 0x4
5/11/2019 23:09:39 mounti·2M¹…
E (31) SPIFFS: mount failed, -10025
failed to m
5/11/2019 23:09:43 *WM: [2] Connection result: WL_CONNECTED
*WM: [3] lastconxresu
……
5/11/2019 23:10:02 Guru Meditation Error: Core 0 panic’ed (LoadProhibited). Excep
5/11/2019 23:10:02 mounting FS…
E (31) SPIFFS: mount failed, -10025
failed to
5/11/2019 23:10:02 *WM: [2] ESP32 event handler enabled
*WM: [2] Connecting as w
5/11/2019 23:10:06 *WM: [2] Connection result: WL_CONNECTED
*WM: [3] lastconxre
………
75/11/2019 23:10:17 mounting FS…
E (31) SPIFFS: mount failed, -10025
failed to
5/11/2019 23:10:17 *WM: [2] ESP32 event handler enabled
*WM: [2] Connecting as w
5/11/2019 23:10:20 *WM: [2] Connection result: WL_CONNECTED
*WM: [3] lastconxresu
Second of all, this is the last record I got on my serial logger before the esp32 stopped working that time:
7/11/2019 14:41:17 Get services data :
1
Pub json into:
home/OpenMQTTGateway_BT
7/11/2019 14:41:27 Processing BLE device data
mi jia data reading
Creating BLE b
So not much to go on there… I can send the entire 9MB log if that helps. I’ve tried this on 2 different esp32 devices – one wemos D1 mini style esp32, and one regular Geekcreit dev board esp32, with the exact same results.