Lkgps protocol

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

To connect your tracker using the LKGPS protocol, you need to have a lkgps 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 Toolbox tab on the device screen to check if the messages are coming.

battery.level
number
percentage
Internal battery level
channel.id
number
ID of channel that received a message
defense.active.status
boolean
Defense activated status
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
engine.ignition.status
boolean
Engine ignition or ACC status
event.seqnum
number
Unique event sequence number
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
gsm.signal.dbm
number
dbm
Strength of the Mobile network (GSM, 3G, 4G, LTE, 5G, ...) signal
gsm.sim.iccid
string
Integrated Circuit Card Id of SIM card of the Mobile network (GSM, 3G, 4G, LTE, 5G, ...)
ident
string
Device unique identifier like serial number, IMEI, etc
message.type
string
Message type
overspeeding.event
boolean
Overspeeding detected
peer
string
IP:port from which device connecting to the channel
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.speed
number
km/h
Instant speed at position detection moment
position.valid
boolean
Is position information accurate and valid for given timestamp
power.cut.alarm
boolean
External power cut-off alarm event
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
vehicle.state
string
Vehicle state, such as moving, idling, parked etc
vehicle.state.bitmask
number
Vehicle state flags bitmask
vendor.code
string
Vendor identification string code
vibration.alarm
boolean
Vibration alarm event
Properties
Custom command
custom
Send custom command to device, Scheme: "*,,#". You have to specify payload only
payload: Payload string
Arm
{"payload":"S6,180305,2"}
Disarm
{"payload":"S6,180305,3"}
Tracking Mode
{"payload":"S71,085902,16,A,5"}