The
vintrigger
command help is as follows.
[armadillo ~]# vintrigger
Usage: vintrigger -o|-u VOLTAGE [-i INTERVAL] [COMMAND ARGS]
Options:
-o, --over=VOLTAGE
Execute the program COMMAND when the detected voltage is equal
to or over the VOLTAGE[mV].
-u, --under=VOLTAGE
Execute the program COMMAND when the detected voltage is equal
to or under the VOLTAGE[mV].
VOLTAGE: Range: 0 - 28980
-i, --interval=INTERVAL
Compare with Vin to the VOLTAGE at INTERVAL second intervals.
INTERVAL: Range: 0 - 4294967295 (Default: 60)
-h, --help
Print usage(this message) and exit.
-v, --version
Print version information and exit.
Figure 5.54. vintrigger Command Help
The following shows an example of monitoring the power supply voltage at intervals of 30 seconds and turning on LED2
when the power supply voltage drops below 11000mV (11V).
[armadillo ~]# vintrigger -u 11000 -i 30 echo 1 > /sys/class/leds/led2/brightness
Figure 5.55. vintrigger Command Example
The
vintrigger
command log is output to the
/var/log/messages
file.
[armadillo ~]# cat /var/log/messages
:
Jul 1 09:38:52 armadillo-iotg vintrigger[812]: waiting for
⏎
an under range alert (11000 mV).
Jul 1 09:38:52 armadillo-iotg vintrigger[812]: exceeded the
⏎
limit. executing command.
Waiting until it falls below the specified voltage (11000mV).
The command is executed as the specified voltage has been reached.
5.9. Armadillo-IoT RS232C Add-on Module RS00
The Armadillo-IoT RS232C Add-on Module RS00 (hereafter referred to as the RS232C add-on module) has one RS232C
level serial port. Since the device driver of the serial port of the RS232C add-on module is implemented as a TTY device,
it can be controlled from the TTY device file.
Armadillo-IoT Gateway G3Product Manual - INTL
Operational Checks
79