Professional Documents
Culture Documents
Design and Implementation of SAE J1939 Vehicle Diagnostics System
Design and Implementation of SAE J1939 Vehicle Diagnostics System
Design and Implementation of SAE J1939 Vehicle Diagnostics System
ISBN: 978-1-7281-3112-2 71
2019 International Conference on Computation, Communication and Engineering
in the range of heavy commercial vehicles, both "On-Road" that the introduction of the proposed security mechanism does
(Truck & Trailer) and "Off-Road" (Construction, Cranes, etc.). not have considerable effects on the generic CAN bus
SAE J1939 is the recommended practice used for communication reliability. They also show that CAN-FD,
communication and diagnostics interaction among heavy duty standard proves to be an excellent solution for carrying the
(HD) vehicle components. additional authentication data. However, the emerging CAN-
As illustrated in Figure 1, it defines five layers in the seven- FD, standard is not widely used in commercial vehicles.
layer OSI network model, and this includes the CAN ISO Yang Jiansen et al. [5] proposed the Automobile Smart and
11898 specification (using only the 29-bit "extended" identifier) Integrated Control System (ASICS) framework for HD
for the physical and data-link layers. Under J1939/11, the data vehicles with its proprietary XMQ J1939 protocol. In order to
rate is specified as 250 Kbit/s. SAE J1939/21 defines a special reduce the design complexity, this paper only implements the
parameter group (PG) called Request (RQST, PGN = 0x0EA00) partial Diagnosis Message (DM) modes and the data length of
PG which may be used to request transmission of any other the data field is bound to 8.
parameter group. The session and presentation layers are not Sun Wei et al [6] implemented a fault monitoring and
part of the specification [2]. diagnosis system based on SAE J1939 protocol. The main
expert system is to develop a knowledge based and an event
C. J1939 packet architecture and message analysis triggered algorithm to build a reasoning mechanism-based
SAE J1939 is a set of standards based on CAN (ISO 11898) algorithm. This system relies on an embedded system with
architecture, so the J1939 packet architecture is like CAN Bus, ARMSYS2440 core processor and WINCE operating system.
it uses CAN 2.0B which is an extension CAN Bus. CAN 2.0B, Thus, the size and power consumption of the system is too
has a 29-bit data length for storage on the CAN packet large to be equipped in a commercial vehicle.
identification code (CAN
( ID)) as shown in Figure
g 2. The purpose of this work is to develop a hardware device
that meets the SAE J1939 on-board diagnostic system standard
for users and fleet managers. Our system helps the driver to
grasp the vehicle information at any time. With the advantages
of compact size and flexible interface, specific applications for
Figure 2: CAN 2.0B Extended Packet Format. data storage, fusion, interpretation, and analysis, can be
realized easily.
J1939's 29-bit ID contains the seven parts named as Priority,
R, DP, PDU Format, PF, PDU Specific and Source Address. IV. DEVELOPMENT AND IMPLEMENTATION OF SOFTWARE
The PDU Format, PF, and PDU Specific are used to indicate AND HARDWARE SYSTEMS
the PGN group of J1939 is shown in Figure 3.
A. System structure
The vehicle monitoring device "J1939 Bridge" developed in
this work on heavy duty vehicles is shown in Figure 4. "J1939
Bridge" can receive information from the vehicle, such as the
speed, engine speed, engine coolant temperature, including
other vehicle status, and transmit data via wireless
communication (Bluetooth) to the mobile application.
In real-time display, the mobile phone APP can also record
Figure 3: SAE J1939 Packet format. a message each time a vehicle sends a message and also can be
monitored on an LCD screen. The data is stored machine or
There are four categories in J1939's message delivery method, stored in the cloud for the back-end analysts were driving
namely: behavior analysis. Based on SAE J1939 standard, heavy-duty
x Data Frame: This is to send data to other ECUs. vehicles can transmit vehicle ECU information through the
x Request Frame: This is to request data from other ECUs. J1939 protocol in a broadcast manner.
x Error Frame: This is to indicate that an error occurred while
receiving data.
x Overload Frame: This is to indicate that an overload occurs
when receiving data.
72 ISBN: 978-1-7281-3112-2
2019 International Conference on Computation, Communication and Engineering
B. Development Environment
The system development flowchart is shown in Figure 8.
Basically, the CANoe is used for system planning. The system
implementation (coding and debugging) is realized in the
Renesas RL78 design environment. Finally, the function
validation and verification is completed by using various J1939
emulators and specific scopes and logic
g analyzers for CAN bus.
Figure 5: Components in J1939 Bridge (solid lines).
ISBN: 978-1-7281-3112-2 73
2019 International Conference on Computation, Communication and Engineering
4x20 LCD
Bluetooth Module
I/O
UART
The RL78F14 consists of a single chip 16-bit Figure 12: FV-2 – By Emulator-B (J1939_ECU_Simulator).
microcontroller. Data read from its CAN Tx / Rx interface will
be interpreted and sent to the Bluetooth module via the SAU0- The development board uses an oscilloscope for waveform
UART0 Tx / Rx interface. Thus an App. on the external mobile observation. The oscilloscope is used to verify that the CAN
phones can access the J1939 data through the Bluetooth Bus can reliably transmit data and observe the integrity of the
communication channel. waveform, it helps to confirm that the "1939 Bridge"
developed in this paper is safe and reliable in all kinds of noise
V. EXPERIMENTAL RESULT environments.
VII. REFERENCES
74 ISBN: 978-1-7281-3112-2