Along with the wide use of high technology in the automobile, more and moreelectronic control units are embedded. Different types of ECUs have different func-tion. Even the same type ECUs, their functions also have difference because of thedifferent manufacturers and models. This makes the diagnosis and test of ECU be-coming more and more complex. This paper presents a design scheme of a newkind of diagnosis and test system based on the hardware in the loop. Using the sys-tem, we can convert the traditional test in real vehicle to the test in a "virtual ve-hicle".This system has four functions, test the communication between the ECUs,monitor message, simulate fault and simulate the external load of ECU. Use thesystem to simulate an ECU of vehicle, and then communicate to the other ECUs,according to the communication data received to judge whether the communicationfit the standard protocol. The test device can monitor the message of three commonbus of vehicle. Capture the data transmitted between the ECU. This system can alsosimulate the fault of automotive bus, and read the fault codes in ECU. In order totest the ability of ECU to drive load and hand the fault of load, such as short cir-cuit or open circuit, need to simulate the external load of ECU. The system usesthe DSP to control the leakage current of the MOSFET to simulate diverse exter-nal load of ECU.This paper presents two method of the design of the controller for electronicload simulation, PID controller and fuzzy-PID controller.. |