VSPD虚拟串口与流控实验

来源:互联网 发布:单片机专家 编辑:程序博客网 时间:2024/06/14 06:52

Virtual Serial Port Driver - create virtual serial port pairs, emulate real COM ports

http://www.eltima.com/products/vspdxp/
virtual rs232 port

Manage all signal lines

Virtual serial ports created with Virtual Serial Ports Driver emulate and support all standard hardware signal lines (DTR/DSR, RTS/CTS, RING, ERROR, DCD, etc.). As in real null modem connection, DTR of the local port is connected to DSR and DCD of the remote port, and RTS of the local port is connected to CTS of the remote port.    Moreover, you can choose loopback pinout or create custom one depending on your hardware configuration.

 

一、虚拟串口信号连接验证实验:

软件

F:\Comm\QCOM_V1.0.exe (线路状态:右边一列只读)

F:\Comm\串口调试助手\com_debug.exe

 

虚拟串口对 COM1-COM2

QCOM选择 HW Ctrl Flow 打开 COM1

ComPortDebuger打开 COM2

 

分别操作这2个软件,验证虚拟串口对的信号对应关系

 

A. 操作QCom时查看 ComPortDebuger的响应

B. 操作ComPortDebuger 时查看 QCom的响应

操作:选择DTR

结果:[2013-06-13_21:32:07] DCD:1  CTS:0  RI:0

操作:选择RTS

结果:[2013-06-13_21:34:51] DCD:0  CTS:1  RI:0

 

结论:

与官方网站描述一致。

 

 

 

 

二、虚拟串口的硬件流控实验

 

虚拟串口对 COM1-COM2

QCOM选择 HW Ctrl Flow 打开 COM1

ComPortDebuger打开 COM2

1、不勾选任何信号时QCom发送2”a”, ComPortDebuger未收到,直到在ComPortDebuger 上勾选 RTS

2、不勾选任何信号时ComPortDebuger发送2”b”, QCom收到——也就是说ComPortDebuger没有考虑QCom是否给的流控信号!——这也说明硬件硬件流控需要软件支持。

3、如果在测试2中把ComPortDebuger 换成 QCom,情况会不一样。

 

总结:

QCom 是一个很不错的软件,支持定时发送,可定义多条发送内容,支持软、硬件流控 等等。如果能像ComPortDebuger 一样显示 CTSDSRDCD的状态就更完美了。


http://blog.chinaunix.net/uid-24118190-id-3763234.html


参考:

串口通讯中的流控设置

http://wenku.baidu.com/link?url=rb7bvXf02T5iKJNiArQgEw82Ahc2nxwsas_Ji-QH9t2ujDZG-k7qyognF-m1P-gbwmWqjNemQuPJPxhWaMfAzCYxlnG3MZAkyur20Lgg5V3

0 0
原创粉丝点击