串口监控器 [英] Serial Port Monitor

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

问题描述

你好,

我需要监视计算机与外部设备之间的串行通信,以便在从外部设备发送特定数据时可以采取一些措施.

我一直在寻找一个串行端口监视器,可以按照以下方法进行一些更改或某些文档,但似乎找不到任何内容.

有想法吗?

Hello,

I need to monitor a serial comunication between my computer and an external device so I can take some actions when specific data is sent from the external device.

I was looking for a serial port monitor that I could make some changes or some document with the approach to follow but can''t seem to find any.

Ideas?

Thanks in advance!

推荐答案

最简单的方法就是设置一个SerialPort(请参阅MSDN [ MSDN示例 [如果我以MSDN中介绍的方式设置串行端口,我将能够与另一个应用程序打开相同的端口吗?
不确定我的解释是否正确,但是我需要监视(使用我的应用程序)计算机中另一个应用程序与外部设备之间的串行通信."

否.通常,物理串行端口是一个两设备链接,而SerialPort控件对此进行了模拟.当端口打开时,只能由整个计算机上的单个进程访问-如果考虑正常操作,这是有道理的.您不希望两个设备同时读取数据,因为这样不会获得可重复的结果.

您有两种选择:使用Rajesh建议的SerialPort Monitor-我从没听说过,所以我无法评论它是否可以工作-或采用物理解决方案并将传入的数据连接到两个串行端口在同一台PC上. RS232不应该那样使用,但是只要您将机器的数量保持在两到三台(我有六台,但不推荐),并且仅将RX和地线连接起来,它便可以做到这一点.线索.请勿连接TX或流控制-如有必要,请将它们环回.
The simplest approach is just to set up a SerialPort (see MSDN[^] for the basics) then attach a handler to the SerialPort.DataReceived event MSDN example[^].

You could have found this with a simple Google...

"If I set up the serial port the way presented in MSDN will i be able to open the same port with another app?
Not sure if I explained right, but i need to monitor (with my app) the serial communication between another app in my computer and an external device.
"

No. The normally, a physical Serial Port is a two - device link, and the SerialPort control mimics this. When the port is open, it can only be accessed by a single process on the entire machine - which makes sense, if you think about normal operations. You don''t want data being read by two devices simultaneously because you would not get repeatable results.

You have two options: go with SerialPort Monitor that Rajesh suggested - I''ve never heard of it, so I can''t comment on wetehre it would work - or go with a physical solution and wire the incoming data to two serial ports on the same PC. RS232 isn''t supposed to be used like that, but it will do it provided you keep the number of machines to two or three (I have had six, but don''t recommend it) and only wire up the RX and earth leads. Do not wire up TX or flow control - loop them back if you must instead.


下载SerialPort Monitor

此处 [ ^ ]

提示:SerialPort Monitor不是免费版本..,在您完成海拔评估期之后,您还可以通过更改系统日期来使用它..
Download SerialPort Monitor

Here[^]

Tip : SerialPort Monitor is not a Free Version.., after completion of your elevationevaluation Period also you can use it by changing your system date..,


如果您想要一个真正免费的串行端口监视器,请使用以下命令:

http://www.serial-port-monitor.com/ [
If you want a truly free serial port monitor, use this one:

http://www.serial-port-monitor.com/[^]

I use it all the time for my projects and it works great.

David


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

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