Xexun protocol

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

To connect your tracker using the Xexun protocol, you need to have a xexun 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 using the identifier specified on the tracker casing in the ident field — it can be either a 15-character IMEI or a 12-character identifier (0 + 11 last digits of IMEI). You can check which type of identifier your device has in the channel Toolbox.

Use the Toolbox tab on the device screen to check if the messages are coming.

If the messages in Toolbox are colored red (past) or grey (future), try changing the timezone setting via the SMS command.

acc.alarm
boolean
ACC alarm event
alarm.code
number
Protocol-specific alarm code number
alarm.event
boolean
Alarm event triggered
arm.status
boolean
Device arm status (true - device armed, false - device disarmed)
battery.charging.status
boolean
Battery charging status
battery.level
number
percentage
Internal battery level
battery.low.alarm
boolean
Battery low alarm event
battery.voltage
number
volts
Internal battery voltage
can.dtc
array
Diagnostic trouble code array read from CAN
can.engine.coolant.temperature
number
celsius
Engine coolant temperature read from CAN
can.engine.load.level
number
percentage
Calculated engine load level read from CAN
can.engine.rpm
number
rpm
Engine RPM read from CAN
can.fuel.consumption
number
liters/h
Engine fuel rate read from CAN
can.fuel.consumption.distance
number
liters/100km
Fuel consumption read from CAN
can.onboard.power.voltage
number
volts
CAN onboard power voltage
can.throttle.pedal.level
number
percentage
Throttle pedal push level read from CAN
can.total.driving.time
number
hours
Engine run time read from CAN
can.vehicle.mileage
number
km
Total vehicle mileage read from CAN
can.vehicle.speed
number
km/h
Vehicle speed read from CAN
channel.id
number
ID of channel that received a message
device.id
number
ID of device that received a message
device.imei
string
IMEI of the device
device.name
string
Name of device that received a message
device.temperature
number
celsius
Temperature of device
device.type.id
number
ID of device type of device that received a message
door.alarm
boolean
Door alarm event
door.open.status
boolean
Door open status
engine.blocked.status
boolean
Engine blocked status (fuel cutoff relay), true - engine is blocked, false - engine isn't blocked
engine.ignition.status
boolean
Engine ignition or ACC status
event.code
string
Protocol-specific event code string
fuel.alarm
boolean
Fuel alarm event
fuel.level
number
percentage
Fuel level percentage
geofence.alarm
boolean
Geofence alarm event
gnss.status
boolean
GNSS receiver on/off status
gsm.cellid
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) base station ID
gsm.lac
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) location area code
gsm.mcc
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) country code
gsm.mnc
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) code
ident
string
Device unique identifier like serial number, IMEI, etc
low.speed.alarm
boolean
Vehicle speed is below lower threshold alarm event
movement.event
boolean
Movement detected
overspeeding.event
boolean
Overspeeding detected
payload.text
string
Text Payload received from device
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.valid
boolean
Is position information accurate and valid for given timestamp
power.off.alarm
boolean
Power of alarm event
power.on.status
boolean
Power-on device status
protocol.id
number
ID of protocol
server.timestamp
number
seconds
Timestamp when server received a message
sos.alarm
boolean
SOS alarm trigerred
timestamp
number
seconds
Message timestamp
towing.event
boolean
Towing event detected
vehicle.mileage
number
km
Total calculated mileage
vibration.alarm
boolean
Vibration alarm event
Properties
Custom Command
custom
Send custom command to device
payload: Command payload
Cut OFF restore and electricity of the car [123456 - device password]
{"payload":"powercar123456 11"}
Cut OFF oil and electricity of the car to stop the car [123456 - device password]
{"payload":"powercar123456 00"}