Terrapin-Rocket-Team / Ground-Station

A Node.js/Electron ground station user interface to display and log APRS messages recieved over Serial
0 stars 0 forks source link

Serial driver Linux support #25

Open jhauerst opened 1 month ago

jhauerst commented 1 month ago

Description

The serial driver currently will only compile on Windows, since it relies on Windows specific header files. While this is expected, the serial driver should also be able to compile on Linux to support future uses of the Ground Station. So, an identical serial interface to the existing interface for the Windows serial port should be developed within the serial driver to allow for use on Linux.

Tasks

Notes

The relevant files include serial/serialPort.hpp and serial/serialPort.cpp.

rk234 commented 1 month ago

Found a good guide on this here and should be able to get it working soon.

rk234 commented 1 month ago

@jhauerst do you know where the byte type is coming from in the serial port header? Is it windows specific?

jhauerst commented 1 month ago

Yeah it seems to be defined somewhere in windows.h. I personally don't like using it so if you want to switch it out for unsigned char or uint8_t that's fine with me.

rk234 commented 1 month ago

Got it, I plan on replacing them.