LoggingPreprocessor/Receiver
Thomas Wilkie 83fc44037e Renamed from spelling mistake 2023-12-03 19:05:53 +09:00
..
GetArguments.c Reception and printing working on dummy references file. 2023-11-28 18:20:06 +09:00
GetArguments.h This is at the point of almost working. 2023-11-29 00:20:03 +09:00
PrintDebugMessages.c Everything working for single file processing and reception. 2023-11-29 18:10:07 +09:00
PrintDebugMessages.h This is at the point of almost working. 2023-11-29 00:20:03 +09:00
README.md Renamed from spelling mistake 2023-12-03 19:05:53 +09:00
SerialComms.c Reception and printing working on dummy references file. 2023-11-28 18:20:06 +09:00
SerialComms.h Send and receive over serial working. Can receive messages of arbitrary size 2023-11-25 12:08:52 +09:00
main.c Fixed off-by-one error 2023-12-02 01:42:16 +09:00

README.md

Intended Purpose

This program runs while the device is being run and catches the unique ID's sent over serial, transforming them into the full debug messages based on the content of the preprocessor output file.

Usage

Currently it takes 4 arguments, the location of the References.txt file, the COM port to open, the desired baudrate, and the test string to send over the com port. There are other things that could be added in future but this is enough for now.

Compilation

From the parent folder, make build_rsvr, or:

gcc -o Receiver/app.exe Receiver/main.c Receiver/SerialComms.c -I Receiver -Wall --pedantic

Running

There are default arguments already loaded but these can be changed and just need to have alternatives put in on running the program.

Option Argument Desfault Description
Reference File -R References.txt Directory to the references file with the debug symbols/strings
COM Port -C COM1 Name of the COM port to listen on
Baudrate -B 115200 Baudrate of the COM port
Test string -T Test String Test string to be printed to the COM port