Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WINC1500 Mode Change Example for SAML21 XPlained Pro B Documentation

Introduction

This example demonstrates the use of the WINC1500 with the SAMD21 Xplained Pro board to bring up as a station and then switch to an AP.
It uses the following hardware:

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

Main Files

  • main.c : Initialize the WINC1500. For the first time, the device act as station mode. Then switch to AP mode. For the details in each mode, refer to the MODE_STA and MODE_AP example.

Usage

  1. Configure below code in the main.h for AP information.
    * #define MAIN_WLAN_SSID "DEMO_AP"
    * #define MAIN_WLAN_AP_CHANNEL (6)
    *
  2. Build the program and download it into the board.
  3. 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
    *
  4. Start the application.
  5. In the terminal window, the following text should appear:
    * -- WINC1500 mode change example --
    * -- Compiled: xxx xx xxxx xx:xx:xx --
    * AP mode, start
    * AP mode, end
    *

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.