Microchip Technology ATWINC15x0 Application Notes
Microchip Technology ATWINC15x0 Application Notes

Microchip Technology ATWINC15x0 Application Notes

Throughput measurement using iperf
Hide thumbs Also See for ATWINC15x0:

Advertisement

Quick Links

ATWINC15x0 Throughput Measurement using iPerf

Introduction

This application note demonstrates execution of the demo iPerf application available for the SAM4S
Xplained Pro evaluation kit and ATWINC15x0. The iPerf application is a tool which is used for measuring
Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) bandwidth performance. This
iPerf tool is built on a client/server model and can be used to measure maximum UDP and TCP
throughput between the client and the server station.

Prerequisites

The following are the hardware and software prerequisites to test the TCP and UDP throughput using the
iPerf application for the ATWINC15x0.
Hardware Prerequisites
ATSAM4S XPRO Board
ATWINC15x0
Access Point (AP)
PC/Laptop
Software Prerequisites
iPerf application 2.0.5 for iPerf client running on PC/Laptop
Serial console software (Tera Term)
ATWINC1500 iPerf Example
©
2018 Microchip Technology Inc.
ATWINC15x0
Application Note
DS00002879A-page 1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ATWINC15x0 and is the answer not in the manual?

Questions and answers

Summary of Contents for Microchip Technology ATWINC15x0

  • Page 1: Introduction

    This application note demonstrates execution of the demo iPerf application available for the SAM4S Xplained Pro evaluation kit and ATWINC15x0. The iPerf application is a tool which is used for measuring Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) bandwidth performance. This iPerf tool is built on a client/server model and can be used to measure maximum UDP and TCP throughput between the client and the server station.
  • Page 2: Table Of Contents

    1. ATWINC15x0 iPerf Setup ..................3 1.1. SAM4S Xplained Pro........................3 1.2. Hardware Setup........................... 4 2. Creating ATWINC15x0 iPerf Project in Atmel Studio..........5 3. Configuring and Loading the iPerf Application............7 4. Installing iPerf Application ..................9 4.1. iPerf Commands...........................9 5. Executing iPerf Application ..................10 6.
  • Page 3: Atwinc15X0 Iperf Setup

    ATWINC15x0 ATWINC15x0 iPerf Setup ATWINC15x0 iPerf Setup The user can run the iPerf application using the command prompt on a computer and the customized iPerf implementation on the wireless board to measure the throughput performance. The iPerf application contains both client and server functionality. Typically, one acts as server and the other as client, where the iPerf application in the client side launches the test session.
  • Page 4: Hardware Setup

    Hardware Setup Perform the following steps to create the iPerf setup. Plug the ATWINC15x0 module to the EXT1 of the SAM4S Xplained Pro evaluation kit. Power-up the SAM4S Xplained Pro evaluation kit by connecting the USB cable to the DEBUG USB port.
  • Page 5: Creating Atwinc15X0 Iperf Project In Atmel Studio

    Creating ATWINC15x0 iPerf Project in Atmel Studio The demo iPerf application for the SAM4S Xplained Pro with the ATWINC15x0 is available in ASF Version 3.42 and all upcoming versions. Before creating a new iPerf project, verify the version of both the ATWINC1500 driver and firmware being used.
  • Page 6 ATWINC15x0 Creating ATWINC15x0 iPerf Project in Atmel Studio Figure 2-2. iPerf Application Directory Structure Application Note DS00002879A-page 6 © 2018 Microchip Technology Inc.
  • Page 7: Configuring And Loading The Iperf Application

    Set Data Bits as 8 bit – Set Parity as none – Set Stop Bits as 1 bit – Set Flow control as none Run the application. The serial port terminal displays the following log output. Application Note DS00002879A-page 7 © 2018 Microchip Technology Inc.
  • Page 8 ATWINC15x0 Configuring and Loading the iPerf Applicat... Figure 3-1. iPerf Serial Console Initial Log Output Note:  iPerf initializes as UDP/TCP iPerf server. The IP address assigned to the ATWINC15x0 is available in the serial terminal. Application Note DS00002879A-page 8 © 2018 Microchip Technology Inc.
  • Page 9: Installing Iperf Application

    Bandwidth to send in bits/sec. -u indicates the default value as 1 Mbit/sec. Runs in the client mode, connecting to host. Individual bidirectional test. Time in seconds to transmit. The default value is 10 secs. Application Note DS00002879A-page 9 © 2018 Microchip Technology Inc.
  • Page 10: Executing Iperf Application

    To run the UDP test, add two additional arguments as shown in the following: iperf -c 192.168.1.100 -t 20 -i 1 -u -b 1G • u indicates single_udp run in single threaded UDP mode • b indicates bandwidth to send in bits/sec Application Note DS00002879A-page 10 © 2018 Microchip Technology Inc.
  • Page 11 ATWINC15x0 Executing iPerf Application Figure 5-2. Log Output Application Note DS00002879A-page 11 © 2018 Microchip Technology Inc.
  • Page 12: Test Setup

    • Setup 1 – PC is connected via Ethernet to AP and ATWINC15x0 is connected via Wi-Fi to AP. Figure 6-1. Setup 1 For test result, see 7.
  • Page 13: Throughput Test Result Dependency Parameters

    The ATWINC15x0 iPerf throughput performance is measured in the following conditions. Table 6-1. Conditions to Measure ATWINC15x0 iPerf Throughput Performance Condition...
  • Page 14 Modify MAIN_WLAN_802_1X_USR_NAME, MAIN_WLAN_802_1X_PWD to the name and password, respectively. Modify MAIN_WLAN_DEVICE_NAME to wireless network name. Call the m2m_wifi_connect API as follows. /* Enterprise Network */ m2m_wifi_connect((char *)IPERF_WIFI_M2M_WLAN_SSID, sizeof(IPERF_WIFI_M2M_WLAN_SSID), M2M_WIFI_SEC_802_1X,(char *)&gstrCred1x, M2M_WIFI_CH_ALL); Perform similar changes in the AP settings. Application Note DS00002879A-page 14 © 2018 Microchip Technology Inc.
  • Page 15: Test Results

    ATWINC15x0 Test Results Test Results A reference of the iperf throughput performance based on the ATWINC15x0 for the different test setups are as follows. • Setup 1 – One side on Ethernet and ATWINC15x0 on Wi-Fi (Inside shielded room) •...
  • Page 16 Table 7-3. iPerf Throughput Performance for TCP and UDP - Setup 3 Protocol Environment Frequency DMA Channel Mode Security (MHz) Uplink Downlink Uplink Downlink (Mbits/sec) (Mbits/sec) (Mbits/sec) (Mbits/sec) Shielded Room 48 Open 9.84 9.81 12.5 18.8 Application Note DS00002879A-page 16 © 2018 Microchip Technology Inc.
  • Page 17: Appendix - Updating Firmware

    Appendix - Updating Firmware Appendix - Updating Firmware The ATWINC15x0 firmware must be updated to 19.6.1 version or latest. When a version mismatch is detected at start-up, the Wi-Fi driver initialization fails and the m2m_wifi_init() function returns the firmware version mismatch error code.
  • Page 18: Document Revision History

    ATWINC15x0 Document Revision History Document Revision History Revision Date Section Description 12/2018 Document Initial revision Application Note DS00002879A-page 18 © 2018 Microchip Technology Inc.
  • Page 19: The Microchip Web Site

    Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. • Microchip is willing to work with the customer who is concerned about the integrity of their code. Application Note DS00002879A-page 19 © 2018 Microchip Technology Inc.
  • Page 20: Legal Notice

    SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries. GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries.
  • Page 21: Quality Management System Certified By Dnv

    ATWINC15x0 © 2018, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. ISBN: 978-1-5224-3966-0 Quality Management System Certified by DNV ISO/TS 16949 Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California ®...
  • Page 22: Worldwide Sales And Service

    New York, NY Sweden - Stockholm Tel: 631-435-6000 Tel: 46-8-5090-4654 San Jose, CA UK - Wokingham Tel: 408-735-9110 Tel: 44-118-921-5800 Tel: 408-436-4270 Fax: 44-118-921-5820 Canada - Toronto Tel: 905-695-1980 Fax: 905-695-2078 Application Note DS00002879A-page 22 © 2018 Microchip Technology Inc.

Table of Contents