Hey all, i'm having some really frustrating issues with OTA2. I want to integrate it into an existing project but i'm having trouble with just getting the stock example to work for me.
I've done all the reading, namely the WICED OTA2 Update Support document and the forum post (Over The Air update in CYW43907 ), and for a guide i've been following this post: OTA2 Update for SDK-3.7.0. I am able to follow everything up to step 5 where I am issuing the get_update command through the command interface. here is the exact command I use: <get_update 192.168.223.1:8080/OTA2_image_file.bin>
The resulting output is this:
0000 00:18:25.142 PLAYER_EVENT_GET_UPDATE !
0001 00:18:25.146 ota2_test_get_update() wiced_ota2_service_init() bg_service:0x52d090
Download the OTA Image file - get it NOW!
Joining : NETGEAR24
Successfully joined : NETGEAR24
0002 00:19:04.277 ota2_service_connect() wiced_tcp_connect() failed! 7014
0003 00:19:04.283 wiced_ota2_service_get_the_update() ota2_service_connect() failed!
0004 00:19:04.290 wiced_ota2_service_get_the_update() ota2_service_connect() failed (list)!
0005 00:19:04.298 OTA2: wiced_ota2_service_get_the_update() FAILED check if timers started!
0006 00:19:04.306 PLAYER_EVENT_STOP_TIMED_UPDATE called ota2_test_stop_timed_update()! 0
So i'm not sure whats really happening here - but i should say ive tried using my own file server I wrote in python as well as the mongoose server used in the example, both to no avail. Any ideas?
I also want to mention how I want to use this in case there someone can provide a stripped down version that might be easier understood/used by me. Basically I have a device that will ping a server every 10 minutes - the server will respond with some basic info, including a field that indicates whether an update is available. If one is, the device will connect to the update server and initiate a OTA2 update. I should also say that this process on the device will need to be completely autonomous, as once the device is deployed it cannot be accessed.
Appreciate the help!