Sinocastel protocol

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

Step-by-step guide on how-to obtain telematics data from Sinocastel devices via API.

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

Point your tracker to the channel's domain name:port via SMS or configuration tool provided by the vendor, OBD Smart PC Tools. The Network tab in the app should resemble the following:


On the Channel > Logs & Messages tab you can check if the messages are coming.

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

acceleration.array
array
g
Array of objects with acceleration data by x, y, and z axis
Protocol ID 0x4003
alarm.event
boolean
Alarm event triggered
Protocol ID 0x4007 with Alarm Type 0x10
alcohol.fuel.percentage
number
percentage
Alcohol fuel percentage
PID 0x2152
can.absolute.fuel.rail.pressure
number
kPa
Absolute fuel rail pressure
PID 0x2159
can.absolute.load
number
percentage
Absolute load value - the normalized value of air mass per intake stroke, read from CAN
PID 0x2143
can.accelerator.pedal.position
number
percentage
Accelerator pedal position read from CAN, index 1 - sensor D, index 2 - sensor E, etc
PID 0x2149,
PID 0x214A,
PID 0x214B
can.adblue.level
number
percentage
AdBlue (diesel exhaust fluid) level read from CAN
PID 0x06E1
can.air.filter.differential.pressure
number
kPa
Air filter differential pressure read from CAN
PID 0x006B
can.ambient.air.temperature
number
celsius
CAN ambient air temperature
PID 0x2146
can.average.fuel.economy
number
km/liters
CAN average fuel economy
PID 0x00B9
can.barometric.pressure
number
kPa
Absolute barometric pressure read from CAN
PID 0x006A,
PID 0x2133
can.battery.voltage
number
volts
Battery voltage read from CAN
PID 0x00A8
can.catalyst.temperature
number
degrees
Catalyst temperature of the corresponding oxygen sensor read from CAN
PID 0x213C,
PID 0x213D,
PID 0x213E,
PID 0x213F
can.central.lock.status
boolean
CAN central lock is locked
Protocol ID 0xB007
can.commanded.egr
number
percentage
Commanded EGR value read from CAN
PID 0x212C
can.control.module.voltage
number
volts
Control module voltage read from CAN
PID 0x2142
can.coolant.filter.differential.pressure
number
kPa
Coolant filter differential pressure read from CAN
PID 0x0070
can.crankcase.pressure
number
kPa
Crankcase pressure read from CAN
PID 0x0065
can.crankcase.pressure.extended
number
kPa
Extended crankcase pressure read from CAN
PID 0x0016
can.cruise.control.speed
number
km/h
Cruise control set speed read from CAN
PID 0x0056
can.direct.fuel.rail.pressure
number
kPa
Fuel rail gauge pressure for diesel or gasoline direct injection
PID 0x2123
can.dpf.inlet.pressure
number
kPa
Pressure before DPF read from CAN
PID 0x0051
can.dtc
array
Diagnostic trouble code array read from CAN
Protocol ID 0x4006,
Protocol ID 0x400B
can.dtc.cleared.engine.time
number
hours
Engine runtime since DTCs cleared, read from CAN
PID 0x214E
can.dtc.cleared.mileage
number
km
Vehicle mileage since diagnostic trouble codes were cleared, read from CAN
PID 0x2131
can.dtc.cleared.warmups
number
Number of warm-ups since DTCs cleared read from CAN
PID 0x2130
can.egr.error
number
percentage
EGR Error read from CAN
PID 0x212D
can.engine.coolant.level
number
percentage
Engine coolant level read from CAN
PID 0x006F
can.engine.coolant.pressure
number
kPa
Engine coolant pressure
PID 0x006D
can.engine.coolant.temperature
number
celsius
Engine coolant temperature read from CAN
PID 0x006E,
PID 0x2105,
PID 0x2167
can.engine.exhaust.temperature
number
celsius
Engine exhaust temperature read from CAN
PID 0x00AD
can.engine.fuel.rate
number
liters/h
Engine fuel rate read from CAN
PID 0x00B7,
PID 0x215E,
PID 0x4004,
PID 0x4005
can.engine.load.level
number
percentage
Calculated engine load level read from CAN
PID 0x005C,
PID 0x2104,
PID 0x4000,
PID 0x4001
can.engine.motorhours
number
hours
Total engine motorhours (engine work time) read from CAN
PID 0x00F7
can.engine.oil.level
number
percentage
Engine oil level read from CAN
PID 0x0062
can.engine.oil.pressure
number
kPa
CAN Engine oil pressure
PID 0x0064
can.engine.oil.temperature
number
celsius
Engine oil temperature read from CAN
PID 0x00AF,
PID 0x215C
can.engine.revolutions
number
Engine totol revolutions read from CAN
PID 0x00F9
can.engine.rpm
number
rpm
Engine RPM read from CAN
PID 0x00BE,
PID 0x210C,
Protocol ID 0x4001
can.engine.run.time
number
seconds
Run time since engine start read from CAN
PID 0x211F,
PID 0x217F
can.engine.status
boolean
Engine is running status, read from CAN
Protocol ID 0xB007
can.engine.temperature
number
celsius
Engine temperature read from CAN
PID 0x4008,
PID 0x4009
can.equivalence.ratio
number
Fuel-air commanded equivalence ratio read from CAN
PID 0x2144
can.evaporative.purge
number
percentage
Commanded evaporative purge read from CAN
PID 0x212E
can.evap.vapor.pressure
number
Pa
EVAP system vapor pressure, read from CAN
PID 0x2132,
PID 0x2154
can.freeze.dtc
string
Diagnostic trouble code from freeze frame, read from CAN
PID 0x2102
can.fresh.water.level
number
percentage
Fresh water level read from CAN
PID 0x4014
can.front.left.door.status
boolean
CAN front left door is opened
Protocol ID 0xB007
can.front.right.door.status
boolean
CAN front right door is opened
Protocol ID 0xB007
can.fuel.consumed
number
liters
Fuel volume totally consumed by vehicle read from CAN
PID 0x00FA
can.fuel.economy
number
km/liters
CAN instantaneous fuel economy
PID 0x00B8
can.fuel.idle.consumed
number
liters
Fuel volume totally consumed during idling state of the vehicle read from CAN
PID 0x00EC,
PID 0x03EC
can.fuel.injection.timing
number
degrees
Fuel injection timing read from CAN
PID 0x215D
can.fuel.level
number
percentage
Fuel level in tank read from CAN
PID 0x0026,
PID 0x0060,
PID 0x212F,
PID 0x3260,
PID 0x4011,
PID 0x4012
can.fuel.pressure
number
kPa
Fuel pressure read from CAN
PID 0x005E,
PID 0x210A
can.fuel.rate
number
g/s
Fuel rate read from CAN
PID 0x219D
can.fuel.system.state
number
Fuel system status read from CAN, bits 0 - open loop, 1 - closed loop, 2 - open loop drive, 3 - open loop fault, 4 - closed loop fault
PID 0x2103
can.fuel.temperature
number
celsius
Fuel temperature read from CAN
PID 0x00AE
can.fuel.type.enum
number
Fuel type read from CAN
PID 0x2151
can.gear
number
Current gear read from CAN. Numeric negative values are reverse gears, positive values are forward gears, zero is neutral
PID 0x21A4
can.gear.ratio
number
Transmission actual gear ratio read from CAN
PID 0x21A4
can.handbrake.status
boolean
CAN handbrake is pulled up
Protocol ID 0xB007
can.hood.status
boolean
CAN hood is opened
Protocol ID 0xB007
can.hybrid.battery.pack.life
number
percentage
Hybrid battery pack remaining life
PID 0x215B
can.intake.air.temperature
number
celsius
Intake air temperature
PID 0x0069,
PID 0x210F,
PID 0x2168
can.intake.map
number
kPa
Intake manifold absolute pressure
PID 0x0066,
PID 0x210B,
PID 0x2187
can.intercooler.temperature
number
celsius
Engine intercooler temperature read from CAN
PID 0x0034
can.long.fuel.trim
number
percentage
Short term fuel trim read from CAN
PID 0x2107,
PID 0x2109
can.maf.air.flow.rate
number
g/sec
MAF air flow rate read from CAN
PID 0x0084,
PID 0x2110
can.maf.max.air.flow.rate
number
g/sec
Maximum value for air flow rate from mass air flow sensor, read from CAN
PID 0x2150
can.mil.mileage
number
km
Distance traveled while malfunction indicator lamp is activated, read from CAN
PID 0x2121
can.mil.status
boolean
Malfunction indicator lamp status read from CAN
Protocol ID 0x4007 with Alarm Type 0x18
can.mil.time
number
hours
Time run with malfunction indicator lamp activated, read from CAN
PID 0x214D
can.monitor.status
number
Monitor status this drive cycle read from CAN, bitmask
PID 0x2141
can.oxygen.sensor.bitmask
number
Oxygen sensor bitmask read from CAN
PID 0x211D
can.oxygen.sensor.current
number
mA
Oxygen sensor current read from CAN
PID 0x2134,
PID 0x2135,
PID 0x2136,
PID 0x2137,
PID 0x2138,
PID 0x2139,
PID 0x213A,
PID 0x213B
can.oxygen.sensor.fuel.air.ratio
number
Fuel-air equivalence ratio for the corresponding oxygen sensor read from CAN
PID 0x2124,
PID 0x2125,
PID 0x2126,
PID 0x2127,
PID 0x2128,
PID 0x2129,
PID 0x212A,
PID 0x212B,
PID 0x2134,
PID 0x2135,
PID 0x2136,
PID 0x2137,
PID 0x2138,
PID 0x2139,
PID 0x213A,
PID 0x213B
can.oxygen.sensor.fuel.trim
number
percentage
Short term fuel trim associated with current oxygen sensor
PID 0x2114,
PID 0x2115,
PID 0x2116,
PID 0x2117,
PID 0x2118,
PID 0x2119,
PID 0x211A,
PID 0x211B
can.oxygen.sensor.max.current
number
mA
Maximum value for Oxygen sensor current
PID 0x214F
can.oxygen.sensor.max.fuel.air.ratio
number
Maximum value for the equivalence ratio of Oxygen sensor
PID 0x214F
can.oxygen.sensor.max.pressure
number
kPa
Maximum value for intake manifold absolute pressure
PID 0x214F
can.oxygen.sensor.max.voltage
number
volts
Maximum value for Oxygen sensor voltage
PID 0x214F
can.oxygen.sensor.output.voltage
number
volts
Oxygen sensor output voltage read from CAN
PID 0x2114,
PID 0x2115,
PID 0x2116,
PID 0x2117,
PID 0x2118,
PID 0x2119,
PID 0x211A,
PID 0x211B
can.oxygen.sensors.state
number
Location of oxygen sensors, bits 0 - sensor 1, 1 - sensor 2, 2 - sensor 3 etc. Bank1 sensors 1,2, bank 2 sensors 3,4 etc.
PID 0x2113
can.oxygen.sensor.voltage
number
volts
Voltage of the corresponding oxygen sensor read from CAN
PID 0x2124,
PID 0x2125,
PID 0x2126,
PID 0x2127,
PID 0x2128,
PID 0x2129,
PID 0x212A,
PID 0x212B
can.pedal.brake.status
boolean
CAN brake pedal pressed
Protocol ID 0xB007
can.pto.run.time
number
Power Take-Off run time read from CAN
PID 0x217F
can.pto.status
boolean
Power take-off status, read from CAN
PID 0x211E
can.rear.left.door.status
boolean
CAN rear left door is opened
Protocol ID 0xB007
can.rear.right.door.status
boolean
CAN rear right door is opened
Protocol ID 0xB007
can.relative.accelerator.pedal.position
number
percentage
Relative accelerator pedal position read from CAN
PID 0x215A
can.relative.fuel.rail.pressure
number
kPa
Fuel rail pressure relative to manifold vacuum
PID 0x2122
can.relative.throttle.position
number
percentage
Relative throttle position read from CAN
PID 0x2145
can.secondary.air.state
number
Commanded secondary air status read from CAN
PID 0x2112
can.secondary.long.fuel.trim
number
percentage
Long term secondary oxygen sensor fuel trim, index - the number of bank
PID 0x2156,
PID 0x2158
can.secondary.short.fuel.trim
number
percentage
Short term secondary oxygen sensor fuel trim, index - the number of bank
PID 0x2155,
PID 0x2157
can.service.mileage
number
km
Service distance read from CAN
PID 0x0392
can.short.fuel.trim
number
percentage
Short term fuel trim read from CAN
PID 0x2106,
PID 0x2108
can.throttle.actuator
number
percentage
Commanded throttle actuator position read from CAN
PID 0x214C
can.throttle.pedal.level
number
percentage
Throttle pedal push level read from CAN
PID 0x005B
can.throttle.position
number
percentage
Absolute throttle position for corresponding throttle position sensor read from CAN
PID 0x2111,
PID 0x2147,
PID 0x2148
can.timing.advance
number
degrees
Ignition timing advance read from CAN
PID 0x210E
can.total.engine.idle.time
number
hours
Time of engine running in idling status (vehicle stopped) since vehicle manufacture, read from CAN
PID 0x217F
can.transmission.input.speed
number
rpm
Transmittion input speed read from CAN
PID 0x00A1
can.transmission.oil.temperature
number
celsius
Transmission oil temperature read from CAN
PID 0x00B1
can.trip.fuel.consumed
number
liters
Volume of liquid fuel consumed for current trip read from CAN
PID 0x00B6,
PID 0x03E9,
PID 0x1B60,
PID 0x3043
can.turbo.oil.temperature
number
celsius
Turbocharger oil temperature read from CAN
PID 0x00B0
can.vehicle.mileage
number
km
Total vehicle mileage read from CAN
PID 0x00F5,
PID 0x21A6
can.vehicle.remaining.range
number
km
Vehicle Range read, from CAN
PID 0x4020
can.vehicle.speed
number
km/h
Vehicle speed read from CAN
PID 0x0054,
PID 0x210D
can.water.depth
number
meters
Water depth read from CAN
PID 0x4030
can.water.temperature
number
celsius
Water temperature read from CAN
PID 0x4050
can.wind.direction
number
rad
Wind direction read from CAN
PID 0x4040
can.wind.speed
number
m/s
Wind speed read from CAN
PID 0x4041
channel.id
number
ID of channel that received a message
crash.direction.enum
number
Crash direction - front, rear, left, right etc.
Protocol ID 0x4007 with Alarm Type 0x11
crash.event
boolean
Crash event detected
Protocol ID 0x4007 with Alarm Type 0x11
current.fuel.consumed
number
liters
Total fuel consumption from the latest ACC ON time to current time
Protocol ID 0x1001,
Protocol ID 0x1002,
Protocol ID 0x4001,
Protocol ID 0x4002,
Protocol ID 0x4003,
Protocol ID 0x4004,
Protocol ID 0x4005,
Protocol ID 0x4006,
Protocol ID 0x4007,
Protocol ID 0x4008,
Protocol ID 0x400B,
Protocol ID 0x400C,
Protocol ID 0x400D
current.trip.mileage
number
km
Mileage from the latest ACC ON time to current time
Protocol ID 0x1001,
Protocol ID 0x1002,
Protocol ID 0x4001,
Protocol ID 0x4002,
Protocol ID 0x4003,
Protocol ID 0x4004,
Protocol ID 0x4005,
Protocol ID 0x4006,
Protocol ID 0x4007,
Protocol ID 0x4008,
Protocol ID 0x400B,
Protocol ID 0x400C,
Protocol ID 0x400D
dangerous.driving.event
boolean
Dangerous driving event
Protocol ID 0x4007 with Alarm Type 0x1B
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.blocked.status
boolean
Engine blocked status (fuel cutoff relay), true - engine is blocked, false - engine isn't blocked
Protocol ID 0xB007
engine.ignition.status
boolean
Engine ignition or ACC status
Protocol ID 0x4007 with Alarm Type 0x16,
Protocol ID 0x4007 with Alarm Type 0x17,
Protocol ID 0xB007
engine.temperature.high.status
boolean
High engine coolant temperature
Protocol ID 0x4007 with Alarm Type 0x03
event.enum
number
Protocol-specific event code
Protocol ID 0x4007
exhaust.emission.status
boolean
Exhaust emission
Protocol ID 0x4007 with Alarm Type 0x0A
fatigue.driving.status
boolean
Fatigue driving
Protocol ID 0x4007 with Alarm Type 0x0D
firmware.update.code
number
Firmware update confirmation code
Protocol ID 0xD005
firmware.update.type
number
Firmware update type: 0 - terminal, 80 - OBD module, 81 - Bluetooth module
Protocol ID 0xD005
geofence.id
number
Geofence ID
Protocol ID 0x4007 with Alarm Type 0x0F
geofence.status
boolean
Geofence entered status
Protocol ID 0x4007 with Alarm Type 0x0F
gnss.status
boolean
GNSS receiver on/off status
gsm.cellid
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) base station ID
Protocol ID 0x4008
gsm.lac
number
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) location area code
Protocol ID 0x4008
gsm.sim.iccid
string
Integrated Circuit Card Id of SIM card of the Mobile network (GSM, 3G, 4G, LTE, 5G, ...)
Protocol ID 0xA002
gsm.sim.imsi
string
IMSI of SIM card of the Mobile network (GSM, 3G, 4G, LTE, 5G, ...)
Protocol ID 0xA002
hardware.version
string
Hardware version
Protocol ID 0x1001
harsh.acceleration.event
boolean
Harsh acceleration detected
Protocol ID 0x4007 with Alarm Type 0x04
harsh.braking.event
boolean
Harsh braking detected
Protocol ID 0x4007 with Alarm Type 0x05
harsh.cornering.event
boolean
Harsh cornering detected
Protocol ID 0x4007 with Alarm Type 0x0C
headlight.status
boolean
Headlights status
Protocol ID 0xB007
high.rpm.status
boolean
High engine RPM
Protocol ID 0x4007 with Alarm Type 0x08
ibutton.code
string
Hexadecimal code of connected iButton
Protocol ID 0x400C
ident
string
Device unique identifier like serial number, IMEI, etc
idle.status
boolean
Vehicle is in idling state
Protocol ID 0x4007 with Alarm Type 0x06
ignition.on.timestamp
number
seconds
The latest ACC ON timestamp
Protocol ID 0x1001,
Protocol ID 0x1002,
Protocol ID 0x4001,
Protocol ID 0x4002,
Protocol ID 0x4003,
Protocol ID 0x4004,
Protocol ID 0x4005,
Protocol ID 0x4006,
Protocol ID 0x4007,
Protocol ID 0x4008,
Protocol ID 0x400B,
Protocol ID 0x400C,
Protocol ID 0x400D
illegal.enter.event
boolean
Illegal enter
Protocol ID 0x4007 with Alarm Type 0x13
illegal.ignition.event
boolean
Illegal ignition
Protocol ID 0x4007 with Alarm Type 0x14
message.buffered.status
boolean
Black box message
Protocol ID 0x4001
no.card.event
boolean
No card presented
Protocol ID 0x4007 with Alarm Type 0x1A
obd.error.event
boolean
OBD communication error
Protocol ID 0x4007 with Alarm Type 0x15
obd.standard.enum
number
OBD standards this vehicle conforms to
PID 0x211C
overspeeding.event
boolean
Overspeeding detected
overspeeding.status
boolean
Overspeeding detected
Protocol ID 0x4007 with Alarm Type 0x01
peer
string
IP:port from which device connecting to the channel
position.direction
number
degrees
Heading angle at position detection moment
Protocol ID 0x4009
position.fix.type
number
GNSS fix type enum (0 = "not fixed", 1 = "2D", 2 = "3D", null = "unknown")
Protocol ID 0x4009
position.latitude
number
degrees
Latitude coordinate value
Protocol ID 0x4009
position.longitude
number
degrees
Longitude coordinate value
Protocol ID 0x4009
position.satellites
number
Quantity of satellites used to calculate coordinates for given position information
Protocol ID 0x4009
position.speed
number
km/h
Instant speed at position detection moment
Protocol ID 0x4009
position.timestamp
number
seconds
Timestamp when coordinates where calculated
Protocol ID 0x4009
power.on.status
boolean
Power-on device status
Protocol ID 0x4007 with Alarm Type 0x09,
Protocol ID 0x4007 with Alarm Type 0x0E
private.status
boolean
Device is in private mode
protocol.id
number
ID of protocol
quick.lane.change.event
boolean
Quick lane change status
Protocol ID 0x4007 with Alarm Type 0x0B
rfid.code
string
Hexadecimal code of connected RFID
Protocol ID 0x400D
sample.rate
number
seconds
Sample rate of accelerometer data
Protocol ID 0x4003
server.timestamp
number
seconds
Timestamp when server received a message
software.version
string
Software version string
Protocol ID 0x1001
tamper.alarm
boolean
Tamper alarm event
Protocol ID 0x4007 with Alarm Type 0x12
timestamp
number
seconds
Message timestamp
Protocol ID 0x1001,
Protocol ID 0x1002,
Protocol ID 0x4001,
Protocol ID 0x4002,
Protocol ID 0x4003,
Protocol ID 0x4004,
Protocol ID 0x4005,
Protocol ID 0x4006,
Protocol ID 0x4007,
Protocol ID 0x4008,
Protocol ID 0x4009,
Protocol ID 0x400B,
Protocol ID 0x400C,
Protocol ID 0x400D
total.fuel.consumed
number
liters
Total fuel consumption from device power on to the latest ACC ON time
Protocol ID 0x1001,
Protocol ID 0x1002,
Protocol ID 0x4001,
Protocol ID 0x4002,
Protocol ID 0x4003,
Protocol ID 0x4004,
Protocol ID 0x4005,
Protocol ID 0x4006,
Protocol ID 0x4007,
Protocol ID 0x4008,
Protocol ID 0x400B,
Protocol ID 0x400C,
Protocol ID 0x400D
total.trip.mileage
number
km
The accumulated mileage from device power on to the latest ACC ON time
Protocol ID 0x1001,
Protocol ID 0x1002,
Protocol ID 0x4001,
Protocol ID 0x4002,
Protocol ID 0x4003,
Protocol ID 0x4004,
Protocol ID 0x4005,
Protocol ID 0x4006,
Protocol ID 0x4007,
Protocol ID 0x4008,
Protocol ID 0x400B,
Protocol ID 0x400C,
Protocol ID 0x400D
towing.event
boolean
Towing event detected
Protocol ID 0x4007 with Alarm Type 0x07
trip.mileage
number
km
Distance driven since engine start
PID 0x00F4
turn.left.status
boolean
Turn left status
Protocol ID 0xB007
turn.right.status
boolean
Turn right status
Protocol ID 0xB007
unlock.event
boolean
Unlock event
Protocol ID 0x4007 with Alarm Type 0x19
vehicle.vin
string
VIN of vehicle
Protocol ID 0xA002
vibration.alarm
boolean
Vibration alarm event
Protocol ID 0x4007 with Alarm Type 0x1C
voltage.low.status
boolean
Low voltage
Protocol ID 0x4007 with Alarm Type 0x02
Properties
Custom command
custom
Send custom command to device
payload: Payload HEX string
Query Towing alarm (0x1007) parameter
{"payload":"20020001011007"}
Get configuration parameter
getparam
Query setting of mobile terminal
param: Tag number
Get GPS sample rate by time interval
{"param":"1102"}