Development of a New Hardware-in-loop Simulation Platform for GD-1 Diesel Engine Based on CAN and Multithread Technologies
JX Wang,HB Tang,KQ Zhu,L Yang,XJ Mao,B Zhuo
DOI: https://doi.org/10.1109/icves.2005.1563613
2005-01-01
Abstract:A new scheme was adopted in the hardware-in-loop (HIL) simulation platform adopted to develop simulation ECU and monitor-control interface. Hardware design: The simulation ECU was developed with the 32-bit single chip MC68376 of MOTOROLA, which converted and sent all necessary parameters for electronically controlled diesel ECU (object ECU); An accurate measurement was achieved to actuator signals with no-contact current sensors. Software design: The high efficiency of assembly language and the convenience of c language were combined to realize simulation ECU control program; The multithread technology was used in PC control program, and there were 3 threads: a monitor-control interface thread, a diesel model thread and a communication thread. Labview was used to develop the monitor-control interface as main thread, and diesel model and communication threads were programmed by C+ and ran in the background as sub threads. Communication: CAN bus communication protocol was adopted and communication programs were developed separately for TouCAN module and USBCAN, communication data is converted with an USBCAN intelligent conversion card and an accurate, reliable and quick communication was achieved between simulation ECU and PC, with baud rate up to 500 kbit/s. This platform has been successfully used to develop HIL system for GD-1 high pressure common rail electronically controlled diesel engine and Delphi EUP (a little changed).