Professional Documents
Culture Documents
Automated Testing of Faults of An Automotive System
Automated Testing of Faults of An Automotive System
Abstract— This paper describes an automated method to parameter changes and reduces cost by increasing error
test the Diagnostic Trouble Code (DTC) life-cycle of an detection efficiency [6-7]. VT System is one such modular
Automotive Electronic Control Unit (ECU) using the VT Hardware in Loop (HIL) system which integrates all the
System as hardware in loop and accessing it using the CAN required components needed for simulation and creates a
Access Programming Language (CAPL). Faults will be
inserted as per the output load specifications using the inputs
suitable test environment by interfacing system hardware
and outputs of the VT System to create various test scenarios. with the ECU [8]. The sensors and actuators are simulated
Interfaces that connect hardware parts in the testing electronically using different VT modules to produce as
configuration, also enable the data exchange and many fault patterns as possible within a short period of time.
communication between the isolated software of VT System This environment can replicate the dynamic behavior of
and ECU. This configuration has been simulated in CANoe vehicle, reduce the time span of analysis and development,
software implementing most of the real time constraints and and eradicate the requirement of using expensive real
adding functionalities to make the testing framework more developmental/Proto vehicles for testing purposes [9].
efficient. The self-generated test report provides an overview
of the passing or failure status of the testing performed with
the triggered DTCs.
I. INTRODUCTION
The quest to satisfy the ever-increasing demand for
automotive safety, reliability, comfort and efficiency has
increased the complexity of an automotive network. This
further led to the requirement of extensive testing and
validation of Electronic Control Units (ECUs). Hence,
significant amount of time and efforts are needed to develop
these embedded devices as functionally reliable modules [1- Fig.1: Hardware simulation through VT System [10]
2]. While testing in the integrated test environment, the test
system should be able to generate various test conditions to II. SIMULATION OF FAULT SITUATIONS
record the functional behavior of an ECU during the normal The correct functioning of vehicle components and
and failure mode. Extensive tests under these conditions are systems is defined in the appropriate design specifications.
especially important, because their detection is difficult and Typically, these specify that for a given set of inputs or
testing them in the later phases of development may actions, there will be certain outputs or reactions. There may
increase the cost [3]. Testing the functionality under normal be tolerances applied to the input and output sets. Any
condition requires analyzing the response of the ECU’s output parameter within this band is considered as correct
actuator output while varying the sensor input. During the operation. A fault is any deviation from the specified
failure mode, test system requires additional components to operation of the component or system for specified set of
simulate fault cases along with switching load and sensors inputs. The effects of the fault may be directly visible to the
[4]. vehicle user (e.g. engine does not start) or indirectly visible
To ensure all the interfaces of ECU work exactly as (e.g. high fuel consumption). These may be trivial (e.g.
expected requires immense amount of validation and temporary loss of communications) or important (e.g.
verification. This emphasizes the need for automated testing malfunction of a crash detection sensor) [11]. Whenever the
which involves the verification of test requirements, ECU detects any fault in the system, ECU either provides
development of test scripts and their execution by visual indications in terms of tell-tale and/or stores specific
automated testing tools [5]. It reduces the duration of testing fault code called the Diagnostic Trouble Codes (DTCs) in
cycles, manual errors. Also helps in quick analysis of its memory. These specific faults shall be monitored in all
Authorized licensed use limited to: Tsinghua University. Downloaded on July 06,2022 at 07:58:29 UTC from IEEE Xplore. Restrictions apply.
the applicable ECUs. These DTCs can be later extracted Faults created can be verified by reading DTCs
from the memory of the ECU using implemented protocol stored in the ECU fault memory.
like ISO-14229-1, ISO-14230 etc. which help in
determining the cause of a fault [12-13].
To achieve reliability of systems, it is equally important
that the ECUs should react properly in response to the fault
conditions [14]. It is therefore important to simulate all
possible fault scenarios such as:
1. Failure of electrical wiring (e.g. short circuit to
battery, short circuit to ground, open circuit)
2. Failure in sensors or actuators
3. Incorrect input values
4. Switch Stuck
To automate testing of above fault scenario we need to
link the different diagnostic parameters, fault memory,
input/output configurations of the ECU pins and the
parameter specifications. Based on this information, a
suitable HIL module can be configured for respective Fig. 2: System Design of the Testing Environment
failure scenario of ECU pin. Inputs / Outputs of HIL
systems need to be calibrated in a way to generate different
fault states like fault not present, fault present, fault
removed. Fault memory tests can be verified with above
fault scenarios. The input/output of the ECU are simulated
through the HIL System. HIL system I/O are controlled by
the configurable parameter values which in response trigger
an error situation for respective I/O of ECU.
Authorized licensed use limited to: Tsinghua University. Downloaded on July 06,2022 at 07:58:29 UTC from IEEE Xplore. Restrictions apply.
The simulation nodes are created using the CAPL code
with required functionality. This is required for integration
of the system variables of individual modules and pre-
processed data (e.g. PWM measurement, average, RMS
value) assisted by the VT System. The Open Diagnostics
Data Exchange (ODX) file which is having diagnostics
database of the ECU, is attached to the testing environment.
The simulated partner ECU CAN signals will be sent to
device under test for simulating actual vehicle scenario.
Figure 4 shows an actual setup for one ECU being tested for
functional behaviour.
Authorized licensed use limited to: Tsinghua University. Downloaded on July 06,2022 at 07:58:29 UTC from IEEE Xplore. Restrictions apply.
Fig. 9: The voltage variation display in the Graphics window
TABLE 1: FAULT MEMORY WINDOW AND WRITE WINDOW ENTRIES REGISTERED DURING VARIOUS FAULT CONDITIONS
Test Step Write Window Fault Memory Window Result
During DTC
Test registered
Execution
Post DTC
Fault removed
condition
Authorized licensed use limited to: Tsinghua University. Downloaded on July 06,2022 at 07:58:29 UTC from IEEE Xplore. Restrictions apply.
V. CONCLUSION [5] D. Zheng, S. Zhang, "Test Automation for Automotive Embedded
Systems," Master’s thesis in Embedded Electronic System Design,
The automated testing procedure for fault detection of Chalmers University of Technology and University of Gothenburg,
an ECU aims at improving its life-cycle development Gothenburg, Department of Computer Science and Engineering
Sweden, 2017.
method. It ensures the reliability of the product on [6] M. Haug, E. W. Olsen and L. Consolini, “Software Quallity
consumer side along with quality standards. Though the Approaches: Testing, Verification and Validation,” Springer-
complexity is increased but it enables greater depth and Verlag Berlin Heidelberg, 2001.
breadth of testing. Test requirements can be managed, test [7] D. Kum, J. Son, S. Lee, & I. Wilson, “Model-Based Automated
Validation Techniques for Automotive Embedded Systems,” SAE
environment can be simulated, and the test reports can be International, 2007.
obtained automatically in less time. Also same [8] S. T. Shruthi and K. H. N. Mufeeda, “Using VT System for
configuration can be utilized for multiple ECU with Automated Testing of ECU,” IOSR Journal of Computer
proper mapping. The reusability of the CAPL scripts Engineering (IOSR-JCE), vol. 18, no. 3, pp. 28-31, May-Jun
2016.
increases accuracy and provides quicker analysis for a [9] K. Enisz, D. Fodor, I. Szalay, & L. Kovacs, “Reconfigurable Real-
larger domain of variable change. The probability that the Time Hardware-in-the-Loop Environment for Automotive
ECU under test shall behave appropriately under all the Electronic Control Unit Testing and Verification,” IEEE
circumstances intensifies. Instrumentation & Measurement Magazine, pp. 31-36, August
2014.
[10] S. Krauss, “A Modular Test System for Efficient Functional Tests
VI. ACKNOWLEDGEMENT with Fault Simulation,” [Online]. Accessed on: Nov. 22, 2018.
Available:https://assets.vector.com/cms/content/know-
The authors would like to express their sincere how/_technical-
gratitude to the TATA Motors Limited, Pune for its articles/VT_System_Steuergeraetetest_AutomobilElektronik_2009
guidance and painstaking efforts for availing the 04_PressArticle_EN.pdf.
[11] R. Pupala and J. Shukla, "Review Paper on Vehicle Diagnosis with
prerequisites for getting this project done. Electronic Control Unit," International Journal of Innovative
Science and Research Technology, vol. 3, no. 2, pp. 117-123,
REFERENCES February 2018.
[12] “RobertBoschGmbH: CAN-Specification, 2.0,” [Online]. Accessed
[1] J. Biteus, "Fault Isolation in Distributed Embedded System," Ph.D. on:Aug. 27, 2018. Available:
dissertation, Linköpings universitet, Linköping, Sweden, http://esd.cs.ucr.edu/webres/can20.pdf.
Department of Electrical Engineering, 2007. [13] A. Hentschel, E. Nordlander, “Design of an information system for
[2] F. Gustafsson, “Automotive safety systems, replacing costly vehicle diagnostic trouble codes,” Master’s Thesis in Computer
sensors with software algorithms,” IEEE Signal Processing Systems and Networks, Chalmers University of Technology and
Mag., vol. 26, pp. 32-47, 2009. University of Gothenburg, Gothenburg, Department of Computer
[3] C. L. Heitmeyer, R. D. Jeffords and B.G. Labaw, "Automated Science and Engineering Sweden, 2013.
Consistency Checking of Requirements Specifications," ACM [14] N. Niedermark, F. Low and S. Muller, "Automated Data Driven
Transactions on Software Engineering and Methodology, vol. 5, Validation of the Diagnostic Implementation," ATZ elektronik, vol.
no. 3, pp. 231-261, July 1996. 10, pp. 22-25, July 2015.
[4] S. Krauss, “Comprehensive ECU Tests with Fault Simulation,”
Vector Press Book, [Online]. Accessed on: Nov. 22, 2018,
Available:https://vdocuments.mx/vector-press-book.html.
Authorized licensed use limited to: Tsinghua University. Downloaded on July 06,2022 at 07:58:29 UTC from IEEE Xplore. Restrictions apply.