Skip to content

koppi/serial-latency-test

 
 

Repository files navigation

Makefile CI

serial-latency-test

  • measures the roundtrip time of packets sent over the serial port.
  • calculates the worst case roundtrip time of all sent packets and shows 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

authors and bugs

serial-latency-test is written by Jakob Flierl. Report bugs here.

About

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

Topics

Resources

License

Stars

4 stars

Watchers

1 watching

Forks

Sponsor this project

Contributors

Languages

  • Shell 89.8%
  • C 9.0%
  • Other 1.2%