I
I
Ilya Plotnikov2012-09-03 19:56:27
Iron
Ilya Plotnikov, 2012-09-03 19:56:27

How to implement a copy of the COM port for listening?

I have a station that receives radio signals from devices and there is software that collects these signals. It is undesirable to interrupt the operation of the software.
I want to collect data transmitted via RS232 into a log. I tried software that allows you to sniff the COM port, but it seems to me that the sniffer reads data from the receiver software. You need to make a copy of the COM port to collect data, because. You cannot connect to the same port a second time. What software under win2k8 allows you to do that? I think that this is implemented like this: some software listens to the com port and creates 2 more virtual COMs, a program is connected to one, data is collected from the second.
Tell me what can be used? It is possible to take a system unit with 2 COM ports. Connect the device to one, connect the second to the server, and log to the system manager (if linux will be used, for example DEBIAN)

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vladimir, 2012-09-03
@ilyaplot

you can use 2 com ports, or you can use a USB adapter USB2COM.

R
Roy, 2012-09-03
@Roy

For Windows, you can try this: www.eterlogic.com/Products.VSPE.html
Allows you to make a virtual COM port splitter. Free for x32.
For Linux, mix cat < /dev/ttyS0 > /dev/ttyS1 and tee to taste. Previously, it is probably better to set raw / disable echo for ports - via stty.

A
AR1ES, 2012-09-03
@AR1ES

Again, if for Windows, I would advise sourceforge.net/projects/com0com/ .
Open source, both 32 and 64 bit versions.
If desired, it will allow you to do even more: not only create virtual ports and redirect outputs to them, but also use the desired port from a remote machine if necessary.

I
Ilya Plotnikov, 2012-09-03
@ilyaplot

Maybe just connect 2 COM ports? All that is needed is data transfer from the transmitter to the computer.

T
teremock, 2012-09-04
@teremock

> I tried software that allows sniffing the COM port, but it seems to me that the sniffer reads data from the receiver software.
I don't quite understand what could be the problem.
For 10 years I have been using portmon just for such tasks. All that is needed - everything shows and all the data in both directions and the control lines and port parameters. Perhaps portmon will not just get up on 64bit Windows - the driver is not signed - but you can run everything on a 32bit virtual machine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question