为 Win7 64 开发串行端口嗅探器
我想开发一个应用程序,能够打印 COM 端口上交换的所有数据(双向)而不阻塞端口,以便其他应用程序可以正常使用它。
经过一些研究,我发现了 DataReceivedEvent,但我认为您必须成为端口的所有者才能使用它。我需要的是类似的东西,但是对于接收和发送的数据,而不拥有端口。
有办法吗?
I want to develop an app that's able to print all of the data exchanged on a COM port (both ways) without blocking the port, so that other(s) app(s) can use it normally.
After some research I've found DataReceivedEvent, but I think that you've to be the owner of the port in order to use it. What I need it's something like that, but for data received and sended, without owning the port.
Is there a way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
硬件分配器很可能是最简单的解决方案。请参阅这篇文章了解更多详细信息。
A hardware splitter will be the easiest solution most likely. See this post for addition details.
如果你正在制作一个工具,现有的工具不起作用吗?
这在过去对我来说是一个救星:http://www.serial-port-monitor。 com/
If you're making a tool, do existing tools not work?
This has been a life saver for me in the past: http://www.serial-port-monitor.com/