[PLUG] Monitoring Serial Ports
Russell Senior
russell at personaltelco.net
Mon Nov 18 10:33:46 UTC 2019
I built a little gizmo to go mid-span between the PC and the external
device, where two additional serial ports connect their RX to the two data
lines coming from the PC and external device, respectively, then log (with
timestamps) the data that goes by. Then I can correlate the data coming
from each end after the fact.
Another approach might be to level shift[1] the RS-232 signals to TTL and
then use a salaea-clone logic analyser[2] with sigrok's pulseview[3] (which
does protocol decoding). I did essentially this while working on my
homebrew LQP02 teleprinter project[4][5].
[1] https://www.sparkfun.com/products/11189
[2]
https://www.ebay.com/itm/USB-Logic-Analyzer-24MHZ-8-Channel-12C-UART-SPI-IIC-CAN-1Wire-Debug-For-ARM-FPGA/162980270582
[3] https://sigrok.org/wiki/PulseView
[4] https://github.com/RussellSenior/lqp02-teletype
[5] https://www.youtube.com/watch?v=uB5YunsIeDo
On Sat, Nov 16, 2019 at 11:03 AM Galen Seitz <galens at seitzassoc.com> wrote:
> On 11/16/19 8:12 AM, Michael Barnes wrote:
> > I've got a bit of a challenge. I have an external piece of hardware
> > connected via a serial port to my Mint computer. Normally an application
> > deals with the data. I would like to monitor the data stream with
> something
> > like minicom to see the raw serial data coming from the hardware. The
> > ability to see bi-directional data would be a plus.
> >
> > On my Windows computer I have an application called Virtual Serial Port
> > Emulator (VSPE) that creates a serial port splitter allowing multiple
> > applications to utilize the same serial port to communicate with external
> > hardware. Is there anything similar to that for Linux? Or perhaps some
> > other option for doing this?
>
> If you have the ability to tap into the serial connection with a second
> serial port, you could use a program like jpnevulator.
>
> If you can tell you application to talk to a pty, then you may be able
> to use socat to monitor the serial communication. See the second answer
> here:
>
> <
> https://unix.stackexchange.com/questions/12359/how-can-i-monitor-serial-port-traffic
> >
>
>
> galen
> --
> Galen Seitz
> galens at seitzassoc.com
> _______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list