d 2 Jeffrey Craig

24
A Comparison of J1939 & ISO15031 Jeff Craig Vector CANtech, Inc.

description

d 2 Jeffrey Craig

Transcript of d 2 Jeffrey Craig

Page 1: d 2 Jeffrey Craig

A Comparison of J1939 & ISO15031

Jeff CraigVector CANtech, Inc.

Page 2: d 2 Jeffrey Craig

Agenda

– Diagnostic Standards

– Physical Interface

– Connectors

– Terminology

– Protocol Overview

– Fault Codes

Page 3: d 2 Jeffrey Craig

History Lesson

• What is this??

• 1980’s Automotive Diagnostic Tool

Page 4: d 2 Jeffrey Craig

Major Differences

J1939 (MD & HD Truck) ISO 15031 (Pass Car & LD Vehicles)

All standards defined in SAE J1939 parts ISO 15031 is harmonized with several SAE stds.

29 bit identifiers 11 bit identifiers

Used for normal communications & diagnostics Used only for diagnostics

Fault status broadcast regularly (e.g. DM1) No broadcast messages

Primary functionality defined using Diagnostic Messages (DMs)

Primary functionality defined using unique communication Service IDs (SIDs)

3 byte fault codes + occurrence counter 3 byte fault codes

Four warning lamps defined One warning lamp defined

250 Kbps bus speed 500 Kbps bus speed

Nine pin diag connector standard

(J1939‐13)

Sixteen pin diag connector standard (ISO15031‐3 /J1962)

Page 5: d 2 Jeffrey Craig

Diagnostic Standards

Page 6: d 2 Jeffrey Craig

Diagnostic Standards: Car/Truck – SAE/ISOSAE ISO

Pass Car & LD Veh

J1930 ‐ terms & defns

J1962 ‐ connector

J1978 ‐ scan tool

J1979 ‐ diag services

J2012 ‐ fault codes

J2186 ‐ link security

J2534 ‐ pass thru

J1699 ‐ OBD conformance

ISO11898 (5 parts) ‐ CAN

ISO15765 (4 parts) ‐Diagnostics on CAN

ISO15031 (7 parts) ‐Legislated OBD on CAN

MD & HD VehJ1939 (Multiple parts)

J2403 ‐ terms & defnsN/A

In some cases multiple standards will be mixed on the same vehicle

Page 7: d 2 Jeffrey Craig

Apples – to ‐ ApplesOSI Layer

MD & HD Standards & OBD Legislated

Pass Car & LD OBD Legislated

N/ADiagnostic

ConnectorSAE J1939‐13 ISO 15031‐3

7 ApplicationSAE J1939‐71/73

SAE J1939‐81ISO 15031‐5

(SAE J1979)

6 Presentation ISO 15031‐5(SAE J1979)

5 Session ISO 15765‐4

4Transport

ProtocolSAE J1939‐21 ISO 15765‐2

3Network

LayerSAE J1939‐31 ISO 15765‐4

2 Data Link SAE J1939‐21(ISO 11898‐1)

ISO 15765‐4(ISO 11898‐1)

1 Physical Layer SAE J1939‐11/15 ISO 15765‐4(ISO 11898‐2)

Page 8: d 2 Jeffrey Craig

ISO 15031 Mapping to SAE Standards

H A R M O N I Z E D

ISO 15031

J1930Terms &

Definitions

SAE Recommended Practice

J1962Diagnostic Connector

J1978Diag Tool Reqmnts

J1979Diagnostic Services

J2012Fault Code Definitions

J2186Data Link Security

2 3 4 5 6 7

Page 9: d 2 Jeffrey Craig

Physical Interface

Page 10: d 2 Jeffrey Craig

Physical Interface

J1939 – 11 or 15ISO 15031‐3, ISO 11898‐2 

& ISO 15765‐4250 Kbps  500 Kbps

Twisted Shielded Pair (11)

Twisted Unshielded Pair (15)Twisted Pair – no shield

Max 30 ECUs (11)

Max 10 ECUs (15)No Max Defined

40 m Total NW Length40 m @ 1Mbps – Longer allowed 

at lower speeds

1 m Stub Length (11)

3 m Stub Length (15).3 m @ 1Mbps – Longer allowed at 

lower speeds

Page 11: d 2 Jeffrey Craig

Connectors

Page 12: d 2 Jeffrey Craig

Connectors

1 2 3 4 5 6 7 89 10 11 12 13 14 15 16ISO 15031 – 3

(J1962)

J1939 - 13AB

CD

E

FG

H

J

Page 13: d 2 Jeffrey Craig

Terminology

Page 14: d 2 Jeffrey Craig

Terminology – Just a FewJ1939 ISO 15031

ACL = Address Claiming

