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 Info Center Get Weather Application

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

Overview[edit]

Get Weather application connects to "openweathermap.org" server, requests for weather details of the specified city, process data and displays it on the Hyperterminal.

Application details[edit]

Application connects to a open AP with SSID "cc3200demo". In case the connection to this default AP is unsuccessful, the user is prompted to enter the AP details on the hyperterminal.

The AP details have to be entered in the format as specified below:

<ap_ssid>:<security_type>:<password>:<wep_key_id>:

  • ap_ssid - ssid of the AP to be connected
  • security_type - values 1(for Open) or 2(for WEP) or 3(for WPA)
  • password - network password in case of 2(for WEP) or 3(for WPA)
  • wep_key_id - key ID in case of 2(for WEP)

The RED LED continuously blinks as long as a connection with AP is not established. Once established, the RED LED stays continuously ON.
The user is prompted to enter the city name of interest to obtain the weather information.

The weather information is then requested from "openweathermap.org" server for the specified city. This is done by opening a TCP socket with
server and sending a HTTP Get request. The response is parsed and the weather information displayed.


Source Files briefly explained[edit]

  1. network_if - Common functions to handle connection to AP and FreeRTOS hook functions.
  2. gpio_if - Basic GPIO interface APIs. Used to control the RED LED.
  3. main - Initializes the device, connects to a AP, performs a DNS lookup, open a TCP socket, send a HTTP Get request and displays weather information
  4. pinmux - Assigns a personality to the pins at the device boundary
  5. uart_if - To display status information over the UART
  6. udma_if - Wrapper functions for uDMA module driver
  7. timer_if - Wrapper functions for timer module driver
  8. startup_* - Tool specific vector table implementation

Usage[edit]

  1. Setup a serial communication application (HyperTerminal/TeraTerm). For detail info visit CC31xx & CC32xx Terminal Setting
    On the host PC, open a hyperterminal, with the following settings
    • Port: Enumerated COM port
    • Baud rate: 115200
    • Data: 8 bit
    • Parity: None
    • Stop: 1 bit
    • Flow control: None
  2. Run the reference application (Flashing the bin/IAR/CCS).
    • Open the Project as mentioned in the 'docs\CC3200-Getting Started Guide.pdf'.
    • Build and download the application to the board
  3. Application requires the AP to have the internet connectivity.
  4. On the Hyperterminal, in case the connection to this default AP is unsuccessful, the user is prompted to enter the AP details.
  5. The RED LED continuously blinks as long as a connection with AP is not established. Once established, the RED LED stays continuously ON.
  6. The user is prompted to enter the city name.
  7. The weather information of the specified city is displayed if obtained.
  8. When prompted, the user can enter quit to exit the application.
Terminal snapshot when application runs on device:
CC3200_get_weather_terminal_runScreen.png

Limitations/Known Issues[edit]

WEP connectivity is not tested with this application.

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 Info Center Get Weather Application 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 Info Center Get Weather Application here.

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