Introduction
This example demonstrates the use of the WINC1500 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 require following hardware:
- the SAMXXX Xplained Pro.
- the WINC1500 on EXT1.
Main Files
- main.c : Initialize the WINC1500 and connect to network that support enterprise security with MSCHAPV2 authentication protocol.
Usage
- Assemble the devices and connect to USB debug cable from PC.
- 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
*
- Prepare an AP that supports enterprise security with any of the following security method.
- TTLSv0 with MSCHAPV2
- PEAPv0 with MSCHAPV2
- PEAPv1 with MSCHAPV2
- 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 WINC1500.
* User name
* Password
* Name of wireless network
* Root certificate file
*
- 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
- 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 enterprise security connection with MSCHAPV2 example --
* -- SAMXXX_XPLAINED_PRO --
* -- Compiled: xxx xx 2021 hh:mm:ss --
* (APP)(INFO)Chip ID xxxxxx
* (APP)(INFO)DriverVerInfo: 0xaaaaaaaa
* (APP)(INFO)Firmware ver : xx.x.x xxxxxx xxxxx
* (APP)(INFO)Firmware Build xxx xx xxxx xx:xx:xx
* (APP)(INFO)Firmware
Min driver ver : xx.x.x
* (APP)(INFO)Driver ver: xx.x.x
* (APP)(INFO)Driver built at xxx xx xxxx xx:xx:xx
* Connecting to WINC1500_ENTERPRISE
* Username:DEMO_USER
* 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 WINC1500.
* 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 7.0 Other compilers may or may not work.
Contact Information
For further information, visit Microchip.