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.

CC3200 HTTP Server

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

Overview[edit]

HTTP Server Application demonstrates interaction between HTTP Client(Browser) and SimpleLink Device. The SimpleLink device runs an HTTP Server and user can interact with the device using a Web Browser. User Can interact using Simple HTTP GET and POST Command

Using HTTP Server, User can do below:

  1. Get Static Pages Stored on ROM/SFLash
  2. Update Device Settings by filling Forms on Static HTML pages
  3. Get Dynamic Data such as Device status etc using Tokens in HTML pages.
  4. Send Command to Device using Tokens in HTML pages. For e.g User controls the LED on the Device.


Usage[edit]

  • Flash Example Content(html,image,Application binary)on serial flash by following below steps.
  • Open <cc3200-sdk>\examples\httpserver\html\httpserver.ucf session file in Uniflash.
  • Flash the files to the device. Detailed instructions at Uniflash User Guide.
  • Run the reference application
    1. Run From IDE (IAR/CCS)
      • Open the Project as mentioned in the <cc3200-sdk>\docs\CC3200-Getting Started Guide.pdf
      • Build and download the application to the board
    2. Run Flashed Binary
      • Remove SOP-2 Jumper on Board and Press Reset. Refer <cc3200-sdk>\docs\CC3200-Getting Started Guide.pdf for detailed Information
  • Device starts and check for Force AP Jumper as shown below. If Jumper is placed, It starts in AP Mode
AP_Mode_Jumper.jpg



Case 1 - AP Mode

  • CC3200 device will boot in AP Mode. It will print its SSID and HTTP Server domain name in UART Terminal


CC32xx HttpServer Terminal runScreen 1.0.0.png


  • User needs to connect its WIFI enabled device PC/MAC/Smartphone to the device AP(Default SSID: mysimplelink-MACAddr)
  • User Opens the browser and type mysimplelink.net\main.html in browser URL field
  • Browser displays the main page. User selects Demo Tab as shown below
  • Browser displays the demo web page as shown below
http_server_ap.jpg


  • User clicks on ON/OFF Switch button to control RED LED on the Device


Case 2 - STA Mode

  • Install TI SmartConfig Application on your Smartphone.
  • CC3200 Device will try to Connect to AP(If already Configured using SmartConfig Application).
  • For the First time when the AP is not configured, User needs to connect using SmartConfig Application
    1. Connect your Smartphone to the selected AP
    2. Launch TI SmartConfig Application
    3. The name of the network will automatically show up in Network Name field. Enter Password of the network. For open network leave the 'Password' field blank.
    4. Enter a Device Name. This will be used to identify your device.
    5. Press 'Start' button.
      Smartconfig 1.png


    6. Once the smartconfig process is completed, a pop-up windows shows up to indicate that the new device is connected to the network.
  • Once SmartConfig is Successful, CC3200 device will connect to AP and print its IP address on UART Terminal
  • User Opens the browser and type <ipaddr>\led_demo.html e.g. 192.168.1.100\main.html in browser URL field
  • Browser displays the main page. User selects Demo Tab as shown below
  • Browser displays the demo web page


http_server_sta_sc.jpg


  • User clicks on ON/OFF Switch button to control RED LED on the Device


Source Files briefly explained[edit]

  • main.c - Handles HTTP Request, Controls LED and Send HTTP Response with LED Status
  • gpio_if.c - Handles GPIO related operations
  • pinmux.c - Generated by Pinmux utility pin out LED GPIOs.
  • smartconfig.c - Implements Smart Configuration Interface For Access Point Provisioning
  • uart_if.c - Implements the UART terminal.
  • startup_*.c - Implements tools specific interrupt vector table


Limitations/Known Issues[edit]

None.

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 CC3200 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 CC3200 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 CC3200 HTTP Server here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article CC3200 HTTP Server here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article CC3200 HTTP Server here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3200 HTTP Server here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3200 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 CC3200 HTTP Server here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article CC3200 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