View Full Version : RS232 Sniffing
Ioannis
- 18th June 2023, 20:03
I'd like to monitor a PC program communicating with a serially connected device with a simple tool, so that I can see what PC is sending and what the device is replying to PC.
I know I can do this with another RS232 and a couple of diodes and resistors but prefer to not use an extra serial port. A simple monitoring window is better.
Anyone that knows such a tool please?
Ioannis
richard
- 18th June 2023, 22:43
this worked for me to monitor ports
https://sourceforge.net/projects/realterm/
Jerson
- 19th June 2023, 03:05
You might want to consider this product. I have used a very early version of it and think it might be what you're looking for. https://www.hhdsoftware.com/serial-port-monitor
Ioannis
- 19th June 2023, 06:23
Thank you both.
The second seems a bit more complicated but more loaded with features.
Ioannis
Jerson
- 19th June 2023, 10:24
Hi Ioannis
The serial port monitor software sits on top of your existing serial port driver on the same PC which communicates with the device. So, you can run your PC software with your device and intercept all the traffic passing to / from the device.
Therefore, whatever traffic passes through the serial port on the PC, it can intercept and display.
Regards
Ioannis
- 19th June 2023, 11:26
Yes, it is a great tool! Thanks,
Ioannis
amgen
- 19th June 2023, 15:50
one thing you could do if you don't need data in real time is LOG the traffic to file, then read it. Hyperterm can log text and so can realterm I think. Some terminal programs may be able to add time-stamp to dats logged'
Ioannis
- 19th June 2023, 16:14
Good idea. Especially if there is a way to disciminate the Tx from Rx data stream.
Thanks,
Ioannis
amgen
- 25th June 2023, 23:51
this simple circuit worked with PIC serial TTL to USB for send/rcv to PC. Just used a second USB to serial converter and actually used a 1K ohm R, then can view both sending and receiving. Open another instance of hyper-term or other terminal program. You could add 3rd USB/serial device and open another terminal prog and see separate send rcv windows
945594539454
Ioannis
- 26th June 2023, 08:40
Thanks amgen.
My preference is to use a software solution than to use an extra serial port.
Ioannis
tumbleweed
- 26th June 2023, 11:13
Try com0com (and some of its associated programs like hub4com). It lets you create virtual ports from a single com port.
https://com0com.sourceforge.net/
Ioannis
- 26th June 2023, 16:15
Nice project this com0com. Will use them in Com to TCP/IP.
But for now I wanted to monitor a real device communicationg with the PC app.
Thanks,
Ioannis
tumbleweed
- 26th June 2023, 18:08
It should do that too.
Hub4com let's you create multiple virtual ports, so you can pipe one real port out to multiple apps
Ioannis
- 27th June 2023, 08:21
Thanks a lot for the suggestions and links.
Ioannis
Powered by vBulletin® Version 4.1.7 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.