[go: up one dir, main page]

CN102566567A - Electronic control unit (ECU) sensor signal fault injection device for engine hardware in-the-loop simulation (HILS) system - Google Patents

Electronic control unit (ECU) sensor signal fault injection device for engine hardware in-the-loop simulation (HILS) system Download PDF

Info

Publication number
CN102566567A
CN102566567A CN2012100381979A CN201210038197A CN102566567A CN 102566567 A CN102566567 A CN 102566567A CN 2012100381979 A CN2012100381979 A CN 2012100381979A CN 201210038197 A CN201210038197 A CN 201210038197A CN 102566567 A CN102566567 A CN 102566567A
Authority
CN
China
Prior art keywords
sensor signal
fault
module
channel selection
ecu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012100381979A
Other languages
Chinese (zh)
Other versions
CN102566567B (en
Inventor
李红
姚栋伟
冯元
谢煌
袁浦豪
方正
吴锋
吴朝晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201210038197.9A priority Critical patent/CN102566567B/en
Publication of CN102566567A publication Critical patent/CN102566567A/en
Application granted granted Critical
Publication of CN102566567B publication Critical patent/CN102566567B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

本发明公开了一种用于发动机HILS系统的ECU传感器信号故障注入装置,包括上位机、传感器信号输入端口、传感器信号输出端口、多路通道选择模块、单片机最小系统模块、RS485通信模块,传感器信号输出端口连接所述多路通道选择模块,多路通道选择模块连接传感器信号输入端口,单片机最小系统模块与所述的多路通道选择模块连接,RS485通信模块一端与单片机最小系统模块连接,另一端与上位机连接,上位机通过所述RS485模块的电平转换电路向所述单片机最小系统模块发送自定义的报文,单片机最小系统模块完成报文接收校验应答后,根据报文中的故障码向多路通道选择模块输出控制信号实现所需的故障注入,该装置能对发动机ECU的传感器信号进行常见的故障注入等功能。

The invention discloses an ECU sensor signal fault injection device for an engine HILS system, comprising a host computer, a sensor signal input port, a sensor signal output port, a multi-channel channel selection module, a minimum system module of a single-chip microcomputer, an RS485 communication module, and a sensor signal input port. The output port is connected to the multi-channel selection module, the multi-channel selection module is connected to the sensor signal input port, the minimum system module of the single-chip microcomputer is connected with the described multi-channel selection module, one end of the RS485 communication module is connected with the minimum system module of the single-chip microcomputer, and the other end Connect with the host computer, and the host computer sends a self-defined message to the minimum system module of the single-chip microcomputer through the level conversion circuit of the RS485 module. The code outputs control signals to the multi-channel selection module to realize the required fault injection. This device can perform common fault injection and other functions on the sensor signal of the engine ECU.

Description

一种用于发动机HILS系统的ECU传感器信号故障注入装置An ECU sensor signal fault injection device for engine HILS system

技术领域 technical field

本发明涉及电子产品测试技术,更具体的说,涉及一种用于发动机硬件在环仿真系统的ECU传感器信号故障注入装置。The invention relates to electronic product testing technology, more specifically, relates to an ECU sensor signal fault injection device used in an engine hardware-in-the-loop simulation system.

背景技术 Background technique

目前,汽车电子系统开发的主流方法是基于模型的现代开发流程——V模式开发流程,该流程保证开发人员在开发过程中的每一步都可以得到及时验证。在产品上市之前,需要对ECU进行全面综合的测试,尤其是故障和极限条件下的测试,使用实际的控制对象进行测试,很难实现现实复杂情况,并且实现成本高,开发周期长。为解决这一难题,V模式中提出采用硬件在环仿真(HardwareIn-the-Loop Simulation,HILS)的开发方法:即为了测试ECU性能,在进行整体系统的仿真测试时,控制器采用真实的ECU,被控对象和系统运行环境可以全部或部分采用实时数学模型来模拟。At present, the mainstream method of automotive electronic system development is a model-based modern development process - V-mode development process, which ensures that every step of the developer's development process can be verified in time. Before the product goes on the market, it is necessary to conduct a comprehensive and comprehensive test on the ECU, especially the test under faults and extreme conditions. Using the actual control object for the test is difficult to realize the realistic complex situation, and the implementation cost is high and the development cycle is long. In order to solve this problem, the development method of hardware-in-the-loop simulation (HardwareIn-the-Loop Simulation, HILS) is proposed in the V mode: that is, in order to test the performance of the ECU, the controller uses a real ECU during the simulation test of the overall system , the controlled object and system operating environment can be simulated in whole or in part by real-time mathematical models.

发动机ECU接收多个发动机传感器参数信号。在ECU的传感器信号输入引脚发生故障(如信号线端开、信号线对电源短接、信号线对地短接、信号线与信号线短接)时,ECU必须根据控制策略,做出及时、合理的响应,保证行车的安全。发动机硬件在环仿真测试必须包含执行器信号故障模拟环节,以测试ECU驱动级故障诊断以及解决故障的能力。The engine ECU receives multiple engine sensor parameter signals. When the sensor signal input pin of the ECU fails (such as the signal line is open, the signal line is shorted to the power supply, the signal line is shorted to the ground, the signal line is shorted to the signal line), the ECU must make timely actions according to the control strategy. , Reasonable response to ensure driving safety. The engine hardware-in-the-loop simulation test must include the actuator signal fault simulation link to test the ability of ECU driver level fault diagnosis and fault resolution.

发明内容 Contents of the invention

针对上述技术问题,本发明提出一种一种用于发动机硬件在环仿真系统的ECU传感器信号故障注入装置。In view of the above technical problems, the present invention proposes an ECU sensor signal fault injection device for an engine hardware-in-the-loop simulation system.

为了解决上述技术问题,本发明的技术方案如下;In order to solve the problems of the technologies described above, the technical solution of the present invention is as follows;

一种用于发动机HILS系统的ECU传感器信号故障注入装置,包括上位机、传感器信号输入端口、传感器信号输出端口、多路通道选择模块、单片机最小系统模块、RS485通信模块,所述的传感器信号输出端口连接所述多路通道选择模块,所述多路通道选择模块连接传感器信号输入端口,所述的单片机最小系统模块与所述的多路通道选择模块连接,所述的RS485通信模块一端与所述的单片机最小系统模块连接,另一端与所述上位机连接,所述上位机通过所述RS485模块的电平转换电路向所述单片机最小系统模块发送自定义的报文,所述单片机最小系统模块完成报文接收、校验、应答后,根据报文中的故障码向多路通道选择模块输出控制信号实现所需的故障注入。An ECU sensor signal fault injection device for an engine HILS system, comprising a host computer, a sensor signal input port, a sensor signal output port, a multi-channel channel selection module, a single-chip minimum system module, and an RS485 communication module, the sensor signal output The port is connected to the multi-channel selection module, the multi-channel selection module is connected to the sensor signal input port, the minimum system module of the single-chip microcomputer is connected to the multi-channel selection module, and one end of the RS485 communication module is connected to the The minimum system module of the single-chip microcomputer is connected, and the other end is connected with the host computer, and the host computer sends a self-defined message to the minimum system module of the single-chip microcomputer through the level conversion circuit of the RS485 module, and the minimum system module of the single-chip microcomputer After the module finishes receiving, verifying and responding to the message, it outputs a control signal to the multi-channel selection module according to the fault code in the message to realize the required fault injection.

进一步的,所述故障包括:Further, the faults include:

正常状态,此状态下传感器信号输入端口与传感器信号输出端口相连,信号无故障输入ECU中;Normal state. In this state, the sensor signal input port is connected to the sensor signal output port, and the signal is input into the ECU without fault;

故障1:ECU传感器信号输入引脚断开状态,此状态下传感器信号输出端口与传感器信号输入端口保持端开状态;Fault 1: The ECU sensor signal input pin is disconnected. In this state, the sensor signal output port and the sensor signal input port remain open;

故障2:ECU传感器信号输入引脚与5V电源短接状态,此状态下传感器信号输出端口只与5V电源短接而不与传感器信号输入端口连接;Fault 2: The ECU sensor signal input pin is short-circuited with the 5V power supply. In this state, the sensor signal output port is only short-circuited with the 5V power supply and not connected to the sensor signal input port;

故障3:ECU传感器信号输入引脚与地短接状态,此状态下传感器信号输出端口只与地短接而不与传感器信号输入端口连接;Fault 3: The ECU sensor signal input pin is short-circuited to the ground. In this state, the sensor signal output port is only short-circuited to the ground and not connected to the sensor signal input port;

故障4:ECU传感器信号输入引脚与引脚短接。Fault 4: The ECU sensor signal input pin is shorted to the pin.

进一步的,所述多路通道选择模块的数量取决于使用需求和所述单片机最小系统模块的单片机I/O引脚数量。Further, the number of the multi-channel selection modules depends on usage requirements and the number of I/O pins of the minimum system module of the single-chip microcomputer.

进一步的,,所述多路通道选择模块包括MAX4617多路通道选择芯片及其外围电路,发动机ECU pin端连接传感器信号输出端口,串联自恢复保险丝后接多路通道选择芯片的输出端口X,输入端口X0串联自恢复保险丝后连接发动机传感器输入端口,输入端口X1悬空实现信号输入引脚断开状态故障,输入端口X2接5V电源实现信号输入引脚与5V电源短接状态故障,输入端口X4接地实现信号输入引脚与地短接状态故障,输入端口X3连接其他多路通道选择芯片的输出端入X3实现信号输入引脚与引脚短接故障;所述MAX4617多路通道选择芯片的A,B,C端口为控制信号端,连接所述单片机最小系统模块的I/O引脚和连接下拉电阻R1,R2,R3。Further, the multi-channel selection module includes a MAX4617 multi-channel selection chip and its peripheral circuits, the engine ECU pin end is connected to the sensor signal output port, and the output port X of the multi-channel selection chip is connected in series with the resettable fuse, and the input Port X0 is connected to the input port of the engine sensor after the self-recovery fuse is connected in series, the input port X1 is suspended to realize the failure of the signal input pin disconnection state, the input port X2 is connected to the 5V power supply to realize the fault state of the signal input pin and the 5V power supply short circuit, and the input port X4 is grounded To realize the short-circuit fault between the signal input pin and the ground, the input port X3 is connected to the output terminal of other multi-channel channel selection chips into X3 to realize the short-circuit fault between the signal input pin and the pin; the A of the MAX4617 multi-channel channel selection chip, Ports B and C are control signal terminals, connected to the I/O pins of the minimum system module of the single-chip microcomputer and connected to pull-down resistors R1, R2, and R3.

进一步的,所述上位机可控制多个所述装置,在每个装置内部,所述单片机最小系统模块包含一个唯一的ID号作为每个装置的ID号,每个装置上所有的多路通道选择模块都有一个唯一的编号,每个装置中的所述单片机最小系统模块只有在接受到由上位机发送的含有本装置ID号、校验、应答正确的报文后,才向报文所指明的多路通道选择芯片输出控制信号。Further, the host computer can control a plurality of devices, and inside each device, the minimum system module of the single-chip microcomputer includes a unique ID number as the ID number of each device, and all multi-channel channels on each device The selection module has a unique number, and the minimum system module of the single-chip microcomputer in each device is only after receiving the message containing the ID number, verification and response of the device sent by the upper computer, and then sends a message to the message. The specified multi-channel channel selection chip outputs the control signal.

进一步的,本装置定义的报文格式由四个字节组成,字节1表示每个装置的ID号;字节2的故障码表示四种状态,用固定不变的字符表示;字节3当为正常、故障1、故障2、故障3这四种状态时表示所选择的多路通道选择模块号,当为故障4时,此时字节3包含了所选择的两个多路通道选择模块号,分别将这两个模块号放在字节3的高4位和低4位;字节4是采用累加求和校验后的值,其值是前三个字节的累加和,每个装置的校验结果都会发送至上位机。Further, the message format defined by this device consists of four bytes, byte 1 represents the ID number of each device; byte 2 fault codes represent four states, represented by fixed characters; byte 3 When it is in the four states of normal, fault 1, fault 2, and fault 3, it indicates the selected multi-channel selection module number. When it is fault 4, byte 3 contains the selected two multi-channel selections. Module number, put these two module numbers in the upper 4 bits and lower 4 bits of byte 3 respectively; byte 4 is the value after the cumulative sum check, and its value is the cumulative sum of the first three bytes, The verification result of each device will be sent to the host computer.

本发明的有益效果在于:该装置能对发动机ECU的传感器信号输入引脚进行常见的故障注入,同时具备电流过大时的保护功能,安全性高,且能模拟多种发动机传感器信号的故障,处理的信号数多,保护性好,采用RS485总线通信,自定义了报文格式,实现多装置、多通道执行器控制信号故障的注入功能。The beneficial effect of the present invention is that: the device can perform common fault injection to the sensor signal input pin of the engine ECU, has the protection function when the current is too large, has high safety, and can simulate the faults of various engine sensor signals, The number of processed signals is large and the protection is good. RS485 bus communication is adopted, and the message format is customized to realize the injection function of multi-device and multi-channel actuator control signal faults.

附图说明 Description of drawings

图1为本发明装置的结构框图;Fig. 1 is the structural block diagram of device of the present invention;

图2为本发明装置多通道选择模块的电路原理图;Fig. 2 is the circuit schematic diagram of the device multi-channel selection module of the present invention;

图3为本发明装置的通信方式示意图;Fig. 3 is a schematic diagram of the communication mode of the device of the present invention;

图4为本发明装置定义的报文格式图。Fig. 4 is a message format diagram defined by the device of the present invention.

具体实施方式 Detailed ways

下面将结合附图和具体实施例对本发明做进一步的说明。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

如图1所示,一种用于发动机HILS系统的ECU传感器信号故障注入装置,包括上位机、传感器信号输入端口、传感器信号输出端口、多路通道选择模块、单片机最小系统模块、RS485通信模块,所述的传感器信号输出端口连接所述多路通道选择模块,所述多路通道选择模块连接传感器信号输入端口,所述的单片机最小系统模块与所述的多路通道选择模块连接,所述的RS485通信模块一端与所述的单片机最小系统模块连接,另一端与所述上位机连接,所述上位机通过所述RS485模块的电平转换电路向所述单片机最小系统模块发送自定义的报文,所述单片机最小系统模块完成报文接收、校验、应答后,根据报文中的故障码向多路通道选择芯片输出控制信号实现所需的故障注入。As shown in Figure 1, an ECU sensor signal fault injection device for the engine HILS system includes a host computer, a sensor signal input port, a sensor signal output port, a multi-channel selection module, a minimum system module of a single-chip microcomputer, and an RS485 communication module. The sensor signal output port is connected to the multi-channel selection module, the multi-channel selection module is connected to the sensor signal input port, the minimum system module of the single-chip microcomputer is connected to the multi-channel selection module, and the One end of the RS485 communication module is connected to the minimum system module of the single-chip microcomputer, and the other end is connected to the host computer, and the host computer sends a self-defined message to the minimum system module of the single-chip microcomputer through the level conversion circuit of the RS485 module After the minimum system module of the single-chip microcomputer completes message reception, verification, and response, it outputs a control signal to the multi-channel channel selection chip according to the fault code in the message to realize the required fault injection.

本装置上的多路通道选择模块的数量取决于使用需求和单片机最小系统模块的单片机I/O引脚数量。如图2所示,是两个对称的多路通道选择模块的电路原理图,以图2中的一个多路通道选择模块进行说明,发动机ECU的传感器信号输入引脚连接本装置的传感器信号输出端口,传感器信号输出端口连接多路通道选择模块的MAX4617多路通道选择芯片的输出端口X即引脚3,发动机传感器信号线连接传感器信号输入端口,传感器信号输入端口连接多路通道选择芯片的输入端口X0即引脚13,多路通道选择模块由MAX4617多路通道选择芯片及其外围电路组成,每片多路通道选择芯片的三个控制端引脚连接单片机最小系统模块的I/O引脚,根据单片机最小系统模块I/O引脚输出的控制信号,多路通道选择芯片的输出端口与不同的输入端口连通,以此实现传感器信号输出端口的不同故障注入:The number of multi-channel channel selection modules on the device depends on the usage requirements and the number of single-chip I/O pins of the smallest system module of the single-chip microcomputer. As shown in Figure 2, it is a schematic circuit diagram of two symmetrical multi-channel selection modules. It is illustrated by a multi-channel selection module in Figure 2. The sensor signal input pin of the engine ECU is connected to the sensor signal output of the device. Port, the sensor signal output port is connected to the output port X of the MAX4617 multi-channel selection chip of the multi-channel selection module, which is pin 3, the engine sensor signal line is connected to the sensor signal input port, and the sensor signal input port is connected to the input of the multi-channel selection chip Port X0 is pin 13. The multi-channel selection module is composed of MAX4617 multi-channel selection chip and its peripheral circuits. The three control pins of each multi-channel selection chip are connected to the I/O pins of the smallest system module of the microcontroller. , according to the control signal output by the I/O pin of the minimum system module of the single-chip microcomputer, the output port of the multi-channel channel selection chip is connected with different input ports, so as to realize different fault injection of the sensor signal output port:

1.正常状态,此状态下传感器信号输入端口与传感器信号输出端口相连,信号无故障输入ECU中;1. In the normal state, the sensor signal input port is connected to the sensor signal output port in this state, and the signal is input into the ECU without fault;

2.故障1:ECU传感器信号输入引脚断开状态,此状态下传感器信号输出端口与传感器信号输入端口保持端开状态;2. Fault 1: The ECU sensor signal input pin is disconnected, and the sensor signal output port and the sensor signal input port remain open in this state;

3.故障2:ECU传感器信号输入引脚与5V电源短接状态,此状态下传感器信号输出端口只与5V电源短接而不与传感器信号输入端口连接;3. Fault 2: The ECU sensor signal input pin is short-circuited with the 5V power supply. In this state, the sensor signal output port is only short-circuited with the 5V power supply and not connected to the sensor signal input port;

4.故障3:ECU传感器信号输入引脚与地短接状态:,此状态下传感器信号输出端口只与地短接而不与传感器信号输入端口连接;4. Fault 3: The ECU sensor signal input pin is short-circuited to the ground: in this state, the sensor signal output port is only short-circuited to the ground and not connected to the sensor signal input port;

5.故障4:ECU传感器信号输入引脚与引脚短接:此状态下本发明装置上任意两个多路通道选择芯片的通道X3即引脚12连通。5. Fault 4: The ECU sensor signal input pin is short-circuited with the pin: in this state, the channel X3 of any two multi-channel channel selection chips on the device of the present invention, that is, the pin 12, is connected.

上位机通过RS485模块的电平转换电路向单片机最小系统模块发送自定义的报文,单片机最小系统模块完成报文接收、校验、应答后,根据报文中的故障码向多路通道选择芯片输出控制信号实现所需的故障注入。The upper computer sends a custom message to the minimum system module of the single-chip microcomputer through the level conversion circuit of the RS485 module. The output control signals enable the required fault injection.

进一步的,发动机ECU pin端连接传感器信号输出端口,串联自恢复保险丝后接多路通道选择芯片的输出端口X机即引脚3,输入端口X0即引脚13串联自恢复保险丝后连接传感器输入端口,输入端口X1即引脚14悬空实现故障1,输入端口X2即引脚15接5V电源实现故障2,输入端口X4即引脚1接地实现故障3,输入端口X3即引脚12连接其他多路通道选择芯片的输出端入X3即引脚12实现故障4。A,B,C端口为控制信号端,连接单片机最小系统模块的I/O引脚和连接下拉电阻R1,R2,R3。Further, the engine ECU pin is connected to the sensor signal output port, connected in series with the self-recovery fuse and then connected to the output port X of the multi-channel selection chip, which is pin 3, and the input port X0 is pin 13, which is connected in series with the sensor input port after the self-recovery fuse , input port X1 means pin 14 is suspended to realize fault 1, input port X2 means pin 15 is connected to 5V power supply to realize fault 2, input port X4 means pin 1 is grounded to realize fault 3, input port X3 means pin 12 is connected to other multi-channel The output terminal of the channel selection chip is input into X3, that is, pin 12 to realize fault 4. Ports A, B, and C are control signal ports, connected to the I/O pins of the smallest system module of the microcontroller and connected to pull-down resistors R1, R2, and R3.

如图3所示,本发明装置的通信方式图,上位机与本装置通过RS485总线连接,本装置的RS485通信模块实现了点对多的通信方式。每个本发明装置的单片机最小系统模块都必须包含一个与其他装置不同的ID号,每个装置上所有的多路通道选择模块都有一个唯一的编号。每个装置只有在接受到由上位机发送的含有本装置ID号、校验、应答正确的报文后,才向报文所指明的多路通道选择芯片输出控制信号。As shown in Figure 3, the communication mode diagram of the device of the present invention, the host computer and the device are connected through the RS485 bus, and the RS485 communication module of the device realizes the point-to-multiple communication mode. The minimum system module of the single-chip microcomputer of each device of the present invention must contain an ID number different from other devices, and all multi-channel channel selection modules on each device have a unique number. Each device outputs a control signal to the multi-channel selection chip specified in the message only after receiving the message sent by the upper computer that contains the device ID number, verification, and correct response.

图4为本装置定义的报文格式。由四个字节组成,字节1表示ID号,每个装置的ID号不同,字节2的故障码表示四种状态(正常、故障1、故障2、故障3、故障4),用固定不变的字符表示,字节3对于正常、故障1、故障2、故障3这四种状态表示所选择的多路通道选择模块号,对于故障4,由于其表示任意两个ECU引脚的短接,因此此时字节3包含了所选择的两个多路通道选择模块号,分别将这两个模块号放在字节3的高4位和低4位,字节4是采用累加求和校验方式,其值是前三个字节的累加和,每个装置的校验结果都会发送至上位机。Figure 4 shows the message format defined by this device. It consists of four bytes, byte 1 represents the ID number, and the ID number of each device is different, and the fault code of byte 2 represents four states (normal, fault 1, fault 2, fault 3, fault 4). Unchanged characters indicate that byte 3 represents the selected multi-channel selection module number for the four states of normal, fault 1, fault 2, and fault 3, and for fault 4, because it represents the short circuit between any two ECU pins. Therefore, at this time, byte 3 contains the selected two multi-channel channel selection module numbers, and these two module numbers are respectively placed in the high 4 bits and low 4 bits of byte 3, and byte 4 is obtained by accumulating In sum check mode, the value is the cumulative sum of the first three bytes, and the check result of each device will be sent to the host computer.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员,在不脱离本发明构思的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明保护范围内。The above is only a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present invention, some improvements and modifications can also be made, and these improvements and modifications should also be considered Within the protection scope of the present invention.

Claims (6)

1.一种用于发动机HILS系统的ECU传感器信号故障注入装置,其特征在于,包括上位机、传感器信号输入端口、传感器信号输出端口、多路通道选择模块、单片机最小系统模块、RS485通信模块,所述的传感器信号输出端口连接所述多路通道选择模块,所述多路通道选择模块连接传感器信号输入端口,所述的单片机最小系统模块与所述的多路通道选择模块连接,所述的RS485通信模块一端与所述的单片机最小系统模块连接,另一端与所述上位机连接,所述上位机通过所述RS485模块的电平转换电路向所述单片机最小系统模块发送自定义的报文,所述单片机最小系统模块完成报文接收、校验、应答后,根据报文中的故障码向多路通道选择模块输出控制信号实现所需的故障注入。1. A kind of ECU sensor signal failure injection device for engine HILS system, it is characterized in that, comprise host computer, sensor signal input port, sensor signal output port, multi-channel channel selection module, single-chip minimum system module, RS485 communication module, The sensor signal output port is connected to the multi-channel selection module, the multi-channel selection module is connected to the sensor signal input port, the minimum system module of the single-chip microcomputer is connected to the multi-channel selection module, and the One end of the RS485 communication module is connected to the minimum system module of the single-chip microcomputer, and the other end is connected to the host computer, and the host computer sends a self-defined message to the minimum system module of the single-chip microcomputer through the level conversion circuit of the RS485 module After the minimum system module of the single-chip microcomputer completes message reception, verification and response, it outputs a control signal to the multi-channel channel selection module according to the fault code in the message to realize the required fault injection. 2.根据权利要求1所述的一种用于发动机HILS系统的ECU传感器信号故障注入装置,其特征在于,所述故障包括:2. A kind of ECU sensor signal fault injection device for engine HILS system according to claim 1, is characterized in that, described fault comprises: 正常状态,此状态下传感器信号输入端口与传感器信号输出端口相连,信号无故障输入ECU中;Normal state. In this state, the sensor signal input port is connected to the sensor signal output port, and the signal is input into the ECU without fault; 故障1:ECU传感器信号输入引脚断开状态,此状态下传感器信号输出端口与传感器信号输入端口保持端开状态;Fault 1: The ECU sensor signal input pin is disconnected. In this state, the sensor signal output port and the sensor signal input port remain open; 故障2:ECU传感器信号输入引脚与5V电源短接状态,此状态下传感器信号输出端口只与5V电源短接而不与传感器信号输入端口连接;Fault 2: The ECU sensor signal input pin is short-circuited with the 5V power supply. In this state, the sensor signal output port is only short-circuited with the 5V power supply and not connected to the sensor signal input port; 故障3:ECU传感器信号输入引脚与地短接状态,此状态下传感器信号输出端口只与地短接而不与传感器信号输入端口连接;Fault 3: The ECU sensor signal input pin is short-circuited to the ground. In this state, the sensor signal output port is only short-circuited to the ground and not connected to the sensor signal input port; 故障4:ECU传感器信号输入引脚与引脚短接。Fault 4: The ECU sensor signal input pin is shorted to the pin. 3.根据权利要求2所述的一种用于发动机HILS系统的ECU传感器信号故障注入装置,其特征在于,所述多路通道选择模块的数量取决于使用需求和所述单片机最小系统模块的单片机I/O引脚数量。3. A kind of ECU sensor signal fault injection device for engine HILS system according to claim 2, is characterized in that, the quantity of described multi-channel channel selection module depends on the single-chip microcomputer of use requirement and described single-chip microcomputer minimum system module I/O pin count. 4.根据权利要求1~3任意一项所述的一种用于发动机HILS系统的ECU传感器信号故障注入装置,其特征在于,所述多路通道选择模块包括MAX4617多路通道选择芯片及其外围电路,发动机ECU pin端连接传感器信号输出端口,串联自恢复保险丝后接多路通道选择芯片的输出端口X,输入端口X0串联自恢复保险丝后连接发动机传感器输入端口,输入端口X1悬空实现信号输入引脚断开状态故障,输入端口X2接5V电源实现信号输入引脚与5V电源短接状态故障,输入端口X4接地实现信号输入引脚与地短接状态故障,输入端口X3连接其他多路通道选择芯片的输出端入X3实现信号输入引脚与引脚短接故障;所述MAX4617多路通道选择芯片的A,B,C端口为控制信号端,连接所述单片机最小系统模块的I/O引脚和连接下拉电阻R1,R2,R3。4. The ECU sensor signal fault injection device for engine HILS system according to any one of claims 1 to 3, characterized in that the multi-channel selection module includes a MAX4617 multi-channel selection chip and its peripheral circuit, the engine ECU pin is connected to the sensor signal output port, the self-recovery fuse is connected in series to the output port X of the multi-channel selection chip, the input port X0 is connected to the engine sensor input port after the self-recovery fuse is connected in series, and the input port X1 is suspended to realize the signal input lead. If the pin is disconnected, the input port X2 is connected to the 5V power supply to realize the signal input pin and the 5V power supply are shorted. The input port X4 is grounded to realize the signal input pin and the ground is shorted. The input port X3 is connected to other multi-channel selection. The output terminal of the chip enters X3 to realize the short-circuit fault between the signal input pin and the pin; the A, B, and C ports of the MAX4617 multi-channel channel selection chip are control signal terminals, which are connected to the I/O pins of the minimum system module of the single-chip microcomputer. pin and connect pull-down resistors R1, R2, R3. 5.根据权利要求1~3任意一项所述的一种用于发动机HILS系统的ECU传感器信号故障注入装置,其特征在于,所述上位机可控制多个所述装置,在每个装置内部,所述单片机最小系统模块包含一个唯一的ID号作为每个装置的ID号,每个装置上所有的多路通道选择模块都有一个唯一的编号,每个装置中的所述单片机最小系统模块只有在接受到由上位机发送的含有本装置ID号、校验、应答正确的报文后,才向报文所指明的多路通道选择芯片输出控制信号。5. A kind of ECU sensor signal fault injection device for engine HILS system according to any one of claims 1 to 3, characterized in that, the host computer can control a plurality of the devices, and within each device , the minimum system module of the single-chip microcomputer includes a unique ID number as the ID number of each device, and all multi-channel channel selection modules on each device have a unique number, and the minimum system module of the single-chip microcomputer in each device Only after receiving the correct message containing the device ID number, verification and response sent by the host computer, can the control signal be output to the multi-channel channel selection chip indicated in the message. 6.根据权利要求5所述的一种用于发动机HILS系统的ECU传感器信号故障注入装置,其特征在于,本装置定义的报文格式由四个字节组成,字节1表示每个装置的ID号;字节2的故障码表示四种状态,用固定不变的字符表示;字节3当为正常、故障1、故障2、故障3这四种状态时表示所选择的多路通道选择模块号,当为故障4时,此时字节3包含了所选择的两个多路通道选择模块号,分别将这两个模块号放在字节3的高4位和低4位;字节4是采用累加求和校验后的值,其值是前三个字节的累加和,每个装置的校验结果都会发送至上位机。6. A kind of ECU sensor signal fault injection device for engine HILS system according to claim 5, is characterized in that, the message format defined by this device is made up of four bytes, and byte 1 represents each device's ID number; the fault code of byte 2 indicates four states, which are represented by fixed characters; byte 3 indicates the selected multi-channel selection when it is in the four states of normal, fault 1, fault 2, and fault 3 Module number, when it is fault 4, byte 3 contains the selected two multi-channel channel selection module numbers at this time, and these two module numbers are respectively placed in the high 4 bits and low 4 bits of byte 3; Section 4 is the value after verification by cumulative summation. Its value is the cumulative sum of the first three bytes, and the verification result of each device will be sent to the host computer.
CN201210038197.9A 2012-02-20 2012-02-20 Electronic control unit (ECU) sensor signal fault injection device for engine hardware in-the-loop simulation (HILS) system Expired - Fee Related CN102566567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210038197.9A CN102566567B (en) 2012-02-20 2012-02-20 Electronic control unit (ECU) sensor signal fault injection device for engine hardware in-the-loop simulation (HILS) system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210038197.9A CN102566567B (en) 2012-02-20 2012-02-20 Electronic control unit (ECU) sensor signal fault injection device for engine hardware in-the-loop simulation (HILS) system

Publications (2)

Publication Number Publication Date
CN102566567A true CN102566567A (en) 2012-07-11
CN102566567B CN102566567B (en) 2015-01-07

Family

ID=46412211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210038197.9A Expired - Fee Related CN102566567B (en) 2012-02-20 2012-02-20 Electronic control unit (ECU) sensor signal fault injection device for engine hardware in-the-loop simulation (HILS) system

Country Status (1)

Country Link
CN (1) CN102566567B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204450A (en) * 2014-06-17 2015-12-30 上海通用汽车有限公司 Fault injection system
CN105823909A (en) * 2015-01-07 2016-08-03 中国航空综合技术研究所 Back-driving fault injection interface adapter applicable to electronic products
CN106556769A (en) * 2016-11-22 2017-04-05 北京润科通用技术有限公司 Direct fault location circuit, method and device
CN106816070A (en) * 2017-03-23 2017-06-09 天津大学 The mould electricity number electricity experiment porch of failure can be manually set
CN108011743A (en) * 2017-07-28 2018-05-08 北京经纬恒润科技有限公司 A kind of method and device of direct fault location
CN108109505A (en) * 2017-12-27 2018-06-01 中船动力研究院有限公司 ME-GI double fuels electric-control motor hardware-in-loop simulation training system
CN108121323A (en) * 2016-11-30 2018-06-05 上海汽车集团股份有限公司 Vehicle testing system, method and switching device
CN108536124A (en) * 2018-03-29 2018-09-14 南京越博动力系统股份有限公司 It is capable of the automatic fault injected system and its self checking method of self detection and protection
CN109709935A (en) * 2018-12-21 2019-05-03 中国航发控制系统研究所 A kind of pressure sensor signal analog circuit and test device
CN109752968A (en) * 2017-11-07 2019-05-14 瑞萨电子株式会社 Simulation device and computer readable storage medium
CN114153192A (en) * 2021-11-25 2022-03-08 中航飞机起落架有限责任公司 Proximity sensor fault injection method and device, fault injection unit and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101126783A (en) * 2007-09-25 2008-02-20 天津市优耐特汽车电控技术服务有限公司 Automobile electrical signal test method and device
EP1898282A1 (en) * 2006-09-11 2008-03-12 dSPACE digital signal processing and control engineering GmbH Method of testing an electronic control system
CN101477376A (en) * 2009-01-14 2009-07-08 南京航空航天大学 Fault injection device and method for spacecraft actuating mechanism
JP2009156227A (en) * 2007-12-27 2009-07-16 Toyota Motor Corp Downstream oxygen sensor failure diagnosis device
CN201359786Y (en) * 2009-01-14 2009-12-09 北京市润宝成机电设备有限公司 Electric control engine network practical training and examining system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1898282A1 (en) * 2006-09-11 2008-03-12 dSPACE digital signal processing and control engineering GmbH Method of testing an electronic control system
CN101126783A (en) * 2007-09-25 2008-02-20 天津市优耐特汽车电控技术服务有限公司 Automobile electrical signal test method and device
JP2009156227A (en) * 2007-12-27 2009-07-16 Toyota Motor Corp Downstream oxygen sensor failure diagnosis device
CN101477376A (en) * 2009-01-14 2009-07-08 南京航空航天大学 Fault injection device and method for spacecraft actuating mechanism
CN201359786Y (en) * 2009-01-14 2009-12-09 北京市润宝成机电设备有限公司 Electric control engine network practical training and examining system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王永庭、李波、吴临正: "FIU技术在HIL测试中的应用", 《2007中国汽车工程学会年会论文集》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204450A (en) * 2014-06-17 2015-12-30 上海通用汽车有限公司 Fault injection system
CN105823909B (en) * 2015-01-07 2018-11-16 中国航空综合技术研究所 A kind of rear-driving type direct fault location interface adapter suitable for electronic product
CN105823909A (en) * 2015-01-07 2016-08-03 中国航空综合技术研究所 Back-driving fault injection interface adapter applicable to electronic products
CN106556769A (en) * 2016-11-22 2017-04-05 北京润科通用技术有限公司 Direct fault location circuit, method and device
CN106556769B (en) * 2016-11-22 2019-02-19 北京润科通用技术有限公司 Direct fault location circuit, method and device
CN108121323A (en) * 2016-11-30 2018-06-05 上海汽车集团股份有限公司 Vehicle testing system, method and switching device
CN106816070A (en) * 2017-03-23 2017-06-09 天津大学 The mould electricity number electricity experiment porch of failure can be manually set
CN108011743A (en) * 2017-07-28 2018-05-08 北京经纬恒润科技有限公司 A kind of method and device of direct fault location
CN108011743B (en) * 2017-07-28 2020-09-29 北京经纬恒润科技有限公司 Fault injection method and device
CN109752968A (en) * 2017-11-07 2019-05-14 瑞萨电子株式会社 Simulation device and computer readable storage medium
CN108109505A (en) * 2017-12-27 2018-06-01 中船动力研究院有限公司 ME-GI double fuels electric-control motor hardware-in-loop simulation training system
CN108536124A (en) * 2018-03-29 2018-09-14 南京越博动力系统股份有限公司 It is capable of the automatic fault injected system and its self checking method of self detection and protection
CN109709935A (en) * 2018-12-21 2019-05-03 中国航发控制系统研究所 A kind of pressure sensor signal analog circuit and test device
CN109709935B (en) * 2018-12-21 2021-09-28 中国航发控制系统研究所 Pressure sensor signal analog circuit and testing arrangement
CN114153192A (en) * 2021-11-25 2022-03-08 中航飞机起落架有限责任公司 Proximity sensor fault injection method and device, fault injection unit and system
CN114153192B (en) * 2021-11-25 2024-10-25 中航飞机起落架有限责任公司 Fault injection method and device for proximity sensor, fault injection unit and system

Also Published As

Publication number Publication date
CN102566567B (en) 2015-01-07

Similar Documents

Publication Publication Date Title
CN102566567B (en) Electronic control unit (ECU) sensor signal fault injection device for engine hardware in-the-loop simulation (HILS) system
CN204595599U (en) Based on the automobile electronic controller general-utility test platform of CANoe
CN102981495B (en) A kind of multiple faults injection device for detecting aeromotor ECU signaling interface
CN104198911B (en) A kind of chip pin method of testing of DTU and circuit
CN104486169B (en) Reusable automatic detection and accidental validation system and method
CN102608990B (en) ECU (Electronic Control Unit) actuator control signal fault injection device for engine HILS (Hardware-In-the-Loop Simulation) system
CN105975369B (en) A test environment automatic configuration device for vehicle network unit
CN101706544B (en) Method for testing cable wiring relationship and cable monitoring device
US10142189B2 (en) Monitoring and diagnosis of a control device
CN103699112A (en) Aviation electronic self-detection verification equipment based on IO (Input/Output) signal failure simulation, and verification method of equipment
CN102901905A (en) Parallel bus testing device and method
CN111614531B (en) Method, medium, and monitoring device for monitoring a LIN node
CN107677924A (en) A kind of electrical experimentses platform wiring is corrected errors monitoring system
CN106936496B (en) Hot plug device for multiple IIC communication devices
CN209070362U (en) A kind of automobile engine ECU test device
CN114756008A (en) Fault injection system, automatic test system and method for automobile hybrid bus integrated rack
CN105974909A (en) Automatic configuration box for automobile electronic test circuit
CN210199577U (en) Fault injection module and system for testing engine controller
CN205809692U (en) New automobile electronic test circuitry automatic configuration box
CN102507208A (en) Vehicle impact sensor simulation device and method
CN207764782U (en) The detecting system of peripheral component interconnection express standard slots
CN101267350B (en) Debugging method and debugging system
CN203552054U (en) Test bench based on PEPS system
CN102508452A (en) Fault injection simulation board capable of simulating multiple faults
CN110850128A (en) On-site automatic test system bus for marine instruments

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150107

CF01 Termination of patent right due to non-payment of annual fee