Hi,
We have a device using nRF Connect SDK v3.0.2.
The issue is when we try to do FOTA download and we disconnect the WiFi network (power down the router AP) while it is downloading, it is unable to trigger or we dont receive FOTA download error event. See section of logs below:
Confirming image
fota_download_init
tls_credential_add
fota_download_start
D: URI checksums -715257699,1837950337,0,0
D: URL: data.zzzzzz.asia/firmware_v1012_OTA_061626.bin
W: Protocol not specified for data.zzzzzz.asia/firmware_v1012_OTA_061626.bin, attempting https://
D: state = 2 ()
D: Port not specified, using default: 443
D: host lookup data.zzzzzz.asia, pdn id 0, family 2
I: Failed to resolve hostname data.zzzzzz.asia on IPv6, err -101
I: Host lookup failed for hostname data.zzzzzz.asia on IPv6 (err -118), attempting IPv4
D: host lookup data.zzzzzz.asia, pdn id 0, family 1
D: family: 1, type: 1, proto: 258
D: Socket opened, fd 14
I: Setting up TLS credentials, sec tag count 1
I: Connecting to 54.151.198.230
D: fd 14, addrlen 8, fam IPv4, port 443
D: state = 4 ()
D: HTTP request
...
D: http request:
GET /firmware_v1012_OTA_061626.bin HTTP/1.1
Host: data.zzzzzz.asia
Connection: keep-alive
D: Receiving up to 2048 bytes at 0x2001f668...
D: (partial) http header response:
HTTP/1.1 200 OK
Date: Sun, 28 Jun 2026 10:53:17 GMT
Content-Type: application/octet-stream
Content-Length: 992148
Connection: keep-alive
Server: nginx/1.18.0 (Ubuntu)
Last-Modified: Tue, 16 Jun 2026 08:23:55 GMT
ETag: "6a31081b-f2394"
Accept-Ranges: bytes
=
D: File size = 992148
D: Read 1781 bytes from transport
I: Downloaded 1781/992148 bytes (0%)
fota_download progress: 0%
D: Progress: 1781/992148 bytes
D: Receiving up to 2048 bytes at 0x2001f668...
D: Read 2048 bytes from transport
I: Downloaded 3829/992148 bytes (0%)
fota_download progress: 0%
D: Progress: 3829/992148 bytes
D: Receiving up to 2048 bytes at 0x2001f668...
D: Read 2048 bytes from transport
I: Downloaded 5877/992148 bytes (0%)
fota_download progress: 0%
D: Progress: 5877/992148 bytes
D: Receiving up to 2048 bytes at 0x2001f668...
D: Read 2048 bytes from transport
I: Downloaded 7925/992148 bytes (0%)
fota_download progress: 0%
...
...
...
D: Progress: 184053/992148 bytes
D: Receiving up to 2048 bytes at 0x2001f668...
D: Read 2048 bytes from transport
I: Downloaded 186101/992148 bytes (18%)
fota_download progress: 18%
D: Progress: 186101/992148 bytes
D: Receiving up to 2048 bytes at 0x2001f668...
D: Read 2048 bytes from transport
I: Downloaded 188149/992148 bytes (18%)
fota_download progress: 18%
D: Progress: 188149/992148 bytes
D: Receiving up to 2048 bytes at 0x2001f668...
D: Read 2048 bytes from transport
I: Downloaded 190197/992148 bytes (19%)
fota_download progress: 19%
D: Progress: 190197/992148 bytes
D: Receiving up to 2048 bytes at 0x2001f668...
D: Read 2048 bytes from transport
I: Downloaded 192245/992148 bytes (19%)
fota_download progress: 19%
D: Progress: 192245/992148 bytes
D: Receiving up to 2048 bytes at 0x2001f668...
D: Read 2048 bytes from transport
I: Downloaded 194293/992148 bytes (19%)
fota_download progress: 19%
D: Progress: 194293/992148 bytes
D: Receiving up to 2048 bytes at 0x2001f668...
D: Read 2048 bytes from transport
I: Downloaded 196341/992148 bytes (19%)
fota_download progress: 19%
D: Progress: 196341/992148 bytes
D: Receiving up to 2048 bytes at 0x2001f668...
(hangs here, no error event triggered on wifi network disconnection)
Any help to solve the issue if very much appreciated.
Thanks,
Winston