Tkstar protocol

Integration level: params + settings
Protocol used by GPS tracking devices manufactured by TKSTAR headquartered in China.
flespi parses the Tkstar protocol messages into a JSON object with the fields listed below in the Parameters tab.

To connect your tracker using the TK-Star protocol, you need to have a tkstar 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.

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

battery.level
number
percentage
Internal battery level
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
engine.ignition.status
boolean
Engine ignition status
event.seqnum
number
Unique event sequence number
external.powersource.voltage
number
volts
External power voltage
gsm.cellid
number
GSM base station ID
gsm.lac
number
GSM location area code
gsm.mcc
string
GSM mobile country code
gsm.mnc
string
GSM mobile network code
gsm.signal.dbm
number
dbm
Strength of GSM signal
gsm.signal.level
number
percentage
GSM signal strength level
gsm.sim.iccid
string
Integrated Circuit Card Id of SIM card
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.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.outdated
boolean
Position information is outdated
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
protocol.id
number
ID of protocol
server.timestamp
number
seconds
Timestamp when server received a message
steps.count
number
The total number of steps for the day
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 without waiting for response
payload: Payload string
Cut oil command (Applied model: TK920)
{"payload":"*HQ,,S20,000000,1,1#"}
Oil/Power cut command (Applied models: TK806)
{"payload":"[SG**0008*STOP,1]"}