A client of mine wants to ensure that the linux box I'm working on can handle receiving data at 115200 bits/s on a serial port without losing any data.
Is there any software available for doing this, or am I going to have to roll my own?
|
A client of mine wants to ensure that the linux box I'm working on can handle receiving data at 115200 bits/s on a serial port without losing any data. Is there any software available for doing this, or am I going to have to roll my own? |
|||||
|
|
here's an archaic testing program that mentions testing serial lines (and everytime i read that part i wonder who would ever do that): http://www.scsifaq.org/RMiller_Tools/dt.html but really, all you need is a program that can generate some data, and then verify it was received correctly... you could just aswell transfer some large file and verify it's integrity afterwards... (and if you push data over a serial port and don't have flow control enabled, it's going to be transfered exactly at the rate the port is configured to, or get corrupted, so it's not possible that performance is only degraded) |
|||
|
|
|
socat can use serial ports. Once that pipe is established, you can pipe into it whatever you want, at whatever rate you want. The simplest test would be to do something along the lines of:
pv would tell you the rate at which you're piping the data. |
|||
|
|