CN115577151A - Vehicle fault real-time diagnosis method and device, electronic equipment and storage medium - Google Patents

Vehicle fault real-time diagnosis method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115577151A
CN115577151A CN202211165609.5A CN202211165609A CN115577151A CN 115577151 A CN115577151 A CN 115577151A CN 202211165609 A CN202211165609 A CN 202211165609A CN 115577151 A CN115577151 A CN 115577151A
Authority
CN
China
Prior art keywords
fault
log
information
module
fault information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211165609.5A
Other languages
Chinese (zh)
Inventor
唐仕航
陈景飘
陈乐�
***
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Weride Technology Co Ltd
Original Assignee
Guangzhou Weride Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Weride Technology Co Ltd filed Critical Guangzhou Weride Technology Co Ltd
Priority to CN202211165609.5A priority Critical patent/CN115577151A/en
Publication of CN115577151A publication Critical patent/CN115577151A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a vehicle fault real-time diagnosis method and device, electronic equipment and a storage medium, which are used for solving the technical problems that the existing vehicle fault diagnosis mode is long in time consumption and low in diagnosis efficiency and can not troubleshoot faults in real time. The invention includes: responding to a fault real-time diagnosis instruction triggered by a user, and acquiring a fault log; determining a process corresponding to the fault log, and acquiring a process log of the process; performing fault matching on the process log to determine fault information; and tracing the source of the fault according to the fault information to obtain root source fault information.

Description

