Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WINC1500 Simple Growl Example for SAM4S XPlained Pro Documentation

Introduction

This example demonstrates the use of the WINC1500 with the SAM Xplained Pro. It basically transmits a notification from the WINC1500 Wi-Fi module (based on a certain trigger) to a public remote server which in turn sends back a notification to a specific phone application.
The initiated notification from the WINC1500 device is directed to a certain subscriber on the server.
The supported applications are PROWL (for iPhone notifications) and NMA (for ANDROID notifications).
It uses the following hardware:

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

Main Files

  • main.c : Initialize growl and send notification message.

Usage

  1. Build the program and download it into the board.
  2. 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
    *
  3. Start the application.
  4. In the terminal window, the following text should appear:
    * -- WINC1500 simple growl example --
    * -- SAMXXX_XPLAINED_PRO --
    * -- Compiled: xxx xx xxxx xx:xx:xx --
    * Provision Mode started.
    * Connect to [atmelconfig.com] via AP[WINC1500_xx:xx] and fill up the page
    * Wi-Fi connected
    * Wi-Fi IP is xxx.xxx.xxx.xxx
    * Wi-Fi connected
    * Wi-Fi IP is xxx.xxx.xxx.xxx
    * send Growl message
    * Growl CB : 20
    *

This application supports sending GROWL notifications to the following servers.

  1. PROWL for iOS push notifications (https://www.prowlapp.com/).
  2. NMA for Android push notifications (http://www.notifymyandroid.com/).

In order to enable the GROWL application (for sending notifications), apply the following instructions.

  1. Create a NMA account at http://www.notifymyandroid.com/ and create an API key. Copy the obtained key string in the file main.h in the MACRO NMA_API_KEY as the following.
  2. Create a PROWL account at https://www.prowlapp.com/ and create an API key. Copy the obtained API key string in the file main.h in the MACRO PROWL_API_KEY as the following.
    #define NMA_API_KEY "f8bd3e7c9c5c10183751ab010e57d8f73494b32da73292f6"
    #define PROWL_API_KEY "117911f8a4f2935b2d84abc934be9ff77d883678"
Warning
* For using the growl, the root certificate must be installed.
* 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 6.2 Other compilers may or may not work.

Contact Information

For further information, visit Microchip.