CN109305117B - Log detection method, device, equipment and computer readable storage medium - Google Patents

Log detection method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109305117B
CN109305117B CN201811008492.3A CN201811008492A CN109305117B CN 109305117 B CN109305117 B CN 109305117B CN 201811008492 A CN201811008492 A CN 201811008492A CN 109305117 B CN109305117 B CN 109305117B
Authority
CN
China
Prior art keywords
unmanned vehicle
vehicle system
log file
judging
fault
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.)
Active
Application number
CN201811008492.3A
Other languages
Chinese (zh)
Other versions
CN109305117A (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811008492.3A priority Critical patent/CN109305117B/en
Publication of CN109305117A publication Critical patent/CN109305117A/en
Application granted granted Critical
Publication of CN109305117B publication Critical patent/CN109305117B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • B60R16/0231Circuits relating to the driving or the functioning of the vehicle
    • B60R16/0232Circuits relating to the driving or the functioning of the vehicle for measuring vehicle parameters and indicating critical, abnormal or dangerous conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Mechanical Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a log detection method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: detecting whether a new log file is uploaded in the unmanned vehicle system; if yes, judging whether the current unmanned vehicle system has a fault according to the new log file; and executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run. Therefore, whether the unmanned vehicle system breaks down currently can be detected quickly, corresponding operation can be executed according to the detection result, and the driving safety of the unmanned vehicle is further guaranteed.

Description

Log detection method, device, equipment and computer readable storage medium
Technical Field
The invention relates to the field of unmanned vehicles, in particular to a log detection method, a log detection device, log detection equipment and a computer readable storage medium.
Background
The unmanned vehicle is an intelligent vehicle, also called as a wheeled mobile robot, called as unmanned vehicle for short, and mainly depends on an intelligent driving instrument which is mainly a computer system in the vehicle to realize unmanned driving. Because the unmanned vehicle is not controlled by a user, the fault of the unmanned vehicle system needs to be known in real time so as to ensure the driving safety of the unmanned vehicle.
In the running process of the unmanned vehicle, if the unmanned system has problems, the system writes abnormal information into a log file of the system, and abnormal data can be determined according to the log file which is inquired regularly at a later stage and reported to the safety control unit, so that the abnormal state of the unmanned vehicle can be processed in time.
However, the above methods generally directly detect all log files in the unmanned vehicle system, and the number of log files in the unmanned vehicle system is often large, so that time is consumed in reading, the abnormal data reading efficiency is low, and the abnormal state of the unmanned vehicle cannot be timely processed.
Disclosure of Invention
The invention provides a log detection method, a log detection device, log detection equipment and a computer readable storage medium, which are used for solving the technical problems that time is consumed when all log files in an unmanned vehicle system are directly detected to be read, abnormal data reading efficiency is low, and further abnormal states of an unmanned vehicle cannot be processed in time.
The first aspect of the present invention provides a log detection method, including:
detecting whether a new log file is uploaded in the unmanned vehicle system;
if yes, judging whether the current unmanned vehicle system has a fault according to the new log file;
and executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run.
Another aspect of the present invention provides a log detection apparatus, including:
the detection module is used for detecting whether a new log file is uploaded in the unmanned vehicle system;
the judging module is used for judging whether the current unmanned vehicle system has a fault according to the new log file if the current unmanned vehicle system has the fault;
and the execution module is used for executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run.
Still another aspect of the present invention provides a log detecting apparatus including: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the log detection method as described above by the processor.
Yet another aspect of the present invention is to provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the log detection method as described above when executed by a processor.
According to the log detection method, the log detection device, the log detection equipment and the computer readable storage medium, whether a new log file is uploaded in the unmanned vehicle system is detected; if yes, judging whether the current unmanned vehicle system has a fault according to the new log file; and executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run. Therefore, whether the unmanned vehicle system breaks down currently can be detected quickly, corresponding operation can be executed according to the detection result, and the driving safety of the unmanned vehicle is further guaranteed.
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 description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic flowchart of a log detection method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a log detection method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a log detection method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a log detection apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a log detection apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a log detection apparatus according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a log detection device according to a seventh embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other examples obtained based on the examples in the present invention are within the scope of the present invention.
Fig. 1 is a schematic flowchart of a log detection method according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step 101, detecting whether a new log file is uploaded in the unmanned vehicle system.
In the embodiment, since all log files in the unmanned vehicle system are directly detected, and the number of the log files in the unmanned vehicle system is often large, time is consumed in reading, so that the abnormal data reading efficiency is low, and further the abnormal state of the unmanned vehicle cannot be timely processed. In the operation process of the unmanned vehicle, if the unmanned system has problems, the system writes abnormal information into a log file of the system, in order to solve the technical problems, whether a new log file is uploaded in the unmanned vehicle system can be detected, and because the historical log file is detected, only the new log file is detected, so that the detection accuracy can be improved on the basis of improving the detection efficiency.
And 102, if yes, judging whether the current unmanned vehicle system has a fault according to the new log file.
In this embodiment, after detecting whether a new log file is uploaded in the unmanned vehicle system, if it is detected that a new log file currently exists, the new log file may be directly detected, so that it can be determined whether the unmanned vehicle system currently has a problem. By detecting the new log file, the detection efficiency can be improved.
And 103, executing a corresponding instruction according to the judgment result so that the unmanned vehicle can normally run.
In this embodiment, it can be understood that if it is determined that the unmanned vehicle does not currently have a fault according to the new log information, the current normal operation of the unmanned vehicle is represented, and if it is detected that the unmanned vehicle currently has a fault according to the new log information, the unmanned vehicle needs to be adjusted to ensure that the unmanned vehicle can normally run. Therefore, after judging whether the current unmanned vehicle system has a fault according to the new log file, a corresponding instruction needs to be executed according to a judgment result, so that the unmanned vehicle can normally operate.
According to the log detection method provided by the embodiment, whether a new log file is uploaded in the unmanned vehicle system is detected; if yes, judging whether the current unmanned vehicle system has a fault according to the new log file; and executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run. Therefore, whether the unmanned vehicle system breaks down currently can be detected quickly, corresponding operation can be executed according to the detection result, and the driving safety of the unmanned vehicle is further guaranteed.
Further, on the basis of the above embodiment, the method includes:
detecting whether a new log file is uploaded in the unmanned vehicle system;
if yes, judging whether the new log file hits a preset detection rule or not;
if so, judging that the current unmanned vehicle system has a fault;
and executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run.
In this embodiment, after it is detected that the unmanned vehicle uploads a new log file currently, the new log file may be detected to determine whether the unmanned vehicle has a fault currently. Specifically, a detection rule may be preset, where the detection rule may be whether a temperature of a Central Processing Unit (CPU) of the current unmanned vehicle exceeds a preset temperature threshold, whether an occupied amount of the CPU exceeds a preset occupied threshold, whether a hard disk of the unmanned vehicle is damaged, whether a memory of the unmanned vehicle is damaged, and the like. Therefore, whether the current new log file hits the detection rule or not can be judged, and if yes, the current fault of the unmanned vehicle is represented, and the unmanned vehicle needs to be adjusted. It can be understood that if the detection rule is not hit, the current normal running of the unmanned vehicle is represented. Therefore, corresponding instructions can be executed according to the judgment result so as to ensure the normal operation of the unmanned vehicle. It should be noted that any method may be adopted to determine whether the current new log file hits the detection rule, for example, a regular expression may be adopted to determine whether the current new log file hits the detection rule, or any other method may be adopted to determine, which is not limited herein.
According to the log detection method provided by the embodiment, whether the unmanned vehicle breaks down currently is judged according to the preset detection rule, and corresponding measures are taken according to the judgment result, so that whether the unmanned vehicle breaks down currently can be quickly determined, and the driving safety of the unmanned vehicle can be ensured.
Optionally, on the basis of any of the above embodiments, the method includes:
detecting whether a new log file is uploaded in the unmanned vehicle system;
if so, judging whether the uploading speed of the new log file exceeds a preset threshold value;
if so, judging that the current unmanned vehicle system has a fault;
and executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run.
In this embodiment, if the uploading speed of the log file in the current system exceeds a preset threshold, a large amount of abnormal information or an extremely serious problem currently occurs in the representation system. Therefore, when the fact that a new log file exists in the unmanned vehicle system is detected, whether the uploading speed of the log file exceeds a preset threshold value or not can be judged. Specifically, the uploading speed of the log files can be calculated according to the number of the current new log files and the time interval of two detections, in addition, whether the number of the current uploaded log files exceeds a preset threshold value can be judged, if yes, the unmanned vehicle system is judged to be in fault, and if not, the current normal operation of the unmanned vehicle is represented. And adopting a corresponding instruction according to the judgment result to ensure the normal operation of the unmanned vehicle.
According to the log detection method provided by the embodiment, whether the speed of the log file uploaded by the unmanned vehicle system exceeds the preset threshold value or not is detected, so that whether the unmanned vehicle system breaks down or not is judged, whether the unmanned vehicle breaks down or not can be quickly determined, and the driving safety of the unmanned vehicle can be ensured.
Further, on the basis of any of the above embodiments, the method comprises:
periodically detecting whether a new log file is uploaded in the unmanned vehicle system;
if yes, judging whether the current unmanned vehicle system has a fault according to the new log file;
and executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run.
In this embodiment, in order to ensure that the unmanned vehicle can normally run, whether a new log file is uploaded in the unmanned vehicle system or not can be periodically detected, and if yes, whether the current unmanned vehicle system fails or not is judged according to the new log file; and executing a corresponding instruction according to the judgment result so that the unmanned vehicle can normally run.
According to the log detection method provided by the embodiment, whether a new log file is uploaded in the unmanned vehicle system is periodically detected, so that the state of the unmanned vehicle system can be periodically detected, and the unmanned vehicle can be ensured to normally run.
Fig. 2 is a schematic flow chart of a log detection method according to a second embodiment of the present invention, where on the basis of any of the above embodiments, as shown in fig. 2, the method includes:
step 201, detecting whether a new log file is uploaded in an unmanned vehicle system;
step 202, if yes, judging whether the current unmanned vehicle system has a fault according to the new log file;
step 203, if the unmanned vehicle system fails, sending alarm information to a control unit so that the control unit can adopt parking operation or deceleration operation according to the alarm information;
and step 204, if the unmanned vehicle system does not have a fault, controlling the unmanned vehicle to continuously run.
In this embodiment, whether the unmanned vehicle system uploads a new log file is detected, if so, whether the unmanned vehicle system is in failure is judged according to the new log file, and if so, alarm information can be sent to the control unit, so that the control unit can stop the unmanned vehicle or decelerate the unmanned vehicle according to the alarm information. For example, if the current fault of the unmanned vehicle is serious, the unmanned vehicle needs to be stopped, and if the fault is a fault capable of being adjusted by itself, the unmanned vehicle can be controlled to perform deceleration operation and adjusted in the process of deceleration so as to ensure normal running of the unmanned vehicle. Alternatively, if the unmanned vehicle system does not have a fault currently, the unmanned vehicle can be continuously controlled to run.
According to the log detection method provided by the embodiment, if the unmanned vehicle system fails, alarm information is sent to a control unit, so that the control unit can perform parking operation or deceleration operation according to the alarm information; and if the unmanned vehicle system does not have a fault, controlling the unmanned vehicle to continuously run. Therefore, the driving safety of the unmanned vehicle can be guaranteed on the basis of rapidly detecting whether the unmanned vehicle system breaks down.
Fig. 3 is a schematic flow chart of a log detection method provided by a third embodiment of the present invention, and on the basis of any one of the above embodiments, as shown in fig. 3, the method includes:
step 301, judging whether a history log file is modified according to a descriptor of the history log file in the unmanned vehicle system;
step 302, if not, detecting whether a new log file is uploaded in the unmanned vehicle system or not according to historical reading time;
step 303, if yes, judging whether the current unmanned vehicle system has a fault according to the new log file;
and step 304, executing a corresponding instruction according to the judgment result so that the unmanned vehicle can normally run.
In this embodiment, because the log file has the descriptor, it may be determined whether the history log file is modified according to the descriptor of the history log file, if modified, the representation history log file is divided, and if not modified, it may be detected whether a new log file is uploaded in the unmanned vehicle system according to the history reading time at the last detection, and accordingly, the log file uploaded after the history reading time may be used as the new log file. And judging whether the unmanned vehicle breaks down currently according to the new log file, and taking corresponding measures according to the judgment result, thereby ensuring the normal operation of the unmanned vehicle.
According to the log detection method provided by the embodiment, whether a history log file is modified or not is judged according to the descriptor of the history log file in the unmanned vehicle system; if not, whether a new log file is uploaded in the unmanned vehicle system is detected according to the historical reading time, so that whether the unmanned vehicle system uploads the new log file can be accurately judged, and a foundation is further provided for subsequent fault detection of the unmanned vehicle system.
Further, on the basis of any of the above embodiments, the method comprises:
judging whether the historical log file is modified or not according to the descriptor of the historical log file in the unmanned vehicle system;
if yes, judging that the historical log file in the unmanned vehicle system is divided;
judging whether the current unmanned vehicle system has a fault according to the segmented historical log file;
and executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run.
In this embodiment, because there are many log files in the unmanned vehicle system, the unmanned vehicle system may perform a splitting operation on the log file, and therefore, after determining whether the history log file is modified according to the descriptor of the history log file in the unmanned vehicle system, if the history log file is modified, the representation history log file is split, at this time, it cannot be determined whether a new log file is currently uploaded according to the history reading time, and therefore, it may be determined whether the current unmanned vehicle system has a fault according to the split history log file. And executing a corresponding instruction according to the judgment result.
According to the log detection method provided by the embodiment, after the log file in the unmanned vehicle system is judged to be segmented, whether the current unmanned vehicle system has a fault or not can be determined according to the segmented historical log file, so that the normal operation of the unmanned vehicle can be ensured.
Further, on the basis of any of the above embodiments, the method comprises:
judging whether the historical log file is modified or not according to the descriptor of the historical log file in the unmanned vehicle system;
if yes, judging that the historical log file in the unmanned vehicle system is divided;
if the current unmanned vehicle system hits any detection rule according to the segmented historical log file, sending alarm information to a control unit;
detecting whether a new log file uploaded in the unmanned vehicle system within a preset time hits the detection rule again;
if not, sending the normal information of the unmanned vehicle system to the control unit.
In this embodiment, because there are many log files in the unmanned vehicle system, the unmanned vehicle system may perform a splitting operation on the log file, and therefore, after determining whether the history log file is modified according to the descriptor of the history log file in the unmanned vehicle system, if the history log file is modified, the representation history log file is split, at this time, it cannot be determined whether a new log file is currently uploaded according to the history reading time, and therefore, it may be determined whether the current unmanned vehicle system has a fault according to the split history log file. However, since there may be some log files that have been read in the split log files, when it is determined that the unmanned vehicle system is currently in a fault according to the split historical log files, an alarm message may be sent to the control unit, whether a new log file uploaded in the unmanned vehicle system within a preset time hits the detection rule again or not may be detected, and if the new log file does not hit the detection rule continuously, the historical fault information of the last fault information is represented, and at this time, the normal information of the unmanned vehicle system may be sent to the control unit, so that the control unit may continue to control the unmanned vehicle to run according to the normal information of the unmanned vehicle system. Correspondingly, if the new log file uploaded in the unmanned vehicle system within the preset time hits the detection rule again, the unmanned vehicle system is represented to have a fault, and the control unit can control the unmanned vehicle to decelerate or stop so as to ensure the driving safety of the unmanned vehicle.
According to the log detection method provided by the embodiment, if any detection rule of the current unmanned vehicle system is judged to hit according to the segmented historical log file, alarm information is sent to the control unit; whether a new log file uploaded in the unmanned vehicle system within a preset time hits the detection rule again or not is detected, so that whether the unmanned vehicle system breaks down currently or not can be accurately determined, and normal running of the unmanned vehicle can be guaranteed.
Fig. 4 is a schematic structural diagram of a log detection apparatus provided in a fourth embodiment of the present invention, and as shown in fig. 4, the method includes:
and the detection module 41 is used for detecting whether a new log file is uploaded in the unmanned vehicle system.
And the judging module 42 is configured to judge whether the current unmanned vehicle system fails according to the new log file if the current unmanned vehicle system fails.
And the execution module 43 is configured to execute a corresponding instruction according to the determination result, so that the unmanned vehicle can normally operate.
The log detection device provided by the embodiment detects whether a new log file is uploaded in the unmanned vehicle system; if yes, judging whether the current unmanned vehicle system has a fault according to the new log file; and executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run. Therefore, whether the unmanned vehicle system breaks down currently can be detected quickly, corresponding operation can be executed according to the detection result, and the driving safety of the unmanned vehicle is further guaranteed.
Further, on the basis of the above embodiment, the apparatus includes:
the detection module is used for detecting whether a new log file is uploaded in the unmanned vehicle system;
the judging module comprises:
the first judging unit is used for judging whether the new log file hits a preset detection rule or not;
the first judging unit is used for judging that the current unmanned vehicle system has a fault if the current unmanned vehicle system has the fault;
and the execution module is used for executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run.
The log detection device provided by the embodiment judges whether the unmanned vehicle breaks down currently according to the preset detection rule and takes corresponding measures according to the judgment result, so that whether the unmanned vehicle breaks down currently can be quickly determined, and the driving safety of the unmanned vehicle can be ensured.
Optionally, on the basis of any of the above embodiments, the apparatus includes:
the detection module is used for detecting whether a new log file is uploaded in the unmanned vehicle system;
the judging module comprises:
the second judging unit is used for judging whether the uploading speed of the new log file exceeds a preset threshold value or not;
the second judging unit is used for judging that the current unmanned vehicle system has a fault if the current unmanned vehicle system has the fault;
and the execution module is used for executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run.
The log detection device provided by the embodiment judges whether the unmanned vehicle system breaks down currently by detecting whether the speed of the log file uploaded by the unmanned vehicle system exceeds a preset threshold value, so that whether the unmanned vehicle breaks down currently can be quickly determined, and the running safety of the unmanned vehicle can be ensured.
Further, on the basis of any of the above embodiments, the apparatus comprises:
the detection module comprises:
the system comprises a regular detection unit, a log file uploading unit and a log file uploading unit, wherein the regular detection unit is used for regularly detecting whether a new log file is uploaded in an unmanned vehicle system;
the judging module is used for judging whether the current unmanned vehicle system has a fault according to the new log file if the current unmanned vehicle system has the fault;
and the execution module is used for executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run.
The log detection device provided by the embodiment can periodically detect the state of the unmanned vehicle system by periodically detecting whether a new log file is uploaded in the unmanned vehicle system, so that the unmanned vehicle can normally run.
Fig. 5 is a schematic structural diagram of a log detection apparatus according to a fifth embodiment of the present invention, where on the basis of any of the foregoing embodiments, as shown in fig. 5, the apparatus includes:
the detection module 51 is used for detecting whether a new log file is uploaded in the unmanned vehicle system;
the judging module 52 is configured to judge whether the current unmanned vehicle system fails according to the new log file if the current unmanned vehicle system fails;
the execution module 53 includes:
the first processing unit 501 is configured to send alarm information to a control unit if the unmanned vehicle system fails, so that the control unit takes a parking operation or a deceleration operation according to the alarm information;
a second processing unit 502, configured to control the unmanned vehicle to continue to run if the unmanned vehicle system does not have a fault.
According to the log detection device provided by the embodiment, if the unmanned vehicle system fails, alarm information is sent to a control unit, so that the control unit can adopt parking operation or deceleration operation according to the alarm information; and if the unmanned vehicle system does not have a fault, controlling the unmanned vehicle to continuously run. Therefore, the driving safety of the unmanned vehicle can be guaranteed on the basis of rapidly detecting whether the unmanned vehicle system breaks down.
Fig. 6 is a schematic structural diagram of a log detection apparatus according to a sixth embodiment of the present invention, where on the basis of any of the foregoing embodiments, as shown in fig. 6, the apparatus includes:
the detection module 61 includes:
a first judging unit 601, configured to judge whether a history log file in the unmanned vehicle system is modified according to a descriptor of the history log file;
a first detecting unit 602, configured to detect whether a new log file is uploaded in the unmanned vehicle system according to historical reading time if the unmanned vehicle system is not uploaded;
the judging module 62 is configured to judge whether the current unmanned vehicle system fails according to the new log file if the current unmanned vehicle system fails;
and the execution module 63 is configured to execute a corresponding instruction according to the judgment result, so that the unmanned vehicle can normally operate.
The log detection device provided by the embodiment judges whether a history log file is modified according to a descriptor of the history log file in the unmanned vehicle system; if not, whether a new log file is uploaded in the unmanned vehicle system is detected according to the historical reading time, so that whether the unmanned vehicle system uploads the new log file can be accurately judged, and a foundation is further provided for subsequent fault detection of the unmanned vehicle system.
Further, on the basis of any of the above embodiments, the apparatus comprises:
the detection module comprises:
the first judging unit is used for judging whether the historical log file is modified or not according to descriptors of the historical log file in the unmanned vehicle system;
a third determination unit configured to determine that a history log file in the unmanned vehicle system is divided if yes;
the second judgment unit is used for judging whether the current unmanned vehicle system has a fault according to the segmented historical log file;
and the execution module is used for executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run.
The log detection device provided by the embodiment can determine whether the current unmanned vehicle system fails according to the segmented historical log file after judging that the log file in the unmanned vehicle system is segmented, so that the normal operation of the unmanned vehicle can be ensured.
Further, on the basis of any of the above embodiments, the apparatus comprises:
the detection module comprises:
the first judging unit is used for judging whether the historical log file is modified or not according to descriptors of the historical log file in the unmanned vehicle system;
a third determination unit configured to determine that a history log file in the unmanned vehicle system is divided if yes;
the alarm unit is used for sending alarm information to the control unit if judging that the current unmanned vehicle system hits any detection rule according to the segmented historical log file;
the second detection unit is used for detecting whether a new log file uploaded in the unmanned vehicle system within preset time hits the detection rule again;
and the notification unit is used for sending the normal information of the unmanned vehicle system to the control unit if the unmanned vehicle system is not normal.
According to the log detection device provided by the embodiment, if any detection rule of the current unmanned vehicle system is judged to hit according to the segmented historical log file, alarm information is sent to the control unit; whether a new log file uploaded in the unmanned vehicle system within a preset time hits the detection rule again or not is detected, so that whether the unmanned vehicle system breaks down currently or not can be accurately determined, and normal running of the unmanned vehicle can be guaranteed.
Fig. 7 is a schematic structural diagram of a log detection device according to a seventh embodiment of the present invention, and as shown in fig. 7, the log detection device includes: a memory 71, a processor 72;
a memory 71; a memory 71 for storing instructions executable by the processor 72;
wherein the processor 72 is configured to execute the log detection method as described above by the processor 72.
Yet another embodiment of the present invention provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the log detection method as described above when executed by a processor.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (16)

1. A log detection method, comprising:
detecting whether a new log file is uploaded in the unmanned vehicle system;
if yes, judging whether the current unmanned vehicle system has a fault according to the new log file;
executing a corresponding instruction according to the judgment result so that the unmanned vehicle can normally run;
whether a new log file is uploaded in the unmanned vehicle system or not is detected, and the method comprises the following steps:
judging whether the historical log file is modified or not according to the descriptor of the historical log file in the unmanned vehicle system;
and if not, detecting whether a new log file is uploaded in the unmanned vehicle system or not according to the historical reading time.
2. The method of claim 1, wherein determining whether the current unmanned vehicle system is malfunctioning based on the new log file comprises:
judging whether the new log file hits a preset detection rule or not;
if so, judging that the current unmanned vehicle system has a fault.
3. The method of claim 1, wherein determining whether the current unmanned vehicle system is malfunctioning based on the new log file comprises:
judging whether the uploading speed of the new log file exceeds a preset threshold value or not;
if yes, judging that the current unmanned vehicle system has a fault.
4. The method according to claim 1, wherein the executing the corresponding instruction according to the determination result comprises:
if the unmanned vehicle system fails, sending alarm information to a control unit so that the control unit can adopt parking operation or deceleration operation according to the alarm information;
and if the unmanned vehicle system does not have a fault, controlling the unmanned vehicle to continuously run.
5. The method of claim 1, wherein the detecting whether to upload a new log file in the unmanned vehicle system comprises:
and periodically detecting whether a new log file is uploaded in the unmanned vehicle system.
6. The method of claim 1, wherein after determining whether the historical log file is modified according to the descriptor of the historical log file in the unmanned vehicle system, the method further comprises:
if yes, judging that the historical log file in the unmanned vehicle system is divided;
and judging whether the current unmanned vehicle system has a fault according to the segmented historical log file.
7. The method of claim 6, wherein after determining whether the current unmanned vehicle system has failed according to the segmented historical log file, the method further comprises:
if the current unmanned vehicle system hits any detection rule according to the segmented historical log file, sending alarm information to a control unit;
detecting whether a new log file uploaded in the unmanned vehicle system within a preset time hits the detection rule again;
if not, sending the normal information of the unmanned vehicle system to the control unit.
8. A log detection apparatus, comprising:
the detection module is used for detecting whether a new log file is uploaded in the unmanned vehicle system;
the judging module is used for judging whether the current unmanned vehicle system has a fault according to the new log file if the current unmanned vehicle system has the fault;
the execution module is used for executing a corresponding instruction according to the judgment result so as to enable the unmanned vehicle to normally run;
the detection module comprises:
the first judging unit is used for judging whether the historical log file is modified or not according to descriptors of the historical log file in the unmanned vehicle system;
and the first detection unit is used for detecting whether a new log file is uploaded in the unmanned vehicle system or not according to the historical reading time if the unmanned vehicle system is not uploaded.
9. The apparatus of claim 8, wherein the determining module comprises:
the first judging unit is used for judging whether the new log file hits a preset detection rule or not;
and the first judging unit is used for judging that the current unmanned vehicle system has a fault if the current unmanned vehicle system has the fault.
10. The apparatus of claim 8, wherein the determining module comprises:
the second judging unit is used for judging whether the uploading speed of the new log file exceeds a preset threshold value or not;
and the second judging unit is used for judging that the current unmanned vehicle system has a fault if the current unmanned vehicle system has the fault.
11. The apparatus of claim 8, wherein the execution module comprises:
the first processing unit is used for sending alarm information to the control unit if the unmanned vehicle system fails so that the control unit can adopt parking operation or deceleration operation according to the alarm information;
and the second processing unit is used for controlling the unmanned vehicle to continuously run if the unmanned vehicle system does not have a fault.
12. The apparatus of claim 8, wherein the detection module comprises:
and the regular detection unit is used for regularly detecting whether a new log file is uploaded in the unmanned vehicle system.
13. The apparatus of claim 8, wherein the detection module further comprises:
a third determination unit configured to determine that a history log file in the unmanned vehicle system is divided if yes;
and the second judging unit is used for judging whether the current unmanned vehicle system has a fault according to the segmented historical log file.
14. The apparatus of claim 13, wherein the detection module further comprises:
the alarm unit is used for sending alarm information to the control unit if judging that the current unmanned vehicle system hits any detection rule according to the segmented historical log file;
the second detection unit is used for detecting whether a new log file uploaded in the unmanned vehicle system within preset time hits the detection rule again;
and the notification unit is used for sending the normal information of the unmanned vehicle system to the control unit if the unmanned vehicle system is not normal.
15. A log detection device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the log detection method of any one of claims 1-7 by the processor.
16. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the log detection method of any one of claims 1 to 7.
CN201811008492.3A 2018-08-31 2018-08-31 Log detection method, device, equipment and computer readable storage medium Active CN109305117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811008492.3A CN109305117B (en) 2018-08-31 2018-08-31 Log detection method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811008492.3A CN109305117B (en) 2018-08-31 2018-08-31 Log detection method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109305117A CN109305117A (en) 2019-02-05
CN109305117B true CN109305117B (en) 2020-06-09

Family

ID=65224659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811008492.3A Active CN109305117B (en) 2018-08-31 2018-08-31 Log detection method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109305117B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311857B (en) * 2020-10-13 2023-05-30 深圳市富士智能系统有限公司 Cloud seat parking lot control method, cloud server and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105329236A (en) * 2015-11-17 2016-02-17 潍柴动力股份有限公司 Power assembly control method, power assembly control device and power assembly control system
CN105357254A (en) * 2015-09-25 2016-02-24 宇龙计算机通信科技(深圳)有限公司 Method, system and intelligent terminal for remotely monitoring automobile fault
CN106447826A (en) * 2016-09-29 2017-02-22 北京宙心科技有限公司 Unmanned aerial vehicle fault diagnosis method and unmanned aerial vehicle fault diagnosis system
CN107458243A (en) * 2017-07-13 2017-12-12 合肥创智汽车技术开发有限公司 A kind of scram control method driven for new-energy automobile Intelligent unattended
CN207067715U (en) * 2017-06-21 2018-03-02 广州汽车集团股份有限公司 The control system and microcontroller of a kind of autonomous driving vehicle
CN108319254A (en) * 2018-01-24 2018-07-24 广东远峰汽车电子有限公司 A kind of collection method, car-mounted terminal and the log collecting server of automobile daily record

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020007237A1 (en) * 2000-06-14 2002-01-17 Phung Tam A. Method and system for the diagnosis of vehicles
US9952317B2 (en) * 2016-05-27 2018-04-24 Uber Technologies, Inc. Vehicle sensor calibration system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357254A (en) * 2015-09-25 2016-02-24 宇龙计算机通信科技(深圳)有限公司 Method, system and intelligent terminal for remotely monitoring automobile fault
CN105329236A (en) * 2015-11-17 2016-02-17 潍柴动力股份有限公司 Power assembly control method, power assembly control device and power assembly control system
CN106447826A (en) * 2016-09-29 2017-02-22 北京宙心科技有限公司 Unmanned aerial vehicle fault diagnosis method and unmanned aerial vehicle fault diagnosis system
CN207067715U (en) * 2017-06-21 2018-03-02 广州汽车集团股份有限公司 The control system and microcontroller of a kind of autonomous driving vehicle
CN107458243A (en) * 2017-07-13 2017-12-12 合肥创智汽车技术开发有限公司 A kind of scram control method driven for new-energy automobile Intelligent unattended
CN108319254A (en) * 2018-01-24 2018-07-24 广东远峰汽车电子有限公司 A kind of collection method, car-mounted terminal and the log collecting server of automobile daily record

Also Published As

Publication number Publication date
CN109305117A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US9720761B2 (en) System fault detection and processing method, device, and computer readable storage medium
US9915925B2 (en) Initiated test health management system and method
CN108872762B (en) Electronic equipment leakage detection method and device, electronic equipment and storage medium
US9971349B2 (en) Method and device for monitoring a system of a vehicle which provides an at least partially automated driving function
US10599104B2 (en) Control device and motor control system
CN103268277A (en) Method and system for outputting log information
US9208039B2 (en) System and method for detecting server removal from a cluster to enable fast failover of storage
CN109305117B (en) Log detection method, device, equipment and computer readable storage medium
US9135193B2 (en) Expander interrupt processing
CN110927576A (en) Locked rotor detection method, device and equipment of brushless motor
CN105279037A (en) Watchdog monitoring method and system
US20230195568A1 (en) Handling Memory Errors Identified by Microprocessors
US8788238B2 (en) System and method for testing power supplies of server
US9274966B1 (en) Dynamically throttling host commands to disk drives
CN115465337B (en) Train control method, device and medium
CN109213128B (en) Closed-loop control failure detection method and system
CN114584041A (en) Control method and device of servo driver
CN115793963A (en) Hard disk fault processing method, device, equipment and storage medium
CN104408059A (en) Fault processing method and device
CN113625957A (en) Hard disk fault detection method, device and equipment
CN108959028B (en) Method and device for analyzing life cycle of disk
CN109992466B (en) Virtual machine fault detection method and device, computer readable storage medium and electronic equipment
WO2022015313A1 (en) Generation of alerts of correlated time-series behavior of environments
CN112596676B (en) State evaluation method, device and equipment
CN113986142B (en) Disk fault monitoring method, device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant