Black Box AlertWerks AW3000 User Manual page 19

Table of Contents

Advertisement

CHAPTER 4: CREATING A VIRTUAL SENSOR
Since AW3000 is a Linux device, and since Linux has its own local interface, this virtual sensor will never be false. To learn
how AW3000 works, you can practice with other methods.
METHOD
PING
LATENCY
SNMPGET
SNMPTRAP
SQL/Maria
WGET
MATH
MULTIMATH
TABLE 4-1. EXPLANATION OF METHODS
EXPLANATION
Get information about availability of IP devices.
Get information about availability of IP devices plus their network latency.
Get information from IP devices. You need to know certain parameters such as OID, Community, and
IP address. This manual can't explain SNMP completely. Black Box offers training and videos about this
topic.
Traps are sent from IP devices to AW3000. In these Traps information pieces and values are normally
included.
Get information from other databases. You need to know certain parameters and enter a valid SQL
Command. This manual can't explain SQL completely. Black Box offers training and videos about this
topic.
For testing purposes, you may use AW3000's database with these settings:
IP: 127.0.0.1
User: iot
PW: iot
Database: LoRa
Command: Select count(*) from sensors
This will provide you with the amount of physical sensors seen or joined. Get information from
webpages. You need to know the address and limiters. The value retrieved is what is between
the limiters. If the string between the limiters includes a comma ( , ) then it is for a floating point
calculation converted to a dot ( . ). The webpage that you use for WGET method should be a maximum
of 1 Megabyte.
Do some arithmetic and mathematics with values. You can select 1-2 sensors, or 1 sensor and 1 fixed
value, or 2 fixed values.
With the values you can perform:
+
Mathematical addition
-
Mathematical subtraction (resulting in negative value if second value is larger)
*
Mathematical Multiplication
/
Mathematical Division (resulting in 0 when second value is 0)
Absdiff Difference between the two values (always positive)
Average Average of both values
Min
The lowest of both values
Max
The highest of both values
With this virtual sensor method, you can perform even more math, but you need certain knowledge.
For MULTIMATH you can enter a formula with brackets. The formula is processed by the SQL process.
So any formula that is possible with a SELECT statement is also possible here.
Values of sensors are represented by P or V for physical or virtual sensors followed by the sensor's index
number. Example: 2*(p1+p2+v5)
Watch the log for errors if you do not get a valid result after setting it up.
1.877.877.2269
BLACKBOX.COM
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.877.2269
19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Eme800a-usEme800a-eu

Table of Contents