Method, device, equipment and storage medium for recording fault events of autonomous driving vehicles

By collecting and caching monitoring data at high frequencies in autonomous vehicles, and storing and reporting them at appropriate times, the problem of reporting fault event data under the limitations of network technology is solved, and effective recording and diagnosis of fault events in autonomous vehicles are achieved.

CN115393974BActive Publication Date: 2024-08-23JIANGSU MAINLINE COMMERCIAL VEHICLE TECHNOLOGY CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202210914005.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-01
Publication Date
2024-08-23
Estimated Expiration
2042-08-01

AI Technical Summary

Technical Problem

In autonomous vehicles, due to speed and bandwidth limitations of network technology, monitoring data of fault events cannot be reported in a timely manner, making it difficult to perform diagnostic analysis in the cloud.

Method used

Use high-frequency collection of equipment monitoring data and cache it in RAM, generate fault node record files according to specified conditions, store them in ROM at an appropriate time, and report them when server communication conditions permit.

Benefits of technology

It can effectively record and report monitoring data of fault events under existing network conditions, and provide extremely short-duration fault event data to facilitate later analysis and diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115393974B
    Figure CN115393974B
Patent Text Reader

Abstract

An embodiment of the present application provides a method, device, equipment and storage medium for recording fault events of an autonomous driving vehicle, and the corresponding method includes: collecting monitoring data of various components of the equipment at a first frequency and caching them to a specified location in a random access memory RAM through a first thread according to a first-in-first-out principle, and reporting the monitoring data cached in the RAM to a server at a second frequency; wherein the first frequency is greater than the second frequency; when the first thread determines that a specified condition is met, a fault node record file is generated according to the monitoring data currently cached at the specified location, the current timestamp and a flag corresponding to the specified condition, and stored in a read-only memory ROM; a fault event record file is generated according to the fault node record file through the first thread, and the fault event record file is reported to the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and in particular to a method, device, equipment and storage medium for recording fault events of an autonomous driving vehicle. Background Art

[0002] With the advent of autonomous driving, there are more and more scenarios for information interaction and control between the vehicle controller and other systems such as the vehicle body. The perception control and decision-making systems involved in the vehicle controller are more complex, and traditional vehicle controllers can no longer adapt to the development of technology. To address this problem, a domain controller system specifically positioned for autonomous driving has emerged. Different from other domain controllers, the domain controller for autonomous driving needs to have the capabilities of multi-sensor fusion, positioning, path planning, decision control, wireless communication, and high-speed communication. Therefore, the domain controller for autonomous driving needs to connect a large number of sensors (such as cameras, millimeter-wave radars, lidars, inertial measurement units (IMUs), etc.) and communication modules (such as 5G network modules, etc.) to perform complex control logic of the vehicle.

[0003] Since a large number of vehicle control decisions are implemented by the domain controller and various connected devices, it is necessary to ensure that the working status of each device connected to the domain controller is normal to ensure the safety of vehicle driving. In order to facilitate the monitoring of the vehicle's operating status and fault tracing analysis, the vehicle's domain controller needs to regularly report its current monitoring data to the cloud. During the actual operation of the vehicle, some devices connected to the domain controller will have extremely short-term faults when working. However, due to the speed limit of current network technology, the cycle of reporting monitoring data to the cloud is much longer than the duration of the fault event. Therefore, at the moment of reporting monitoring data to the cloud, the monitoring data of the fault event cannot be successfully collected and reported at the current moment because the fault event has ended; and due to the bandwidth limit of current network technology, each time the monitoring data is reported, all monitoring data cannot be reported to the cloud, making it impossible for the cloud to obtain the monitoring data corresponding to the fault event, and thus difficult to perform diagnostic analysis.

[0004] Application Contents

[0005] The embodiments of the present application provide a method, device, equipment and storage medium for recording fault events of an autonomous driving vehicle, so as to solve the problem that, due to the limitations of current network technology, monitoring data of fault events cannot be reported when reporting monitoring data to the cloud.

[0006] The present application provides a method for recording a fault event of an autonomous driving vehicle, comprising:

[0007] Collect monitoring data of each component of the device at a first frequency and cache it to a specified location in a random access memory RAM through a first thread according to a first-in-first-out principle, and report the monitoring data cached in the RAM to a server at a second frequency; wherein the first frequency is greater than the second frequency;

[0008] When it is determined by the first thread that the specified condition is met, a fault node record file is generated according to the monitoring data currently cached at the specified location, the current timestamp and the flag corresponding to the specified condition, and stored in a read-only memory ROM; wherein the fault node record file includes part or all of the first fault node record file, the second fault node record file and the third fault node record file; the fault node record file generated when the fault event occurs is the first fault node record file, the fault node record file generated at the first preset time after the fault event occurs is the second fault node record file, and the fault node file generated when the fault event ends is the third fault node record file;

[0009] Generate a fault event record file according to the fault node record file through the first thread, and report the fault event record file to the server.

[0010] Optionally, reporting the fault event record file to the server through the first thread includes:

[0011] Sending a fault reporting request to the server through the first thread;

[0012] If a response message allowing fault reporting is received from the server within the third preset time after sending the fault reporting request, the fault event record file is reported to the server through the first thread at the time indicated by the response message allowing fault reporting; otherwise, the process returns to the step of sending the fault reporting request to the server through the first thread.

[0013] Optionally, collecting monitoring data of each structure of the device at a first frequency includes:

[0014] Collecting first monitoring data of a component directly connected to the main processor at a first frequency through a second thread, and receiving second monitoring data sent by a coprocessor at the first frequency through a third thread;

[0015] The second monitoring data is monitoring data of a component directly connected to the coprocessor collected by the coprocessor at the first frequency.

[0016] Optionally, the second monitoring data includes normal notification information indicating that the working state of the structure directly connected to the coprocessor is normal, or includes abnormal notification information indicating that the working state of the structure directly connected to the coprocessor is abnormal and corresponding monitoring data.

[0017] Optionally, the method further comprises:

[0018] In response to a fault query instruction sent by the server, obtaining a first fault node record file and a second fault node record file corresponding to the fault query instruction from the ROM through the first thread, and generating a fault feedback file to report to the server;

[0019] Wherein, the fault query instruction is an instruction sent by the server to the device when the server does not receive the fault event record file after a fourth preset time after the fault event occurs;

[0020] The fourth preset time is greater than the first preset time.

[0021] Optionally, generating a fault event record file according to the fault node record file by the first thread includes:

[0022] After the duplicate monitoring data in the fault node record file is deduplicated through the first thread, a fault event record file is generated and compressed.

[0023] Optionally, the fault node record file further includes a fourth fault node record file, and the fault node record file generated at a second preset time after the fault event ends is the fourth fault node record file.

[0024] The present application also provides a device for recording fault events of an autonomous driving vehicle, including:

[0025] A monitoring module, configured to collect monitoring data of various components of the device at a first frequency and cache the data to a designated location in a random access memory RAM through a first thread according to a first-in-first-out principle, and report the monitoring data cached in the RAM to a server at a second frequency; wherein the first frequency is greater than the second frequency;

[0026] A fault recording module is used to generate a fault node record file according to the monitoring data currently cached at the specified location, the current timestamp and the flag corresponding to the specified condition when determining through the first thread that the specified condition is met, and store it in a read-only memory ROM; wherein the fault node record file includes part or all of the first fault node record file, the second fault node record file and the third fault node record file; the fault node record file generated when the fault event occurs is the first fault node record file, the fault node record file generated at the first preset time after the fault event occurs is the second fault node record file, and the fault node file generated when the fault event ends is the third fault node record file;

[0027] A reporting module is used to generate a fault event record file according to the fault node record file through the first thread, and report the fault event record file to the server.

[0028] An embodiment of the present application provides a device, comprising: a processor and a memory for storing instructions executable by the processor;

[0029] Wherein, the processor is configured to execute the instructions to implement the method for recording fault events of the autonomous driving vehicle.

[0030] An embodiment of the present application provides a storage medium, which stores a computer program, and the computer program is used to implement the method for recording failure events of an autonomous driving vehicle.

[0031] An embodiment of the present application also provides a computer program product, which includes a computer program code, and the computer program code is used to implement the method for recording fault events of an autonomous driving vehicle.

[0032] The beneficial effects of this application are as follows:

[0033] The autonomous driving vehicle fault event recording method, apparatus, device and storage medium provided in the embodiments of the present application collect and cache monitoring data in real time at a higher frequency than the frequency of reporting monitoring data between the cycles of reporting monitoring data to the server, convert the currently cached monitoring data for long-term storage at several important time points during which the fault event continues, and report monitoring data related to the fault event during subsequent communication with the server. This allows the server to be provided with monitoring data of fault events with extremely short duration under existing network conditions, thereby facilitating subsequent analysis and diagnosis of occasional, difficult-to-detect faults. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 One of the flowcharts of the method for recording a fault event of an autonomous driving vehicle provided in an embodiment of the present application;

