Staging:CC3220 Getting Started with WLAN AP

Overview
The SimpleLink CC3220 device can act as an AP (access point). Any Wifi Enabled Client in its range can connect to the device and then communicate as per standard networking protocols.

Application details
This application aims to exhibit the CC3220 device as AP. Developers/users can refer the function or re-use them while writing new application. The device comes up as an AP (access point), and then wait for a station to connect to it. If the connection is successful, it will ping to that station. Zero is the expected return value. A different return code would mean that the ping to the station is unsuccessful.

This example can be used either on TI-RTOS or FreeRTOS.

For the application to work with TI-RTOS, tirtos project and tirtos_config project need to be imported into the application workspace. These projects can be found in CC3220-SDK under tirtos folder. Please follow this link for CC3220 TI-RTOS usage CC3220 TI-RTOS

Source Files briefly explained

 * main.c – main file creates the simplelink task which does most of the network related operations, a WlanAPMode task makes calls to the network related APIs of simplelink library.
 * cc_launchpad.c - Initializes peripherals.
 * pinmux.c - Pinmux configurations as required by the application.
 * timer_if.c - Functions to control timer.
 * uart_if.c - Functions to display information on UART.
 * startup_*.c - IDE specific startup functions (not required when working with TI-RTOS).

Code flow
Using the CC3220 as an AP is a simple two step process.


 * 1) Start the SimpleLink by calling  API.
 * 2) Wait until the device gets an ip address.

After the device has come up in AP mode, we will follow two more steps to make sure the device can act as an AP.


 * 1) wait for a station to connect to the device (you have to connect a machine to the device).
 * 2) ping to the machine (station).

Refer to the main.c file of the reference application for more details.

Note 1: In case, if the device is not able to ping to the connected machine, try disabling the antivirus on your machine.

Usage

 * Run this application (getting_started_with_wlan_ap) application from IAR/CCS or Flash to the device.
 * Application with switch to AP mode if it's not in AP mode.
 * After client connected to device, device(AP) will ping to client and print the result over UART.
 * All result can be viewed on Terminal screen.
 * Observe the execution flow to understand the working.

Limitations/Known Issues
None.