Windows Serial Port Logger

Posted on  by

Jan 12, 2012  On Windows 95 and 98, the Portmon GUI relies on a dynamically loaded VxD to capture serial and parallel activity. The Windows VCOMM (Virtual Communications) device driver serves as the interface to parallel and serial devices, so applications that access ports indirectly use its services. Advanced Serial Data Logger inputs RS232 data directly into file, Excel, Access, or any Windows application. Advanced Serial Data Logger provides real-time data collection from any serial device or instrument. Send and receive RS232 data across a RS232 port or RS485 port with hardware converter. Free Serial Analyzer is a non-intrusive Serial Port sniffer and software RS-232/RS-422/RS-485 protocol analyzer for Windows. Using this freeware RS232/RS485/RS422 logic analyzer utility you'll be able to capture/display any data and commands transmitted via Serial Ports of your computer. I need a Windows program to log serial port activity. I'll have data arriving in spurts of maybe 1,000 characters, four times per second. This will be going on for roughly 24 hours. I'd love time stamps entered into the data stream, but I can live without that. I need reliable logging without user intervention. Portmon for Windows v3.03.; 3 minutes to read; In this article. By Mark Russinovich. Published: January 12, 2012. Download Portmon (226 KB) Run now from Sysinternals Live. Portmon is a utility that monitors and displays all serial and parallel port activity on a system. It has advanced filtering and search capabilities.

  1. Parallel Port
  2. Windows 10 Serial Port Sniffer
  3. Windows Serial Port Logger
Active3 years, 11 months ago

Aug 19, 2019  Serial Port Logger by Eltima COM Port Logger by Eltima takes the leading position in the market of software apps for serial data reading and recording. Serial Port Logger is a convenient tool to log and analyze COM port activity. SerialMon is a free RS232 port analyzer for Windows that takes up little space. It can monitor serial port communication through a software or with a simple hardware solution. Supports ABB RP570, ABB SPA-bus and NMEA 0183 protocols. Portmon for Windows. Portmon can monitor and display all serial port activity in a system. Also a good tool.

I'm working on an embedded system and it uses one serial port for all it's logging purposes.

Is there a tool out there that allows you to filter lines into different windows (or remove them altogether) so that I can separate the output of the various logging sub-systems and remove spam messages that show up multiple times a second?

I'd prefer an open-source solution, but a highly-recommend closed product might do.

Bill KBill K
55.2k13 gold badges88 silver badges140 bronze badges

closed as off-topic by Machavity, Pang, Makyen, Paul Roub, Petter FribergMar 17 '17 at 20:35

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • 'Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.' – Machavity, Pang, Makyen, Paul Roub, Petter Friberg
If this question can be reworded to fit the rules in the help center, please edit the question.

10 Answers

I've never thought of doing such a thing, but here's one product that might do the trick: Eltima Serial Port Splitter. It claims to be able to take one COM port and turn it into multiple virtual ports to connect to many applications. You might be able to take each application and just look at one kind of output.

Personally, I would just write a python script with PySerial and something like PyQT or wxPython (GUI libraries) to filter the data to different windows. It's an easy language to learn and makes a handy tool for embedded systems development for things such as this.

Jay AtkinsonJay Atkinson
2,6911 gold badge21 silver badges39 bronze badges

I would do the following:

Use Python.

  • Use Python's logging module
  • Use 3rd-party pySerial module

Write a Python program to read the serial data from the device, and translate it into log item for Python's logging module.

Sale
  • If your device's log messages have some sort of source identifier, translate that to a Python 'logger' name according to your needs, using the getLogger() function. You can define logger names any way that you need, e.g. to define log source or category.
  • If your device's log messages have a severity indication, translate it to the lvl parameter to the logger's log() method. Otherwise just use one of the logger methods such as info().

Make use of the Python logging module's config file feature to filter the data as you want in a particular situation.

  • You can filter particular log items by severity and logger name.
  • You can log to multiple destinations: You can filter and print certain log items to screen, and at the same time filter and print certain log items to one or more files. You can mix these in any combination that you want. It's very flexible.
  • You could have several logging config files, for several different logging purposes, and simply specify which one you want to use via the command line each time you run your program.

Parallel Port

I've used Python's logging module with config files to set up my filtering, and it's really terrific.

Craig McQueenCraig McQueen
28.6k25 gold badges102 silver badges158 bronze badges

You can use the Eltima's splitter with Advanced Serial Data Logger, this software has several filter plug-ins that can filter out unnecessary messages.

Helen DownsHelen Downs

I guess it will depend on the format your logs have. If they looks like (or you can make them look like) the syslog format, you can try the following:

AlejandroAlejandro

I would personally use the Python method described above, but another (relatively easy) way to go about it would be to use sed.

Windows serial port logger fl

Build a couple different filters to show precisely what you want from the stream, and then pipe in tail -f of your serial device file.

Paul McMillanPaul McMillan
16.8k7 gold badges48 silver badges68 bronze badges

SmarTerm allows you to connect to many different serial ports in a tabbed interface. It also has a Visual Basic like scripting language that allows you to write scripts for different needs. I wrote quite a few scripts for updating embedded software and also automating the saving of logs in multiple tabs.

Mark NorgrenMark Norgren
1,1345 gold badges21 silver badges28 bronze badges

Try Powershell. You obviously need to add filtering, but this should get you started

Guitar rig software free online GUITAR RIG 5 PLAYER is a free effects processor – great for building effects chains, for warming up a signal, and yes, also for recording guitar. The included FACTORY SELECTION provides a British-style tube amp plus a matched cabinet, and 13 effects and sound modifiers. GUITAR RIG PRESETS ONLINE IS THE PERFECT SOURCE FOR GUITAR RIG SOFTWARE USERS TO IMPROVE SIGNIFICANTLY PLAYING PERFORMANCE. NI Guitar Rig Software user! Now it`s possible to get thousands of Guitar Rig Presets from one place, instead of searching them one by one all over the web. You can save a lot of time.

Mathias FMathias F
9,23618 gold badges72 silver badges136 bronze badges
sanmaisanmai
11.6k8 gold badges44 silver badges68 bronze badges

Windows 10 Serial Port Sniffer

My first choice is to always run PortMon (originally from SysInternals). It has a filter option where you can type in strings to include, exclude, or highlight:

I have used this for years on Windows NT/2000/XP with great success.

Hopefully, you're running a 32-bit Windows OS, because if you're running 64bit, you'll have to go with something like Eltima's product.

DaveDave
9,70212 gold badges76 silver badges137 bronze badges

There's always the venerable protocol analyzer.

You might only get one color on the screen, but it's a platform independent serial port logging solution.

WildCrustacean

Windows Serial Port Logger

WildCrustacean
5,1811 gold badge26 silver badges40 bronze badges

Not the answer you're looking for? Browse other questions tagged debuggingembeddedserial-port or ask your own question.