[0035] Figure 2 The second flowchart of the method for recording fault events of an autonomous driving vehicle provided in an embodiment of the present application;

[0036] Figure 3 Flow chart 3 of the method for recording fault events of an autonomous driving vehicle provided in an embodiment of the present application;

[0037] Figure 4 A schematic diagram of the connection relationship between the processor and other components of the device provided in the embodiment of the present application;

[0038] Figure 5 A schematic diagram of the structure of a fault event recording device for an autonomous driving vehicle provided in an embodiment of the present application;

[0039] Figure 6 A schematic diagram of the structure of the device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application will be further described below in conjunction with the drawings and examples. However, the example embodiments can be implemented in various forms and should not be understood as being limited to the embodiments described herein; on the contrary, these embodiments are provided to make the present application more comprehensive and complete, and to fully convey the concepts of the example embodiments to those skilled in the art. The same figure marks in the figures represent the same or similar structures, and thus their repeated descriptions will be omitted. The words expressing position and direction described in this application are all explained using the drawings as examples, but changes can be made as needed, and the changes made are all included in the scope of protection of this application. The drawings of this application are only used to illustrate the relative position relationship and do not represent the true proportion.

[0041] It should be noted that specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in a variety of other ways different from those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application. Therefore, the present application is not limited to the specific implementation methods disclosed below. The subsequent description of the specification is a preferred implementation method for implementing the present application, but the description is for the purpose of illustrating the general principles of the present application and is not intended to limit the scope of the present application. The scope of protection of the present application shall be determined by the definition of the attached claims.

[0042] The following is a detailed description of the fault event recording method, device, equipment and computer-readable storage medium provided in the embodiments of the present application in conjunction with the accompanying drawings.

[0043] In a first aspect, an embodiment of the present application provides a method for recording a fault event of an autonomous driving vehicle, such as Figure 1 As shown, including:

[0044] S110. Collect monitoring data of each component of the device at a first frequency.

[0045] S120 , caching the data to a designated location in a random access memory (RAM) according to a first-in-first-out principle through a first thread.

[0046] Then, steps S130 and S140 are respectively executed.

[0047] S130. Report the monitoring data cached in the RAM to the server through the first thread at a second frequency.

[0048] The first frequency is greater than the second frequency.

[0049] In the specific implementation process, the first frequency can generally be set to a frequency of seconds, such as 10 seconds; and the second frequency can be set to a higher frequency according to actual needs to be able to detect failures of equipment components in a timely manner, for example, it can be set to a frequency of 1 millisecond or higher.

[0050] S140. When it is determined through the first thread that the specified condition is met, a fault node record file is generated according to the monitoring data currently cached at the specified location, the current timestamp and a flag corresponding to the specified condition, and stored in a read-only memory (ROM).

[0051] S150. Generate a fault event record file according to the fault node record file through the first thread, and report the fault event record file to the server.

[0052] Among them, the fault node record file includes part or all of the first fault node record file, the second fault node record file and the third fault node record file; the fault node record file generated when the fault event occurs is the first fault node record file, the fault node record file generated at the first preset time after the fault event occurs is the second fault node record file, and the fault node file generated at the end of the fault event is the third fault node record file.

[0053] In the specific implementation process, the first preset time should not be too large to avoid consuming too many resources of the device; the first preset time should not be too small to avoid incomplete monitoring data of fault events reported to the server. The first preset time can be set according to the size of the designated location of the monitoring data cache. For example, the first preset time is approximately equal to the time that any monitoring data is cached in the ROM to ensure that the monitoring data in the second fault node record file and the monitoring data in the first fault node record file are as non-repetitive as possible. For example, the size of the designated location in the ROM is to cache monitoring data on a first-in-first-out basis. The monitoring data cached at a certain moment needs to be deleted after 3 minutes because the area is filled. In this case, the first preset time can be set to 3 minutes.

[0054] Fault events can be specifically divided into communication fault events, voltage fault events, and functional fault events. During implementation, all fault classifications and specified conditions for judgment can be preset in advance as a table, and the processor processes according to the rules in the table.

[0055] Correspondingly, for communication fault events, the specified conditions for the occurrence of fault events include communication disconnection and communication instability. For example, if the monitoring data of a component is not received for 3 seconds, it is determined that the component has a communication disconnection, and if the monitoring data sent by the component loses more than 1 packet within 3 seconds, it is determined that the component has a communication instability. Correspondingly, the specified conditions for the end of the fault event include communication recovery and communication stability.

