伪造RS232串行端口 [英] Faking an RS232 Serial Port

查看:104
本文介绍了伪造RS232串行端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个项目,该项目具有许多通过RS232串行端口连接到部署机器的硬件传感器.

I'm developing a project that has a number of hardware sensors connecting to the deployment machine through RS232 serial ports.

但是...我正在使用没有物理RS232串行端口的机器上进行开发,但是我想制作伪造的串行端口,以便伪造硬件传感器的输入,从而可以连接到这些端口并从中输出数据.

But ... I'm developing on a machine without an physical RS232 serial ports, but I would like to make fake serial ports that I can connect to and output data from with the aim of faking input from hardware sensors.

有人知道在Windows XP上创建伪串行端口并对其进行控制的方法吗?

Does anyone know of a way to create a fake serial port and control it on Windows XP?

推荐答案

如果您正在为Windows开发,则 com0com 项目可能就是您想要的.

If you are developing for Windows, the com0com project might be, what you are looking for.

它提供了通过虚拟调制解调器连接链接的成对的虚拟COM端口.然后,您可以使用自己喜欢的终端应用程序或任何您喜欢的应用程序将数据发送到一个COM端口并从另一个COM端口接收数据.

It provides pairs of virtual COM ports that are linked via a nullmodem connetion. You can then use your favorite terminal application or whatever you like to send data to one COM port and recieve from the other one.

Thomas 指出该项目缺少签名的驱动程序,这在某些Windows版本(例如Windows 7 x64)上尤其成问题.

As Thomas pointed out the project lacks of a signed driver, which is especially problematic on certain Windows version (e.g. Windows 7 x64).

周围有几个非正式的 com0com 版本,它们确实包含签名的驱动程序.可以下载一个最新版本(3.0.0.0),例如来自此处.

There are a couple of unofficial com0com versions around that do contain a signed driver. One recent verion (3.0.0.0) can be downloaded e.g. from here.

这篇关于伪造RS232串行端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