Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WINC1500 Connecting a WPA/WPA2 Secured AP Example for SAMW25 XPlained Pro Documentation

Introduction

This example demonstrates the use of the WINC1500 with the SAMD21 Xplained Pro board to connect to a secured WPA/WPA2 (enterprise) network.
It uses the following hardware:

  • the SAMD21 Xplained Pro.
  • the WINC1500 on EXT1.

Main Files

  • main.c : Initialize the WINC1500 and connect AP using security WPA/WPA2 enterprise.

Usage

  1. Assemble the devices and connect to USB debug cable from PC.
  2. On the computer, open and configure a terminal application as the follows.
    * Baud Rate : 115200
    * Data : 8bit
    * Parity bit : none
    * Stop bit : 1bit
    * Flow control : none
    *
  3. Prepare an AP that supports WPA/WPA2 enterprise security.
  4. You need to know following things before configuring RADIUS server settings in the AP. Ask your network administrator to get there information and configure it in the AP.
    * User name
    * Password
    * Name of wireless network
    * Root certificate file
    *
  5. Modify MAIN_WLAN_802_1X_USR_NAME, MAIN_WLAN_802_1X_PWD to the name and the password, respectively. Modify MAIN_WLAN_DEVICE_NAME to wireless network name
    * #define MAIN_WLAN_DEVICE_NAME "DEMO_AP"
    * #define MAIN_WLAN_802_1X_USR_NAME "atmeluser"
    * #define MAIN_WLAN_802_1X_PWD "12345678"
    *
  6. Build and run the application. If the device connected successfully, IP address which is assigned by DHCP will be displayed on the terminal program.
    * -- WINC1500 security connection with WPA/WPA2 enterprise example --
    * -- Compiled: xxx xx xxxx xx:xx:xx --
    * Wi-Fi connected
    * Wi-Fi IP is xxx.xxx.xxx.xxx
    * Connection successfully completed.
    *
Warning
* For using the security enterprise network, the root certificate must be installed.
* Download the root certificate using the root_certificate_downloader. (Refer to WINC1500 Software User Guide.)
*

Compilation Information

This software was written for the GNU GCC compiler using Atmel Studio 6.2 Other compilers may or may not work.

Contact Information

For further information, visit Microchip.