koppi / serial-latency-test

Measure the roundtrip time of packets sent over the serial port.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Makefile CI

serial-latency-test measures the roundtrip time of packets sent over the serial port. It calculates the worst case roundtrip time of all sent packets and displays a histogram of the rountrip time jitter.

demo

youtube

usage

$ serial-latency-test -h
Usage: serial-latency-test -p <port> ...

  -p, --port=port    serial port to run tests on
  -b, --baud=baud    baud rate (default: 9600)
  -R, --realtime     use realtime scheduling (default: no)
  -P, --priority=n   scheduling priority, use with -R
                     (default: 99)

  -S, --samples=n    to take for the measurement (default: 10000)
  -c, --count=n      number of bytes to send per sample (default: 1)
  -w, --wait=ms      time interval between measurements (default: 0)
  -r, --random-wait  use random interval between wait and 2*wait

  -a, --async        set ASYNC_LOW_LATENCY flag (default: no)
  -x  --xmit=n       set xmit_fifo_size to given number (default: 0)
  -o, --output=file  write the output to file

  -h, --help         this help
  -V, --version      print current version

related utilities

BUGS and AUTHORS

Please report bugs to the authors.

-- Last updated Jan 2022.

About

Measure the roundtrip time of packets sent over the serial port.

License:GNU General Public License v2.0


Languages

Language:Shell 89.9%Language:C 8.9%Language:M4 0.5%Language:Roff 0.4%Language:Makefile 0.3%