Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WINC1500 Iperf Example for SAMD21 XPlained Pro Documentation

Introduction

This example demonstrates the use of the WINC1500 with the SAM Xplained Pro board to run Iperf server.
It uses the following hardware:

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

Main Files

  • main.c : Initialize the WINC1500 and run Iperf server.

Usage

  1. Configure below code in the main.h for AP information to be connected.
    * #define MAIN_WLAN_SSID "DEMO_AP"
    * #define MAIN_WLAN_AUTH M2M_WIFI_SEC_WPA_PSK
    * #define MAIN_WLAN_PSK "12345678"
    * #define MAIN_WIFI_M2M_PRODUCT_NAME "NMCTemp"
    * #define MAIN_WIFI_M2M_SERVER_IP 0xFFFFFFFF // "255.255.255.255"
    * #define MAIN_WIFI_M2M_SERVER_PORT (6666)
    * #define MAIN_WIFI_M2M_REPORT_INTERVAL (1000)
    *
  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 IPERF server example --
    * -- Compiled: xxx xx xxxx xx:xx:xx --
    *
    *
    * (APP)(INFO)Chip ID 1503a0
    * (APP)(INFO)DriverVerInfo: xxxxxxxxx
    * (APP)(INFO)Firmware ver : xx.x.x Svnrev xxxxx
    * (APP)(INFO)Firmware Build xxx xx xxxx Time xx:xx:xx
    * (APP)(INFO)Firmware Min driver ver : xx.xx.x
    * (APP)(INFO)Driver ver: xx.x.x
    * (APP)(INFO)Driver built at xxx xx xxxx xx:xx:xx
    * iperf_wifi_cb: M2M_WIFI_REQ_DHCP_CONF: IP is xxx.xxx.xxx.xxx
    * (APP)(INFO)Socket 0 session ID = 1
    * (APP)(INFO)Socket 7 session ID = 2
    * (APP)(INFO)Socket 8 session ID = 3
    * ------------------------------------------------------------
    * Server listening on TCP/UDP port 5001
    * TCP window size: ??? KByte
    * ------------------------------------------------------------
    *
  6. Start the application on client using command.
  7. iperf -c <Server_IP_Address> -t <time_peroid> -i <time_interval> -r

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

Support and FAQ: visit Microchip Support