Automating fault insertion tests to improve automotive software quality
Author : Steven Edwards | Switching Product Manager | Pickering Interfaces
01 May 2021
Transfer case control mechanism (TCCM) testing of engine control units (ECUs), especially safety related models, is as much about software testing as it is about hardware — this is due to the increased intelligence required within ECUs to control braking, prevent rollovers & to ensure that power is applied to the correct wheels in a compromised driving mode.
The full version of this article was originally featured in EPDT's 2021 PXI for T&M supplement, included in the May 2021 issue of EPDT magazine [read the digital issue]. And sign up to receive your own copy each month.
Automotive manufacturers such as Magna Powertrain, Delphi and Continental share the same concerns for testing the safe operation of their products. Here, Steven Edwards, Switching Product Manager at modular signal switching & simulation experts, Pickering Interfaces explains how cost-effective, modular PXI products can be combined to create flexible test systems that automate the otherwise lengthy process of inserting faults into a system, thereby helping improve the quality of this critical automotive software.
A transfer case is a mechanical/electronic device that monitors wheel slippage and ensures that power is applied to wheels that are not slipping. As part of the design process, manufacturers run a series of tests to ensure that the software that controls their transfer cases reacts to system failures, such as open, shorted and cross/inline resistance connections, in a predictable and safe manner. Manufacturers sometimes develop test fixtures that allow them to manually inject faults. While this is effective, it is also time-consuming. Manual fixtures also require more frequent maintenance, and this manual insertion is prone to operator error, which can compromise test results.
Pickering’s PXI Fault Insertion Unit (FIU) switching solutions for hardware-in-the-loop (HIL) simulation applications and Programmable Resistors can be used to introduce electrical faults into a system, typically duplicating conditions that can occur because of corrosion, short/open circuits and other electrical failures, caused by age, damage or even faulty installation. By automating the fault injection process, users can run more test cases in a shorter period of time, testing is more repeatable and problems can be fixed earlier in the development cycle.
As part of the TCCM, a transfer case ECU connects to sensors and actuators in the transfer case, as well as interfaces with the vehicle’s Controller Area Network (CAN). When a driver shifts into gear, the transfer case ECU receives the command and then determines if it can perform this shift or not. After it has successfully performed a shift, the transfer case ECU reports this to the network. In operation, many different faults can occur. For example, consider an eight-conductor cable that connects actuators and sensors in the transfer case to the control module. These connections can fail open or short to adjacent conductors; in addition, high-resistance connections and high-resistance shorts can develop as automobiles age, and these can cause a transfer case to fail in the field. Therefore, manufacturers simulate these faults in their lab.
HIL testing has become a very popular way to test the ECU. A HIL simulator can provide all of the inputs and outputs of a vehicle without actually building prototype vehicles. They can even test a transfer case ECU without actually having the mechanics of a transfer case. In this mode, the HIL test system simulates the transfer case, in addition to the rest of the vehicle.
To test the transfer case ECU software, designers have developed a number of different operating scenarios. These include vehicle start-up, shutdown and driving scenarios designed to put a transfer case control module through its paces. A typical test fixture called a breakout box is used to manually insert faults. While this method is an effective way to get started, it was clear to one of Pickering’s customers that there was much
room for improvement.
For this particular customer, using the breakout box, it took up to eight minutes to run a single test case. Since the customer runs thousands of test cases, it was evident that a way to reduce the test time was imperative. Another disadvantage of manually inserting faults in this way is that the customer could only insert shorts and opens. For thorough testing, resistive faults needed to be inserted too. Finally, breakout boxes are hard-wired, and therefore not very flexible. To test different transfer case ECUs, or different product configurations, a new breakout box is required which is costly and time-consuming.
Automating fault insertion
Clearly, manufacturers have been thinking about how to automate fault insertion. After evaluating switching systems from several vendors, this customer purchased a 19-slot PXI chassis, populated with several PXI bus modules (model 40-191 30A Fault Insertion Switch Module) from Pickering, to simulate shorts and opens. This module is capable of carrying 40A on single channel, or 30A on all channels at the same time. It is designed to insert three different fault conditions between the test fixture and the equipment-under-test, including open circuits, short circuits between UUT connections and short circuits to external signals. Solid state relays on each channel enable the test system to set signals to the UUT to open-circuit. Fault-insertion buses allow any channel to be shorted to any other channel and also enable any channel to be connected to an external signal such as Power, Ignition or Ground to simulate fault conditions.
Pickering’s Programmable Resistor Modules (model 40-295) are used to simulate high-resistance faults. This module provides up to 18 fully isolated variable resistors at 8-bit resolution or ten fully isolated variable resistors at 16-bit resolution. The resistance of each of the channels can be set between 0 and 16 MO.
The switching system connects the HIL simulator, the transfer case ECU being tested and the transfer case, if required. The switching system is used to inject all of the potential faults. For example, to inject open faults, they simply have to open the line. To short two lines, they connect each of the two lines to a Fault Insertion module and connect the two signals to one of the module’s fault buses. To simulate a short to power or ground, they connect the signal line to one of the fault buses, and then connect that bus to ground or to an external voltage...
Read the full article in EPDT's May 2021 digital issue...
Contact Details and Archive...