BAM = Broadcast Announce Message

DM = Diagnostic Message

DP = Data Page

DTC = Diagnostic Trouble Code

ECU = Electronic Control Unit

EDP = Extended Data Page

FMI = Failure Mode Identifier

NACK = Negative Acknowledgement

PDU = Protocol Data Unit

PG = Parameter Group

PGN = Parameter Group Number

SLOT = Scaling, Limit, Offset & Transfer

SPN = Suspect Parameter Number

DLC = Data Length Code

DTC = Diagnostic Trouble Code

ECM = Engine Control Module

ECU = Electronic Control Module

FTB = Failure Type Byte

KWP = Key Word Protocol (ISO 14230)

MIL = Malfunction Indicator Lamp

NRC = Negative Response Code

PCI = Protocol Control Information

PID = Parameter ID (similar to DID or LID)

SID = Service ID

Page 15: d 2 Jeffrey Craig

Protocol Overview

Page 16: d 2 Jeffrey Craig

CAN Message Structure11 bit or 29 bit

Page 17: d 2 Jeffrey Craig

Standard CAN Format: 11‐Bit Identifier

• Usage for OBD:  ECU IdentificationFunctional Request ID for OBD diagnostic requests (source address not required since only one diagnostic tester is allowed on the bus at one time)

Source ECU ID for diagnostic responses

Most OEMs have their own ID assignment standards

Presenter
Presentation Notes
J1939 has a different construct to do CAN Remote Frame activity
Page 18: d 2 Jeffrey Craig

J1939 Extended CAN Format: 29‐Bit Identifier

• Three Components – as defined by J1939:Message PriorityParameter Group Number (Defines the data in the DATA area –SAE standardized & proprietary PGNs possible) Source Address

Page 19: d 2 Jeffrey Craig

• Interpretation of 29 Bit CAN Extended Identifier in J1939

• PDU Format < 0xF0 defines message as Peer-to-Peer. PDU Specific will be a Destination Address

• PDU Format => 0xF0 identifies message as broadcast. PDU Specific will be a Group Extension

EDP(1 Bit)

Priority(3 Bit)

DP(1 Bit)

PDU Format(8 Bit)

PDU Specific(8 Bit)

Source Address(8 Bit)

Bit 28Bit 0

PGN

J1939 29‐Bit Identifier Defined

Presenter
Presentation Notes
Data page: The Data Page (DP) and the Extended Data Page (EDP) bit expand the value of available parameter groups. The SAE J1939 standard defines the following data pages: EDPDPUsage 00Default Data page. Used from SAEJ1939 and ISO11783 01Mostly used from NMEA2000. 10Reserved for SAEJ1939. 11Reserved for ISO. Manufacturer specific communication: Some options are possible: Using the 11-Bit CAN Identifier Using reserved parameter group numbers Optional PGNs: Only the 2 at present available data pages are used for the examples.
Page 20: d 2 Jeffrey Craig

Tester ECU

Cyclic Diagnostic Messages (e.g. DM1)J1939

[[Prio + Request PGN + Dest Addr + Src Addr] [Requested PGN]]

- or -

ECUTester

ISO 15031

[[Target ID] [Requested Service + Requested Data]]

[[Source ID] [Requested Service ID + Requested Data]]

(Services can be data requests, fault code requests, output control, special test requests, security access, reprogramming requests, etc.)

[[Prio + Requested PGN + Dest Addr + Src Addr] [PGN Data]]

Diagnostic Message Structure Comparison

Page 21: d 2 Jeffrey Craig

Fault Codes

Page 22: d 2 Jeffrey Craig

8 7 6 5 4 3 2 18 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1

DTC

Byte 1 Byte 2 Byte 3 Byte 4

SPN FMI CM OC

MSB LSB

Low Byte SPN

Mid Byte SPN

MSB LSB

3 MSB of SPN

+FMI

Conversion Method

+Occurance

Count

Conversion Method Bit Affects the Interpretation of the Byte Ordering

of the SPN (0 since 1996)

J1939 Diagnostic Trouble Code

Presenter
Presentation Notes
INTEL FORMAT! note the bit/byte ordering
Page 23: d 2 Jeffrey Craig

ISO 15031 Diagnostic Trouble Code

8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1

DTC

Byte 1 Byte 2 Byte 3

SAE Code Number FTB

1st Character of SAE Code (P,C,B,U)

2nd Character of SAE Code (0,1,2,3)

3rd Character of SAE Code (0-F)

4th Character of SAE Code (0-F)

5th Character of SAE Code (0-F)

Presenter
Presentation Notes
INTEL FORMAT! note the bit/byte ordering
Page 24: d 2 Jeffrey Craig

Thank You

Jeff CraigVector CANtech

[email protected]