Remote Diagnostic System
Remote Diagnostic System
Remote Diagnostic System
Internet-connected Vehicles
ABSTRACT
This paper presents the implantation of unified diagnostic services (UDS) on connected
road vehicles and its application on remote diagnostic systems. The diagnostic equipment
can remotely access vehicles through wireless connections and acquire vehicle information,
such as diagnostic trouble codes, vehicle speed, battery voltage, engine speed, temperature
of coolant, etc. According to ISO 14229, an international UDS standard, this paper reveals a
software architecture for the implantation of UDS services. Based on the UDS software,
furthermore, it presents a prototype of remote diagnostic system for electric vehicles. The
diagnostic system consists of UDS software, a remote supervisory station (RSS), and the
implemented UDS software. Real-time information of vehicles is sent to the RSS
automatically through telecommunication links. Technicians at the RSS will launch the
UDS software to inspect the vehicle when any abnormal situation is detected. Lastly, this
paper presents verifications of the remote diagnostic systems at ARTC proving grounds. The
results show that driver safety can be secured and the malfunction vehicles can be repaired
quickly by using our remote diagnostic system.
INTRODUCTION
The Internet of Things (IOT) (1) refers to ubiquitous forms of computing in which every
object is connected in some way to the Internet. It can be applied to various applications
such as smart cities and smart metering. Thanks to advances in wireless communications,
connected road vehicle is one of the merging applications of IOT (2). As a result, vehicle
information can be sent to a remote server on line and further analyzed for providing
various services. This application is one of popular topics for today's automotive industry.
Internet-connected vehicles are the wave of the future. Recently, governments and private
-1-
sectors have invested in the related developments. For example, the United States
Department of Transportation has built a test bed in Michigan for verifying the
improvement of road safety and efficiency by adopting connected vehicle technologies.
Regarding emergency services, automotive manufactures have cooperated with
telecommunication carriers on eCall services, by which not only a call can be made
manually or automatically when any accident occurred but also relevant information about
the incident can be sent to a nearest emergency centre. Therefore, the severity of the
accident can be assessed in advance and emergency services personnel with proper
equipment can be dispatched quickly. For information services, real-time traffic data can be
collected through connected vehicle technologies. Then the data can be used to support
information services such as dynamic navigation or other cloud services in order to improve
fuel efficiency by avoiding traffic congestions.
This paper discusses remote diagnostic system (3) for internet-connected Vehicles. The first
generation of on–board diagnostic (OBD) requirements was developed by the California Air
Resources Board (CARB) in 1985 and became law in 1988. The regulations require
emission-related system on vehicles to be monitored. Any system failure should be
indicated through Malfunction Indicator Lamp (MIL) on dashboard. Therefore, the problem
can be fixed as soon as possible.
In contrast to the early OBD system, enhance-OBD nowadays provides versatile services,
such as communication management and data transmission. Among those services, remote
diagnostics through wireless connections is the focus of this paper. Figure 1 shows the
structure of remote diagnosis for internet-connected vehicles, where the diagnostic
equipment can access vehicle information through wireless connections.
This paper presents the software implementation of the wireless unified diagnostic service
protocols for internet-connected Vehicles and its application on remote diagnostic system.
The software implementation follows the standard of the International Organization for
Standardization (ISO) 14229. This rest of this paper is organized as follows. Section II
reviews the ISO 14229 international standard for unified diagnostic services (UDS). Section
III presents the protocol and software architecture of the UDS services. Then the functional
tests are given in section IV. Section V demonstrates the Remote Diagnostic System and one
of its usage case. Lastly, some conclusions and remarks are given in the end of this paper.
-2-
GPS
Internet
Internet
ISO 14229 is a set of standards specifying the implementation of UDS. It consists of six
parts: Part one covers the specifications and requirements of UDS, Part two specifies
session layer services. Parts 3, 4, 5, and 6 specify the implementations of UDS on controller
area network, FlexRay, internet protocol, and K-Line, respectively.
Table 1 shows the diagnostic services listed in ISO 14229-1 (5). The services can be divided
-3-
into six categories, including diagnostic and communication management, data transmission,
stored data transmission, input/output control, remote activation of routine, and upload and
download. Each category covers various services.
The developed wireless diagnostic system consists of an external tester, a gateway and an
on-vehicle electronic control unit (ECU). The ECU could be an electronic fuel injection,
automatic gear box, anti-lock braking system, etc. connected on a serial data link embedded
in a vehicle. Table 2 shows the OSI (Open System Interconnection Reference Model)
protocols of the developed wireless diagnostic system. Each layer adopts a specific standard.
Firstly, the application layer in tester follows ISO 14229-1 and ISO14229-5 (6); session
layer follows ISO14229-2 (7); network layer and transport layer follow ISO 13400-2 (8);
and data link layer and physical layer follows IEEE 802.11 (9). Secondly, the application
layer of the internal ECU follows ISO 14229-1 and ISO14229-3 (10); session layer follows
ISO 14229-2; network layer and transport layer follow ISO 15765-2 (11); and data link
layer and physical layer follow ISO 11898-1 (12). Lastly, the task of the gateway is for
message translation between ISO 15765-2 and ISO 13400-2 in network layer and transport
layer.
Application Layer
The protocol at application layer specifies data link independent requirements of the
diagnostic services, which allows the external diagnostic tester to control diagnostic
functions in on-vehicle ECUs. Specifically, the tester makes a request of diagnostic service
to the ECU by way of the gateway. Then the ECU responses a positive/negative diagnostic
message upon a request from the tester.
Presentation
(Layer 6)
Session
ISO 14229-2 ISO 14229-2
(Layer 5)
Transport
(Layer 4)
ISO 13400-2 ISO 13400-2 ISO 15765-2 ISO 15765-2
Network
(Layer 3)
Data Link
(Layer 2)
IEEE 802.11 IEEE 802.11 ISO 11898-1 ISO 11898-1
Physical
(Layer 1)
-4-
Session Layer
The protocol at session layer specifies services to provide independence between the
application layer and the transport and network layers. Specifically, each time the diagnostic
service is called, the session layer shall signal the completion (or failure) of the message
transmission to the upper layer. Meanwhile it shall verify that the arrival of the service
response is within certain waiting time. A typical time limit between the sending of a service
request and the receiving of the response is 2000 ms. Any exceeding of the time limit
produces an error code.
ISO 13400 specifies the requirements for diagnostic communication between the external
tester and on-vehicle gateway using Internet Protocol (IP) as well as transmission control
protocol (TCP) and user datagram protocol (UDP). On the other hand, ISO 15765-2, which
is a network protocol tailored to meet the requirements of CAN-based vehicle network
systems, specifies the requirements for diagnostic communication between the gateway and
on-vehicle ECU. The major task here is to ensure data is compliance with certain formats.
The protocols here include IEEE 802.11 and ISO 11898-1. IEEE 802.11 specifies the data
link layer and physical signaling of the IP network outside the vehicle, while ISO 11898-1
specifies the data link layer and physical signaling of the controller area network inside the
vehicle.
Figure 2 illustrates a basic wireless UDS system, which consists of an external test tester, a
gateway and internal ECUs.
-5-
ECU ECU
CAN BUS
ECU ECU
In the paper, a tablet computer is used as the external test equipment. Through the human
machine interface (HMI), users can specify the address of the on-vehicle ECU and the
diagnostic service along with some options. Figure 3 is one screenshot of the HMI, which
covers the address of the target ECU, the service information, service request button, and
response message.
Figure 4 shows the software architecture of the developed diagnostic tester. When any
service request is triggered, the application layer of the diagnostic tester first makes sure the
request is illegal than passes the request message to session layer. Session layer marks down
the departure time of the request and waits for the arrival of diagnostic response from the
on-vehicle ECU. Transport and network layer packs the request message into a specific
format and passes it down to data link and physical layers for transmission. The
transmission result will report to application layer so as to wait for service response or make
a retransmission. Upon receiving the service response from the on-vehicle ECU, the
message is decoded at transport and network layers and delivered to session layer, which
-6-
checks if the arrival time of the service response within certain time limit. Finally,
application layer checks if the diagnostic services have been rendered.
Service
External tester
Request Request Event List
Event
Application Layer
Confirm()
Session Layer
Transmitter() Receiver()
Gateway
In the paper, Mircrochip’s Explorer 16 Demo Board is used as the platform of the gateway
implementation. The software is ported to the PIC32MX795F512L micro-processor on the
demo board. This demo board accesses the CAN bus via a Microchip’s CAN transceiver (12)
and Wi-Fi channel via ROVINC Networks’ RN-171 Wi-Fi module. As shown in Table 2, the
main task of the gateway is to transform the package format from TCP/IP to CAN, and vise
versa.
Figure 5 shows the software architecture of the developed on-vehicle ECU. Upon receiving
any diagnostic request, the message is decoded at transport and network layers and
delivered to session layer, which marks down the arrival time of the service request and
waits for the departure of diagnostic response from upper layer. Per the service request,
application layer makes a specific response and send the responding message down to the
lower layer. Session layer checks if the response is made within certain time limit. The
request message is then packed into a specific format at transport and network layers and
passed down to data link and physical layers for transmission. The transmission result will
report to application layer so as to check if a retransmission is necessary.
-7-
On-Vehicle ECU
Application Layer
Session Layer
Receiver() Transmitter()
The implemented UDS software was installed on a self build electric vehicle, as shown in
Figure 6. The external diagnostic tester can access the on-vehicle ECUs by way of the
gateway. To verify the functionalities of the UDS software, we provide functional test
before combining our UDS software into the remote diagnostic system which will be
present in next section. The intention is to create simulate a situation that a consumer’s
vehicle breaks down and the manufacturer can offers roadside assistance remotely. In this
section, we demonstrate three UDS functionalities, including time-out function, read and
clear diagnostic trouble codes (DTC).
Figure 6. The installation of the developed UDS services on a self build electric
vehicle
-8-
Time-out is one important function that UDS software should implement, because the
communication link maybe lost due to varying radio signal quality. If any response message
dose not arrive within certain time limit, a time-out warring will be raised. In this time-out
test, the vehicle was kept out of the reach the external diagnostic tester. As a result, a
time-out warring popped up after a service request was made, as shown in Figure 7. Then,
the external tester was automatically reset.
Read DTC and clear DTC are two essential functions the UDS should support. DTC codes
along with their status are how OBD identifies and communicates to technicians where and
what on-board problems exist. This paper adopts three DTC codes, 0x110114, 0x124251,
and 0xd54233, which represent overheat of motor, overspeed of motor and overcurrent,
respectively. Table 3 shows the definition of the DTC status. In the test, the electric vehicle
was driven with maximum output power on an uphill track. The track was so steep that the
motor of the electric vehicle was overheated and the MIL was illuminated to alert the driver.
Then the external tester was used to read the DTC as repair information. Figure 8 shows the
screenshot of the request and response of ReadDTCInformation (0x19) service. As a result,
the tester successfully read the DTC codes of overheat and overcurrent. After repairing the
vehicle, the recorded DTC codes should be erased. Therefore, the external tester requested
the ClearDiagnosticInformation (0x14) service to clear the DTC codes. Figure 9 shows the
screenshot of the request and response of ClearDiagnosticInformation (0x14) service. As a
result, when the ReadDTCInformation service was requested again, the on-vehicle ECU
returned sub-function ID (0x02) and DTCStatusAvailabilityMask (0xee), which means there
was no DTC record available.
-9-
Figure8. Request and response of ReadDTCInformation (0x19) service
Based on the UDS software, this paper further builds an advanced remote diagnostic system,
- 10 -
which includes not only vehicles but also a remote supervisory station, as shown in Figure
10. The detailed architecture of the self build electric vehicle is shown in Figure 11, where
two CAN buses are deployed. CAN bus 1 is used to transmit information of primary
controllers such as MCU, BCU, and the gateway. CAN 2 is used to transmit information of
other controllers such as AAC. The vehicle sends its information, such as voltage, current,
speed, and temperature, to the supervisory station periodically. The vehicle information is
used to monitor the status of the vehicle. Figure 12 shows one screenshot of the monitoring
station. If any abnormal situation is detected, compared to previous collected data, the
personal at the supervisory station can further inspect the vehicle immediately by launching
the UDS services. According to the acquired DTCs, technicians at the supervisory station
can give the driver instructions for safety concerns or provide roadside assistance services
by sending out rescue team with proper equipment.
Figure 10. The installation of the developed UDS on a self build electric vehicle
CAN 1
MCU EPS
BCU
Panel VCU : Vehicle Control Unit
RS232 VCU Gateway
BCU : Battery Control Unit
330 V
Display
AAC : Automotive Air-Conditioning
12 V
EPS : Electric Power Steering
DC/DC CAN 2
MCU : Motor Control Unit
AAC Others
330 V
Figure 11. The network architecture of the self build electric vehicle
- 11 -
Figure 12. The page of powertrain in supervisory station at ARTC
To verify the functionalities of the remote diagnostic system, the electric vehicle was tested
at ARTC’s proving ground, as shown in Figure 13. For explanation purpose, one diagnostic
case is given below. The temperature and current of VCU on the vehicle were below upper
limits but higher than normal values. The supervisory station recognized this situation and
monitored the duration of these events. After the duration exceeded a certain threshold, the
UDS software was launched to acquire the DTCs. The DTCs indicated that the motor torque
was overloaded. Therefore, the vehicle was instructed to pull over immediately and
technicians were sent out to further inspect the vehicle. It turned out that the problem was
caused by mechanical brake components. As a result, the driver safety was secured and the
problem was fixed.
- 12 -
Figure 13. The proving ground at ARTC
CONCLUSIONS
This paper has demonstrated the implantation of UDS software for internet-connected
vehicles and its application on remote diagnostic systems. The basic diagnostic system
consists of an external tester, a gateway and on-vehicle ECUs. All the nodes on the system
comply with corresponding specifications, such as ISO 14229-1, ISO 14229-3 and ISO
14229-5 at application layer, ISO 14229-2 at session layer, ISO 13400-2 and ISO 15765-2
at network layer and transport layer, and IEEE 802.11 and ISO 11898-1 at physical layer.
Based on the UDS software, this paper has also presented an advanced remote diagnostic
system. The remote supervisory station constantly monitors the status of vehicles. Upon the
detection of any abnormal situation, technicians at the supervisory station can launch the
UDS software for further inspection of the vehicle. Therefore, malfunction vehicles can be
repaired quickly and driver safety can be secured.
REFERENCE
- 13 -
(7) Road vehicles — Unified Diagnositc Services — Part 5: Session layer services, ISO
14229-2, Feb 15, 2013.
(8) Road vehicles — Diagnostic Communication over Internet Protocol (DoIP) — Part
2: Transport Protocol and Network Layer Services, ISO 13400-2, Jun. 01, 2012
(9) IEEE 802.11: Wireless LAN Medium Access Control and Physical Layer
Specifications. IEEE-SA. April 5, 2012.
(10) Road vehicles — Diagnostic Communication over Internet Protocol (DoIP) — Part
3: Unified Diagnostic Services on CAN Implementation (UDSonCAN), ISO
14229-3, Jan. 15, 2013.
(11) Road vehicles — Diagnostics on Controller Area Networks (CAN) — Part 2:
Network Layer Services, ISO 15765-2, Oct. 15, 2004.
(12) Road vehicles — Control Area Network — Part 1: Data Connection Layer and
Physical Signal, ISO 11898-1, May 24, 2006.
- 14 -