A fault detection method, device, to-be-detected equipment, storage medium and vehicle

By generating and running fault detection code, the vehicle fault detection results are automatically determined, solving the problem of low fault detection efficiency in existing technologies and realizing rapid and automatic fault location and resolution.

CN122284562APending Publication Date: 2026-06-26BEIJING CO WHEELS TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING CO WHEELS TECH CO LTD
Filing Date
2024-12-25
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

Existing technologies have low efficiency in vehicle fault detection, and the time required for manual problem confirmation, problem reproduction, and data collection and analysis is long.

Method used

The system generates fault detection codes by receiving the target fault tree, sends and runs the codes to the device under test, determines the fault detection results based on the running results, and displays the fault detection results and solutions.

Benefits of technology

It improves the efficiency of fault detection, reduces manual intervention, quickly locates the root cause of problems, and saves time in problem analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122284562A_ABST
    Figure CN122284562A_ABST
Patent Text Reader

Abstract

This application provides a fault detection method, apparatus, device under test, storage medium, and vehicle. The fault detection method includes: receiving a target fault tree of the device under test; the target fault tree is a fault tree used for fault detection of the device under test; generating a fault detection code corresponding to the target fault tree; sending the fault detection code to the device under test; receiving the running result generated by the device under test after running the fault detection code; and determining the fault detection result of the device under test based on the running result. This application can improve the efficiency of fault detection of the device under test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information processing technology, and in particular to a fault detection method, apparatus, device under test, storage medium, and vehicle product. Background Technology

[0002] With the development of electronic technology, there are more and more vehicles, and their functions are becoming more and more diverse, providing many conveniences for users' lives. However, the number of abnormal vehicle conditions is also gradually increasing.

[0003] In related technologies, when a vehicle malfunctions, the problem is usually identified manually on-site, reproduced, and the cause of the vehicle abnormality is determined through data collection and analysis. Since the process of manually identifying the problem, reproducing the problem, collecting and analyzing data, and locating the cause is time-consuming, it reduces the efficiency of fault detection on the equipment to be tested. Summary of the Invention

[0004] This application provides a fault detection method, apparatus, device under test, storage medium, and vehicle, which can improve the efficiency of fault detection of the device under test.

[0005] The technical solution of this application embodiment is implemented as follows:

[0006] This application provides a fault detection method applied to a fault detection device, the method comprising:

[0007] Receive the target fault tree of the device under test; the target fault tree is a fault tree used for fault detection of the device under test;

[0008] Generate the fault detection code corresponding to the target fault tree;

[0009] Send the fault detection code to the device under test;

[0010] Receive the execution result generated by the device under test after running the fault detection code;

[0011] Based on the operational results, the fault detection result of the device under test is determined.

[0012] In the above scheme, generating the fault tree execution code corresponding to the target fault tree includes:

[0013] The target fault tree is converted into code to obtain the fault detection code; the target fault tree includes the abnormal state of the device under test and the fault result corresponding to the abnormal state.

[0014] In the above scheme, determining the fault detection result of the device under test based on the operation result includes:

[0015] The running result is determined as the fault detection result, and the running result is a portion of the information in the target fault tree.

[0016] In the above scheme, after determining the fault detection result of the device under test based on the operation result, the method further includes:

[0017] The fault detection results are displayed so that maintenance personnel can perform fault repair on the equipment under test based on the fault detection results.

[0018] In the above scheme, after determining the fault detection result of the device under test based on the operation result, the method further includes:

[0019] Determine the fault solution corresponding to the fault detection results;

[0020] The fault solutions are displayed so that troubleshooting personnel can address the faults in the equipment under test based on the fault solutions.

[0021] This application embodiment provides another fault detection method, applied to a device under test, the method comprising:

[0022] Receive fault detection codes sent by the fault detection device;

[0023] Run the fault detection code and obtain the results;

[0024] The operation results are sent to the fault detection device so that the fault detection device can determine the fault detection result based on the operation results.

[0025] In the above scheme, the step of running the fault detection code and obtaining the running result includes:

[0026] Obtain the device status information of the device to be tested;

[0027] The fault detection code is run based on the device status information to obtain the running result, which is a portion of the information in the target fault tree.

