Barry L. Kline
2009-Sep-01 19:38 UTC
[CentOS] For you old-timers, an RS232 question about data rate confirmation.
Hello all. This is a question that I should be able to answer, but the old grey cells aren't working. My Google-Fu must not be up to snuff, either. I have a MOXA IP-RS232 converter that I'm going to be using over an RF WAN and I need to confirm the actual data rate that I'll be able to achieve. I have the drivers loaded (/dev/ttyr00) and a loopback plug on the end of the device. I am able to confirm that it works fine with minicom, but I'd like to be able to have a program read/write the device with a largish file and give me a throughput rating. Short of writing my own program, can anyone point me to a good tool for that purpose. yum search RS232 and yum search serial haven't provided what I'm looking for and I can't imagine that this isn't already done. Thanks! Barry
Stephen Harris
2009-Sep-01 19:50 UTC
[CentOS] For you old-timers, an RS232 question about data rate confirmation.
On Tue, Sep 01, 2009 at 03:38:23PM -0400, Barry L. Kline wrote:> the end of the device. I am able to confirm that it works fine with > minicom, but I'd like to be able to have a program read/write the device > with a largish file and give me a throughput rating.Since you have loopback adapter connected you need to read/write from the device at the same time. So... first attempt: cat </dev/ttyr00 > /dev/null & time cat large_file > /dev/ttyr00 Been a long time since I played with serial comms, but that'd be my first attempt. Second attempt would be to make a full serial connection to another machine (port on the same machine?) and use "ckermit" to transfer a file. -- rgds Stephen
R P Herrold
2009-Sep-01 20:16 UTC
[CentOS] For you old-timers, an RS232 question about data rate confirmation.
On Tue, 1 Sep 2009, Barry L. Kline wrote:> Short of writing my own program, can anyone point me to a good tool for > that purpose. yum search RS232 and yum search serial haven't provided > what I'm looking for and I can't imagine that this isn't already done.Are the Kansas City cassette tape storage PLL sampling routines still about? Or hit ^h repeatedly, until sync is achieved, as we did in the old modem days .... 110 bps v 300 on a good link with a Don Lancaster Pennywhistle modem ;) As I understand the problem it may be that the signal could degrade from whatever max data rate the circuit is rated for. I am not aware of a resampling routine in any recent kit that CentOS ships -- Russ herrold
nate
2009-Sep-01 20:23 UTC
[CentOS] For you old-timers, an RS232 question about data rate confirmation.
Barry L. Kline wrote:> Short of writing my own program, can anyone point me to a good tool for > that purpose. yum search RS232 and yum search serial haven't provided > what I'm looking for and I can't imagine that this isn't already done.For writing have you tried dd ? nate