Tool/software: TI-RTOS
Team,
I have been trying to do cloud OTA using a custom server, which accepts and responds to API requests similar to Github (Request Directory and Request file content). Hence I have modified the CdnGithub.c to perform OTA. I have made respective changed to the other files as well (otauser.h, CdnClient.c and CdnGithub.h)
From the code I understand that the ReqDir API just uses the size and download_url values, hence my API responds with those two keys alone as mentioned below.
[ { "size": 235520, "download_url": "https://services.com/ota/file/20171229191200_CC3200_OTA_clouota2.tar" } ]
The other change is that I am using the same vendor token for securing the download URL link. However the process fails with the below errors. I tried to debug, however did not understand the root cause.
CdnGithub_SendReqDir: uri=/ota/ OTA_run: ERROR CdnClient_ReqOtaDir, Status=-1 _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=1/5, return only WARNNING OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry OTA_run: call CdnClient_ConnectServer OTA server=services.com CdnClient_ConnectServer: HttpClient_Connect services.com HttpClient_Connect: IP_ADDR=13.126.94.18 OTA_run: CdnClient_ReqOtaDir, VendorDir=file CdnGithub_SendReqDir: uri=/ota/ OTA_run: ERROR CdnClient_ReqOtaDir, Status=-1 _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=2/5, return only WARNNING OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry OTA_run: call CdnClient_ConnectServer OTA server=services.com CdnClient_ConnectServer: HttpClient_Connect services.com HttpClient_Connect: IP_ADDR=13.126.94.18 OTA_run: CdnClient_ReqOtaDir, VendorDir=file CdnGithub_SendReqDir: uri=/ota/ OTA_run: ERROR CdnClient_ReqOtaDir, Status=-1 _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=3/5, return only WARNNING OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry OTA_run: call CdnClient_ConnectServer OTA server=services.com CdnClient_ConnectServer: HttpClient_Connect services.com HttpClient_Connect: IP_ADDR=13.232.146.208 OTA_run: CdnClient_ReqOtaDir, VendorDir=file CdnGithub_SendReqDir: uri=/ota/ OTA_run: ERROR CdnClient_ReqOtaDir, Status=-1 _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=4/5, return only WARNNING OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry OTA_run: call CdnClient_ConnectServer OTA server=services.com CdnClient_ConnectServer: HttpClient_Connect services.com HttpClient_Connect: IP_ADDR=13.126.94.18 OTA_run: CdnClient_ReqOtaDir, VendorDir=file CdnGithub_SendReqDir: uri=/ota/ OTA_run: ERROR CdnClient_ReqOtaDir, Status=-1 _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=5/5, MAX_CONSECUTIVE_OTA_ERRORS!!! OtaRunStep: FATAL ERROR from Ota_run -21003 !!!!!!!!!!!!!!!!!!!!!!!!!!!
I am using the latest SDK from TI i.e simplelink_cc32xx_sdk_2_40_01_01 and have success using the dropbox API for OTA.
Regards,
Zac