Hi,
I am trying to evaluate the https update process for the nRF9160 but I can't seem to get the device to finish the process. The download socket keeps failing out with errno 57:
SPM: prepare to jump to Non-Secure image. *** Booting Zephyr OS build v2.1.99-ncs1-3-g7ddab664b04b *** HTTP application update sample started Initializing bsdlib Initialized bsdlib LTE Link Connecting ... I: PDP Context: AT+CGDCONT=0,"IP","ep.inetd.gdsp" LTE Link Connected! Press Button 1 to start the FOTA download I: Attempting to connect over IPv4 I: Connected to XXX.s3-eu-west-1.amazonaws.com I: Downloading: app_update.bin [0] I: Downloaded 4096/143724 bytes (2%) I: Erasing sector at offset 0x00088000 I: Erasing sector at offset 0x00089000 I: Downloaded 8192/143724 bytes (5%) I: Erasing sector at offset 0x0008a000 I: Downloaded 12288/143724 bytes (8%) I: Erasing sector at offset 0x0008b000 E: Failed to send HTTP request, errno 57 W: Download socket error. 2 retries left... I: Reconnecting.. I: Attempting to connect over IPv4 I: Connected to XXX.s3-eu-west-1.amazonaws.com W: Copying 549 payload bytes I: Downloaded 16384/143724 bytes (11%) I: Erasing sector at offset 0x0008c000 I: Downloaded 20480/143724 bytes (14%) I: Erasing sector at offset 0x0008d000 W: Copying 549 payload bytes I: Downloaded 24576/143724 bytes (17%) I: Erasing sector at offset 0x0008e000 E: Failed to send HTTP request, errno 57 W: Download socket error. 1 retries left... I: Reconnecting.. I: Attempting to connect over IPv4 I: Connected to XXX.s3-eu-west-1.amazonaws.com I: Downloaded 28672/143724 bytes (19%) I: Erasing sector at offset 0x0008f000 W: Copying 549 payload bytes I: Downloaded 32768/143724 bytes (22%) I: Erasing sector at offset 0x00090000 I: Downloaded 36864/143724 bytes (25%) I: Erasing sector at offset 0x00091000 I: Downloaded 40960/143724 bytes (28%) I: Erasing sector at offset 0x00092000 I: Downloaded 45056/143724 bytes (31%) I: Erasing sector at offset 0x00093000 I: Downloaded 49152/143724 bytes (34%) I: Erasing sector at offset 0x00094000 I: Downloaded 53248/143724 bytes (37%) I: Erasing sector at offset 0x00095000 I: Downloaded 57344/143724 bytes (39%) I: Erasing sector at offset 0x00096000 W: Copying 549 payload bytes I: Downloaded 61440/143724 bytes (42%) I: Erasing sector at offset 0x00097000 E: Failed to send HTTP request, errno 57 E: Download client error I: MCUBoot image upgrade aborted. Received error from fota_download
However, if I use the AT Client App, I see that the device should have a stable connection at -105dBm or CESQ 36:
I am using NB-IoT on the Vodafone network, I have edited the sample's prj.conf to include APN and Modem configurations for this conection:
CONFIG_LTE_NETWORK_MODE_NBIOT=y CONFIG_LTE_PDP_CMD=y CONFIG_LTE_PDP_CONTEXT="0,\"IP\",\"ep.inetd.gdsp\""
I am using NCS version 1.2.0 and mfw version 1.1.1. Is there something else that I can change to make this work? Possibly increase the number of retries through API?
Michael