MaxiGaugeTPG366 Satellite#

Name

MaxiGaugeTPG366

Description

Satellite for the MaxiGaugeTPG366 pressure sensor

Language

Python

Category

Environment Sensors

Website

madmax/hamburg/maxigaugetpg366-satellite

Description#

Constellation satellite to read pressures from a MaxiGauge TPG366 device.

Note

This satellite requires write access to the serial port or USB-to-serial converter the device is attached to. It is recommended to not run this satellite with root privileges but to allow the regular user access to the required port instead. On Unix, if the port is e.g. /dev/ttyUSB0, the group can be found via stat /dev/ttyUSB0 (the Gid entry). If the group is e.g. dialout, the permissions can be given with sudo usermod -a -G dialout $USER. A restart is required for the changes to be effective.

Parameters#

Configuration

Description

Type

Default Value

port

Path to serial device, e.g. /dev/ttyUSB0

String

unit

Possible values are: 0: mbar/bar, 1: Torr, 2: Pascal, 3: Micron, 4: hPascal, 5: Volt

Integer

4

channel_names

Names of the recorded metrics

List

["PRESSURE1", "PRESSURE2", "PRESSURE3", "PRESSURE4", "PRESSURE5", "PRESSURE6"]

sampling_interval

Sampling interval in seconds

Integer

10

Metrics#

Metric

Description

Value Type

Metric Type

Interval

PRESSURE1-6

Pressure channels, names and unit are read from configuration (see above). Special values: -1 - Underrange, -2 Overrange, -3: Error

Float

LAST_VALUE

configurable

Framework Parameters#

This satellite inherits the following framework parameters from its base classes:

Parameters inherited from Satellite#

Autonomous Operation#

Parameter

Type

Description

Default Value

_max_heartbeat_interval

Unsigned integer

Maximum interval in seconds between heartbeats to be sent to other Constellation components. The time between heartbeat is adjusted automatically according to the number of nodes in the Constellation but will never exceed this value.

30

_role

Role name

Role this satellite should take in the Constellation. Accepted values are ESSENTIAL, DYNAMIC, TRANSIENT and NONE.

DYNAMIC

Transition Orchestration#

Parameters to control autonomous transition orchestration of satellites:

Parameter

Type

Description

Default Value

_conditional_transition_timeout

Unsigned integer

Timeout in seconds to wait for all conditions to be satisfied for conditional transitioning

30

_require_initializing_after

List of strings

List of canonical names of remote satellites for conditional transitioning in initializing state

-

_require_launching_after

List of strings

List of canonical names of remote satellites for conditional transitioning in launching state

-

_require_landing_after

List of strings

List of canonical names of remote satellites for conditional transitioning in landing state

-

_require_starting_after

List of strings

List of canonical names of remote satellites for conditional transitioning in starting state

-

_require_stopping_after

List of strings

List of canonical names of remote satellites for conditional transitioning in stopping state

-

Framework Metrics#

This satellite inherits the following framework metrics from its base classes:

Metrics inherited from Satellite#

None