This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

FOTA update for multiple things on AWS got errno 116

Hi,

I am trying to update firmware of multiple things on AWS .during upgradation  I got error  in download thread block  Error in recv(),errno 116 and download client error. i got error on one of the device randomly. 

I am using nrf910 and nRFConnect SDK 1.5.0

log file is attached2021-11-22T09_46_42.119Z-log.txt

  • I found this error described as connection timeout error 
    error_cause = ETIMEDOUT; error code 116

  • Hi,

    NB-IoT isn't very optimized for TCP traffic, which can become especially apparent when downloading a large amount of data, such as during FOTA updates.

    But without a modem trace, it is hard to say exactly what is happening.

    However, there are a few things you can try to make it more stable:

    1. You can reduce the fragment size that is downloaded for each request, by setting CONFIG_DOWNLOAD_CLIENT_HTTP_FRAG_SIZE_<size>, where <size> can be 2048 (default), 1024, 512, 256 or 128

    2. Increase the socket timeout by setting CONFIG_DOWNLOAD_CLIENT_TCP_SOCK_TIMEO_MS. The default is 30000 (milliseconds), and it can be increased to 60000

    3. Increase the number of retries by setting CONFIG_FOTA_SOCKET_RETRIES, the default is 2.

    Best regards,

    Didrik

Related