I have a serial device connected to a remote computer and would like to transmit the serial data from this machine over tcp to another computer, both linux machines. Ideally, I would like to link two serial ports together between two computers by communicating over tcp.

I found this link: socat-ttyovertcp, which explains that this is possible using socat. I've tried testing this by running a computer as a host with the virtual machine as the client; and although the code runs without syntax error, I do not know how to verify that they work. Any help would be greatly appreciated.

  • I'd probably use a raspberry pi.. Outside your quest really, but they are quite handy and run a *nix flavor. – Tyson Aug 12 '15 at 2:31
  • One of the linux computers is a raspberry pi, I'm trying to connect the raspberry pi serial port to the other computer's serial port over tcp. – user482522 Aug 12 '15 at 2:41

Here is one option that you might not have looked into. You can use a Serial over IP Adapter and then connect to the that device over your network. We use several of these to talk to PLCs and our phone systems.

Another one here states the Virtual COM software supports linux. Where it will map a virtual COM device to the remote serial port.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.