background image

1. 

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.

The iPerf application running in the ATSAM4S XPRO board operates in the Server mode and waits to
accept the client’s connection before it initiates the bandwidth test.

1.1 

SAM4S Xplained Pro

The SAM4S Xplained Pro evaluation kit is a hardware platform to evaluate the ATSAM4SD32C
microcontroller, supported by the Atmel Studio integrated development platform. The SAM4S Xplained
Pro evaluation kit is ideal for evaluation and prototyping with the SAM4S Cortex

®

-M4 processor-based

microcontroller. The Xplained Pro MCU series evaluation kits include an on-board Embedded Debugger,
and no external tools are necessary to program or debug the SAM4SD32C. The Xplained Pro extension
series evaluation kit offers additional peripherals to extend the features of the board and ease the
development of custom designs.

 ATWINC15x0

ATWINC15x0 iPerf Setup

©

 2018 Microchip Technology Inc.

 Application Note

DS00002879A-page 3

Summary of Contents for ATWINC15x0 Series

Page 1: ...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 appl...

Page 2: ...ting iPerf Application 10 6 Test Setup 12 6 1 Throughput Test Result Dependency Parameters 13 7 Test Results 15 8 Appendix Updating Firmware 17 9 Document Revision History 18 The Microchip Web Site 19 Customer Change Notification Service 19 Customer Support 19 Microchip Devices Code Protection Feature 19 Legal Notice 20 Trademarks 20 Quality Management System Certified by DNV 21 Worldwide Sales an...

Page 3: ... bandwidth test 1 1 SAM4S Xplained Pro The SAM4S Xplained Pro evaluation kit is a hardware platform to evaluate the ATSAM4SD32C microcontroller supported by the Atmel Studio integrated development platform The SAM4S Xplained Pro evaluation kit is ideal for evaluation and prototyping with the SAM4S Cortex M4 processor based microcontroller The Xplained Pro MCU series evaluation kits include an on b...

Page 4: ...ate the iPerf setup 1 Plug the ATWINC15x0 module to the EXT1 of the SAM4S Xplained Pro evaluation kit 2 Power up the SAM4S Xplained Pro evaluation kit by connecting the USB cable to the DEBUG USB port ATWINC15x0 ATWINC15x0 iPerf Setup 2018 Microchip Technology Inc Application Note DS00002879A page 4 ...

Page 5: ... demonstrating ATWINC15x0 projects using Atmel Studio ASF example applications Note The iPerf application for SAM4S SAMG55 SAMG53 and SAMD21 is available in ASF In this Application Note iPerf application for the SAM4S is used as a reference 1 Open Atmel Studio 7 2 Navigate to File New Example Projects 3 Search for iperf sample application for other MCU s 4 Select the WINC1500 Iperf Example SAM4S X...

Page 6: ...Figure 2 2 iPerf Application Directory Structure ATWINC15x0 Creating ATWINC15x0 iPerf Project in Atmel Studio 2018 Microchip Technology Inc Application Note DS00002879A page 6 ...

Page 7: ... s SSID must be filled with IPERF_WIFI_M2M_WLAN_SSID macro as given AP configuration parameters define IPERF_WIFI_M2M_WLAN_SSID DEMO_APP Destination SSID define IPERF_WIFI_M2M_WLAN_AUTH M2M_WIFI_SEC_WPA_PSK Security manner define IPERF_WIFI_M2M_WLAN_PSK 12345678 Password for Destination SSID 3 Save the project 4 Compile and download the image into the SAM4S board 5 Open the serial port terminal ap...

Page 8: ...put Note iPerf initializes as UDP TCP iPerf server The IP address assigned to the ATWINC15x0 is available in the serial terminal ATWINC15x0 Configuring and Loading the iPerf Applicat 2018 Microchip Technology Inc Application Note DS00002879A page 8 ...

Page 9: ...istening at port 5001 at specified destination The commonly used iPerf commands are listed in the following table For additional commands see https iperf fr iperf doc php Table 4 1 iPerf Commands Command Description f Format to report Kbits Mbits KBytes and MBytes i Interval between periodic bandwidth reports in seconds s Runs in the Server mode u Runs in the single threaded UDP mode and specific ...

Page 10: ...ple the server with IP address 192 168 1 100 can be run with the TCP test using the following command iperf c 192 168 1 100 t 20 i 1 r t is time in seconds to transmit default 10 secs i is the interval between periodic bandwidth reports in seconds r on the client s command line instructs iPerf to measure bi directional throughput sequentially that is upstream and downstream Figure 5 1 Log Output T...

Page 11: ...Figure 5 2 Log Output ATWINC15x0 Executing iPerf Application 2018 Microchip Technology Inc Application Note DS00002879A page 11 ...

Page 12: ...aim of this test setup is to show an alternate method to measure the throughput To achieve better results follow the setup 1 Setup 3 AP mode In the AP mode the ATWINC15x0 acts as a SoftAP and provides the provision for other device to connect to it and assigns IP address to the connected device Figure 6 3 Setup 3 For test result see 7 Test Results The iPerf throughput varies as per the configurati...

