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.

CC3100 Seems didn't update IP Address etc on the web pages

Other Parts Discussed in Thread: CC3100

I just started to learn CC3100 and simple link since we chose this to be our new product development base, and managed to port the get weather example code to PIC24, and succeeded in getting weather and sending the data to a cloud server.

Now I am moving to second step. Trying to work out a way to config network when first time using the device. I tried internal web pages, and seems networking information didn't refresh on the status.html even though the device was connected to network. What am I missing? Or I need to do sth on HttpServerCallBack though those are predefined tokens? 

Also where can I get the source code for the internal web pages, such as status.html?

Thanks  a lot!

  • Hi Leo,

    Can you please share few more details? Which configuration you are trying to change? In which mode (AP/STA) CC3100 is running? Which configuration is not getting reflected?

    Predefined tokens are processed by NWP internally and won't be passed to user application.
    You can refer to OOB pages provided in the SDK.

    Regards,
    Ankur
  • Thanks, Ankur.

    The device is in STA mode, and i flash with the OOB webpages. On About page, IP Address, Subnet Mask, Gateway couldn't be refreshed with current values in DHCP mode. However, if using static IP, these parameters were reflected right on the page.

  • Ankur,

    Leo is referring to the absence of details in the LAN section. This has always been the case and I believe it is due to the details only being obtained and hence shown when in access point mode and not station mode. It is confusing however.

    Glenn.

  • Hi Glenn,
    In AP mode, with DHCP diabled or using static IP, the LAN info were shown right. Only with DHCP enabled, LAN info were shown wrong, but not 0.0.0.0.0, though, seems some random address.
  • Hi Leo,

    As Glenn mentioned in station mode you won't get the IP, Subnet Mask and Gateway using pre-defined tokens if the DHCP is enabled and should get the correct values if static IP is used. If you want to get the these parameters on web page in STA mode you can always implement it on application side. Please refer to http_server or provisioning_ap examples for reference.

    Glenn,

    Thanks for the response.

    Regards,
    Ankur
  • Hi Ankur,

    I do have some issue with IP Address update when device is in STA mode.

    I am using httpserver example. I added an extra html page say "address.html". What am i experincing is that when Device is in AP[Host] mode i am able to see Host/AP IP address on page reload. But when its is configured as STA[Client] and reload the page, i always get "0.0.0.0".

    Is the script wrong?

    <!DOCTYPE html>
    
    <!--[if lte IE 9 ]> <html class="ie"> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!--> <html> <!--<![endif]-->
    
    <head>
    <link rel="stylesheet" type="text/css" href="simple_link.css">
    <script type="text/javascript"></script>
    </head>
    
    <body class="in-frame">
    
    <form method="POST" name="SimpleLink Configuration action" action="ip_config.html">
    <tr>
    <td dir=LTR><br> AP[Host] IP Address: <td>
    <td dir=LTR><input type="text" maxlength="15" name="__SL_P_N.P" value="__SL_G_N.P"/> </td>
    </tr>
    <br>
    <tr>
    <td dir=LTR><br> STA[Client] IP Address: <td>
    <td dir=LTR><input type="text" maxlength="15" name="__SL_P_N.A" value="__SL_G_N.A"/> </td>
    </tr>
    
    </form>
    
    </body>
    </html>

  • Hi Anish,

    What I meant by implementing it on the application side is to define your own get tokens and use the HTTP server callback in the application hosted on MCU to pass the correct IP parameters to the webpage.

    Regards,
    Ankur
  • Hi Anish,

    I hope your query is answered.
    I am closing this thread for follow up queries please open a new thread and add a link to this one for reference.

    Regards,
    Ankur