[0056] For voltage fault events, the specified conditions for the occurrence of the fault event include the component being in an overvoltage state above the upper voltage threshold and the component being in an undervoltage state below the lower voltage threshold. Correspondingly, the specified conditions for the end of the fault event include the component being within the upper and lower voltage threshold range again.

[0057] For a functional fault event, the specified condition for the occurrence of the fault event is that the component reports a fault code. Correspondingly, the specified condition for the end of the fault event includes that the component no longer reports a fault code.

[0058] In this way, the present application will collect and cache monitoring data in real time at a higher frequency than the frequency of reporting monitoring data between the cycles of reporting monitoring data to the server, and will convert the currently cached monitoring data into long-term storage at several important time points when the fault event continues, and report the monitoring data related to the fault event during the subsequent communication process with the server. This will enable the server to be provided with monitoring data of fault events with extremely short duration under existing network conditions, thereby facilitating the subsequent analysis and diagnosis of occasional and difficult-to-detect faults.

[0059] Specifically, if the fault node record file includes a first fault node record file, a second fault node record file and a third fault node record file, then as an optional implementation, as Figure 2 As shown, the step S140 specifically includes:

[0060] S141. Determine whether a fault event occurs through the first thread.

[0061] If the result of executing the step S141 is yes, execute step S142; if the result of the step S141 is no, return to the step S110, and execute step S141 after executing the step S120 next time.

[0062] S142: Generate a first fault node record file according to the monitoring data currently cached at the designated location, the current timestamp and the fault event occurrence flag, and store it in the ROM. Return to step S110, and execute step S143 after executing step S120 next time.

[0063] S143. Determine whether the fault event is completed through the first thread.

[0064] If the result of step S143 is yes, execute step S144; if the result of step S143 is no, execute step S145.

[0065] S144: Generate a third fault node record file according to the monitoring data currently cached at the designated location, the current timestamp and the fault event end mark, and store it in the ROM. Execute step S150, and execute step S141 after executing step S120 next time.

[0066] S145. Determine, through the first thread, whether the current time is the first preset time after the fault event occurs.

[0067] If the result of step S145 is yes, execute step S146; if the result of step S145 is no, return to step S110, and execute step S143 after executing step S120 next time.

[0068] S146: Generate a second fault node record file based on the monitoring data currently cached at the designated location, the current timestamp, and the first preset time mark after the fault event occurs, and store it in the ROM. Return to step S110, and execute step S143 after executing step S120 next time.

[0069] Furthermore, the fault node record file also includes a fourth fault node record file, and the fault node record file generated at the second preset time after the fault event ends is the fourth fault node record file.

[0070] Accordingly, some of the above steps will change accordingly, such as Figure 3 As shown, before step S141, the method further includes:

[0071] S147. Determine, through the first thread, whether the current time is the second preset time after the fault event ends.

[0072] If the result of step S147 is yes, execute step S148; if the result of step S147 is no, execute step S141, and execute step S147 after executing step S120 next time.

[0073] S148. Generate a fourth fault node record file according to the monitoring data currently cached at the designated location, the current timestamp, and a second preset time mark after the fault event ends, and store it in the ROM.

[0074] Accordingly, the step S150 is executed after the step S148 is executed, and if the result of the step S141 is no, it returns to the step S110, and after the step S144 is executed, the step S147 is executed after the next execution of the step S120.

[0075] Considering that each fault node record file may contain duplicate monitoring data, in order to reduce the volume of the generated fault event record file, optionally, in step S150, generating a fault event record file according to the fault node record file by the first thread specifically includes:

[0076] After the duplicate monitoring data in the fault node record file is deduplicated through the first thread, a fault event record file is generated and compressed.

[0077] In the specific implementation process, when generating the fault node record file, the current timestamp, the flag corresponding to the specified condition, and the fault number can be used as the file name, and the monitoring data currently cached at the specified location can be used as the file content to generate the fault node record file. For example, the file name of the first fault node record file is "timestamp + fault number + 1", the file name of the second fault node record file is "timestamp + fault number + 2", the file name of the third fault node record file is "timestamp + fault number + 3", and the file name of the fourth fault node record file is "timestamp + fault number + 4". Afterwards, when generating the fault event record file, the corresponding fault node record files are read in turn, and the monitoring data therein are compared. For the same monitoring data in different fault node record files, the monitoring data with the earliest timestamp is retained, and the monitoring data corresponding to other timestamps are deleted, thereby performing deduplication.

[0078] Optionally, in step S150, reporting the fault event record file to the server through the first thread specifically includes:

[0079] Sending a fault reporting request to the server through the first thread;

