This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF: OTA FILE DOWNLOAD Questions

Part Number: CC3220SF


Hi

I am trying to make cloud ota from SDK simplelink_cc32xx_sdk_4_10_00_07 sample, I have the following questions

Otause.h has three options OTA_SERVER_GITHUBOTA_SERVER_DROPBOX_V2, OTA_FILE_DOWNLOAD

Q1. Is there any guide that explain how to use OTA_FILE_DOWNLOAD?

Q2. OTA_FILE_DOWNLOAD can get the tar file from any site?, example a public S3 Bucket from AWS?

Q3. If answer to Q2 is No, How can I get a direct download from Github?

Regards

Jesus

  • 1. I'm not sure where it is documented, but you can look for the OTA_FILE_DOWNLOAD references in the application (in "cloud_ota.c"). You just need to provide the URL with OTA_set before the calling OTA_run. 

    2. It can be from any HTTP server but only one that doesn't require client authentication (I'm not sure about the S3 access requirements). If needed, you can update the OTA library (OtaHttpClient) to add the client authentication.  

    BTW. if you are just starting with OTA, you may wait for the new OTA example in the coming SDK (6.10, expected in) which should make it easier and does support client authentication. In this new SDK the OTA is demonstrated as an add-on to the existing mqtt_client app. It supports different methods of configurations: download from cloud vendor or by URL (what you are looking for), local OTA and internal update (update from the file system) and any combination between them. It also doesn't require a rebuild for the OTA library. 

    The new app is already available in https://git.ti.com/cgit/slwfat/sl_wifi_examples.