Comlogger is a very small C program which I wrote to aid in the debugging of programs which use serial communications. The program allows you to open a serial port and see what data if any is coming in and to optionally save the data to a log file with a time stamp. This can be useful if you ever need to debug something like a GPS feed or a AIS (Automatic Identification System) transponder feed (Unlikely I know!).
The program runs at the Windows command prompt and assumes the incoming data is set to 8 data bits, no parity and one stopbit with no handshaking (this seems be standard for all of the devices I’ve tested against.)
ComLogger takes a number of command line parameters :
- /Com xx where xx is the comport we wish to open.
- /Baud xxxx the baudrate of the incoming data (the default is 38400).
- /Timestamp adds a ISO 8601 time stamp to the beginning of each line received.
- /Log tells the program to save the data to a logfile file.
- /List lists the available com ports.