Vehicle fault real-time diagnosis method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of fault diagnosis, in particular to a vehicle fault real-time diagnosis method and device, electronic equipment and a storage medium.
Background
The unmanned technology is a complex of a plurality of leading-edge subjects such as a sensor, a computer, artificial intelligence, communication, navigation positioning, mode recognition, machine vision, intelligent control and the like. During the driving process of the unmanned vehicle, the data of the vehicle and the data of the environment where the vehicle is located are automatically collected, so that the driving control is carried out according to the collected data. In the driving process of the unmanned vehicle, if a certain module breaks down, the unmanned vehicle can be out of control in the driving process, and accidents can be caused.
In the prior art, the fault diagnosis and processing method for the vehicle by engineers and users is as follows:
1. after the fault occurs, waiting for the vehicle data to be uploaded to a server;
2. an engineer manually checks the vehicle log positioning problem;
3. engineers are experienced to deal with the problem.
Then, the fault diagnosis and processing mode cannot accurately position whether the batch vehicles generate faults or the individual vehicles generate faults; in addition, the fault diagnosis and processing method and the fault diagnosis and processing method depend on the experience of engineers, so that a large misjudgment risk exists; in addition, according to the fault diagnosis and processing method, data needs to be uploaded to a server background and then waits for judgment of engineers, so that diagnosis is long in time consumption and low in diagnosis efficiency, faults cannot be checked in real time, and risks are easily expanded.
Disclosure of Invention
The invention provides a vehicle fault real-time diagnosis method and device, electronic equipment and a storage medium, which are used for solving the technical problems that the existing vehicle fault diagnosis method is long in time consumption and low in diagnosis efficiency, and faults cannot be checked in real time.
The invention provides a vehicle fault real-time diagnosis method, which is applied to a vehicle-mounted terminal; the method comprises the following steps:
responding to a fault real-time diagnosis instruction triggered by a user, and acquiring a fault log;
determining a process corresponding to the fault log, and acquiring a process log of the process;
performing fault matching on the process log to determine fault information;
and tracing the source of the fault according to the fault information to obtain root fault information.
Optionally, the step of obtaining a fault log in response to a fault real-time diagnosis instruction triggered by a user includes:
responding to a fault real-time diagnosis instruction triggered by a user, and acquiring fault alarm information in a preset time period;
determining a fault module and fault generation time from the fault alarm information;
and acquiring a fault log of the fault module with preset time length by taking the fault generation time as a reference.
Optionally, the step of determining a process corresponding to the fault log and acquiring a process log of the process includes:
determining a process corresponding to the fault log according to the fault generation time;
determining all process modules in the process;
acquiring module logs generated by all the process modules in the process and the log generation time of each module log;
and combining all the module logs based on the log generation time to obtain the process log of the process.
Optionally, the process log is composed of a string of each module log; the step of performing fault matching on the process log and determining fault information comprises the following steps:
acquiring a fault character string;
acquiring a prefix of each character string;
matching the fault string in a prefix of each of the strings;
and if the matching is successful, determining the fault information corresponding to the fault character string as the fault information of the process log.
Optionally, the step of tracing the source of the fault according to the fault information to obtain root fault information includes:
judging whether the fault information has a fault triggering correlation module;
if not, acquiring the occurrence frequency of the fault information within a preset time length;
and when the occurrence frequency is smaller than a preset frequency threshold value, taking the fault information as root fault information.
Optionally, the method further comprises:
when the occurrence frequency is not less than the preset frequency threshold value, the fault information is sent to a preset server;
and receiving a fault judgment result returned by the preset server aiming at the fault information as the root fault information.
Optionally, the method further comprises:
if the fault information has a fault trigger correlation module, acquiring a correlation module log of the fault trigger correlation module;
judging whether the correlation module log has correlation fault information or not;
if yes, the associated fault information is used as fault information, and the step of judging whether the fault information has a fault to trigger an associated module is returned;
and if not, returning to the step of acquiring the occurrence frequency of the fault information within the preset time length.
Optionally, after the step of performing fault tracing according to the fault information to obtain root fault information, the method further includes:
and acquiring a fault processing scheme corresponding to the root fault information.
The invention also provides a vehicle fault real-time diagnosis device which is applied to the vehicle-mounted terminal; the device comprises:
the fault log acquisition module is used for responding to a fault real-time diagnosis instruction triggered by a user and acquiring a fault log;
the process log obtaining module is used for determining a process corresponding to the fault log and obtaining the process log of the process;
the fault matching module is used for carrying out fault matching on the process log and determining fault information;
and the source tracing module is used for tracing the source of the fault according to the fault information to obtain root source fault information.
The invention also provides an electronic device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is used for executing the vehicle fault real-time diagnosis method according to instructions in the program code.
The present invention also provides a computer-readable storage medium for storing program code for executing the vehicle fault real-time diagnosis method as described in any one of the above.
According to the technical scheme, the invention has the following advantages: the invention discloses a vehicle fault real-time diagnosis method, which comprises the following steps: responding to a fault real-time diagnosis instruction triggered by a user, and acquiring a fault log; determining a process corresponding to the fault log, and acquiring a process log of the process; performing prefix matching and multimode matching on the process log to determine fault information; and tracing the source of the fault according to the fault information to obtain root fault information. According to the method and the device, the progress corresponding to the fault log is determined through the vehicle-mounted terminal so as to obtain the log information of the whole progress, the fault information generated on the fault module is determined by performing prefix matching and multimode matching on the progress log, so that the real-time fault information causing the fault is determined, then the fault information is traced, and therefore the root fault information causing the subsequent fault is obtained in real time. The whole fault does not need to depend on the experience of an engineer, the labor cost and the time consumed by diagnosis are reduced, the diagnosis efficiency is improved, and the fault is rapidly checked.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive labor.
FIG. 1 is a flow chart illustrating steps of a method for real-time vehicle fault diagnosis provided by an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of a method for real-time vehicle fault diagnosis according to another embodiment of the present invention;
fig. 3 is a block diagram of a vehicle fault real-time diagnosis device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a vehicle fault real-time diagnosis method and device, electronic equipment and a storage medium, and aims to solve the technical problems that the existing vehicle fault diagnosis method is long in time consumption and low in diagnosis efficiency and can not be used for troubleshooting in real time.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a method for diagnosing a vehicle fault in real time according to an embodiment of the present invention.
The invention provides a vehicle fault real-time diagnosis method, which is applied to a vehicle-mounted terminal and specifically comprises the following steps:
step 101, responding to a fault real-time diagnosis instruction triggered by a user, and acquiring a fault log;
in the embodiment of the present invention, various modules exist on the vehicle, such as a sensing module, a planning module, a software monitoring module, a hardware monitoring module, a camera module, a radar module, a lidar module, and the like, and are used for generating different functions during the driving process of the vehicle. The vehicle-mounted terminal can monitor the real-time state of each module on the vehicle in real time. When monitoring that a certain module is abnormal, the vehicle-mounted terminal can judge whether to send out a fault alarm according to the abnormal degree. When the vehicle gives a fault alarm, the user can trigger a fault real-time diagnosis instruction on the vehicle-mounted terminal so as to diagnose the current fault state of the vehicle in real time.
In specific implementation, when a vehicle sends a fault alarm, a user can trigger a fault real-time diagnosis instruction to perform fault diagnosis, and when the vehicle-mounted terminal receives the fault real-time diagnosis instruction, a fault log of a fault module can be acquired for subsequent fault analysis.
In one example, considering that a certain time difference exists between the time when the vehicle sends the fault alarm and the time when the user triggers the fault real-time diagnosis instruction, the vehicle-mounted terminal may search the fault log corresponding to the fault module in a time interval of a preset time length (e.g., 2 minutes) forward based on the time when the fault real-time diagnosis instruction is received.
Step 102, determining a process corresponding to a fault log, and acquiring a process log of the process;
and (4) process: a process or a task in progress. May consist of different operations.
In practical scenarios, each module can only complete a relatively single operation, and the behavior on the vehicle is mostly realized by a process consisting of a plurality of operations. In the monitoring process of each module, the vehicle can only judge whether the module has a fault, but cannot directly obtain what fault the module has. Because a module has a fault, it will affect the implementation of the process where the module is located, in the embodiment of the present invention, a process log of the process where the fault module is located may be obtained to analyze the fault information of the fault module. The fault information may include a fault type.
103, performing fault matching on the process log to determine fault information;
after the process log of the process where the fault log is located is obtained, prefix matching and multimode matching can be performed on the process log to determine fault information.
And step 104, tracing the source of the fault according to the fault information to obtain root fault information.
After the fault information is obtained, fault tracing can be performed on the basis of the fault information, so that the root cause of the fault is obtained.
According to the method and the device, the progress corresponding to the fault log is determined through the vehicle-mounted terminal so as to obtain the log information of the whole progress, the fault information generated on the fault module is determined by performing prefix matching and multimode matching on the progress log, so that the real-time fault information causing the fault is determined, then the fault information is traced, and therefore the root fault information causing the subsequent fault is obtained in real time. The whole fault does not need to depend on the experience of an engineer, the labor cost and the time consumed by diagnosis are reduced, the diagnosis efficiency is improved, and the fault is rapidly checked.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of a method for real-time diagnosing a vehicle fault according to another embodiment of the present invention. The method specifically comprises the following steps:
step 201, responding to a fault real-time diagnosis instruction triggered by a user, and acquiring a fault log;
in the embodiment of the invention, when the vehicle gives a fault alarm, a user can trigger a fault real-time diagnosis instruction to carry out fault diagnosis, and when the vehicle-mounted terminal receives the fault real-time diagnosis instruction, the vehicle-mounted terminal can acquire the fault log of the fault module for subsequent fault analysis.
In one example, the step of obtaining the fault log in response to a user-triggered fault real-time diagnosis instruction may include the following sub-steps:
s11, responding to a fault real-time diagnosis instruction triggered by a user, and acquiring fault alarm information in a preset time period;
s12, determining a fault module and fault generation time from the fault alarm information;
and S13, acquiring a fault log of the fault module with preset time length by taking the fault generation time as a reference.
In the embodiment of the invention, considering that a certain time difference exists between the time when the vehicle sends the fault alarm and the time when the user triggers the fault real-time diagnosis instruction, in order to ensure the accuracy of data acquisition of the vehicle in the fault diagnosis process, the vehicle-mounted terminal can push forward the preset time length by taking the time of receiving the fault diagnosis instruction as a reference after receiving the fault real-time diagnosis time to obtain a time interval (for example, within two minutes before the vehicle-mounted terminal receives the fault real-time diagnosis instruction). Then searching fault alarm information in the time interval. The fault alarm information corresponds to a fault alarm which causes a user to trigger a fault real-time diagnosis instruction. The fault warning information records the module that generated the fault and the time at which the module generated the fault.
After the fault alarm information is obtained, the fault module can be determined from the fault alarm information, and the fault generation time of the fault module is extracted. And then, taking the fault generation time as a reference to obtain a fault log of the fault module with preset time length.
In a specific implementation, log occurrence positions x seconds before and y seconds after the fault occurrence time can be retrieved through a dichotomy, and then logs between x seconds before and y seconds after the fault occurrence time are intercepted as fault logs. For example, the monitoring log may intercept the fault log between 10 seconds before and after the time of fault occurrence.
Step 202, determining a process corresponding to the fault log, and acquiring a process log of the process;
in the embodiment of the invention, the process log of the process where the fault module is located can be obtained to analyze the fault information of the fault module. The fault information may include a fault type.
In one example, the step of determining a process corresponding to the fault log and obtaining the process log of the process may include the following sub-steps:
s21, determining a process corresponding to the fault log according to the fault generation time;
s22, determining all process modules in the process;
s23, acquiring module logs generated by all process modules in the process and the log generation time of each module log;
and S24, splicing all module logs based on the log generation time to obtain a process log of the process.
In the embodiment of the present invention, each process may be composed of operations of several modules, such as lane change, which needs to be implemented by cooperation of modules such as a camera module and a steering module.
In the embodiment of the present invention, the process in which the failure module is located when the failure occurs may be determined according to the failure occurrence time. So that the fault generated by the faulty module is analyzed by the log generated in the process, specifically why the fault is generated.
Because the process is realized by the cooperation of a plurality of modules, the log of the process is composed of module logs of the modules. Therefore, module logs of modules of the process when the fault occurs need to be acquired to form a process log of the process when the fault occurs.
In a specific implementation, the time required for completing one process is approximately fixed, so that when the fault generation time is obtained, the log generation time of each module in the process can be approximately estimated according to the position of the fault module in the process, so as to search other module logs in the process within the time range. After searching other module logs in the process, the log generation time of other module logs can be directly obtained. And finally, after the logs of each module are arranged according to the log generation time of the logs of each module, splicing to obtain the finished process log.
Step 203, performing fault matching on the process log to determine fault information;
in the embodiment of the invention, after the process log of the process where the fault log is located is obtained, prefix matching and multimode matching can be performed on the process log to determine the fault information.
In one example, the process log consists of a string for each module log; the step of performing fault matching on the process log and determining fault information may include the following sub-steps:
s31, acquiring a fault character string;
s32, acquiring a prefix of each character string;
s33, matching fault character strings in prefixes of all character strings;
and S34, if the matching is successful, determining that the fault information corresponding to the fault character string is the fault information of the process log.
In the embodiment of the invention, the process log can be subjected to prefix matching and multimode matching to determine the fault information.
The prefix matching refers to matching prefixes of character strings in the process log. Multi-pattern matching refers to prefix matching in multiple strings simultaneously.
For example:
the queried fault string is: ABCDEFG
The character string matched by the multi-pattern matching and the prefix matching may be:
ASDFBVABCDEFGJKL
AQABCDEFGWE RTUUIO
BCDEFGHABCDEFGUIOPFAS
the above three character strings all have a faulty character string "ABCDEFG".
In specific implementation, corresponding fault character strings can be designated by analyzing corresponding configuration files, prefix matching and multimode matching are carried out by adopting the fault character strings, and if matching is successful, fault information is thrown out and added into a queue. And performing next search until tracing is completed, outputting final fault information, and if some numerical value problems are met, extracting corresponding numerical values after the process file is matched with the fault character string, and further judging.
Step 204, tracing the source of the fault according to the fault information to obtain root source fault information;
after the fault information is obtained, the fault source tracing can be performed on the basis of the fault information, so that the most root cause of the fault is obtained.
In an example, the step of tracing the source of the fault according to the fault information to obtain the root fault information may include the following sub-steps:
s41, judging whether the fault information has a fault trigger correlation module;
s42, if not, acquiring the occurrence frequency of the fault information within the preset time length;
s43, when the occurrence frequency is smaller than a preset frequency threshold value, taking the fault information as root fault information;
s44, when the occurrence frequency is not less than a preset frequency threshold value, sending fault information to a preset server;
s45, receiving a fault judgment result returned by the preset server aiming at the fault information as root fault information;
s46, if the fault information has a fault trigger correlation module, acquiring a correlation module log of the fault trigger correlation module;
s47, judging whether the correlation module log has correlation fault information or not;
s48, if the fault information exists, the associated fault information is used as fault information, and the step of judging whether the fault information has a fault triggering associated module is returned;
and S49, if the fault information does not exist, returning to the step of acquiring the occurrence frequency of the fault information in the preset duration.
In an actual scene, the fault alarm that can be acquired by the vehicle is usually a fault of sufficient severity, but the fault is often not directly generated but is caused by other faults, and if the fault corresponding to the fault alarm is only repaired, the problem cannot be solved from the root. Therefore, after the fault information of the faulty module is determined, the source of the fault needs to be traced.
In the embodiment of the present invention, after the fault information of the current fault module is obtained, a plurality of fault trigger associated modules associated with the fault information and possibly causing the fault information to be generated may be obtained according to the fault information. When the fault triggering correlation module which may cause the fault information to be generated does not exist, the fault information may be represented as final fault information, and at this time, whether the fault information is the root fault information may be judged by judging whether the fault information repeatedly appears within a preset time length (such as one day and one week).
It should be understood that, when it is traced that a fault information does not exist in the fault trigger association module, it cannot be directly verified that the fault information is root fault information, for example, a fault occurs in the memory once, which may be an error report caused by that the memory is not inserted well, and the same fault does not occur within a period of time after the memory is inserted well, which indicates that the memory is not inserted well, which is a root fault. However, if the memory has multiple error reports in a short time, the representation that the memory is not inserted well is not a root fault, so that the problem cannot be solved only by inserting the memory well. The occurrence of the fault may be caused by reasons such as damage to the main board, but the vehicle-mounted terminal cannot trace back whether the main board is damaged or not through the fault information. At this time, the failure information may be sent to the server for failure determination. The server can infer the failure occurrence reason through data statistics and machine learning, so that a failure judgment result is generated, and the failure judgment result is returned to the vehicle-mounted terminal to serve as the root failure information of the failure.
When a plurality of fault trigger correlation modules which may cause the fault information to be generated exist, acquiring a correlation module log of the fault trigger correlation modules, and then repeating the steps 202-203 to judge whether the correlation fault information exists. If yes, the relevant fault information is taken as fault information to be stored in a queue, and the step returns to S41; if not, judging whether further tracing is needed through the server according to the occurrence frequency of the fault information in the preset time length; and if the fault information is not needed, the fault information is used as the root fault information, and if the fault information is needed, further fault tracing is carried out through the server, so that the root fault information is obtained.
Further, in the embodiment of the invention, the hardware of the vehicle is divided according to the batch, and the software is divided according to the version. After the root cause fault information is acquired, the root cause fault information can be uploaded to a server. The server can determine whether the same fault occurs in the hardware of the same batch or the software of the same version through data statistics, so as to determine whether the fault is an example, the problem occurs in the whole batch, or the bug occurs in the whole version. Compared with the situation that the same fault information occurs in multiple products such as a sweeper, a robotaxi and a small bus, the problem of the hardware of the batch can be judged. Similarly, if a problem occurs in multiple products in the same version of software, the bug hidden by the software can be inferred through statistical data. Thus, the fault processing can be performed more specifically.
And step 205, acquiring a fault processing scheme corresponding to the root fault information.
After the root fault information is obtained, if the root fault information is directly determined by the vehicle-mounted terminal, a fault processing scheme corresponding to the root fault information can be directly obtained from the vehicle-mounted terminal. And if the root fault information is determined by the server, acquiring a corresponding fault processing scheme from the server. The user may perform fault handling based on the guidance of the fault handling scheme.
According to the method and the system, the process corresponding to the fault log is determined through the vehicle-mounted terminal so as to obtain the log information of the whole process, the fault information generated on the fault module is determined by performing prefix matching and multimode matching on the process log, so that the real-time fault information causing the fault is determined, and then the source of the fault information is traced, so that the root fault information causing the subsequent fault is obtained in real time. The whole fault does not need to depend on the experience of an engineer, the labor cost and the time consumed by diagnosis are reduced, the diagnosis efficiency is improved, and the fault is rapidly checked.
Referring to fig. 3, fig. 3 is a block diagram of a vehicle fault real-time diagnosis device according to an embodiment of the present invention.
The embodiment of the invention provides a vehicle fault real-time diagnosis device which is applied to a vehicle-mounted terminal; the device comprises:
a fault log obtaining module 301, configured to obtain a fault log in response to a fault real-time diagnosis instruction triggered by a user;
a process log obtaining module 302, configured to determine a process corresponding to the fault log, and obtain a process log of the process;
the fault matching module 303 is configured to perform fault matching on the process log to determine fault information;
and a tracing module 304, configured to perform fault tracing according to the fault information to obtain root fault information.
In this embodiment of the present invention, the fault log obtaining module 301 includes:
the fault alarm information acquisition submodule is used for responding to a fault real-time diagnosis instruction triggered by a user and acquiring fault alarm information in a preset time period;
the fault module and fault generation time determining submodule is used for determining the fault module and the fault generation time from the fault alarm information;
and the fault log acquisition submodule is used for acquiring the fault log of the fault module with preset time length by taking the fault generation time as a reference.
In this embodiment of the present invention, the process log obtaining module 302 includes:
the process determining submodule is used for determining a process corresponding to the fault log according to the fault generation time;
the process module determination submodule is used for determining all process modules in the process;
the log generation time acquisition submodule is used for acquiring module logs generated by all process modules in the process and the log generation time of each module log;
and the process log obtaining submodule is used for splicing all module logs based on the log generation time to obtain the process log of the process.
In the embodiment of the invention, the process log consists of the character strings of each module log; a fault matching module 303 comprising:
the fault character string acquisition sub-module is used for acquiring a fault character string;
the prefix obtaining submodule is used for obtaining the prefix of each character string;
the matching submodule is used for matching the fault character string in the prefix of each character string;
and the fault information determining submodule is used for determining that the fault information corresponding to the fault character string is the fault information of the process log if the matching is successful.
In this embodiment of the present invention, the source tracing module 304 includes:
the fault trigger correlation module judgment submodule is used for judging whether fault information has a fault trigger correlation module;
the occurrence frequency acquisition submodule is used for acquiring the occurrence frequency of the fault information within the preset duration if the fault information is not acquired;
and the first root cause fault information determining submodule is used for taking the fault information as the root cause fault information when the occurrence frequency is smaller than a preset frequency threshold value.
In this embodiment of the present invention, the source tracing module 304 further includes:
the fault information sending submodule is used for sending the fault information to a preset server when the occurrence frequency is not less than a preset frequency threshold;
and the root fault information receiving submodule is used for receiving a fault judgment result returned by the preset server aiming at the fault information as the root fault information.
In this embodiment of the present invention, the source tracing module 304 further includes:
the correlation module log obtaining sub-module is used for obtaining a correlation module log of the fault trigger correlation module if the fault information has the fault trigger correlation module;
the correlation fault information judgment submodule is used for judging whether correlation fault information exists in the log of the correlation module;
the return submodule is used for taking the associated fault information as fault information if the fault information exists, and returning to the step of judging whether the fault information has a fault to trigger the associated module;
and the second root source fault information determining submodule is used for returning to the step of acquiring the occurrence frequency of the fault information within the preset duration if the fault information does not exist.
In the embodiment of the present invention, the method further includes:
and the fault processing module is used for acquiring a fault processing scheme corresponding to the root fault information.
An embodiment of the present invention further provides an electronic device, where the device includes a processor and a memory:
the memory is used for storing the program codes and transmitting the program codes to the processor;
the processor is used for executing the vehicle fault real-time diagnosis method according to the instructions in the program codes.
The embodiment of the invention also provides a computer-readable storage medium for storing program codes, wherein the program codes are used for executing the vehicle fault real-time diagnosis method provided by the embodiment of the invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may 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, and so forth) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrases "comprising one of \ 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (11)

