Closed johnwalicki closed 3 years ago
Maybe a separate issue, but if I set the threshold 10 or above, even violent shaking will not set off the STA/LTA algorithm.
I think the loop() and STA/LTA algorthm gets corrupted somehow if the thresh
global variable is changed while it is running.
Another ESP panic.
Calculating STA/LTA from 352 accelerometer readings
Calculating STA/LTA from 352 accelerometer readings
Calculating STA/LTA from 352 accelerometer readings
Message arrived [iot-2/cmd/threshold/fmt/json] : {"ThresholdOverride":10}
Previous STA/LTA Shake Threshold : 8.00
Override STA/LTA Shake Threshold : 10.00
Calculating STA/LTA from 352 accelerometer readings
Calculating STA/LTA from 352 accelerometer readings
Calculating STA/LTA from 352 accelerometer readings
Calculating STA/LTA from 352 accelerometer readings
Calculating STA/LTA from 352 accelerometer readings
Calculating STA/LTA from 352 accelerometer readings
Calculating STA/LTA from 352 accelerometer readings
Calculating STA/LTA from 352 accelerometer readings
Calculating STA/LTA from 352 accelerometer readings
Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). ExException in thread rx:
Traceback (most recent call last):
Set the threshold to 90. A few minutes later:
Calculating STA/LTA from 352 accelerometer readings
Calculating STA/LTA from 352 accelerometer readings
Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). ExException in thread rx:
Traceback (most recent call last):
My OpenEEW board was defective. A new board does not show these brownout / ESP32 panics. Closing ticket.
The OpenEEW device was running for many hours, silently calculating the STA/LTA algorithm. I had set the threshold very high because this is a test device. I slightly bumped the desk it was on. I noticed the device started to blink blue after it restarted and connected to the wifi network. Running v1.5.1
As I wrote up this github issue, I restarted the board. It ran for a few minutes fine. Then I bumped the USB cable. It started sending data to the cloud. I stopped it by sending it a message to send 1 second of data. Then I set the threshold high again. Similar crash a few seconds later. This log captures the entire sequence: