Vehicle fault detection method, device and equipment, storage medium and vehicle
By obtaining and extracting the fault tree configuration file generated by user needs, generating the fault tree and performing detection, the problem that traditional fault detection methods cannot meet the diverse needs of users is solved, and flexible and accurate fault detection is achieved.
Patent Information
- Application Number
- CN202311253188.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-26
- Publication Date
- 2025-03-28
AI Technical Summary
Traditional vehicle fault detection methods lose their scalability in the pre-design stage and cannot flexibly meet the diverse detection needs of users.
By obtaining the configuration file of the fault tree generated based on user needs, the information of the fault tree, including node information, relationship information and inference information, generate a fault tree, and perform fault detection based on the fault tree.
It realizes flexible generation based on user needs when generating fault tree configuration files, meets different detection needs of different users for different vehicles, and improves the flexibility and accuracy of fault detection.
Smart Images

Figure CN119717753A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle technology, and in particular to a vehicle fault detection method, device, equipment, storage medium and vehicle. Background Art
[0002] With the development of the economy, cars have entered more and more families. In order to ensure the driving safety of vehicles, fault detection needs to be performed frequently. However, the traditional fault detection method often determines the problem to be detected first, and then writes the detection code based on the problem, which makes the fault detection method lose its scalability in the pre-design stage and cannot flexibly meet the diverse needs of users. Therefore, how to perform fault detection on vehicles to meet the diverse detection needs of users is a technical problem that needs to be solved. Summary of the invention
[0003] In order to solve the above technical problems, the present disclosure provides a vehicle fault detection method, device, equipment, storage medium and vehicle.
[0004] A first aspect of an embodiment of the present disclosure provides a vehicle fault detection method, applicable to a vehicle, the method comprising:
[0005] Obtain the configuration file of the fault tree generated based on user requirements;
[0006] Extracting fault tree information from the configuration file, the fault tree information including node information, relationship information and reasoning information of multiple nodes, the node information representing the attributes of events corresponding to the nodes, the relationship information representing the relationships between the nodes, and the reasoning information being information used to represent the event result of the current node obtained by reasoning based on the event results corresponding to the subordinate child nodes;
[0007] Based on the information of the fault tree, a fault tree is generated, wherein the fault tree comprises a root node and at least one child node, the root node corresponds to a fault event, and the child nodes under the root node correspond to cause events that lead to the fault event;
[0008] Fault detection is performed based on the fault tree.
[0009] A second aspect of an embodiment of the present disclosure provides a vehicle fault detection device, applicable to a vehicle, the device comprising:
[0010] An acquisition module is used to acquire a configuration file of a fault tree generated based on user requirements;
[0011] An extraction module, used to extract fault tree information from the configuration file, wherein the fault tree information includes node information, relationship information and reasoning information of multiple nodes, wherein the node information represents the attributes of the event corresponding to the node, the relationship information represents the relationship between the nodes, and the reasoning information is information used to represent the event result of the current node inferred from the event result corresponding to the subordinate child node;
[0012] A generating module, configured to generate a fault tree based on the information of the fault tree, wherein the fault tree comprises a root node and at least one child node, wherein the root node corresponds to a fault event, and the child nodes under the root node correspond to cause events leading to the fault event;
[0013] A detection module is used to perform fault detection based on the fault tree.
[0014] A third aspect of an embodiment of the present disclosure provides a computer device, comprising a memory and a processor, and a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, the vehicle fault detection method as described in the first aspect above is implemented.
[0015] A fourth aspect of an embodiment of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the vehicle fault detection method as described in the first aspect above is implemented.
[0016] The fifth aspect of an embodiment of the present disclosure provides a vehicle, comprising a memory and a processor, and a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, the vehicle fault detection method as described in the first aspect above is implemented.
[0017] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0018] In the vehicle fault detection method, device, equipment, storage medium and vehicle provided by the embodiments of the present disclosure, by obtaining a configuration file of a fault tree generated based on user needs, the information of the fault tree is extracted from the configuration file, the information of the fault tree includes node information, relationship information and reasoning information of multiple nodes, the node information represents the attributes of the event corresponding to the node, the relationship information represents the relationship between each node, and the reasoning information is information used to represent the event result of the current node inferred from the event result corresponding to the subordinate sub-node. Based on the information of the fault tree, a fault tree is generated, the fault tree includes a root node and at least one sub-node, the root node corresponds to the fault event, and the sub-nodes under the root node correspond to the cause events that cause the fault event. Fault detection is performed based on the fault tree, and when generating the fault tree configuration file, the configuration file can be flexibly generated based on user needs, and then a fault tree that meets the user needs is deployed on the vehicle, and vehicle detection is performed based on the fault tree, so as to perform targeted detection on different fault problems that may exist in different vehicles, so that the fault detection method is more flexible and changeable, and meets the different detection needs of different users for different vehicles, and improves the user experience while ensuring driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 is a flow chart of a vehicle fault detection method provided by an embodiment of the present disclosure;
[0022] Figure 2 is a flow chart of a method for extracting fault tree information provided by an embodiment of the present disclosure;
[0023] Figure 3 is a flow chart of a method for generating a fault tree provided by an embodiment of the present disclosure;
[0024] Figure 4 is a flow chart of a fault detection method provided by an embodiment of the present disclosure;
[0025] Figure 5 is a structural schematic diagram of a vehicle fault detection device provided by an embodiment of the present disclosure;
[0026] Figure 6It is a structural diagram of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0030] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0031] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0032] Figure 1 is a flow chart of a vehicle fault detection method provided by an embodiment of the present disclosure, and the method can be executed by a vehicle fault detection device. Figure 1 As shown, the vehicle fault detection method provided in this embodiment includes the following steps:
[0033] S101. Obtain a configuration file of a fault tree generated based on user requirements.
[0034] The fault tree in the embodiment of the present disclosure may be understood as a file stored in a tree structure, and whether there is a fault event of the root node is deduced based on the tree structure. One fault tree may correspond to one fault event.
[0035] The configuration file in the embodiment of the present disclosure can be understood as a configuration file written in Extensible Markup Language (XML) or JavaScript Object Notation (JSON) format, and the configuration file records the information of each node in the fault tree.
[0036] In the disclosed embodiment, the vehicle fault detection device can obtain a configuration file of a fault tree generated based on user needs. Specifically, it can obtain a configuration file of a fault tree generated based on the needs of the vehicle owner user and used to detect fault problems that the vehicle owner user is concerned about. For example, the fault problems may be loud vehicle noise, black smoke coming out of the exhaust pipe, and the engine temperature suddenly becoming too high during operation, etc., which are not limited here.
[0037] In an exemplary implementation of the embodiment of the present disclosure, after sending the user demand to the cloud server, the vehicle fault detection device may receive a configuration file of a fault tree generated based on the user demand and sent by the cloud server.
[0038] In an exemplary implementation of the disclosed embodiment, the vehicle fault detection device may receive a configuration file of a fault tree generated based on user needs and pushed to the vehicle during a coverage update process when the vehicle system performs a coverage update operation.
[0039] In the disclosed embodiment, the configuration file of the fault tree may be written by a vehicle detection expert based on his own experience. For different user requirements of user A for fault event 1 and user B for fault event 2, if both fault event 1 and fault event 2 need to detect cause event 3, and the cause events corresponding to the sub-nodes under cause event 3 are fixed, cause event 3 and the cause events corresponding to its subordinate sub-nodes can be reused in the detection of fault event 1 and fault event 2 without rewriting all the configuration files, thereby making the vehicle fault detection method scalable.
[0040] S102. Extracting fault tree information from a configuration file, the fault tree information includes node information, relationship information, and reasoning information of multiple nodes. The node information represents the attributes of the event corresponding to the node, the relationship information represents the relationship between each node, and the reasoning information is information used to represent the event result of the current node inferred from the event result corresponding to the subordinate child node.
[0041] The node information in the embodiments of the present disclosure can be understood as information used to characterize the attributes of the event corresponding to the node. For example, the node information may include the event identifier (Identity document, ID) of the event corresponding to the node, the event name, the event result, the node type (root node, child node or leaf node), etc., which is not limited here.
[0042] The relationship information in the embodiments of the present disclosure may be understood as the connection relationship and subordinate relationship between the nodes. For example, the relationship information may include the location of the node, the number of subordinate child nodes, and the specific subordinate child nodes, etc., which are not limited here.
[0043] The reasoning information in the disclosed embodiment can be understood as information used to infer the event results of the current node based on the event results corresponding to the subordinate sub-nodes. By way of example, the reasoning information may include the event attribution domain (i.e., the vehicle parts corresponding to the event), calculation methods, reasoning logic, etc., which are not limited here.
[0044] In the disclosed embodiment, the vehicle fault detection device can extract information of each fault tree from the configuration file, and specifically can extract node information, relationship information and reasoning information corresponding to each of the multiple nodes included in the fault tree.
[0045] In an exemplary implementation of the embodiment of the present disclosure, the vehicle fault detection device may sequentially extract node information, relationship information, and reasoning information of multiple nodes from the configuration file based on a preset configuration file writing order.
[0046] S103. Generate a fault tree based on the fault tree information. The fault tree includes a root node and at least one child node. The root node corresponds to a fault event, and the child nodes under the root node correspond to cause events that lead to the fault event.
[0047] In an embodiment of the present disclosure, a fault tree may include a root node for characterizing a fault event of a target detection, and child nodes of different levels under the root node, each child node corresponding to a cause event, and the cause event corresponding to each child node can directly affect the cause event corresponding to its upper parent node. For a child node directly connected to the root node, the cause event corresponding to the child node can directly affect the fault event corresponding to the root node.
[0048] In the disclosed embodiment, the vehicle fault detection device can generate a fault tree including a root node and at least one child node after extracting the fault tree information from the configuration file, wherein the root node corresponds to a fault event, and the child nodes under the root node correspond to the cause events that caused the fault event corresponding to the root node to occur.
[0049] In an exemplary implementation of the disclosed embodiment, the vehicle fault detection device can determine the information of each node itself and the connection relationship between each node based on the node information and relationship information of each node, establish a tree structure, and then determine the specific reasoning method for inferring the event results of the upper parent node based on the event results of the subordinate child nodes based on the reasoning information, add it to the tree structure, and generate a fault tree.
[0050] S104. Perform fault detection based on the fault tree.
[0051] In the disclosed embodiment, the vehicle fault detection device can perform fault detection on the vehicle based on the fault tree after generating the fault tree. Specifically, it can detect whether the cause events corresponding to each sub-node in the fault tree have occurred, and then infer whether the fault event corresponding to the root node has occurred, thereby realizing fault detection of the vehicle.
[0052] In an exemplary implementation of the disclosed embodiment, a vehicle fault detection device may generate a fault detection execution sequence table based on a fault tree, periodically traverse the status files of various vehicle components according to the fault detection execution sequence table, fill the traversal results into the fault tree, and deduce whether a fault event corresponding to the root node occurs based on the fault tree.
[0053] The disclosed embodiment obtains a configuration file of a fault tree generated based on user needs, extracts information of the fault tree from the configuration file, the information of the fault tree includes node information, relationship information and reasoning information of multiple nodes, the node information represents the attribute of the event corresponding to the node, the relationship information represents the relationship between each node, and the reasoning information is information used to represent the event result of the current node inferred according to the event result corresponding to the subordinate sub-node. Based on the information of the fault tree, a fault tree is generated, the fault tree includes a root node and at least one sub-node, the root node corresponds to the fault event, and the sub-nodes under the root node correspond to the cause events that cause the fault event. Fault detection is performed based on the fault tree, and when generating the fault tree configuration file, the configuration file can be flexibly generated based on user needs, and then a fault tree that meets the user needs is deployed on the vehicle, and vehicle detection is performed based on the fault tree, so as to perform targeted detection on different fault problems that may exist in different vehicles, so that the fault detection method is more flexible and changeable, and meets the different detection needs of different users for different vehicles, and improves the user experience while ensuring driving safety.
[0054] Figure 2 is a flow chart of a method for extracting fault tree information provided by an embodiment of the present disclosure, such as Figure 2 As shown, based on the above embodiment, the fault tree information can be extracted by the following method.
[0055] S201: Perform keyword detection on the configuration file based on preset node keywords, relationship keywords and reasoning keywords.
[0056] In the disclosed embodiment, when extracting fault tree information from a configuration file, the vehicle fault detection device may first obtain pre-stored node keywords, relationship keywords, and reasoning keywords, and then detect whether these keywords exist in the configuration file, and then determine which node keywords, relationship keywords, and reasoning keywords the configuration file contains and the position of each keyword in the configuration file.
[0057] In an exemplary implementation of the disclosed embodiment, the vehicle fault detection device may first perform word segmentation on the content of the configuration file based on the writing rules of the configuration file, such as specific punctuation marks, spaces, line breaks, etc. contained in the configuration file, when performing keyword detection on the configuration file based on preset node keywords, relationship keywords, and reasoning keywords, and then perform keyword detection on the word segmentation result to determine which node keywords, relationship keywords, and reasoning keywords the configuration file contains and the position of each keyword in the configuration file.
[0058] S202: Extract node information, relationship information and reasoning information corresponding to the node keyword, relationship keyword and reasoning keyword from the configuration file respectively.
[0059] In the disclosed embodiment, the vehicle fault detection device can extract the corresponding node information before and after the node keywords, extract the corresponding relationship information before and after the relationship keywords, and extract the corresponding reasoning information before and after the reasoning keywords, after determining which node keywords, relationship keywords and reasoning keywords the configuration file contains and the position of each keyword in the configuration file.
[0060] In an exemplary implementation of the disclosed embodiment, the vehicle fault detection device can determine which node keywords, relationship keywords and inference keywords the configuration file contains and the position of each keyword in the configuration file, and then determine the position of the corresponding information relative to the keyword according to the grammatical format of each keyword, such as extracting the corresponding node information "Light1" after the node keyword "EventID:".
[0061] The disclosed embodiment performs keyword detection on the configuration file based on preset node keywords, relationship keywords and reasoning keywords, and extracts node information, relationship information and reasoning information corresponding to the node keywords, relationship keywords and reasoning keywords from the configuration file respectively, so as to accurately obtain the information of the fault tree from the configuration file, and further improve the accuracy of the fault tree generation when the fault tree is subsequently generated based on the fault tree information.
[0062] Figure 3is a flow chart of a method for generating a fault tree provided by an embodiment of the present disclosure, such as Figure 3 As shown, based on the above embodiment, a fault tree can be generated by the following method.
[0063] S301 : Generate nodes to be associated based on node information and reasoning information of each node.
[0064] In the disclosed embodiment, after obtaining the node information, relationship information and reasoning information of each node in the fault tree, the vehicle fault detection device can pre-generate nodes to be associated based on the node information and reasoning information corresponding to each node, and each node contains the node information and reasoning information of the current node.
[0065] S302: Determine the relationship information corresponding to each node to be associated.
[0066] In the disclosed embodiment, the vehicle fault detection device may determine the relationship information corresponding to each node to be associated after generating the nodes to be associated.
[0067] In an exemplary implementation of the disclosed embodiment, the vehicle fault detection device may determine the relationship information corresponding to each node to be associated based on the ID of each node to be associated and the ID of each node corresponding to the relationship information.
[0068] S303 : Based on the relationship information corresponding to each node to be associated, associate the nodes to be associated to obtain a fault tree.
[0069] In the disclosed embodiment, the vehicle fault detection device may associate the nodes to be associated after determining the relationship information corresponding to each node to be associated, determine the connection relationship and subordinate relationship between each node to be associated, and establish a fault tree.
[0070] In an exemplary implementation of the disclosed embodiment, when the relationship information includes the location of the node, the number of subordinate child nodes and the specific subordinate child nodes, the vehicle fault detection device can determine the subordinate nodes to be associated of the current node to be associated based on the number of subordinate child nodes of the current node to be associated and the specific subordinate child nodes, and then locate the subordinate nodes to be associated of the current node to be associated based on the locations of the subordinate child nodes, thereby associating the current node to be associated with the subordinate nodes to be associated, and so on, until all nodes to be associated are associated.
[0071] The disclosed embodiment generates nodes to be associated based on the node information and the reasoning information of each node, determines the relationship information corresponding to each of the nodes to be associated, associates the nodes to be associated based on the relationship information corresponding to each of the nodes to be associated, and obtains the fault tree. The nodes to be associated are first generated, and then associated with the nodes to be associated, thereby completing the reconstruction of the fault tree and avoiding missing nodes or generating errors in the process of generating the fault tree.
[0072] In some embodiments of the present disclosure, the vehicle fault detection device may initialize the results of the fault events and cause events corresponding to the root node and the child nodes.
[0073] Specifically, the data type representing the results of fault events and cause events can be determined as Boolean data, and after the fault tree is generated, the data representing the event results corresponding to each node is initialized and set to an initial value of zero. In the subsequent vehicle detection process based on the fault tree, when detecting or inferring the occurrence of a fault event or cause event, the value of the event result corresponding to the node is set to one, which is convenient for detection and reasoning based on the fault tree.
[0074] Figure 4 is a flow chart of a fault detection method provided by an embodiment of the present disclosure, such as Figure 4 As shown, based on the above embodiments, fault detection can be performed by the following method.
[0075] S401: Obtain an event result of a cause event corresponding to a leaf node in a fault tree, where the leaf node is a child node at the end of the fault tree.
[0076] The leaf node in the embodiment of the present disclosure can be understood as a sub-node located at the end of the fault tree, and the event result of the cause event corresponding to the leaf node can be directly obtained through a sensor or an electronic control unit (Electronic Control Unit, ECU).
[0077] In the disclosed embodiment, the vehicle fault detection device may obtain the event result of the cause event corresponding to the leaf node at the end of the fault tree in the fault tree through a sensor or an ECU.
[0078] S402. Based on the event results of the cause events corresponding to each leaf node and the reasoning information of the parent node of each leaf node, determine the event result of the cause event corresponding to the parent node, and so on, until the event result of the fault event corresponding to the root node is determined.
[0079] In the disclosed embodiment, the vehicle fault detection device can determine the parent node of each leaf node after determining the event result of the cause event corresponding to each leaf node, and obtain the reasoning information of the parent node of the leaf node, combine the event result of the leaf node and the reasoning information of the parent node, determine the event result of the cause event corresponding to the parent node, and then determine the parent node of the previous level corresponding to the parent node, combine the event result of the parent node and the reasoning information of the parent node of the previous level, determine the event result of the cause event corresponding to the parent node of the previous level, and so on, until the event result of the fault event corresponding to the root node is determined.
[0080] For example, the child nodes under the root node A are node B and node C, node B is a leaf node located at the end of the fault tree, and the child nodes under node C are node D and node E, both of which are leaf nodes located at the end of the fault tree. When the vehicle fault detection device detects the fault event corresponding to the root node A based on the fault tree, it can first determine the event results of the cause events corresponding to the leaf nodes B, D, and E, and then determine the event results of the cause events corresponding to node C in combination with the event results corresponding to nodes D and E and the reasoning information of node C, and determine the event results of the fault event corresponding to the root node A in combination with the event results corresponding to nodes B and C and the reasoning information of the root node A.
[0081] The disclosed embodiment obtains the event results of the cause events corresponding to the leaf nodes in the fault tree, where the leaf nodes are child nodes located at the end of the fault tree. Based on the event results of the cause events corresponding to each leaf node and the reasoning information of the parent node of each leaf node, the event results of the cause events corresponding to the parent node are determined, and so on, until the event result of the fault event corresponding to the root node is determined. The fault tree can be deduced layer by layer to determine whether a fault event has occurred, and at the same time, various cause events that have led to the occurrence of the fault event can be clarified to facilitate subsequent troubleshooting of the fault.
[0082] In some embodiments of the present disclosure, the reasoning information includes a calculation method and / or reasoning logic, and the reasoning information is used to calculate and / or infer the event result corresponding to the current node based on the event results corresponding to the child nodes under the current node.
[0083] Specifically, the vehicle fault detection device can use the calculation method corresponding to the current node to calculate the event results corresponding to the sub-nodes under the current node, for example, calculate the sum of the first driving force and the second driving force, and determine the total driving force as the event result corresponding to the current node. It can also use the reasoning logic corresponding to the current node to infer the event results corresponding to the sub-nodes under the current node. For example, if the first headlight is turned on and the second headlight is turned on, then the event result corresponding to the current node is determined to be that all the lights are turned on. The calculation method and reasoning logic corresponding to the current node can also be used to determine the event result of the current node. For example, the sum of the first driving force and the second driving force is calculated, and then the sum of the driving force is compared with a preset threshold. If the sum of the driving force is greater than the preset threshold, it is determined that the event result corresponding to the current node is that the total driving force is too large, and then reasoning is performed layer by layer to obtain the event result of the fault event corresponding to the root node.
[0084] Figure 5 is a structural diagram of a vehicle fault detection device provided by an embodiment of the present disclosure, such as Figure 5 As shown, the vehicle fault detection device 500 is applicable to a vehicle, including: an acquisition module 510, an extraction module 520, a generation module 530, and a detection module 540, wherein the acquisition module 510 is used to obtain a configuration file of a fault tree generated based on user needs; the extraction module 520 is used to extract information of the fault tree from the configuration file, the information of the fault tree includes node information, relationship information and reasoning information of multiple nodes, the node information represents the attributes of the event corresponding to the node, the relationship information represents the relationship between each node, and the reasoning information is information used to represent the event result of the current node obtained by reasoning according to the event result corresponding to the subordinate sub-node; the generation module 530 is used to generate a fault tree based on the information of the fault tree, the fault tree includes a root node and at least one sub-node, the root node corresponds to the fault event, and the sub-nodes under the root node correspond to the cause event that causes the fault event; the detection module 540 is used to perform fault detection based on the fault tree.
[0085] Optionally, the extraction module 520 includes: a detection unit, used to perform keyword detection on the configuration file based on preset node keywords, relationship keywords and reasoning keywords; an extraction unit, used to extract node information, relationship information and reasoning information corresponding to the node keywords, relationship keywords and reasoning keywords from the configuration file respectively.
[0086] Optionally, the generation module 530 includes: a generation unit, used to generate nodes to be associated based on the node information and reasoning information of each node; a determination unit, used to determine the relationship information corresponding to each node to be associated; and an association unit, used to associate the nodes to be associated based on the relationship information corresponding to each node to be associated to obtain a fault tree.
[0087] Optionally, the vehicle fault detection device 500 further includes: an initialization module, which is used to initialize the results of the fault events and cause events corresponding to the root node and the child nodes.
[0088] Optionally, the detection module 540 includes: an acquisition unit, used to acquire the event results of the cause events corresponding to the leaf nodes in the fault tree, the leaf nodes being the child nodes located at the end of the fault tree; a derivation unit, used to determine the event results of the cause events corresponding to the parent nodes based on the event results of the cause events corresponding to each leaf node and the reasoning information of the parent nodes of each leaf node, and so on, until the event results of the fault event corresponding to the root node are determined.
[0089] Optionally, the reasoning information includes a calculation method and / or reasoning logic, and the reasoning information is used to calculate and / or infer the event result corresponding to the current node based on the event result corresponding to the child nodes under the current node.
[0090] The vehicle fault detection device provided in this embodiment can execute the method described in any of the above embodiments, and its execution method and beneficial effects are similar and will not be repeated here.
[0091] Figure 6 It is a structural diagram of a computer device provided in an embodiment of the present disclosure.
[0092] like Figure 6 As shown, the computer device may include a processor 610 and a memory 620 storing computer program instructions.
[0093] Specifically, the processor 610 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0094] The memory 620 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 620 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 620 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 620 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 620 is a non-volatile solid-state memory. In a particular embodiment, the memory 620 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.
[0095] The processor 610 performs the steps of the vehicle fault detection method provided in the embodiment of the present disclosure by reading and executing the computer program instructions stored in the memory 620.
[0096] In one example, the computer device may further include a transceiver 630 and a bus 640. Figure 6 As shown, the processor 610, the memory 620 and the transceiver 630 are connected via a bus 640 and communicate with each other.
[0097] The bus 640 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 640 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0098] The embodiments of the present disclosure also provide a computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the vehicle fault detection method provided by the embodiments of the present disclosure.
[0099] The above-mentioned storage medium may, for example, include a memory 620 of computer program instructions, and the above-mentioned instructions may be executed by the processor 610 of the vehicle fault detection device to complete the vehicle fault detection method provided by the embodiment of the present disclosure. Optionally, the storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact DiscROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc. The above-mentioned computer program may be written in any combination of one or more programming languages to perform the program code of the operation of the embodiment of the present disclosure, and the programming language includes an object-oriented programming language, such as Java, C++, etc., and also includes a conventional procedural programming language, such as "C" language or a similar programming language. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device, partially on the remote computing device, or completely on the remote computing device or server.
[0100] An embodiment of the present disclosure also provides a vehicle, which includes a memory, a processor, and a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, the various processes and effects in the above-mentioned embodiments of the present disclosure can be implemented, which will not be elaborated here.
[0101] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be 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 the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A vehicle fault detection method, characterized in that: The method is applicable to a vehicle, and comprises: Obtain the configuration file of the fault tree generated based on user requirements; Extracting fault tree information from the configuration file, the fault tree information including node information, relationship information and reasoning information of multiple nodes, the node information representing the attributes of events corresponding to the nodes, the relationship information representing the relationships between the nodes, and the reasoning information being information used to represent the event result of the current node obtained by reasoning based on the event results corresponding to the subordinate child nodes; Based on the information of the fault tree, a fault tree is generated, wherein the fault tree comprises a root node and at least one child node, the root node corresponds to a fault event, and the child nodes under the root node correspond to cause events that lead to the fault event; Fault detection is performed based on the fault tree.
2. The method according to claim 1, characterized in that: The extracting fault tree information from the configuration file includes: Based on preset node keywords, relationship keywords and reasoning keywords, keyword detection is performed on the configuration file; Node information, relationship information and the reasoning information corresponding to the node keyword, relationship keyword and reasoning keyword are respectively extracted from the configuration file.
3. The method according to claim 1, characterized in that: The generating a fault tree based on the information of the fault tree comprises: Generate a node to be associated based on the node information and the reasoning information of each node; Determining the relationship information corresponding to each of the nodes to be associated; Based on the relationship information corresponding to each of the nodes to be associated, the nodes to be associated are associated to obtain the fault tree.
4. The method according to claim 1, characterized in that After generating the fault tree based on the information of the fault tree, the method further includes: Initialize the results of the fault event and the cause event corresponding to the root node and the child node.
5. The method according to claim 1, characterized in that The performing fault detection based on the fault tree comprises: Obtaining an event result of a cause event corresponding to a leaf node in the fault tree, wherein the leaf node is a child node located at the end of the fault tree; Based on the event results of the cause events corresponding to each of the leaf nodes and the reasoning information of the parent nodes of each of the leaf nodes, the event results of the cause events corresponding to the parent nodes are determined, and so on, until the event results of the fault events corresponding to the root node are determined.
6. The method according to claim 5, characterized in that The reasoning information includes a calculation method and / or reasoning logic, and the reasoning information is used to calculate and / or infer the event result corresponding to the current node based on the event result corresponding to the child node under the current node.
7. A vehicle fault detection device, characterized in that: The device is applicable to a vehicle, and comprises: An acquisition module is used to acquire a configuration file of a fault tree generated based on user requirements; An extraction module, used to extract fault tree information from the configuration file, wherein the fault tree information includes node information, relationship information and reasoning information of multiple nodes, wherein the node information represents the attributes of the event corresponding to the node, the relationship information represents the relationship between the nodes, and the reasoning information is information used to represent the event result of the current node inferred from the event result corresponding to the subordinate child node; A generating module, configured to generate a fault tree based on the information of the fault tree, wherein the fault tree comprises a root node and at least one child node, wherein the root node corresponds to a fault event, and the child nodes under the root node correspond to cause events leading to the fault event; A detection module is used to perform fault detection based on the fault tree.
8. A computer device, characterized in that: include: Memory; processor; and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A vehicle, characterized in that: include: Memory; processor; and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 6.