[0080] If a response message allowing fault reporting is received from the server within the third preset time after sending the fault reporting request, the fault event record file is reported to the server through the first thread at the time indicated by the response message allowing fault reporting; otherwise, the process returns to the step of sending the fault reporting request to the server through the first thread.

[0081] In the specific implementation process, the fault reporting request may include the device number, the file name of the fault event record file, and the size of the fault event record file. The server decides when to receive the fault event record file based on the fault reporting request, its own load pressure, and network status, and sends a fault reporting permission response information to the device at the time of deciding to receive, including the device number, the file name of the fault event record file, the allowed upload time, and the allowed upload indication information, so that the device starts to report the fault event record file. In this way, by letting the server decide when the device reports the fault information, it can avoid the server receiving the fault information when the load pressure is large and the network is busy. In the implementation process, after receiving the fault reporting request, the server can send a fault reporting permission response information to the device to notify the device that it is temporarily not allowed to upload if it cannot receive the fault event record file temporarily, or it can not send any information to the device, which is not limited here.

[0082] Furthermore, for the needs of some vehicles, such as Figure 4 As shown, there may be two processors responsible for vehicle control, one as the main processor 111 and the other as the coprocessor 112. For example, the main processor 111 is connected to components such as cameras, radars, and navigation modules (not shown in the figure), and is mainly responsible for analyzing external environmental information to determine the vehicle's automatic driving control strategy; the coprocessor 112 is connected to components such as sensors, power systems, and braking systems that monitor the vehicle's own state (not shown in the figure), and is mainly responsible for achieving control of the vehicle's own working state.

[0083] Accordingly, for the main processor of the device implementing the above method, the step S110 of collecting monitoring data of each structure of the device at the first frequency specifically includes:

[0084] Collecting first monitoring data of a component directly connected to the main processor at a first frequency through a second thread, and receiving second monitoring data sent by a coprocessor at the first frequency through a third thread;

[0085] The second monitoring data is monitoring data of a component directly connected to the coprocessor collected by the coprocessor at the first frequency.

[0086] In this way, by using the coprocessor to assist in collecting monitoring data of some components, the computing pressure of the main processor can be reduced.

[0087] In a specific implementation process, the coprocessor may directly send the collected monitoring data to the main processor for monitoring, or may assist the main processor in monitoring the collected monitoring data.

[0088] As an optional implementation, the second monitoring data includes normal notification information indicating that the working state of the structure directly connected to the coprocessor is normal, or includes abnormal notification information indicating that the working state of the structure directly connected to the coprocessor is abnormal and corresponding monitoring data.

[0089] For a fault event with a very short duration, the above implementation method can be used to report to the server the relevant monitoring data representing the occurrence process of the entire fault event. However, for a fault event with a long duration or that cannot be recovered by itself, the server may never receive the fault event record file reported by the device. For such a fault event, optionally, the method further includes ( Figure 2 not shown):

[0090] In response to the fault query instruction sent by the server, the first thread obtains the first fault node record file and the second fault node record file corresponding to the fault query instruction from the ROM and generates a fault feedback file to report to the server.

[0091] The fault query instruction is an instruction sent by the server to the device when the server does not receive the fault event record file after a fourth preset time after the fault event occurs.

[0092] The fourth preset time is greater than the first preset time.

[0093] In the specific implementation process, the fault query instruction sent by the server to the device includes the device number, fault number, fault time range, and the file type of the query. Then the device generates the corresponding fault feedback file according to the file type indicated in the fault query instruction. If the file type indicated by the fault query instruction is an original file, then the corresponding first fault node record file and the second fault node record file are directly reported as the fault feedback file; if the file type indicated by the fault query instruction is an integrated file, then the monitoring data in the corresponding first fault node record file and the second fault node record file are deduplicated and compressed to generate the fault feedback file for reporting.

[0094] In a second aspect, the present application also provides a device for recording fault events of an autonomous driving vehicle, such as Figure 5 As shown, including:

[0095] A monitoring module M1 is used to collect monitoring data of various components of the device at a first frequency and cache them to a specified location in a random access memory RAM through a first thread according to a first-in-first-out principle, and report the monitoring data cached in the RAM to the server at a second frequency; wherein the first frequency is greater than the second frequency;

[0096] A fault recording module M2 is used to generate a fault node record file according to the monitoring data currently cached at the specified location, the current timestamp and the flag corresponding to the specified condition when determining through the first thread that the specified condition is met, and store it in a read-only memory ROM; wherein the fault node record file includes part or all of the first fault node record file, the second fault node record file and the third fault node record file; the fault node record file generated when the fault event occurs is the first fault node record file, the fault node record file generated at the first preset time after the fault event occurs is the second fault node record file, and the fault node file generated when the fault event ends is the third fault node record file;

[0097] The reporting module M3 is used to generate a fault event record file according to the fault node record file through the first thread, and report the fault event record file to the server.

[0098] Optionally, the fault node record file further includes a fourth fault node record file, and the fault node record file generated at a second preset time after the fault event ends is the fourth fault node record file.

[0099] Optionally, generating a fault event record file according to the fault node record file by the first thread includes:

[0100] After the duplicate monitoring data in the fault node record file is deduplicated through the first thread, a fault event record file is generated and compressed.

[0101] Optionally, reporting the fault event record file to the server through the first thread includes:

[0102] Sending a fault reporting request to the server through the first thread;

[0103] If a response message allowing fault reporting is received from the server within the third preset time after sending the fault reporting request, the fault event record file is reported to the server through the first thread at the time indicated by the response message allowing fault reporting; otherwise, the process returns to the step of sending the fault reporting request to the server through the first thread.

[0104] Optionally, collecting monitoring data of each structure of the device at a first frequency includes:

[0105] Collecting first monitoring data of a component directly connected to the main processor at a first frequency through a second thread, and receiving second monitoring data sent by a coprocessor at the first frequency through a third thread;

[0106] The second monitoring data is monitoring data of a component directly connected to the coprocessor collected by the coprocessor at the first frequency.

[0107] Optionally, the second monitoring data includes normal notification information indicating that the working state of the structure directly connected to the coprocessor is normal, or includes abnormal notification information indicating that the working state of the structure directly connected to the coprocessor is abnormal and corresponding monitoring data.

[0108] Optionally, the method further comprises:

[0109] In response to a fault query instruction sent by the server, obtaining a first fault node record file and a second fault node record file corresponding to the fault query instruction from the ROM through the first thread, and generating a fault feedback file to report to the server;

[0110] Wherein, the fault query instruction is an instruction sent by the server to the device when the server does not receive the fault event record file after a fourth preset time after the fault event occurs;

[0111] The fourth preset time is greater than the first preset time.

[0112] It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each module in each embodiment of the present application may be integrated into a processing unit, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional units.

[0113] Since the specific manner in which each module of the autonomous driving vehicle fault event recording device performs operations has been described in detail in the embodiment of the autonomous driving vehicle fault event recording method, it will not be repeated here.

[0114] The present application also provides a device, such as Figure 6 As shown, it includes: a main processor 111 and a memory 120 for storing executable instructions of the main processor 111; wherein the main processor 111 is configured to execute the instructions to implement the autonomous driving vehicle fault event recording method.

