Introduction
This example demonstrates the use of the WINC1500 with the SAMD21 Xplained Pro board to connect to AP with WPS Security.
It uses the following hardware:
- the SAMD21 Xplained Pro.
- the WINC1500 on EXT1.
Main Files
- main.c : Initialize the WINC1500 and connect AP using WPS.
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 Wi-Fi Protected Setup(WPS)
- To test WPS button method, Use case 1 in main function.
- Configure below code in the main.h for WPS push button feature.
- Press WPS button at the AP. ( For more information, please refer to AP product documentation )
- Run the application. The WINC1500 will be connected to the AP automatically without security information.
* -- WINC1500 security connection with Wi-Fi Protected Setup(WPS) example --
* -- Compiled: xxx xx xxxx xx:xx:xx --
* SW0 button pressed
* Device is connecting using WPS Push Button option
* Wi-Fi request WPS
* SSID : xxxxxx, authtyp : x pw : xxxxxxxx
* Wi-Fi connected
* Wi-Fi IP is xxx.xxx.xxx.xxx
*
- To test WPS PIN method, Use case 2 in main function.
- Configure below code in the main.h for WPS PIN number and WPS push button feature.
* #define WPS_PIN_NUMBER "12345670"
*
- Enter WPS PIN number in the AP setup menu and start the AP. ( For more information, please refer to AP product documentation )
- Run the application. The WINC1500 will be connected to the AP automatically without security information.
* -- WINC1500 security connection with Wi-Fi Protected Setup(WPS) example --
* -- Compiled: xxx xx xxxx xx:xx:xx --
* Wi-Fi request WPS
* SSID : xxxxxx, authtyp : x pw : xxxxxxxx
* Wi-Fi connected
* Wi-Fi IP is xxx.xxx.xxx.xxx
*
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.