Escolar Documentos
Profissional Documentos
Cultura Documentos
Protocols on OBDII
Outlines
OBDII Introduction
ISO9141-2 on OBDII
Outlines
J1939 on OBDII
OBDII Introduction
OBDII Introduction
On-Board Diagnostics (OBD) U.S. timetable
OBD-III
Complexity
OBD-II
OBD-I
OBD
80
82
84
86
88
90
92
94
96
98
00
02
04
06
08
Model Year
5
OBDII Introduction
ISO9141-2 on OBDII
ISO9141-2 on OBDII
ISO9141-2 on OBDII
ISO9141-2 on OBDII
ECU2
OBDII
Connector
bi-directional
unidirectional
ECU3
K-Line
Diagnostic
Tester
(ISO-9141-2
Scan Tool)
L-Line
ECUn
10
ISO9141-2 on OBDII
CAN Bus(J1939)
J1708/J1587
Bit rate
10400bps
250k/500k/1Mbps
9600bps
Logical level
Single-end: 0 ~ VBAT
Differential: 0 ~ 5V
Differential: 0 ~ 5V
Wiring
Single wire
Twist wire
Twist wire
11
ISO9141-2 on OBDII
12
ISO9141-2 on OBDII
No arbitration
5 baud initialization
Physical Layer
NRZ @ 10.4kbps
K-Line or K&L-Line
12V systems only
13
ISO9141-2 on OBDII
Receiver
Transmitter
Logic 1
Logic 1
70%VB
30%VB
20%VB
Ambiguous
Ambiguous
Logic 0
noise
margin
Logic 0
Devices
14
ISO9141-2 on OBDII
1
U2
OBDII
Vin
Vo ut
7 80 5
C3
C2
0 .1 u F
4 7u F
+
C4
0 .1 u F
C7
+
+ C1
4 7u F
C6
4 .7 u F
U1
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
GND
J1
C5
R1
4 .7 K
4 .7 u F
1
2
3
4
5
6
7
8
4 .7 u F
R2
1 0K
Q1
9 01 3
R4
R3
5K
C1 +
VS+
C1 C2 +
C2 VST2OUT
R2 IN
VCC
GND
T1OUT
R1 IN
R1 OUT
T1IN
T2IN
R2 OUT
16
15
14
13
12
11
10
9
J2
MAX2 32
C8
4 .7 u F
1 0K
+
C9
CAP
1
6
2
7
3
8
4
9
5
DB9
15
ISO9141-2 on OBDII
Data rates
16
ISO9141-2 on OBDII
Initialization
ISO-9141
0x33 (5bps)
0x55 (10.4kbps)
Initialization
Phase
0x55 (10.4kbps)
0x08
0x08
0x08
~(0x08)
0x08
request
Negotiation
Phase
response
Tester
successfully
initialized
~(0x33) = 0xCC
ECU
request
response
Tester
Negotiation
Transactions
ECU
17
ISO9141-2 on OBDII
Transaction timing
ISO-9141
Reader-to-ECU
5 bps
INI
0x33
ECU-to-Reader
0x55
10.4kbps
for sync
ISO-9141-2
Reader-to-ECU
ECU-to-Reader
0x8
KW1
response
0x8
KW2
0x55
10.4kbps
for sync
0x8
KW1
KW2
5 bps
INI
0x33
request
0x8
KW2
~0x8
=0xf7
request
0xCC
response
INI
18
ISO9141-2 on OBDII
Negotiation phase
CHKSUM
19
ISO9141-2 on OBDII
0x6A 0xF1
0x01
0x0C 0xD0
CHKSUM
response packet
0x48
0x6B
0x40
0x41
0xE3
CHKSUM
20
ISO9141-2 on OBDII
21
ISO9141-2 on OBDII
5.
6.
7.
8.
9.
22
ISO9141-2 on OBDII
23
ISO9141-2 on OBDII
24
ISO9141-2 on OBDII
25
ISO9141-2 on OBDII
Example: Supported PIDs on Chrysler Voyager
Data bytes
returned
(http://en.wikipedia.org/wiki/OBD-II_PIDs)
Mode
(hex)
PID
(hex)
01
00
PIDs supported
01
01
01
02
Freeze DTC
01
03
01
04
100
A*100/255
01
05
-40
215
A-40
01
06
-100 (Rich)
99.22
(Lean)
0.7812 * (A-128)
01
07
-100 (Rich)
99.22
(Lean)
0.7812 * (A-128)
01
08
-100 (Rich)
99.22
(Lean)
0.7812 * (A-128)
01
09
-100 (Rich)
99.22
(Lean)
0.7812 * (A-128)
01
0A
Fuel pressure
765
kPa (gauge)
A*3
01
0B
255
kPa
(absolute)
Description
Min value
Max value
Units
Formula
26
ISO9141-2 on OBDII
01
0C
Engine RPM
16,383.75
rpm
((A*256)+B)/4
01
0D
Vehicle speed
255
km/h
01
0E
Timing advance
-64
63.5
relative to #1 cylinder
A/2 - 64
01
0F
-40
215
A-40
01
10
655.35
g/s
((256*A)+B) / 100
01
11
Throttle position
100
A*100/255
01
12
01
13
01
14
Bank 1, Sensor 1:
Oxygen sensor voltage,
Short term fuel trim
0
0
1.275
99.2
Volts
%
A * 0.005
(B-128) * 0.7812 (if B==0xFF, sensor is not used in trim calc)
01
15
Bank 1, Sensor 2:
Oxygen sensor voltage,
Short term fuel trim
0
0
1.275
99.2
Volts
%
A * 0.005
(B-128) * 0.7812 (if B==0xFF, sensor is not used in trim calc)
01
16
Bank 1, Sensor 3:
Oxygen sensor voltage,
Short term fuel trim
0
0
1.275
99.2
Volts
%
A * 0.005
(B-128) * 0.7812 (if B==0xFF, sensor is not used in trim calc)
01
17
Bank 1, Sensor 4:
Oxygen sensor voltage,
Short term fuel trim
0
0
1.275
99.2
Volts
%
A * 0.005
(B-128) * 0.7812 (if B==0xFF, sensor is not used in trim calc)
27
ISO9141-2 on OBDII
01
18
Bank 2, Sensor 1:
Oxygen sensor voltage,
Short term fuel trim
0
0
1.275
99.2
Volts
%
A * 0.005
(B-128) * 0.7812 (if B==0xFF, sensor is not used in trim calc)
01
19
Bank 2, Sensor 2:
Oxygen sensor voltage,
Short term fuel trim
0
0
1.275
99.2
Volts
%
A * 0.005
(B-128) * 0.7812 (if B==0xFF, sensor is not used in trim calc)
01
1A
Bank 2, Sensor 3:
Oxygen sensor voltage,
Short term fuel trim
0
0
1.275
99.2
Volts
%
A * 0.005
(B-128) * 0.7812 (if B==0xFF, sensor is not used in trim calc)
01
1B
Bank 2, Sensor 4:
Oxygen sensor voltage,
Short term fuel trim
0
0
1.275
99.2
Volts
%
A * 0.005
(B-128) * 0.7812 (if B==0xFF, sensor is not used in trim calc)
01
1C
01
1D
Similar to PID 13, but [A0..A7] == [B1S1, B1S2, B2S1, B2S2, B3S1, B3S2, B4S1,
B4S2]
01
1E
01
1F
01
20
65,535
seconds
(A*256)+B
Bit encoded [A7..D0] == [PID 0x21..PID 0x40]
28
ISO9141-2 on OBDII
29
ISO9141-2 on OBDII
30
ISO9141-2 on OBDII
31
ISO9141-2 on OBDII
A7 A6
0 0
0 1
1 0
1 1
32
ISO9141-2 on OBDII
A5 A4
0 0
0 1
1 0
1 1
33
ISO9141-2 on OBDII
A3 A2
0 0
0 0
0 0
0 0
0 1
0 1
0 1
0 1
1 0
1 0
A1
0
0
1
1
0
0
1
1
0
0
A0
0
1
0
1
0
1
0
1
0
1
ISO9141-2 on OBDII
Generic Emission
Control
P0420:
Catalyst System Efficiency
Below Threshold (Bank 1)
35
ISO9141-2 on OBDII
P0081
P0082
P0083
P0084
P0085
P0086
P0087
P0088
P0089
P0090
P0091
P0092
P0093
P0094
36
ISO9141-2 on OBDII
Application
LCD
Display
Vehicle
Diagnostic
ISO9141-2:K-Line
Vehicle
Vehicle
Data
DataLogger
Logger
GPRS/
RS323
ODBII Interfaces
Direct Backup
Global
Global
Database
Database
ECU
Test
ECU
Specification
Verify
SD Card
ECU
Measurement &
Calibration
37
ISO9141-2 on OBDII
Analysis: Energy Efficiency Comparison
1600
Test1
Test2
1200
Load Summation
800
400
0
0
200
400
600
Time (sec)
510 sec
427 sec
6116 m
6000 m
42.54 km/s
49.67 km/s
1256
1348
38
ISO9141-2 on OBDII
Velocity (km/h)
80
60
40
20
0
0
10
20
30
40
50
Time (sec)
20
Acceleration
Test1
Test2
Test3
Test4
Test5
Test6
Test7
Test8
Acceleration (kph/s)
10
2.53 kph/s
3.88 kph/s
4.41 kph/s
5.76 kph/s
-10
-20
-30
0
10
20
Time (sec)
30
40
50
39
ISO9141-2 on OBDII
Velocity (km/h)
80
60
40
20
0
0
10
20
30
40
50
Time (sec)
7.56 kph/s
11.12 kph/s
16.74 kph/s
25.18 kph/s
20
Acceleration
Test1
Test2
Test3
Test4
Test5
Test6
Test7
Acceleration (kph/s)
10
-10
-20
-30
0
10
20
Time (sec)
30
40
50
40
J1939 on OBDII
J1939 protocol
41
J1939 on OBDII
42
J1939 on OBDII
from http://www.vector-worldwide.com/portal/medien/cmc/press/PON/CANimNfz_CiA_200509_PressArticle_EN.pdf
43
J1939 on OBDII
Registered J1939
ODM
IOM
PIM
Proprietary Interface
Module
Input/Output
Module
Output Display
Module
ABS
ABSBraking
Braking
Knorr-Bremse
ABS 2x
Engine
Engine
Caterpillar C7
ECU
Transmission
Transmission
Allison MD/HD/B Series
Transmissions
44
J1939 on OBDII
45
J1939 on OBDII
46
J1939 on OBDII
47
J1939 on OBDII
J1939/71&73
J1939/6x
J1939
Presentation
J1939/5x
Session
Session
J1939/4x
Transport
Network
Data Link
Transport
J1939/31
J1939/21
J1939
J1939/11
Physical
Shielded Twisted Pair
CAN Bus (ISO11898)
48
J1939 on OBDII
49
J1939 on OBDII
Signal
levels
5V
VCAN_H 3.0V
Recessive
Dominant
Dominant
Dominant
2.5V
VCAN_L 1.5V
0V
Recessive
5V
3.6V
VCAN_H 3.0V
2.5V
VCAN_L 1.5V
1.4V
0V
2.2V
5V
Fault Tolerant
50
J1939 on OBDII
Interface circuit
51
J1939 on OBDII
Priority
0
Data Page
Reserved
8-bit
8-bit
0xFE
0xEE
8-bit
0x0
PF
PDU Specific (PS) Source Address
(PDU Format)
PGN
52
J1939 on OBDII
53
J1939 on OBDII
54
J1939 on OBDII
55
J1939 on OBDII
Name:
Transmission rate:
Data length:
Data page:
PDU format:
PDU specific:
Default priority: 6
PGN number:
Description of data:
Byte:
1
2
3,4
5,6
7
8
(5.2.5.5)
(5.2.5.14)
(5.2.5.15)
(5.2.5.16)
(5.2.5.6)
(5.2.5.242)
56
J1939 on OBDII
5.2.5.5 Engine coolant temperature
Temperature of liquid found in engine cooling system
Data length:
Resolution:
Data range:
Type:
Suspect parameter number:
Reference:
1 byte
1 oC/bit gain, 40oC offset
40 to +210 oC (40 to 410 oF)
Measured
110
5.3.28
57
J1939 on OBDII
58
J1939 on OBDII
59
J1939 on OBDII
60
J1939 on OBDII
Peer-to-peer and
Broadcast transmission
61
J1939 on OBDII
Broadcast transmission
62
J1939 on OBDII
Receiver
TP.CM_BAM
TP.DT
TP.DT
TP.DT
t
t
63
J1939 on OBDII
Peer-to-peer transmission
64
J1939 on OBDII
Receiver
TP.CM_RTS
TP.CTS
TP.DT
TP.CTS
TP.DT
TP.EoMA
65
J1939 on OBDII
19 bits
5 bits
7 bits
1 bit
66
J1939 on OBDII
DTC
Byte 3 (Least Significant
Byte of SPN)
SPN
Byte 6
FMI
C
M
OC
J1939 on OBDII
variable
0
254 (0xFE)
202 (0xCA)
6
65226 (0xFECA)
Malfunction Indicator Lamp Status
SPN, FMI, CM, and OC
68
J1939 on OBDII
Multiple DTCs
8 bytes
0
236 (0xEC)
Destination Address
7
60416 (0xEC00) 0xECFF in Caterpillar C7
Control byte = 32
Total message size (# Bytes)
Total number of packets
Reserved
PGN of the packeted message (abcdbcdbcd)
69
J1939 on OBDII
8 bytes
0
235 (0xEC)
Destination Address (Global = 0xFF)
7
60160 (0xEB00) 0xEBFF in Caterpillar C7
Sequence number
Packeted data (extra byte be filled 0xFF)
70
J1939 on OBDII
SPN-FMI
71
J1939 on OBDII
Application:
CCM
CCM
(Central
Control
(Central ControlModule)
Module)
Proprietary J1939
Registered J1939
ODM
IOM
PIM
Proprietary Interface
Module
Input/Output
Module
ODM
ABS
ABSBraking
Braking
Knorr-Bremse
ABS 2x
Engine
Engine
Caterpillar C7
ECU
Transmission
Transmission
Allison MD/HD/B Series
Transmissions
72
J1939 on OBDII
System architecture
LCD
Display Panel
Flash ROM
Push
Buttons
Vcc
LCD Interface
I/O
Port
Flash ROM
Interface
32-bit
32-bit
ARM_Core
ARM_Core
Single-Chip
Single-Chip
Microcontroller
Microcontroller
CAN Bus
Controller
CAN Bus
Transceiver
CAN Bus(J1939-11)
Indicator_
Lamps
Interfacing
Circuit
I/O
Port
Push_
Buttons
Interfacing
Circuit
Lamps
UART
Controller
UART
Transceiver
RS-232
73
74