[0115] In the specific implementation process, the device may have relatively large differences due to different configurations or performances, and may include one or more memories 120 and storage media 130. The device may also include a coprocessor 112 ( Figure 6 The memory 120 and / or storage medium 130 may include one or more application programs 131 or data 132. The memory 120 and / or storage medium 130 may also include one or more operating systems 133, such as Windows, Mac OS, Linux, IOS, Android, Unix, FreeBSD, etc. The memory 120 and storage medium 130 may be temporary storage or permanent storage. The application program 131 may include one or more modules ( Figure 6 ), each module may include a series of instruction operations. Further, the processor 110 may be configured to communicate with the computer-readable storage medium 130, and execute a series of instruction operations in the computer-readable storage medium 130 on the electronic device. The electronic device may also include one or more network interfaces 140, the network interface 140 including a wired network interface 141 and / or a wireless network interface 142; one or more input / output interfaces 143.

[0116] An embodiment of the present application also provides a storage medium, which stores a computer program, and the computer program is used to implement the method for recording failure events of an autonomous driving vehicle.

[0117] Since the principle of solving the problem with the above-mentioned storage medium can be referred to the implementation of the method for recording failure events of the autonomous driving vehicle, the repeated parts will not be repeated here.

[0118] An embodiment of the present application also provides a computer program product, which includes a computer program code, and the computer program code is used to implement the method for recording fault events of an autonomous driving vehicle.

[0119] Since the principle of solving the problem by the above-mentioned computer program product can be referred to the implementation of the method for recording failure events of the autonomous driving vehicle, the repeated parts will not be repeated here.

[0120] The method, apparatus, device and storage medium for recording fault events of autonomous driving vehicles provided in the present application collect and cache monitoring data in real time at a higher frequency than the frequency of reporting monitoring data between the cycles of reporting monitoring data to the server, convert the currently cached monitoring data for long-term storage at several important time points during which the fault event continues, and report monitoring data related to the fault event during subsequent communication with the server. This allows the server to be provided with monitoring data of fault events with extremely short duration under existing network conditions, thereby facilitating the subsequent analysis and diagnosis of occasional and difficult-to-detect faults.

[0121] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0122] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0123] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0125] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for recording fault events of an autonomous driving vehicle, characterized in that: include: The first monitoring data of the component directly connected to the main processor is collected at a first frequency by the second thread, and the second monitoring data sent by the coprocessor at the first frequency is received by the third thread, and is cached to a designated location in the random access memory RAM according to the first-in-first-out principle by the first thread, and the monitoring data cached in the RAM is reported to the server at a second frequency; wherein the first frequency is greater than the second frequency; the second monitoring data is the monitoring data of the component directly connected to the coprocessor collected by the coprocessor at the first frequency; the second monitoring data includes normal notification information indicating that the working state of the structure directly connected to the coprocessor is normal, or includes abnormal notification information and corresponding monitoring data indicating that the working state of the structure directly connected to the coprocessor is abnormal; the main processor is directly connected to the camera, radar, and navigation module, so as to analyze the external environment information and determine the vehicle automatic driving control strategy; the coprocessor is connected to the sensor, power system, and braking system for monitoring the vehicle's own state, so as to control the vehicle's own working state; When it is determined by the first thread that the specified condition is met, a fault node record file is generated according to the monitoring data currently cached at the specified location, the current timestamp and the flag corresponding to the specified condition, and stored in a read-only memory ROM; wherein the fault node record file includes a first fault node record file, a second fault node record file, a third fault node record file and a fourth fault node record file; the fault node record file generated when a fault event occurs is the first fault node record file, the fault node record file generated at the first preset time after the fault event occurs is the second fault node record file, the fault node record file generated at the end of the fault event is the third fault node record file, and the fault node record file generated at the second preset time after the end of the fault event is the fourth fault node record file; the file name of the fault node record file is composed of the timestamp when the fault node record file is generated, the flag corresponding to the specified condition and the fault number; The first thread reads the fault node record file according to the file name of the fault node record file, removes duplicate monitoring data in the fault node record file for the fault node record file with the same fault number, generates a fault event record file and compresses it; Sending a fault reporting request to the server through the first thread; the fault reporting request includes the device number, the file name of the fault event record file, and the size of the fault event record file; If the fault reporting permission response information sent by the server is received within the third preset time after sending the fault reporting request, the fault event record file is reported to the server at the time indicated by the fault reporting permission response information through the first thread; otherwise, the step of sending the fault reporting request to the server through the first thread is returned; the fault reporting permission response information includes the device number, the file name of the fault event record file, the allowed upload time and the allowed upload indication information; wherein, the monitoring data therein are compared, and for the same monitoring data in different fault node record files, the monitoring data with the earliest timestamp is retained, and the monitoring data corresponding to other timestamps are deleted, so as to perform deduplication; In response to the fault query instruction sent by the server, the first fault node record file and the second fault node record file corresponding to the fault query instruction are obtained from the ROM through the first thread, and a fault feedback file is generated and reported to the server; wherein the fault query instruction is an instruction sent by the server to the device when the server does not receive the fault event record file after the fourth preset time after the fault event occurs; the fourth preset time is greater than the first preset time; the fault query instruction includes the device number, the fault number, the fault time range, and the queried file type; if the queried file type is an original file, the fault feedback file is the first fault node record file and the second fault node record file; if the queried file type is an integrated file, the fault feedback file is a file obtained by deduplicating and compressing the monitoring data in the corresponding first fault node record file and the second fault node record file; The fault events include communication fault events, voltage fault events, and functional fault events; the specified conditions corresponding to the occurrence of communication fault events are communication disconnection or communication instability, and the specified conditions corresponding to the end of communication fault events are communication restoration or communication stability; the specified conditions corresponding to the occurrence of voltage fault events include the component being in an overvoltage state higher than the upper limit of the voltage threshold and the component being in an undervoltage state lower than the lower limit of the voltage threshold, and the specified conditions corresponding to the end of the fault event include the component being back within the upper and lower limits of the voltage threshold; the specified conditions corresponding to functional fault events are the component reporting a fault code, and the specified conditions corresponding to the end of the fault event include the component no longer reporting a fault code.

