CN117539225A - Fault testing system, method and electronic equipment - Google Patents

Fault testing system, method and electronic equipment Download PDF

Info

Publication number
CN117539225A
CN117539225A CN202311724391.7A CN202311724391A CN117539225A CN 117539225 A CN117539225 A CN 117539225A CN 202311724391 A CN202311724391 A CN 202311724391A CN 117539225 A CN117539225 A CN 117539225A
Authority
CN
China
Prior art keywords
fault
relay
controller
test
control information
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.)
Pending
Application number
CN202311724391.7A
Other languages
Chinese (zh)
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.)
Jiangsu Zhiyu Automobile Technology Co ltd
Original Assignee
Jiangsu Zhiyu Automobile Technology Co ltd
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 Jiangsu Zhiyu Automobile Technology Co ltd filed Critical Jiangsu Zhiyu Automobile Technology Co ltd
Priority to CN202311724391.7A priority Critical patent/CN117539225A/en
Publication of CN117539225A publication Critical patent/CN117539225A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0256Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults injecting test signals and analyzing monitored process response, e.g. injecting the test signal while interrupting the normal operation of the monitored system; superimposing the test signal onto a control signal during normal operation of the monitored system

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)

Abstract

The invention provides a system, a method and electronic equipment for fault test, wherein the system comprises: the device comprises a test unit, a communication module and a tested controller; the test unit is used for constructing a test case of fault injection test so as to control the relay topology module and the tested controller to execute corresponding fault injection test tasks, wherein the test case comprises control information for controlling the relay and control information for controlling the tested controller; the relay topology module is used for controlling each relay to execute corresponding on-off according to the received control information of the relay so as to control the first target power supply to simulate the fault state of the sensor of the controlled controller; the measured controller is used for working according to the received control information of the measured controller and the sensor signal in the fault state, and sending fault feedback information generated by the working to the test unit. The method aims to improve the accuracy and the test efficiency of fault injection test.

Description

Fault testing system, method and electronic equipment
Technical Field
The present invention relates to the field of fault testing technologies, and in particular, to a system, a method, and an electronic device for fault testing.
Background
Various types of sensors, such as a steering wheel hand torque/angle sensor (TAS), a motor position sensor, a temperature sensor and the like, are integrated on the current EPS steering controller. The EPS steering controller software needs to monitor the status information of the sensors to perform fault diagnosis and fault handling. When the sensor is detected to be faulty, the degradation treatment of the steering gear is required to be controlled or the steering gear is required to be directly stopped, and when the sensor is detected to be faulty and recovered, the steering gear is controlled to work normally again.
At present, when verifying a fault handling mechanism of an EPS steering controller, a sensor output signal wire is connected with a fault injection point by a manual wiring method according to different test cases in the fault injection operation process, so that the voltage value of the sensor output signal wire is changed to deviate from a normally used voltage range, the fault of the sensor is simulated, and the fault injection of a sensor output signal is realized. The fault injection point may be selectively connected to the positive power supply or to the negative power supply or to a plurality of sensor signal lines. When the test case is switched, the wiring mode needs to be manually and continuously adjusted, so that the conditions of wiring errors, low test efficiency and the like are easy to occur.
Disclosure of Invention
In view of this, the present invention provides a system for fault testing. The method aims to improve the accuracy and the test efficiency of fault injection test.
In a first aspect of an embodiment of the present invention, there is provided a system for fault testing, the system comprising: the device comprises a test unit, a relay topology module and a tested controller;
the test unit is used for constructing a test case of fault injection test so as to control the relay topology module and the tested controller to execute corresponding fault injection test tasks, wherein the test case comprises control information for controlling the relay and control information for controlling the tested controller;
the relay topology module is used for controlling each relay to execute corresponding on-off according to the received control information of the relay so as to control a first target power supply to simulate the fault state of a sensor of a controlled controller, wherein the first target power supply is a power supply for simulating signals input into the sensor of the controlled controller;
the measured controller is used for working according to the received control information of the measured controller and the sensor signal in the fault state, and sending fault feedback information generated by working to the test unit through CAN communication.
Optionally, the system further comprises: and the communication module is used for sending the control information in the test case.
Optionally, the test unit is further configured to analyze and evaluate the fault feedback information to obtain a test result, where the test result includes: fault maturation time, fault level, fault code, and fault severity.
Optionally, the system further comprises:
the second target power supply is used for supplying power to each relay in the relay topology module;
and the third target power supply is used for supplying power to the controlled controller.
Optionally, the communication module includes a first communication module and a second communication module;
the first communication module is used for sending control information for controlling the relay in the relay topology module in the test case to the relay topology module;
the second communication module is configured to send control information for controlling the controlled controller in the test case to the controlled controller.
Optionally, in the system, the test unit, the communication module, the connection relationship between the relay topology module and the measured controller includes:
The test unit is connected with the communication module through a wire and communicates through a USB protocol;
the communication module is connected with the relay topology module through a shielded twisted pair and communicates through CAN or CANFD protocol;
the communication module is connected with the measured controller through a shielded twisted pair and communicates through CAN or CANFD protocol;
the relay topology module is connected with the controlled controller through a wire.
Optionally, the relay topology module includes a first relay topology module and a second relay topology module; the first relay topology module and the second relay topology module support independent communication protocols respectively and are commonly used for realizing the short-circuit fault state of the signal wires of the sensors in the measured controller.
Optionally, the control information for controlling the relay of the test case constructed by the test unit includes a connection duration for controlling the first target power supply and the fault injection point.
A second aspect of the present invention provides a method for fault testing, which is applied to the test unit in the system for fault testing described in the first aspect, and the method includes:
Constructing a test case of fault injection test to control the relay topology module and the to-be-tested controller to execute corresponding fault injection test tasks, wherein the test case comprises control information for controlling the relay and control information for controlling the to-be-tested controller;
according to the control information sent to the relay topology module, controlling each relay to execute corresponding on-off so as to control a first target power supply to simulate the fault state of a sensor of a controlled controller, wherein the first target power supply is a power supply for simulating signals input into the sensor of the controlled controller;
and controlling the controlled controller to work according to the control information sent to the controlled controller and the sensor signal in the fault state, and receiving fault feedback information generated by work through CAN communication.
A third aspect of the invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps in a method of fault testing as described in the second aspect above.
Aiming at the prior art, the invention has the following advantages:
the system for fault testing provided by the embodiment of the invention comprises: the device comprises a testing unit, a communication module and a relay topology module; the test unit is used for constructing a test case of fault injection test so as to control the relay topology module and the tested controller to execute corresponding fault injection test tasks, wherein the test case comprises control information for controlling the relay and control information for controlling the tested controller; the relay topology module is used for controlling each relay to execute corresponding on-off according to the received control information of the relay so as to control a first target power supply to simulate the fault state of a sensor of the controlled controller, wherein the first target power supply is a power supply for simulating signals input into the sensor of the controlled controller; the measured controller is used for working according to the received control information of the measured controller and the sensor signal in the fault state, and sending fault feedback information generated by the working to the test unit. Therefore, when the tested controller is subjected to verification of fault processing mechanism (namely, the fault handling mechanism simulating signals transmitted to the tested controller by the sensor is effective or not, then the tested controller is tested to determine whether the received sensor signals are fault signals or not, and whether correct response CAN be made) by normal recognition, an engineer executes a pre-built test case through a test unit, so that fault injection test CAN be controlled to the relay topology module and the tested controller automatically, specifically, for different fault signals to be simulated, the test case of the corresponding fault injection test is built by the test unit, then when the test unit executes the test case, control information for controlling on-off of each relay in the relay topology module is sent to the relay topology module to simulate corresponding fault signals, meanwhile, control information for controlling the tested controller to work in a corresponding state in the test case is sent to the tested controller to control the tested controller to work in the corresponding state (such as a low-power state or a high-power state), the test information is sent to the tested controller to the test controller to work in the corresponding state at the moment, the test case is sent to the corresponding relay topology module, the control information for controlling on-off of each relay in the relay topology module is sent to the relay topology module to the corresponding fault signal, the corresponding state is sent to the corresponding test controller, the fault information is detected by the relay topology module, the fault information is sent to the corresponding relay topology module, the fault information is detected by the fault information is detected, the fault information is detected by the fault information, and the fault information is sent to the fault information to the test controller, and the fault state is automatically, and the fault state is detected, and the fault information is automatically, and the fault state is detected, and the fault state has been detected, and fault state to be detected, and fault state and has correct state. Meanwhile, after each module is connected, the test case is directly executed by the test unit to complete fault injection test, so that the problem that wiring errors occur easily in manual wiring is avoided, the accuracy of fault injection test CAN be effectively improved, and meanwhile, because CAN communication is mostly used in a vehicle, the control information and fault feedback information are sent and received through the CAN communication, so that faults in a real state CAN be better simulated.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a block diagram of a system for fault testing according to an embodiment of the present invention;
fig. 2 is a block diagram of a relay topology module in a fault testing system according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a connection relationship between each module in a fault testing system according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for fault testing according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings.
Before the present application is described, the background presented in the present application is described.
Currently EPS (E lectr ic Power Steer ing) steering controllers integrate various types of sensors, such as steering wheel hand torque/angle sensors (TAS), motor position sensors, and temperature sensors. The EPS steering controller software needs to monitor the status information of the sensors to perform fault diagnosis and fault handling. When the sensor is detected to be faulty, the degradation treatment or the direct stop of the steering gear needs to be controlled, and when the sensor is detected to be faulty and recovered, the steering gear needs to be controlled to work normally again.
At present, when the fault handling mechanism of the EPS steering controller is verified (namely, fault signals are simulated when signals are transmitted to the tested controller by the sensor, then whether the fault handling mechanism of the tested controller facing the fault signals is effective or not is tested, whether the received sensor signals are fault signals or not can be normally recognized, whether correct handling can be made or not is judged), the sensor output signal line is connected with a fault injection point according to different test cases by a manual wiring method in the fault injection operation process, so that the voltage value of the sensor output signal line is changed, and the voltage value deviates from a normally used voltage range, thereby simulating the fault of the sensor and realizing the fault injection of the sensor output signal. The fault injection point may be selectively connected to the positive power supply or to the negative power supply or to a plurality of sensor signal lines. When the test case is switched, the wiring mode needs to be manually and continuously adjusted, so that the conditions of wiring errors, low test efficiency and the like are easy to occur.
In view of this, the present application proposes a system, a method, and an electronic device for fault testing, which aim to implement automatic fault injection, so as to effectively improve the accuracy and the efficiency of fault injection testing.
Fig. 1 is a block diagram of a system for fault testing according to an embodiment of the present invention, where the system 100 includes: a test unit 101, a relay topology module 102 and a controlled controller 103.
In this application, the test unit 101 is configured to construct a test case for fault injection test, so as to control the relay topology module and the to-be-tested controller to execute a corresponding fault injection test task, where the test case includes control information for controlling the relay and control information for controlling the to-be-tested controller.
In this embodiment, the fault testing system provided in the present application includes a testing unit, a relay topology module, and a tested controller. For the test unit, the test case used for constructing and carrying out the fault injection test is compared with the test case used in the mode that the sensor output signal line is connected with the fault injection point (namely, each contact of the sensor of the tested controller) through the manual wiring method at present, the test case in the application comprises a test target value used for carrying out fault evaluation on a test result, control information used for controlling the tested controller to work in a corresponding state and control information used for controlling the on-off of a relay in the relay topology module. Aiming at different test requirements, corresponding test cases of fault injection test are constructed through a test unit, and the constructed test cases are managed. Through the constructed test case, when the test case is executed through a test unit in the terminal equipment, the related control information in the test case controls the relay topology module and the tested controller to execute the fault injection test task corresponding to the test case so as to perform automatic fault injection test. The test unit is preferably a CAN communication host computer software TSMaster, it should be understood that this is only a preferred embodiment, and the test unit may also be another test unit that may be used for constructing and executing a test case for performing a fault injection test, which is not specifically limited herein. The test target value is the expected output of the tested controller, and the actual output of the tested controller is compared with the expected output of the tested controller to determine the specific fault condition of the sensor.
The sensor connected with the tested controller X comprises an A sensor, a B sensor and a C sensor, and if the requirement for verifying a fault handling mechanism of the tested controller X under the short-circuit fault of the A sensor exists, a corresponding test case a is constructed; if the requirement for verifying the fault handling mechanism of the tested controller X under the short-circuit fault of the sensor B exists, a corresponding test case B is constructed; if the requirement for verifying the fault processing mechanism of the tested controller X under the short-circuit fault of the C sensor exists, a corresponding test case C is constructed; if the requirement for verifying the fault handling mechanism of the tested controller X under the short-circuit fault of the sensor A and the sensor B exists, a corresponding test case ab is constructed. It should be understood that this is merely illustrative of the construction of a corresponding test case for the verification of the failure handling mechanism of the tested controller in each of the different failure states, i.e., the verification of the failure handling mechanism of the tested controller in one failure state requires the creation of a corresponding test case.
In this application, the relay topology module 102 is configured to control each relay to perform corresponding on-off according to the received control information of the relay, so as to control a first target power supply to simulate a fault state of a sensor of a controlled controller, where the first target power supply is a power supply for simulating a signal input into the sensor of the controlled controller.
In this embodiment, the relay topology module includes a plurality of relays including a relay directly connected to contacts of the sensors in the controller to be measured and a first target power supply, and includes a relay for controlling connection on-off of the first target power supply to the respective sensors by on-off. As shown in fig. 2, ID0 to ID8 represent relays directly connected to contacts of sensors in the measured controller among the plurality of relays, L1 to L18 on the left side in fig. 2 are contacts of each sensor in the measured controller, and ID0 to ID23 are relays for controlling connection and disconnection of the first target power supply and the sensors by on-off. As shown in fig. 2, 3.3V/5V VCC and GND in the drawing are first target power supplies for simulating signals (including fault signals and normal signals) input into sensors of a measured controller, and fault states of the respective sensors are simulated by changing voltage values of the first target power supplies to deviate from a voltage range of normal use, so that fault injection of signals output from the sensors to the measured controller is realized, and meanwhile, short circuits between signal lines and positive and negative electrodes of the power supplies and fault states of short circuits between the signal lines are simulated by controlling on-off of the respective relays.
In this embodiment, after receiving control information for controlling on/off of the relays in the relay topology module, the relay topology module determines, according to the control information, which relays are to be closed, and determines, at the same time, how much voltage value is to be input to the first target power supply by the control information. And then based on the determined result, controlling the relays to be closed, and controlling the first target power supply to input a voltage value with a specified size, wherein the fault state of the test unit, which is to verify the fault handling mechanism of the tested controller, can be simulated through the first target power supply and the closed relays.
For example, continuing with the above example, after the relay topology receives the control information t1, based on the control information t1, it is determined which relays in the relay topology need to be turned on and off until the control information t1 points to, if the relay topology includes relays ID0 to ID23, it is determined that relays ID0, ID9, ID14, ID17, ID19, ID20, ID21, ID22 in the relay topology need to be turned on and other relays remain turned off, while the first target power supply needs to output 5V voltage values, at which time the relay topology will control relays ID0, ID9, ID14, ID17, ID19, ID20, ID21, ID22, while the other relays remain turned off, while the first target power supply outputs 5V voltage values, and with the relay topology in that state, it will simulate to the fault state α, thereby enabling the test unit to verify the fault handling mechanism of the tested controller in that fault state α. As shown in fig. 2, if the structure of the relay topology module shown in fig. 2 is taken as a basis, it is a fault state that a contact connected with L1 of the sensor of the measured controller is shorted to the positive electrode of the power supply that is finally simulated. The relay topology module is preferably a relay board card adopting 32-way CAN communication control, and it should be understood that the relay topology module is only a preferred embodiment, and relay board cards adopting other communication modes CAN be adopted by the relay topology module.
In this application, the tested controller 103 is configured to perform work according to the received control information of the tested controller and the sensor signal under the fault state, and send fault feedback information generated by the work to the test unit through CAN communication.
In this embodiment, the measured controller is configured to receive control information for controlling the measured controller to operate in a corresponding operating state, and receive sensor signals in a fault state simulated by switching on and off of each relay in the relay topology module, and the measured controller is configured to perform operation in a corresponding operating state based on the received control information, and perform execution of a corresponding fault handling mechanism based on the sensor signals in the fault state simulated by switching on and off each relay in the relay topology module, that is, perform corresponding coping operations, such as performing degradation processing or stopping operation, based on the received sensor signals in the fault state, and generate corresponding fault feedback information after the corresponding coping operations are completed, and send the fault feedback information to the test unit through CAN communication. Wherein, the measured controller includes but is not limited to EPS steering controller, in the case that the measured controller is EPS steering controller, the sensor integrated in this measured controller includes but is not limited to TAS (Torque Angle Sensor) sensor, temperature sensor, motor position sensor etc..
In this embodiment, in the case where the controlled controller is an EPS steering controller, the fault injection signal that may be performed by the fault test system provided in this application includes: torque angle signal, motor rotor position signal, pre-drive chip output offset signal, MOSFET temperature signal, phase current feedback signal.
The system for fault testing provided by the embodiment of the invention comprises: the device comprises a test unit, a relay topology module and a tested controller; the test unit is used for constructing a test case of fault injection test so as to control the relay topology module and the tested controller to execute corresponding fault injection test tasks, wherein the test case comprises control information for controlling the relay and control information for controlling the tested controller; the relay topology module is used for controlling each relay to execute corresponding on-off according to the received control information of the relay so as to control a first target power supply to simulate the fault state of a sensor of the controlled controller, wherein the first target power supply is a power supply for simulating signals input into the sensor of the controlled controller; the measured controller is used for working according to the received control information of the measured controller and the sensor signal in the fault state, and sending fault feedback information generated by the working to the test unit. Therefore, when the tested controller is subjected to verification of fault processing mechanism (namely, the fault handling mechanism simulating signals transmitted to the tested controller by the sensor is effective or not, then the tested controller is tested to determine whether the received sensor signals are fault signals or not, and whether correct response CAN be made) by normal recognition, an engineer executes a pre-built test case through a test unit, so that fault injection test CAN be controlled to the relay topology module and the tested controller automatically, specifically, for different fault signals to be simulated, the test case of the corresponding fault injection test is built by the test unit, then when the test unit executes the test case, control information for controlling on-off of each relay in the relay topology module is sent to the relay topology module to simulate corresponding fault signals, meanwhile, control information for controlling the tested controller to work in a corresponding state in the test case is sent to the tested controller to control the tested controller to work in the corresponding state (such as a low-power state or a high-power state), the test information is sent to the tested controller to the test controller to work in the corresponding state at the moment, the test case is sent to the corresponding relay topology module, the control information for controlling on-off of each relay in the relay topology module is sent to the relay topology module to the corresponding fault signal, the corresponding state is sent to the corresponding test controller, the fault information is detected by the relay topology module, the fault information is sent to the corresponding relay topology module, the fault information is detected by the fault information is detected, the fault information is detected by the fault information, and the fault information is sent to the fault information to the test controller, and the fault state is automatically, and the fault state is detected, and the fault information is automatically, and the fault state is detected, and the fault state has been detected, and fault state to be detected, and fault state and has correct state. Meanwhile, after each module is connected, the test case is directly executed by the test unit to complete fault injection test, so that the problem that wiring errors occur easily in manual wiring is avoided, the accuracy of fault injection test CAN be effectively improved, and meanwhile, because CAN communication is mostly used in a vehicle, the control information and fault feedback information are sent and received through the CAN communication, so that faults in a real state CAN be better simulated.
In combination with the above embodiment, in an implementation manner, the embodiment of the invention further provides a system for fault testing. In the failure test system, the system further comprises: and the communication module is used for sending the control information in the test case.
In this embodiment, when the test unit needs to verify a fault handling mechanism of the tested controller in a fault state, the test unit first executes a test case corresponding to the fault state, and when the test unit executes the test case, the test unit obtains each piece of control information, and the communication module is configured to send each piece of control information obtained by the test unit executing the test case to a corresponding unit, where the unit includes the tested controller and the relay topology module. The control information comprises control information for controlling the relay in the relay topology module to be switched on and switched off and control information for controlling the controlled controller to work in a corresponding state. The communication module is preferably the samsung device TC1013, and it should be understood that this is only a preferred embodiment, and other communication devices may be used by the communication module.
For example, when the test unit needs to verify the fault handling mechanism of the to-be-tested controller in one fault state α, the test unit executes the test case α0 corresponding to the fault state α, and when executing the test case α0, the test unit obtains the control information t1 for controlling the relay topology module and the control information t2 for controlling the to-be-tested controller, and the communication module sends the control information t1 for controlling the relay topology module to the relay topology module and sends the control information t2 for controlling the to-be-tested controller to the to-be-tested controller.
In combination with the above embodiment, in an implementation manner, the embodiment of the invention further provides a system for fault testing. In the fault test system, the test unit is further configured to analyze and evaluate the fault feedback information to obtain a test result, where the test result includes: fault maturation time, fault level, fault code, and fault severity.
In this embodiment, when the measured controller performs corresponding response operation based on the received control information sent by the communication module and used for controlling the measured controller to operate in the corresponding working state and the sensor signals in the fault state simulated by the on-off of each relay in the relay topology module, the measured controller may also generate corresponding fault feedback information at the same time, and send the fault feedback information to the test unit, where the test unit is configured to analyze and evaluate the received fault feedback information to obtain a corresponding test result, where the test result includes, but is not limited to, fault maturation time, fault level, fault code, fault severity, and response result of the fault handling mechanism of the measured controller (if corresponding response operation is timely made). The fault maturation time refers to the time from the occurrence time to the final occurrence of a fault, the fault code is a preset code for each different fault, the fault grade is a grade preset for the fault, and the fault severity is the severity of demarcating each fault grade under different working conditions. For example, the fault level includes level 1, level 2, level 3, level 4, under condition a, both levels 1 and 2 of the fault level are low severity, level 3 of the fault level is medium severity, level 4 of the fault level is high severity, under condition b, all levels 1, 2, 3 of the fault level are medium severity, and level 4 is high severity.
In combination with the above embodiment, in an implementation manner, the embodiment of the invention further provides a system for fault testing. In the system for fault testing, the system further comprises: the second target power supply is used for supplying power to each relay in the relay topology module; and the third target power supply is used for supplying power to the controlled controller.
In this embodiment, the fault test system further includes a second target power supply, where the second target power supply is configured to supply power to each relay in the relay topology module, so that after the relay topology module receives the corresponding control information, each relay in the relay topology module can be controlled to be turned on or turned off. The system for fault testing further comprises a third target power supply, wherein the third target power supply is used for supplying power to the tested controller so that the tested controller can work, and corresponding operation can be made on the basis of control information which is sent by the communication module and used for controlling the tested controller to work in a corresponding working state and sensor signals in the fault state which are simulated by on-off of each relay in the relay topology module.
In combination with the above embodiment, in an implementation manner, the embodiment of the invention further provides a system for fault testing. In the fault test system, the communication module comprises a first communication module and a second communication module; the first communication module is used for sending control information for controlling the relay in the relay topology module in the test case to the relay topology module; the second communication module is configured to send control information for controlling the controlled controller in the test case to the controlled controller.
In this embodiment, in the fault test system provided by the present application, the communication module includes a first communication module and a second communication module, where the first communication module is configured to implement transmission of control information between the test unit and the relay topology module, and is configured to send, when the test unit executes the test case, control information for controlling the relay in the relay topology module in the test case to the relay topology module, so as to control a designated relay in the relay topology module to communicate, so as to simulate a fault state of the sensor, where the designated relay may be determined by the control information received by the relay topology module. The second communication module is used for realizing the transmission of control information between the test unit and the tested controller, and is used for sending the control information used for controlling the work of the tested controller in the test case to the tested controller when the test case is executed by the test unit so as to control the tested controller to work in a specified working state, wherein the specified working state can be determined by the control information received by the tested controller.
In combination with the above embodiment, in an implementation manner, the embodiment of the invention further provides a system for fault testing. In the fault test system, the connection relationship among the test unit, the communication module, the relay topology module and the tested controller in the system comprises: the test unit is connected with the communication module through a wire and communicates through a USB protocol; the communication module is connected with the relay topology module through a shielded twisted pair and communicates through CAN or CANFD protocol; the communication module is connected with the measured controller through a shielded twisted pair and communicates through CAN or CANFD protocol; the relay topology module is connected with the controlled controller through a wire.
In this embodiment, as shown in fig. 3, in the system for fault testing provided by the present application, the connection relationship between the test unit, the communication module, the relay topology module and the tested controller includes: the test unit is connected with the communication module through a wire and communicates through a USB protocol, and when the test unit executes the test case, the control information of the relay topology module and the control information of the controlled controller are sent to the communication module through the USB protocol. In this application, the communication module includes at least a first communication module and a second communication module, which are configured to form at least two communication channels, where the two communication channels are preferably CAN/CANFD communication, and one of the two communication channels communicates with the relay topology module, and the other communication channel communicates with the measured controller. A first communication module in the communication module is connected with the relay topology module through a shielding twisted pair and communicates through a CAN or a CANFD protocol, and a second communication module in the communication module is connected with a controlled controller through a shielding twisted pair and communicates through the CAN or the CANFD protocol. Meanwhile, the relay topology module is used for directly connecting with the contact of the sensor in the measured controller and is also connected with the measured controller through a wire, so that fault signals of the sensor simulated by the first target power supply in the relay topology module can be transmitted to the measured controller to realize fault injection.
In combination with the above embodiment, in an implementation manner, the embodiment of the invention further provides a system for fault testing. In the fault test system, the relay topology module comprises a first relay topology module and a second relay topology module; the first relay topology module and the second relay topology module support independent communication protocols respectively and are commonly used for realizing the short-circuit fault state of the signal wires of the sensors in the measured controller.
In this embodiment, in order to simulate a short-circuit fault state of a signal line connected with a sensor by electric shock in a fault injection test process, as shown in fig. 2, in the fault test system provided by the application, a communication module includes a relay topology module including a first relay topology module and a second relay topology module, the first relay topology module includes a first target power source for simulating a sensor signal, the second relay topology module includes a first target power source for simulating a sensor signal, a relay for controlling on-off of the first target power source of the first relay topology module and a connection line connected with the second relay topology module is arranged between each relay connected with each sensor of a to-be-tested controller, and the connection line includes a relay for controlling on-off between the first relay topology module and the second relay topology module. Meanwhile, the connection position of the first relay topology module and the second relay topology module is also between a relay used for controlling the on-off of a first target power supply of the relay in the second relay topology module and each relay used for controlling the connection with each sensor of the controlled controller. As shown in fig. 2, ID0 to ID19 in the first relay topology module in fig. 2 are relays for controlling connection with each sensor of the controller to be measured, ID20 to ID22 in the first relay topology module are relays for controlling connection and disconnection of the first target power supply of the first relay topology module, and a connection line between the first relay topology module and the second relay topology module, that is, a portion between ID0 to ID19 of the first relay topology module and a portion between ID20 to ID22 of the first relay topology module, and at the same time, the connection line includes a relay ID23 for controlling connection and disconnection of the first relay topology module and the second relay topology module. As shown in fig. 2, ID0 to ID19 in the second relay topology module in fig. 2 are relays for controlling connection with each sensor of the controller to be measured, ID20 to ID22 in the second relay topology module are relays for controlling connection and disconnection of the first target power supply of the second relay topology module, and a connection line between the first relay topology module and the second relay topology module, that is, a part of ID0 to ID19 of the second relay topology module and a part of ID20 to ID22 of the second relay topology module are arranged between the two, and meanwhile, the connection line includes a relay ID23 for controlling connection and disconnection of the first relay topology module and the second relay topology module. The first relay topology module and the second relay topology module support independent communication protocols respectively (namely, when relays in the relay topology module are controlled through control information, the relays in the first relay topology module and the relays in the second relay topology module can be controlled respectively without mutual influence), different IDs and data fields exist, the data fields comprise 64 bits, the number of each bit is 0-63 in sequence, and the relays with corresponding numbers are controlled to be on-off. The core components of the first relay topology module and the second relay topology module are respectively independent relay board cards, each relay board card comprises a plurality of relays, each relay has two states, namely a normally closed state and a normally open state, 0 is a control relay in the normally closed state, and 1 is a control relay in the normally open state.
In this embodiment, for the same contact of the sensor in the controller to be measured, there will be two leads of the relay connected to the same contact at the same time, one of the two relays being a relay in the first relay topology module and the other being a relay in the second relay topology module. As shown in fig. 2, the first relay topology module in fig. 2 draws 18 leads L1 to L18, which are to be connected to respective contacts of the sensor in the measured controller, while the second power saver topology module draws 18 leads L1 to L18, which are to be connected to respective contacts of the sensor in the measured controller. Leads in the first relay topology and leads in the second relay topology, which are both Ln (n takes values of 1 to 18), will connect the same contacts of the same sensor in the same controller under test. As shown in fig. 2, the relay topology module is set as a first relay topology module and a second relay topology module which are independent, so that respective signal line short-circuit fault states of each sensor in the measured controller can be realized, if the signal line short-circuit fault of a sensor contact in the measured controller connected with the lead wire L1 is to be simulated, the first relay topology module can be communicated with the second relay topology module through control, the L1 in the first relay topology module is communicated with a first target power supply in the first relay topology module, and meanwhile, the signal line short-circuit fault of the sensor contact in the measured controller connected with the lead wire L1 can be simulated through control, the L1 in the second relay topology module is communicated with a first target power supply in the first relay topology module.
In combination with the above embodiment, in an implementation manner, the embodiment of the invention further provides a system for fault testing. In the fault test system, the control information of the test case constructed by the test unit for controlling the relay comprises the connection time length for controlling the first target power supply and the fault injection point.
In this embodiment, in the fault test system provided by the present application, the control information for controlling on-off of the relay in the relay topology module in the test case constructed by the test unit may further include a connection duration of controlling the first target power supply and the fault injection point (that is, each contact of the sensor of the tested controller), for example, 10ms, 100ms, or 1000ms, so as to achieve accurate control of the test time of the fault test. For example, when a fault that a yellow line of a main torque sensor of a measured controller (corresponding to one contact of the main torque sensor of the measured controller) is required to be tested for 20ms is broken, when a corresponding test case is constructed, a connection duration of the contact, which is used for controlling the first target power supply to be connected with the yellow line of the main torque sensor, is set to be 20ms in control information for controlling a relay in the constructed test case, so that fault test that the yellow line of the main torque sensor of the measured controller is broken for 20ms is performed. By setting the connection time length of the first target power supply simulating the fault state of the sensor and the fault injection point in the test case, the test time of fault test can be controlled more accurately, and the test accuracy is improved.
The invention provides a fault test system, which has the following advantages: according to different test cases, a control command for the relay topology module is set in the test unit, connection between a first target power supply for simulating sensor signals and a fault injection point is completed, and connection accuracy is improved; by setting a control command to the relay topology module, the connection time length between the first target power supply of the analog sensor signal and the fault injection point can be accurately controlled, such as 10ms, 100ms or 1000ms, so that the accuracy of the test time is improved; after the original wiring is finished, if the test case is switched, repeated adjustment of the wiring is not needed, and switching of fault injection points can be realized only by controlling on-off of the relay topology module, so that the test efficiency is improved; the output of the test case, such as the information of the maturation time, the fault grade, the fault code, the fault severity and the like of the fault, can be accurately estimated.
A second aspect of the present invention provides a fault testing method, applied to a test unit in a fault testing system as provided in the first aspect of the present application, as shown in fig. 4, where the method includes:
step S401: constructing a test case of fault injection test to control the relay topology module and the to-be-tested controller to execute corresponding fault injection test tasks, wherein the test case comprises control information for controlling the relay and control information for controlling the to-be-tested controller;
Step S402: according to the control information sent to the relay topology module, controlling each relay to execute corresponding on-off so as to control a first target power supply to simulate the fault state of a sensor of a controlled controller, wherein the first target power supply is a power supply for simulating signals input into the sensor of the controlled controller;
step S403: and controlling the controlled controller to work according to the control information sent to the controlled controller and the sensor signal in the fault state, and receiving fault feedback information generated by work through CAN communication.
Optionally, the method further comprises: and sending the control information in the test case to the corresponding relay topology module and the controlled controller through the communication module.
A third aspect of the invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps in a method of fault testing as described in the second aspect above.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A system for fault testing, the system comprising: the device comprises a test unit, a relay topology module and a tested controller;
the test unit is used for constructing a test case of fault injection test so as to control the relay topology module and the tested controller to execute corresponding fault injection test tasks, wherein the test case comprises control information for controlling the relay and control information for controlling the tested controller;
the relay topology module is used for controlling each relay to execute corresponding on-off according to the received control information of the relay so as to control a first target power supply to simulate the fault state of a sensor of a controlled controller, wherein the first target power supply is a power supply for simulating signals input into the sensor of the controlled controller;
the measured controller is used for working according to the received control information of the measured controller and the sensor signal in the fault state, and sending fault feedback information generated by working to the test unit through CAN communication.
2. The system for fault testing of claim 1, further comprising: and the communication module is used for sending the control information in the test case.
3. The system according to claim 1, wherein the test unit is further configured to perform analysis and evaluation on the fault feedback information to obtain a test result, where the test result includes: fault maturation time, fault level, fault code, and fault severity.
4. The system for fault testing of claim 1, further comprising:
the second target power supply is used for supplying power to each relay in the relay topology module;
and the third target power supply is used for supplying power to the controlled controller.
5. The system of claim 2, wherein the communication module comprises a first communication module and a second communication module;
the first communication module is used for sending control information for controlling the relay in the relay topology module in the test case to the relay topology module;
the second communication module is configured to send control information for controlling the controlled controller in the test case to the controlled controller.
6. The system of claim 1, wherein the connection relationship between the test unit, the communication module, the relay topology module, and the controller under test in the system comprises:
the test unit is connected with the communication module through a wire and communicates through a USB protocol;
the communication module is connected with the relay topology module through a shielded twisted pair and communicates through CAN or CANFD protocol;
the communication module is connected with the measured controller through a shielded twisted pair and communicates through CAN or CANFD protocol;
the relay topology module is connected with the controlled controller through a wire.
7. The fault testing system of claim 6, wherein the relay topology module comprises a first relay topology module and a second relay topology module; the first relay topology module and the second relay topology module support independent communication protocols respectively and are commonly used for realizing the short-circuit fault state of the signal wires of the sensors in the measured controller.
8. The system according to claim 1, wherein the control information for controlling the relay of the test case constructed by the test unit includes a connection duration for controlling the first target power supply and the fault injection point.
9. A method of fault testing, characterized by a test unit for use in a system of fault testing according to any of claims 1 to 6, the method comprising:
constructing a test case of fault injection test to control the relay topology module and the to-be-tested controller to execute corresponding fault injection test tasks, wherein the test case comprises control information for controlling the relay and control information for controlling the to-be-tested controller;
according to the control information sent to the relay topology module, controlling each relay to execute corresponding on-off so as to control a first target power supply to simulate the fault state of a sensor of a controlled controller, wherein the first target power supply is a power supply for simulating signals input into the sensor of the controlled controller;
and controlling the controlled controller to work according to the control information sent to the controlled controller and the sensor signal in the fault state, and receiving fault feedback information generated by work through CAN communication.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of a method of fault testing as claimed in claim 8 when executed by the processor.
CN202311724391.7A 2023-12-14 2023-12-14 Fault testing system, method and electronic equipment Pending CN117539225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311724391.7A CN117539225A (en) 2023-12-14 2023-12-14 Fault testing system, method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311724391.7A CN117539225A (en) 2023-12-14 2023-12-14 Fault testing system, method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117539225A true CN117539225A (en) 2024-02-09

