Hi,
I was wondering if it is possible to "listen" to a com port when It's in use by another program?
Basically I want to log what is being sent to / received from a com port whilst in use.
Can that be done - has anyone tried this before?
Thanks,
Andy.
:)
I've never tried and don't have a com port to try it on.
Maybe Egil or one of the other guys can help.
Hi Andy,
seems to be possible. Please have a look here i.e. :
http://www.serialsniffer.de/en/sites/serialsniffer.php
and if you have some knowledge of C# :
http://www.codeproject.com/Articles/75770/Basic-serial-port-listening-application
Richard
Hi Andy,
I have never tried that myself, but I have seen it done, so it is possible. I have no idea how to do it.
But I just love that kind of challenges, so will try to figure it out. Monday I'll go to the hospital for a hip replacement, so it may take a while though.
By the way... the CodeProject C# example Richard mentions, works in a similar way as the IWB Serial Library.
Egil
Hi Richard & Egil,
Richard,
The serialsniffer reminds me of an assignment I did at universeity many many years ago.
We had to write an assembly language program to read what was being received by 1 computer's com port which was linked to another computer which was sending the "message" with a cross over cable.
The guy told us the message being sent - "The quick brown fox jumps over...."
And the assignment was to intercept and display the message being sent, but the cunning so and so changed the message!
Fortunately my program worked perfectly!
Maybe for the time being I can find a free program?
Egil,
Very very good luck with the replacement - no break dancing afterwards!
Would be good if you can have a think about it - but your health is more important!!!!!!
Thanks guys,
Andy.
:)
Here is another link...
https://technet.microsoft.com/en-us/sysinternals/bb896644.aspx
Later,
Clint
and another one :
http://www.serialmon.com/
Richard
googled for "free serial port sniffer"
Thanks guys,
I will check out the links and let you know how I get on.
Andy.
:)