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
- Configure below code in the main.h for AP information to be connected.
* #define MAIN_WLAN_SSID "DEMO_AP"
* #define MAIN_WLAN_PSK "12345678"
* #define MAIN_WIFI_M2M_PRODUCT_NAME "NMCTemp"
* #define MAIN_WIFI_M2M_SERVER_IP 0xFFFFFFFF
* #define MAIN_WIFI_M2M_SERVER_PORT (6666)
* #define MAIN_WIFI_M2M_REPORT_INTERVAL (1000)
*
- Build the program and download it into the board.
- 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
*
- Start the application.
- 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
* (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
* ------------------------------------------------------------
*
- Start the application on client using command.
- 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