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 Getting Started with WLAN AP
Contents
Overview and application details[edit]
This sample application demonstrates how to configure CC3100 in Access-Point mode. Any WLAN station in its range can connect/communicate to/with it as per the standard networking protocols. On a successful connection, the device pings the connected station.
By default, this application communicates w/ CC3100 over SPI. The SDK has UART-Drivers as well for MSP430F5529LP and Tiva-C platforms. For using the UART interface to communicate w/ CC3100, macro SL_IF_TYPE_UART has to be defined in the application-project's properties.
Note: 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\
Source Files briefly explained[edit]
- main - Initializes the device, configures it in AP mode and verifies the connection status
Usage[edit]
- Connect the board to a Windows-PC and configure the terminal-program for seeing the logs - CC3100 & CC3200 Terminal Setting has detailed instructions for configuring the terminal-program
- Open sl_common.h and modify values of SSID_AP_MODE, PASSWORD_AP_MODE and SEC_TYPE_AP_MODE. These values will define the device's credentials in AP mode
- Build and run the application using IAR/CCS
- The device will be configured in AP mode and shall wait for clients to connect w/ it.
- It also pings the connected clients to check the connection status\
- See the self explanatory logs on the terminal-program's console.
- Connect a client to the device and wait for few seconds for the test to complete
- On success, below message will be displayed on the terminal
Note: : 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'.
Building for Tiva-C LaunchPad[edit]
To build the application for Tiva-C LaunchPad, follow below steps:
- IAR
- Open the project's Options
- Replace the tivaware path under C/C++ Compiler->Preprocessor section
- Replace the tivaware library path under Linker->Library section
- Build the project
- Code Composer Studio
- Open the project property
- Update TIVAWARE_ROOT variable available under Resource->Linked Resources with tivaware root directory
- Build the project
Note: The solution provided in SDK for tiva-c-connected-launchpad is using the Boosterpack 2 interface.
Limitations/Known Issues[edit]
None
Links[edit]
{{#invoke: Navbox | navbox }} {{#invoke: Navbox | navbox }}