文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>vmware实现串口模拟及串口通讯

vmware实现串口模拟及串口通讯

时间:2009-05-27  来源:enzo1985

一直都想做个串口调试的程序,可是自己的笔记本没有串口,而现在又不方便买usb转串口的工具
无意中发现vmware可以模拟串口,vmware是通过管道模拟串口的
下面做个笔记已被参考
分别设置服务器主机串口
\\.\pipe\com_1
this end is server
the other end is virtual machine
i/o模式勾选:Yield CPU on poll(轮询是主动放弃cpu占用)

客户机串口设置:
\\.\pipe\com_1
this end is server
the other end is virtual machine
客户机不用勾选Yield CPU on poll

linux串口命名规则com1为ttys0, com2为ttyS1,以此类推......
测试:
在development机上执行:
                                    stty ispeed 115200 ospeed 115200 -F /dev/ttyS0
                        
在target机上执行:
                                    stty ispeed 115200 ospeed 115200 -F /dev/ttyS0
                        
在developement机上执行:
                                    echo hello > /dev/ttyS0
                        
在target机上执行:
                                    cat /dev/ttyS0
                        假如串口连接没问题的话在将在target机的屏幕上显示"hello"。
相关阅读 更多 +
排行榜 更多 +
龙珠格斗火柴人

龙珠格斗火柴人

飞行射击 下载
荒野恐龙猎手安卓版

荒野恐龙猎手安卓版

飞行射击 下载
超凡坦克英雄

超凡坦克英雄

飞行射击 下载