的SerialPort嗅探 [英] SerialPort Sniffing

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

问题描述

我有一个通过USB接口,它被映射到虚拟串口通过驱动程序和软件,连接到串行端口,并允许我来管理设备连接到PC的设备。我不知道是什么协议,软件使用与设备连接。我能想出的协议通过查看设备和软件之间的通信,但与串行端口的是,一旦软件连接到串行端口,没有办法其他软件可以连接到该端口太(这使得当然感)。

I have a device that connects to pc via USB, which gets mapped to virtual serial port by driver and a software, that connects to that serial port and allows me to manage the device. I don't know what protocol software uses to connect with the device. I could figure out the protocol by looking at communication between device and software, but the thing with serial ports is that once software connects to serial port, there is not way other software could connect to that port too (which makes sense of course).

所以,我想我可以写,它下面的一个软件:

So I thought I could write a piece of software that does following:

  1. 连接到虚拟串口设备处于
  2. 在创建虚拟串口软件将连接到
  3. 在内部传递一切,从第一口第​​二,反之亦然,但记录所有这些信息在一定转储文件

在这里我的问题是:是可以使用.NET创建虚拟串口?我没有听到,因为你不知何故需要创建一个驱动器或东西,需要内核级编程,是这样吗?如果是这样,仍然,是有办法,我可以观察设备和软件之间的沟通没有任何桥接软件?

My question here is: is that possible to create virtual serial port using .NET? I heard no, because you somehow need to create a driver or something and that requires kernel-level programming, is that right? And if that is, still, is there a way I could observe communication between a device and a software without any bridging software?

在此先感谢! 亚伦

推荐答案

你试过Portmon。

Have you tried Portmon.

这是什么网站说

这是监控并在系统上显示的所有串行和并行端口活动的实用程序。它拥有先进的过滤和搜索功能,使其成为一个强大的工具,探索的Windows的工作方式,看到应用程序如何使用的端口,或跟踪系统或应用程序的配置问题。

it's a utility that monitors and displays all serial and parallel port activity on a system. It has advanced filtering and search capabilities that make it a powerful tool for exploring the way Windows works, seeing how applications use ports, or tracking down problems in system or application configurations.

http://technet.microsoft.com/en-us/sysinternals/bb896644

已知问题:有一个在PortMon v3.03一个错误(见这里),使所需要的计算机菜单项不会出现在某些系统上。一个解决办法是连接到本地计算机的<一个href="http://wired.speedzdesigns.net/UTILITIES_&_TWEAKS/SYSINTERNALS/Older%20Versions/Portmon%20for%20Windows%20v3.02/PortMon/"相对=nofollow> V3.02 打开v3.03之前。

KNOWN ISSUE: There's a bug in PortMon v3.03 (see here) which makes the needed 'Computer' menu item not appear on some systems. One workaround is to connect to local machine in v3.02 before opening v3.03.

这篇关于的SerialPort嗅探的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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