[0028] In the above scheme, the step of running the fault detection code based on the device status information to obtain the running result includes:

[0029] During the execution of the fault detection code, the device status information is matched with the information in the target fault tree to obtain the matched abnormal state and the fault result corresponding to the abnormal state.

[0030] The abnormal state and the fault result are determined as the running result.

[0031] This application provides a fault detection device, including:

[0032] The first receiving unit is configured to receive the target fault tree of the device under test; the target fault tree is a fault tree used for fault detection of the device under test; and to receive the running results generated after the device under test runs the fault detection code.

[0033] A generation unit is used to generate fault detection codes corresponding to the target fault tree;

[0034] The first sending unit is used to send the fault detection code to the device under test;

[0035] The determining unit is used to determine the fault detection result of the device under test based on the operation result.

[0036] In the above scheme, the device further includes a conversion unit;

[0037] The conversion unit is used to convert the target fault tree into code to obtain the fault detection code; the target fault tree includes the abnormal state of the device under test and the fault result corresponding to the abnormal state.

[0038] In the above scheme, the determining unit is used to determine the running result as the fault detection result, and the running result is part of the information in the target fault tree.

[0039] In the above scheme, the device further includes a display unit;

[0040] The display unit is used to display the fault detection results so that maintenance personnel can perform fault repair on the device under test based on the fault detection results.

[0041] In the above scheme, the determining unit is used to determine the fault solution corresponding to the fault detection result;

[0042] The display unit is used to display the fault solution so that fault repair personnel can handle the fault problem of the device under test according to the fault solution.

[0043] This application provides a device to be tested, including:

[0044] The second receiving unit is used to receive the fault detection code sent by the fault detection device;

[0045] The execution unit is used to run the fault detection code and obtain the execution result;

[0046] The second sending unit is used to send the operation result to the fault detection device so that the fault detection device can determine the fault detection result based on the operation result.

[0047] In the above scheme, the device further includes an acquisition unit;

[0048] The acquisition unit is used to acquire the device status information of the device to be tested;

[0049] The running unit is used to run the fault detection code based on the device status information to obtain the running result, which is a portion of the information in the target fault tree.

[0050] In the above scheme, the device further includes a matching unit;

[0051] The matching unit is used to match the device status information with the information in the target fault tree during the execution of the fault detection code, to obtain the matched abnormal state and the fault result corresponding to the abnormal state; and to determine the abnormal state and the fault result as the execution result.

[0052] This application provides a fault detection device, the fault detection device comprising:

[0053] The first memory is used to store computer-executable instructions;

[0054] The first processor, when executing computer-executable instructions stored in the first memory, implements the fault detection method provided in the embodiments of this application for use in a fault detection device.

[0055] This application provides a device to be tested, the device to be tested comprising:

[0056] The second memory is used to store computer-executable instructions;

[0057] The second processor, when executing computer-executable instructions stored in the second memory, implements the fault detection method for a device under test provided in the embodiments of this application.

[0058] This application provides a computer-readable storage medium storing a computer program or computer-executable instructions, which, when executed by a first processor, implements the fault detection method provided in this application for a fault detection device, and when executed by a second processor, implements the fault detection method provided in this application for a device under test.

[0059] This application provides a vehicle that includes a computer program or computer-executable instructions. When the computer program or computer-executable instructions are executed by a second processor, they implement the fault detection method provided in this application for use in a device under test.

[0060] The embodiments of this application have the following beneficial effects: When the fault detection device receives the target fault tree of the device under test, it generates the fault detection code corresponding to the target fault tree and sends the fault detection code to the device under test so that the device under test can run the fault detection code to obtain the running result, thereby determining the fault detection result of the device under test based on the running result. There is no need for manual fault location, which improves the efficiency of fault detection of the device under test. Attached Figure Description

[0061] Figure 1 This application provides a fault detection method flow chart. Figure 1 ;

[0062] Figure 2 This is an exemplary fault tree diagram provided in an embodiment of this application. Figure 1 ;

[0063] Figure 3 This is an exemplary character interpretation diagram provided in an embodiment of this application;

[0064] Figure 4 This is an exemplary fault tree diagram provided in an embodiment of this application. Figure 2 ;

[0065] Figure 5 This application provides a fault detection method flow chart. Figure 2 ;

