Thursday, April 21, 2011

virtual serial port on Arch linux

Hello,

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

From stackoverflow
  • 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/ttirtualS1,echo=0

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

    /dev/ttyVirtualS0 <-------> /dev/ttirtualS1

0 comments:

Post a Comment