Skip to Content

ECU Command

Flexible reading of CAN variables with configurable format and timeout.


What is it for?

Use caseDescription
📊 Individual queryGets a specific CAN parameter without reading all
🎯 Custom formatDefines output format (integer, decimal, text)
⏱️ Timeout controlConfigures waiting time for response
🛡️ Default valueReturns specific value if no response
🚗 Vehicle diagnosticsReads RPM, temperature, VIN, consumption and more

Description

The ECU command allows querying different variables captured by the device from the CAN (Controller Area Network) bus. This command is flexible regarding response format and allows configuring both numeric format and error value handling.

This command is ideal when you need to obtain a single CAN parameter with specific format, instead of all parameters like CAN00-CAN05 do.


Features

  • Configurable format - Printf-type specifiers (%.2f, %d, etc.)
  • Adjustable timeout - Defines waiting time for response
  • Default value - Returns specific value if no response
  • 20 variables - Wide range of engine parameters

Commands

Query

QECUxxaa..aa:bb..bb:cc..cc

Format parameters

ParameterDescriptionDefault
xxIndex of CANbus variable to query (00-19)-
aa..aa:Output format (e.g.: %d, %.2f)%.2f
bb..bb:Timeout in seconds1
cc..ccValue to return if no responseNaN

Available Variables

IndexVariableUnitDescription
00Engine speedrpmEngine RPM
01Acceleration percentage%Pedal position
02Fuel percentage%Tank level
03Total odometerKmAccumulated distance
04Total fuel consumptionLTotal liters
05Vehicle speedKm/hCurrent speed
06Engine temperature°CCoolant temp.
07Oil pressurekPaLubricant pressure
08Trip fuel consumedLTrip fuel
09Software fuelLMAF calculation
10Engine on timesEngine hours
11Chassis code-VIN
12Instantaneous consumptionL/hFuelRate
13Air flow sensorg/sMAF
14Current engine torque%Engine torque
15Wheel speedKm/hWheel speed
16DTCs status-Fault codes
17Engine load%Engine load
18Total operating timesTotal engine hours
19Distance with fault lightKmMIL distance

Speeds in J1939: When the CAN protocol is J1939, speed variables come from different PGNs:

  • ECU05 (Vehicle speed): PGN 0xFE6C (CCVS - Cruise Control/Vehicle Speed) ⭐ Most common
  • ECU15 (Wheel speed): PGN 0xFEF1 (Wheel-Based Vehicle Speed)

Both represent speed but from different sources. ECU05 uses the speed calculated by the vehicle’s ECU, while ECU15 uses speed based on wheel sensors. ECU05 is recommended as it’s available in most J1939 vehicles.


Examples

Basic RPM query

>QECU00< >RECU00 1500.00...

RPM with integer format

>QECU00%d< >RECU00 1500...

Temperature with default value

>QECU06%.1f:2:-40< >RECU06 85.0...

If no response in 2 seconds, returns -40.

VIN (chassis code)

>QECU11< >RECU11 3VWFE21C04M000001...

Index 11 (VIN) returns text, not numbers. Use %s format if specifying format.

Compatibility

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

See Also

Last updated