[0066] Figure 6 This is an exemplary fault detection system block diagram provided in an embodiment of this application;

[0067] Figure 7 This is a schematic diagram of the composition structure of a fault detection device provided in an embodiment of this application. Figure 1 ;

[0068] Figure 8 This is a schematic diagram of the composition structure of a fault detection device provided in an embodiment of this application. Figure 2 ;

[0069] Figure 9 This is a schematic diagram of the composition structure of a device to be tested provided in an embodiment of this application. Figure 1 ;

[0070] Figure 10This is a schematic diagram of the composition structure of a device to be tested provided in an embodiment of this application. Figure 2 . Detailed Implementation

[0071] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0072] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0073] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0074] Unless otherwise defined, all technical and scientific terms used in the embodiments of this application have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the embodiments of this application is for the purpose of describing the embodiments of this application only and is not intended to limit this application.

[0075] In the implementation of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.

[0076] This application provides a fault detection method, which is applied to a fault detection device. Figure 1 A flowchart of a fault detection method provided in an embodiment of this application is shown below. Figure 1 As shown, fault detection methods may include:

[0077] S101. Receive the target fault tree of the device under test; the target fault tree is a fault tree used to perform fault detection on the device under test.

[0078] The fault detection method provided in this application embodiment is applicable to scenarios where fault detection is performed on the equipment to be tested.

[0079] In the embodiments of this application, the fault detection device can be implemented in various forms. For example, the fault detection device described in this application may include servers, clouds, core networks, etc. The specific fault detection device can be determined according to the actual situation, and the embodiments of this application do not limit it in this regard.

[0080] In this embodiment of the application, the fault detection device can be a fault tree entry and analysis system set up in the cloud.

[0081] In this embodiment of the application, the device to be tested can be a vehicle, a computer, or other devices. The specific device to be tested can be determined according to the actual situation, and this embodiment of the application does not limit it.

[0082] For example, the device to be tested is specifically the vehicle-side controller (Electronic Control Unit, ECU) in a vehicle.

[0083] In this embodiment, the target fault tree can be information transmitted from other devices to the fault detection device, information manually entered into the fault detection device, or information obtained by the fault detection device through other means. The specific way in which the fault detection device receives the target fault tree of the device under test can be determined according to the actual situation, and this embodiment does not limit it.

[0084] In this embodiment, the target fault tree can be a manually set fault tree for fault detection of the device under test, or a fault tree generated by a fault tree generation device for fault detection of the device under test. The specific method of generating the target fault tree can be determined according to the actual situation, and this embodiment does not limit it.

[0085] In this application embodiment, an exemplary target fault tree is as follows: Figure 2As shown: The occurrence of any one of the basic events A or B will cause the intermediate event Node111 to occur, and the occurrence of Node111 will cause the intermediate event Node11 to occur; the occurrence of any one of the intermediate events Node11, Node12, and Node13 will cause the Node1 event to occur. The occurrence of any one of the basic events C, D, E, or F will cause the intermediate event Node121 to occur, and the occurrence of Node121 will cause the intermediate event Node12 to occur. The occurrence of any one of the basic events G or H will cause the intermediate event Node131 to occur, and the occurrence of Node131 will cause the intermediate event Node13 to occur.

[0086] Specifically, such as Figure 3 As shown, Figure 2 The circles in the diagram represent basic events, which are events that do not require further development and are called bottom events. Figure 2 The rectangle in the diagram represents an intermediate event, which occurs due to one or more input events of a logic gate. Figure 2 In the diagram, the crescent-shaped symbol represents an OR gate, which means that an output event occurs when at least one of the input events occurs. The semi-circular symbol represents an AND gate, which means that an output event occurs only when all input events occur.

[0087] In this application embodiment, an exemplary target fault tree is as follows: Figure 4 As shown: If the device under test is a vehicle, and it cannot be charged, it may be due to operational or communication abnormalities. Operational abnormalities may be caused by the charging gun not being properly inserted. Communication abnormalities may be caused by the Controller Area Network (CAN) bus being in a bus-off state.

[0088] S102. Generate the fault detection code corresponding to the target fault tree.

[0089] In this embodiment of the application, after receiving the target fault tree of the device to be tested, the fault detection device generates the fault detection code corresponding to the target fault tree.

