Slide 1

Slide 1 text

ECU Software Validation using ECU Software Validation using Hardware-In-Loop Test Setup Automation Shrirang Agashe Eaton Technologies Pvt. Ltd. EON Free Zone, Cluster C, Wing 1, MIDC, Kharadi, Pune – 411014 STC 2012: 5th & 6th December 2012

Slide 2

Slide 2 text

Points To Be Covered • Electronic Control Units and Software • Validation in Automotive ECU Software • HIL – Virtual Test Environment • Automated Testing Using HIL Bench 2 2 • Automated Testing Using HIL Bench • HIL System Components • HIL System Illustration: Windshield wiper • HIL Testing Automation Illustration

Slide 3

Slide 3 text

Electronic Controller Units & Software Avionics Cell Phones ECU 3 3 Engine ECU Transmission ECU Automotive Telematics ECU ABS ECU ECU

Slide 4

Slide 4 text

Software Validation Using Hardware In Loop Test Setup VALIDATION “To demonstrate that the product fulfills its intended use when placed in its intended environment”. Hardware-in-Loop Testing Requirements Analysis Operational Testing Review/Test Ongoing Support 4 4 HIL System Provides the Simulated / Virtual Intended Environment for VALIDATION of S/W in ECU Under Test High Level Design Detailed Specifications Coding Unit Testing Integration Testing

Slide 5

Slide 5 text

Validation of ECU Software Using HIL In Automotive Domain Increased need of In-Vehicle Testing: Software Reliability - 1. Safety Compliance (ISO 26262) 2. Decrease Warranty Claims 5 5 Key Benefits of HIL Validation: 1. Reduce “In Vehicle testing” Resources (Test Tracks, Test Vehicles, Man Power) 2. Conduct Destructive Test Scenarios

Slide 6

Slide 6 text

Creating Virtual Environment for ECU Using HIL System Engine Driveline Brakes Communication 6 6 ECU Under Test Driver and Environmental Inputs Communication Bus Simulation of Other Controllers Sensors Actuators

Slide 7

Slide 7 text

Automation of Testing On HIL Test Setup: Test Execution 1. Driver and Environmental Inputs 2. Decide Signals to be logged: Python or C# Script 20% of test script Open Loop and Closed Loop tests Safe exit in case of error 7 7 to be logged: Black Box Vs White Box 3. Start Data Logging 4. Execute Driving Scenario 5. Stop Data Logging Fault injections using simulation model overrides Library Functions for common execution driving scenario / fault injections

Slide 8

Slide 8 text

Automation of Testing On HIL Test Setup: Post Processing Logged Data 80% of Test Script Read the data log file Choose correct signals to be observed 8 8 Find time interval to look at the signals. Decide Pass / Fail criteria. Need to mimic human brain. Report out test results.

Slide 9

Slide 9 text

Automation of Testing On HIL Test Setup: Benefits 1. In lab testing can be done 24 hours 2. Driver independent Test Execution 3. Regression Testing 4. For diagnostic testing, the signals can be changed at 1 ms timing accuracy. This is impossible in actual 9 9 1 ms timing accuracy. This is impossible in actual vehicle. 5. Exhaustive data capturing, recording and reporting. 6. Consistency in the pass / fail criteria: Independent of engineering judgment.

Slide 10

Slide 10 text

HIL System Components Fault Insertion Unit Simulated or Real Electrical Loads Signal Generation and Measurement Cards Real Time Communication Cards 10 10 ECU under Test ECU Under Test Real Time Computer Power Supply (DC) Host Computer ECU Harness Standard Harness Ethernet Link

Slide 11

Slide 11 text

HIL System Illustration : Windshield Wiper Requirement: The wiper should turn ON when wiper switch is pressed. Also wiper should turn OFF when wiper switch is released and wiper reaches it’s parking position. Intermediate Position Controller Environment 11 11 Parking Position Position Wiper Parking position Limit Switch Wiper Motor Wiper Switch Input Output Input Output Input Plant Model

Slide 12

Slide 12 text

Main Controller (ECU) & Electrical Interfaces Parking Switch Digital Out Card PWM / ADC In Card RTPC Wiper Switch Controller Contains Code to read inputs and control output 12 12 Fault Insertion Unit ECU under Test ECU Simulated or Real Electrical Loads Signal Generation and Measurement Cards Power Supply (DC)

Slide 13

Slide 13 text

Real Time Computer (RTPC) Signal Generation and Measurement Cards Real Time Communication Cards Intermediate Position Input Environment 13 13 Real Time Computer Power Supply (DC) Host Computer Parking Position Output Heart of the system / HIL System Controller Wiper Motor Parking switch

Slide 14

Slide 14 text

Host Computer • Operator / Environment Inputs (GUI) • Static linking between RTPC, I / O Cards, Communication Cards Real Time Computer 14 14 Communication Cards • Runs the Automation Scripts Host Computer

Slide 15

Slide 15 text

HIL Testing Automation Illustration: Windshield Wiper Scenario 1: When wiper switch was turned off and Wiper was in parking: Wiper motor turned off immediately. Scenario 2: When wiper switch was turned off and wiper was in intermediate position: Wiper motor turned off after wiper reached parking position 15 15 Wiper Motor Parking Switch Wiper Switch

Slide 16

Slide 16 text

HIL Testing Automation Illustration Continued: Windshield Wiper Scenario 1 Execution: Turn on wiper switch. Wait for 2 minutes. Keep watching parking switch input. Turn off wiper switch as soon as parking position is reached. Scenario 2 Execution: Turn on wiper switch. Wait for 2 minutes. Turn off wiper switch as soon as wiper leaves parking position. 16 16 is reached. Post Processing: Check if Wiper motor is made off in 100 ms after wiper switch is off. Also verify if wiper was in parking position at the same instance. Post Processing: Check if Wiper motor is NOT made off after releasing wiper switch. Check wiper motor is made off in 100 ms after wiper reaches parking. Logged Variables: Wiper Switch (GUI), Parking Switch (Plant Model), Wiper Motor (Electrical)

Slide 17

Slide 17 text

Q & A 17 17