Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WINC3400 enterprise security mschapv2 example - SAMD21 XPlained Pro Documentation

Introduction

This example demonstrates the use of the WINC3400 with the SAMxx Xplained Pro board to connect to a secured 802.1x enterprise network that supports MSCHAPV2 as phase 2 authentication.
The following Enterprise security methods are supported by this example.

* - TTLSv0 with MSCHAPV2
* - PEAPv0 with MSCHAPV2
* - PEAPv1 with MSCHAPV2
*

This example requires the following hardware:

  • the SAMXXX Xplained Pro.
  • the WINC3400 on EXT1.

Main Files

  • main.c : Initialize the WINC3400 and connect to network that supports enterprise security with MSCHAPV2 authentication protocol.

Usage

  1. Assemble the devices and connect to USB debug cable from PC.
  2. On the computer, open and configure a terminal application as follows.
    * Baud Rate : 115200
    * Data : 8bit
    * Parity bit : none
    * Stop bit : 1bit
    * Flow control : none
    *
  3. Prepare an AP that supports enterprise security with any of the following security methods.
  • TTLSv0 with MSCHAPV2
  • PEAPv0 with MSCHAPV2
  • PEAPv1 with MSCHAPV2
  1. You need to know the following parameters before configuring the RADIUS server settings in the AP. Ask your network administrator to get this information and configure it in WINC3400.
    * User name
    * Password
    * Name of wireless network
    * Root certificate file
    *
  2. Modify MAIN_WLAN_802_1X_USR_NAME, MAIN_WLAN_802_1X_PWD to the name and the password, respectively. Modify MAIN_WLAN_SSID to wireless network name
    * #define MAIN_WLAN_SSID "WINC3400_ENTERPRISE"
    * #define MAIN_WLAN_802_1X_USR_NAME "DEMO_USER"
    * #define MAIN_WLAN_802_1X_PWD "DemoPassword"
    *
  3. Build and run the application. If the device connected successfully, IP address which is assigned by DHCP will be displayed on the terminal program.
    * -- WINC3400 enterprise security connection with MSCHAPV2 example --
    * -- SAMXXX_XPLAINED_PRO --
    * -- Compiled: xxx xx xxxx xx:xx:xx --
    * (APP)(INFO)Chip ID 3400d2
    * (APP)(INFO)Curr driver ver: x.x.x
    * (APP)(INFO)Curr driver HIF Level: (2) x.x
    * (APP)(INFO)Fw HIF: 8104
    * (APP)(INFO)Firmware HIF (2) : x.x
    * (APP)(INFO)Firmware ver : x.x.x
    * (APP)(INFO)Firmware Build <Month> DD YYYY Time xx:xx:xx
    * (APP)(INFO)Ota HIF: 0000
    * (APP)(INFO)No valid Ota image
    * Connecting to WINC3400_ENTERPRISE
    * Username:user
    * Password:password
    * Wi-Fi connected
    * Wi-Fi IP is 192.168.100.105
    * Connection successfully completed.
    *
Warning
* For using the security enterprise network, the root certificate must be written to WINC3400.
* Download the root certificate using the root_certificate_downloader. (Refer to WINC3400 Software User Guide.)
*

Compilation Information

This software was written for the GNU GCC compiler using Atmel Studio 7.0 Other compilers are not guaranteed to work.

Contact Information

For further information, visit Microchip.