1. A vehicle fault real-time diagnosis method is characterized by being applied to a vehicle-mounted terminal; the method comprises the following steps:
responding to a fault real-time diagnosis instruction triggered by a user, and acquiring a fault log;
determining a process corresponding to the fault log, and acquiring a process log of the process;
performing fault matching on the process log to determine fault information;
and tracing the source of the fault according to the fault information to obtain root fault information.
2. The method of claim 1, wherein the step of obtaining a fault log in response to a user-triggered fault real-time diagnostic command comprises:
responding to a fault real-time diagnosis instruction triggered by a user, and acquiring fault alarm information in a preset time period;
determining a fault module and fault generation time from the fault alarm information;
and acquiring a fault log of the fault module with preset time length by taking the fault generation time as a reference.
3. The method according to claim 2, wherein the step of determining the process corresponding to the fault log and obtaining the process log of the process comprises:
determining a process corresponding to the fault log according to the fault generation time;
determining all process modules in the process;
acquiring module logs generated by all the process modules in the process and the log generation time of each module log;
and splicing all the module logs based on the log generation time to obtain the process log of the process.
4. The method of claim 1, wherein the process log is comprised of a string for each module log; the step of performing fault matching on the process log and determining fault information comprises the following steps:
acquiring a fault character string;
acquiring a prefix of each character string;
matching the fault character string in the prefix of each character string;
and if the matching is successful, determining that the fault information corresponding to the fault character string is the fault information of the process log.
5. The method according to claim 1, wherein the step of tracing the source of the fault according to the fault information to obtain root fault information includes:
judging whether the fault information has a fault triggering correlation module;
if not, acquiring the occurrence frequency of the fault information within a preset time length;
and when the occurrence frequency is smaller than a preset frequency threshold value, taking the fault information as root fault information.
6. The method of claim 5, further comprising:
when the occurrence frequency is not less than the preset frequency threshold value, the fault information is sent to a preset server;
and receiving a fault judgment result returned by the preset server aiming at the fault information as the root fault information.
7. The method of claim 5, further comprising:
if the fault information has a fault trigger correlation module, acquiring a correlation module log of the fault trigger correlation module;
judging whether the correlation module log has correlation fault information or not;
if the fault information exists, the associated fault information is used as fault information, and the step of judging whether the fault information has a fault to trigger an associated module is returned;
and if not, returning to the step of acquiring the occurrence frequency of the fault information within the preset time length.
8. The method according to any one of claims 1 to 7, wherein after the step of performing fault tracing according to the fault information to obtain root fault information, the method further comprises:
and acquiring a fault processing scheme corresponding to the root fault information.
9. A vehicle fault real-time diagnosis device is characterized by being applied to a vehicle-mounted terminal; the device comprises:
the fault log acquisition module is used for responding to a fault real-time diagnosis instruction triggered by a user and acquiring a fault log;
the process log obtaining module is used for determining a process corresponding to the fault log and obtaining the process log of the process;
the fault matching module is used for performing fault matching on the process log and determining fault information;
and the source tracing module is used for tracing the source of the fault according to the fault information to obtain root fault information.
10. An electronic device, comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is used for executing the vehicle fault real-time diagnosis method according to any one of claims 1 to 8 according to instructions in the program code.
11. A computer-readable storage medium for storing a program code for executing the vehicle malfunction real-time diagnosis method according to any one of claims 1 to 8.
CN202211165609.5A 2022-09-23 2022-09-23 Vehicle fault real-time diagnosis method and device, electronic equipment and storage medium Pending CN115577151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211165609.5A CN115577151A (en) 2022-09-23 2022-09-23 Vehicle fault real-time diagnosis method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211165609.5A CN115577151A (en) 2022-09-23 2022-09-23 Vehicle fault real-time diagnosis method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115577151A true CN115577151A (en) 2023-01-06

