- State machine: 7-state lifecycle (BOOT→WIFI→DISCOVERY→CONNECTED, degraded modes WIFI_LOST/MOTHERSHIP_UNAVAILABLE/CAPTIVE_PORTAL) - WiFi: STA connection with exponential backoff, mDNS discovery with cached IP fallback, captive portal AP for provisioning - WebSocket: bidirectional comms, binary CSI frames (24B header + I/Q), JSON hello/health/ble/ota_status upstream, role/config/ota/reboot downstream, OTA task with progress reporting - CSI: promiscuous mode capture, queue-based processing, passive BSSID filter, on-device variance tracking (Welford's) for motion hints - BLE: passive scanning on Core 0, 60-device cache, 5s reporting - NVS: 15-key schema with versioning, role/rate persistence Complete: ESP32 firmware skeleton, passive radar, BLE scanning Remaining: Dashboard skeleton, Docker packaging (Phase 1 items 5-6) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
56 lines
1.2 KiB
Text
56 lines
1.2 KiB
Text
# SPAXEL Firmware Configuration Defaults
|
|
# Target: ESP32-S3
|
|
|
|
# Chip target
|
|
CONFIG_IDF_TARGET="esp32s3"
|
|
|
|
# WiFi CSI Configuration
|
|
CONFIG_ESP_WIFI_RX_BCN_ADAPT=y
|
|
CONFIG_ESP_WIFI_RX_BCN_ADAPT_THRESHOLD=10
|
|
|
|
# Enable CSI
|
|
CONFIG_ESP_WIFI_CSI_ENABLED=y
|
|
|
|
# WiFi power save disabled for stable CSI
|
|
CONFIG_PM_ENABLE=n
|
|
|
|
# FreeRTOS configuration for dual-core
|
|
CONFIG_FREERTOS_UNICORE=n
|
|
|
|
# BLE configuration
|
|
CONFIG_BT_ENABLED=y
|
|
CONFIG_BT_BLUEDROID_ENABLED=y
|
|
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y
|
|
CONFIG_BT_BLE_RPA_SUPPORTED=y
|
|
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
|
|
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n
|
|
CONFIG_BTDM_CTRL_MODE_BTDM=n
|
|
|
|
# Increase main task stack for WiFi/BLE operations
|
|
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
|
|
|
|
# WebSocket buffer sizes
|
|
CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS=n
|
|
CONFIG_ESP_HTTP_CLIENT_ENABLE_BASIC_AUTH=n
|
|
|
|
# Log levels
|
|
CONFIG_LOG_DEFAULT_LEVEL_INFO=y
|
|
CONFIG_LOG_MAXIMUM_LEVEL_DEBUG=y
|
|
|
|
# Watchdog configuration
|
|
CONFIG_ESP_TASK_WDT_INIT=n
|
|
|
|
# mDNS
|
|
CONFIG_MDNS_MAX_SERVICES=10
|
|
|
|
# NVS
|
|
CONFIG_NVS_ENCRYPTION=n
|
|
|
|
# OTA
|
|
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
|
|
CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK=y
|
|
CONFIG_APP_ROLLBACK_ENABLE=y
|
|
|
|
# Increase partition sizes for OTA
|
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|