Hermes is a background process on the Schulich Elysia’s onboard computer. It rebroadcasts a data feed from the Central Communication System and also logs the data.
The name is inspired by the Olympian god Hermes who is portrayed as a messenger and scribe of the gods.
In the config.ini file, there is a SerialPort
section:
[SerialPort]
portName=/dev/pts/7
baudrate=115200
-
portName
- path to the serial port (either CCS, XBee, or a virtual serial port)-
On debian based distros, physical devices can be found in
/dev/
, e.g/dev/ttyUSB0
. Plug/Unplug the device as needed to find it
-
-
baudrate
- the rate the information is sent-
Ensure that both ends of communication (CCS/Test Tool/XBee) have the same baudrate.
-
CCS & Test Tool is set in source code
-
XBees are configured using XCTU
-
-
To have Hermes forward its input serial port to another one (eg. forward CSS serial data to an XBee), use the OutputSerialPort
section.
[OutputSerialPort]
outputSerialEnabled=true
portName=/dev/ttyUSB0
baudrate=115200
-
outputSerialEnabled
- Set true to enable forwarding -
portName
- Set to the path of the output port -
baudrate
- Baudrate of the information, will likely match the baudrate of the input port
In this repo, there are dependencies needed before you will be able to build or run anything.
Before proceding with the installation, contact the Visual Communication leads to get your conan account set up.
If you don’t already have conan and RabbitMQ installed from another project, run the setup script:
./EpsilonHermesSetup.sh
When first setting up your project with QT creator, you must first add a custom step to allow Conan to install dependencies.
-
Navigate to
Projects → Build
-
In
Build Steps
, selectAdd Build Step → Custom Process Step
-
Add the conan command to the step
-
Command:
$HOME/.local/bin/conan
-
Arguments:
install ../conanfile.txt --build=missing -s compiler.libcxx="libstdc++11"
-
Working Directory:
%{buildDir}
-
-
Move the step to occur as the first step in the process
-
Create a new directory for your build & navigate into it:
`mkdir build && cd build`
-
If you were running this on the same terminal you ran the setup script on, reload your environment:
source ~/.profile
-
Install conan dependencies:
`conan install ../conanfile.txt --build=missing -s compiler.libcxx="libstdc++11"`
-
Call qmake, passing in the directory with the path to the root
SchulichEpsilonHermes.pro
to generate the makefile:`qmake ../src/SchulichEpsilonHermes.pro`
-
Later, if you need to re-run qmake on the project due to a new UI file or a change to a .pro, call:
`make qmake_all`
-
-
Build:
`make -j4`