A fault online diagnosis method and device
By acquiring and mapping fault status data of vehicle components to generate a fault list signal, the problem of not being able to locate faults in real time in existing technologies is solved, enabling rapid fault investigation and efficient diagnosis.
Patent Information
- Application Number
- CN202210799346.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-06
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-07-06
AI Technical Summary
Existing fault diagnosis methods cannot achieve real-time fault location and have insufficient online diagnostic capabilities, failing to provide reliable fault information for field engineers.
By acquiring fault status data of vehicle components and performing mapping processing, a fault list signal is generated, including multiple data segments, for real-time output of fault information, supporting field engineers to quickly locate faults.
It enables real-time fault location and rapid troubleshooting, improving fault diagnosis efficiency.
Smart Images

Figure CN115167354B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software technology, and in particular to an online fault diagnosis method and apparatus. Background Technology
[0002] Vehicle diagnostics are generally divided into online and offline diagnostics. Online diagnostics, in a typical sense, refers to the detection, recording, and storage of relevant information by the built-in fault diagnosis module of software during component operation. Offline diagnostics, on the other hand, involves using external diagnostic equipment to read the fault information stored by each component during online operation via diagnostic protocols, thereby achieving fault location and cause identification. Both methods are relatively limited in vehicle fault diagnosis, not only in the limited amount of stored information but also in their lack of online diagnostic capabilities, making them very passive. They cannot provide reliable fault information for field engineers to locate the fault area and faulty components in real time.
[0003] Therefore, current fault diagnosis methods cannot achieve real-time fault location. Summary of the Invention
[0004] In view of the above problems, the present invention proposes an online fault diagnosis method and device, which can acquire and map out fault status data of vehicle parts, enabling on-site engineers to locate faults in real time, with good timeliness and improved fault diagnosis efficiency.
[0005] In a first aspect, this application provides the following technical solution through an embodiment:
[0006] An online fault diagnosis method includes: acquiring fault status data of multiple faults defined for vehicle components; the fault status data indicating whether the corresponding fault has occurred; mapping the multiple fault status data to obtain a fault list signal; the fault list signal including multiple data segments, each data segment corresponding to at least one fault status, the fault status indicating whether the corresponding fault has occurred; and outputting a target fault list signal from the multiple fault list signals based on the fault list signal.
[0007] Optionally, before mapping the multiple fault status data to obtain the fault list signal, the method further includes:
[0008] Obtain the total number of defined faults; based on the total number of faults, determine the data segment length of the fault list signal.
[0009] Optionally, determining the data segment length of the fault list signal based on the total number of faults includes:
[0010] When the total number of faults is less than a preset threshold, the length of the data segment is determined to be 1 bit; when the total number of faults is not less than the preset threshold, the length of the data segment is determined to be log2(N)+1 bits; where N is the defined total number of faults, and the value of the data segment is used to characterize whether the corresponding fault has occurred.
[0011] Optionally, when the data segment length is determined to be 1 bit, the step of mapping based on the multiple fault status data to obtain a fault list signal includes:
[0012] The fault status data indicating that a fault has occurred is mapped to 1, and the fault status data indicating that a fault has not occurred is mapped to 0, thereby obtaining the fault list signal.
[0013] Optionally, when the data segment length is determined to be log2(N)+1 bits, the step of outputting a target fault list signal from among multiple fault list signals based on the fault list signal includes:
[0014] Based on the faulty signals in the fault list signals, determine the target fault list signal; output the target fault list signal.
[0015] Optionally, before mapping based on the plurality of fault status data to obtain the fault list signal, the process includes: configuring a fault priority for each defined fault; and mapping based on the plurality of fault status data to obtain the fault list signal includes: mapping the plurality of fault status data based on the principle that a higher fault priority results in a higher data segment after mapping, thereby obtaining the fault list signal.
[0016] Optionally, the step of mapping the multiple fault status data to obtain a fault list signal includes:
[0017] Based on the severity and frequency of each of the plurality of faults, a target fault is determined from the plurality of faults; the fault status data corresponding to the target fault is mapped to the fault list signal.
[0018] Optionally, before outputting the target fault list signal from the plurality of fault list signals based on the fault list signal, the method further includes: defining a fault protection measure for each of the plurality of faults, wherein the fault protection measure corresponds to a fault protection code; after mapping the plurality of fault state data to obtain the fault list signal, the method further includes: matching the value of each data segment in the fault list signal with the corresponding fault protection code to obtain a fault protection signal; and outputting the fault protection signal based on the fault list signal.
[0019] Secondly, based on the same inventive concept, this application provides the following technical solution through an embodiment:
[0020] An online fault diagnosis device, comprising:
[0021] An acquisition module is used to acquire fault status data of multiple faults defined for vehicle components; the fault status data indicates whether the corresponding fault has occurred; a mapping module is used to map based on the multiple fault status data to obtain a fault list signal; the fault list signal includes multiple data segments, each data segment corresponds to at least one fault status, and the fault status indicates whether the corresponding fault has occurred; an output module is used to output a target fault list signal from the multiple fault list signals based on the fault list signal.
[0022] Thirdly, based on the same inventive concept, this application provides the following technical solution through an embodiment:
[0023] An electronic device includes a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the online fault diagnosis method to perform the steps of any of the methods described in the first aspect above.
[0024] This invention provides an online fault diagnosis method and apparatus, which acquires fault status data for multiple faults defined for vehicle components. This fault status data indicates whether the corresponding fault is currently occurring. Next, a fault list signal is obtained by mapping the multiple fault status data. This fault list signal includes multiple data segments, with at least one data segment corresponding to each fault. Based on the fault list signal, a target fault list signal is output from the multiple fault list signals. The fault list signal can completely display any defined fault currently occurring in the vehicle component. Finally, it can be output as needed, allowing field engineers to locate faults in real time, providing good timeliness and improving fault diagnosis efficiency.
[0025] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:
[0027] Figure 1 A flowchart of an online fault diagnosis method according to an embodiment of the present invention is shown;
[0028] Figure 2 A schematic diagram illustrating the architectural relationship between the bus signal module and the fault management module in an embodiment of the present invention is shown.
[0029] Figure 3 This diagram illustrates the first mapping principle for obtaining the fault list signal in an embodiment of the present invention.
[0030] Figure 4 This invention illustrates a second mapping principle for obtaining fault list signals in an embodiment of the present invention.
[0031] Figure 5 This invention illustrates a third mapping principle for obtaining fault list signals in an embodiment of the present invention.
[0032] Figure 6 A schematic diagram of an online fault diagnosis device according to an embodiment of the present invention is shown. Detailed Implementation
[0033] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0034] Currently, neither online nor offline vehicle diagnostics can provide engineers with real-time information and data for reference. Online diagnostics relies solely on the vehicle's built-in software fault diagnosis module to detect faults and record and store relevant information. This significantly limits the diagnostic effectiveness of online diagnostics and hinders flexible fault investigation and real-time fault viewing, resulting in low proactive fault investigation. To address this, this invention provides an online fault diagnosis method and device that can be integrated into the software of vehicle components. It maps and outputs fault status data of vehicle components in real time, thereby assisting on-site engineers in quickly locating fault areas and components, shortening the time required to investigate the cause of the fault, and thus improving fault diagnosis efficiency. The following specific embodiments will provide a more detailed explanation and illustration of the concept of this invention.
[0035] Please see Figure 1 In one embodiment of the present invention, an online fault diagnosis method is provided, the method comprising:
[0036] Step S10: Obtain fault status data for multiple faults defined for vehicle components; the fault status data indicates whether the corresponding fault has occurred at present;
[0037] Step S20: Map the multiple fault status data to obtain a fault list signal; the fault list signal includes multiple data segments, each data segment corresponds to at least one fault status, and the fault status indicates whether the corresponding fault has occurred;
[0038] Step S30: Based on the fault list signal, output the target fault list signal from the plurality of fault list signals.
[0039] In this embodiment, the fault list signal of vehicle parts can be mapped and output through steps S10-S30 to assist field engineers in quickly locating fault areas and components, shortening the time for troubleshooting fault causes, and thus improving fault diagnosis efficiency.
[0040] Step S10: Obtain fault status data for multiple faults defined for vehicle components; the fault status data indicates whether the corresponding fault has occurred at present.
[0041] In step S10, the faults of vehicle components can be predefined, such as a misaligned steering wheel, insufficient battery power, or a malfunctioning window motor. Of course, the above are merely illustrative definitions; specific definitions can be based on relevant standards or industry-standard methods. The fault status data includes at least the fault and its corresponding fault status, indicating whether the fault has occurred. This fault status data is acquired in real time. It is understood that this method can be built into the bus signal module 10 of the vehicle component software. The fault status data can be obtained in real time by calling the data in the vehicle's fault management module 20 through an API (Application Programming Interface). The architectural relationship between the bus signal module 10 and the fault management module 20 is as follows: Figure 2 As shown.
[0042] In some implementations, when defining faults in vehicle components, corresponding fault protection measures can also be defined for each fault, meaning each defined fault protection measure corresponds to at least one fault. When defining a fault protection measure, a corresponding fault protection code can be matched and stored in the fault management module 20. When the fault list signal is subsequently mapped, the corresponding fault protection code, or fault protection measure signal, can be obtained simultaneously for the mapped fault.
[0043] In some implementations, faults in vehicle components can be classified or configured with corresponding fault priorities and failure levels. Priorities can be defined based on the severity of the fault, and failure levels can include zero-output faults, derating faults, warning faults, etc. Fault priorities can be determined based on the severity of the fault and / or its historical frequency of occurrence; the more severe the fault and the higher its frequency of occurrence, the higher its fault priority.
[0044] Understandably, fault confirmation management, such as fault definition, and fault status management, such as conditional triggering of fault status, can be achieved through the fault management module 20. Fault priority management, such as defining fault priorities, and fault failure level management, such as defining fault failure levels, can also be implemented. Fault protection management, such as defining fault protection measures, and fault locking management, such as locking relevant components when certain faults occur, can also be achieved. Fault freeze management, fault storage management, and so on, are also possible.
[0045] Step S20: Map the multiple fault status data to obtain a fault list signal; the fault list signal includes multiple data segments, each data segment corresponds to at least one fault status, and the fault status indicates whether the corresponding fault has occurred.
[0046] In step S20, the mapped signal, or the signal to be used for output, can be built into the bus signal module 10 of the vehicle component software. In this embodiment, the fault list signal can be designed differently based on the total number of defined faults.
[0047] Understandably, the total number of defined faults can be obtained before step S20; then, based on the total number of faults, the data segment length of the fault list signal is determined. This allows for the expression of the fault list signal using different data segment lengths, enabling a more comprehensive review of fault status when the total number of faults is small, and a more organized and efficient review of fault status when the total number of faults is large, thereby improving fault troubleshooting efficiency.
[0048] In some implementations, when the total number of faults is less than a preset threshold, the data segment length is set to 1 bit. For example, the preset threshold could be 5, 10, 15, etc., and can be related to the size and character size of the display panel used for display after the fault list signal is output. When the display area is large and the character size is small, the threshold can be set larger; conversely, it can be set smaller. This ensures that when the total number of faults is less than the threshold, the fault status can be fully displayed, improving troubleshooting efficiency.
[0049] When the data segment length is determined to be 1 bit, fault status data indicating that a fault has occurred can be mapped to 1 (0x1 in hexadecimal), and fault status data indicating that a fault has not occurred can be mapped to 0 (0x0 in hexadecimal), thus obtaining a fault list signal. In this fault list signal, the position of the data segment represents the defined fault (fault name), and the value of the data segment represents the fault status. That is, when the total number of faults is m bits, the signal length of the fault list signal is also m, such as... Figure 3 As shown, this implements the display of all fault statuses with the shortest data bit width. Additionally, in other implementations, the data length can be set to 2 bits, 3 bits, etc.
[0050] In some implementations, when the total number of faults is not less than a preset threshold, the data segment length is determined to be log2(N) + 1 bits; where N is the total number of defined faults, and the value of the data segment is used to characterize whether the corresponding fault has occurred. In this implementation, due to the large number of faults, it is difficult to achieve comprehensive display and retrieval. Therefore, considering that subsequent signal outputs may only output fault information with higher priority or greater urgency, the design of the data segment value should ensure that each defined fault uniquely corresponds to a data segment value. That is, the value mapped to each fault status data is uniquely represented. Therefore, in this implementation, by designing the data segment length to log2(N) + 1 bits and combining it with Hex encoding, a one-to-one mapping can be achieved. Encoding can also be based on fault priority to ensure that critical faults are displayed first, such as... Figure 4 As shown. For example, when the total number of faults is 255 (i.e., N = 255, using 0x0 to represent no fault), a 1-byte data segment is needed for representation. That is, an 8-bit data segment can uniquely represent whether a particular fault has occurred among the 255 faults. This implementation only needs to read the value of the data segment to know the fault and its status, without needing to consider the position of the bits in the fault list signal. More flexible subsequent output processing is possible. For example, when it is necessary to output K faults for display, only the values of K data segments need to be output. The length of the fault list signal is Klog2(N) + 1 bits, which can effectively save bus resources.
[0051] Furthermore, by employing a data segment length of log2(N) + 1 bits, fault status data can be mapped to the fault list signal in chronological order, eliminating the need to record the fault time separately. This makes it easier to record the order of fault occurrence and saves bus resources. For example, each data segment in the mapped fault list signal can be arranged in chronological order, and only faults that have occurred can be listed, thus preventing faults that have not yet occurred from consuming bus resources.
[0052] Furthermore, during mapping, data segments can be mapped according to fault priority. That is, based on the principle that higher fault priority results in a higher-priority mapped data segment, multiple fault status data can be mapped to obtain a fault list signal; during output display, faults with higher priority can be output first, such as... Figure 5 As shown. For example, if the total number of faults is 255, and at least 4 fault states need to be displayed, a 4-byte fault list signal can be used, designated B4, B3, B2, and B1; that is, among the 255 faults, the highest priority is displayed in the B4 data segment, and the lowest priority is displayed in the B1 data segment. Figure 5 In this code, "H" represents the high four bits, and "L" represents the low four bits. This allows the most important faults to be displayed at the top, improving troubleshooting efficiency.
[0053] Furthermore, to further improve timeliness, reduce bus resource consumption, and ensure that the output fault status can be displayed, target faults can be identified from multiple faults based on the severity and frequency of each fault. The fault status data corresponding to the target fault is then mapped to a fault list signal. For example, multiple faults can be arranged from highest to lowest severity according to a predefined hierarchy, and the top A faults can be selected; multiple faults can be arranged from highest to lowest frequency according to pre-statistically recorded historical occurrences, and the top B faults can be selected. The number of target faults would then be A+B. In this case, the data segment length can be determined based on whether the number of target faults is less than a preset threshold; that is, when the number of target faults is less than the preset threshold, the data segment length is set to 1 bit to ensure comprehensive display of fault status.
[0054] Step S30: Based on the fault list signal, output the target fault list signal from the plurality of fault list signals.
[0055] In step S30, the output target fault list signal can be either the fault list signal itself or a portion of the data segment from the fault list signal; that is, the fault list signal can be further filtered and output for display. The output target fault list signal can be displayed as a code using an external display device. For example, if the data segment length is determined to be 1 bit, the entire fault list signal can be displayed.
[0056] In some implementations, when the data segment length is determined to be log2(N)+1 bits, the target fault list signal can be determined based on the faulty signals in the fault list signal; then, the target fault list signal is output. Since the output fault list signal can represent the fault status of the defined fault, it enables real-time viewing of fault-related signal information in the bus signal module 10 via external devices, improving the efficiency of field system engineers in troubleshooting.
[0057] In some implementations, fault protection measures are defined for each of the multiple faults, and each fault protection measure corresponds to a fault protection code. The value of each data segment in the fault list signal can be matched with the corresponding fault protection code to obtain a fault protection signal. Finally, based on the fault list signal, the fault protection signal is output. In other words, in the bus signal module 10, the fault protection codes that need to be output can form a fault protection signal; simultaneously with the output of the fault list signal, the corresponding fault protection signal is also output for field engineers to refer to and troubleshoot problems, improving troubleshooting efficiency.
[0058] In summary, the online fault diagnosis method provided by this invention involves acquiring fault status data for multiple faults defined for vehicle components. This fault status data indicates whether the corresponding fault has occurred. Next, a fault list signal is obtained by mapping the multiple fault status data. This fault list signal includes multiple data segments, with at least one data segment corresponding to each fault. Based on the fault list signal, a target fault list signal is output from the multiple fault list signals. The fault list signal can completely display any defined fault currently occurring in the vehicle component. Finally, it can be output as needed, allowing field engineers to locate faults in real time, providing good timeliness and improving fault diagnosis efficiency.
[0059] Please see Figure 6 Based on the same inventive concept, another embodiment of the present invention also provides an online fault diagnosis device 300, which includes:
[0060] The acquisition module 301 is used to acquire fault status data of multiple faults defined for vehicle components; the fault status data indicates whether the corresponding fault has occurred; the mapping module 302 is used to map based on the multiple fault status data to obtain a fault list signal; the fault list signal includes multiple data segments, each data segment corresponds to at least one fault status, and the fault status indicates whether the corresponding fault has occurred; the output module 303 is used to output a target fault list signal from the multiple fault list signals based on the fault list signal.
[0061] As an optional implementation, a signal definition module is also included; before mapping based on the plurality of fault state data to obtain the fault list signal, the signal definition module is used to: obtain the total number of defined faults; and determine the data segment length of the fault list signal based on the total number of faults.
[0062] As an optional implementation, the signal definition module is specifically used to: determine the data segment length as 1 bit when the total number of faults is less than a preset number threshold; and determine the data segment length as log2(N)+1 bits when the total number of faults is not less than the preset number threshold; wherein, N is the total number of defined faults, and the value of the data segment is used to characterize whether the corresponding fault has occurred.
[0063] As an optional implementation, when the data segment length is determined to be 1 bit, the mapping module 302 is specifically used to: map the fault status data indicating that a fault has occurred to 1, and map the fault status data indicating that a fault has not occurred to 0, thereby obtaining the fault list signal.
[0064] As an optional implementation, when the length of the data segment is determined to be log2(N)+1 bits, the output module 303 is specifically used to: determine the target fault list signal based on the fault list signal that has a fault; and output the target fault list signal.
[0065] As an optional implementation, a priority definition module is also included; before mapping based on the plurality of fault status data to obtain the fault list signal, the priority definition module is used to: configure a fault priority for each defined fault; the mapping module 302 is specifically used to: map the plurality of fault status data based on the principle that the higher the fault priority, the higher the mapped data segment, to obtain the fault list signal.
[0066] As an optional implementation, the mapping module 302 is specifically used to: determine a target fault from the plurality of faults based on the severity and frequency of occurrence of each fault; and map the fault status data corresponding to the target fault to the fault list signal.
[0067] As an optional implementation, a protection measure definition module is also included. Before outputting a target fault list signal from among the multiple fault list signals based on the fault list signal, the protection measure definition module is further configured to: define a fault protection measure for each of the multiple faults, wherein the fault protection measure corresponds to a fault protection code; the mapping module 302 is further configured to: match the value of each data segment in the fault list signal with the corresponding fault protection code to obtain a fault protection signal; and the output module 303 is further configured to: output the fault protection signal based on the fault list signal.
[0068] It should be noted that the online fault diagnosis device 300 provided in this embodiment of the invention has the same specific implementation and technical effects as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.
[0069] Based on the same inventive concept, another embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory is coupled to the processor and stores instructions. When the instructions are executed by the processor, the electronic device performs the steps of any of the methods described in the foregoing embodiments. It should be noted that in the electronic device provided by the embodiments of the present invention, the specific implementation of each step and the resulting technical effects are the same as in the foregoing method embodiments when the instructions are executed by the processor. For the sake of brevity, any parts not mentioned in the device embodiments can be referred to the corresponding content in the foregoing method embodiments.
[0070] The term "and / or" as used herein is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects are in an "or" relationship; the word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of multiple such elements. This invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims listing several means, several of these means can be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
[0071] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0072] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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 illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0073] 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.
[0074] 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.
[0075] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the invention.
[0076] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. An online fault diagnosis method, embedded in the bus signal module of vehicle component software, wherein fault-related signal information in the bus signal module is viewed in real time via an external device, characterized in that, include: Obtain fault status data for multiple faults defined for vehicle components; The fault status data indicates whether the corresponding fault has occurred at present; Get the total number of defined faults; Based on the total number of faults, determine the data segment length of the fault list signal; When the total number of faults is less than a preset threshold, the length of the data segment is determined to be 1 bit; wherein, the position of the data segment represents the defined fault, and the value of the data segment can represent the fault status; When the total number of faults is not less than a preset threshold, the length of the data segment is determined to be... Bit; where N is the total number of defined faults, the value of the data segment is used to characterize whether the corresponding fault has occurred, and each defined fault uniquely corresponds to the value of a data segment; Mapping the multiple fault status data to obtain a fault list signal includes: determining a target fault from the multiple faults based on the severity and frequency of occurrence of each fault; mapping the fault status data corresponding to the target fault to the fault list signal; the fault list signal includes multiple data segments, each data segment corresponds to at least one fault status, and the fault status indicates whether the corresponding fault has occurred; Based on the fault list signal, a target fault list signal from among the multiple fault list signals is output.
2. The method according to claim 1, characterized in that, When the data segment length is determined to be 1 bit, the process of mapping based on the multiple fault status data to obtain a fault list signal includes: The fault status data indicating that a fault has occurred is mapped to 1, and the fault status data indicating that a fault has not occurred is mapped to 0, thereby obtaining the fault list signal.
3. The method according to claim 1, characterized in that, When the length of the data segment is determined to be When the fault list signal is in position, the step of outputting a target fault list signal from among multiple fault list signals based on the fault list signal includes: The target fault list signal is determined based on the fault list signals that have experienced faults. Output the target fault list signal.
4. The method according to claim 1, characterized in that, Before mapping the multiple fault status data to obtain the fault list signal, the process includes: Configure a fault priority for each of the defined faults; The process of mapping the multiple fault status data to obtain a fault list signal includes: Based on the principle that a higher fault priority corresponds to a higher mapped data segment, the multiple fault status data are mapped to obtain the fault list signal.
5. The method according to claim 1, characterized in that, Before outputting the target fault list signal from among the multiple fault list signals based on the fault list signal, the method further includes: For each of the plurality of faults, a fault protection measure is defined, and the fault protection measure corresponds to a fault protection code; After mapping the multiple fault status data to obtain the fault list signal, the process further includes: For the value of each data segment in the fault list signal, match the corresponding fault protection code to obtain the fault protection signal; Based on the fault list signal, the fault protection signal is output.
6. An online fault diagnosis device, built into the bus signal module of vehicle component software, which allows real-time viewing of fault-related signal information in the bus signal module via an external device, characterized in that... include: The acquisition module is used to acquire fault status data for multiple faults defined for vehicle components; The fault status data indicates whether the corresponding fault has occurred; The signal definition module is used to: obtain the total number of defined faults; and determine the data segment length of the fault list signal based on the total number of faults. Specifically, when the total number of faults is less than a preset threshold, the data segment length is determined to be 1 bit; wherein, the position of the data segment represents the defined fault, and the value of the data segment represents the fault status; when the total number of faults is not less than the preset threshold, the data segment length is determined to be... Bit; where N is the total number of defined faults, the value of the data segment is used to characterize whether the corresponding fault has occurred, and each defined fault uniquely corresponds to the value of a data segment; A mapping module is used to map based on the plurality of fault state data to obtain a fault list signal, including: determining a target fault from the plurality of faults based on the severity and occurrence frequency of each fault; mapping the fault state data corresponding to the target fault to the fault list signal; the fault list signal includes a plurality of data segments, each data segment corresponds to at least one fault state, and the fault state indicates whether the corresponding fault has occurred; The output module is used to output a target fault list signal from among the multiple fault list signals based on the fault list signal.
7. An electronic device, characterized in that, The method includes a processor and a memory, the memory being coupled to the processor, the memory storing instructions that, when executed by the processor, cause the online fault diagnosis method to perform the steps of the method according to any one of claims 1-5.
Citation Information
Patent Citations
Vehicle fault diagnosis method and system
CN106557773A