Chinaunix

标题: 虚拟机下Linux的串口通信问题 [打印本页]

作者: milkbo    时间: 2012-05-22 15:07
标题: 虚拟机下Linux的串口通信问题
本人因工作需要,现需将两个Linux的虚拟机通过串口相连并通信,但是在连接串口设置的时候却怎么设也连不上,
方法:1、分别为两个系统增加一个串口,以"Output to named pipe"方式,
其中:Client端选择"this end is the client", "the other end is a virtual machine"
        Server端选择"this end is the server", "the other end is a virtual machine"
备注: 两个pipe的名称要相同,并且选中下面的Connect at power on,及Advanced里面的Yield CPU on poll
        2、串口添加完成后,使用如果命令测试:
        分别在两个机子上输入:stty ispeed 115200 ospeed 115200 -F /dev/ttyS0(其他波特率我也试过)
      在Server上:cat /dev/ttyS0
         然后到Client上:echo "hello" > /dev/ttyS0
         这时回到Server上,如果能看到输入的hello,说明串口通讯正常.
但我的机子怎么弄都显示不了hello字样!
环境:1、两个Linux系统都是“debian-6.0.4-i386”
      2、VMware Version:8.0.2 build-591240
        3、主机XP SP3
如果有哪位大师知道的请指导下!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2