Re: Serial port monitor
From: Bryan Hackney (bh.remove_at_bhconsult.com)
Date: 05/06/04
- Next message: Ghazan Haider: "Cheap x86 MCU/SOC chips?"
- Previous message: Edward Lee epl: "Re: help needed PID control calculations"
- In reply to: Hemanth M S: "Serial port monitor"
- Next in thread: Paul Keinanen: "Re: Serial port monitor"
- Reply: Paul Keinanen: "Re: Serial port monitor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 06 May 2004 14:37:42 GMT
Hemanth M S wrote:
> Hi!
>
> I am trying to capture RS-232 communication from my PC to a target
> board. The PC sends a command and the target board is supposed to send
> an acknowledgement. I would like to measure the delay between the
> transmission of the command and the reception of the acknowledgement.
>
> If you know of a 'reliable' RS-232 serial port monitor which can log
> data (both Tx and Rx) and provide a time-stamp for each byte (accuracy
> of milliseconds), please send me links/name of the software.
>
> Thanks,
> Santhosh.
>
I have done this before in the following way. It is easy if you are
using Linux. It may be easy if you are not.
Make a dual-snooper cable. You need two ports on your working computer.
Tee off TX-East to computer port 1 and TX-West to computer port 2.
Write a very simple serial reader. Set the ports up raw (see my post
from a couple of day ago). Loop, doing a blocking read on each character
on the serial port. Print this out with a timestamp. Run this on each
port. Stream the outputs to files. Then paste the files and sort on the
timestamp.
You could also do this in one program, but the blocking read way is
better than having to poll for characters.
- Next message: Ghazan Haider: "Cheap x86 MCU/SOC chips?"
- Previous message: Edward Lee epl: "Re: help needed PID control calculations"
- In reply to: Hemanth M S: "Serial port monitor"
- Next in thread: Paul Keinanen: "Re: Serial port monitor"
- Reply: Paul Keinanen: "Re: Serial port monitor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|