如何监听已被其他应用程序使用的COM端口 [英] How to listen to COM port which is already in use by another application

查看:553
本文介绍了如何监听已被其他应用程序使用的COM端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我在从另一个应用程序正在使用的Com端口读取数据时遇到了一些问题。我收到错误COM端口已经打开。访问被拒绝。这是预期的。



但是有工具设备监控工作室可以做同样的事情。它可以监视另一个应用程序已经打开的com端口上的数据流。



它是通过调用一些Windows级API来实现的吗?



我尝试了什么:



设备监控工具可以通过com端口监控数据已经由另一个应用程序打开。

解决方案

这些工具通常实现连接到串行设备的过滤器设备驱动程序。有一篇旧文章与C示例: NT的串行端口间谍| Dobb博士的 [ ^

Hi,


I am facing some issues while reading data form a Com port which is already in use by another application.I got error "COM port already open.Access Denied".This is expected.

But there is tool "Device monitoring studio" which can do the same.It can monitor the data flow on the com port which is already open by another application.

Is it doing by calling some windows level APIs?

What I have tried:

Device monitoring studio tool can monitor the data over the com port which is already opened by another application.

解决方案

Such tools are usually implementing a filter device driver that is attached to a serial device. There is an old article with C examples: A Serial Port Spy for NT | Dr Dobb's[^]


这篇关于如何监听已被其他应用程序使用的COM端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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