- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I can build and run snip/ota.fr properly in SDK 3.1.2. But the example doesn't show how to initiate the OTA app from any project application. Our product requires the user to initiate the ota upgrade from an Android app. Is there any API call to initiate the OTA application from the project application? After the API call, if the device will reboot, how can I have the Bootloader be able to copy the OTA Application from external flash into MCU RAM ? Any example code and documents?
Thanks
Solved! Go to Solution.
- Labels:
-
Over The Air Updates (OTA)
-
SDK 3.x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
have a look at Apps/snip/ota_fr/ota_fr.c. This file is just a small wrapper around the main API to start an OTA server ( WICED_ota_server_start ), calling this API from any application, will start an OTA server, try to receive the file, and after receiving it, set the boot loader to boot from the received file, restart the platform (and then the boot loader kicks in and copy the new received file). you can embed this API in any application you need and it will do the same. your application can use a signal from you phone (in any way like) to call this function and start the upgrade process.
Hope this answers your question.
Regards,
Bassem