[0090] In this embodiment of the application, the process of the fault detection device generating the fault tree running code corresponding to the target fault tree includes: converting the target fault tree into code to obtain fault detection code.

[0091] It should be noted that the target fault tree includes the abnormal state of the device under test and the corresponding fault results.

[0092] In this embodiment, the fault detection device can write corresponding code according to the logical relationship between events in the target fault tree to obtain fault detection code. The fault detection device can also convert the target fault tree into code in other ways to obtain fault detection code; the specific method by which the fault detection device converts the target fault tree into code to obtain fault detection code can be determined according to the actual situation, and this embodiment does not limit this.

[0093] It should be noted that the fault detection code can be C language code, Java language code, or other encoding formats. The specific format can be determined based on the executable code format of the device under test. This application embodiment does not limit this.

[0094] S103. Send a fault detection code to the device under test.

[0095] In this embodiment of the application, after the fault detection device generates the fault detection code corresponding to the target fault tree, it sends the fault detection code to the device to be tested.

[0096] In this embodiment, a communication link is established between the fault detection device and the device under test, allowing the fault detection device to transmit information to the device under test via this link. Specifically, the fault detection device sends a fault detection code to the device under test through this communication link.

[0097] In the embodiments of this application, the specific method by which the fault detection device sends the fault detection code to the device under test can be determined according to the actual situation, and the embodiments of this application do not limit this.

[0098] In this embodiment of the application, if the fault detection device is a fault tree entry and analysis system set in the cloud and the device to be detected is a vehicle-side controller, then the fault tree entry and analysis system in the cloud sends a fault detection code to the vehicle-side controller.

[0099] S104. Receive the running results generated after receiving the fault detection code of the device under test.

[0100] In this embodiment of the application, after the fault detection device sends the fault detection code to the device under test, it receives the running result generated by the device under test after running the fault detection code.

[0101] In this embodiment of the application, after the fault detection device sends a fault detection code to the device under test through a communication link, it can continue to receive the operating results transmitted by the device under test through the same communication link.

[0102] In this embodiment, the specific method by which the fault detection device generates the running result after receiving the fault detection code from the device under test can be determined according to the actual situation, and this embodiment does not limit this.

[0103] In this embodiment of the application, if the fault detection device is a fault tree entry and analysis system set in the cloud and the device to be detected is a vehicle-side controller, then the fault tree entry and analysis system in the cloud receives the running results sent by the vehicle-side controller.

[0104] It should be noted that the results include the device number under test and the time information when the device under test ran the fault detection code.

[0105] S105. Based on the operation results, determine the fault detection results of the equipment to be tested.

[0106] In this embodiment of the application, after receiving the running result generated by the device under test after running the fault detection code, the fault detection device determines the fault detection result of the device under test based on the running result.

[0107] It should be noted that the running result is the matching result obtained after matching the device status information of the device under test with the information in the target fault tree.

[0108] In this embodiment of the application, the process of determining the fault detection result of the device under test based on the operation result includes: determining the operation result as the fault detection result.

[0109] It should be noted that the results are partial information from the target fault tree.

[0110] In this embodiment, the target fault tree is the logical causal relationship information of the fault of the device under test caused by any abnormality of any component in the device under test. During the execution of the fault detection code, the device status information of the device under test is matched with the target fault tree information, and the matching result is the information that identifies the fault detection result.

[0111] In this embodiment of the application, after the fault detection device determines the fault detection result of the equipment to be tested based on the operation results, it will also display the fault detection result so that the fault repair personnel can carry out fault repair processing on the equipment to be tested according to the fault detection result.

[0112] In this embodiment, the fault detection result can be displayed using a fault detection device, or the fault detection result can be sent to a display device for display. The specific method of displaying the fault detection result can be determined according to the actual situation, and this embodiment does not limit it.

[0113] It should be noted that the display device can be the equipment of the fault repair personnel, such as their mobile phone; the display device can also be a server, from which the fault repair personnel can obtain the fault detection result and display it on the server's screen; the display device can also be a device dedicated to displaying faults, whereby the fault detection result is displayed on the display device after the fault detection device obtains the fault detection result, so that the fault repair personnel can view the fault display result and perform fault repair on the equipment under test according to the fault detection result; the specific display device can be determined according to the actual situation, and this application embodiment does not limit it in this way.

