From 738c7595731343a3c3ebb7f396ceb50d2e10db72 Mon Sep 17 00:00:00 2001 From: user Date: Wed, 4 Feb 2026 22:36:59 +0100 Subject: [PATCH] docs: Update TASKS.md for v1.6 completion --- TASKS.md | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/TASKS.md b/TASKS.md index 96b5244..65588b8 100644 --- a/TASKS.md +++ b/TASKS.md @@ -2,18 +2,46 @@ **Last Updated:** 2026-02-04 -## Current Sprint: v1.3 - OSINT & Fleet Ops +## Current Sprint: v1.6+ — Validation & Measurement ### P2 - Normal -- [ ] Multi-sensor BLE correlation in esp-ctl (zone tracking) +- [ ] Power consumption measurements using POWERTEST + external meter - [ ] Test OTA rollback (flash bad firmware, verify auto-revert) - [ ] Create HA webhook automations for deauth_flood / unknown_probe ### P3 - Low +- [ ] Deep sleep mode with wake-on-CSI-motion +- [ ] Battery-optimized duty cycling - [ ] Document esp-crab dual-antenna capabilities - [ ] Document esp-radar console features - [ ] Pin mapping for ESP32-DevKitC V1 +## Completed: v1.6 - Power Management + +- [x] ESP-IDF power management framework (DFS 240/80 MHz + light sleep) +- [x] sdkconfig: CONFIG_PM_ENABLE, CONFIG_FREERTOS_USE_TICKLESS_IDLE +- [x] POWERSAVE command (WiFi modem sleep toggle, NVS persisted, default off) +- [x] powersave= field in STATUS reply +- [x] POWERTEST save/restore of powersave state +- [x] Deployed to fleet, NVS persistence verified + +## Completed: v1.5 - Event Handling & NVS Persistence + +- [x] EVENT packet parsing in watch daemon (motion, wifi_reconnect, powertest) +- [x] Sensor heartbeat tracking (offline/online detection, configurable timeout) +- [x] sensor_events table with indexed queries (`esp-ctl osint events`) +- [x] HA webhooks for sensor_offline, sensor_online, motion_change +- [x] NVS persistence for SCANRATE and PROBERATE commands +- [x] Sensor events count in `esp-ctl osint stats` + +## Completed: v1.4 - Multi-Sensor & Validation + +- [x] Multi-sensor BLE correlation in esp-ctl (zone tracking by source sensor) +- [x] Zone tracking with EMA RSSI (`esp-ctl osint zones`, `device_zones` table) +- [x] Per-sensor breakdown in MAC profile (`esp-ctl osint mac`) +- [x] POWERTEST command (7-phase power profiling with EVENT markers) +- [x] Parallel OTA fleet updates (`esp-fleet ota --parallel`) + ## Completed: v1.3 - Security & OSINT - [x] HMAC command authentication (firmware + esp-ctl/esp-cmd/esp-fleet/esp-ota) @@ -123,10 +151,10 @@ ## Notes - Adaptive threshold varies by environment; 0.001-0.01 is a good starting range -- NVS keys: `send_rate`, `tx_power`, `adaptive`, `threshold`, `ble_scan`, `target_ip`, `target_port`, `hostname`, `boot_count`, `csi_mode`, `hybrid_n`, `auth_secret`, `flood_thresh`, `flood_window` -- EVENT packets now include sensor hostname: `EVENT,,motion=... rate=... wander=...` +- NVS keys: `send_rate`, `tx_power`, `adaptive`, `threshold`, `ble_scan`, `target_ip`, `target_port`, `hostname`, `boot_count`, `csi_mode`, `hybrid_n`, `auth_secret`, `flood_thresh`, `flood_window`, `scan_rate`, `probe_rate`, `powersave` +- EVENT packets include sensor hostname: `EVENT,,motion=... rate=... wander=...` - ALERT_DATA format: `ALERT_DATA,,,,,` or `ALERT_DATA,,deauth_flood,,` -- STATUS fields: `uptime=`, `uptime_s=`, `heap=`, `rssi=`, `channel=`, `tx_power=`, `rate=`, `csi_rate=`, `hostname=`, `version=`, `adaptive=`, `motion=`, `ble=`, `target=`, `temp=`, `csi_count=`, `boots=`, `rssi_min=`, `rssi_max=`, `csi_mode=`, `hybrid_n=`, `auth=`, `flood_thresh=` +- STATUS fields: `uptime=`, `uptime_s=`, `heap=`, `rssi=`, `channel=`, `tx_power=`, `rate=`, `csi_rate=`, `hostname=`, `version=`, `adaptive=`, `motion=`, `ble=`, `target=`, `temp=`, `csi_count=`, `boots=`, `rssi_min=`, `rssi_max=`, `csi_mode=`, `hybrid_n=`, `auth=`, `flood_thresh=`, `powersave=` - PROBE_DATA format: `PROBE_DATA,,,,` - Probe requests deduped per MAC (default 10s cooldown, tunable via PROBERATE) - mDNS service: `_esp-csi._udp` on data port (for sensor discovery)