Page 13: ...om the CPU Therefore DMA enables high data transfer rates with minimum CPU intervention and frees up CPU time By default Direct Memory Access DMA is enabled for the demo iPerf application The DMA is implemented in the application using CONF_WINC_SPI_DMA_ENABLE macro This macro is implemented in the conf_winc file in the configuration folder To disable the DMA comment out the CONF_WINC_SPI_DMA_ENAB...

Page 14: ...EMO_AP Destination SSID define IPERF_WIFI_M2M_WLAN_AUTH M2M_WIFI_SEC_WPA_PSK Security manner define IPERF_WIFI_M2M_WLAN_PSK 12345678 Password for Destination SSID 2 Call the m2m_wifi_connect API as follows Connect to router m2m_wifi_connect char IPERF_WIFI_M2M_WLAN_SSID sizeof IPERF_WIFI_M2M_WLAN_SSID IPERF_WIFI_M2M_WLAN_AUTH char IPERF_WIFI_M2M_WLAN_PSK M2M_WIFI_CH_ALL 3 Perform similar changes i...

Page 15: ...n Open 1 37 6 26 5 95 6 26 48 Yes 6 n WPA2 AES 9 9 11 1 12 2 19 3 AES TKIP 10 11 4 12 7 19 2 48 Yes 6 n WPA AES 9 85 11 5 12 3 19 2 TKIP 9 47 10 6 12 9 19 7 48 Yes 6 n Enterprise 7 18 12 4 11 7 19 2 48 Yes 6 g Open 9 54 11 7 13 3 19 6 48 Yes 6 g WPA2 AES 10 11 3 12 3 19 3 AES TKIP 9 5 11 3 12 8 19 2 48 Yes 6 b Open 4 42 5 01 6 0 6 5 48 Yes 6 b WPA2 AES 10 11 4 12 8 19 2 AES TKIP 9 74 11 2 12 8 19 ...

Page 16: ...t SPI Frequency MHz DMA Channel Mode Security Protocol TCP UDP Uplink Mbits sec Downlink Mbits sec Uplink Mbits sec Downlink Mbits sec Shielded Room 48 Yes 6 n Open 9 84 9 81 12 5 18 8 ATWINC15x0 Test Results 2018 Microchip Technology Inc Application Note DS00002879A page 16 ...

Page 17: ...eturns the firmware version mismatch error code Figure 8 1 Firmware Mismatch Error To update the firmware in the ATWINC15x0 module use the firmware upgrade project available in ASF For more details on the firmware upgrade procedure refer the Integrated Serial Flash and Memory Download Procedure Application Note ATWINC15x0 Appendix Updating Firmware 2018 Microchip Technology Inc Application Note DS...

Page 18: ...9 Document Revision History Revision Date Section Description A 12 2018 Document Initial revision ATWINC15x0 Document Revision History 2018 Microchip Technology Inc Application Note DS00002879A page 18 ...

Page 19: ...d follow the registration instructions Customer Support Users of Microchip products can receive assistance through several channels Distributor or Representative Local Sales Office Field Application Engineer FAE Technical Support Customers should contact their distributor representative or Field Application Engineer FAE for support Local sales offices are also available to help customers A listing...

Page 20: ...ptoMemory CryptoRF dsPIC FlashFlex flexPWR Heldo JukeBlox KeeLoq Kleer LANCheck LINK MD maXStylus maXTouch MediaLB megaAVR MOST MOST logo MPLAB OptoLyzer PIC picoPower PICSTART PIC32 logo Prochip Designer QTouch SAM BA SpyNIC SST SST Logo SuperFlash tinyAVR UNI O and XMEGA are registered trademarks of Microchip Technology Incorporated in the U S A and other countries ClockWorks The Embedded Contro...

Page 21: ...ties in Chandler and Tempe Arizona Gresham Oregon and design centers in California and India The Company s quality system processes and procedures are for its PIC MCUs and dsPIC DSCs KEELOQ code hopping devices Serial EEPROMs microperipherals nonvolatile memory and analog products In addition Microchip s quality system for the design and manufacture of development systems is ISO 9001 2000 certifie...

Page 22: ... China Xiamen Tel 86 592 2388138 China Zhuhai Tel 86 756 3210040 India Bangalore Tel 91 80 3090 4444 India New Delhi Tel 91 11 4160 8631 India Pune Tel 91 20 4121 0141 Japan Osaka Tel 81 6 6152 7160 Japan Tokyo Tel 81 3 6880 3770 Korea Daegu Tel 82 53 744 4301 Korea Seoul Tel 82 2 554 7200 Malaysia Kuala Lumpur Tel 60 3 7651 7906 Malaysia Penang Tel 60 4 227 8870 Philippines Manila Tel 63 2 634 90...

Reviews: