opensmartmesh / osmesh-logger

Translating and logging raw messages received on serial port from receiver dongle
MIT License
0 stars 1 forks source link

Open Smart Mesh Logger

Your central node holds the database and the logger serves as a translator from the network radio messages to the messages send to the central server to be saved in the databse.

To see how the server interacts with the database see osmesh-server-api

Here is a global picture of the logger

       \                        /            \       /
osmesh  |--> | USB UART | ---> |  Translator  |-->  |  Archiver
node   /                        \   c++      /       \  python

The logger is the sum of the Translator and the Archiver. Translator and Archiver might be fused later into the same application.

How to compile and run the C++ translator

Compiling

You need to have scons installed

To compile:

# cd osmesh-logger/translator
# scons

Running the logger

# cd osmesh-logger/translator/build
# ./ser

Command line options

Command line examples

# ./ser
# ./ser port=/dev/ttyUSB0 logfile=logfile.txt
# ./ser configfile=conf2.txt

Parameters:

How to run the python archiver

# cd osmesh-logger/archiver
# python main.py /dev/ttyACM0

For now the archiver is not linked to the translator, so it is awaiting for some data from the serial port, sent by an arduino for instance.