feat: HAL variant system, OTA improvements, NVS migration scaffold
- Add variants/vesper.hpp and variants/agnus.hpp with HAS_SD_CARD, HAS_RTC, HAS_PCF8574, OUTPUT_COUNT_MAX, HW_FAMILY capability flags - Add agnus-v1 and agnus-mini-v1 PlatformIO environments with -include injection - Add src/NvsMigration/ scaffold for future NVS schema versioning - FirmwareHandler: OTA flow improvements and header updates - OTAManager: FastAPI integration, semver handling improvements - ConfigManager: refactoring groundwork for NVS-only variant support - CommunicationRouter: minor fix - provisioning/nvs_lab_device.csv: fix hw_type to VS, update device id fields - docs/dev/ota-telemetry-api.md: update API spec Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+73
-10
@@ -2,15 +2,20 @@
|
||||
; Project Vesper — PlatformIO Configuration
|
||||
; ═══════════════════════════════════════════════════════════════════════════════
|
||||
;
|
||||
; Hardware Variants:
|
||||
; vesper-v1 — Kincony KC868-A6 (ESP32-D0WD-V3, 4MB flash) — current production board
|
||||
; Hardware Variants (active):
|
||||
; vesper-v1 — Kincony KC868-A6 (ESP32-D0WD-V3, 4MB flash) — current production board
|
||||
; agnus-v1 — ESP32 base, no SD card, NVS-only settings storage
|
||||
; agnus-mini-v1 — Same binary as agnus-v1, output limit enforced via app/NVS
|
||||
;
|
||||
; Future variants (not yet active):
|
||||
; Future variants (commented out):
|
||||
; vesper-plus-v1 — Vesper+ with RF remote support
|
||||
; vesper-pro-v1 — Vesper Pro with onboard LCD
|
||||
;
|
||||
; Each environment auto-includes its variant header via -include variants/<name>.hpp
|
||||
; which defines HAS_SD_CARD, HAS_RTC, OUTPUT_COUNT_MAX, etc. for that build.
|
||||
;
|
||||
; Build: pio run -e vesper-v1
|
||||
; Upload: pio run -e vesper-v1 --target upload
|
||||
; Upload: pio run -e vesper-v1 --target upload --upload-port COM8
|
||||
; Monitor: pio device monitor
|
||||
; Clean: pio run -e vesper-v1 --target clean
|
||||
; ═══════════════════════════════════════════════════════════════════════════════
|
||||
@@ -90,10 +95,68 @@ build_flags =
|
||||
-DBOARD_VERSION=\"01\"
|
||||
-DBOARD_NAME=\"Vesper\"
|
||||
-DPSRAM_ENABLED=0
|
||||
-DHAS_RF=0
|
||||
-DHAS_LCD=0
|
||||
-DMQTT_SECRET=\"deea8b2dbf21872bff8b4639ca16d0348358945ccd4c1cb6c5934ba510de1dce\"
|
||||
-include variants/vesper.hpp
|
||||
|
||||
lib_deps = ${common.lib_deps}
|
||||
|
||||
|
||||
; ───────────────────────────────────────────────────────────────────────────────
|
||||
; AGNUS v1 — No SD card, NVS-only settings storage
|
||||
; Same ESP32 base as Vesper. Agnus Mini is the same binary — output limiting
|
||||
; is handled in the app and NVS, not in firmware.
|
||||
; ───────────────────────────────────────────────────────────────────────────────
|
||||
[env:agnus-v1]
|
||||
platform = ${common.platform}
|
||||
framework = ${common.framework}
|
||||
board = esp32dev
|
||||
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
upload_speed = 921600
|
||||
upload_protocol = esptool
|
||||
|
||||
board_build.partitions = min_spiffs.csv
|
||||
build_unflags = -std=gnu++11
|
||||
board_build.cmake_extra_args = -DCONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=4096
|
||||
|
||||
build_flags =
|
||||
${common.build_flags_common}
|
||||
-DBOARD_TYPE=\"AG\"
|
||||
-DBOARD_VERSION=\"01\"
|
||||
-DBOARD_NAME=\"Agnus\"
|
||||
-DPSRAM_ENABLED=0
|
||||
-DMQTT_SECRET=\"deea8b2dbf21872bff8b4639ca16d0348358945ccd4c1cb6c5934ba510de1dce\"
|
||||
-include variants/agnus.hpp
|
||||
|
||||
lib_deps = ${common.lib_deps}
|
||||
|
||||
|
||||
; ───────────────────────────────────────────────────────────────────────────────
|
||||
; AGNUS MINI v1 — Same binary as agnus-v1, different NVS provisioning
|
||||
; Output count is limited via the app and NVS key, not in firmware.
|
||||
; Only exists as a separate env so OTA can target it independently.
|
||||
; ───────────────────────────────────────────────────────────────────────────────
|
||||
[env:agnus-mini-v1]
|
||||
platform = ${common.platform}
|
||||
framework = ${common.framework}
|
||||
board = esp32dev
|
||||
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
upload_speed = 921600
|
||||
upload_protocol = esptool
|
||||
|
||||
board_build.partitions = min_spiffs.csv
|
||||
build_unflags = -std=gnu++11
|
||||
board_build.cmake_extra_args = -DCONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=4096
|
||||
|
||||
build_flags =
|
||||
${common.build_flags_common}
|
||||
-DBOARD_TYPE=\"AM\"
|
||||
-DBOARD_VERSION=\"01\"
|
||||
-DBOARD_NAME=\"AgnusMini\"
|
||||
-DPSRAM_ENABLED=0
|
||||
-DMQTT_SECRET=\"deea8b2dbf21872bff8b4639ca16d0348358945ccd4c1cb6c5934ba510de1dce\"
|
||||
-include variants/agnus.hpp
|
||||
|
||||
lib_deps = ${common.lib_deps}
|
||||
|
||||
@@ -112,8 +175,8 @@ lib_deps = ${common.lib_deps}
|
||||
; -DBOARD_VERSION=\"01\"
|
||||
; -DBOARD_NAME=\"Vesper+\"
|
||||
; -DPSRAM_ENABLED=0
|
||||
; -DHAS_RF=1
|
||||
; -DHAS_LCD=0
|
||||
; -DMQTT_SECRET=\"change-me-in-platformio-ini\"
|
||||
; -include variants/vesper.hpp
|
||||
; lib_deps = ${common.lib_deps}
|
||||
|
||||
|
||||
@@ -131,6 +194,6 @@ lib_deps = ${common.lib_deps}
|
||||
; -DBOARD_VERSION=\"01\"
|
||||
; -DBOARD_NAME=\"VesperPro\"
|
||||
; -DPSRAM_ENABLED=0
|
||||
; -DHAS_RF=0
|
||||
; -DHAS_LCD=1
|
||||
; -DMQTT_SECRET=\"change-me-in-platformio-ini\"
|
||||
; -include variants/vesper.hpp
|
||||
; lib_deps = ${common.lib_deps}
|
||||
|
||||
Reference in New Issue
Block a user