Wiznet makers

Hannah

Published October 29, 2024 ©

33 UCC

9 WCC

1 VAR

0 Contests

0 Followers

0 Following

W55RP20 iPerf example

A iPerf for the W55RP20-EVB-Pico board

COMPONENTS Hardware components

WIZnet - W55RP20-EVB-Pico

x 1


PROJECT DESCRIPTION

How to Test iPerf example

 

1 Setup board configuration

Setup board to W55RP20_EVB_PICO in CMakeLists.txt in WIZnet-PICO-C-EXTRAS/ directory.

# Set board
#set(BOARD_NAME WIZnet_Ethernet_HAT)
#set(BOARD_NAME W5100S_EVB_PICO)
#set(BOARD_NAME W5500_EVB_PICO)
set(BOARD_NAME W55RP20_EVB_PICO)
#set(BOARD_NAME W5100S_EVB_PICO2)
#set(BOARD_NAME W5500_EVB_PICO2)

2 Setup board configuration

Setup network configuration such as IP in 'w5x00_iperf.c' which is the Web I/O example in 'WIZnet-PICO-C/examples/iperf/' directory.

Setup IP and other network settings to suit your network environment.

/* Network */
static wiz_NetInfo g_net_info =
    {
        .mac = {0x00, 0x08, 0xDC, 0x12, 0x34, 0x56}, // MAC address
        .ip = {192, 168, 11, 2},                     // IP address
        .sn = {255, 255, 255, 0},                    // Subnet Mask
        .gw = {192, 168, 11, 1},                     // Gateway
        .dns = {8, 8, 8, 8},                         // DNS server
        .dhcp = NETINFO_STATIC                       // DHCP enable/disable
};

Setup iPerf configuration in 'w5x00_iperf.c' in 'WIZnet-PICO-C/examples/iperf/' directory.

/* Port */
#define PORT_IPERF 5001

3 Build and Run

Run command prompt to enter the iPerf command and move to iPerf path.

/* Change directory */
// change to the 'iperf-x.x.x-winxx' directory.
cd [user path]/iperf-x.x.x-winxx

// e.g.
cd D:/iperf-2.0.9-win64

In the command prompt, enter the following command to connect to Raspberry Pi Pico, W5100S-EVB-Pico or W5500-EVB-Pico running as a TCP server and test.

/* Network performance measurement test */
.\iperf -c [connecting to] -t [time in seconds to transmit for] -i [seconds between periodic bandwidth reports]

// e.g.
.\iperf -c 192.168.11.2 -t 20 -t 2

Documents
  • iPerf example

Comments Write