Skip to Content

CANxx Commands

Command family for reading CAN parameters from the vehicle’s ECU.


What is it for?

Use caseDescription
🚛 Heavy vehiclesCAN00/CAN03 for trucks and buses with J1939 protocol
🚗 Light vehiclesCAN01 for cars with OBD-II/J1850 protocol
🚚 Trailers and semi-trailersCAN02 for ABS/EBS systems in semi-trailers
Fuel consumptionCAN05 for FuelRate and MAF sensor reading
📋 Report integrationCAN03 in fixed-width format for Ux reports

General Description

The CANxx commands allow obtaining vehicle information through the CAN bus. Each variant is optimized for different protocols and data formats:

CommandProtocolMain Use
CAN00J1939Commercial/heavy vehicles
CAN01J1850/OBD-IILight vehicles
CAN02EBS/ABSTrailers and semi-trailers
CAN03J1939 (fixed width)Ux report integration
CAN05GenericFuelRate and consumption

Before using these commands, configure the CAN bus through CXCAN.


CAN00 - J1939 Parameters

Reading of standard parameters using J1939 protocol for commercial and heavy vehicles.

Query

QCAN00

Response

RCAN00 2010=value,5000=value,1030=value,4201=value,1020=value,1010=value,2012=value,2013=value,2020=value,3010=value

Parameters

IDParameterFormat
2010RPM4-digit integer
5000Accelerator position (%)2-digit integer
1030Odoliter (L)8 digits + 2 decimals
4201Fuel level (%)2-digit integer
1020Odometer (Km)6 digits + 2 decimals
1010Wheel speed (Km/h)3 digits max
2012Coolant temp (ºC)2-digit integer
2013Oil pressure (kPa)3-digit integer
2020Engine ON time (s)6 digits max
3010Trip fuel (L)8 digits + 2 decimals

Example

>RCAN00 2010=1000,5000=00,1030=10000.00,4201=50,1020=20000.00,1010=60,2012=15,2013=100,2020=13,3010=0.13<

CAN01 - OBD-II Parameters

Reading using J1850/OBD-II protocol for light vehicles.

Query

QCAN01

Response

RCAN01 1=value,2=value,3=value,B=value,14=value,15=value,2A=value,2C=value

Parameters

IDParameterFormat
1VIN16-digit ASCII
2RPM4-digit integer
3Wheel speed (Km/h)3 digits max
BOdometer (Km)6 digits + 2 decimals
14Odoliter (L)8 digits + 2 decimals
15Fuel level (%)2-digit integer
2ACoolant temp (ºC)2-digit integer
2COil pressure (kPa)3-digit integer

Example

>RCAN01 1=2SA23000L2,2=1000,3=60,B=20000.00,14=100000.00,15=50,2A=15,2C=100<

CAN02 - Trailer Parameters

Specific reading for trailers and ABS/EBS brake systems.

Query

QCAN02

Response

RCAN02 red=value,amber=value,axle_load=value,whell_speed=v1|v2|v3|v4,vehicle_speed=value,dtc_0=value,dtc_1=value

Parameters

FieldParameterDescription
redRed Warning LampRed warning lamp
amberAmber Warning LampAmber warning lamp
axle_loadAxle LoadLoad per axle
whell_speedWheel SpeedSpeed of 4 wheels (separated by |)
vehicle_speedVehicle SpeedVehicle speed
dtc_0DTC 0Diagnostic trouble code 0
dtc_1DTC 1Diagnostic trouble code 1

Example

>RCAN02 red=0,amber=1,axle_load=5000,whell_speed=60|60|59|61,vehicle_speed=60,dtc_0=0,dtc_1=0<

CAN03 - Fixed-Width Format

Reading in fixed-width format, ideal for integration with Ux user reports.

Query

QCAN03

Response

RCAN03 aaaabbbcccddddddddeeefffggghhhhhhhiiiiiiiijjjjjjjjkk

Parameters

FieldLengthParameterFormatUnit
aaaa4Engine SpeedDecimalRPM
bbb3Accel PCTDecimal%
ccc3Fuel PCTDecimal%
dddddddd8Odometer TotalHexmeters
eee3SpeedDecimalKm/h
fff3Engine TempDecimal°C
ggg3Oil PressDecimalkPa
hhhhhhh7Time Engine OnHexseconds
iiiiiiii8Fuel TripHexliters
jjjjjjjj8Odoliter TotalHexliters
kk2AgeHexseconds

Hexadecimal fields must be converted to decimal. For example, if dddddddd = 0001E240, the odometer is 123456 meters.

Example

>RCAN03 15000350501234567806008510000012302345678001234560A<

CAN05 - FuelRate

Reading of fuel consumption rate (FuelRate).

Query

QCAN05

Response

RCAN05 FR_HW=value,FR_SW=value,MAF=value

Parameters

FieldParameterDescriptionUnit
FR_HWFuelRate HardwareDirect sensor readingL/h
FR_SWFuelRate SoftwareMAF-based calculationL/h
MAFMass Air FlowAir flow sensorg/s

Example

>RCAN05 FR_HW!3,FR_SW=89.60,MAF=300.00;ID=869084063093789;*5A<

The FR_SW is calculated from the MAF sensor when the direct hardware value is not available.


Error Codes

Common to all CANxx commands:

CodeDescription
=valueValid value
=NaNParameter not read (CAN01)
!1Process error
!2Unknown parameter
!3No information available

Code !3 generally indicates that the vehicle doesn’t support the parameter or there’s a physical connection problem with the CAN bus.


Compatibility

💾Firmware:v1.00.00
SPLegacy
ULLegacy
SP-IOT
SM-IOT
ZE-IOT

See Also

Last updated