Skip to content

Latest commit

 

History

History
78 lines (54 loc) · 1.59 KB

README.md

File metadata and controls

78 lines (54 loc) · 1.59 KB

PingPongMeasurerRclex

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ping_pong_measurer_rclex.

Prerequisites

Setup two Raspberry Pi 4 as ping/pong targets by using https://github.com/b5g-ex/setup_ping_pong_pi.

Follow the README.md to setup.

How to measure

On your Raspberry Pi 4 Ping/Pong targets,

On pong target

Before doing following, you need to connect pong target via SSH,

cd ping_pong_measurer_rclex/
iex -S mix

On IEx,

# help arguments
h PingPongMeasurerRclex.start_pong_processes
#
PingPongMeasurerRclex.start_pong_processes(1, :single, :single)

Then, invoke command on ping's IEx.

If you wanna change the parameters, you can stop pong by,

PingPongMeasurerRclex.stop_pong_processes()

On ping target

Before doing following, you need to prepare pong first and connect ping target via SSH,

cd ping_pong_measurer_rclex/
iex -S mix

On IEx,

# help arguments
h PingPongMeasurerRclex.start_ping_side_processes
# start measuring
PingPongMeasurerRclex.start_ping_side_processes(1, :single, :single, 256, 100, false)

For development

On your host machine, you can test pingpong on one Erlang VM.

cd ping_pong_measurer_rclex/
mix deps.get
iex -S mix

On IEx,

# help arguments
h PingPongMeasurerRclex.local_test
#
PingPongMeasurerRclex.local_test(1, :single, :single, 256)