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

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

问题描述

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

但是......我正在一台没有物理 RS​​232 串行端口的机器上进行开发,但我想制作可以连接并输出数据的假串行端口,目的是伪造来自硬件传感器的输入.

有谁知道在 Windows XP 上创建假串行端口并控制它的方法?

解决方案

如果你正在为 Windows 开发,com0com 项目可能是您正在寻找的.

它提供了成对的虚拟 COM 端口,它们通过 nullmodem 连接进行链接.然后,您可以使用您最喜欢的终端应用程序或任何您喜欢的方式将数据发送到一个 COM 端口并从另一个端口接收.

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

有几个非官方的 com0com 版本确实包含签名的驱动程序.可以下载一个最新版本(3.0.0.0),例如来自这里.

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

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.

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

解决方案

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

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.

EDIT:

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

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天全站免登陆