E
E
ekopiy2018-05-28 13:06:46
Iron
ekopiy, 2018-05-28 13:06:46

Is it possible to send data from two RS-232 ports to one?

There are two windows computers that send data to the COM port, let's call them A, B. There is a device that receives data via RS-232 and processes it, let's call it C. Is it possible to consistently send data to device C without conflicts? If so, which way to look? I searched myself, but did not find anything, except for hubs for 15k+. An important detail here is that there are no conflicts, i.e. while sending data from computer A to device C, computer B did not send data, but stored it in some kind of buffer for sending when the line was free. It is also necessary that all this work stably, because. Device C is KKM.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kalombyr, 2018-05-28
@Kalombyr

There was a similar problem.
I had to make my own solution.
The main problem is that communication is two-way and timings can be set to wait for sending / receiving the result, so it simply won’t work.
I made my own com port driver, installed on each PC from which access to the device was needed. The main task of the driver is to communicate with the server and freeze when trying to open a com port until the com port is closed on the host (a separate PC to which the device is physically connected) (i.e. the exchange with the device will be completely completed) and transfer back and forth requests. Hemorrhagic noble came out.

S
Sergey Sergey, 2018-05-28
@hahenty

Perhaps for this, computers A and B should monitor the ready signals (RTS, DTR) and choose the appropriate time to start transmission. The tcp protocol has such a thing - "collision resolve" in the general sense of serial transmission - there the chips choose a random time for transmission attempts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question