Avema protocol

Protocol used by GPS tracking devices manufactured by Avema company headquartered in Taiwan.
flespi parses the Avema protocol messages into a JSON object with the fields listed below in the Parameters tab.

To connect your tracker using the Avema protocol, you need to have a avema channel created first.

Point your tracker to the channel's domain name:port via SMS or configuration tool provided by the vendor.

Then create a device instance for your tracker and use a 15-character IMEI (usually specified on the tracker casing) in the ident field.

Use the Logs & Messages tab on the device screen to check if the messages are coming.

It is possible to configure Avema devices OTA using the flespi web-based configurator tool. To connect Avema to Wialon or another platform via flespi please read this article.

ain
number
volts
Voltage on the analog input
battery.voltage
number
volts
Internal battery voltage
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
dout
number
Digital outputs bitmask
event.enum
number
Protocol-specific event code
external.powersource.voltage
number
volts
External power voltage
gsm.cellid
number
GSM base station ID
gsm.lac
number
GSM location area code
gsm.mcc
number
GSM mobile country code
gsm.mnc
number
GSM mobile network code
gsm.network.roaming.status
boolean
GSM network in roaming mode
gsm.network.type
string
The type of the mobile network the device is currently registered to
ident
string
Device unique identifier like serial number, IMEI, etc
network.signal.rssi
number
dbm
Network signal strength
peer
string
IP:port from which device connecting to the channel
position.altitude
number
meters
Altitude value for position
position.direction
number
degrees
Heading angle at position detection moment
position.latitude
number
degrees
Latitude coordinate value
position.longitude
number
degrees
Longitude coordinate value
position.satellites
number
Quantity of satellites used to calculate coordinates for given position information
position.speed
number
km/h
Instant speed at position detection moment
position.timestamp
number
seconds
Timestamp when coordinates where calculated
protocol.id
number
ID of protocol
server.timestamp
number
seconds
Timestamp when server received a message
timestamp
number
seconds
Message timestamp
vehicle.mileage
number
km
Total calculated mileage
Properties
Custom command
custom
Send custom command via connection or over SMS
Reboot Device Unit
{"text":"$AVM,BOOT,[Password]"}
Get Device Firmware version
{"text":"$AVM,VER,[Password],?"}
Get Device System Information
{"text":"$AVM,INFO,[Password],?"}