Re: Serial port monitor

From: Bryan Hackney (bh.remove_at_bhconsult.com)
Date: 05/06/04


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.



Relevant Pages

  • [HPADM] N Port mapping from fcmsutil to /dev
    ... Does anyone know how to map the N Port information output from fcmsutil ... to the actual device file or hardware path through the command line? ... Target state = DVS_UNOPENED ...
    (HP-UX-Admin)
  • Re: adding machine to domain with NATed IPs
    ... sounds that the DCs are not reaching the clients ... weight 100, port 389, target srv5.mydomain.local ...
    (microsoft.public.windows.server.active_directory)
  • adding machine to domain with NATed IPs
    ... The query was for the SRV record for ... weight 100, port 389, target srv5.mydomain.local ...
    (microsoft.public.windows.server.active_directory)
  • Re: Best Plan of action for 2 forest.......
    ... PortQry reports the status of a port in one of the following ways: ... ..LISTENING This response indicates that a process is listening on the target ...
    (microsoft.public.windows.server.active_directory)
  • Re: Cant read a lonely (char)13 from serialport
    ... > 1) I writea command to the port ... >is sent back in response to the command that I sent. ... remote device might be accepting a command, ... and wait for an *appropriate* response before ...
    (comp.os.linux.development.system)