fix(firmware,server): watchdog crash + no detection from edge vitals#325
Merged
fix(firmware,server): watchdog crash + no detection from edge vitals#325
Conversation
… edge vitals (#321, #323) **Firmware (#321):** edge_dsp task now batch-limits frame processing to 4 frames before a 10ms yield. On corporate LANs with high CSI frame rates, the previous 1-tick-per-frame yield wasn't enough to prevent IDLE1 starvation and task watchdog triggers. **Sensing server (#323):** When ESP32 runs the edge DSP pipeline (Tier 2+), it sends vitals packets (magic 0xC5110002) instead of raw CSI frames. Previously, the server broadcast these as raw edge_vitals but never generated a sensing_update, so the UI showed "connected" but "0 persons". Now synthesizes a full sensing_update from vitals data including classification, person count, and pose generation. Closes #321 Closes #323 Co-Authored-By: claude-flow <ruv@ruv.net>
…lity - Fix pdMS_TO_TICKS(5)==0 at 100Hz causing busy-spin in idle path (use vTaskDelay(1) instead) - Post-batch yield now 2 ticks (20ms) for genuinely longer pause - Add s_ring_drops counter to ring_push for diagnosing frame drops - Expose drop count in periodic vitals log line Co-Authored-By: claude-flow <ruv@ruv.net>
When presence is detected via edge vitals, set breathing_band_power to 0.5 so the UI's torso breathing animation works. Previously hardcoded to 0.0 which made the skeleton appear static even when breathing rate was being reported. Co-Authored-By: claude-flow <ruv@ruv.net>
This was referenced Mar 27, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sensing_updatefrom edge vitals packets so UI renders detections for Tier 2+ ESP32 nodespdMS_TO_TICKS(5)==0), added ring buffer drop counter for diagnosticsRoot Causes
#321: On corporate LANs, CSI callbacks fire faster than 20 Hz. The
edge_dsptask processed frames back-to-back with only 1-tick yields, starving IDLE1 on Core 1 and triggering the 5-second task watchdog.#323: ESP32 nodes running edge DSP (Tier 2+) send vitals packets (magic
0xC5110002) instead of raw CSI frames. The server broadcast these asedge_vitalsbut never generated asensing_update, so the UI showed "connected" but "0 persons detected".Changes
firmware/esp32-csi-node/main/edge_processing.crust-port/.../sensing-server/src/main.rssensing_updatefrom vitals packets with classification + poseValidation
cargo check -p wifi-densepose-sensing-server --no-default-features— compiles clean (17 pre-existing warnings)Test plan
drops=0in vitals log confirms no frame lossCloses #321
Closes #323
🤖 Generated with claude-flow