feat(ota): add authenticated firmware update workflow

- report firmware versions at startup and every six hours with a fresh device JWT
- support optional HMAC headers and retry once after authorization rejection
- handle forced and confirmed updates through managed OTA state
- stream images to the inactive partition and verify size, SHA-256, and format
- coordinate OTA HTTPS activity with voice teardown and restoration
- confirm pending images and expose configuration, status, and integration docs
This commit is contained in:
chenjintao
2026-08-14 15:25:34 +08:00
parent 0cfb10252c
commit 5a18036ec6
17 changed files with 1860 additions and 8 deletions
@@ -390,6 +390,9 @@ esp_err_t control_plane_local_wake_start(void)
#if !CONFIG_TQ_LOCAL_WAKE_ENABLE
return ESP_OK;
#else
if (!control_plane_ota_voice_services_allowed()) {
return ESP_ERR_INVALID_STATE;
}
portENTER_CRITICAL(&s_local_wake_lock);
if (s_local_wake.task != NULL || s_local_wake.started) {
portEXIT_CRITICAL(&s_local_wake_lock);