Closed florianhumblot closed 3 months ago
Figured it out. The "current version" that needs to be reported by the device update agent needs to be a JSON string containing the provider, name and version, not just the version number. Not sure if I missed it in the docs somewhere, but I feel that it might be easily overlooked.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Full log from first boot, through upgrade process and reboot
SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd5820,len:0x1714 load:0x403cc710,len:0x968 load:0x403ce710,len:0x2f9c entry 0x403cc710 I (24) boot: ESP-IDF v5.1.3-416-gd23b7a0361 2nd stage bootloader I (24) boot: compile time Aug 20 2024 07:02:20 I (25) boot: chip revision: v0.4 I (29) boot.esp32c3: SPI Speed : 80MHz I (34) boot.esp32c3: SPI Mode : DIO I (38) boot.esp32c3: SPI Flash Size : 4MB I (43) boot: Enabling RNG early entropy source... I (48) boot: Partition Table: I (52) boot: ## Label Usage Type ST Offset Length I (59) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (67) boot: 1 otadata OTA data 01 00 0000f000 00002000 I (74) boot: 2 phy_init RF data 01 01 00011000 00001000 I (82) boot: 3 factory factory app 00 00 00020000 00100000 I (89) boot: 4 ota_0 OTA app 00 10 00120000 00100000 I (97) boot: 5 ota_1 OTA app 00 11 00220000 00100000 I (104) boot: End of partition table I (108) boot: Defaulting to factory image I (113) esp_image: segment 0: paddr=00020020 vaddr=3c0c0020 size=2e850h (190544) map I (152) esp_image: segment 1: paddr=0004e878 vaddr=3fc90e00 size=017a0h ( 6048) load I (154) esp_image: segment 2: paddr=00050020 vaddr=42000020 size=bd174h (774516) map I (284) esp_image: segment 3: paddr=0010d19c vaddr=3fc925a0 size=016f4h ( 5876) load I (285) esp_image: segment 4: paddr=0010e898 vaddr=40380000 size=10cc4h ( 68804) load I (308) boot: Loaded app from partition at offset 0x20000 I (308) boot: Disabling RNG early entropy source... I (320) cpu_start: Unicore app I (320) cpu_start: Pro cpu up. I (329) cpu_start: Pro cpu start user code I (329) cpu_start: cpu freq: 160000000 Hz I (329) cpu_start: Application information: I (332) cpu_start: Project name: azure_iot_freertos_esp32 I (338) cpu_start: App version: 1 I (343) cpu_start: Compile time: Aug 20 2024 07:05:45 I (349) cpu_start: ELF file SHA256: b380be4be47953c3... I (355) cpu_start: ESP-IDF: v5.1.3-416-gd23b7a0361 I (361) cpu_start: Min chip rev: v0.3 I (366) cpu_start: Max chip rev: v1.99 I (370) cpu_start: Chip rev: v0.4 I (375) heap_init: Initializing. RAM available for dynamic allocation: I (382) heap_init: At 3FC9C8B0 len 00023750 (141 KiB): DRAM I (389) heap_init: At 3FCC0000 len 0001C710 (113 KiB): DRAM/RETENTION I (396) heap_init: At 3FCDC710 len 00002950 (10 KiB): DRAM/RETENTION/STACK I (403) heap_init: At 50000010 len 00001FD8 (7 KiB): RTCRAM I (410) spi_flash: detected chip: generic I (414) spi_flash: flash io: dio I (419) sleep: Configure to isolate all GPIO pins in sleep state I (425) sleep: Enable automatic switching of GPIO sleep configuration I (432) app_start: Starting scheduler on CPU0 I (437) main_task: Started on CPU0 I (437) main_task: Calling app_main() I (547) pp: pp rom version: 9387209 I (547) net80211: net80211 rom version: 9387209 I (557) wifi:wifi driver task: 3fca4f94, prio:23, stack:6656, core=0 I (557) wifi:wifi firmware version: 92daf4348 I (557) wifi:wifi certification version: v7.0 I (557) wifi:config NVS flash: enabled I (557) wifi:config nano formating: disabled I (567) wifi:Init data frame dynamic rx buffer num: 32 I (567) wifi:Init static rx mgmt buffer num: 5 I (567) wifi:Init management short buffer num: 32 I (577) wifi:Init dynamic tx buffer num: 32 I (577) wifi:Init static tx FG buffer num: 2 I (587) wifi:Init static rx buffer size: 1600 I (587) wifi:Init static rx buffer num: 10 I (597) wifi:Init dynamic rx buffer num: 32 I (597) wifi_init: rx ba win: 6 I (597) wifi_init: tcpip mbox: 32 I (607) wifi_init: udp mbox: 6 I (607) wifi_init: tcp mbox: 6 I (607) wifi_init: tcp tx win: 5760 I (617) wifi_init: tcp rx win: 5760 I (617) wifi_init: tcp mss: 1440 I (627) wifi_init: WiFi IRAM OP enabled I (627) wifi_init: WiFi RX IRAM OP enabled I (637) sample_azureiotkit: Connecting toExpected/desired behavior
A device update deployment should report success as far as I can tell?
OS and Version?
Built on Linux (ubuntu 22.04), ESP-IDF v5.1.3-416-gd23b7a0361
Versions
Mention any other details that might be useful
The overview in the deployment screen:
Note that the device reports "result code 0" which should mean that the update was successful as far as I can tell.