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.

CC3200-LAUNCHXL: How to add STATIC IP Through Webpage?

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

Please guide me how to add static IP through webpage in cc3200.

I saw application http_server in which we can add static ip and profile through webpage.
I changed the static ip through webpage and added profile of AP , i succesfully connected to the AP in the profile.

But i want to implement same in my custom webpage application.

for trail i am writing static ip config html code in "setup.html" of OOB application.

Below is the code for adding static ip in the setup.html file in oob application.

<form method="POST" name="SimpleLink Configuration" action="IP_config">
<input type="hidden" name="__SL_P_S.R" value="setup_new.html">
<table>
<tr><td colspan="2" class="tbl-header top">Access Point Configuration</td></tr>
<tr><td colspan="2"></td></tr>
<tr><td> DHCP Client:</td> <td><input type="radio" name="__SL_P_N.D" value="0" checked="">Disabled
<input type="radio" name="__SL_P_N.D" value="1">Enabled</td></tr>

<tr><td> IP Address</td><td><input type="text" maxlength="32" name="__SL_P_N.A" value="__SL_G_N.A"></td></tr>

<tr><td> Subnet Mask</td><td><input type="text" maxlength="32" name="__SL_P_N.B" value="__SL_G_N.B"></td></tr>
<tr><td> Default Gateway:</td><td><input type="text" maxlength="32" name="__SL_P_N.C" value="__SL_G_N.C"></td></tr>
<tr><td> DNS Server</td><td><input type="text" maxlength="32" name="__SL_P_N.H" value="__SL_G_N.H"></td></tr>
<tr><td colspan="2"></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="Apply"></td></tr>
<tr><td colspan="2"></td></tr>
</table>
</form>

i am not able to add static ip, eventhough i selected enable dhcp client, after clicking apply, it is get selected to disable.

please correct me if there is any wrong in the code.

is there anyway that i can get the ip config html file of http_server application, which i can directly use in my custom webpage.?

  • Hi Sumanth,

    I'm going to have to look into this somewhat further. Are the html files included in the http_server example not what you desire?

    Are you wanting to add a feature to the OOB that allows you to assign a static IP to the CC3200?

    In the meantime, you could look through these E2E posts concerning setting static IPs to see if they have what your need.

    e2e.ti.com/.../531633
    e2e.ti.com/.../594661

    Best,
    Kevin
  • Hi Kevin,

    in http_server example, only two html files are available...... but if you flash them in cc3200, you will 6 tabs, one of the tab is ip config, which we can add static ip to cc3200 in station mode. (This is what i did, successed).

    Yes, I'm trying to add static ip feature in OOB example.

    If i have to add the static ip code in server/oob application, at what location i have to add that code?

    Regards,
    Sumanth.
  • Hi Kevin,

    If you see the main.html (openwith notepad++) of http server applicaiton, there is ip_config.html file.

    If i have that file, my work will be very simple.

    Regards,
    Sumanth.
  • Hi Sumanth,

    The ip_config.html file seems to be stored in ROM and not readily available.

    Could you try the following to see the html source code:

    1. Run the http_server example and get to the webpage you desire. If it's the ip_config page go to that

    2. On your desired page right click anywhere on the page and select "View Page source"

    Let me know if that works for you.

    Best,

    Kevin