Answer the question
In order to leave comments, you need to log in
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
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.
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.
Maybe just connect 2 COM ports? All that is needed is data transfer from the transmitter to the computer.
> 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 questionAsk a Question
731 491 924 answers to any question