[0114] For example, when the fault detection device determines the fault detection result of the device under test, it stores the fault detection result. When the person in charge of problem analysis and handling (i.e., the fault repair personnel) receives feedback from the vehicle user about the problem, the person in charge of problem analysis and handling can input the vehicle (device under test) number (VIN) and the time information of the time information of the vehicle (device under test) running the fault detection code into the fault detection device, and view the fault detection result corresponding to the time information and the vehicle number (i.e., display the fault detection result corresponding to the time information and the vehicle number). The person in charge of problem analysis and handling can then know the root cause of the vehicle's functional failure, quickly provide a solution, improve problem handling efficiency, and save problem analysis time.

[0115] Understandably, this application enables self-diagnosis of vehicle (device under test) malfunctions, directly pinpointing the root cause of the problem.

[0116] In this embodiment, after determining the fault detection result of the device under test based on the operation results, the fault detection device will also determine the fault solution corresponding to the fault detection result; and display the fault solution so that the fault repair personnel can handle the fault problem of the device under test according to the fault solution.

[0117] In this embodiment, the fault detection device is provided with a preset correspondence between fault detection results and preset fault solutions. The fault solution corresponding to the fault detection result can be found in the preset correspondence between the fault detection results and preset fault solutions.

[0118] It should be noted that the correspondence between the preset fault detection result and the preset fault solution can be information transmitted to the fault detection device from other devices, information configured in the fault detection device, or information obtained by the fault detection device through other means. The specific way in which the fault detection device obtains the correspondence between the preset fault detection result and the preset fault solution can be determined according to the actual situation, and this application embodiment does not limit it.

[0119] In this embodiment of the application, the fault solution is a solution to the problem of fault detection results in the device under test.

[0120] In this embodiment, the fault detection device can be used to display the fault solution, or the fault solution can be sent to a display device for display. The specific way of displaying the fault solution can be determined according to the actual situation, and this embodiment does not limit it.

[0121] Understandably, when the fault detection device receives the target fault tree of the device under test, it generates the corresponding fault detection code and sends the fault detection code to the device under test so that the device under test can run the fault detection code to obtain the running result. Based on the running result, the fault detection result of the device under test can be determined. There is no need for manual fault location, which improves the efficiency of fault detection of the device under test.

[0122] This application embodiment also provides a fault detection method, which is applied to the device under test. Figure 5 A flowchart of a fault detection method provided in an embodiment of this application is shown below. Figure 5 As shown, fault detection methods may include:

[0123] S201. Receive the fault detection code sent by the fault detection device.

[0124] The fault detection method provided in this application embodiment is applicable to scenarios where fault detection is performed on the equipment to be tested.

[0125] In the embodiments of this application, the device to be tested can be implemented in various forms. For example, the device to be tested described in this application may include vehicles, computers, mobile phones, controllers, etc. The specific device to be tested can be determined according to the actual situation, and the embodiments of this application do not limit it in this way.

[0126] In this embodiment of the application, the device to be tested can be the vehicle-side controller in the vehicle.

[0127] In this application embodiment, the fault detection device may include servers, cloud, core network, etc. The specific fault detection device can be determined according to the actual situation, and this application embodiment does not limit it.

[0128] For example, the fault detection device can be a fault tree entry and analysis system set up in the cloud.

[0129] In this embodiment, the fault detection code can be C language code, Java language code, or other encoding formats. The specific format can be determined based on the executable code format of the device under test, and this embodiment does not limit it.

[0130] In this embodiment, a communication link is established between the fault detection device and the device under test, allowing the fault detection device to transmit information with the device under test via the communication link. That is, the device under test can receive fault detection codes sent by the fault detection device through this communication link.

[0131] In this application embodiment, the specific way in which the device under test receives the fault detection code sent by the fault detection device can be determined according to the actual situation, and this application embodiment does not limit it.

[0132] In this embodiment of the application, if the fault detection device is a fault tree entry and analysis system set in the cloud, and the device to be detected is a vehicle-side controller, then the vehicle-side controller receives the fault detection code sent by the fault tree entry and analysis system in the cloud.

