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.

CCS/LAUNCHCC3235MOD: Unable to get OTA update while trying to connect with newly created Dropbox App

Part Number: LAUNCHCC3235MOD

Tool/software: Code Composer Studio

Hi TI,

Here i am getting very anonymous issue, previously i was able to get OTA update using cloud_ota sample code, what i am trying to do now, i created new App over the Dropbox,

CG10 is the old App and CG10Mini is new one, old one is working well, and i have matched permissions of both of them as well. i download new generated token and updated in otauser.h file.

and my app is also ready..

now i created a new folder and kept .tar file inside it. 

and i also changed directory name inside otauser.h file

#define OTA_VENDOR_DIR  "OTA_MINI_MCU_FLASH"

i build the code , first ota project and then my cloud_ota code no error at all. then i burned the code. 

i am following  file:///C:/ti/simplelink_cc32xx_sdk_3_30_01_02/docs/simplelink_mcu_sdk/Over_The_Air_Update_Guide.html 

guide.

everything is ok till this point , but when i run the code it still requesting for previous directory which is no longer connected. 

log:

HandlePingComplete: OTA Command arrived

OtaInit: statistics = 0, 0, 0

OtaInit: call Ota_init

OTA_init: sizeof CdnClient=576, sizeof OtaArchive=5552

OTA_init: sizeof OtaLib_t=8332, sizeof OTA_memBlock=10536

OTA_init: OTA lib version = OTA_LIB_2.0.0.7

OtaArchive_Init: OTA archive version = OTA_ARCHIVE_2.0.0.4

OtaConfig: call OTA_set EXTLIB_OTA_SET_OPT_SERVER_INFO,ServerName=api.dropboxapi.com

OtaConfig: call OTA_set EXTLIB_OTA_SET_OPT_VENDOR_ID, VendorDir=OTA_R2_MCU_FLASH

OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com

CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com

HttpClient_Connect: IP_ADDR=162.125.81.19

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R2_MCU_FLASH

CdnDropbox_SendReqDir: uri=/2/files/list_folder

HttpClient_RecvSkipHdr: http error code HTTP/1.1 401

CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310

OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310


_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=1/5, return only WARNNING

OtaRunStep: WARNING Ota_run, Status=20004, continue fornext OTA retry

OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com

CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com

HttpClient_Connect: IP_ADDR=162.125.81.19

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R2_MCU_FLASH

CdnDropbox_SendReqDir: uri=/2/files/list_folder

HttpClient_RecvSkipHdr: http error code HTTP/1.1 401

CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310

OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310


_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=2/5, return only WARNNING

OtaRunStep: WARNING Ota_run, Status=20004, continue fornext OTA retry

OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com

CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com

HttpClient_Connect: IP_ADDR=162.125.81.19

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R2_MCU_FLASH

CdnDropbox_SendReqDir: uri=/2/files/list_folder

HttpClient_RecvSkipHdr: http error code HTTP/1.1 401

CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310

OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310


_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=3/5, return only WARNNING

OtaRunStep: WARNING Ota_run, Status=20004, continue fornext OTA retry

OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com

CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com

HttpClient_Connect: IP_ADDR=162.125.81.19

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R2_MCU_FLASH

CdnDropbox_SendReqDir: uri=/2/files/list_folder

HttpClient_RecvSkipHdr: http error code HTTP/1.1 401

CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310

OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310


_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=4/5, return only WARNNING

OtaRunStep: WARNING Ota_run, Status=20004, continue fornext OTA retry

OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com

CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com

HttpClient_Connect: IP_ADDR=162.125.81.19

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R2_MCU_FLASH

CdnDropbox_SendReqDir: uri=/2/files/list_folder

HttpClient_RecvSkipHdr: http error code HTTP/1.1 401

CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310

OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310

i am not able to understand why 

OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R2_MCU_FLASH

is requesting for the older VendorDir which  is i have deleted. or not connected any more.

