2.9.7 Iperf Demo
This application demonstrates how a user can run iperf application on WINC3400 device in Bypass Mode.
Configure the wifi parameters using "wifi set" command.
Enter the command "appdemo start 1" to set the DUT(Device Under Test) in station mode. It will connect to the wifi network and the IP address will be displayed on the terminal.
The user should enter the iperf commands in the terminal window (for DUT) and in the iperf application which is available in the PC.
Protocol PC DUT Command on PC Command on DUT UDP Client Server iperf -u -c <Server_IP_Address> -t <time_peroid> -i <time_interval> -u -b <bandwidth> e.g.: iperf -u -c 192.168.43.27 -b 20M -i 1 -t 10 iperf -s -u -i <time_interval> e.g.: iperf -s -u -i 1 UDP Server Client iperf -s -u -i <time_interval> e.g.: iperf -s -u -i 1 iperf -u -c <Server_IP_Address> -t <time_peroid> -i <time_interval> -u -b <bandwidth> e.g.: iperf -u -c 192.168.43.87 -b 20M -i 1 -t 10 TCP Client Server iperf -c <Server_IP_Address> -t <time_peroid> -i <time_interval> e.g: iperf -c 192.168.43.27 -i 1 -t 10 iperf -s -i <time_interval> e.g: iperf -s -i 1 TCP Server Client iperf -s -i <time_interval> e.g: iperf -s -i 1 iperf -c <Server_IP_Address> -t <time_peroid> -x <bandwidth> e.g: iperf -c 192.168.43.87 -x 10M -t 10
Note:
To ensure stable performance and prevent potential memory constraint issues when running the iperf with sam_e54_xpro_winc3400_freertos.X project, we recommend the following settings:
- Reduce the general heap size to 50,000.
- Set the FreeRTOS memory management type to Heap_4, with a heap size of 140,960.
- Configure the TCPIP CORE stack allocation and deallocation functions to use pvPortMalloc and vPortFree, respectively.Set the TCP/IP(CORE) Stack Dynamic Ram size as 40000.
- Set the CONSOLE print buffer size as 5012, COMMAND print buffer size as 2560.