In C# how could I listen to a COM (Serial) Port that is already open?(在 C# 中,我如何监听已经打开的 COM(串行)端口?)
问题描述
我正在使用一个与我的 COMM 端口通信的程序,但我已经制作了另一个程序,我想嗅探"通信端口消息并对这些消息执行它自己的操作.这在 .NET c# 中可行吗?
I am using a program that talks to my COMM port, but I have made another program that I want to "sniff" the comm port messages and perform it's own actions against those messages in addition. Is this possible in .NET c#?
推荐答案
有第三方库/工具/产品会暴露你感兴趣的流量.
There are third party libraries/tools/products that expose the traffic f you are interested.
这是我用于串行端口仿真的一个 - 但我认为它提供了一些您可以使用的东西:http://com0com.sourceforge.net/
Here is one I used for serial port emulation - but I think it provides something you can use: http://com0com.sourceforge.net/
这篇关于在 C# 中,我如何监听已经打开的 COM(串行)端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 C# 中,我如何监听已经打开的 COM(串行)端口?
基础教程推荐
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
