feat(m1): hardware status firmware with wifi web provisioning
Add the M1 milestone tree under poc/ (m1_hardware + poc_a apps, shared common components, evidence schema). Merges the plan's 'm1 baseline+fixes' and 'wifi provisioning' batches: the poc/ tree is entirely untracked and both concerns share files. M1 hardware baseline: - landscape ST7305 RIP display via LVGL I1 driver - TF-card status log: JSONL telemetry with CRC32C per line; append buffer widened to line[640] after the 512-byte truncation defect (payload ~550B with real values) was root-caused on-device - PCF85063 RTC read, SHTC3 temperature/humidity with plausibility checks, KEY input with short/long/portal press thresholds - boot-time partition identity check and M1-002 boot record fields (device_id, image_sha256, reset_reason, services status) WiFi web provisioning: - softAP portal Frame-Setup-xxxx with HTTP endpoints /scan, /connect, /clear; httpd handlers never call httpd_stop (deadlock hazard) — a 1s monitor task executes stop/start/connect actions - credentials persist to system_fs wifi.json (littlefs) per the SEC-010 development exception (plaintext, documented in _doc) - fallback: 5 disconnects without IP or 60s no-IP -> stop retry, portal returns; GOT_IP tears the AP down - KEY >=3s hold requests the portal; prov start/stop/status console commands; ap_active/ap_mode_requested surfaces in status JSON/text Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
idf_component_register(
|
||||
SRCS
|
||||
"app_main.cc"
|
||||
"board_service.cc"
|
||||
"console_service.cc"
|
||||
"display_service.cc"
|
||||
"hardware_status.cc"
|
||||
"sd_service.cc"
|
||||
"st7305_panel.cc"
|
||||
"status_log.cc"
|
||||
"wifi_provision.cc"
|
||||
"wifi_service.cc"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES
|
||||
app_update
|
||||
cjson
|
||||
console
|
||||
esp_driver_gpio
|
||||
esp_driver_i2c
|
||||
esp_driver_sdmmc
|
||||
esp_driver_spi
|
||||
esp_event
|
||||
esp_http_server
|
||||
esp_hw_support
|
||||
esp_lcd
|
||||
esp_netif
|
||||
esp_psram
|
||||
esp_timer
|
||||
esp_wifi
|
||||
fatfs
|
||||
littlefs
|
||||
lvgl
|
||||
mbedtls
|
||||
nvs_flash
|
||||
spi_flash
|
||||
)
|
||||
|
||||
target_compile_options(${COMPONENT_LIB} PRIVATE
|
||||
-std=c++26
|
||||
-Wall
|
||||
-Wextra
|
||||
-Wconversion
|
||||
-Werror=return-type
|
||||
-fno-exceptions
|
||||
-fno-rtti
|
||||
-fno-unwind-tables
|
||||
)
|
||||
|
||||
target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
||||
FRAME_TOOLCHAIN_VERSION="gcc-${CMAKE_CXX_COMPILER_VERSION}"
|
||||
)
|
||||
Reference in New Issue
Block a user