CN114610555A - Fault diagnosis method of equipment and fault diagnosis equipment - Google Patents

Fault diagnosis method of equipment and fault diagnosis equipment Download PDF

Info

Publication number
CN114610555A
CN114610555A CN202210276822.7A CN202210276822A CN114610555A CN 114610555 A CN114610555 A CN 114610555A CN 202210276822 A CN202210276822 A CN 202210276822A CN 114610555 A CN114610555 A CN 114610555A
Authority
CN
China
Prior art keywords
interface
fault diagnosis
detection signal
equipment
detected
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
CN202210276822.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.)
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Original Assignee
Weichai Power Co Ltd
Weifang Weichai Power 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 Weichai Power Co Ltd, Weifang Weichai Power Technology Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN202210276822.7A priority Critical patent/CN114610555A/en
Publication of CN114610555A publication Critical patent/CN114610555A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application discloses a fault diagnosis method of equipment and fault diagnosis equipment, comprising the following steps: the fault diagnosis equipment firstly sends a first detection signal to a first interface of an input end of the equipment to be detected, and when the fault diagnosis equipment receives a second detection signal returned by an output end of the equipment to be detected, a second interface returning the second detection signal is determined according to the second detection signal, wherein the second detection signal is obtained by transmitting or processing the first detection signal through the equipment to be detected. The fault diagnosis equipment carries out fault diagnosis on the equipment to be detected based on a corresponding relation stored by the fault diagnosis equipment and the first interface and the second interface of the equipment to be detected, wherein the corresponding relation is the corresponding relation between the interface of the input end and the interface of the output end of the equipment to be detected. According to the fault diagnosis method, fault diagnosis is carried out on the basis of the interface for receiving and transmitting the detection signal of the equipment to be detected and the transmitted detection signal, and the fault diagnosis requirements of multiple functions of the equipment to be detected are met.

Description

Fault diagnosis method of equipment and fault diagnosis equipment
Technical Field
The present application relates to the field of control technologies, and in particular, to a fault diagnosis method for a device and a fault diagnosis device.
Background
An Electronic Control Unit (ECU), also called a vehicle computer, is a microcomputer controller for automobiles in terms of application, and is composed of a microprocessor, a memory, an input/output interface, an analog-to-digital converter, and large-scale integrated circuits such as a shaping circuit and a driving circuit. In the process of developing the ECU, before applying the ECU to an actual scene, Hardware-in-the-Loop (HiL) testing needs to be performed on the ECU to detect the function of the ECU. The hardware-in-loop is a simulation test system, and the operation environment of the measured object is simulated by building a simulation model of the measured object, so that the measured object is approximately in a real environment.
When a HiL environment is built, in order to meet signal interaction between an ECU and a HiL, a specific HiL load box needs to be customized between the ECU and the HiL according to requirements, a plurality of wire harnesses are integrated in the load box, and certain wires are also connected with components such as an actuator. In order to eliminate the subsequent detection of the functions of the ECU, the functions of the HiL load box need to be detected in advance due to the fact that the functional detection of the ECU is inaccurate caused by the functional faults of the HiL load box, and the subsequent development and test process is prevented from being influenced.
At present, research aiming at the aspect of function detection of the HiL load box is lacked, and the requirement of the HiL load box detection cannot be met.
Disclosure of Invention
In view of this, the present application provides a method for diagnosing a fault of a device and a fault diagnosing device, so as to meet a function detection requirement of a device to be detected.
In a first aspect, an embodiment of the present application provides a method for diagnosing a fault of a device, where the method includes:
the method comprises the steps that fault diagnosis equipment sends a first detection signal to a first interface of an input end of equipment to be detected;
when the fault diagnosis equipment receives a second detection signal returned by the output end of the equipment to be detected, the fault diagnosis equipment determines a second interface for returning the second detection signal according to the second detection signal, wherein the second detection signal is obtained by the first detection signal passing through the equipment to be detected;
the fault diagnosis equipment carries out fault diagnosis on the equipment to be detected based on the corresponding relation, the first interface and the second interface, wherein the corresponding relation is the corresponding relation between the interface of the input end of the equipment to be detected and the interface of the output end of the equipment to be detected, which is stored by the fault diagnosis equipment.
In a possible implementation manner, the performing, by the fault diagnosis device, fault diagnosis on the device to be detected based on the correspondence, the first interface, and the second interface includes:
when the fault diagnosis device determines that the second interface returning the second detection signal is a plurality of interfaces according to the second detection signal, the fault diagnosis device determines that short-circuit faults occur in other interfaces except for a target interface in the first interface and the second interface, wherein the target interface is an interface corresponding to the first interface in the second interface.
In a possible implementation manner, the performing, by the fault diagnosis device, fault diagnosis on the device to be detected based on the correspondence, the first interface, and the second interface includes:
when the fault diagnosis device determines that the second interface returning the second detection signal is an interface according to the second detection signal, the fault diagnosis device judges whether the first interface and the second interface correspond to each other based on the corresponding relationship;
when the first interface and the second interface do not correspond to each other, the fault diagnosis device determines that a serial fault occurs in the first interface and the second interface.
In one possible implementation, when the first interface and the second interface correspond, the method further includes:
the fault diagnosis device acquires a first similarity of the first detection signal and the second detection signal;
and when the first similarity is smaller than a first preset similarity, the fault diagnosis equipment determines that the anti-interference performance of the equipment to be detected does not meet the preset requirement.
In one possible implementation manner, when the first interface and the second interface correspond to each other and an actuator is connected between the first interface and the second interface, the method further includes:
the fault diagnosis equipment obtains a third detection signal according to the first detection signal and a processing algorithm corresponding to the actuator;
and the fault diagnosis equipment carries out fault diagnosis on the equipment to be detected based on the third detection signal and the second detection signal.
In a possible implementation manner, the performing, by the fault diagnosis device, fault diagnosis on the device to be detected based on the third detection signal and the second detection signal includes:
the fault diagnosis device acquires a second similarity of the third detection signal and the second detection signal;
and when the second similarity is smaller than a second preset similarity, the fault diagnosis equipment determines that the actuator has a fault.
In one possible implementation, the method further includes:
and when the fault diagnosis equipment does not receive the detection signal returned by the output end of the equipment to be detected, the fault diagnosis equipment determines that the equipment to be detected has an open circuit fault.
In a second aspect, an embodiment of the present application provides a fault diagnosis apparatus, including: the device comprises a fault diagnosis module, a signal generation module, a signal sending module and a signal receiving module;
the fault diagnosis module is used for sending a signal generation instruction to the signal generation module;
the signal generation module is used for generating a first detection signal based on the signal generation instruction;
the signal sending module is used for sending the first detection signal to the fault diagnosis module and a first interface of an input end of the device to be detected;
the signal receiving module is used for receiving a second detection signal returned by the output end of the device to be detected and sending the second detection signal to the fault diagnosis module;
the fault diagnosis module is further configured to determine a second interface for returning the second detection signal according to the second detection signal, where the second detection signal is obtained by passing the first detection signal through the device to be detected;
the fault diagnosis module is further used for carrying out fault diagnosis on the equipment to be detected based on the corresponding relation, the first interface and the second interface, wherein the corresponding relation is the corresponding relation between the interface of the input end of the equipment to be detected and the interface of the output end of the equipment to be detected, which is stored by the fault diagnosis module.
In one possible implementation, the signal generation module includes a sinusoidal signal generator and an analog switch array chip.
In a third aspect, an embodiment of the present application provides an electronic device, where the device includes: a memory and a processor;
the memory is used for storing relevant program codes;
the processor is configured to invoke the program code, and execute the method for diagnosing a failure of a device according to any one of the implementation manners of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, where the computer program is configured to execute the method for diagnosing a fault of a device according to any one of the implementation manners of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, where the computer program product includes a program, and when the program runs on a processor, the program causes a computer or a network device to execute the method for diagnosing a failure of a device according to any one of the implementations of the first aspect.
Therefore, the embodiment of the application has the following beneficial effects:
in the foregoing implementation manner of the embodiment of the application, in order to implement fault diagnosis of the device to be detected, the fault diagnosis device first sends a first detection signal to a first interface of an input end of the device to be detected, and when the fault diagnosis device receives a second detection signal returned by an output end of the device to be detected, the fault diagnosis device determines a second interface returning the second detection signal according to the second detection signal, where the second detection signal is obtained by transmitting or processing the first detection signal through the device to be detected. The fault diagnosis equipment carries out fault diagnosis on the equipment to be detected based on a corresponding relation stored by the fault diagnosis equipment and a first interface and a second interface of the equipment to be detected, wherein the corresponding relation is the corresponding relation between an interface of an input end and an interface of an output end of the equipment to be detected. According to the fault diagnosis method provided by the embodiment of the application, fault diagnosis can be performed based on the interface for receiving and transmitting the detection signal of the equipment to be detected and the transmitted detection signal, and the fault diagnosis requirements of multiple functions of the equipment to be detected are met.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments provided in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a flowchart of a fault diagnosis method for a device according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of an apparatus to be tested according to an embodiment of the present application;
fig. 3 is a flowchart of a fault diagnosis method for another device according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a fault diagnosis apparatus provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a fault diagnosis for a device according to an embodiment of the present application;
fig. 6 is a schematic view of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and the described embodiments are only exemplary embodiments of the present application, and not all implementations. Those skilled in the art can combine the embodiments of the present application to obtain other embodiments without inventive work, and these embodiments are also within the scope of the present application.
In the process of developing the ECU, before the ECU is applied to an actual scene, a hardware-in-loop HiL test needs to be performed on the ECU to detect the function of the ECU. When a HiL environment is built, in order to meet signal interaction between an ECU and a HiL, a specific HiL load box needs to be customized between the ECU and the HiL according to requirements, a plurality of wire harnesses are integrated in the load box, and certain wires are also connected with components such as an actuator. In order to eliminate the subsequent detection of the functions of the ECU, the functions of the HiL load box need to be detected in advance due to the fact that the functional detection of the ECU is inaccurate caused by the functional faults of the HiL load box, and the subsequent development and test process is prevented from being influenced.
However, currently, research on the aspect of function detection of the HiL load box is lacked, and the requirement of fault detection of the HiL load box cannot be met.
Based on this, the embodiment of the application provides a fault diagnosis method for equipment, so as to meet the function detection requirement of the equipment to be detected. During specific implementation, the fault diagnosis device firstly sends a first detection signal to a first interface of an input end of the device to be detected, and when the fault diagnosis device receives a second detection signal returned by an output end of the device to be detected, the fault diagnosis device determines a second interface returning the second detection signal according to the second detection signal, wherein the second detection signal is obtained by transmitting or processing the first detection signal through the device to be detected. The fault diagnosis equipment carries out fault diagnosis on the equipment to be detected based on a corresponding relation stored by the fault diagnosis equipment and a first interface and a second interface of the equipment to be detected, wherein the corresponding relation is the corresponding relation between an interface of an input end and an interface of an output end of the equipment to be detected. According to the fault diagnosis method provided by the embodiment of the application, fault diagnosis can be performed based on the interface for receiving and transmitting the detection signal of the equipment to be detected and the detection signal, and the fault diagnosis requirements of multiple functions of the equipment to be detected are met.
A method for diagnosing a fault of a device provided in an embodiment of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of a method for diagnosing a fault of a device according to an embodiment of the present disclosure.
The method mainly comprises the following steps:
s101: the fault diagnosis equipment sends a first detection signal to a first interface of an input end of the equipment to be detected.
According to the embodiment, whether faults such as serial lines, short circuits and the like occur in the equipment to be detected can be judged through the interface for receiving and sending the detection signal by the equipment to be detected, so that the fault diagnosis equipment sends the first detection signal to the first interface at the input end of the equipment to be detected.
S102: when the fault diagnosis equipment receives a second detection signal returned by the output end of the equipment to be detected, the fault diagnosis equipment determines a second interface returning the second detection signal according to the second detection signal, wherein the second detection signal is obtained by the first detection signal passing through the equipment to be detected.
After the first interface at the input end of the equipment to be detected receives the first detection signal and is transmitted by the equipment to be detected, the output end of the equipment to be detected returns a second detection signal, and the fault diagnosis equipment determines a second interface returning the second detection signal according to the second detection signal.
S103: the fault diagnosis equipment carries out fault diagnosis on the equipment to be detected based on the corresponding relation, the first interface and the second interface, wherein the corresponding relation is the corresponding relation between the interface of the input end of the equipment to be detected and the interface of the output end of the equipment to be detected, which is stored in the fault diagnosis equipment.
Because the input end and the output end of the equipment to be detected are both provided with a plurality of interfaces, the interfaces of the input end and the interfaces of the output end are in one-to-one correspondence, and the corresponding relation between the interfaces of the input end and the interfaces of the output end is stored in the fault diagnosis equipment, the fault diagnosis equipment can carry out fault diagnosis on the equipment to be detected based on the first interface, the second interface and the corresponding relation stored by the fault diagnosis equipment.
In a possible implementation manner, the correspondence stored in the fault diagnosis device may be obtained from an upper computer, where the upper computer is a computer capable of directly sending out an operation command, and the control software may display various signal changes on a screen and send out the control command. During specific implementation, a configuration file can be generated in advance according to the corresponding relation between the interface of the input end of the device to be detected and the interface of the output end of the device to be detected, then the configuration file is led into an upper computer, the upper computer can transcode the configuration file into a file which can be identified by the fault diagnosis device, the transcoded configuration file is downloaded by the fault diagnosis device, and the corresponding relation between the interface of the input end of the device to be detected and the interface of the output end of the device to be detected is stored. And the fault diagnosis equipment carries out fault diagnosis on the equipment to be detected based on the corresponding relation stored by the fault diagnosis equipment, the first interface of the equipment to be detected for receiving the first detection signal and the second interface for outputting the second detection signal.
The method for diagnosing the fault of the device to be detected by the fault diagnosis device will be described in different cases.
In a possible implementation manner, when the fault diagnosis device receives a second detection signal returned by the output end of the device to be detected, and the fault diagnosis device determines that a second interface returning the second detection signal is multiple interfaces, because the interface of each input end only has one corresponding interface of the output end, the fault diagnosis device can determine that, except for a target interface corresponding to the first interface, short-circuit faults occur between other interfaces and the first interface in the second interface, that is, a channel for transmitting signals is formed by connecting the other interfaces and the first interface, and the fault diagnosis device can receive the detection signals returned by the multiple interfaces.
When the fault diagnosis device determines that the second interface returning the second detection signal is an interface, the fault diagnosis device may determine whether the first interface and the second interface are corresponding interfaces according to the correspondence relationship stored in the fault diagnosis device. If not, it indicates that a serial fault occurs between the first interface and the second interface. That is, the first interface originally corresponds to the target interface and is connected to the target interface through a wire, the fault diagnosis device should receive the second detection signal returned by the device to be detected through the target interface, and the wire, which is connected to the target interface, of the first interface is connected in series to the second interface, so that the first interface and the second interface are connected through the wire to form a channel for transmitting signals, and thus a serial line fault occurs between the first interface and the second interface.
And if the fault diagnosis equipment judges that the first interface and the second interface are corresponding interfaces, the fact that the wire connection between the first interface and the second interface is correct is indicated. At this time, the anti-interference performance of the equipment to be detected can be tested. Namely, whether the obtained second detection signal meets the requirement or not is judged after the first detection signal is transmitted by the equipment to be detected. Specifically, the fault diagnosis device obtains a first similarity between a first detection signal and a second detection signal, then compares the first similarity with a first preset similarity, and when the first similarity is smaller than the first preset similarity, it indicates that the similarity between the second detection signal and the first detection signal does not meet the requirement, that is, the anti-interference performance of the device to be detected does not meet the preset requirement. The specific value of the first preset similarity may be calibrated according to an actual requirement, which is not limited in this embodiment.
When the fault diagnosis device acquires the similarity between the first detection signal and the second detection signal, the present embodiment provides a possible implementation manner that the intensity of the first detection signal and the intensity of the second detection signal may be compared, and the consistency of the signal intensities may be calculated as the first similarity between the first detection signal and the second detection signal. It is also possible to compare the amplitude of the first detection signal with the amplitude of the second detection signal and to calculate the coincidence of the amplitudes as the first degree of similarity of the first detection signal and the second detection signal.
In practical application, some actuators may be connected between an input port and an output port of the device to be detected, and the actuators are mainly used for processing received signals to enable the processed signals to be within a preset range. Therefore, when the first interface and the second interface are corresponding interfaces and an actuator is connected between the first interface and the second interface, the fault diagnosis device can also perform fault diagnosis on the function of the actuator. In specific implementation, the fault diagnosis device first obtains a third detection signal based on the first detection signal and a processing algorithm corresponding to the actuator, that is, the third detection signal is a theoretical signal of the first detection signal processed by the actuator. And then the fault diagnosis device carries out fault diagnosis on the equipment to be detected based on the third detection signal and the second detection signal.
One possible implementation manner is that the fault diagnosis device may acquire a second similarity between the third detection signal and the second detection signal, and then compare the second similarity with a second preset similarity. And if the second similarity is smaller than the second preset similarity, the second detection signal obtained after the actuator processing does not meet the requirement, namely the actuator breaks down.
In a preferred implementation manner, in order to eliminate the influence of the anti-interference performance of the device to be detected on the function detection of the actuator, the actuator can be connected in series between the first interface and the second interface when the anti-interference performance of the device to be detected meets the requirement, and then the function of the actuator is subjected to fault diagnosis.
In the above embodiment, the fault diagnosis device may perform fault diagnosis on the device to be detected according to the input port through which the device to be detected receives the first detection signal and the output port through which the second detection signal is transmitted. In addition, after the fault diagnosis device sends the first detection signal to the first interface of the input end of the device to be detected, the detection signal returned by the output end of the device to be detected may not be received, and then the fault diagnosis device may determine that a disconnection fault occurs between the first interface and the corresponding target interface.
In a possible implementation manner, after the fault diagnosis device performs fault diagnosis on the device to be detected, the fault diagnosis result can be sent to the upper computer, and the upper computer can display the fault diagnosis result, so that a worker can modify the device to be detected according to the fault diagnosis result conveniently.
According to the fault diagnosis method of the equipment, the fault diagnosis equipment can perform fault diagnosis on the equipment to be detected based on the input end interface and the output end interface of the equipment to be detected and the received detection signal, not only can the on-off of the equipment to be detected be tested, but also whether faults such as short circuit and series connection occur in the equipment to be detected can be detected, the anti-interference function of the equipment to be detected can be detected, and the fault diagnosis requirements of multiple functions of the equipment to be detected are met.
The method for diagnosing the fault of the device provided in the above embodiment will be specifically described below with reference to a specific application scenario.
As shown in fig. 2, in the application scenario, the device to be detected includes an HiL interface module, an HiL load box, and an ECU interface module, where the HiL interface module includes a plurality of pins, the ECU interface module includes a plurality of pins, the pins of the HiL interface module and the pins of the ECU interface module have a one-to-one correspondence relationship, and the pins of the HiL interface module and the pins of the ECU interface module are connected through a wire in the load box and a part of an actuator to form a channel for transmitting signals. The fault diagnosis device can detect the wiring harness function in the load box based on the corresponding relation of the pins. In the following embodiments, the HiL terminal interface module is simply referred to as HiL terminal, and the ECU terminal interface module is simply referred to as ECU terminal.
When the HiL load box is applied to different scenes, the correspondence between the HiL terminal pin and the ECU terminal pin may be different, and the correspondence between the HiL terminal pin and the ECU terminal pin may be generated into a configuration file for storage. When the functions of the HiL load box are detected, the configuration files are imported into an upper computer, the upper computer can transcode the configuration files, and then the transcoded configuration files are downloaded to the fault diagnosis equipment. The fault diagnosis equipment can perform fault diagnosis on the HiL load box based on the corresponding relation between the HiL terminal pin and the ECU terminal pin in the configuration file.
The principle of the fault diagnosis method provided in the present embodiment will be described below with reference to the accompanying drawings.
Referring to fig. 3, fig. 3 is a flowchart of another fault diagnosis method for a device according to an embodiment of the present disclosure.
The method mainly comprises the following steps:
s301: the fault diagnosis equipment sends a first detection signal to a first pin of the HiL end;
s302: when the fault diagnosis equipment receives a second detection signal returned by the ECU terminal, the fault diagnosis equipment determines a second pin returning the second detection signal according to the second detection signal, wherein the second detection signal is obtained by the first detection signal passing through a HiL load box;
s303: and the fault diagnosis equipment carries out fault diagnosis on the HiL load box based on the corresponding relation, the first pin and the second pin, wherein the corresponding relation is the corresponding relation between the pin at the HiL end and the pin at the ECU end, which is stored by the fault diagnosis equipment.
The method for the fault diagnosis equipment to perform fault diagnosis on the HiL load box will be described in each case.
Because the pins at the HiL end and the pins at the ECU end correspond to each other one to one, when the second pin for receiving the second detection signal by the fault diagnosis device is a plurality of pins, it indicates that a short circuit occurs between the other pins in the second pin and the first pin except for the target pin corresponding to the first pin, that is, a signal channel is formed by connecting the pins through a wire, so that the wire inside the HiL load box is short-circuited.
When the second pin of the fault diagnosis device for receiving the second detection signal is one pin, the fault diagnosis device judges whether the first pin and the second pin are corresponding pins based on the corresponding relation stored in the fault diagnosis device, if not, the fault diagnosis device indicates that the wire inside the HiL load box has a series fault, namely the normal wire is connected with the first pin and the pin corresponding to the first pin, and the wire is connected with the first pin and the second pin, so that the fault diagnosis device receives the second detection signal from the second pin.
If the fault diagnosis equipment judges that the first pin and the second pin are corresponding pins, fault diagnosis can be performed on the function of the HiL load box based on the sent first detection signal and the received second detection signal. One possible implementation manner is that the HiL load box has anti-interference performance in the signal transmission process, and the fault diagnosis device can judge whether the anti-interference performance of the HiL load box meets the preset requirement or not based on the similarity between the first detection signal and the second detection signal. After the fault diagnosis equipment acquires the first similarity of the first detection signal and the second detection signal, comparing the first similarity with a first preset similarity, and if the first similarity is smaller than the first preset similarity, determining that the anti-interference performance of the HiL load box does not meet the preset requirement.
When the first pin and the second pin are connected through a wire of the load box, some actuators may be connected in series, and the main function of the actuators is to process received signals so that the processed signals are within a preset range. Therefore, when the actuator is connected between the first pin and the second pin, the failure diagnosis device can detect the function of the actuator. Specifically, the fault diagnosis device may obtain a third detection signal based on the first detection signal and a processing algorithm corresponding to the actuator, then obtain a second similarity between the third detection signal and the second detection signal, compare the second similarity with a second preset similarity, and indicate that the actuator has a fault when the second similarity is smaller than the second preset similarity.
After the fault diagnosis equipment sends a first detection signal to the first pin of the HiL terminal, if the detection signal returned by the pin of the ECU terminal is not received within a preset time period, the HiL load box is determined to have an open circuit fault.
In the above embodiment, the fault diagnosis device sends the detection signal to the pin of the HiL and receives the detection signal returned by the ECU, and the fault diagnosis device may also send the detection signal to the pin of the ECU and receive the detection signal returned from the HiL, without affecting the implementation of the present solution.
According to the fault diagnosis method provided by the embodiment of the application, whether faults such as series lines and short circuits occur in the HiL load box or not can be judged based on the pin at the HiL end and the pin at the ECU end, the anti-interference performance of the HiL load box can also be judged, and various fault diagnosis requirements of the HiL load box can be met.
Based on the method embodiment, the embodiment of the application also provides fault diagnosis equipment.
Referring to fig. 4, fig. 4 is a schematic diagram of a fault diagnosis device provided in an embodiment of the present application.
The apparatus 400 comprises: a fault diagnosis module 401, a signal generation module 402, a signal transmission module 403 and a signal reception module 404;
the fault diagnosis module 401 is configured to send a signal generation instruction to the signal generation module 402;
the signal generating module 402 is configured to generate a first detection signal based on the signal generating instruction;
the signal sending module 403 is configured to send the first detection signal to the fault diagnosis module 401 and a first interface at an input end of the device to be detected;
the signal receiving module 404 is configured to receive a second detection signal returned by the output end of the device to be detected, and send the second detection signal to the fault diagnosis module 401;
the fault diagnosis module 401 is further configured to determine a second interface for returning the second detection signal according to the second detection signal, where the second detection signal is obtained by passing the first detection signal through the device to be detected;
the fault diagnosis module 401 is further configured to perform fault diagnosis on the device to be detected based on a corresponding relationship, the first interface, and the second interface, where the corresponding relationship is a corresponding relationship between the interface of the input end of the device to be detected and the interface of the output end of the device to be detected, which is stored in the fault diagnosis module.
In one possible implementation, the signal generating module 402 includes a sine signal generator and an analog switch array chip, i.e., the first detection signal sent by the signal generating module 402 may be a sine wave signal. The analog switch array chip can realize independent on or off of each analog switch so as to realize on/off of each interface in the fault diagnosis equipment and the equipment to be detected. For example, the analog switch array chip CH446X can realize the independent turning on or off of 120 analog switches, that is, one CH446X can realize the connection or disconnection of up to 120 interface channels.
In a possible implementation manner, the fault diagnosis module 401 is specifically configured to determine that, when the fault diagnosis device determines that the second interface returning the second detection signal is multiple interfaces according to the second detection signal, short-circuit faults occur in other interfaces except for a target interface in the first interface and the second interface, where the target interface is an interface corresponding to the first interface in the second interface.
In a possible implementation manner, the fault diagnosis module 401 is specifically configured to, when it is determined that the second interface returning the second detection signal is an interface according to the second detection signal, determine, by the fault diagnosis device, whether the first interface and the second interface correspond to each other based on the correspondence relationship; when the first interface and the second interface do not correspond to each other, the fault diagnosis device determines that a serial fault occurs in the first interface and the second interface.
In a possible implementation manner, when the first interface corresponds to the second interface, the fault diagnosis module 401 is further configured to obtain a first similarity between the first detection signal and the second detection signal; and when the first similarity is smaller than a first preset similarity, determining that the anti-interference performance of the equipment to be detected does not meet the preset requirement.
In a possible implementation manner, when the first interface corresponds to the second interface and an actuator is connected between the first interface and the second interface, the fault diagnosis module 401 is further configured to obtain a third detection signal according to the first detection signal and a processing algorithm corresponding to the actuator; and carrying out fault diagnosis on the equipment to be detected based on the third detection signal and the second detection signal.
In a possible implementation manner, the fault diagnosis module 401 is specifically configured to obtain a second similarity between the third detection signal and the second detection signal; and when the second similarity is smaller than a second preset similarity, determining that the actuator has a fault.
In a possible implementation manner, the fault diagnosis module 401 is further configured to determine that the device to be detected has an open-circuit fault when a detection signal returned by the output end of the device to be detected is not received.
Based on the above embodiments, the device to be detected may include a HiL interface module, a HiL load box, and an ECU interface module. Referring to fig. 5, fig. 5 is a schematic diagram of another fault diagnosis for a device according to an embodiment of the present disclosure. The working principle of the fault diagnosis device is referred to the above embodiments, and will not be described herein.
Based on the method embodiment and the device embodiment, the embodiment of the application further provides the electronic device. Referring to fig. 6, fig. 6 is a schematic view of an electronic device according to an embodiment of the present disclosure.
The apparatus 600 comprises: a memory 601 and a processor 602;
the memory 601 is used for storing relevant program codes;
the processor 602 is configured to call the program code to execute the method for diagnosing a fault of the device according to the above method embodiment.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used for storing a computer program, and the computer program is used for executing the method for diagnosing the fault of the device according to the above method embodiment.
In addition, the present application also provides a computer program product, which contains a program that, when running on a processor, causes a computer or a network device to execute the method for diagnosing the failure of the device according to the above method embodiments.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. In particular, for system or apparatus embodiments, since they are substantially similar to method embodiments, they are described relatively simply, and reference may be made to some descriptions of method embodiments for related portions. The above-described embodiments of the apparatus are merely illustrative, where units or modules described as separate components may or may not be physically separate, and components displayed as the units or modules may or may not be physical modules, that is, may be located in one place, or may also be distributed on multiple network units, and some or all of the units or modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A method of diagnosing a fault in a device, the method comprising:
the fault diagnosis equipment sends a first detection signal to a first interface of an input end of the equipment to be detected;
when the fault diagnosis equipment receives a second detection signal returned by the output end of the equipment to be detected, the fault diagnosis equipment determines a second interface returning the second detection signal according to the second detection signal, wherein the second detection signal is obtained by the first detection signal passing through the equipment to be detected;
the fault diagnosis equipment carries out fault diagnosis on the equipment to be detected based on the corresponding relation, the first interface and the second interface, wherein the corresponding relation is the corresponding relation between the interface of the input end of the equipment to be detected and the interface of the output end of the equipment to be detected, which is stored by the fault diagnosis equipment.
2. The method according to claim 1, wherein the fault diagnosis of the device to be tested based on the correspondence, the first interface, and the second interface by the fault diagnosis device comprises:
when the fault diagnosis device determines that the second interface returning the second detection signal is multiple interfaces according to the second detection signal, the fault diagnosis device determines that short-circuit faults occur in other interfaces except for a target interface in the first interface and the second interface, wherein the target interface is an interface corresponding to the first interface in the second interface.
3. The method according to claim 1, wherein the fault diagnosis of the device to be tested based on the correspondence, the first interface, and the second interface by the fault diagnosis device comprises:
when the fault diagnosis device determines that the second interface returning the second detection signal is an interface according to the second detection signal, the fault diagnosis device judges whether the first interface and the second interface correspond to each other based on the corresponding relationship;
when the first interface and the second interface do not correspond to each other, the fault diagnosis device determines that a serial fault occurs in the first interface and the second interface.
4. The method of claim 3, wherein when the first interface and the second interface correspond, the method further comprises:
the fault diagnosis device acquires a first similarity of the first detection signal and the second detection signal;
and when the first similarity is smaller than a first preset similarity, the fault diagnosis equipment determines that the anti-interference performance of the equipment to be detected does not meet the preset requirement.
5. The method of claim 3, wherein when the first interface and the second interface correspond and an actuator is connected between the first interface and the second interface, the method further comprises:
the fault diagnosis equipment obtains a third detection signal according to the first detection signal and a processing algorithm corresponding to the actuator;
and the fault diagnosis equipment carries out fault diagnosis on the equipment to be detected based on the third detection signal and the second detection signal.
6. The method according to claim 5, wherein the fault diagnosing apparatus performing fault diagnosis on the device under test based on the third detection signal and the second detection signal comprises:
the fault diagnosis device acquires a second similarity of the third detection signal and the second detection signal;
and when the second similarity is smaller than a second preset similarity, the fault diagnosis equipment determines that the actuator has a fault.
7. The method according to any one of claims 1 to 6, further comprising:
and when the fault diagnosis equipment does not receive the detection signal returned by the output end of the equipment to be detected, the fault diagnosis equipment determines that the equipment to be detected has an open circuit fault.
8. A fault diagnosis apparatus characterized by comprising: the device comprises a fault diagnosis module, a signal generation module, a signal sending module and a signal receiving module;
the fault diagnosis module is used for sending a signal generation instruction to the signal generation module;
the signal generation module is used for generating a first detection signal based on the signal generation instruction;
the signal sending module is used for sending the first detection signal to the fault diagnosis module and a first interface of an input end of the device to be detected;
the signal receiving module is used for receiving a second detection signal returned by the output end of the device to be detected and sending the second detection signal to the fault diagnosis module;
the fault diagnosis module is further configured to determine a second interface for returning the second detection signal according to the second detection signal, where the second detection signal is obtained by passing the first detection signal through the device to be detected;
the fault diagnosis module is further used for carrying out fault diagnosis on the equipment to be detected based on the corresponding relation, the first interface and the second interface, wherein the corresponding relation is the corresponding relation between the interface of the input end of the equipment to be detected and the interface of the output end of the equipment to be detected, which is stored by the fault diagnosis module.
9. The apparatus of claim 8, wherein the signal generation module comprises a sinusoidal signal generator and an analog switch array chip.
10. An electronic device, characterized in that the device comprises: a memory and a processor;
the memory is used for storing relevant program codes;
the processor is configured to call the program code to execute the method of fault diagnosis of the apparatus according to any one of claims 1 to 7.
11. A computer-readable storage medium for storing a computer program for executing a fault diagnosis method of the apparatus of any one of claims 1 to 7.
12. A computer program product, characterized in that it contains a program which, when run on a processor, causes a computer or a network device to execute the method of fault diagnosis of a device according to any one of claims 1 to 7.
CN202210276822.7A 2022-03-15 2022-03-15 Fault diagnosis method of equipment and fault diagnosis equipment Pending CN114610555A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210276822.7A CN114610555A (en) 2022-03-15 2022-03-15 Fault diagnosis method of equipment and fault diagnosis equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210276822.7A CN114610555A (en) 2022-03-15 2022-03-15 Fault diagnosis method of equipment and fault diagnosis equipment

