0

I want to develop an app that's able to print all of the data exchanged on a COM port (both ways) without blocking the port, so that other(s) app(s) can use it normally.

After some research I've found DataReceivedEvent, but I think that you've to be the owner of the port in order to use it. What I need it's something like that, but for data received and sended, without owning the port.

Is there a way?

rnunes
  • 2,785
  • 7
  • 28
  • 56
  • Do you want to intercept the communication of all programs(and even drivers) or only the communication of some select programs? If it's only some programs you can inject an unmanaged dll into them which intercepts the API they use to communicate with the COM port. – CodesInChaos Dec 10 '10 at 23:01

2 Answers2

0

If you're making a tool, do existing tools not work?

This has been a life saver for me in the past: http://www.serial-port-monitor.com/

Austin Salonen
  • 49,173
  • 15
  • 109
  • 139
0

A hardware splitter will be the easiest solution most likely. See this post for addition details.

Community
  • 1
  • 1
SwDevMan81
  • 48,814
  • 22
  • 151
  • 184