8

I use com0com for program testing in windows, are there any program like com0com in linux?

I know there is pts/ptmx, but what I want is a stand alone program to provide 2 virtual serial ports...

Then I can open 2 program, each attench one...

Richard
  • 15,152
  • 31
  • 85
  • 111
linjunhalida
  • 4,538
  • 6
  • 44
  • 64

2 Answers2

13

I found a good method:

socat PTY,link=COM8 PTY,link=COM9

then 2 virtual serial port files are created: COM8, COM9

Zoe
  • 27,060
  • 21
  • 118
  • 148
linjunhalida
  • 4,538
  • 6
  • 44
  • 64
0

You can also use tty2comKm virtual serial port driver for linux provided by serialpundit project.

samuel05051980
  • 369
  • 2
  • 2