Search code examples
c#serial-portlistenersniffing

In C# how could I listen to a COM (Serial) Port that is already open?


I am using a program that talks to my COMM port, but I have made another program that I want to "sniff" the comm port messages and perform it's own actions against those messages in addition. Is this possible in .NET c#?


Solution

  • There are third party libraries/tools/products that expose the traffic f you are interested.

    Here is one I used for serial port emulation - but I think it provides something you can use: http://com0com.sourceforge.net/