Family

ID=84581730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211165609.5A Pending CN115577151A (en) 2022-09-23 2022-09-23 Vehicle fault real-time diagnosis method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115577151A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116107794A (en) * 2023-04-10 2023-05-12 中国船舶集团有限公司第七一九研究所 Ship software fault automatic diagnosis method, system and storage medium
CN116382244A (en) * 2023-04-28 2023-07-04 润芯微科技(江苏)有限公司 Intelligent automobile online monitoring and diagnosing system and method based on embedded intelligent automobile online monitoring and diagnosing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116107794A (en) * 2023-04-10 2023-05-12 中国船舶集团有限公司第七一九研究所 Ship software fault automatic diagnosis method, system and storage medium
CN116382244A (en) * 2023-04-28 2023-07-04 润芯微科技(江苏)有限公司 Intelligent automobile online monitoring and diagnosing system and method based on embedded intelligent automobile online monitoring and diagnosing system

Similar Documents

Publication Publication Date Title
CN108563214B (en) Vehicle diagnosis method, device and equipment
CN115577151A (en) Vehicle fault real-time diagnosis method and device, electronic equipment and storage medium
CN113282461B (en) Alarm identification method and device for transmission network
CN111611711B (en) Automatic driving data processing method and device and electronic equipment
US11222202B2 (en) Targeted testing and machine-learning systems for detecting and identifying machine behavior
CN111141444B (en) Tire pressure sensor information acquisition method and device, storage medium and electronic equipment
CN113902233A (en) Vehicle safety early warning method, big data platform device, vehicle-mounted terminal and vehicle
US20070220330A1 (en) Computer-Supported Diagnostic System, Based on Heuristics and System Topologies
KR101249902B1 (en) Diagnostic system and method for home appliance
CN110633905A (en) Reliability calculation method for cloud platform of intelligent vehicle
CN115392812B (en) Abnormal root cause positioning method, device, equipment and medium
CN113269042A (en) Intelligent traffic management method and system based on running vehicle violation identification
CN114462650A (en) Equipment fault processing method and device, electronic equipment and storage medium
CN109597389B (en) Test system of embedded control system
CN113469137A (en) Abnormal behavior recognition method and device, storage medium and electronic device
CN115766402B (en) Method and device for filtering server fault root cause, storage medium and electronic device
CN110598797A (en) Fault detection method and device, storage medium and electronic device
KR0169808B1 (en) Fault diagonistic expert system and diagonistic method
CN111371984A (en) Method and device for determining abnormality of snapshot machine and storage medium
US11334053B2 (en) Failure prediction model generating apparatus and method thereof
CN111309584A (en) Data processing method and device, electronic equipment and storage medium
CN113987751A (en) Scheme screening method and device, electronic equipment and storage medium
CN112185058B (en) Monitoring alarm method, system, equipment and storage medium
CN113495750B (en) Upgrade detection method and device for equipment and server
CN112631272A (en) Method and equipment for remotely recovering power of robot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination