NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

CC3100 HTTP Server

From Texas Instruments Wiki
Jump to: navigation, search
Cc31xx cc32xx return home.png
Cc31xx return sample apps.png

Overview[edit]

This sample application demonstrates the capability of CC3100 device to work as a web-server and allowing the end-users to communicate w/ it using standard web-browsers.

For more information refer to HTTP Server section of Programmers Guide

NoteNote: This wiki page is only applicable for CC3100-SDK v1.0.0 and upward releases. For documentation on older SDKs' examples, refer corresponding file in <cc3100-sdk-installation-location>\cc3100-sdk\docs\examples\

Application details[edit]

This application configures the CC3100 in AP mode with a pre-defined SSID-NAME and uses the sample HTML pages to toggle on-board LEDs. GET and POST tokens are used to get the LEDs' status and toggle the LEDs respectively. Clients can connect to CC3100 and request for web-pages using the IP of device from any standard web browser. The HTML pages provided with the sample application needs to be downloaded on serial-flash using CCS_UniFlash utility. The authentication parameters and domain name can be changed using corresponding host-driver APIs.

Usage[edit]

  • Flash main.html and blink_led.html on serial-flash by following the below steps:
    1. Open the Configuration-file at <cc3100-sdk-installation>/examples/http_server/uniflash_template/http_server.ucf in Uniflash
    2. Flash the files on the device. Uniflash User Guide has detailed instructions for flashing
  • Configure the terminal program for seeing the logs - CC3100 & CC3200 Terminal Setting has detailed instructions for flashing
  • Edit sl_common.h and modify the value for SSID_AP_MODE, PASSWORD_AP_MODE and SEC_TYPE_AP_MODE.
  • Build and launch the project. CC3100 will come-up in AP mode w/ the value set above as its SSID name
  • Connect a client w/ CC3100 using its SSID name
  • Open a web-browser on the client and enter the IP of CC3100 in the client's address bar
    • Default IP address is 192.168.1.1
    • Alternatively, 'mysimplelink.net' can also be entered for accessing the web page
  • Use authentication parameters displayed on the terminal to log in.
Http_1.png
  • On the page that gets displayed, click on the 'Blink LED'
HTTP_MainPage.png
  • Use LED buttons to turn ON/OFF the LEDs on the MCU board.
HTTP_LedPage.png

NoteNote: : User needs to reconfigure the device in 'Station-Mode' for executing other sample applications. Refer function configureSimpleLinkToDefaultState in this example's main.c for configuring the device in 'Station-Mode'.

Limitations/Known Issues[edit]

  • Supports HTTP 1.0 only

Links[edit]

{{#invoke: Navbox | navbox }} {{#invoke: Navbox | navbox }}

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article CC3100 HTTP Server here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article CC3100 HTTP Server here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article CC3100 HTTP Server here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article CC3100 HTTP Server here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article CC3100 HTTP Server here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3100 HTTP Server here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3100 HTTP Server here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article CC3100 HTTP Server here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article CC3100 HTTP Server here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity