开发者

Monitor serial port already open

开发者 https://www.devze.com 2022-12-13 10:34 出处:网络
I am try to read data over serial port already open. I have used C# and c++ library for use microsoft api (overlapped and not overlapped I/O), but not work.

I am try to read data over serial port already open.

I have used C# and c++ library for use microsoft api (overlapped and not overlapped I/O), but not work.

I can use same windows api? or other??

Thanks in advance for your avail开发者_如何转开发ability,

Cristiano

http://bugbusters.altervista.org/index.php


Eltima makes a software for this very purpose. I use it as a debugging tool. In addition to giving you access to the traffic on an established link it provides a number of features for logging and analysis.

http://www.virtualserialport.com/products/serialmonitor/


I'm taking the assumption that when you want to backwards engineer the protocol of a serial port device.

As posted above, it can be tricky if the line is already open, but can be done with a couple of extra serial ports.

In order to do this you need to 2 extra serial ports installed on your machine (or a seperate PC) and a small cable to link two of the ports together.

So you have this set up

COM 1 - connected to COM 2 via a small cable (rx to tx, etc).
COM 3 - connected to the serial port device.

The software that drives the serial port device would be configured to COM 1.

A cable physically routes all traffic from COM 1 to COM 2, your software would then route all serial traffic between COM 2 and COM 3 and logging the data inbetween.

This is a useful technique if you want to backwards engineer a serial protocol for a device.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号