登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

飞哥的技术博客

世上无难事,只怕有心人!

 
 
 

日志

 
 
 
 

vmware下windows虚拟机中设置serial串口和host主机串口连接  

2010-04-14 16:32:34|  分类: Windows |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

 

vmware下windows虚拟机中设置serial串口和host主机串口连接

2008年08月28日 星期四 12:28

connect to a physical serial port or to a file on the host operating system. It can also be used to set up a direct connection between two virtual machines or a connection between a virtual machine and an application on the host computer. Make sure the virtual machine is powered off before you add or remove a serial port.

 

Note The Workstation User’s Manual contains detailed information about setting up serial ports to connect to an application and to connect two virtual machines to each other. It also contains instructions for debugging over a virtual serial port. See the section about serial ports in the chapter on connecting devices.

&S226;

&S226;

— Select this check box if you want the port to be connected automatically whenever you power on the virtual machine. You can change this setting when the virtual machine is powered on or powered off.

Connection section when the virtual machine is powered on or powered off:

&S226;

— Select this option if you want the virtual machine to use a physical serial port on the host computer. Use the drop-down list to specify which available port to use.

&S226;

— Select this option if you want to send output from the virtual serial port to a file on the host computer. Click Browse, and then either locate an existing output file or navigate to the desired directory and type a filename for the file you want to create.

&S226;

— Select this setting to set up a direct connection between two virtual machines or a connection between a virtual machine and an application on the host computer.

name must follow the form \\.\pipe\<namedpipe> — that is, it must begin with \\.\pipe\. The pipe name must be the same on server and client.

In the I/O Mode section, the option called Yield CPU on poll is of interest primarily to developers who are using debugging tools that communicate over a serial connection. Selecting this option can improve performance when the guest operating system is using the serial port in polled mode. Then the virtual machine will yield processor time if the only task it is trying to do is poll the virtual serial port.

下面是minicom配置

编辑/etc/inittab,在适当的位置添加一条:

7:2345:respawn:/sbin/agetty 115200 ttyS0

编辑/etc/securetty,在末尾添加一条:

ttyS0

然后重启服务器以便让设置生效。

被连接端,也就是服务器端的设置就完成了。接下去需要设置笔记本上linux的minicom的参数。在fedora7里面,minicom的默认设备是/dev/modem,所以需要做以下设置:

# minicom -s #配置minicom的参数

进入后

选择Serial port setup -> 修改Serial Device的设备为:/dev/ttyS0然后退出这一层菜单 ->执行Save setup as dfl ->然后执行Exit from Minicom。

这样minicom的配置文件已经生成并配置好了。

最后执行就很简单了:

# minicom 或者:

# xminicom

如 果 用 标 准 的 232线 不显 示 ,在 XP下 可 以 显 示 的 话 ,更 换 WINCE通 讯 线 就 可 以 了 .

引文来源  vmware下windows虚拟机中设置serial串口和host主机串口连接_亟风雄郎_百度空间

  评论这张
 
阅读(1987)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018