Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WILC1000/WILC3000 iperf Server Example for SAM4S XPlained Pro Documentation

Introduction

This example implements an iperf server compatible with iperf client v2.0.5. WILC device is connected to a local Wi-Fi network using Station mode. Connect a laptop to the router using an ethernet cable, then run the iperf command tool to measure the WILC bandwidth.

To test WILC bandwidth for TCP throughput, run the following command from the laptop: iperf -c WILC_IP_ADDRESS -i 5 -r

To test WILC bandwidth for UDP throughput, run the following command from the laptop: iperf -c WILC_IP_ADDRESS -u -i 5 -r -b 10mbps

It uses the following hardware:

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

Main Files

  • main.c : Initialize the FreeRTOS scheduler.
  • iperf.c : Implements the iperf server logic.

Usage

  1. Configure below defines in sta.h to specify AP to connect to.
    * #define MAIN_WLAN_SSID "DEMO_AP"
    * #define MAIN_WLAN_PSK "12345678"
    *
  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.

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.