[0133] S202. Run the fault detection code and obtain the running results.

[0134] In this embodiment of the application, after the device under test receives the fault detection code sent by the fault detection device, it runs the fault detection code and obtains the running result.

[0135] In this embodiment of the application, the process of running fault detection code on the device under test and obtaining the running result includes: obtaining device status information of the device under test; running fault detection code based on the device status information and obtaining the running result.

[0136] It should be noted that the results are partial information from the target fault tree.

[0137] In this embodiment, the device status information refers to the status of different components in the device under test, including the rotational speed of the motor of the device under test. The specific device status information can be determined according to the actual situation, and this embodiment does not limit it.

[0138] In this embodiment of the application, the device under test can detect the status of its various components to obtain device status information. Alternatively, the device status information of the device under test can be obtained through other means. The specific method of obtaining the device status information of the device under test can be determined according to the actual situation, and this embodiment of the application does not limit it.

[0139] In this embodiment of the application, the process of the device under test running fault detection code based on device status information to obtain the running result includes: during the running of the fault detection code, matching the device status information with the information in the target fault tree to obtain the matched abnormal state and the fault result corresponding to the abnormal state.

[0140] Abnormal states and fault results are identified as operational outcomes.

[0141] In this embodiment of the application, the target fault tree is the logical causal relationship information of the fault of the device under test caused by any abnormality of any component in the device under test. During the execution of the fault detection code, the device status information of the device under test is matched with the target fault tree information to obtain the matching result, which is the running result.

[0142] It should be noted that the results include the device number under test and the time information when the device under test ran the fault detection code.

[0143] S203. Send the operation results to the fault detection device so that the fault detection device can determine the fault detection result based on the operation results.

[0144] In this embodiment of the application, after the device under test runs the fault detection code and obtains the running result, it sends the running result to the fault detection device so that the fault detection device can determine the fault detection result based on the running result.

[0145] In this embodiment, the device under test can send the operation results to the fault detection device through the communication link between the device under test and the fault detection device. The specific method by which the device under test sends the fault detection results to the fault detection device can be determined according to the actual situation, and this embodiment does not limit it.

[0146] It should be noted that if the fault detection device is a fault tree entry and analysis system set up in the cloud, and the device to be tested is a vehicle-side controller, then the vehicle-side controller sends the operation results to the fault tree entry and analysis system in the cloud, so that the fault tree entry and analysis system in the cloud can determine the fault detection result based on the operation results.

[0147] For example, such as Figure 6The system block diagram of the fault detection method shown includes a fault detection device (a cloud-based fault tree input and analysis system) and the device under test (a fault tree running system (i.e., the vehicle-side ECU)). Upon receiving the target fault tree from the device under test, the fault detection device generates a fault detection code corresponding to the target fault tree and then sends the fault detection code to the device under test (the fault tree is sent to the vehicle-side ECU). Upon receiving the fault detection code from the fault detection device, the device under test runs the fault detection code, obtains the running result, and then sends the running result back to the fault detection device (the fault tree running result is output and reported), so that the fault detection device can determine the fault detection result based on the running result.

[0148] Understandably, when the device under test receives a fault detection code, it can obtain the running result by running the fault detection code, and then send the running result to the fault detection device so that the fault detection device can determine the fault detection result of the device under test based on the running result. This eliminates the need for manual fault location and improves the efficiency of fault detection of the device under test.

[0149] Based on the same inventive concept as the above-mentioned fault detection method, this application provides a fault detection device 1, corresponding to a fault detection method; Figure 7 This is a schematic diagram of the composition of a fault detection device provided in an embodiment of this application. The fault detection device 1 may include:

[0150] The first receiving unit 11 is configured to receive the target fault tree of the device under test; the target fault tree is a fault tree used for fault detection of the device under test; and to receive the running results generated after the device under test runs the fault detection code.

[0151] Generation unit 12 is used to generate fault detection codes corresponding to the target fault tree;

[0152] The first sending unit 13 is used to send the fault detection code to the device under test;

[0153] The determining unit 14 is used to determine the fault detection result of the device under test based on the running results.

[0154] In some embodiments of this application, the apparatus further includes a conversion unit;

