5.2 Example 2 - Connecting ATWINC to MSCHAPv2 Secured AP

Perform the following steps to connect the ATWINC using the MSCHAPv2 enterprise security:

  1. In the Atmel Studio, open the WINC1500_SECURITY_ENTERPRISE_NETWORK_MSCHAPV2_ EXAMPLE project.
  2. Configure and run the FreeRADIUS or hostapd server (see Configuring a Hostapd Server and Configuring a FreeRADIUS Server).
  3. For server authentication, the root certificate must be downloaded to the ATWINC. For more details, see Generating Certificates using openssl.
  4. Flash the root certificate to the ATWINC.
  5. Provide the macros MAIN_WLAN_802_1X_USR_NAME (EAP username) and MAIN_WLAN_802_1X_PWD (EAP password).
    • For the hostapd server, see Appendix C - Configuring EAP User File for the EAP username and password.
    • For the FreeRADIUS server, the username and password are available in the file mods-config/files/authorize.
  6. Configure the SSID by editing the macro MAIN_WLAN_SSID in the project.
  7. Load the example project.