Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
I'd probably roll my own.. Can't be that hard.. knock up a quick script in python, or just on the shell, squirt data into /dev/ttyS0 as fast as you can. – Tom O'Connor Dec 20 '10 at 15:47
I think it would be hard to find a system built in the last 5 years not capable of handling that speed. – symcbean Dec 20 '10 at 16:56

here's an archaic testing program that mentions testing serial lines (and everytime i read that part i wonder who would ever do that):

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)

share|improve this answer

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 /dev/zero | socat <options>

pv would tell you the rate at which you're piping the data.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.