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: Provisioning DEMO

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

Hi. 

I would like to have some guidance on the expected behaviour of the Provisioning demo AS IS. 

I run the TI RTOS version on a CC3220SF with CCS and the CCS Compiler.  Here is what happens. 

  1. I run and the demo on debug mode into the board. 
  2. The terminal shows the message "Starting Provisioning! mode=2 (0-AP, 1-SC, 2-AP+SC, 3-AP+SC+EXT)"
  3. I connect to the AP and use the html pages to add a wifi profile.
  4. Once I add a profile, I get the message: "[Provisioning] Profile Added: SSID: myhomeinternetssid"

and that's it, NO pinging. According to the demo docs it is supposed to establish ping. 

so I have to reset the board, and then it will load the profile that I added at first and then start pinging. 

I thought this was an example on how to provisioning Wifi and also establish ping and shows the IP acquired. 

How am I supposed to do provision Wifi to a device on a production device, tell the user, "hey, press a button and reset..!"

Would it be possible to add the profile, get the IP and establish Wifi connectivity ?? 

I've been reading the documents and in some chapters it says that the device does provisioning "automatically". so far after looking at that provisioning state machine, I don't see anything automatic about it. 

some guidance would be very much appreciated

thanks

-Pablo

  • Hi Pablo,

    Keep in mind this is just a demo. You will have to create your own application to suit your exact needs and production requirements. 

    You are correct about the pinging and IP though. Could you share the UART log from start to finish?

    Jesu

  •                  *************************************************
                                PROVISIONING Application
                     *************************************************
    
    
    
    Device started in AP role
    [NETAPP EVENT] IP Acquired: IP=10.123.45.1 , Gateway=10.123.45.1
    
    
    
    ==================================
     Provisioning Example Ver. 01.00.00.14
    ==================================
    
     CHIP 0x31000019
     MAC  31.2.0.0.0
     PHY  2.2.0.7
     NWP  3.16.0.1
     ROM  0
     HOST 3.0.1.68
     MAC address: 40:6:a0:97:50:5e
    
    
     Starting Provisioning! mode=2 (0-AP, 1-SC, 2-AP+SC, 3-AP+SC+EXT)
    
     [Provisioning] Profile Added: SSID: myhomewifi
    
    
    
    
    

  • HI Pablo,

    Nothing happens after the profile is added? What happens if you restart the device after the profile is added?

    Jesu

  • NO. Nothing happens. 

    I have to re-run, debug the provisioning demo again. and then the device connects to the WIFI and does the PING. 

                     *************************************************
                                PROVISIONING Application
                     *************************************************
    
    
    
    Device started in Station role
     [Event] STA connected to AP - BSSID:32:81:52:2d:69:0e, SSID:anotherwifi
    [NETAPP EVENT] IP Acquired: IP=172.20.10.7 , Gateway=172.20.10.1
    [App] User Application Started
            DHCP is ON
            IP      172.20.10.7
            MASK    255.255.255.240
            GW      172.20.10.1
            DNS     172.20.10.1
    Reply from 172.20.10.1: SUCCESS, Time=430ms,    Overall Stat Success (1/1)
    Reply from 172.20.10.1: SUCCESS, Time=219ms,    Overall Stat Success (2/2)
    Reply from 172.20.10.1: SUCCESS, Time=222ms,    Overall Stat Success (3/3)
    Reply from 172.20.10.1: SUCCESS, Time=221ms,    Overall Stat Success (4/4)
    Reply from 172.20.10.1: SUCCESS, Time=223ms,    Overall Stat Success (5/5)
    Reply from 172.20.10.1: SUCCESS, Time=528ms,    Overall Stat Success (6/6)
    Reply from 172.20.10.1: SUCCESS, Time=222ms,    Overall Stat Success (7/7)

    And if I just reset the device using the button, the device will restart and run the out Of the box demo that is already flashed so it will also connect to wifi but using the Out of the Box demo app. 

    I though it was a problem with my home wifi router but I tested with different wifi networks/routers and  result it's the same.

    And again, looking at that provisioning State Machine just give me the creeps. If that is a demo, I can't imagine how complex can it be to do something in production. I guess I have a long path ahead to learn how to do this. 

    I would appreciate any guidance 

    thanks

  • Hi Pablo,

    Please keep in mind our demo is only for demo purposes. We recommend you develop your own state machines for things like provisioning and OTA. Of course use our simplelink APIs to interact with the NWP but the application code in our examples are just for demonstration. 

    Quick question, I noticed the banner from the UART log is different. What SDK version are you using? I just tested with the latest CC32xx and it worked fine for me. I only ran it once though.

    Jesu

  • The logs are different because I test with different WiFi routers 

    I'm using the SimpleLink CC32xx SDK  4.30.0.06

    When you say "worked fine" what do you mean, it adds the profile and then starts pinging ?  or ?

    thanks

  • Correct. Pablo, if I may. Our provisioning demo is not perfect as you've highlighted in your remarks about the state machine. I can comment I have seen some inconsistencies when running the provisioning demo myself as well as when using out mobile apps. The provisioning demo is just for demonstration purposes. It is useful for evaluating the features in our device but ultimately you should create your own provisioning solution for your own product. 

    Jesu