A method of diagnosing a failure of a device and a failure diagnosing device
By sending and receiving detection signals to and from the HiL load cell and combining them with pre-stored interface correspondences, various faults in the HiL load cell can be detected, solving the problem of inaccurate detection in existing technologies and ensuring the accuracy of ECU function detection.
Patent Information
- Application Number
- CN202210276822.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2042-03-15
AI Technical Summary
Existing technologies lack functional testing methods for HiL load cells, resulting in inaccurate ECU functional testing and affecting the development and testing process.
A fault diagnosis device and method are provided, which sends a detection signal to the input terminal of the device under test, receives and analyzes the return signal, and performs fault diagnosis based on the pre-stored interface correspondence, including the detection of short circuit, cross-connection, open circuit, anti-interference performance and actuator fault.
It enables accurate detection of various functional faults in the HiL load cell, ensuring the accuracy of ECU function testing and avoiding the impact on subsequent testing procedures.
Smart Images

Figure CN114610555B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of control technology, and in particular to a fault diagnosis method and fault diagnosis device for a device. Background Technology
[0002] An Electronic Control Unit (ECU), also known as a vehicle computer, is a specialized microcomputer controller for automobiles. It consists of a microprocessor, memory, input / output interfaces, an analog-to-digital converter, and large-scale integrated circuits for shaping and driving functions. Before applying an ECU to real-world scenarios, it undergoes Hardware-in-the-Loop (HiL) testing to verify its functionality. HiL testing is a simulation testing system that uses a simulated model of the device under test to simulate its operating environment, thus making the device appear closer to a real-world environment.
[0003] When setting up the HiL environment, a custom-designed HiL load cell is needed to facilitate signal interaction between the ECU and HiL. This load cell integrates numerous wiring harnesses, with some wires connecting to actuators and other components. To prevent inaccurate ECU function testing due to HiL load cell malfunctions, it's essential to pre-test the HiL load cell's functionality to avoid impacting subsequent development and testing processes.
[0004] Currently, there is a lack of research on functional testing of HiL load cells, which fails to meet the testing requirements of HiL load cells. Summary of the Invention
[0005] In view of this, embodiments of this application provide a fault diagnosis method and a fault diagnosis device for a device, so as to meet the functional testing requirements of the device under test.
[0006] In a first aspect, embodiments of this application provide a method for diagnosing device faults, the method comprising:
[0007] The fault diagnosis equipment sends a first detection signal to the first interface of the input terminal of the device under test;
[0008] When the fault diagnosis device receives the second detection signal returned from the output terminal of the device under test, the fault diagnosis device determines the second interface that returns the second detection signal based on the second detection signal. The second detection signal is obtained by the first detection signal through the device under test.
[0009] The fault diagnosis device performs fault diagnosis on the device under test based on the correspondence, the first interface, and the second interface. The correspondence is the correspondence between the input interface and the output interface of the device under test stored by the fault diagnosis device.
[0010] In one possible implementation, the fault diagnosis device performs fault diagnosis on the device under test based on the correspondence, the first interface, and the second interface, including:
[0011] When the fault diagnosis device determines, based on the second detection signal, that the second interface returning the second detection signal is multiple interfaces, the fault diagnosis device determines that a short circuit fault has occurred in the first interface and other interfaces among the second interfaces except for the target interface, wherein the target interface is the second interface corresponding to the first interface.
[0012] In one possible implementation, the fault diagnosis device performs fault diagnosis on the device under test based on the correspondence, the first interface, and the second interface, including:
[0013] When the fault diagnosis device determines that the second interface that returns the second detection signal is an interface based on the second detection signal, the fault diagnosis device determines whether the first interface and the second interface correspond based on the correspondence.
[0014] When the first interface and the second interface do not correspond, the fault diagnosis device determines that a cross-connection fault has occurred in the first interface and the second interface.
[0015] In one possible implementation, when the first interface and the second interface correspond, the method further includes:
[0016] The fault diagnosis device acquires a first similarity between the first detection signal and the second detection signal;
[0017] When the first similarity is less than the first preset similarity, the fault diagnosis device determines that the anti-interference performance of the device under test does not meet the preset requirements.
[0018] In one possible implementation, 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 includes:
[0019] The fault diagnosis device obtains a third detection signal based on the first detection signal and the processing algorithm corresponding to the actuator;
[0020] The fault diagnosis device performs fault diagnosis on the device under test based on the third detection signal and the second detection signal.
[0021] In one possible implementation, the fault diagnosis device performs fault diagnosis on the device under test based on the third detection signal and the second detection signal, including:
[0022] The fault diagnosis device acquires a second similarity between the third detection signal and the second detection signal;
[0023] When the second similarity is less than the second preset similarity, the fault diagnosis device determines that the actuator has malfunctioned.
[0024] In one possible implementation, the method further includes:
[0025] When the fault diagnosis device does not receive a detection signal returned from the output terminal of the device under test, the fault diagnosis device determines that the device under test has an open circuit fault.
[0026] Secondly, embodiments of this application provide a fault diagnosis device, the device comprising: a fault diagnosis module, a signal generation module, a signal transmission module, and a signal receiving module;
[0027] The fault diagnosis module is used to send a signal generation command to the signal generation module;
[0028] The signal generation module is used to generate a first detection signal based on the signal generation instruction;
[0029] The signal transmitting module is used to send the first detection signal to the first interface of the input terminal of the fault diagnosis module and the device under test;
[0030] The signal receiving module is used to receive the second detection signal returned from the output terminal of the device under test, and send the second detection signal to the fault diagnosis module;
[0031] The fault diagnosis module is further configured to determine a second interface that returns the second detection signal based on the second detection signal, wherein the second detection signal is obtained by passing the first detection signal through the device under test;
[0032] The fault diagnosis module is further configured to perform fault diagnosis on the device under test based on the correspondence, the first interface, and the second interface, wherein the correspondence is the correspondence between the input interface of the device under test and the output interface of the device under test stored by the fault diagnosis module.
[0033] In one possible implementation, the signal generation module includes a sine wave generator and an analog switch array chip.
[0034] Thirdly, embodiments of this application provide an electronic device, the device including: a memory and a processor;
[0035] The memory is used to store the relevant program code;
[0036] The processor is used to call the program code to execute the fault diagnosis method of the device described in any of the implementations of the first aspect above.
[0037] Fourthly, embodiments of this application provide a computer-readable storage medium for storing a computer program for executing the fault diagnosis method for the device described in any of the implementations of the first aspect.
[0038] Fifthly, embodiments of this application provide a computer program product comprising a program that, when executed on a processor, causes a computer or network device to perform the device fault diagnosis method described in any of the implementations of the first aspect.
[0039] Therefore, the embodiments of this application have the following beneficial effects:
[0040] In the above implementation of the embodiments of this application, in order to achieve fault diagnosis of the device under test, the fault diagnosis device first sends a first detection signal to the first interface of the input terminal of the device under test. When the fault diagnosis device receives a second detection signal returned from the output terminal of the device under test, the fault diagnosis device determines the second interface that returned the second detection signal based on the second detection signal. The second detection signal is obtained by transmitting or processing the first detection signal through the device under test. The fault diagnosis device performs fault diagnosis on the device under test based on its own stored correspondence, the first interface, and the second interface of the device under test. The correspondence is the relationship between the input terminal interface and the output terminal interface of the device under test. Through the fault diagnosis method provided by the embodiments of this application, fault diagnosis can be performed based on the interfaces of the device under test that receive and transmit detection signals, as well as the transmitted detection signals, thus meeting the fault diagnosis needs of multiple functions of the device under test. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments provided in this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0042] Figure 1 A flowchart illustrating a device fault diagnosis method provided in this application embodiment;
[0043] Figure 2 This is a schematic diagram of a device to be tested in an embodiment of this application;
[0044] Figure 3 A flowchart illustrating another device fault diagnosis method provided in this application embodiment;
[0045] Figure 4 This is a schematic diagram of a fault diagnosis device provided in an embodiment of this application;
[0046] Figure 5 A schematic diagram illustrating a device fault diagnosis method provided in this application embodiment;
[0047] Figure 6 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. The described embodiments are merely exemplary implementations of this application and not all implementation methods. Those skilled in the art can obtain other embodiments in conjunction with the embodiments of this application without creative effort, and these embodiments are also within the protection scope of this application.
[0049] Before applying the Electronic Control Unit (ECU) to a real-world scenario, it's essential to perform Hardware-in-the-Loop (HiL) testing to verify its functionality. When setting up the HiL environment, a custom-designed HiL load cell is required to facilitate signal interaction between the ECU and HiL. This load cell integrates numerous wiring harnesses, with some wires connecting to actuators and other components. To prevent inaccurate ECU functionality testing due to HiL load cell malfunctions, it's crucial to pre-test the HiL load cell's functionality to avoid impacting subsequent development and testing processes.
[0050] However, there is currently a lack of research on functional testing of HiL load cells, which fails to meet the needs of HiL load cell fault detection.
[0051] Based on this, embodiments of this application provide a fault diagnosis method for a device to meet the functional testing requirements of the device under test. Specifically, the fault diagnosis device first sends a first detection signal to a first interface of the input terminal of the device under test. When the fault diagnosis device receives a second detection signal returned from the output terminal of the device under test, it determines the second interface that returned the second detection signal based on the second detection signal. The second detection signal is obtained by transmitting or processing the first detection signal through the device under test. The fault diagnosis device performs fault diagnosis on the device under test based on its stored correspondence, the first interface, and the second interface. This correspondence is between the input terminal interface and the output terminal interface of the device under test. Through the fault diagnosis method provided by embodiments of this application, fault diagnosis can be performed based on the interfaces of the device under test that receive and transmit detection signals, as well as the detection signals themselves, thus meeting the fault diagnosis requirements of multiple functions of the device under test.
[0052] The fault diagnosis method for the device provided in the embodiments of this application will now be described in conjunction with the accompanying drawings.
[0053] See Figure 1 , Figure 1 This is a flowchart of a device fault diagnosis method provided in an embodiment of this application.
[0054] This method mainly includes the following steps:
[0055] S101: The fault diagnosis device sends a first detection signal to the first interface of the input terminal of the device under test.
[0056] In this embodiment, the device under test can receive and send detection signals through its interface to determine whether there are faults such as cross-wiring or short circuits inside the device under test. Therefore, the fault diagnosis device first sends a first detection signal to the first interface of the input terminal of the device under test.
[0057] S102: When the fault diagnosis device receives the second detection signal returned from the output terminal of the device under test, the fault diagnosis device determines the second interface that returned the second detection signal based on the second detection signal, wherein the second detection signal is obtained by the first detection signal through the device under test.
[0058] After the first interface of the device under test receives the first detection signal, it is transmitted through the device under test and then returned as a second detection signal by the output of the device under test. The fault diagnosis device determines the second interface that returned the second detection signal based on the second detection signal.
[0059] S103: The fault diagnosis device performs fault diagnosis on the device under test based on the correspondence, the first interface, and the second interface. The correspondence is the correspondence between the input interface of the device under test and the output interface of the device under test stored by the fault diagnosis device.
[0060] Since the device under test has multiple interfaces at both the input and output ends, and the interfaces at the input end and the interfaces at the output end correspond one-to-one, the fault diagnosis device stores the correspondence between the interfaces at the input end and the interfaces at the output end. Therefore, the fault diagnosis device can perform fault diagnosis on the device under test based on the first interface, the second interface, and the correspondence stored in itself.
[0061] In one possible implementation, the mapping relationship stored by the fault diagnosis device can be obtained from a host computer. The host computer is a computer capable of directly issuing control commands. Through control software, it can display various signal changes on the screen and issue control commands. Specifically, a configuration file containing the mapping relationship between the input and output interfaces of the device under test can be generated in advance. This configuration file is then imported into the host computer, which can transcode the configuration file into a file recognizable by the fault diagnosis device. The fault diagnosis device then downloads the transcoded configuration file and saves the mapping relationship between the input and output interfaces of the device under test. The fault diagnosis device performs fault diagnosis based on its stored mapping relationship, the first interface of the device under test that receives the first detection signal, and the second interface that outputs the second detection signal.
[0062] The following sections will describe the methods for using fault diagnosis equipment to diagnose faults in the equipment under test, categorized by situation.
[0063] In one possible implementation, when the fault diagnosis device receives a second detection signal returned from the output of the device under test, and the fault diagnosis device determines that the second interface returning the second detection signal is multiple interfaces, since each input interface has only one corresponding output interface, the fault diagnosis device can determine that, except for the target interface corresponding to the first interface, other interfaces in the second interface have a short circuit fault with the first interface. That is, the connection between other interfaces and the first interface forms a channel for transmitting signals, so the fault diagnosis device will receive detection signals returned from multiple interfaces.
[0064] When the fault diagnosis device determines that the second interface returning the second detection signal is a valid interface, it can use its stored correspondence to determine whether the first interface and the second interface are corresponding interfaces. If not, it indicates a cross-connection fault between the first interface and the second interface. That is, the first interface, which should be connected to the target interface via a wire, is instead connected in series with the second interface. This creates a signal transmission channel between the first and second interfaces, resulting in a cross-connection fault.
[0065] If the fault diagnosis device determines that the first interface and the second interface are corresponding interfaces, it indicates that the wire connection between the first interface and the second interface is correct. At this time, the anti-interference performance of the device under test can also be tested. That is, it is determined whether the second detection signal obtained after the first detection signal is transmitted through the device under test meets the requirements. Specifically, the fault diagnosis device obtains the first similarity between the first detection signal and the second detection signal, and then compares the first similarity with the first preset similarity. When the first similarity is less than the first preset similarity, it indicates that the similarity between the second detection signal and the first detection signal does not meet the requirements, that is, the anti-interference performance of the device under test does not meet the preset requirements. The specific value of the first preset similarity can be calibrated according to actual needs, and this embodiment does not limit it.
[0066] When the fault diagnosis device acquires the similarity between the first detection signal and the second detection signal, this embodiment provides a possible implementation method: The intensity of the first detection signal and the intensity of the second detection signal can be compared, and the consistency of the signal intensity can be calculated as the first similarity between the first detection signal and the second detection signal. Alternatively, the amplitude of the first detection signal and the amplitude of the second detection signal can be compared, and the consistency of the amplitude can be calculated as the first similarity between the first detection signal and the second detection signal.
[0067] In practical applications, actuators may be connected between the input and output interfaces of the device under test. The main function of the actuators is to process the received signals and bring them within a preset range. Therefore, when the first and second interfaces are corresponding interfaces, and an actuator is connected between them, the fault diagnosis device can also diagnose faults in the actuator's function. Specifically, the fault diagnosis device first obtains a third detection signal based on the first detection signal and the corresponding processing algorithm of the actuator. That is, the third detection signal is the theoretical signal obtained after the first detection signal has been processed by the actuator. Then, the fault diagnosis device performs fault diagnosis on the device under test based on the third and second detection signals.
[0068] One possible implementation is that the fault diagnosis device can obtain a second similarity between the third detection signal and the second detection signal, and then compare the second similarity with a second preset similarity. If the second similarity is less than the second preset similarity, it indicates that the second detection signal obtained after processing by the actuator does not meet the requirements, that is, the actuator has failed.
[0069] In a preferred implementation, in order to eliminate the impact of the anti-interference performance of the device under test on the actuator function test, when it is determined that the anti-interference performance of the device under test meets the requirements, the actuator can be connected in series between the first interface and the second interface, and then the function of the actuator can be diagnosed for faults.
[0070] In the above embodiments, the fault diagnosis device can perform fault diagnosis on the device under test based on the input interface of the device under test that receives the first detection signal and the output interface that transmits the second detection signal. Furthermore, after the fault diagnosis device sends the first detection signal to the first interface of the input terminal of the device under test, it may not receive the detection signal returned from the output terminal of the device under test. In this case, the fault diagnosis device can determine that an open circuit fault has occurred between the first interface and the corresponding target interface.
[0071] In one possible implementation, after the fault diagnosis device performs fault diagnosis on the device under test, it can send the fault diagnosis results to the host computer. The host computer can display the fault diagnosis results, making it convenient for staff to modify the device under test based on the fault diagnosis results.
[0072] The fault diagnosis method for the device provided in this application embodiment allows the fault diagnosis device to perform fault diagnosis on the device under test based on the input and output interfaces of the device under test and the received detection signals. It can not only test the continuity of the device under test, but also detect whether there are faults such as short circuits or cross-wiring inside the device under test, and can also detect the anti-interference function of the device under test, thus meeting the fault diagnosis needs of multiple functions of the device under test.
[0073] The fault diagnosis method for the equipment provided in the above embodiments will be described in detail below with reference to a specific application scenario.
[0074] like Figure 2As shown, in this application scenario, the device under test includes a HiL-end interface module, a HiL load cell, and an ECU-end interface module. The HiL-end interface module and the ECU-end interface module each have multiple pins. There is a one-to-one correspondence between the pins of the HiL-end interface module and the pins of the ECU-end interface module. These pins are connected via wires within the load cell and some actuators, forming a signal transmission channel. The fault diagnosis device can test the functionality of the wiring harness within the load cell based on the pin correspondence. In subsequent embodiments, the HiL-end interface module will be referred to simply as the HiL end, and the ECU-end interface module will be referred to simply as the ECU end.
[0075] When the HiL load cell is used in different scenarios, the correspondence between the HiL pins and the ECU pins may differ. A configuration file pre-generating this correspondence can be saved. When testing the HiL load cell's functionality, the configuration file is imported into a host computer. The host computer can then transcode the configuration file and download it to a fault diagnosis device. The fault diagnosis device can then perform fault diagnosis on the HiL load cell based on the correspondence between the HiL pins and the ECU pins in the configuration file.
[0076] The principle of the fault diagnosis method provided in this embodiment will be introduced below with reference to the accompanying drawings.
[0077] See Figure 3 , Figure 3 A flowchart of another device fault diagnosis method provided in an embodiment of this application.
[0078] This method mainly includes the following steps:
[0079] S301: The fault diagnosis device sends a first detection signal to the first pin of the HiL terminal;
[0080] S302: When the fault diagnosis device receives the second detection signal returned from the ECU, the fault diagnosis device determines the second pin that returns the second detection signal based on the second detection signal. The second detection signal is obtained by the first detection signal through the HiL load box.
[0081] S303: The fault diagnosis device performs fault diagnosis on the HiL load cell based on the correspondence, the first pin, and the second pin. The correspondence is the correspondence between the pins of the HiL terminal and the pins of the ECU terminal stored by the fault diagnosis device.
[0082] The following sections will describe the methods for fault diagnosis of HiL load cells using fault diagnosis equipment, categorized by scenario.
[0083] Since the pins of the HiL terminal and the pins of the ECU terminal have a one-to-one correspondence, when the second pin of the fault diagnosis device receives the second detection signal and there are multiple pins, it indicates that, apart from the target pin corresponding to the first pin, the other pins in the second pin are short-circuited with the first pin. That is, a signal channel is formed by the connection of wires, so the wires inside the HiL load box are short-circuited.
[0084] When the second pin of the fault diagnosis device receives the second detection signal is a single pin, the fault diagnosis device determines whether the first pin and the second pin are corresponding pins based on its stored correspondence. If not, it indicates that there is a cross-connection fault in the wires inside the HiL load box. That is, the normal wire connects the first pin and the pin corresponding to the first pin, but now the wire connects the first pin and the second pin, causing the fault diagnosis device to receive the second detection signal from the second pin.
[0085] If the fault diagnosis device determines that the first pin and the second pin are corresponding pins, it can also perform fault diagnosis on the HiL load cell's function based on the transmitted first detection signal and the received second detection signal. One possible implementation is that the HiL load cell has anti-interference capabilities during signal transmission. The fault diagnosis device can determine whether the HiL load cell's anti-interference capabilities meet preset requirements based on the similarity between the first and second detection signals. After obtaining the first similarity between the first and second detection signals, the fault diagnosis device compares the first similarity with a first preset similarity. If the first similarity is less than the first preset similarity, it is determined that the HiL load cell's anti-interference capabilities do not meet the preset requirements.
[0086] When the first and second pins are connected via wires from the load cell, some actuators may also be connected in series. The main function of the actuator is to process the received signal and bring it within a preset range. Therefore, when an actuator is connected between the first and second pins, the fault diagnosis device can detect the actuator's functionality. Specifically, the fault diagnosis device can obtain a third detection signal based on the first detection signal and the processing algorithm corresponding to the actuator, then obtain a second similarity between the third detection signal and the second detection signal, and compare the second similarity with a second preset similarity. If the second similarity is less than the second preset similarity, it indicates that the actuator has malfunctioned.
[0087] After the fault diagnosis equipment sends the first detection signal to the first pin of the HiL terminal, if it does not receive a detection signal returned from the pin of the ECU terminal within a preset time period, it determines that the HiL load cell has an open circuit fault.
[0088] In the above embodiments, the fault diagnosis device sends a detection signal to the pin of the HiL terminal and receives the detection signal returned by the ECU terminal. Alternatively, the fault diagnosis device can send the detection signal to the pin of the ECU terminal and receive the detection signal returned from the HiL terminal, neither of which affects the implementation of this solution.
[0089] The fault diagnosis method provided in this application embodiment can determine whether faults such as cross-connection or short circuit have occurred inside the HiL load box based on the pins of the HiL terminal and the pins of the ECU terminal, and can also determine the anti-interference performance of the HiL load box, thus meeting the fault diagnosis needs of various types of HiL load boxes.
[0090] Based on the above method embodiments, this application also provides a fault diagnosis device.
[0091] See Figure 4 , Figure 4 This is a schematic diagram of a fault diagnosis device provided in an embodiment of this application.
[0092] The device 400 includes: a fault diagnosis module 401, a signal generation module 402, a signal transmission module 403, and a signal receiving module 404;
[0093] The fault diagnosis module 401 is used to send a signal generation command to the signal generation module 402;
[0094] The signal generation module 402 is used to generate a first detection signal based on the signal generation instruction;
[0095] The signal transmitting module 403 is used to send the first detection signal to the first interface of the input terminal of the fault diagnosis module 401 and the device under test.
[0096] The signal receiving module 404 is used to receive the second detection signal returned by the output terminal of the device under test, and send the second detection signal to the fault diagnosis module 401;
[0097] The fault diagnosis module 401 is further configured to determine a second interface that returns the second detection signal based on the second detection signal, wherein the second detection signal is obtained by the first detection signal through the device under test;
[0098] The fault diagnosis module 401 is further configured to perform fault diagnosis on the device under test based on the correspondence, the first interface, and the second interface, wherein the correspondence is the correspondence between the input interface of the device under test and the output interface of the device under test stored by the fault diagnosis module.
[0099] In one possible implementation, the signal generation module 402 includes a sine wave generator and an analog switch array chip, meaning the first detection signal sent by the signal generation module 402 can be a sine wave signal. The analog switch array chip can independently turn each analog switch on or off to achieve the connection and disconnection of each interface between the fault diagnosis device and the device under test. For example, the analog switch array chip CH446X can independently turn 120 analog switches on or off, meaning one CH446X can connect or disconnect up to 120 interface channels.
[0100] In one possible implementation, the fault diagnosis module 401 is specifically used to determine that a short circuit fault has occurred in the first interface and other interfaces among the second interfaces except for the target interface when the fault diagnosis device determines that the second interface returning the second detection signal is multiple interfaces based on the second detection signal. The target interface is the second interface corresponding to the first interface.
[0101] In one possible implementation, the fault diagnosis module 401 is specifically used to determine whether the first interface and the second interface correspond based on the correspondence when the second interface returning the second detection signal is determined to be an interface according to the second detection signal; when the first interface and the second interface do not correspond, the fault diagnosis device determines that a cross-connection fault has occurred in the first interface and the second interface.
[0102] In one possible implementation, when the first interface and the second interface correspond, the fault diagnosis module 401 is further configured to obtain a first similarity between the first detection signal and the second detection signal; when the first similarity is less than a first preset similarity, it is determined that the anti-interference performance of the device under test does not meet the preset requirements.
[0103] In one possible implementation, when the first interface and the second interface correspond 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 based on the first detection signal and the processing algorithm corresponding to the actuator; and perform fault diagnosis on the device under test based on the third detection signal and the second detection signal.
[0104] In one possible implementation, the fault diagnosis module 401 is specifically used to obtain a second similarity between the third detection signal and the second detection signal; when the second similarity is less than a second preset similarity, it is determined that the actuator has malfunctioned.
[0105] In one possible implementation, the fault diagnosis module 401 is further configured to determine that the device under test has an open circuit fault when no detection signal is received from the output terminal of the device under test.
[0106] Based on the above embodiments, it can be seen that the device under test may include a HiL-end interface module, a HiL load cell, and an ECU-end interface module. See also... Figure 5 , Figure 5 This is a schematic diagram illustrating another method for fault diagnosis of a device, as provided in this application embodiment. The working principle of this fault diagnosis device is the same as described in the above embodiments and will not be repeated here.
[0107] Based on the above method and device embodiments, this application also provides an electronic device. See also Figure 6 , Figure 6 This is a schematic diagram of an electronic device provided in an embodiment of this application.
[0108] The device 600 includes: a memory 601 and a processor 602;
[0109] The memory 601 is used to store relevant program code;
[0110] The processor 602 is used to call the program code to execute the device fault diagnosis method described in the above method embodiments.
[0111] This application also provides a computer-readable storage medium for storing a computer program for executing the device fault diagnosis method described in the above method embodiments.
[0112] Furthermore, this application also provides a computer program product, which includes a program that, when run on a processor, causes a computer or network device to execute the device fault diagnosis method described in the above method embodiments.
[0113] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. In particular, for system or device embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The device embodiments described above are merely illustrative. The units or modules described as separate components may or may not be physically separate. The components shown as units or modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the units or modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0114] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0115] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0116] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0117] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not 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
1. A method for diagnosing equipment faults, characterized in that, The method includes: The fault diagnosis equipment sends a first detection signal to the first interface of the input terminal of the device under test; When the fault diagnosis device receives the second detection signal returned from the output terminal of the device under test, the fault diagnosis device determines the second interface that returns the second detection signal based on the second detection signal. The second detection signal is obtained by the first detection signal through the device under test. The fault diagnosis device performs fault diagnosis on the device under test based on the correspondence, the first interface, and the second interface. The correspondence is the correspondence between the input interface and the output interface of the device under test stored by the fault diagnosis device. The fault diagnosis device performs fault diagnosis on the device under test based on the correspondence, the first interface, and the second interface, including: When the fault diagnosis device determines that the second interface that returns the second detection signal is multiple interfaces based on the second detection signal, the fault diagnosis device determines that the first interface and other interfaces among the second interfaces except for the target interface have a short circuit fault, wherein the target interface is the second interface corresponding to the first interface; When the fault diagnosis device determines that the second interface that returns the second detection signal is an interface based on the second detection signal, the fault diagnosis device determines whether the first interface and the second interface correspond based on the correspondence. When the first interface and the second interface do not correspond, the fault diagnosis device determines that a cross-connection fault has occurred in the first interface and the second interface.
2. The method according to claim 1, characterized in that, When the first interface and the second interface correspond, the method further includes: The fault diagnosis device acquires a first similarity between the first detection signal and the second detection signal; When the first similarity is less than the first preset similarity, the fault diagnosis device determines that the anti-interference performance of the device under test does not meet the preset requirements.
3. The method according to claim 1, characterized in that, 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 includes: The fault diagnosis device obtains a third detection signal based on the first detection signal and the processing algorithm corresponding to the actuator; The fault diagnosis device performs fault diagnosis on the device under test based on the third detection signal and the second detection signal.
4. The method according to claim 3, characterized in that, The fault diagnosis device performs fault diagnosis on the device under test based on the third detection signal and the second detection signal, including: The fault diagnosis device acquires a second similarity between the third detection signal and the second detection signal; When the second similarity is less than the second preset similarity, the fault diagnosis device determines that the actuator has malfunctioned.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: When the fault diagnosis device does not receive a detection signal returned from the output terminal of the device under test, the fault diagnosis device determines that the device under test has an open circuit fault.
6. A fault diagnosis device, characterized in that, The device includes: a fault diagnosis module, a signal generation module, a signal transmission module, and a signal receiving module; The fault diagnosis module is used to send a signal generation command to the signal generation module; The signal generation module is used to generate a first detection signal based on the signal generation instruction; The signal transmitting module is used to send the first detection signal to the first interface of the input terminal of the fault diagnosis module and the device under test; The signal receiving module is used to receive the second detection signal returned from the output terminal of the device under test, and send the second detection signal to the fault diagnosis module; The fault diagnosis module is further configured to determine a second interface that returns the second detection signal based on the second detection signal, wherein the second detection signal is obtained by passing the first detection signal through the device under test; The fault diagnosis module is also used to perform fault diagnosis on the device under test based on the correspondence, the first interface, and the second interface, wherein the correspondence is the correspondence between the input interface of the device under test and the output interface of the device under test stored by the fault diagnosis module. The fault diagnosis module is also used to perform fault diagnosis on the device under test based on the correspondence, the first interface, and the second interface, including: When the fault diagnosis module determines that the second interface that returns the second detection signal is multiple interfaces based on the second detection signal, the fault diagnosis module determines that the first interface and other interfaces in the second interface except for the target interface have a short circuit fault, wherein the target interface is the second interface corresponding to the first interface; When the fault diagnosis module determines that the second interface that returns the second detection signal is an interface based on the second detection signal, the fault diagnosis module determines whether the first interface and the second interface correspond based on the correspondence. When the first interface and the second interface do not correspond, the fault diagnosis module determines that a cross-connection fault has occurred in the first interface and the second interface.
7. The device according to claim 6, characterized in that, The signal generation module includes a sine wave generator and an analog switch array chip.
8. An electronic device, characterized in that, The device includes: a memory and a processor; The memory is used to store the relevant program code; The processor is used to call the program code to execute the fault diagnosis method of the device according to any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program for performing the fault diagnosis method of the device according to any one of claims 1 to 5.
10. A computer program product, characterized in that, The computer program product includes a program that, when run on a processor, causes a computer or network device to perform the fault diagnosis method of the device according to any one of claims 1 to 5.
Citation Information
Patent Citations
Failure diagnosis system
CN110118932A
Motor fault diagnosis equipment, method and device and storage medium
CN111257751A