fix: improve sensing accuracy, presence detection, and UI reliability#518
Open
KarthikV17 wants to merge 1 commit intoruvnet:mainfrom
Open
fix: improve sensing accuracy, presence detection, and UI reliability#518KarthikV17 wants to merge 1 commit intoruvnet:mainfrom
KarthikV17 wants to merge 1 commit intoruvnet:mainfrom
Conversation
- Fix ADR-018 packet parsing: correct byte offsets for 20-byte header - n_subcarriers: u8 → u16 at bytes [6..7] - freq_mhz: u16 → u32 at bytes [8..11] - RSSI at byte 16, noise floor at byte 17 - Tune presence detection for faster response: - DEBOUNCE_FRAMES: 4 → 2 (faster state transitions) - MOTION_EMA_ALPHA: 0.15 → 0.25 (more responsive) - Add asymmetric person count smoothing: - α=0.35 decay when someone leaves (~2-3s response) - α=0.20 rise when someone enters (~3-4s response) - Prevents false jumps while staying responsive - Read node_id from NVS config instead of compile-time CONFIG_CSI_NODE_ID - Enables unique node IDs per device via provisioning - Updated: csi_collector.c, edge_processing.c, wasm_runtime.c, display_ui.c - Add extern declaration for g_nvs_config in nvs_config.h - Update provision.py to support both esp32s3 and esp32c6 chips - Add WebSocket auto-reconnect with exponential backoff: - Retries up to 5 times (1s, 2s, 4s, 8s, 16s delays) - Shows "RECONNECTING" status with blue pulsing indicator - Only falls back to demo mode after all retries exhausted - Prevents random switches from Live to Demo mode - Add csi_inspector.py for packet debugging with correct ADR-018 offsets Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
bda836b to
5bf069f
Compare
Author
|
@ruvnet please review and let me know if there is any additional testing needed. This has been verified with ESP32-S3. |
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.
Server-side fixes (sensing-server)
Firmware fixes (esp32-csi-node)
UI fixes (Observatory)
Tools