2. A device for recording fault events of an autonomous driving vehicle, characterized in that: include: A monitoring module, used to collect first monitoring data of a component directly connected to a main processor at a first frequency through a second thread, and receive second monitoring data sent by a coprocessor at the first frequency through a third thread, and cache it to a designated location in a random access memory RAM according to a first-in-first-out principle through the first thread, and report the monitoring data cached in the RAM to a server at a second frequency; wherein the first frequency is greater than the second frequency; the second monitoring data is monitoring data of a component directly connected to the coprocessor collected by the coprocessor at the first frequency; the second monitoring data includes normal notification information indicating that the working state of the structure directly connected to the coprocessor is normal, or includes abnormal notification information and corresponding monitoring data indicating that the working state of the structure directly connected to the coprocessor is abnormal; the main processor is directly connected to a camera, a radar, and a navigation module, so as to analyze external environmental information and determine a vehicle automatic driving control strategy; the coprocessor is connected to a sensor, a power system, and a braking system for monitoring the vehicle's own state, so as to control the vehicle's own working state; A fault recording module is used to generate a fault node record file according to the monitoring data currently cached at the specified position, the current timestamp and the flag corresponding to the specified condition when determining through the first thread that the specified condition is met, and store it in a read-only memory ROM; wherein the fault node record file includes a first fault node record file, a second fault node record file, a third fault node record file and a fourth fault node record file; the fault node record file generated when a fault event occurs is the first fault node record file, the fault node record file generated at the first preset time after the fault event occurs is the second fault node record file, the fault node record file generated at the end of the fault event is the third fault node record file, and the fault node record file generated at the second preset time after the end of the fault event is the fourth fault node record file; the file name of the fault node record file is composed of the timestamp when the fault node record file is generated, the flag corresponding to the specified condition and the fault number; A reporting module, used for reading the fault node record file according to the file name of the fault node record file through the first thread, removing duplicate monitoring data in the fault node record file for the fault node record file with the same fault number, generating a fault event record file and compressing it; sending a fault reporting request to the server through the first thread; the fault reporting request includes the device number, the file name of the fault event record file, and the size of the fault event record file; if the fault reporting permission response information sent by the server is received within the third preset time after sending the fault reporting request, the fault event record file is reported to the server at the time indicated by the fault reporting permission response information through the first thread; otherwise, returning to the step of sending the fault reporting request to the server through the first thread; the fault reporting permission response information includes the device number, the file name of the fault event record file, the allowed upload time and the allowed upload indication information; wherein, the monitoring data therein are compared, and for the same fault node record files in different fault nodes, Monitoring data, retaining the monitoring data with the earliest timestamp, deleting the monitoring data corresponding to other timestamps, thereby performing deduplication; in response to the fault query instruction sent by the server, obtaining the first fault node record file and the second fault node record file corresponding to the fault query instruction from the ROM through the first thread, and generating a fault feedback file to report to the server; wherein the fault query instruction is an instruction sent by the server to the device when the server does not receive the fault event record file after the fourth preset time after the fault event occurs; the fourth preset time is greater than the first preset time; the fault query instruction includes the device number, the fault number, the fault time range, and the file type queried; if the file type of the query is the original file, the fault feedback file is the first fault node record file and the second fault node record file; if the file type of the query is an integrated file, the fault feedback file is a file obtained by deduplicating and compressing the monitoring data in the corresponding first fault node record file and the second fault node record file; The fault events include communication fault events, voltage fault events, and functional fault events; the specified conditions corresponding to the occurrence of communication fault events are communication disconnection or communication instability, and the specified conditions corresponding to the end of communication fault events are communication restoration or communication stability; the specified conditions corresponding to the occurrence of voltage fault events include the component being in an overvoltage state higher than the upper limit of the voltage threshold and the component being in an undervoltage state lower than the lower limit of the voltage threshold, and the specified conditions corresponding to the end of the fault event include the component being back within the upper and lower limits of the voltage threshold; the specified conditions corresponding to functional fault events are the component reporting a fault code, and the specified conditions corresponding to the end of the fault event include the component no longer reporting a fault code.

3. A device, characterized in that: include: a processor and a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions to implement the method for recording failure events of an autonomous driving vehicle as described in claim 1.

4. A storage medium, characterized in that: The storage medium stores a computer program, which is used to implement the method for recording failure events of an autonomous driving vehicle as described in claim 1.

Citation Information

Patent Citations

  • Fault data processing method and device, server and computer readable storage medium

    CN109783262A

  • Vehicle data recording method and device

    CN110225123A

  • Data collection method and device

    CN110764936A

  • Data deduplication method and device applied to fault recovery

    CN111694801A

  • GPS track cleaning method based on road network data

    CN112748452A