This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF9160 AWS FOTA fails to load binary

We have worked through getting AWS MQTT working and have the FOTA job file loading properly. When the HTTP request is made the file begins downloading but fails to download after a seemingly random period of time. Anywhere between 3-30% complete. The failure happens when the receiving bytes step takes a considerable amount of time and then the next http request fails. The FOTA library then resets and tries to download the file again with the same result.

  • Our RSSI is around 50. The RSSI is not why it works with a different provider. The problem is in the libraries ability to handle delayed or missing packets.

  • I'm experiencing exactly the same issue:

    Attempting to connect over IPv4Connected to s3.amazonaws.com[00:01:11.209,869] <inf> download_client: Downloading: /nordic-firmware-files/c1838e44-9d6f-4f41-990e-70b4e60770ce [0]
    Sending HTTP request
    Receiving bytes..
    Read 421 bytes from socket
    GET header size: 421File size = 148160Awaiting full fragment (0)
    Receiving bytes..
    Read 1024 bytes from socket
    Awaiting full fragment (1024)
    Receiving bytes..
    Read 1024 bytes from socket
    Awaiting full fragment (2048)
    Receiving bytes..
    Read 2048 bytes from socket
    Downloaded 4096/148160 bytes (2%)
    [00:01:17.800,201] <inf> fota_flash_block: Erasing sector at offset 0x0
    [00:01:17.940,734] <inf> fota_flash_block: Erasing sector at offset 0x1000
    Sending HTTP request
    Receiving bytes..
    Read 1024 bytes from socket
    GET header size: 424Copying 600 payload bytesAwaiting full fragment (600)
    Receiving bytes..
    Read 1840 bytes from socket
    Awaiting full fragment (2440)
    Receiving bytes..
    Read 1024 bytes from socket
    Awaiting full fragment (3464)
    Receiving bytes..
    Read 632 bytes from socket
    Downloaded 8192/148160 bytes (5%)
    [00:01:44.161,102] <inf> fota_flash_block: Erasing sector at offset 0x2000
    Sending HTTP request
    Failed to send HTTP request, errno 128
    Download client error
    Received error from fota_download


    Any fix yet?


  • No fix yet as far as I know. I believe it is being worked on at the moment.

Related