Teltonika-mobility-mqtt protocol

Protocol used by mobility tracking devices manufactured by Teltonika headquartered in Lithuania.
flespi parses the Teltonika-mobility-mqtt protocol messages into a JSON object with the fields listed below in the Parameters tab.

This MQTT-based protocol with CBOR payload is used by some Teltonika Mobility devices.

For device configuration on the Teltonika portal, in the MQTT Settings form use the channel host and port in the IP and Port fields. 

teltonika mqtt client configuration

The Login and Password fields are used only if you enable the Authenticate incoming MQTT connections option in the flespi channel configuration. The User ID field is used as an MQTT Client ID string which should be unique within all devices of your channel.

ain
number
volts
Voltage on the analog input
IO ID 29
battery.current
number
amperes
Battery current
IO ID 21
battery.level
number
percentage
Internal battery level
IO ID 39
battery.voltage
number
volts
Internal battery voltage
IO ID 20
can.data.frame
string
CAN data frame value in HEX representation
IO ID 43...69
can.error.code
number
Vehicle error code reported by CAN bus
IO ID 32
can.status.code
number
Vehicle status code reported by CAN bus
IO ID 31
can.vehicle.battery.error
number
Vehicle battery error code reported by CAN bus
IO ID 36
can.vehicle.battery.level
number
percentage
CAN-bus reported vehicle battery level for EV or HEV
IO ID 33
can.vehicle.lock.state
number
Vehicle lock status reported by CAN bus
IO ID 37
can.vehicle.mileage
number
km
Total vehicle mileage read from CAN
IO ID 34
can.vehicle.mode
number
Vehicle mode reported by CAN bus
IO ID 38
can.vehicle.speed
number
km/h
Vehicle speed read from CAN
IO ID 30,
IO ID 70
can.vehicle.trip.mileage
number
km
Vehicle odometer reported by CAN bus
IO ID 35
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
IO ID 22,
IO ID 23,
IO ID 24
engine.ignition.status
boolean
Engine ignition or ACC status
IO ID 25
external.powersource.voltage
number
volts
External power voltage
IO ID 19
gsm.cellid
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) base station ID
IO ID 16
gsm.lac
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) location area code
IO ID 17
gsm.mcc
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) country code
IO ID 18
gsm.mnc
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) code
IO ID 18
gsm.operator.code
string
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) operator code, which is MCC joined with MNC
IO ID 18
gsm.signal.dbm
number
dbm
Strength of the Mobile network (GSM, 3G, 4G, LTE, 5G, ...) signal
IO ID 15
gsm.sim.iccid
string
Integrated Circuit Card Id of SIM card of the Mobile network (GSM, 3G, 4G, LTE, 5G, ...)
IO ID 40
ident
string
Device unique identifier like serial number, IMEI, etc
instant.movement.status
boolean
Instant movement status
IO ID 41
movement.status
boolean
Current movement state
IO ID 11
peer
string
IP:port from which device connecting to the channel
position.altitude
number
meters
Altitude value for position
IO ID 4
position.direction
number
degrees
Heading angle at position detection moment
IO ID 5
position.fix.type
number
GNSS fix type enum (0 = "not fixed", 1 = "2D", 2 = "3D", null = "unknown")
IO ID 10
position.hdop
number
Horizontal dilution of precision
IO ID 7
position.latitude
number
degrees
Latitude coordinate value
IO ID 2
position.longitude
number
degrees
Longitude coordinate value
IO ID 3
position.pdop
number
Position dilution of precision
IO ID 8
position.speed
number
km/h
Instant speed at position detection moment
IO ID 6
position.vdop
number
Vertical dilution of precision
IO ID 9
protocol.id
number
ID of protocol
server.timestamp
number
seconds
Timestamp when server received a message
sleep.mode
number
Sleep mode
IO ID 42
timestamp
number
seconds
Message timestamp
IO ID 1
trip.mileage
number
km
Distance driven since engine start
IO ID 28
trip.status
boolean
Trip status, true if trip started, false - if stopped
IO ID 27
vehicle.mileage
number
km
Total calculated mileage
IO ID 26
x.acceleration
number
g
Accelerometer value X
IO ID 12
y.acceleration
number
g
Accelerometer value Y
IO ID 13
z.acceleration
number
g
Accelerometer value Z
IO ID 14
Properties
Custom command
custom
Send custom command to device
payload: Command payload
Connect to configured FOTA WEB server
{"payload":"@fota_web_connect"}