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-LAUNCHXL: OTA local example - Can't access ota.html

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: UNIFLASH, CC3220SF

Following the guide of the example:

I have setup my own network credentials in local_ota.h.

Then:

"Users can navigate to the demo tab in two ways"

What tab are they talking about???

Then :

"Explicitly type ota.html as the requested resource on the browser URL. The requested resource must be prefixed by CC3220 IP address."

I can't seem to access the page !

  • Hi Vincent,

    The "tab" is misleading, it actually means the OTA "page": [CC3220-IP]/ota.html.
    The ota.html should be programmed to devices by uniflash after it is imported with the zipped project within the local_ota example (see under <sdk-root>/examples\rtos\CC3220SF_LAUNCHXL\demos\local_ota\uniflash).

    Br,
    Kobi
  • Thanks Kobi.

    Ok, so you meant "importing the project from the .zip file". This I managed to do now. Thanks!

    But when programming the image, nothing happens (no uart output, no wifi up).

    I find it suspicious that the mcubootinfo.bin is 0.0KB. When downloading it, there is only one line in it (0000 0000 0000 0000 15db 42ae 00a0 2526).

    And apparently no certificates are used...

    I used the .zip project as it was.

    Did I miss something?

    Another question:

    I would like to "play around" and be able to debug that project. How do I get all these extra files into the CCS project?

    Thanks a lot !

  • you may rebuild the project and get the bin file. Add the bin file to the sys/mcuflashing.bin.
  • Rebuild the project after you update the local access point configuration.

    Br,
    Kobi
  • Thank you guys ! I can now access the ota.html page. One step closer ! :)

    The next thing is to do the actual update, here are the steps I'm going through:

    - build the project in CCS

    - add the output ".bin" file into "User Files"

    - enter the certificates files (using the key that was in the .zip project (ca_priv_key.der) is that correct? )

    - Create & Program

    - Create OTA

    - Open the web page and upload the *.tar file.

    - Update failed...

    Log file...

    
    
                     =================================================
                               local ota FLASHED 3 Example Ver. 1.00.00.10
                     =================================================
    
    
    
    [Local ota task] Wake up on Power ON
    [Provisioning task] detected device is CC3220SF
    [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
    [Local ota task] Host Driver Version: 2.0.1.19
    Build Version 3.4.0.0.31.2.0.0.0.2.2.0.5
    [Local ota task] WlanConnect SSID=EnGenius1
    [WLAN EVENT] STA Connected to the AP: EnGenius1 ,BSSID: 88:dc:96:25:ef:9a
    [NETAPP EVENT] IP Acquired: IP=192.168.1.79 , Gateway=192.168.1.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: version
    [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: ipaddress
    [Provisioning task] detected device is CC3220SF
    [Link local task] HTTP PUT Request
    [Link local task] characteristic is: filename
    [Link local task] value is: 20170728094034_CC3220SF_LOCAL_OTA_SF.tar
    [Provisioning task] detected device is CC3220SF
    [Link local task] Received OTA filename 20170728094034_CC3220SF_LOCAL_OTA_SF.tar, len = 286720
    [OtaArchive_Init] OTA archive version = OTA_ARCHIVE_2.0.0.3
    [    OtaArchive_CheckVersion] current version str = 20170627150625, decimal = 1460728609
    [    OtaArchive_CheckVersion] new     version str = 20170728094034, decimal = 1561672018
    [    OtaArchive_CheckVersion] newer version update - 20170728094034
    [_BundleCmdFile_Parse]    bundle cmd file=/sys/mcuflashimg.bin, sig_len=256, cert=ca_in_cert_store, secured=1, bundle=1
    [_BundleCmdFile_Parse]    bundle cmd file=/sys/servicepack.ucf, sig_len=256, cert=, secured=1, bundle=1
    [OtaArchive_RunParseTar]   Create/Open for write file ca_in_cert_store
        Total archive file bytes 5071.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=975
    [OtaArchive_RunParseTar]   Create/Open for write file /www/help.html
    [ota report task] OTA progress 1%
        Total archive file bytes 6469.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=837
    [OtaArchive_RunParseTar]   Create/Open for write file /www/index.html
        Total archive file bytes 8215.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=1047
    [OtaArchive_RunParseTar]   Create/Open for write file /www/settings.html
        Total archive file bytes 26757.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=17541
    [OtaArchive_RunParseTar]   Create/Open for write file /www/css/style.css
    [ota report task] OTA progress 9%
    [ota report task] OTA progress 14%
    [ota report task] OTA progress 19%
        Total archive file bytes 57210.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=29562
    [OtaArchive_RunParseTar]   Create/Open for write file /www/images/tilogo.gif
        Total archive file bytes 65038.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=7182
    [OtaArchive_RunParseTar]   Create/Open for write file /www/images/icons/help.png
        Total archive file bytes 67337.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=1289
    [OtaArchive_RunParseTar]   Create/Open for write file /www/images/icons/menu.png
        Total archive file bytes 69071.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=975
    [OtaArchive_RunParseTar]   Create/Open for write file /www/images/icons/wireless.png
        Total archive file bytes 70808.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=1176
    [OtaArchive_RunParseTar]   Create/Open for write file /www/images/icons/wirelessfull.png
        Total archive file bytes 72760.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=1080
    [OtaArchive_RunParseTar]   Create/Open for write file /www/js/jquery.min.js
    [ota report task] OTA progress 41%
    [ota report task] OTA progress 46%
    [ota report task] OTA progress 54%
        Total archive file bytes 158112.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=84384
    [OtaArchive_RunParseTar]   Create/Open for write file /www/js/scripts.js
        Total archive file bytes 161393.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=2673
    [OtaArchive_RunParseTar]   Create/Open for write file /www/ota.html
    [ota report task] OTA progress 58%
        Total archive file bytes 171833.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=9529
    [OtaArchive_RunParseTar]   Create/Open for write file ota.dat
        Total archive file bytes 172559.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=15
    [OtaArchive_RunParseTar]   Create/Open for write file dummy-root-ca-cert
        Total archive file bytes 174543.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=975
    [OtaArchive_RunParseTar]   Create/Open for write file ca-priv-key.der
    [ota report task] OTA progress 61%
        Total archive file bytes 176296.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=1192
    [OtaArchive_RunParseTar]   Create/Open for write file /sys/mcuflashimg.bin
    [ota report task] OTA progress 67%
    [ota report task] OTA progress 77%
        Total archive file bytes 260540.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=83388
    [OtaArchive_RunParseTar]   Create/Open for write file /sys/servicepack.ucf
    [ota report task] OTA progress 95%
        Total archive file bytes 283626.
    [OtaArchive_RunParseTar] Downloading File Completed - Size=22506
    [OtaArchive_RunParseTar] End of archive...
    [_SaveOtaVersionFile] Error sl_FsOpen ota.dat, Status=-10344
    [Link local task] sl_extLib_OtaRun: ---- Download file completed 20170728094034_CC3220SF_LOCAL_OTA_SF.tar
    [Link local task] ota put done. status=0
    [Link local task] waiting for signal from report server
    [ota report task] OTA progress 100%
    [Common] CC3220 MCU reset request
    
    
    
                     =================================================
                               local ota FLASHED 4 Example Ver. 1.00.00.10
                     =================================================
    
    
    
    [Local ota task] Woken up from Hibernate
    [Provisioning task] detected device is CC3220SF
    [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
    [Local ota task] Host Driver Version: 2.0.1.19
    Build Version 3.4.0.0.31.2.0.0.0.2.2.0.5
    [Local ota task] WlanConnect SSID=EnGenius1
    [WLAN EVENT] STA Connected to the AP: EnGenius1 ,BSSID: 88:dc:96:25:ef:9a
    [NETAPP EVENT] IP Acquired: IP=192.168.1.79 , Gateway=192.168.1.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
    
    

    I guess there is something about the certificates that I don't get. Any more detailed information on the subject would be highly appreciated.

  • In fact, i also get updata fail from web page.  Maybe you can get some information from uart console.

    And you can check the readme.html :

    • Rarely, it is observed that the progress bar does not start or start but freeze in the middle; however the Over the Air update procedure is successful. In these cases, Board_LED2 (green LED, D5 on the board) indication and terminal printouts would show the true status of the procedure, and also the web client should eventually indicate a successful process.

    "

    Another, I try OOB example OTA instead.I find that it is successful on SimpleLink Wi-Fi Starter Pro for Andriod V2.2.22 - You can get it on Google Play.

    Best regards,

    Jun

  • Hi Vincent,

    Please use the latest SDK 1.40 (www.ti.com/.../simplelink-cc3220-sdk).

    At least the certificates in your image creator screenshot seem to be incorrect.

    Please use the new playground certificates from <sdk-root>/tools\cc32xx_tools\certificate-playground/.

    Note that you should program the entire certificate chain ((e.g. dummy-trusted-cert, dummy-trusted-ca-cert, and dummy-root-ca-cert). as user files before you set the image. 

    Note also that the private key you provide should comply to the public one (e.g. dummy-trusted-cert-key & dummy-trusted-cert).

    br,

    Kobi

  • Thanks guys !

    I managed to get the update to work.

    The solution was to delete "ca-priv-key.der" from User Files.

    Note that using the playground certificates (as  suggested), instead of the ones pre-defined in the .zip Uniflash project, also works !

  • Other question:

    I noticed that some of the files present in User Files are not used (update still works if they are removed) :

    - "ota.dat"

    - "mcubootinfo.bin"

    Can you tell more about how to use and what are these files for?

    Thank you !