Home > Net >  C # how to monitor already open the serial port of the received data
C # how to monitor already open the serial port of the received data

Time:10-13

As title,
PC serial port has been open an application, is for data communication,

How, in this case, to monitor the serial port of packets,

There are bus hound this USB caught tool, can capture valid data directly from the USB,

Please c # developed how to achieve? Thank you very much!

CodePudding user response:

This like yesterday which to emulation posts, our answer is, you don't want to,

And the post, it needs to be driven development DDK, you need to do is "the use of DDK development a driver filter drivers" (DDK development kit demo itself has driven filtering demo, c + +)

So we say, if the premises is net, my suggestion is that you might as well use directly bus hound drive, such as his driver is bhound7 sys

You directly with his driver, as for the c # how driven communications, that is CreateFile general methods, standards such as IODeviceControl win32api, of course bhound7. Sys this thing has its own IODeviceControl command parameters, this can only be studied by yourself

CodePudding user response:

AccessPort the software works, PC monitor is the serial port communication message, and don't open conflict

CodePudding user response:

Do not know to understand right, try SerialPort method DataReceived events to monitor?

CodePudding user response:

reference Yyuanyuxin reply: 3/f
do not know to understand right, try SerialPort method DataReceived events to monitor?
no, is a software has been opened, a serial port is used, in data transmission, the need to develop a software, monitor the open serial port data,

CodePudding user response:

refer to the second floor I rubbed ahhh response: a
AccessPort this software can, PC monitor is the serial port communication message, and don't open conflict
now needs is to develop a similar software, listening to a serial port, then grab you need,

CodePudding user response:

reference 1st floor wanghui0380 response:
this like yesterday which to emulation posts, our answer is, you don't want to,

And the post, it needs to be driven development DDK, you need to do is "the use of DDK development a driver filter drivers" (DDK development kit demo itself has driven filtering demo, c + +)

So we say, if the premises is net, my suggestion is that you might as well use directly bus hound drive, such as his driver is bhound7 sys

You directly with his driver, as for the c # how driven communications, that is CreateFile general methods, standards such as IODeviceControl win32api, bhound7. Of course this thing has its own IODeviceControl sys command parameters, this can only be myself studied
bus hound is, for example, the real need is to monitor a serial port, not usb,

CodePudding user response:

All the same, but listen instead of usb right

Because if you check win32API driven communications, you will find that the createfile connect a serial port has a parameter must be set to monopolize, so you can't multiple Shared articulated, so can only adopt the way of writing 'filter drivers' to complete

Filter drivers demo in WDK demo have, of course he is a standard C +

Ps: what is the filter driver, baidu yourself, I will not talk nonsense

CodePudding user response:

For example
https://www.docin.com/p-85010135.html
  •  Tags:  
  • C#
  • Related