Hi!
I'm trying to implement FOTA in our project. My application will sleep for days between each connection, so I'm turning off the modem and everything between.
I'm successfully connecting to nRF Cloud when I'm getting new A-GPS data or when doing cell measurements. These connections to the cloud lasts for less than a minute at a time, as I disconnect when I'm done sending my sensor data.
I'm trying to deploy a FOTA from nRFCloud. The job status is "queued", and isn't applied. Part of my configuration and the shadow is below.
# MCUBOOT - Needed by FOTA CONFIG_BOOTLOADER_MCUBOOT=y CONFIG_IMG_MANAGER=y CONFIG_MCUBOOT_IMG_MANAGER=y CONFIG_STREAM_FLASH_ERASE=y # Download Client - used by FOTA CONFIG_NRF_CLOUD_FOTA=y CONFIG_DOWNLOAD_CLIENT=y CONFIG_DOWNLOAD_CLIENT_HTTP_FRAG_SIZE_1024=y CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096 CONFIG_DOWNLOAD_CLIENT_BUF_SIZE=2300 CONFIG_DOWNLOAD_CLIENT_MAX_HOSTNAME_SIZE=128 # Flash - Used by FOTA CONFIG_FLASH=y CONFIG_FLASH_PAGE_LAYOUT=y CONFIG_FLASH_MAP=y CONFIG_STREAM_FLASH=y CONFIG_MPU_ALLOW_FLASH_WRITE=y # Settings - used by nRF Cloud library CONFIG_SETTINGS=y CONFIG_SETTINGS_FCB=y CONFIG_FCB=y
hadow":{3 items
"reported":{5 items
"connection":{...}4 items
"pairing":{...}2 items
"nrfcloud_mqtt_topic_prefix":"prod/XXX-XXX-XXX/"
"config":{...}7 items
"device":{2 items
"serviceInfo":{2 items
"ui":[]0 items
"fota_v2":[2 items
0:"MODEM"
1:"APP"
Before disconnecting the cloud, I always check if a FOTA is active by testing "if (nrf_cloud_fota_is_active()) " (defined in nrf_cloud_fota.c).
When connecting to the cloud, the library prints "nrf_cloud_fota: Saved job: , type: 3, validate: 0, bl: 0x0", called by "fota_settings_set()". I do not understand what this info means.
My questions are, can you see any reason or come with any tips as to why the FOTA isn't happening? Is there any way of actively initiating/check for a FOTA from the application side?
Thank you all for all and any help!
Kind regards,
Torje
