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: local ota SDK2.30 - error accepting client connection, error -458

Part Number: CC3220SF

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

fw update SDK 2.30 failed.txt

  • Hi Vincent,

    There's a note in the limitations section of the local OTA readme:
    "The HTTPS certificate and private key (in this example OTA - ca_ in_ cert_store and ca-priv-key.der) can not be updated over the air, because the server uses them in the OTA process. In case that those files needs to be changed, they should be saved in different name and after the OTA process is done, set the HTTPS to the new files and delete the old ones."

    It looks like you're failing when you try to write ca_in_cert_store, which we would expect. Error -456 is a bad private file (from source/ti/drivers/net/wifi/errors.h). I'm guessing the successful attempts were good timing where had you finished writing the certificates before you tried to accept the client connection again.

    Are you using the pre-built tar from the SDK?

    Best regards,
    Sarah
  • Hi Sarah,

    Thanks for your reply.
    We are using our own .tar, haven't tried with SDK .tar.
    Will check all this on monday when I'm back in the office.

    Then it must be good timing often, because it works most of the times...
    If we don't plan on updating the ca_in_cert_store and ca_priv_key.der, could we just remove those files from the .tar bundle ?

    Best regards,
    Vincent
  • Hey Sarah,

    I took the time to test this issue again. With SDK2.40 this time, because I could reproduce with it also.

    Here are some interesting observations : 

    - When disabling the "ota_report_server_task" completely, everything works great ! (I just had to add a timeout at the end of function "otaPutCallback" in "link_local_task" so it doesn't wait forever on the otaReportServerStopSignal semaphore). Works everytime ! This is surprising, because I thought that "ota_report_server_task"'s role was simply to update the progress bar on the web page. Can you explain ?

    - When enabling the "ota_report_server_task", the error -458 shows up forever and prevents the update to complete. From your comment, I tried to remove the 2 files "ca_in_cert_store" and "ca-priv-key.der" from the bundle, but then I get a "@LongLink" file error. (see log "log LongLink error.txt"). I am sure that you have a good explanation for that...

    - When enabling the "ota_report_server_task" and adding the error -458 in the newsock check @line 250 of file "ota_report_server_task" (see code below), the update works ! (obviously the progress bar stops right there, but the update completes).

    else if(newsock < 0)
                    {
                        UART_PRINT(
                            "[ota report task] Error accepting client"
                            " connection, error %d \n\r",
                            newsock);
                        if((newsock == SL_RET_CODE_DEV_LOCKED) ||
                           (newsock == SL_API_ABORTED) ||
    					   (newsock == SL_ERROR_BSD_ESECBADPRIVATEFILE) || // added by me
                           (newsock == SL_ERROR_BSD_ESECBADCERTFILE))
                        {
                           /* means client failed to connect and command to driver
                              has aborted, or bad certificated file error.  */
                           /* in this case, it is better to 
                              abort the report server */
                            goto ota_report_server_end;
                        }
                        else
                        {
                            goto ota_report_server_accept_start;
                        }
                    }

    - by using everything "as is" with the bundle of the SDK, it also works.

    What are your thoughts on all this ?

    Is it a good idea to add the SL_ERROR_BSD_ESECBADPRIVATEFILE in the newsock check of ota_report_server_task ?

    Thanks for your precious time !

     Hash verification succeeded.
        Total archive file bytes 185609.
    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
    [ota report task] OTA progress 52% 
    
    
     Hash verification succeeded.
        Total archive file bytes 187343.
    OtaArchive_RunParseTar: 7 files that are mentioned in the ota.cmd were saved
    [OtaArchive_RunParseTar] Downloading File Completed - Size=975
    [OtaArchive_RunParseTar] unsupported FileType=76, FileName=././@LongLink
    [OtaArchive_RunParseTar]   Create/Open for write file /www/images/icons/wireless.png
    
     Hash verification failed.
    [Link local task] OtaArchive error -20199 
    
    [Link local task] ota put done. status=-1 
    [Link local task] waiting for signal from report server
    [ota report task] OTA progress failed, aborting... 
    
    [Link local task] Signal received from report server
    Wifi driver: Stopping
    ota_interface: Rebooting...
    

  • Hi Vincent,

    The ota_report_server_task opens a separate socket so it can send updates to the web page while the large tar file is being transferred. The link_local_task that loads the tar uses the standard NetApp APIs, but the NWP can only handle one NetApp instance at a time, so the socket is opened in the other thread to run concurrently. The browser seems more likely to refresh the socket connection during the OTA process.

    The example checks for SL_ERROR_BSD_ESECBADPRIVATEFILE when opening the socket, but it does not cover this case. You can certainly add a case to handle it in the application.

    Can you share the user files in the image you're flashing to the device and the tar image you've built? You can also try the default tar in the example folder.

    Best regards,
    Sarah