Are there some program like COM0COM in linux? [closed]

血红的双手。 提交于 2019-11-29 01:10:22

问题


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...


回答1:


I found a good method:

socat PTY,link=COM8 PTY,link=COM9

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




回答2:


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



来源:https://stackoverflow.com/questions/2175440/are-there-some-program-like-com0com-in-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!