IonicWind Software

IWBasic => General Questions => Topic started by: Andy on September 03, 2015, 11:57:51 PM

Title: Com ports
Post by: Andy on September 03, 2015, 11:57:51 PM
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.
:)
Title: Re: Com ports
Post by: LarryMc on September 04, 2015, 12:09:45 AM
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.
Title: Re: Com ports
Post by: RitchieF on September 04, 2015, 12:39:41 AM
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
Title: Re: Com ports
Post by: Egil on September 04, 2015, 02:26:39 AM
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
Title: Re: Com ports
Post by: Andy on September 04, 2015, 07:33:46 AM
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.
:)
Title: Re: Com ports
Post by: ckoehn on September 04, 2015, 09:30:49 AM
Here is another link...

https://technet.microsoft.com/en-us/sysinternals/bb896644.aspx

Later,
Clint
Title: Re: Com ports
Post by: RitchieF on September 04, 2015, 12:42:26 PM
and another one :

http://www.serialmon.com/

Richard

googled for "free serial port sniffer"
Title: Re: Com ports
Post by: Andy on September 05, 2015, 04:16:41 AM
Thanks guys,

I will check out the links and let you know how I get on.

Andy.
:)