please do let me know , if i am missing something or making any mistake.

waiting for your response.

please reply asap.

Thanks in advance 

sarju bhatnagar

  • Hi Sarju,

    Thank you for your description. Very easy to understand what you are doing and the problem.

    Could you verify your project is referring to the correctly newly generated OTA library when you rebuild the OTA project? Also verify the library file is actually updating in the directory. It should have a time stamp that matches the time you built the project.

    Jesu

  • Hi Jesu,

    Thanks for reply, i did the same as you suggested. directory name issue has been resolved, now the issue is, i am not able to connect to the server.

    here is log:

    HandlePingComplete: OTA Command arrived

    OtaInit: statistics = 0, 0, 0

    OtaInit: call Ota_init

    OTA_init: sizeof CdnClient=576, sizeof OtaArchive=5552

    OTA_init: sizeof OtaLib_t=8332, sizeof OTA_memBlock=10536

    OTA_init: OTA lib version = OTA_LIB_2.0.0.7

    OtaArchive_Init: OTA archive version = OTA_ARCHIVE_2.0.0.4

    OtaConfig: call OTA_set EXTLIB_OTA_SET_OPT_SERVER_INFO,ServerName=api.dropboxapi .com

    OtaConfig: call OTA_set EXTLIB_OTA_SET_OPT_VENDOR_ID, VendorDir=OTA_MINI_MCU_FLA SH

    OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com

    CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com

    HttpClient_Connect: IP_ADDR=162.125.81.19

    HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

    OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_MINI_MCU_FLASH

    CdnDropbox_SendReqDir: uri=/2/files/list_folder

    HttpClient_RecvSkipHdr: http error code HTTP/1.1 500

    CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310

    OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310


    _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=1/5, return only WARNNING

    OtaRunStep: WARNING Ota_run, Status=20004, continue fornext OTA retry

    OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com

    CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com

    HttpClient_Connect: IP_ADDR=162.125.81.19

    HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

    OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_MINI_MCU_FLASH

    CdnDropbox_SendReqDir: uri=/2/files/list_folder

    HttpClient_RecvSkipHdr: http error code HTTP/1.1 500

    CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310

    OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310


    _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=2/5, return only WARNNING

    OtaRunStep: WARNING Ota_run, Status=20004, continue fornext OTA retry

    OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com

    CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com

    HttpClient_Connect: IP_ADDR=162.125.81.19

    HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

    OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_MINI_MCU_FLASH

    CdnDropbox_SendReqDir: uri=/2/files/list_folder

    HttpClient_RecvSkipHdr: http error code HTTP/1.1 500

    CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310

    OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310


    _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=3/5, return only WARNNING

    OtaRunStep: WARNING Ota_run, Status=20004, continue fornext OTA retry

    OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com

    CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com

    HttpClient_Connect: IP_ADDR=162.125.81.19


    HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

    OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_MINI_MCU_FLASH

    CdnDropbox_SendReqDir: uri=/2/files/list_folder

    HttpClient_RecvSkipHdr: http error code HTTP/1.1 500

    CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310

    OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310


    _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=4/5, return only WARNNING

    OtaRunStep: WARNING Ota_run, Status=20004, continue fornext OTA retry

    OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com

    CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com

    HttpClient_Connect: IP_ADDR=162.125.81.19

    HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

    OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_MINI_MCU_FLASH

    CdnDropbox_SendReqDir: uri=/2/files/list_folder

    HttpClient_RecvSkipHdr: http error code HTTP/1.1 500

    CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310

    OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310


    _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=5/5, MAX_CONSECUTIVE_OTA_ERRORS!!!

    OtaRunStep: ignore it just for loop testing

    help me out here to get rid from this issue. do let me know where i am making mistake or what else should i try.

    thanks you so much for being connected.

    please reply asap.

    waiting for your reply...

    Sarju Bhatnagar

  • Hi Sarju,

    Please refer to this E2E. They report similar problems to yours.

    Jesu