1 Reply Latest reply on Sep 1, 2020 2:16 AM by YashM_26

    CYW943907AEVAL1F config_mode snip won't switch to onboarded wifi

    PaMu_4747636

      Hi.

       

      I'm trying to create a VERY SIMPLE app, where a user executes the following steps:

      1. From mobile or pc the user search for the board AP, finds the WICED and connects to it
      2. Open a browser types 192.168.0.1 and the browsers displays the wifi config page
      3. chooses a network, types credentials, submit
      4. the board connects to the network and saves the wifi profile.

       

      So I tried to find documentation on how this whole Web Server, Wifi onboarding process work in WICED Studio WiFi and I couldn't find any detailed document with the explanation other than go to the examples.

       

      I took the example snip/config_mode. ran it several times and all I get is this:

      1. The snip builds into the board
      2. from my laptop, I connect to the AP "WICED Config"
      3. Go to a browser and configure access to a wifi network.
      4. I get the IP (192.168.0.19) in the UART, that I double check it is also the one assigned by the wifi router
      5. I switch to the IP provided.
      6. web page doesn't load, stays forever and I don't get any feedback in the UART.

       

       

      Questions: 

      Is there anything that I'm missing here?

      Is there any DETAILED documentation on how the wifi onboarding works?:  Something that tells me how to capture errors if I type the wrong credentials, manage different network profiles, stored them,  Where are the files to configure the web server, html files (I know they are in resouces/../...). I need guidance on how all those things are wired together.

       

       

       

      Starting WICED Wiced_006.004.000.0061

      Platform CYW943907AEVAL1F initialised

      Started ThreadX v5.8

      WICED_core Initialized

      Initialising NetX_Duo v5.10_sp3

      Creating Packet pools

      WLAN MAC Address : C4:AC:59:98:AE:36

      WLAN Firmware    : wl0: May  2 2019 02:34:15 version 7.15.168.130 (r714231) FWID 01-7fc7cd46

      WLAN CLM         : API: 12.2 Data: 9.10.74 Compiler: 1.31.3 ClmImport: 1.36.3 Creation: 2019-05-02 02:29:29

      IPv4 network ready IP: 192.168.0.1

      Setting IPv6 link-local address

      IPv6 network ready IP: FE80:0000:0000:0000:C4AC:59FF:FE98:AE36

      Joining : intheairhome

      Successfully joined : intheairhome

      Obtaining IPv4 address via DHCP

      L1420 : dhcp_client_init() : DHCP CLIENT hostname = [WICED IP]

      IPv4 network ready IP: 192.168.0.19

      Setting IPv6 link-local address

      IPv6 network ready IP: FE80:0000:0000:0000:C6AC:59FF:FE98:AE36

       

      Application DCT Configuration:

      First Name = John

      Last Name  = Citizen

      Address 1  = Level 15

      Address 2  = 24 Campbell St

      Suburb     = Sydney

      Country    = Australia

      Zipcode    = 2000

      Phone      = +612 5555 5555

       

       

       

      thanks

        • 1. Re: CYW943907AEVAL1F config_mode snip won't switch to onboarded wifi
          YashM_26

          Hi

           

          1. After connecting to the WICED Config soft AP, you need to go to the browser and type wiced.com or 192.168.0.1 and the HTML page will load up (if the html doesn't load up then please try some other browser).

          The HTML page with following details will load up.

          Try changing one of the fields and save the settings. Click on Wi-Fi Setup and all the available APs will be scanned. Connect to your router (AP) by providing the password in the Wi-Fi setup itself, once connected you will be able to see the UART prints.

           

          2. Regarding the documentation, we don't have any standard documentation, you have to understand the flow of code manually.

           

          Thanks and Regards

          Yash