linux中有像COM0COM这样的程序吗? [英] Are there some program like COM0COM in linux?
本文介绍了linux中有像COM0COM这样的程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用com0com在Windows中进行程序测试, linux中有像com0com这样的程序吗?
I use com0com for program testing in windows, are there any program like com0com in linux?
我知道有pts/ptmx,但是我想要的是一个独立的程序,可以提供2个虚拟串行端口...
I know there is pts/ptmx, but what I want is a stand alone program to provide 2 virtual serial ports...
然后我可以打开2个程序,每个程序都参加一个...
Then I can open 2 program, each attench one...
推荐答案
我找到了一个不错的方法:
I found a good method:
socat PTY,link=COM8 PTY,link=COM9
然后创建2个虚拟串行端口文件:COM8,COM9
then 2 virtual serial port files are created: COM8, COM9
这篇关于linux中有像COM0COM这样的程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文