Sensor Parameters

The parameter is a required sensor property. The sensors in the system work mainly on the basis of the data received in the parameter.

Parameters can have any names. These names are predefined in the device configuration, for example, param199, param240, TEMP, pwr_int, gsm, can6, and so on. Read the device specification to find out which parameters are available and what they measure. Besides, you can request messages from the unit on the Messages tab and view the available parameters in the corresponding column.

When adding or editing a sensor, you should select its parameter in the drop-down list or enter the parameter name manually.

The same parameter can be used to create any number of sensors. You can see the maximum allowed number of sensors on the Account tab of the user settings.

Virtual parameters

Some parameters are defined in the system by default and are suitable for almost any type of equipment.

speed

speed of motion

altitude

altitude above sea level (maybe not supported by some devices)

sats

satellites count

course

course (direction of motion)

lat

geographical latitude

lon

geographical longitude

time

Unix time of the message

regtime

time of registering a message on the server

Inputs and outputs

The system supports up to 32 digital inputs and outputs. They are adjusted in the following format:

inN

digital input parameter, N — input number

outN

digital output parameter, N — output number

adcN

analog input parameter, N — input number

For example, adc8 is a parameter that registers the values coming from the eighth analog input.

Usually, the data from digital inputs and outputs are presented in messages in the following format: I/O = 0/0, where I refers to inputs, O — outputs. If I/O = 0/0, it means all bits (inputs and outputs) are inactive. If a value in any of them is not zero, it means that one input/output or several of them are active. To determine which exactly, convert the hexadecimal number to binary and use the latter to define a bit number.

For instance, when the ignition was activated, we received the message with the parameter I/O = 10/0. To get the bit number (input) in which the value of the sensor is shown, it is necessary to enter the received value in the calculator in the mode of hexadecimal values (HEX). That is, enter 10 and switch to the binary mode (BIN). We get a new number - 10000. Now we have to calculate in which position 1 has appeared. The calculation is done from right to left. In the given case 1 is in position 5, i. e. the ignition sensor is connected to the fifth port. Since the changed number is before the fraction (I/O), it is the input. Consequently, the parameter name is in5 (digital input 5).

For a sensor, it is also possible to specify the parameter name as in or out to indicate the sum of all inputs and outputs, respectively.

Constant parameter

Besides, the constN parameter can be used to create a sensor that always returns the same value. N is any number, e.g., const10, const-8.5. Such a sensor can be helpful in charts or as a validator.

Such a sensor can be used both independently (for example, in charts to indicate some critical mark) or as a part of the validation chain or in expressions.

Expressions

Parameter for a sensor can be set in the form of expression where you can use:

  • parameters in the current message (adc1, in1 etc.),
  • parameters in the previous message (they begin from the hash sign #, for example, #adc1),
  • bitwise parameters (like param199:3),
  • sensors (sensor name must be in square brackets, for example, [Fuel level]),
  • constant numbers (const10, const-4.54 etc.),
  • mathematical operation signs:

+

addition

subtraction

∗ 

multiplication

division

^exponentiation & rooting

( )

brackets of priority

|value availability check

conversion operation

For example, ^const2 — square, **^**const0.5 — extract the square root.

Download PDF file
Download Word document

See also