Family

ID=89786195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311724391.7A Pending CN117539225A (en) 2023-12-14 2023-12-14 Fault testing system, method and electronic equipment

Country Status (1)

Country Link
CN (1) CN117539225A (en)

Similar Documents

Publication Publication Date Title
JP4763807B2 (en) Method and circuit configuration for simulating controller fault conditions
US20200117160A1 (en) Servo system
CN103168292B (en) Method for monitoring at least two microcontrollers
CN101752842B (en) Method and arrangement for monitoring connections of switch intended for activating safety function
US9335361B2 (en) Method and apparatus for monitoring a multi-phase electrical system on a vehicle
US6960918B2 (en) Method and apparatus for control and fault detection of a remote electrical motor
CN108594792A (en) A kind of two-way Vehicular charger hardware-in―the-loop test system and test equipment
CN117539225A (en) Fault testing system, method and electronic equipment
JP4015616B2 (en) Method for monitoring the voltage supply of a control device in a motor vehicle
CN112748354B (en) Connection testing method and system for server power supply
US7324464B2 (en) Communication system with connectable interface device
JP2023004194A (en) Robot system and erroneous wiring detection method thereof
KR20190134215A (en) Apparatus for verification of electrical connectivity
KR101630540B1 (en) Apparatus for detecting disconnection of a vehicle device
US10917252B2 (en) Implementing a diagnosis capability of a nonautomotive controller in an automotive environment
KR20150062744A (en) Method and Apparatus for Testing Vehicle and Engine
SG176065A1 (en) System and method of communication for electronic apparatuses
CN211627797U (en) Testing device for portable multi-channel insulation monitoring system
CN110874293A (en) Hot plug testing device
CN212586473U (en) Test equipment and test system
US11391787B2 (en) HGA circuitry testing systems, methods, and devices
US11874315B2 (en) Method for testing outputs of an electronic driver
US7257748B2 (en) Method for programming and/or testing for correct functioning of an electronic circuit
JP2012129862A (en) Communication module
KR101690016B1 (en) Installation for examinating programmable logic controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination