Difference between revisions of "Control application"

From aquarium-doc
Jump to navigationJump to search
Line 23: Line 23:


The application is [[automatic start by using systemd]].
The application is [[automatic start by using systemd]].
== Installation ==
=== Enable I2C on Raspberry Pi ===
See [https://www.mathworks.com/help/supportpkg/raspberrypiio/ref/enablei2c.html detailed instructions how to use rasp-config].
=== Create a file for the message queue ===
The file is automatically created when running <code>make install</code>.
Alternatively, run the command <code>sudo touch /var/local/aquarium-ctrl.mq</code>.
The file is defined in the source file <code>UsrIntrfc/MsgQu.h</code>.

Revision as of 09:19, 26 March 2023

The main control application of Aquarium control implements the following features:

Additionally, the main control application implements the following supporting features:

  • HW-Tests
  • Text-To-Speech interface
  • Logging
  • Command interface to receive instructions from outside of the application
  • Storage of recorded data in SQL database
  • File-based communication to web application
  • Monitoring and repair of relay board state

The control application makes extensive use of the pigpio library.

The architecture of the application uses various threads.

The application is automatic start by using systemd.

Installation

Enable I2C on Raspberry Pi

See detailed instructions how to use rasp-config.

Create a file for the message queue

The file is automatically created when running make install. Alternatively, run the command sudo touch /var/local/aquarium-ctrl.mq. The file is defined in the source file UsrIntrfc/MsgQu.h.