Publications (1)

Publication Number Publication Date
CN114610555A true CN114610555A (en) 2022-06-10

Family

ID=81864104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210276822.7A Pending CN114610555A (en) 2022-03-15 2022-03-15 Fault diagnosis method of equipment and fault diagnosis equipment

Country Status (1)

Country Link
CN (1) CN114610555A (en)

Similar Documents

Publication Publication Date Title
US20080133165A1 (en) Test apparatus and device interface
CN113589787B (en) Hardware-in-loop test method, test device, test system and readable storage medium
CN108802511B (en) Method and system for testing battery management unit
CN104484248A (en) Diagnosis method and device for electrifying fault of computer motherboard
KR20180013016A (en) Simulation evaluation system of traffic signal controller
KR101209069B1 (en) Debuggging Apparatus For CAN Communication Diagnosis Device
CN112697455A (en) Automatic real vehicle testing system
CN112306875A (en) Automatic testing method based on HIL (hardware-in-the-loop) rack
CN217541952U (en) Vehicle instrument test system
CN115470064A (en) Security test method and device for device to be tested, electronic device and storage medium
CN109962743A (en) Semiconductor devices and semiconductor system
US8204608B2 (en) Monitoring and control apparatus
CN108319516B (en) Test system and test method
CN102928732A (en) Line diagnostic apparatus and line diagnostic method
CN113110394B (en) Multi-controller combined hardware-in-loop test system and method
CN110968004B (en) Cable test system based on FPGA prototype verification development board
CN114610555A (en) Fault diagnosis method of equipment and fault diagnosis equipment
CN110456763A (en) The test macro and method of intelligent driving controller
CN114942601A (en) Simulation test equipment and method for airbag electronic control system
CN211264169U (en) Automatic testing device for logic control unit
CN112711245A (en) Calibration method and device for automobile diagnosis equipment and computing equipment
CN111399080A (en) Gravity sensor testing method and device, electronic device and storage medium
CN109490662B (en) Test method and device for automobile electronic equipment, computer equipment and storage medium
KR20180060675A (en) Apparatus and method for testing input/output signals and software performance of electric device
KR20130008248A (en) Equipment for automatically evaluating vehicle and evaluating method using thereof

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