Comlogger

Artifact [c80ee1455c]
Login

Artifact c80ee1455c0845461a3c78bb2b199d2366293448:

Wiki page [Comlogger] by Les 2017-03-28 12:09:24.
D 2017-03-28T12:09:24.120
L Comlogger
N text/x-markdown
P 4e1e39dd31fe27e3c60be88471c54777e4832e9a
U Les
W 1119
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!).

<img src=https://i0.wp.com/lesfarrell.co.uk/wp-content/uploads/2016/09/comlogger2.jpg?w=709>

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.
Z 0fceead077d390f664d84229c0511d9a