The development of a new automobile involves extensive test drives totaling several million kilometers with prototypes in the various stages of development. This is the only way to put all systems through their paces. In practice, such tests are still an integral part of the overall development process, but advances in modern driver assistance systems call for different strategies.

Jörg Turowski, Specialist Project Manager for powertrain HiL systems, 2021, Porsche AG
Jörg Turowski, Specialist Project Manager for powertrain HiL systems

After all, just to test a semi-autonomous driving function, engineers would have to test it on the road for several years. That's why computer simulations are increasingly coming into focus. Including at Porsche Engineering. In many projects, experts there use hardware-in-the-loop (HiL), a method that has proven itself in component tests and is increasingly being used for highly complex systems as well.

Hardware-in-the-loop is the link between software and the target hardware in the vehicle. The HiL test bench acts as a replica of the real environment of an ECU or an ECU network. The electronics of the connected ECU are supplied with electrical control signals, while the signals of the bus systems are supplied by a residual bus simulation. For the ECU, this state cannot be distinguished from operation in the vehicle. For test purposes, it is also possible to selectively apply incorrect information to the vehicle’s sensor interfaces and data buses, for instance to simulate the effects of a defective crankshaft or the complete failure of another vehicle system, as a means of validating the ECU’s diagnostics.

Library with simulation models

The basis for the HiL simulations is detailed mathematical software models, which are created with Matlab/Simulink and reproduce the physical processes in the vehicle. They are stored in libraries from which the modelers can extract suitable modules— for example based on the engine variant or chassis type—and combine them to form an overall simulation model. Among other things, the library contains models for the behavior of an intake system or the combustion chamber, but also complex models of various chassis with or without adaptive air suspension, anti-roll stabilization, and a wide variety of wheels.

Access to the libraries means that not every HiL simulation model has to be reprogrammed. Instead, it is sufficient to configure and parameterize the existing modules. However, replicating the physical processes in the vehicle is very computationally intensive and requires an appropriate infrastructure. “We have installed several very powerful computers in the HiL test benches and can thus now easily reproduce individual submodels physically correctly in real time. There are also models of the entire vehicle network, the driver, and the environment. But in some complex processes, such as the entire combustion cycle in the engine, we currently still have to find a workaround,” says Jörg Turowski, who is the specialist project manager at Porsche Engineering responsible for powertrain HiL systems.

“Some of our Hil tests would be associated with a high risk of personal injury and property damage in the vehicle.” Jörg Turowski, Specialist Project Manager for powertrain HiL systems

That’s why the HiL experts use neural networks, which require significantly less computing power than physical models. Among other things, they are used to simplify physical models. In a simulation model of an engine, for example, the sequence of the combustion process is calculated from the control signals of the engine control unit. The simulation provides values such as the generated torques and sensor signals as output variables, which are fed back into the engine control unit. By using a neural network, these output values do not have to be calculated using a physically correct formula. Instead, the neural network provides them in real time. To do this, however, it must first be trained with the data from a real prototype engine or a physical model that is not capable of real-time execution. Porsche Engineering has been using neural networks very successfully in its simulation models for years.

Measurement and control

Sensors supply the input for the electronic control unit, which then compares the measured actual values with target values. If the actual values deviate from the target values, the control unit initiates corrections via actuators.

Image Alt Text

The possibilities for validating software are almost unlimited thanks to HiL test benches. “With hardware- in-the-loop, even test cases that are very difficult to examine on the road or in field tests can be analyzed,” explains Heiko Junker, Senior Manager Powertrain Electronics at Porsche Engineering. This applies in particular to the study of extreme situations. 

Heiko Junker, Senior Manager Powertrain Electronics, 2021, Porsche AG
Heiko Junker, Senior Manager Powertrain Electronics

"Some of these tests would involve a high risk of personal injury and property damage in the vehicle,” adds Turowski. “With hardware-in-the-loop, on the other hand, they can be repeated as often and exactly as desired.” As examples, he cites tests at high speeds, deliberately exceeding limits, and testing software responses to signals that are only triggered in the event of an accident. “This is important, for example, to validate protective functions,” says Turowski.

When using hardware-in-the-loop, Porsche Engineering benefits from its many years of experience in the field of simulation. In addition, the identical simula- tion models are used in the complete validation and integration process. “This allows us to exploit many synergies,” says Junker. “We are also aided by fully automated processes, from the specifications to the test result.

We use test specification generators and test case generators for this.” Customers benefit from a one-stop service: Porsche Engineering offers them a complete package—from the concept to design and commissioning to residual bus simulation and physical modeling. Added to this is a detailed analysis of the test results, including recommendations on possible remedial measures.

Intercontinental cooperation

Several Porsche Engineering locations work closely together on HiL projects. This intercontinental cooperation on the basis of the same processes, techniques, and methods gives Junker and Turowski the opportunity to distribute tasks worldwide according to the availability of resources and expertise and with due regard for the special features of the markets.

“We are continuously expanding our Hil capacities.” Heiko Junker, Senior Manager Powertrain Electronics

For example, while the site in Mönsheim provides the hardware-in-the-loop test benches on site for component and function developers and develops the concepts for future HiL systems, the tools for automated test case implementation and evaluation are continuously optimized in Prague, as well as in-house HiL systems for test case execution. Shanghai, on the other hand, specializes in the creation of physical simulation models and the integration and teaching of neural networks.

Expertise: When using HiL, Porsche Engineering benefits from its many years of experience with simulations, 2021, Porsche AG
Expertise: when using HiL, Porsche Engineering benefits from its many years of experience with simulations.

“We can also take advantage of the time difference between Germany and China,” Junker says. “If we find an error in the simulation model here during HiL tests, it can be analyzed overnight in Shanghai.” There, as well as at the other international locations in Cluj, Prague, and Ostrava, Porsche Engineering maintains laboratory space with a total of more than 60 HiL test benches. In addition, there are another 40 or so test benches in Germany, making it possible to meet the steadily increasing demand for testing. In the future, the use of hardware-in-the-loop technology will continue to increase, as the trend toward fewer and fewer real prototypes will continue. "This is why we are continuously expanding our HiL capacities,” says Junker.

The computing power required for highly complex simulation models is available, as it can be increased almost indefinitely by moving parts of the model to the cloud. “Moreover, the ECUs at the test benches are already connected to the backend today,” says Turowski. “So cloud functions can also be validated at an early stage.” Even the complete replacement of prototypes seems conceivable: “We are working on connecting several component HiL systems in the cloud to form a virtual complete vehicle,” says Junker.

Info

Text: Andreas Burkert

Text first published in the Magazine Porsche Engineering, issue 2/2021.

Related Content

Norway: a country electrified
Innovation

Norway: a country electrified

More than half of the new vehicles registered in Norway in 2020 had an all-electric powertrain. In addition to modern design and innovative technology, customers there look for long range and space for the family – making the Porsche Taycan and the new Taycan Cross Turismo the perfect match.

When software writes software
Innovation

When software writes software

Software is increasingly becoming the determining factor in automotive development. Marius Mihailovici, Managing Director of Porsche Engineering Romania, takes a look into the future of software development and explains why the job of a programmer could change completely in the next 20 years.

From coal mining to data mining
Innovation

From coal mining to data mining

Porsche Engineering employees are working on the interface between the vehicle and its electronics. They are combining traditional automotive engineering with the latest IT technologies and collaborating closely with the academic world.