Skip to end of metadata
Go to start of metadata

This section describes the examples that are related to the Micrium OS IPerf module.

IPerf Initialization Example

Description

This is a generic example that shows how to initialize the SMTP client module. 

Configuration

Mandatory

The following #define must be added in ex_description.h to allow other examples to initialize the IPerf module correctly:

#defineDescription
EX_IPERF_INIT_AVAILLets the upper example layer know that the IPerf Initialization example is present and must be called by other examples.

Location

  • /examples/net/iperf/ex_iperf.c
  • /examples/net/iperf/ex_iperf.h

API

APIDescription
Ex_IPerf_Init()Initialize the Micrium OS IPerf module for the example application.

Notes

IPerf can be launched from a command line and by specifying parameters, using Telnet and Shell

Requirements

Target
PC
  • IPerf application V 2.x: Can be downloaded from here. Note that IPerf version 3 or greater is not supported. Only version 2 is compatible.

Running the example

First, you must get the Telnet server running. See Telnet Server Example Applications .

Target as TCP Server
  1. On Telnet client terminal enters the following line:

    iperf -s

  2. On the PC command line type the following line:

    iperf -c <target_ip_address> 

  3. Telnet Client should display the result from the target and the PC command line whereas Iperf-PC run should display the result on the PC side.
Target as TCP Client
  1. On the PC command line type the following line:

    iperf -s

  2. On Telnet Client terminal enter the following line:

    iperf -c <pc_address>

  3. Telnet Client should display the result from the target and the PC command line whereas Iperf-PC run should display the result on the PC side.
Target as UDP Server
  1. On Telnet client terminal enters the following line:

    iperf -s -u

  2. On the PC command line type the following line:

    iperf -c <target_ip_address>  -u -b 1000M

Telnet Client should display the result from the target and the PC command line whereas Iperf-PC run should display the result on the PC side.

Target as UDP Client
  1. On the PC command line type the following line:

    iperf -s -u

  2. On Telnet Client terminal enter the following line:

    iperf -c <pc_address> -u

  3. Telnet Client should display the result from the target and the PC command line whereas Iperf-PC run should display the result on the PC side.