Chinese name: Hardware-in-the-loop mbth: HIL Part of Speech: Introduction, Application, HIL Hardware-in-the-loop (HIL) simulation has been proved to be an effective solution. This technology can ensure that the testing of embedded software is completed early in the development cycle. At the beginning of system integration, embedded software testing will be more thorough and comprehensive than traditional methods. In this way, problems can be found early, thus reducing the cost of solving problems. The only way for automobile original equipment manufacturers and suppliers to cope with the increasing demand for ECU testing is to efficiently create tests and automatically execute them. Hardware-in-the-loop simulation based on V-mode is a feasible testing method. Through HIL, a large number of controllers can be tested in a "virtual vehicle" without a real vehicle. HIL test system can simulate drivers, vehicles and their working environment, and is an ideal laboratory tool for ECU automatic test. The advantages of this test method are: separating the test process from the test bench; Can carry out ECU test under extreme or dangerous conditions, and will not cause harm to personnel or vehicles; It is convenient to simulate various working conditions of the controlled object and various state combination relationships between input signals; Quickly simulate/reproduce complex fault modes and identify the root causes of complex faults in the early stage of ECU development; Can realize multi-ECU integrated test; All-weather automatic testing can be realized, and the coverage of automatic testing is wider than that of manual testing; Easy to maintain and expand the test ability; Shorten the development cycle and save the development cost. At present, HIL system has been introduced by domestic and foreign scientific research institutions such as NI, Zhejiang University ESE Engineering Center. Hardware in the loop (HIL) means hardware in the loop. First look at the differences between the following three situations (if the simulation of the actual controller is called virtual controller and the simulation of the actual object is called virtual object, three forms of control system simulation can be obtained: ① Virtual controller+virtual object = dynamic simulation system, which is pure system simulation; ② Virtual controller+physical object = rapid control prototype (RCP) simulation system, which is a kind of hardware-in-the-loop simulation of the system; ③ Actual controller+virtual object = HIL simulation system, which is another kind of hardware-in-the-loop simulation of the system. Introduction of HiL system HiL(Hardware-in-the-Loop) Hardware-in-the-loop simulation test system runs the simulation model through the real-time processor, simulates the running state of the controlled object, and connects with the ECU under test through the I/O interface, so as to test the ECU under test comprehensively and systematically. Considering the safety, feasibility and reasonable cost, hardware-in-the-loop simulation test has become a very important part in the development of ECU, which reduces the number of road tests of real vehicles, shortens the development time and reduces the cost, and at the same time improves the software quality of ECU and reduces the risk of automobile factory. In the field of new energy vehicles, hardware-in-the-loop simulation test is very important for the three core electronic control systems: vehicle control system, BMS battery management system and MCU motor controller. However, the traditional hardware-in-the-loop simulation test system of automobile electronic control system can not be solved because of its high-precision real-time requirements, high-voltage and high-current security, particularity of signal interface and expansibility of the system. HiL system solution HiL system overall architecture: HiL system mainly consists of three parts: hardware platform, experimental management software and real-time software model. Hardware platform: HiL system hardware platform is mainly based on NI products, providing a variety of real-time processors and I/O boards. Based on open industrial standards, it can ensure that customers can apply the latest PC technology to HiL test system and always meet the requirements of future test systems. Eon Technology also provides several HiL test systems with low cost and small size for customers to build small systems to choose from. Among them, CompactRIO(cRIO series) is a typical low-cost, reconfigurable control and acquisition system. It can also be connected to the main control cabinet through Ethernet, which can easily expand the I/O interface of the hardware-in-the-loop simulation system. The main components of the hardware platform are: real-time processor, I/O interface, fault injection unit (FIU), communication interface, FPGA module, load simulation unit, signal conditioning unit, programmable power supply, cabinet and junction box. 2) Experiment management software: The HiL system experiment management software platform is built with NI VeriStand 20 10 as the core, connected with real-time processor through Ethernet, and cooperated with LabVIEW, FPGA module, real-time module and other rich function expansion packages. Users can carry out: hardware configuration management, self-updating hardware resources, upgrading system functions, importing control algorithms or system models from third-party modeling environments such as Simulink, providing test commands, creating visual interactive interfaces, flexibly modifying user interface configuration, simulating and generating event alarms, completing tests, automatically recording data, automatically analyzing data and generating reports, etc. 3) Real-time software model: The real-time software model of HiL system mainly includes: HiL system adopts an open hardware platform, Support a variety of simulation software: engine model 4Matlab/Simulink/Stateflow/RTW battery model 4 LabVIEW control design and simulation motor model 4 Tess Endyna/Vedyna transmission system model 4CarSim/ Features of HiL system such as TruckSim driver model 4GT- power vehicle dynamics model 4AMESim road and environment model: truly open software and hardware platform, support for third-party hardware, convenient system upgrade and expansion, support for C, C++, Matlab/Simulink, LabVIEW, DLL and other multilingual environments, real-time high-precision data acquisition and multi-rate data sampling, global service, Support and facilitate integration with professional partners, third-party HiL products-battery simulation (DMC)- motor simulation (OPAL-RT, SET)- engine simulation (MicroNova)- turnkey service.