2

I am using Arch linux and I need to create virtual serial port on it. I tried everything but it seems doesnt work. All I want is to connect that virtual port to another virtual port over TCP and after that to use it in my python application to communicate with python application to other side. Is that posible? Please help me.

Thanx

2

1 Answer 1

4

socat command is solution.

First you need to install socat:

pacman -S socat

Just insert this in console, but first you should be login as root:

socat PTY,link=/dev/ttyVirtualS0,echo=0 PTY,link=/dev/ttyVirtualS1,echo=0

and now we have two virtual serial ports which are virtualy connected:

/dev/ttyVirtualS0 <-------> /dev/ttyVirtualS1

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.