[0155] The conversion unit is used to convert the target fault tree into code to obtain the fault detection code; the target fault tree includes the abnormal state of the device under test and the fault result corresponding to the abnormal state.

[0156] In some embodiments of this application, the determining unit 14 is used to determine the running result as the fault detection result, wherein the running result is part of the information in the target fault tree.

[0157] In some embodiments of this application, the device further includes a display unit;

[0158] The display unit is used to display the fault detection results so that maintenance personnel can perform fault repair on the device under test based on the fault detection results.

[0159] In some embodiments of this application, the determining unit 14 is used to determine a fault solution corresponding to the fault detection result;

[0160] The display unit is used to display the fault solution so that fault repair personnel can handle the fault problem of the device under test according to the fault solution.

[0161] It should be noted that, in practical applications, the first receiving unit 11, generating unit 12, first transmitting unit 13, and determining unit 14 can be implemented by the first processor 15 on the fault detection device, specifically by a CPU (Central Processing Unit), MPU (Microprocessor Unit), DSP (Digital Signal Processor), or FPGA (Field Programmable Gate Array), etc.; the data storage can be implemented by the first memory 16 on the fault detection device.

[0162] This application also provides a fault detection device, such as... Figure 8 As shown, the fault detection device includes: a first processor 15, a first memory 16, and a first communication bus 17. The first memory 16 communicates with the first processor 15 through the first communication bus 17. The first memory 16 stores programs executable by the first processor 15. When the program is executed, the fault detection method described above is executed by the first processor 15.

[0163] In practical applications, the first memory 16 can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the first processor 15.

[0164] This application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. The processor of a fault detection device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the fault detection device to perform the fault detection method described in this application.

[0165] This application provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are executed by a processor, they cause the processor to execute the fault detection method provided in this application. For example, ... Figure 1 The fault detection method is shown.

[0166] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEP ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.

[0167] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.

[0168] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files that store one or more modules, subroutines, or code sections).

[0169] Understandably, when the fault detection device receives the target fault tree of the device under test, it generates the corresponding fault detection code and sends the fault detection code to the device under test so that the device under test can run the fault detection code to obtain the running result. Based on the running result, the fault detection result of the device under test can be determined. There is no need for manual fault location, which improves the efficiency of fault detection of the device under test.

[0170] Based on the same inventive concept as the above-mentioned fault detection method, this application provides a device to be tested 2, corresponding to a fault detection method; Figure 9 This is a schematic diagram of the composition of a device to be tested provided in an embodiment of this application. The device to be tested 2 may include:

[0171] The second receiving unit 21 is used to receive the fault detection code sent by the fault detection device;

[0172] The running unit 22 is used to run the fault detection code and obtain the running results;

[0173] The second sending unit 23 is used to send the operation result to the fault detection device so that the fault detection device can determine the fault detection result based on the operation result.

[0174] In some embodiments of this application, the device further includes an acquisition unit;

[0175] The acquisition unit is used to acquire the device status information of the device to be tested;

[0176] The running unit 22 is used to run the fault detection code based on the device status information to obtain the running result, which is a part of the information in the target fault tree.

[0177] In some embodiments of this application, the device further includes a matching unit;

[0178] The matching unit is used to match the device status information with the information in the target fault tree during the execution of the fault detection code, so as to obtain the matched abnormal state and the fault result corresponding to the abnormal state.

[0179] The abnormal state and the fault result are determined as the running result.

[0180] It should be noted that, in practical applications, the second receiving unit 21, the running unit 22, and the second transmitting unit 23 can be implemented by the second processor 24 on the device under test, specifically by a CPU (Central Processing Unit), MPU (Microprocessor Unit), DSP (Digital Signal Processor), or FPGA (Field Programmable Gate Array); the data storage can be implemented by the second memory 25 on the device under test.

[0181] This application also provides a device to be tested, such as... Figure 10 As shown, the device under test includes: a second processor 24, a second memory 25, and a second communication bus 27. The second memory 25 communicates with the second processor 24 through the second communication bus 27. The second memory 25 stores programs executable by the second processor 24. When the program is executed, the fault detection method described above is executed by the second processor 24.

[0182] In practical applications, the second memory 25 can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the second processor 24.

[0183] This application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. The processor of the device under test reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the device under test to perform the fault detection method described in this application.

