Edit me

Standalone python sniffers are in the hardware folder service :

cd /opt/openenergymonitor/BIOS2/hardware

A convenient way to run them is to use docker containers.

over the air (ota) radio service

modbus RTU/TCP sniffer

LEGACY : using the makefile and systemd

If you you want to manage the services through systemd, install the service with the makefile : make install ota2, and remove with : make uninstall ota2. Please note that during the installation process, the conf file is copied by the makefile to the /etc/conf/bios folder

Same for modbus, install with make install modbus in RTU mode or make install modbus mode=tcp in TCP mode. To remove : make uninstall modbus

Supposing you already operate a RTU bus on your THEMIS machine and want to interrogate a PLC using the modbus TCP protocol. Systemd will not permit you to create a second service named modbus, so you have to give a label argument to the makefile. Create a conf file with a name mixing the word modbus and the target label, here tcp:

python3 modbus.py --conf=modbustcp.conf --mode=tcp

To install, A SINGLE INSTRUCTION : make install modbus label=tcp mode=tcp

To remove : make uninstall modbus label=tcp or simply make uninstall name=modbustcp