Wialon-retranslator protocol

Special protocol by Gurtam allowing retranslation of messages from multiple devices between Wialon servers within a single TCP connection​.
flespi parses the Wialon-retranslator protocol messages into a JSON object with the fields listed below in the Parameters tab.

Wialon Retranslator is a universal protocol supported by devices of multiple manufacturers. The protocol is designed by Gurtam for quick message retranslation from multiple devices between Wialon servers within a single TCP connection.
See protocol specification here.

Note for transmitting data from Wialon to flespi: 

In order to transfer object sensors as parameters to the flespi, several conditions have to be met:

1. On the Wialon side it is necessary to use the "wialon_v2" protocol.
2. Enable option "Attach sensors" (In the settings of the retranslator)
3. All sensors should have name according to follow format: only lower case for Latin letters from a to z. Numbers from 0 to 9. The symbol _ can be used. Example: sensor_name - is fully valid.

P.S: This is not a limitation of flespi, these are mandatory requirements of the retranslator on the Wialon side.

absolute.acceleration
number
g
Module of accelerometer vector
Block 'accelerometer'
absolute.deceleration
number
g
Module of deceleration value from accelerometer
Block 'accel_res'
ain
number
volts
Voltage on the analog input
alarm.event
boolean
Alarm event triggered
Block 'alarm trigger'
average.fuel.consumption
number
liters/100km
Average fuel consumption
Block 'impulse fuel consumption',
Block 'instant fuel consumption'
battery.level
number
percentage
Internal battery level
Block 'battery'
battery.voltage
number
volts
Internal battery voltage
Block 'pwr_int'
can.axle.weight
number
kg
Weight on the axle read from CAN
Block 'axis_weight'
can.engine.coolant.temperature
number
celsius
Engine coolant temperature read from CAN
Block 'cool_temp'
can.engine.temperature
number
celsius
Engine temperature read from CAN
Block 'engine_temp'
can.fuel.volume
number
liters
CAN fuel volume
Block 'fuel_volume'
channel.id
number
ID of channel that received a message
device.id
number
ID of device that received a message
device.name
string
Name of device that received a message
device.type.id
number
ID of device type of device that received a message
din
number
Digital inputs bitmask
Block 'avl_inputs'
dout
number
Digital outputs bitmask
Block 'avl_outputs'
engine.efficiency
number
percentage
Engine efficiency sensor
Block 'engine efficiency'
engine.ignition.status
boolean
Engine ignition or ACC status
Block 'engine operation',
Block 'ign'
engine.motorhours
number
hours
Total calculated engine motorhours
Block 'engine hours',
Block 'engine_hours'
engine.oil.pressure
number
Engine oil pressure
Block 'oil_pressure'
engine.rpm
number
rpm
Engine RPM read
Block 'engine rpm',
Block 'engine_rpm'
external.powersource.voltage
number
volts
External power voltage
Block 'pwr_ext',
Block 'voltage'
fuel.consumed
number
liters
Fuel volume totally consumed by vehicle
Block 'absolute fuel consumption',
Block 'fuel_consumption'
fuel.level
number
percentage
Fuel level percentage
Block 'fuel_level'
fuel.volume
number
liters
Fuel volume
Block 'fuel level impulse sensor',
Block 'fuel level'
gsm.cellid
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) base station ID
Block 'cell_id',
Block 'gsm_cell'
gsm.lac
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) location area code
Block 'lac'
gsm.mcc
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) country code
Block 'mcc'
gsm.mnc
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) code
Block 'mnc'
gsm.network.roaming.status
boolean
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) in roaming mode
Block 'hw_cfg_in_roaming'
gsm.signal.level
number
percentage
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) signal strength level
Block 'gsm'
ibutton.code
string
Hexadecimal code of connected iButton
Block 'avl_driver',
Block 'ibutton'
ident
string
Device unique identifier like serial number, IMEI, etc
media
boolean
Message contain media file
media.image
object
Image file in media storage
movement.status
boolean
Current movement state
Block 'real-time motion sensor'
peer
string
IP:port from which device connecting to the channel
position.altitude
number
meters
Altitude value for position
Block 'posinfo'
position.direction
number
degrees
Heading angle at position detection moment
Block 'posinfo'
position.hdop
number
Horizontal dilution of precision
Block 'hdop'
position.latitude
number
degrees
Latitude coordinate value
Block 'posinfo'
position.longitude
number
degrees
Longitude coordinate value
Block 'posinfo'
position.satellites
number
Quantity of satellites used to calculate coordinates for given position information
Block 'posinfo'
position.speed
number
km/h
Instant speed at position detection moment
Block 'posinfo'
private.status
boolean
Device is in private mode
Block 'private mode'
protocol.id
number
ID of protocol
protocol.version
string
Protocol version string
Block 'hw_cfg_protocol_version'
sensor.temperature
number
celsius
Temperature sensor value
Block 'temperature'
server.timestamp
number
seconds
Timestamp when server received a message
tacho.position.speed
number
km/h
Instant speed reported by tacho
Block 'taho_speed'
timestamp
number
seconds
Message timestamp
touch.memory.id
number
Touch Memory Key ID
Block 'touch_key'
trip.engine.motorhours
number
hours
Engine hours for current trip
Block 'relative engine hours'
trip.mileage
number
km
Distance driven since engine start
Block 'odometer'
vehicle.mileage
number
km
Total calculated mileage
Block 'mileage'
x.acceleration
number
g
Accelerometer value X
Block 'accel_x'
y.acceleration
number
g
Accelerometer value Y
Block 'accel_y'
z.acceleration
number
g
Accelerometer value Z
Block 'accel_z'