This script is intended for basic testing of serial links to embedded systems over RS-232/UART/USB-CDC.
$ python serial-test.py -h
Test for actual hardware link thoughput by eliminating all possible firmware bottlenecks.
Similar to the Baremetal Test, but measure effective throughput using whatever firmware architecture exists for link management, including whatever buffering method exists. This does not include any higher level protocol overhead.
Similar to the throughput test, but uses a PRBS instead of a simply incrementing byte value. While this is theoretically a 'better' test, in reality it likely does not make much difference for regular UART links. The actual generation of the PRBS, however, does take finite time and has been found to be a limiting step on the firmware side, making it unsuitable for testing throughput capability.
(NOT YET IMPLEMENTED)
Test for throughput including higher level protocol overhead. This is not currently implemented.
This script requires a simple C PRBS library to generate pseudo random
bitstreams. This same library in a form compatible with cmake
and for
static linkage with embedded code can be found on
github.
TBD