Unable to receive the data from esp32
I did flash the settings to my esp32 successfully as following:
python -m esptool --chip esp32s3 --port /dev/tty.SLAB_USBtoUART --baud 460800
write-flash --flash-mode dio --flash-size 8MB --flash-freq 80m
0x0 bootloader.bin
0x8000 partition-table.bin
0xf000 ota_data_initial.bin
0x20000 esp32-csi-node.bin
python firmware/esp32-csi-node/provision.py
--port /dev/tty.SLAB_USBtoUART --ssid "" --password ""
--target-ip *** --target-port 5005
and i saw the log with ‘screen /dev/tty.SLAB_USBtoUART 115200’ and i got following results:
W (289146) edge_proc: Fall detected! accel=5.8471 > thresh=2.0000 W (289146) edge_proc: Fall detected! accel=2.5721 > thresh=2.0000 W (289156) edge_proc: Fall detected! accel=3.6189 > thresh=2.0000 W (289166) edge_proc: Fall detected! accel=5.1346 > thresh=2.0000 W (289176) edge_proc: Fall detected! accel=5.5500 > thresh=2.0000 W (289176) edge_proc: Fall detected! accel=3.1787 > thresh=2.0000 W (289216) edge_proc: Fall detected! accel=3.4331 > thresh=2.0000 W (289216) edge_proc: Fall detected! accel=5.0380 > thresh=2.0000 W (289716) edge_proc: Fall detected! accel=2.1048 > thresh=2.0000 E (289806) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time: E (289806) task_wdt: - IDLE1 (CPU 1) E (289806) task_wdt: Tasks currently running: E (289806) task_wdt: CPU 0: IDLE0 E (289806) task_wdt: CPU 1: edge_dsp E (289806) task_wdt: Print CPU 1 backtrace
Backtrace: 0x403796A7:0x3FC9B6D0 0x403772B5:0x3FC9B6F0 0x420095B7:0x3FCC7CB0
W (289836) edge_proc: Fall detected! accel=2.1048 > thresh=2.0000 W (289966) edge_proc: Fall detected! accel=2.1624 > thresh=2.0000 W (289976) edge_proc: Fall detected! accel=3.0941 > thresh=2.0000
I think there is something wrong!
Thanks for the detailed logs — they revealed two separate bugs, both now fixed.
Bug 1: False fall detection alerts (fixed in v0.4.3)
Your logs show accel=5.85 > thresh=2.0000 — the threshold was way too low. Normal walking produces accelerations of 2-5 rad/s², so a threshold of 2.0 triggers on everything.
Fixed in v0.4.3-esp32:
- Default threshold raised from 2.0 to 15.0 rad/s²
- Added 3-consecutive-frame debounce + 5-second cooldown
- Same fix as #263
Bug 2: Task watchdog crash (fixed in main, commit 024d258)
Your logs also show:
E (289806) task_wdt: Task watchdog got triggered
E (289806) task_wdt: - IDLE1 (CPU 1)
E (289806) task_wdt: CPU 1: edge_dsp
This means the edge DSP task on Core 1 was running so intensively (biquad filters, Welford stats, BPM estimation) that it starved the IDLE task, triggering the watchdog timer. This was a separate bug from the fall detection — even with the correct threshold, the watchdog would still fire.
Fix: Added vTaskDelay(1) after every processed frame so the IDLE task gets a chance to run and reset the watchdog. At 20 Hz CSI rate this adds ~1 ms per frame — negligible for vitals extraction.
Verified on real ESP32-S3 hardware: 0 watchdog triggers in 60 seconds of live WiFi CSI capture (was triggering every 5 seconds before the fix).
How to update
Download the v0.4.3 release for the fall detection fix. The watchdog fix will be in the next release — or you can build from the latest main branch now.
Quick fix without reflashing (for the fall alerts only):
python provision.py --port /dev/tty.SLAB_USBtoUART --fall-thresh 15000
Patch release published: v0.4.3.1-esp32
This includes both fixes:
- Fall detection threshold raised to 15.0 (no more false alerts)
- Task watchdog fix (no more
task_wdt: IDLE1errors)
Download and reflash to resolve both issues. Thanks for reporting!
Both issues fixed in v0.4.3.1-esp32:
- Fall detection false positives → threshold raised to 15.0 rad/s²
- Task watchdog crash → vTaskDelay(1) after every frame
Thanks for reporting with detailed logs — they made both bugs immediately diagnosable.
Awesome, appreciated for the instant response. I will check it out soon.