Hello,
I am experimenting with FOTA updates on a nRF9160DK. I tested the samples "HTTP application update" sample (developer.nordicsemi.com/.../README.html), which work out of the box.
I am now trying to download a firmware from my own HTTP server, hosted on my computer (Windows).
To do that, I created an basic HTTP server using python http.server.
Then, I used Tunnelmole to make it visible to the world.
This server holds the app_update.bin firmware file.
The server works fine. I can download files from any remote computer using the redirected link.
Then I modify the server URL in prj.conf : for example CONFIG_DOWNLOAD_HOST="gron3q-ip-***-253-36-***.tunnelmole.com"
When run the firmware, I get the following log.
Fullscreen
1
2
3
4
5
6
7
8
uart:~$ LTE Link Connecting ...
LTE Link Connected!
Press Button 1 or enter 'download' to download firmware update
I: Connecting to gron3q-ip-185-253-36-140.tunnelmole.com
I: Downloading: app_update.bin [0]
E: Unexpected HTTP response: 200 ok
E: Download client error
Received error from fota_download
I tried many times, and the error is always the same.
I first though that it could be an issue related to Tunnelmole. I tried other services, such as ngrok, but got the same results.
I tested my HTTP server with the "http download" sample: it's working fine. I am a bit confused, as both samples use the same Download Client library.
Is there anything something I am missing with the HTTP update ?
Thanks.