---
title: "W55RP20 iPerf example"
url: "https://maker.wiznet.io/Hannah/projects/w55rp20-iperf-example/"
markdown_url: "https://maker.wiznet.io/Hannah/projects/w55rp20-iperf-example/md"
type: "WCC: WIZnet Created Content"
author: "Hannah Lee"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Hannah Lee"
published: "2024-10-29"
language: "en"
hardware: ["WIZnet W55RP20-EVB-Pico"]
likes: 0
views: 833
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# W55RP20 iPerf example

> A iPerf for the W55RP20-EVB-Pico board

Original author: Hannah Lee

## Components

- **WIZnet W55RP20-EVB-Pico** x 1 ([docs](https://wiznet.io/products/powered-by-raspberry-pi/w55rp20-evb-pico))

## Documents and links

- [iPerf example](https://github.com/WIZnet-ioNIC/WIZnet-PICO-IPERF-C) (code)

## Article

## How to Test iPerf example

### **1 Setup board configuration**

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

```plaintext
# 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.

```plaintext
/* 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
```

[![](https://github.com/WIZnet-ioNIC/WIZnet-PICO-IPERF-C/raw/main/static/images/iperf/move_to_iperf_path.png)](https://github.com/WIZnet-ioNIC/WIZnet-PICO-IPERF-C/blob/main/static/images/iperf/move_to_iperf_path.png)

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
```

[![](https://github.com/WIZnet-ioNIC/WIZnet-PICO-IPERF-C/raw/main/static/images/iperf/iperf_result.png)](https://github.com/WIZnet-ioNIC/WIZnet-PICO-IPERF-C/blob/main/static/images/iperf/iperf_result.png)

---

Source: https://maker.wiznet.io/Hannah/projects/w55rp20-iperf-example/
