linux中有没有像COM0COM这样的程序? [英] Are there some program like COM0COM in linux?
本文介绍了linux中有没有像COM0COM这样的程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 windows 中使用 com0com 进行程序测试,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...
推荐答案
我找到了一个好方法:
socat PTY,link=COM8 PTY,link=COM9
然后创建2个虚拟串口文件:COM8、COM9
then 2 virtual serial port files are created: COM8, COM9
这篇关于linux中有没有像COM0COM这样的程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文