[0184] This application provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are executed by a processor, they cause the processor to execute the fault detection method provided in this application. For example, ... Figure 5 The fault detection method is shown.

[0185] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEP ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.

[0186] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.

[0187] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files that store one or more modules, subroutines, or code sections).

[0188] Understandably, when the device under test receives a fault detection code, it can obtain the running result by running the fault detection code, and then send the running result to the fault detection device so that the fault detection device can determine the fault detection result of the device under test based on the running result. This eliminates the need for manual fault location and improves the efficiency of fault detection of the device under test.

[0189] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0190] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0191] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0192] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0193] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.

Claims

1. A fault detection method, characterized in that, Applied to a fault detection device, the method includes: Receive the target fault tree of the device under test; the target fault tree is a fault tree used for fault detection of the device under test; Generate the fault detection code corresponding to the target fault tree; Send the fault detection code to the device under test; Receive the execution result generated by the device under test after running the fault detection code; Based on the operational results, the fault detection result of the device under test is determined.

2. The method according to claim 1, characterized in that, The code for generating the fault tree corresponding to the target fault tree includes: The target fault tree is converted into code to obtain the fault detection code; the target fault tree includes the abnormal state of the device under test and the fault result corresponding to the abnormal state.

3. The method according to claim 1, characterized in that, The step of determining the fault detection result of the device under test based on the operation results includes: The running result is determined as the fault detection result, and the running result is a portion of the information in the target fault tree.

4. The method according to claim 1, characterized in that, After determining the fault detection result of the device under test based on the operation results, the method further includes: The fault detection results are displayed so that maintenance personnel can perform fault repair on the equipment under test based on the fault detection results.

5. The method according to claim 1, characterized in that, After determining the fault detection result of the device under test based on the operation results, the method further includes: Determine the fault solution corresponding to the fault detection results; The fault solutions are displayed so that troubleshooting personnel can address the faults in the equipment under test based on the fault solutions.

6. A fault detection method, characterized in that, Applied to the device under test, the method includes: Receive fault detection codes sent by the fault detection device; Run the fault detection code and obtain the results; The operation results are sent to the fault detection device so that the fault detection device can determine the fault detection result based on the operation results.

7. The method according to claim 6, characterized in that, The execution of the fault detection code yields the following results: Obtain the device status information of the device to be tested; The fault detection code is run based on the device status information to obtain the running result, which is a portion of the information in the target fault tree.

8. The method according to claim 7, characterized in that, The process of running the fault detection code based on the device status information to obtain the running results includes: During the execution of the fault detection code, the device status information is matched with the information in the target fault tree to obtain the matched abnormal state and the fault result corresponding to the abnormal state. The abnormal state and the fault result are determined as the running result.

9. A fault detection device, characterized in that, The device includes: The first receiving unit is configured to receive the target fault tree of the device under test; the target fault tree is a fault tree used for fault detection of the device under test; and to receive the running results generated after the device under test runs the fault detection code. A generation unit is used to generate fault detection codes corresponding to the target fault tree; The first sending unit is used to send the fault detection code to the device under test; The determining unit is used to determine the fault detection result of the device under test based on the operation result.

10. A testing device, characterized in that, The device includes: The second receiving unit is used to receive the fault detection code sent by the fault detection device; The execution unit is used to run the fault detection code and obtain the execution result; The second sending unit is used to send the operation result to the fault detection device so that the fault detection device can determine the fault detection result based on the operation result.

11. A fault detection device, characterized in that, The fault detection device includes: The first memory is used to store computer-executable instructions; The first processor, when executing computer-executable instructions stored in the first memory, implements the fault detection method according to any one of claims 1 to 5.

12. A testing device, characterized in that, The device to be tested includes: The second memory is used to store computer-executable instructions; The second processor, when executing computer-executable instructions stored in the second memory, implements the fault detection method according to any one of claims 6 to 8.

13. A computer-readable storage medium storing computer-executable instructions, characterized in that, When the computer-executable instructions are executed by the first processor, they implement the method according to any one of claims 1 to 5; when the computer-executable instructions are executed by the second processor, they implement the method according to any one of claims 6 to 8.

14. A vehicle comprising computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by the second processor, they implement the method of any one of claims 6 to 8.