Hi community !
By using the example "local ota" of SDK 2.30, as it is. We have noticed that the update sometimes fails, due to the mentioned error.
See logs attached (with successful and failed update with exactly same code, web pages and project (taken from SDK).
Can anyone reproduce ?
Thanks !
Vincent Vuarnoz
================================================= local ota SDK2.30 Example Ver. 1.01 ================================================= [Local ota task] Wake up on Power ON [NETAPP EVENT] IP Acquired: IP=10.123.45.1 , Gateway=10.123.45.1 [Local ota task] ConfigureHttpServer for secured mode... [Local ota task] HTTP Server Stopped [Local ota task] HTTP Server Re-started [Local ota task] Device is configured in default state [NETAPP EVENT] IP Acquired: IP=10.123.45.1 , Gateway=10.123.45.1 [Local ota task] SimpleLinkInitCallback: started in role 2, set the requested role 0 [Local ota task] SimpleLinkInitCallback: restarted in role 0 [Provisioning task] detected device is CC3220SF [Local ota task] Host Driver Version: 3.0.1.41 Build Version 3.9.0.6.31.2.0.0.0.2.2.0.6 [Local ota task] WlanConnect SSID=TMSDK [WLAN EVENT] STA Connected to the AP: TMSDK ,BSSID: b0:e5:ed:67:9d:65 [NETAPP EVENT] IP Acquired: IP=192.168.8.165 , Gateway=192.168.8.1 [Local ota task] Pinging gateway, please wait... [Local ota task] pinging to gateway succeeded [Local ota task] waiting for new ota upload... [Link local task] HTTP GET Request [Link local task] characteristic is: macaddress [Link local task] characteristic is: ipaddress [Link local task] characteristic is: ssid [Provisioning task] detected device is CC3220SF [Link local task] HTTP GET Request [Link local task] characteristic is: version [Link local task] HTTP GET Request [Link local task] characteristic is: ipaddress [Provisioning task] detected device is CC3220SF [Link local task] HTT[SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] P PUT Request [Link local task] characteristic is: filename [Link local task] value is: 1.02.tar [Provisioning task] detected device is CC3220SF [Link local task] Received OTA filename 1.02.tar, len = 327680 [OtaArchive_Init] OTA archive version = OTA_ARCHIVE_2.0.0.4 [ OtaArchive_CheckVersion] current version str = 20180503150640, decimal = -1548173264 [ OtaArchive_CheckVersion] new version str = 1.02.tar, decimal = 1 [ OtaArchive_CheckVersion] older version update - 1.02.tar [_BundleCmdFile_Parse] bundle cmd file=/sys/mcubootinfo.bin, sig_len=0, SHA_256_Digets=ca07d9c0c8cf718e227cc62a5198025728005c056ab53b5c8242af364fa437ed, cert=, secured=1, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/sys/mcuflashimg.bin, sig_len=256, SHA_256_Digets=4abb083d10b2c0f9af795d0422b352d7524f80098f9cd4dbdd22054b370781f2, cert=dummy-root-ca-cert, secured=1, bundle=1 [ota report task] OTA progress 0% [_BundleCmdFile_Parse] bundle cmd file=/www/css/style.css, sig_len=0, SHA_256_Digets=40269725b8af3f678e58444efc21de7640988932ca891432bf699d26dc73b65f, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/www/help.html, sig_len=0, SHA_256_Digets=a69981ca6e729324b0556652d64209a692134972a648951ec379e5ec362b9e72, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/www/images/icons/help.png, sig_len=0, SHA_256_Digets=81d79e4b38391e7d3bbbe825d639ca9a4bae777bb1f792d6805e8616a3c7d71d, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/www/images/icons/menu.png, sig_len=0, SHA_256_Digets=ec6173aa201099907edf035e11fd23462499f0642e8aaa967838fddad332c3be, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/www/images/icons/wireless.png, sig_len=0, SHA_256_Digets=e04e33b015cf29d69124eb970d410f21c96d72776131bff908fa41ded2b8f65f, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/www/images/icons/wirelessfull.png, sig_len=0, SHA_256_Digets=5ea6198e7f4d1ea4d4a6317696a5d10e602797904b3a00262e02323999d7b3c4, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/www/images/tilogo.gif, sig_len=0, SHA_256_Digets=3e59f665ba3876aafbc0b124459df996dc85c9bc7533df63b670ba19228e2d1e, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/www/index.html, sig_len=0, SHA_256_Digets=e72a5da47a35a7c312baaef2e47661fd7412937119a7b9b151c1b16996f2b37f, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/www/js/jquery.min.js, sig_len=0, SHA_256_Digets=22642f202577f0ba2f22cbe56b6cf291a09374487567cd3563e0d2a29f75c0c5, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/www/js/scripts.js, sig_len=0, SHA_256_Digets=499033372e66443a41a9d407717ed82da66550b1ff067549cfe88b0c058e1f9b, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/www/ota.html, sig_len=0, SHA_256_Digets=066fe36281c0f54c5445771c0b9f996e961dc8b75f012225063ea344f11ce8c7, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/www/settings.html, sig_len=0, SHA_256_Digets=a7ef881e185e778773b9f56379e8b5d19181ce35fb33f714ffa57b8d8d30b2b9, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=ca-priv-key.der, sig_len=0, SHA_256_Digets=d3f34abc6a4de3f009273b4e1d0c71957835425baa0c9896aca88cb508a7ee8b, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=ca_in_cert_store, sig_len=0, SHA_256_Digets=34941765501d16a4ab776c3a74d89945f1a2575c5893069f62ffbe803f344549, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=dummy-root-ca-cert, sig_len=0, SHA_256_Digets=34941765501d16a4ab776c3a74d89945f1a2575c5893069f62ffbe803f344549, cert=, secured=0, bundle=0 [_BundleCmdFile_Parse] bundle cmd file=[SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] dummy_ota_vendor_cert.der, sig_len=0, SHA_256_Digets=a160b855d7a00a6002922181377249a80ecd6a738d23e1dd8976c8bb7fad1bcb, cert=, secured=0, bundle=1 [_BundleCmdFile_Parse] bundle cmd file=/sys/servicepack.ucf, sig_len=256, SHA_256_Digets=8cf3c1054efa5322958fa80d18a6db868307964becaba33421384f69e46e7820, cert=, secured=1, bundle=1 [ota report task] OTA progress 2% [OtaArchive_RunParseTar] Create/Open for write file dummy-root-ca-cert [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] Hash verification succeeded. Total archive file bytes 10703. OtaArchive_RunParseTar: 1 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=975 [OtaArchive_RunParseTar] Create/Open for write file /sys/mcubootinfo.bin Hash verification succeeded. Total archive file bytes 11280. OtaArchive_RunParseTar: 2 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=16 [OtaArchive_RunParseTar] Create/Open for write file /sys/mcuflashimg.bin [ota report task] OTA progress 4% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 17% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 23% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 26% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 29% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 33% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 37% Hash verification succeeded. Total archive file bytes 125196. OtaArchive_RunParseTar: 3 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=112908 [OtaArchive_RunParseTar] Create/Open for write file /www/css/style.css [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 41% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 44% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] Hash verification succeeded. Total archive file bytes 155514. OtaArchive_RunParseTar: 4 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=29562 [OtaArchive_RunParseTar] Create/Open for write file /www/help.html [ota report task] OTA progress 47% Hash verification succeeded. Total archive file bytes 156961. OtaArchive_RunParseTar: 5 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=801 [OtaArchive_RunParseTar] Create/Open for write file /www/images/icons/help.png Hash verification succeeded. Total archive file bytes 158985. OtaArchive_RunParseTar: 6 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=1289 [OtaArchive_RunParseTar] Create/Open for write file /www/images/icons/menu.png [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] Hash verification succeeded. Total archive file bytes 160719. OtaArchive_RunParseTar: 7 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=975 [OtaArchive_RunParseTar] Create/Open for write file /www/images/icons/wireless.png Hash verification succeeded. Total archive file bytes 162456. OtaArchive_RunParseTar: 8 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=1176 [OtaArchive_RunParseTar] Create/Open for write file /www/images/icons/wirelessfull.png [ota report task] OTA progress 49% Hash verification succeeded. Total archive file bytes 164408. OtaArchive_RunParseTar: 9 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=1080 [OtaArchive_RunParseTar] Create/Open for write file /www/images/tilogo.gif [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] Hash verification succeeded. Total archive file bytes 172558. OtaArchive_RunParseTar: 10 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=7182 [OtaArchive_RunParseTar] Create/Open for write file /www/index.html [ota report task] OTA progress 52% Hash verification succeeded. Total archive file bytes 174583. OtaArchive_RunParseTar: 11 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=1015 [OtaArchive_RunParseTar] Create/Open for write file /www/js/jquery.min.js [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 56% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 60% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 63% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 65% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 69% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 73% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] [ota report task] OTA progress 78% Hash verification succeeded. Total archive file bytes 259484. OtaArchive_RunParseTar: 12 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=84380 [OtaArchive_RunParseTar] Create/Open for write file /www/js/scripts.js [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] Hash verification succeeded. Total archive file bytes 262658. OtaArchive_RunParseTar: 13 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=2562 [OtaArchive_RunParseTar] Create/Open for write file /www/ota.html [ota report task] OTA progress 81% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] Hash verification succeeded. Total archive file bytes 272835. OtaArchive_RunParseTar: 14 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=9155 [OtaArchive_RunParseTar] Create/Open for write file /www/settings.html [ota report task] OTA progress 83% [SOCK ERROR] an event received on socket 0 [SOCK ERROR] Recoverable error occurred during the handshake -346 [SOCK EVENT] - Unexpected Event [20x] Hash verification succeeded. Total archive file bytes 290437. OtaArchive_RunParseTar: 15 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=17029 [OtaArchive_RunParseTar] Create/Open for write file ca-priv-key.der [ota report task] OTA progress 88% Hash verification succeeded. Total archive file bytes 292520. OtaArchive_RunParseTar: 16 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=1192 [OtaArchive_RunParseTar] Create/Open for write file ca_in_cert_store Hash verification succeeded. Total archive file bytes 294351. OtaArchive_RunParseTar: 17 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=975 [OtaArchive_RunParseTar] Create/Open for write file dummy_ota_vendor_cert.der Hash verification succeeded. Total archive file bytes 295526. OtaArchive_RunParseTar: 18 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloadi[ota report task] Error accepting client connection, error -457 ng File Completed - Size=614 [OtaArchive_RunParseTar] Create/Open for write file /sys/servicepack.ucf Hash verification succeeded. Total archive file bytes 326134. OtaArchive_RunParseTar: 19 files that are mentioned in the ota.cmd were saved [OtaArchive_RunParseTar] Downloading File Completed - Size=29686 [OtaArchive_RunParseTar] End of archive... [Link local task] sl_extLib_OtaRun: ---- Download file completed 1.02.tar [Link local task] ota put done. status=0 [Link local task] waiting for signal from report server [Common] CC32xx MCU reset request ================================================= local ota SDK2.30 Example Ver. 1.02 ================================================= [Local ota task] Woken up from Hibernate [NETAPP EVENT] IP Acquired: IP=10.123.45.1 , Gateway=10.123.45.1 [Local ota task] ConfigureHttpServer for secured mode... [Local ota task] HTTP Server Stopped [Local ota task] HTTP Server Re-started [Local ota task] Device is configured in default state [NETAPP EVENT] IP Acquired: IP=10.123.45.1 , Gateway=10.123.45.1 [Local ota task] SimpleLinkInitCallback: started in role 2, set the requested role 0 [Local ota task] SimpleLinkInitCallback: restarted in role 0 [Provisioning task] detected device is CC3220SF [Local ota task] Host Driver Version: 3.0.1.41 Build Version 3.9.0.6.31.2.0.0.0.2.2.0.6 [Local ota task] WlanConnect SSID=TMSDK [WLAN EVENT] STA Connected to the AP: TMSDK ,BSSID: b0:e5:ed:67:9d:65 [NETAPP EVENT] IP Acquired: IP=192.168.8.165 , Gateway=192.168.8.1 [Local ota task] Pinging gateway, please wait... [Local ota task] pinging to gateway succeeded [Local ota task] committing new ota download... [Local ota task] commit succeeded [Local ota task] waiting for new ota upload... [Link local task] HTTP GET Request [Link local task] characteristic is: version