Connect two serial port into one serial port

serial-communicationserial-port

I want to connect two serial port into one serial port. Suppose there are three system A,B and C.

enter image description here

A,B and C are connected each other using serial communication (RS232 port) like star connection.
So, here is the situation.
When system C send data to system A and system B, it will send to both system. But when system A or system B send data it is not received by system C.

So I want to know how to communicate with serial port device to other serial port device (multiple device).

Best Answer

This simply cannot work. You would have to connect two TX lines together to one RX line, but RS-232 (unlike e.g. Ethernet) is not a shared-medium protocol and cannot detect TX collisions (when two devices try to talk at the same time).

You need to implement a device in the middle that forwards what it receives to the other devices. Even then, it would have to know the protocol the other devices are speaking to prevent interrupted messages (e.g. only stopping at newline characters).

Related Topic