Cantrack protocol

Protocol used by GPS tracking devices manufactured by Shenzhen Cantrack Technology Co., Ltd.
flespi parses the Cantrack protocol messages into a JSON object with the fields listed below in the Parameters tab.

To connect your tracker using the Cantrack protocol, you need to have a cantrack 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 Serial Number without leading zeroes in the ident field.

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

battery.level
number
percentage
Internal battery level
Command *HTBT
battery.voltage
number
volts
Internal battery voltage
Command *V3,
Command *V5
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 or ACC status
Command *V1,
Command *V2,
Command *V3,
Command *V5
gsm.cellid
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) base station ID
Command *V3
gsm.lac
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) location area code
Command *V3
gsm.mcc
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) country code
Command *V3
gsm.mnc
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) code
Command *V3
gsm.signal.dbm
number
dbm
Strength of the Mobile network (GSM, 3G, 4G, LTE, 5G, ...) signal
Command *V3
gsm.signal.level
number
percentage
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) signal strength level
Command *V3
ident
string
Device unique identifier like serial number, IMEI, etc
message.type
string
Message type
peer
string
IP:port from which device connecting to the channel
position.direction
number
degrees
Heading angle at position detection moment
Command *V1,
Command *V2,
Command *V4
position.latitude
number
degrees
Latitude coordinate value
Command *V1,
Command *V2,
Command *V4
position.longitude
number
degrees
Longitude coordinate value
Command *V1,
Command *V2,
Command *V4
position.speed
number
km/h
Instant speed at position detection moment
Command *V1,
Command *V2,
Command *V4
position.valid
boolean
Is position information accurate and valid for given timestamp
Command *V1,
Command *V2,
Command *V4
protocol.id
number
ID of protocol
server.timestamp
number
seconds
Timestamp when server received a message
timestamp
number
seconds
Message timestamp
Command *V1,
Command *V2,
Command *V3,
Command *V5
vehicle.state
string
Vehicle state, such as moving, idling, parked etc
Command *V1,
Command *V2,
Command *V3,
Command *V5
vehicle.state.bitmask
number
Vehicle state flags bitmask
Command *V1,
Command *V2,
Command *V3,
Command *V5
vendor.code
string
Vendor identification string code
wifi.mac.address
string
WiFi MAC address
Command *V5
wifi.signal.strength
number
WiFi signal strength, RSSI
Command *V5
Properties
Custom command
custom
Send custom command to device, Scheme: "*,,#". You have to specify payload only
payload: Payload string
Cut fuel for stop car, model G06L
{"payload":"CMD,130305,stop654321"}
Set working mode 1, models GF40, GF50, GF60, GF70L
{"payload":"MD123456 1 3 8 1"}
Set Center number command S2, models TK100, TK100B, G05
{"payload":"S2,130305,13812341234"}