October 29, 2025, 01:10:47 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Com ports

Started by Andy, September 03, 2015, 11:57:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

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.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

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.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

RitchieF


Egil

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
Support Amateur Radio  -  Have a ham  for dinner!

Andy

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.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.


RitchieF

and another one :

http://www.serialmon.com/

Richard

googled for "free serial port sniffer"

Andy

Thanks guys,

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

Andy.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.