TI中文支持网
TI专业的中文技术问题搜集分享网站

CC3220S OTA

测试cloud_ota 时报错,如下,请问时什么问题,如何修复. error code -101.

OtaInit: call Ota_init
OTA_init: sizeof CdnClient=576, sizeof OtaArchive=4956
OTA_init: sizeof OtaLib_t=7736, sizeof OTA_memBlock=15600
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.github.com
OtaConfig: call OTA_set EXTLIB_OTA_SET_OPT_VENDOR_ID, VendorDir=OTA_CC3220S
OTA_run: call CdnClient_ConnectServer OTA server=api.github.com
CdnClient_ConnectServer: HttpClient_Connect api.github.com
HttpClient_Connect: IP_ADDR=13.250.94.254
HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored…
OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_CC3220S
CdnGithub_SendReqDir: uri=/repos/sunrichman/cc3220s-ota/contents/
len is: 780
After recvAppend pRespBuf is: master","html_url":"github.com/…/20190117173519_CC3220S_cc3220s_cloud_ota.tar
the entire JSON pRespBuf is: [{"name":"20190117173519_CC3220S_cc3220s_cloud_ota.tar","path":"OTA_CC3220S/20190117173519_CC3220S_cc3220s_cloud_ota.tar","sha":"096d6d416bddc98710e23236930041e5cdb5a5d9","size":378880,"url":"https://api.github.com/repos/sunrichman/cc3220s-ota/contents/OTA_CC3220S/20190117173519_CC3220S_cc3220s_cloud_ota.tar?ref=master","html_url":"https://github.com/sunrichman/cc3220s-ota/blob/master/OTA_CC3220S/20190117173519_CC3220S_cc3220s_cloud_ota.tar","git_url":"https://api.github.com/repos/sunrichman/cc3220s-ota/git/blobs/096d6d416bddc98710e23236930041e5cdb5a5d9","download_url":"https://raw.githubusercontent.com/sunrichman/cc3220s-ota/master/OTA_CC3220S/20190117173519_CC3220S_cc3220s_cloud_ota.tar","type":"file","_links":{"self":"https://api.github.com/repos/sunrichman/cc3220s-ota/contents/OTA_CC3220S/20190117173519_CC3220S_cc3220s_cloud_ota.tar?ref=master","git":"https://api.github.com/repos/sunrichman/cc3220s-ota/git/blobs/096d6d416bddc98710e23236930041e5cdb5a5d9","html":"https://github.com/sunrichman/cc3220s-ota/blob/master/OTA_CC3220S/20190117173519_CC3220S_cc3220s_cloud_ota.tar"}}]
==== lian jun == file number:1
==== lian jun ==pathbuf:"#".[0]."download_url"
==== lian jun == test =pFileName:,FileNameKey:"#".[0]."download_url"[OtaJson_getMetadataFileName] Error: -101 , Couldn't get the dataOTA_run: ERROR CdnClient_ReqOtaDir, Status=-101

lianjun sun:

回复 Viki Shi:

这个问题已经解决,但又遇到新的问题:
OTA_init时会出现阻塞,添加log发现阻塞再OtaArchive_init中
———————— log————————–
Pinging GW…!
Ping done. Success rate: 100%

HandlePingComplete: PingCounter=1
Pinging GW…!
Ping done. Success rate: 100%

HandlePingComplete: OTA Command arrived
OtaInit: statistics = 0, 0, 0
OtaInit: call Ota_init
OTA_init: sizeof CdnClient=576, sizeof OtaArchive=10320
OTA_init: sizeof OtaLib_t=13100, sizeof OTA_memBlock=15600
OTA_init: OTA lib version = OTA_LIB_2.0.0.7
OTA_init: === lian jun1 ===
OtaArchive_Init: === lian jun1 696,heap97952===

———————— 代码————————–693 size_t xPortGetFreeHeapSize( void );694 int16_t OtaArchive_init(OtaArchive_t* pOtaArchive)695 {696_SlOtaLibTrace(("OtaArchive_Init: === lian jun1 %d,heap%d===\r\n",__LINE__,xPortGetFreeHeapSize()));697memset(pOtaArchive, 0, sizeof(OtaArchive_t));698_SlOtaLibTrace(("OtaArchive_Init: === lian jun1 %d===\r\n",__LINE__));699pOtaArchive->TotalBytesReceived = 0;700_SlOtaLibTrace(("OtaArchive_Init: === lian jun1 %d===\r\n",__LINE__));701 702_SlOtaLibTrace(("OtaArchive_Init: OTA archive version = %s\r\n", OTA_ARCHIVE_VERSION));703pOtaArchive->State = ARCHIVE_STATE_IDLE;704_SlOtaLibTrace(("OtaArchive_Init: === lian jun1 %d===\r\n",__LINE__));705pOtaArchive->CurrTarObj.lFileHandle = -1;706_SlOtaLibTrace(("OtaArchive_Init: === lian jun1 %d===\r\n",__LINE__));707pOtaArchive->BundleCmdTable.NumFiles = 0;708_SlOtaLibTrace(("OtaArchive_Init: === lian jun1 %d===\r\n",__LINE__));709 710B64_Init();711_SlOtaLibTrace(("OtaArchive_Init: === lian jun1 %d===\r\n",__LINE__));712return ARCHIVE_STATUS_OK;713 }

赞(0)
未经允许不得转载:TI中文支持网 » CC3220S OTA
分享到: 更多 (0)