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 WLAN Scan Policies Application

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

Overview[edit]

CC3200 device allows you to set scan policy and enables the scan. Using sl_WlanPolicySet API we can set scan policy to SL_POLICY_CONNECTION,SL_POLICY_SCAN or SL_POLICY_PM. Once you set the scan cycle and enables the same, we can retrieve the results of Scan using sl_WlanGetNetworkList API. It gives you information related to RSSI (Received Signal Strength Indication),Security Information, BSSID and SSID information.

Application details[edit]

The example intends to demonstrate how scan policy is set in the device. The procedure includes the following steps:


- Make sure the connection policy is not set (so no scan is run in the background)
- Enable scan, set scan cycle to 10 seconds and set scan policy. This starts the scan
- Get scan results - all 20 entries in one transaction
- Get scan results - 4 transactions of 5 entries
- Disable scan

Source Files briefly explained[edit]

  • main.c - The main file that explains steps to set scan policy, enables scan and gets the scan result

Supporting Files

  • pinmux.c - Generated by the PinMUX utility
  • startup_ccs.c - CCS related functions
  • startup_ewarm.c - IAR related functions
  • gpio_if.c - GPIO Interface APIs

Usage[edit]

  1. Run the reference application .
    • Open the Project in IAR or CCS. Build and download the application to the board
  2. The application scans and gets the Network List.
    • Below screenshot shows you the number of Networks found and Network List.
    • lRetVal indicates the number of Networks found and netEntries contains the Network List.
CC32xx Scan Policy IAR expressionList 1.0.0.png

      3.  On the Board Led Orange will be on If some error occurs. On successful execution Led Green Will be on. 

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