Skip to content

Measure the roundtrip time of packets sent over the serial port

License

Notifications You must be signed in to change notification settings

multiple1/serial-latency-test

 
 

Repository files navigation

Build Status

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

About

Measure the roundtrip time of packets sent over the serial port

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 89.9%
  • C 8.1%
  • Other 2.0%