使用另一端的软件/虚拟 COM 端口和控制台/终端调试 COM 端口读/写

发布于 2024-09-26 06:18:16 字数 390 浏览 1 评论 0原文

我有一个 Delphi 应用程序,可以读取/写入连接到大型硬件设备的 COM 端口,因此在开发过程中我通常没有可用的硬件。也就是说,通信协议相当简单,所以我一般可以进行开发并让人现场测试它,并且通常可以工作。不过,有时我会遇到更困难的问题。为了解决这个问题,我想设置一个虚拟 COM 端口,其中 COM 端口的一侧是我的应用程序,另一侧是一个非常简单的 COM 端口调试控制台(类似于旧的调制解调器终端程序),其中 ASCII 命令是我的应用程序应用程序发送记录在屏幕上,我可以输入一些 ASCII 命令发送回我的应用程序以模拟硬件设备。我一直无法找到任何提供虚拟/软件 COM 端口和控制台/终端进行调试的工具。有人有软件建议和步骤来设置类似的东西吗?

软件/虚拟COM端口和终端需要支持Windows 7 64位(或Vista 32,如果需要)。

I have a Delphi application that reads/writes to a COM port connected to a large hardware device, so I don't usually have the hardware available during development. That said, the communication protocol is fairly simple, so I can generally do the development and have someone onsite test it, and it usually works. Occasionally I run into a harder problem, though. To solve this, I'd like to setup a virtual COM port where one side of the COM port is my application and the other side is a very simple COM port debug console (similar to the old modem terminal programs), where ASCII commands my app sends are logged onscreen and I can type in some ASCII command to send back to my application to simulate the hardware device. I've been unable to find any tools that provide a virtual/software COM port and a console/terminal to debug with. Does anyone have software suggestions and steps to set something like this up?

The software/virtual COM port and terminal need to support Windows 7 64-bit (or Vista 32 if necessary).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

独行侠 2024-10-03 06:18:16

我正在对由创建的配对虚拟 COM 端口执行类似的操作
http://com0com.sourceforge.net/

I'm doing something similar with paired virtual COM ports created by
http://com0com.sourceforge.net/

爱的那么颓废 2024-10-03 06:18:16

我正在使用高级虚拟COM端口,我对此非常满意。不是免费的,但工作起来就像一个魅力 - 即使在 Win7-x64 上也是如此。

I'm using Advanced Virtual COM Port and I'm quite happy with it. Not free, but works like a charm - even with Win7-x64.

永不分离 2024-10-03 06:18:16

难道您不能在应用程序的最低级别插入一个重定向器来弹出控制台而不是将数据写入 COM 吗?应该不会花很长时间。

Can't you just insert a redirector at the lowest level of your application which will pop up a console instead of writing data to COM? Should not take long.

似最初 2024-10-03 06:18:16

我不能保证这一点,但听起来这就是你正在寻找的东西。 http://www.windows7download.com/win7-free -virtual-serial-ports-emulator/yarqmowu.html

I can't vouch for it, but sounds like something like this is what you're looking for. http://www.windows7download.com/win7-free-virtual-serial-ports-emulator/yarqmowu.html

撞了怀 2024-10-03 06:18:16

我已经在没有串行端口的笔记本电脑上成功地使用了 Eterlogic 的虚拟串行端口模拟器 来实现此目的。它比我也用过的 Com0Com 更容易设置。如果您需要对任何通信进行逆向工程,它对于串行端口间谍也很有用
32 位版本免费,64 位版本目前售价 25 美元。在 Vista32 上尝试一下,看看它是否满足您的需要。

I have used Eterlogic's Virtual Serial Ports Emulator successfully for exactly this on a laptop with no serial ports. It's a bit easier to set up than Com0Com, which I have also used. It's also useful for serial port spying if you need to reverse engineer any communications
The 32-bit version is free, the 64-bit version is currently $25. Try it out on Vista32 to see if it does what you need.

肩上的翅膀 2024-10-03 06:18:16

我使用 Com0Com 来实现此目的,但我不知道它是否适用于比 Windows XP 更新的系统。

I use Com0Com for this purpose, but I don't know whether it works with anything more recent than Windows XP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文