Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WINC1500 Power Profiling Demo with SAMD21 XPlained Pro Documentation

Introduction

This example demonstrates the power profiling of WINC15x0 using SAMD21 as Host MCU. It demonstrates how switch to various low power modes of WINC and measure the power consumed
It uses the following hardware:

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

Main Files

  • main.c : Configure and switch the WINC to various low power modes.

Usage

  1. Configure below code in the main.h for AP to be connected.
    * #define MAIN_WLAN_SSID "DEMO_AP"
    * #define MAIN_WLAN_AUTH M2M_WIFI_SEC_WPA_PSK
    * #define MAIN_WLAN_PSK "12345678"
    *
  2. Configure below code in the main.h for for configuring server information.
    * #define TEST_SSL_TCP_IP "192.168.1.122"
    * #define TEST_SSL_SERVER_PORT 443
    * #define TEST_TCP_SERVER_PORT 6666
    *
  3. Build the program and download it into the board.
  4. 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
    *
  5. Start the application.
  6. In the terminal window, the following text should appear:
    * -- WINC1500 Power Profiling App --
    * -- Compiled: xxx xx xxxx xx:xx:xx --
    * *************** WINC1500 Power Modes Menu ***************
    * Select a Test for WINC1500 Power profile measurement
    * 1.Power Down mode
    * 2.WINC1500 Deep Sleep Modes
    * 21. Power Save Deep Automatic(M2M_PS_DEEP_AUTOMATIC)
    * 22. Doze Mode
    * 3. On_Transmit_Power Modes Datasheet Table 8.1
    * 4. On_Receive_Power Mode Datasheet Table 8.1
    * 5.WINC1500 Connection Profiles
    * 6.Sample Test App STA mode
    * 7.Sample Test App AP mode
    * *********************************************************
    *
Warning
* Refer to the power profiling appnote and make sure the setup is as per
* the recommendation.
*

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.