Data recording control method, data playback control method, and apparatus

By generating tags for vehicle events, recording and replaying data, the problem of scattered data distribution in traditional methods is solved, enabling fast searching and playback, and improving data analysis efficiency and system algorithm development efficiency.

CN119127814BActive Publication Date: 2026-11-20CHINA AUTOMOTIVE INNOVATION CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411285932.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2026-11-20
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

In traditional data recording and control methods, data is scattered, the time cost of finding valid and key data is high, and it is impossible to quickly reproduce the data state of a specific state or point in time when the vehicle is recorded.

Method used

By generating tags for vehicle events, data recording and playback are performed based on these tags, establishing the relationship between vehicle events and data, and enabling rapid search and playback.

Benefits of technology

It improves the efficiency of data retrieval, saves resources and costs, can quickly reproduce vehicle event data corresponding to event tags, and improves the efficiency of system algorithm development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127814B_ABST
    Figure CN119127814B_ABST
Patent Text Reader

Abstract

The application provides a data recording control method and device, and a data playback control method and device, and comprises the following steps: obtaining a to-be-written file, to-be-recorded data and a vehicle event, the vehicle event is an event indicating that the vehicle is in a specific state or indicating that the vehicle is at a specific time node, label generation processing is performed on the vehicle event, an event label of the vehicle event is obtained, the event label of the vehicle event is used to search for to-be-playback data, data recording processing is performed based on the event label of the vehicle event, the to-be-recorded data and the to-be-written file, a recorded file is generated, and the to-be-playback data is determined according to the event label of the vehicle event. According to the embodiment of the application, the relationship between the vehicle event data and the event label is established, the to-be-playback data corresponding to the vehicle event is found through the event label, the to-be-playback data is played back, the efficiency of data searching is improved, the data corresponding to the vehicle event of the event label is quickly reproduced, and the system algorithm development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of sensor data recording, and specifically relates to a data recording control method, a data playback control method, and a device. Background Technology

[0002] In the design of autonomous driving system algorithms, a large amount of vehicle sensor data is required to train and validate the algorithms. By recording sensor data, data from different driving scenarios can be collected, which can be used to develop and improve perception, localization, decision-making, and control algorithms. By replaying sensor data, autonomous driving algorithms can be tested in simulated environments to test and validate the system's performance. In particular, when autonomous vehicles malfunction or are involved in accidents, replaying sensor data can help analyze the causes, improve system design, and enhance safety.

[0003] Autonomous driving scenarios involve multi-source heterogeneous sensors, with numerous sensor types and massive amounts of data. Sensor data fusion and algorithm iteration are inseparable from data recording and playback. Traditional data recording and control methods exist, but the recorded files obtained by traditional data recording and playback methods have scattered data distribution. The time cost of finding valid and key data is high, and it is impossible to quickly reproduce the data state of the vehicle at a specific point in time during recording.

[0004] Therefore, there is an urgent need for a method that can quickly find the required data and reproduce and replay it quickly. Summary of the Invention

[0005] To address the aforementioned technical problems, this invention provides a data recording control method, a data playback control method, and an apparatus.

[0006] On one hand, the present invention proposes a data recording control method, which includes: acquiring a file to be written, data to be recorded, and vehicle events; the vehicle events are events indicating that the vehicle is in a specific state or that the vehicle is at a specific time point;

[0007] The vehicle events are processed to generate tags, resulting in event tags for the vehicle events. The event tags for the vehicle events are used to locate data to be replayed, and each event tag carries the content and time information of the vehicle event.

[0008] Data recording processing is performed based on the event tags of the vehicle event, the data to be recorded, and the file to be written to generate a recorded file; the recorded file is used to determine the data to be played back based on the event tags of the vehicle event.

[0009] The data to be recorded refers to all the data currently to be recorded.

[0010] In some possible implementations, the step of generating tags for the vehicle events to obtain event tags for the vehicle events includes:

[0011] The vehicle event is analyzed by tag type, and the tag of the vehicle event is determined to be a first type tag; the first type tag corresponds to a first vehicle event, which is an event indicating that the vehicle is at a specific time node;

[0012] If the label of the vehicle event is determined to be a first type of label, a label number generation process is performed on the vehicle event to obtain the first label number of the vehicle event.

[0013] Obtain a preset data expansion time; the preset data expansion time is less than a preset time threshold.

[0014] The occurrence time of the vehicle event is extracted to obtain the first occurrence time;

[0015] Based on the first occurrence time and the preset data extension time, a first time interval is obtained by performing a first time interval analysis.

[0016] The first tag number, the first occurrence time, and the first time interval are used to generate a tag to obtain the event tag for the vehicle event.

[0017] In some possible implementations, the step of generating tags for the vehicle events to obtain event tags for the vehicle events includes:

[0018] The vehicle event is analyzed by label type, and the label of the vehicle event is determined to be a second type label; the second type label corresponds to a second vehicle event; the second vehicle event is an event indicating that the vehicle is in a specific state;

[0019] The vehicle event is processed to generate a second tag number, resulting in the vehicle event's second tag number.

[0020] Obtain the first trigger time and the second trigger time of the vehicle event; the first trigger time is earlier than the second trigger time; the first trigger time is the start time of the specific state, and the second trigger time is the end time of the specific state;

[0021] The first trigger time and the second trigger time are respectively used as the start and end times of the time interval to obtain the second time interval;

[0022] Tag generation processing is performed based on the second tag number, the first trigger time, the second trigger time, and the second time interval to obtain the event tag of the vehicle event.

[0023] In some possible implementations, the number of files to be written is at least two, and the data recording process based on the event tags of the vehicle event, the data to be recorded, and the files to be written to generate a recorded file includes:

[0024] Select any one of the files to be written from the list of files to be written as the current file, and write the data to be recorded into the current file;

[0025] An event tag mapping table is generated based on the event tags of the vehicle events;

[0026] The write time is obtained, and if the write time is equal to the first preset write time, the data writing to the current file is terminated; the write time is the time elapsed since the recording start time of the current file.

[0027] Delete the current file from the list of files to be written;

[0028] Create new files to be written and update the list of files to be written;

[0029] Repeat the steps of obtaining any one of the files to be written from the file list as the current file and updating the file list to be written until all the data to be recorded has been recorded, generating a number of the recorded files;

[0030] Based on several recorded files, file information recording processing is performed to obtain a file information mapping table.

[0031] In some possible implementations, the data recording control method further includes:

[0032] Obtain the event tag mapping table and the file information mapping table; the file information mapping table records the recording time interval of the recorded files; the event tag mapping table records several time intervals, and each of the several time intervals corresponds to a vehicle event;

[0033] If the total recording time is greater than or equal to the second preset time, an unknown end time detection is performed on several time intervals to obtain a detection result; the total recording time refers to the cumulative data recording time since the start time of the recording process, and the unknown end time refers to the second trigger time to be determined in the second time interval;

[0034] Based on the detection results, a reference time interval analysis is performed to determine the reference time interval;

[0035] The reference time interval is compared and analyzed with several other time intervals to identify useless data files from several recorded files;

[0036] Delete the useless data files;

[0037] The useless data files are recorded files that do not overlap with the reference time interval and several other time intervals.

[0038] In some possible implementations, the step of performing reference time interval analysis based on the detection results to determine the reference time interval includes:

[0039] If the detection result indicates that there is no unknown end time, the preset interval end value is used as the end value of the reference time interval.

[0040] The recording start time is used as the starting value of the reference time interval to determine the reference time interval; the reference time interval is used to identify useless data files.

[0041] In some possible implementations, the step of performing time interval analysis based on the detection results to determine a reference time interval includes:

[0042] If the detection result indicates the existence of the unknown end time, obtain the first trigger time of the time interval in which the unknown end time is located;

[0043] Numerical analysis is performed based on the first trigger time within the time interval of the unknown end time to determine a first boundary value, which is less than a preset time threshold.

[0044] Compare the first limit value with the preset interval endpoint value, and use the first limit value or the preset interval endpoint value as the endpoint value of the reference time interval based on the comparison result.

[0045] The recording start time is used as the starting value of the reference time interval to determine the reference time interval; the reference time interval is used to determine the useless data file.

[0046] In some possible implementations, after generating the recorded file, the data recording control method further includes:

[0047] Record the recording end time;

[0048] Obtain the unknown end time from the recorded file;

[0049] Replace the unknown end time in the recorded file with the recording termination time.

[0050] On the other hand, this application also provides a data playback control method, which, following the data recording control method, includes:

[0051] Determine the event tags to be replayed from the event tags of the vehicle events;

[0052] The data is searched in the recorded file according to the identification information of the event tag to be played back, the data to be played back corresponding to the event tag to be played back is determined, and the data to be played back is played back.

[0053] In some possible implementations, the step of searching for data in the recorded file based on the identifier information of the event tag to be played back, determining the data to be played back corresponding to the event tag, and playing back the data to be played back includes:

[0054] Based on the identification information of the event tag to be played back, data is searched in the recorded file to obtain the data to be played back corresponding to the event tag to be played back;

[0055] The recording time interval is obtained by analyzing the recording time interval of the data to be played back;

[0056] The recording time interval is used as the playback time interval to play back the data to be played back until all the data to be played back has been played back.

[0057] On the other hand, embodiments of the present invention provide a data recording control device, the data recording control device comprising:

[0058] The acquisition module is used to acquire the file to be written, the data to be recorded, and vehicle events; the vehicle events are events that indicate that the vehicle is in a specific state or that the vehicle is at a specific time point.

[0059] The tag generation module is used to generate tags for the vehicle events to obtain event tags for the vehicle events; the event tags of the vehicle events are used to find data to be replayed, and the event tags of the vehicle events carry the content information and time information of the vehicle events;

[0060] The data recording module is used to perform data recording processing based on the event tags of the vehicle event, the data to be recorded, and the file to be written, and generate a recorded file; the recorded file is used to determine the data to be played back based on the event tags of the vehicle event.

[0061] On the other hand, embodiments of the present invention provide a data playback control device, the data playback control device comprising:

[0062] The tag selection module is used to determine the event tags to be replayed from the event tags of the vehicle events;

[0063] The data playback module is used to search for data in the recorded file according to the identification information of the event tag to be played back, determine the data to be played back corresponding to the event tag to be played back, and play back the data to be played back.

[0064] The data recording control method, data playback control method, and apparatus proposed in the embodiments of the present invention have the following beneficial effects:

[0065] This invention, by generating tags for vehicle events during data recording, establishes a relationship between vehicle event data and event tags. Through these event tags, the corresponding vehicle event data to be replayed can be found in the recorded files. This allows for targeted searching and playback of the data to be replayed, saving resources and costs associated with data retrieval, improving data search efficiency, and enhancing data analysis efficiency. Furthermore, the ability to quickly reproduce the data of the vehicle event corresponding to the event tag through the event tag's identification information contributes to improved system algorithm development efficiency. Attached Figure Description

[0066] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0067] Figure 1 This is a schematic diagram of the software architecture of a data recording control method provided in an embodiment of the present invention;

[0068] Figure 2 This is a flowchart illustrating a data recording control method provided in an embodiment of the present invention;

[0069] Figure 3 This is a logical illustration of a data recording control method provided in an embodiment of the present invention. Figure 1 ;

[0070] Figure 4 This is a logical illustration of a data recording control method provided in an embodiment of the present invention. Figure 2 ;

[0071] Figure 5 This is a block diagram of a data recording control device provided in an embodiment of the present invention;

[0072] Figure 6 This is a block diagram of a data playback control device provided in an embodiment of the present invention. Detailed Implementation

[0073] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0074] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of the embodiments of the present invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the present invention described herein can be implemented in orders other than those illustrated or described herein. Thus, features defined with "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments, unless otherwise stated, "a plurality of" means two or more. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.

[0075] To make the objectives, technical solutions, and advantages disclosed in the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of the present invention and are not intended to limit the embodiments of the present invention.

[0076] Please see Figure 1 , Figure 1 This is a schematic diagram of the software architecture of a data recording control method provided in an embodiment of the present invention. As shown in the figure, the software architecture of the data recording control method can optionally be implemented based on a software development kit (SDK). The software architecture includes three parts: a daemon process, a control process, and a class library. Users can implement data recording and playback by using the SSD.

[0077] Optionally, a daemon process is a special type of process that runs in the background. It is independent of the controlling terminal and periodically performs a certain task or waits to process certain events, such as periodically writing time or deleting useless data files. The controlling process is used to manage the start and end of processes, such as controlling the start and stop of data recording and playback.

[0078] A class library is a collection of reusable functions or tools that applications call to implement corresponding functions. For example, if a class library has a file creation function, then the application will call the class library to create the file. Users call the class library through the application programming interface (API), and the class library establishes communication with the daemon process via a socket, registering data topics with the daemon process. Optionally, the socket is an application programming interface used for network communication, and the control process establishes communication with the daemon process via the socket.

[0079] The aforementioned software architecture supports multiple users simultaneously issuing start / stop control commands for recording and playback, registering multiple event tag information, and recording and playing back multiple topic data simultaneously. Among these, the number of daemons running in the same domain is one and only one, while the number of control processes and libraries running is unlimited. It supports multiple user processes calling libraries and recording different topic data simultaneously. It also supports multiple users simultaneously calling the control process to tag topic data, achieving fast, efficient, and concurrent generation of event tags.

[0080] It should be noted that the data recording control method and data playback control method provided in the embodiments of the present invention can be applied in a variety of scenarios. To help understand this technical solution, this specification uses the recording and playback of sensor data in a vehicle as an example for explanation.

[0081] Figure 2 This is a flowchart illustrating a data recording control method provided in an embodiment of the present invention. This method can be used for... Figure 1 In the software architecture, this specification provides the method operation steps as described in the embodiments or flowcharts, but based on conventional or non-inventive labor, more or fewer operation steps may be included. The order of steps listed in the embodiments is merely one of many possible execution orders and does not represent the only execution order. In actual system or server products, the methods shown in the embodiments or drawings can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment).

[0082] Specific examples Figure 2 As shown, the method may include:

[0083] On one hand, the present invention proposes a data recording control method, the data recording control method comprising:

[0084] S101: Get the file to be written, the data to be recorded, and vehicle events.

[0085] Optionally, the file to be written is a file used to record and store the data to be recorded, and the data to be recorded is all the data to be recorded at present. Optionally, the data to be recorded can be part or all of the data in a topic folder, and the topic can be the device that generates the data to be recorded, such as a sensor.

[0086] Optionally, a vehicle event is an event that indicates that the vehicle is in a specific state or that the vehicle is at a specific point in time.

[0087] S103: Perform tag generation processing on the vehicle event to obtain the event tag of the vehicle event.

[0088] Optionally, the tag generation process refers to extracting the attribute information of vehicle events based on the preset elements of the tags. Event tags are markers used to record the attribute information of vehicle events. The attribute information of vehicle events is information obtained based on vehicle events, such as vehicle event type, occurrence time, time interval, etc. There is a one-to-one correspondence between event tags and vehicle events. The event tags of vehicle events carry the content information and time information of the vehicle event. The event tags of vehicle events are used to find the data to be played back. The data to be played back can be the data of one vehicle event or the data of multiple vehicle events. Each event tag can be used to find the data of the corresponding vehicle event.

[0089] It should be noted that during the data recording process, there are several vehicle events. Each vehicle event is processed to generate a label, resulting in several event labels. Each event label corresponds to a vehicle event, and each vehicle event has a unique event label.

[0090] S105: Based on the event tag of the vehicle event, the data to be recorded, and the file to be written, perform data recording processing to generate a recorded file.

[0091] Optionally, the recorded file is used to determine the data to be replayed based on the event tags of the vehicle event.

[0092] This invention, by generating tags for vehicle events during data recording, establishes a relationship between vehicle event data and event tags. Through these event tags, the corresponding vehicle event data to be replayed can be found in the recorded files. This allows for targeted searching and playback of the data to be replayed, saving resources and costs associated with data retrieval, improving data search efficiency, and enhancing data analysis efficiency. Furthermore, the ability to quickly reproduce the data of the vehicle event corresponding to the event tag through the event tag's identification information contributes to improved system algorithm development efficiency.

[0093] In some possible embodiments, the step of generating tags for the vehicle events to obtain event tags for the vehicle events includes:

[0094] The vehicle event was analyzed for its tag type, and the tag of the vehicle event was determined to be a first type tag.

[0095] Optionally, tag type analysis refers to analyzing vehicle events and determining the type of event tag based on the nature of the vehicle event. The nature of vehicle events can be divided into two types: one type indicates that the vehicle is at a specific time point, and the other type indicates that the vehicle is in a specific state.

[0096] Furthermore, the first type label corresponds to the first vehicle event, which is an event indicating that the vehicle is at a specific time point.

[0097] If the label of the vehicle event is determined to be a first type of label, a label number generation process is performed on the vehicle event to obtain the first label number of the vehicle event.

[0098] Optionally, the first tag number is the identification information of the first type of tag. The numbering method of the first tag number can be flexibly set as needed, such as numbering by event name plus occurrence time, or numbering by occurrence date plus event name. Each vehicle event has a unique first tag number.

[0099] Obtain a preset data expansion time; the preset data expansion time is less than a preset time threshold.

[0100] Optionally, the preset data extension time T1 is a preset time used to increase the amount of event data. Event data refers to data corresponding to vehicle events. The preset data extension time determines the deviation between the first occurrence time and the start and end times of the first time interval, thus determining the amount of data to be analyzed. The preset data extension time T1 can be flexibly set within a range less than a preset time threshold. The longer the preset data extension time T1, the larger the amount of event data, and vice versa. For example, the preset time threshold can be 1-30 minutes. Preferably, the preset time threshold is 10 minutes, then the preset data extension time T1 is less than 10 minutes.

[0101] The occurrence time of the vehicle event is extracted to obtain the first occurrence time.

[0102] Optionally, the first occurrence time is the time when the vehicle event occurs. For example, if the vehicle event is an abnormality in lane line recognition, then the instantaneous time when the abnormality in lane line recognition occurs is extracted as the first occurrence time.

[0103] The first time interval is obtained by performing a first time interval analysis based on the first occurrence time and the preset data extension time T1.

[0104] Optionally, the first time interval analysis refers to the analysis based on the first occurrence time T. recv The start and end times of the first time interval are determined by the preset data extension time T1.

[0105] Optionally, the first time interval [T] recv -T1,T recv +T1] is used to determine the event data for the first type of event, where the start time of the first time interval is the first occurrence time T. recv The difference between the preset data extension time T1 and the end time of the first time interval is the first occurrence time T. recv The sum of the time interval and the preset data extension time T1. For example, if the first occurrence time is 18:00 and the preset data extension time T1 is 10 minutes, then the start time of the first time interval is 17:50 and the end time is 18:10, and the first time interval is [17:50, 18:10].

[0106] The first tag number, the first occurrence time, and the first time interval are used to generate a tag to obtain the event tag for the vehicle event.

[0107] This invention analyzes vehicle events by tag type. When the tag type of a vehicle event is determined to be a first type tag, the attribute information corresponding to the vehicle event is obtained, and a first type tag corresponding to the first vehicle event is obtained. This can be used to find the corresponding data for a specific vehicle event during subsequent data playback, thereby improving the efficiency of data retrieval.

[0108] In some possible embodiments, the step of generating tags for the vehicle events to obtain event tags for the vehicle events includes:

[0109] A tag type analysis was performed on the vehicle event, and the tag of the vehicle event was determined to be a second type tag.

[0110] Optionally, the second type label corresponds to the second vehicle event; the second vehicle event is an event indicating that the vehicle is in a specific state, and the second type label corresponds to the vehicle event indicating that the vehicle is in a specific state; when it is determined that the vehicle event indicates that the vehicle is in a specific state, the label of the vehicle event can be determined to be the second type label.

[0111] The vehicle event is processed to generate a second tag number, which is obtained from the vehicle event.

[0112] Optionally, the second label number is the identification information of the second type of label. The numbering method of the second label number is similar to that of the first label number, and will not be described again here.

[0113] Obtain the first and second trigger times of the vehicle event.

[0114] Optionally, the first trigger time T1 recv Earlier than the second trigger time T2 recvThe first trigger time is the start time of a specific state, and the second trigger time is the end time of that specific state. For example, a vehicle event is that a vehicle is at a traffic light intersection. This event is continuous and represents a vehicle event indicating that the vehicle is in a specific state. Since the vehicle enters the traffic light intersection first and leaves the traffic light intersection later, the time when the vehicle enters the traffic light intersection is taken as the first trigger time T1. recv The second trigger time T2 is the time when the vehicle leaves the traffic light intersection. recv .

[0115] The first trigger time and the second trigger time are used as the start and end times of the time interval, respectively, to obtain the second time interval.

[0116] Optionally, the first trigger time T1 recv As the starting point of the time interval, the second trigger time T2 recv As the endpoint of the interval, the second time interval [T1] is obtained. recv T2 recv ].

[0117] Optionally, the first trigger time T1 recv Indicates the time when the vehicle enters a specific state, the second trigger time T1 recv The second time interval [T1] indicates the end time of a specific state in which the vehicle is located. recv T2 recv It can represent the entire process of a vehicle being in that specific state.

[0118] Tag generation processing is performed based on the second tag number, the first trigger time, the second trigger time, and the second time interval to obtain the event tag of the vehicle event.

[0119] This invention analyzes vehicle events by tag type. When the tag type of a vehicle event is determined to be a second type tag, the corresponding attribute information, especially the first trigger time and the second trigger time, is obtained to determine the second time interval and obtain the second type tag corresponding to the second vehicle event. This can be used to find the corresponding data for a specific vehicle event during subsequent data playback, thus improving the efficiency of data retrieval.

[0120] In some possible embodiments, the number of files to be written is at least two, and the data recording process based on the event tags of the vehicle event, the data to be recorded, and the files to be written to generate a recorded file includes:

[0121] Select any one of the files to be written from the list of files to be written as the current file, and write the data to be recorded into the current file.

[0122] Optionally, the file to be written refers to the file where data to be recorded is waiting to be written. The class library can be called to create the file to be written under the topic folder. At least two files to be written can be set under each topic folder so that the same topic data can be written to different files to be written. The current file refers to the current file to be written that is about to be recorded. Users can call multiple class libraries to record multiple topics at the same time, that is, to write data to the files to be written under multiple topic folders at the same time.

[0123] An event tag mapping table is generated based on the event tags of the vehicle events.

[0124] Optionally, the event tag mapping table records the event tag for each vehicle event, including the identification information of the event tag and the time interval of the event tag.

[0125] Obtain the write time, and if the write time is equal to a first preset write time, terminate the data writing to the current file.

[0126] Optionally, the write time is the time elapsed since the start time of recording the current file, during which data writing operations are performed. The first preset write time is the duration of data recording for each current file. For example, the first preset write time is 0.5*T. max T max =10, the first current file will start writing at 12:00, the first preset writing time is 5 minutes, after 5 minutes, the second current file will start writing, after 5 minutes, the third current file will start writing.

[0127] Delete the current file from the list of files to be written;

[0128] Create a new file to be written and update the list of files to be written.

[0129] Optionally, after each first preset write time, the current file is deleted from the list of files to be written, a new file to be written is created, and the new file to be written is added to the list of files to be written. For example, the list of recorded files contains recorded file 1, recorded file 2, and recorded file 3, and the list of files to be written contains files to be written 4 and files to be written 5. The current file is file to be written 4. After the first preset write time, file to be written 4 is added to the list of recorded files, and the list of recorded files becomes recorded file 1, recorded file 2, recorded file 3, and recorded file 4. The list of files to be written becomes file to be written 5. After creating a new file to be written 6, the list of files to be written becomes file to be written 5 and file to be written 6.

[0130] Optionally, after each new file to be written is created, the library writes file summary information into the new file, including file version, file sequence, topic name, system byte order, creation time, sensor type and compression level, etc., for verifying the file's correctness when playing back the file later.

[0131] Repeat the steps of obtaining any one of the files to be written from the file list as the current file and updating the file list to be written until all the data to be recorded has been recorded, generating a number of recorded files.

[0132] Optionally, a recorded file refers to a file to be written that has already been written with the data to be recorded.

[0133] Furthermore, file 5 from the list of files to be written is used as the current file for writing. Each frame of data and the timestamp of each frame of data are written to the current file. After the first preset writing time, file 5 is added to the list of recorded files, and the list of recorded files becomes recorded file 1, recorded file 2, recorded file 3, recorded file 4, and recorded file 5. The list of files to be written becomes file 6. After creating a new file 7 to be written, the list of files to be written becomes file 6 and file 7, and so on, until all the data to be recorded is recorded, resulting in several recorded files.

[0134] Based on several recorded files, file information recording processing is performed to obtain a file information mapping table.

[0135] Optionally, the file information mapping table records the file information of each recorded file, including the file name, the start time of recording the file information, and the end time of recording.

[0136] This invention employs a primary / backup file creation process when recording data from a topic folder. This process writes the data to be recorded from the same topic folder to different files, avoiding the risk of data accumulation or even loss in memory due to file switching. This improves program reliability and ensures the integrity and security of the recorded data.

[0137] Due to limited disk space and recording time constraints, in order to save disk space, it is necessary to delete useless data files after a period of data recording. Useless data files are recorded files whose recording time is within the reference time interval and whose recording time does not intersect with several time intervals.

[0138] In some possible embodiments, the data recording control method further includes:

[0139] Obtain the event tag mapping table and the file information mapping table.

[0140] Optionally, the file information mapping table records the recording time interval of the recorded file. The recording time interval refers to the time interval between the start time and the end time of the recording of the recorded file. The event tag mapping table records several time intervals, and each of the several time intervals corresponds to a vehicle event.

[0141] Optionally, a file information mapping table is created by the daemon process to record the identification information of each recorded file, the start time of recording, the end time of recording, and whether it was hit by an event tag. An event tag mapping table is created to record the event tag number and time range.

[0142] If the total recording time is greater than or equal to the second preset time, the unknown end time is detected for several time intervals to obtain the detection result.

[0143] It should be noted that the unknown end time T unkown This is an important indicator of the second type of tag; the second type of tag needs to obtain the first trigger time T1. recv Second trigger time T2 recv If there is an unknown end time in the time interval, it means that the second trigger time T2 has not yet been obtained in that time interval. recv Therefore, it is necessary to filter out those that may still receive a second trigger time T2 based on the detection results. recv The time interval is excluded from the time intervals that can be deleted.

[0144] Optionally, the second preset time is a threshold time for deleting useless data files; for example, it can be 1.5*T. max Total recording time refers to the cumulative data recording time from the start time of the recording process, with the unknown end time T. unkown This refers to the second trigger time to be determined within the second time interval.

[0145] Furthermore, when the total recording time T all When the time is greater than or equal to the second preset time, the deletion of useless data files begins. The steps for deleting useless data files depend on the detection result of the unknown end time.

[0146] Based on the detection results, a reference time interval analysis is performed to determine the reference time interval.

[0147] Optionally, the reference time interval is used to determine the range of recorded files that can be deleted. Recorded files outside the reference time interval cannot be deleted. If the recording time interval of a recorded file is within the reference time interval, it is considered a recorded file that can be deleted.

[0148] The reference time interval is compared and analyzed with several other time intervals to identify useless data files from several recorded files.

[0149] Optionally, each vehicle event corresponds to a specific event tag. The data within the time interval corresponding to the event tag is of great significance for analyzing the corresponding vehicle event. If the recording time does not overlap with any of the time intervals, it means that the recorded file does not contain any useful data that can be used to analyze vehicle events, and it is then identified as a useless data file.

[0150] Delete the useless data files.

[0151] This invention detects unknown end times, determines a reference time interval based on the detection results, and uses this reference time interval to determine the range of recorded files that can be deleted. This avoids accidental deletion of useful data files, improves the accuracy of file deletion, reduces disk physical space usage, and increases the update frequency of available disk space, thereby improving the effectiveness of disk space utilization.

[0152] In some possible embodiments, the step of performing reference time interval analysis based on the detection results to determine the reference time interval includes:

[0153] If the detection result indicates that there is no unknown end time, the preset interval end value is used as the end value of the reference time interval.

[0154] Optionally, if there is no unknown end time, it means that the event tag corresponding to the recorded file does not contain a second trigger time T2 that has not yet been received. recv The second type of tag does not require reserving time to obtain the second trigger time T2. recv Therefore, the preset interval endpoint value is directly used as the endpoint value of the reference time interval.

[0155] The reference time interval is determined by using the start time of the recording process as the starting value of the reference time interval.

[0156] Optionally, the reference time interval is used to determine the range of recorded files that can be deleted, and thus to identify useless data files. The recording start time refers to the time when data recording begins on the first file to be written.

[0157] In some possible embodiments, the step of performing time interval analysis based on the detection results to determine a reference time interval includes:

[0158] If the detection result indicates the existence of the unknown end time, obtain the first trigger time of the time interval in which the unknown end time is located.

[0159] It should be noted that for the second type of tag, it needs to be based on the first trigger time T1. recv Second trigger time T2 recv Determine the second time interval [T1] recv T2 recv [Due to obtaining the first trigger time T1] recv and obtaining the second trigger time T2 recv There is a certain time interval between the deletion of useless data files, and the first trigger time T1 has been obtained. recv However, the second trigger time T2 was not obtained. recv In this case, it would have been possible to trigger the first time T1. recv Second trigger time T2 recv The second, defined time interval has not yet been generated. If the reference time interval is to cover the first trigger time T1 of the time interval containing the unknown end time... recv This could lead to the accidental deletion of useful data files.

[0160] Numerical analysis is performed based on the first trigger time within the time interval of the unknown end time to determine a first boundary value, which is less than a preset time threshold.

[0161] Optionally, avoid triggering the second trigger at time T2 if it is not received. recv Previously, useful data files were accidentally deleted. Given that there are multiple unknown end times, the trigger time T1 is the first trigger time within the time interval containing these multiple unknown end times. recv In the middle, a first boundary value T is determined. Switch The first limit value is multiple first trigger times T1 recv The minimum value in the preset time threshold is a reference value used to determine the minimum first trigger time.

[0162] Compare the first limit value with the preset interval endpoint value, and use the first limit value or the preset interval endpoint value as the endpoint value of the reference time interval based on the comparison result.

[0163] Optionally, the first boundary value T Switch and the preset interval endpoint value (T) all -T max The minimum value in the interval is determined as the endpoint value T of the reference time interval. delete This ensures that the reference time interval and the unknown second time interval [T1] are consistent. recv T2 recv [No intersection, will not lead to accidental deletion of useful data files, unknown second time interval refers to an undetermined second time interval with an unknown end time [T1] recv T unkownThe second time interval needs to be determined before the second trigger time T2 is obtained. recv Then, replace the unknown end time with the second trigger time T2. recv The second time interval to be determined becomes a second time interval with a definite start value and an end value [T1] recv T2 recv ].

[0164] The recording start time is used as the starting value of the reference time interval to determine the reference time interval; the reference time interval is used to determine the useless data file.

[0165] This invention, in the case of a detection result indicating the existence of an unknown end time, determines a first limit value based on the first trigger time of the time interval containing the unknown end time, thereby shortening the length of the reference time interval, avoiding accidental deletion of useful data files, enhancing the security and reliability of deleting useless data files, and improving data security.

[0166] In some possible embodiments, after generating the recorded file, the data recording control method further includes:

[0167] Record the recording end time.

[0168] Optionally, the user can invoke control processes and control parameters to specify that recording for certain topics should be stopped, and the end time at this point is recorded as T. stop .

[0169] Obtain the unknown end time from the recorded file.

[0170] Optionally, the control daemon process can obtain the unknown end time T for all current time intervals. unkown , will T stop Write the end time of the file to be written after data has been written, and delete blank files to be written that have not yet been written.

[0171] Replace the unknown end time in the recorded file with the recording termination time.

[0172] Optionally, all unknown end times T unkown Replace with recording end time T stop It should be noted that for the second type of tag, both the first and second trigger times need to be obtained. In some cases, only the first trigger time is obtained until the recording ends, and the second trigger time is not yet obtained. In order to close the time interval of the event tag, the recording end time is used as the second trigger time, so that the second type of tag has a complete second time interval.

[0173] Query the event tag mapping table and file information mapping table, and delete the file sequences that are not matched by the event tags. Write the event tag mapping table and file information mapping table to a file.

[0174] This invention, by recording the recording termination time when the recording process is terminated, replaces the unknown end time in the time interval with the recording termination time, making the second trigger time a known time. The second time interval has a complete time interval, which facilitates the analysis of event data corresponding to the event tags.

[0175] In addition, this application also provides a data playback control method, which, after the data recording control method, further includes:

[0176] Determine the event tags to be replayed from the event tags of the vehicle events.

[0177] Optionally, the event tag to be replayed refers to the event tag of the vehicle event to be replayed. The vehicle event to be replayed is the vehicle event corresponding to the data to be replayed. Since each vehicle event has a unique corresponding event tag, the event tag to be replayed needs to be determined in order to obtain the event data of a certain vehicle event for analysis. It should be noted that since the event tags of all vehicle events have been obtained during the recording process, the event tag to be replayed must exist in the event tags of all vehicle events.

[0178] The data is searched in the recorded file according to the identification information of the event tag to be played back, the data to be played back corresponding to the event tag to be played back is determined, and the data to be played back is played back.

[0179] Optionally, the identification information of the event tag to be replayed is information used to identify the event tag, which can be the event tag number. If the event tag to be replayed is a first type tag, the identification information is the first tag number; if it is a second type tag, the identification information is the second tag number.

[0180] Optionally, the event tag to be replayed is found in the event tag mapping table based on the identification information of the event tag to be replayed, and the time interval of the event tag to be replayed is obtained from the event tag to be replayed. If the event tag to be replayed is a first type tag, the time interval is the first time interval; if it is a second type tag, the time interval is the second time interval.

[0181] Furthermore, based on the first or second time interval, the corresponding time interval is searched in the recorded file, the data within the corresponding time interval is used as the data to be played back, and the data to be played back is played back.

[0182] This invention, by determining the event tag to be replayed, searches for and identifies the data to be replayed in the recorded file. This enables precise retrieval of the required data according to the needs of data analysis, improving the efficiency of data retrieval and saving resources and costs. By replaying the data to be replayed, key data can be viewed according to the needs of data analysis, improving the targeting and efficiency of data analysis.

[0183] In some possible embodiments, the step of searching for data in the recorded file based on the identifier information of the event tag to be played back, determining the data to be played back corresponding to the event tag, and playing back the data to be played back includes:

[0184] Based on the identification information of the event tag to be played back, data is searched in the recorded file to obtain the data to be played back corresponding to the event tag to be played back.

[0185] Optionally, the daemon process can be controlled to query the system process list to determine if the daemon process is unique. If it is unique, it can start normally; otherwise, it can exit.

[0186] Further, the control process is invoked to select the topic folder and the event tag identification information. Optionally, the topic folder contains recorded files for the same topic, as well as a management file for the recorded files for the same topic. The management file is obtained by writing based on the event tag mapping table and the file information mapping table.

[0187] Optionally, the daemon process queries the management file and obtains the time range of the event tag to be replayed based on the identification information of the event tag to be replayed. It then determines the recorded file containing the data to be replayed based on the time range. If there are multiple event tags to be replayed, the time ranges of the multiple event tags are combined. The daemon process then sends the obtained time range and the filename of the recorded file containing the data to be replayed to the library.

[0188] Furthermore, the library verifies the file information of the recorded files, checking whether the file version, file sequence, topic name, system byte order, and other information are correct. After confirming that the file information is correct, it determines the data to be played back from the recorded files according to the time interval, and retrieves the data to be played back into memory and provides it to the user process for playback.

[0189] The recording time interval is obtained by analyzing the recording time interval of the data to be played back;

[0190] Optionally, the recording time interval refers to the difference between the recording times of two adjacent frames of data when recording the data to be recorded.

[0191] The recording time interval is used as the playback time interval to play back the data to be played back until all the data to be played back has been played back.

[0192] Optionally, the playback time interval refers to the difference between the playback times of two adjacent frames of data when playing back the data to be played back.

[0193] It should be noted that the recording time interval between different adjacent frames may be different. Using the recording time interval as the playback time interval means that the recording time interval between two adjacent frames is used as the same playback time interval between two adjacent frames, thus ensuring that playback is performed at the same speed as the recorded data. Taking three adjacent data points a, b, and c in the data to be played back as an example, the time interval between data a and data b is 2ms, and the time interval between data b and data c is 4ms. Therefore, when playing back data a, b, and c, after playing back data a, wait 2ms before playing back data b, after playing back data b, wait 4ms before playing the next frame, and so on. Further details are omitted.

[0194] Alternatively, a timer can be used to calculate the recording time interval between every two adjacent frames of data, and this recording time interval can be denoted as time T. diff Recording time interval T diff The same two adjacent frames of data are played back as the playback interval, then the timer is cleared, and the timer is started again to obtain the next recording interval, and so on.

[0195] This invention analyzes the recording time of the data to be played back to obtain the recording time interval between two adjacent frames of data, and uses the recording time interval as the playback time interval between the same two frames of data. Playing back the data to be played back according to the recording speed is beneficial for restoring the situation in which the data was generated, and is more conducive to data analysis for a specific vehicle event, thereby improving the accuracy of the analysis.

[0196] Please see Figure 3 , Figure 3 This is a logical illustration of a data recording control method provided in an embodiment of the present invention. Figure 1 The data recording logic is as follows: complete the preliminary preparation, which includes checking whether the daemon process is unique, starting the daemon process, and calling the control process to issue control commands.

[0197] (1) The control library starts recording, the daemon process creates a file information mapping table, the library creates a topic folder and creates a file to be written, records the data to be recorded, writes the data to be recorded into the current file, and determines whether the writing time is greater than or equal to the first preset writing time. If so, the library creates a new file to be written and re-determines the current file. At the same time, the daemon process updates the file information mapping table and determines whether the total recording time is greater than or equal to the second preset time. If so, the daemon process starts deleting useless data files. If not, it continues to determine whether the writing time is greater than or equal to the first preset writing time.

[0198] (2) Control the daemon process to generate event tags and update the event tag mapping table based on the event tags.

[0199] (3) Control the stopping of recording, the daemon process updates the file information mapping table and event tag mapping table, deletes useless data files, and writes the file information mapping table and event tag mapping table to the file.

[0200] Please see Figure 4 , Figure 4 This is a logical illustration of a data recording control method provided in an embodiment of the present invention. Figure 2 The data playback logic is as follows: After completing the preliminary preparation, start the daemon process, call the control process to issue control commands, the daemon process finds the data to be played back, the class library verifies the correctness of the file and analyzes the recording time interval, if the file is correct, play back the data to be played back according to the recording time interval, and determine whether the data to be played back has been played back completely. If yes, end the playback; if no, continue the playback, or end the playback by issuing a stop playback command through the control process.

[0201] The technical solution of this invention has the following beneficial effects:

[0202] 1. This invention, by generating tags for vehicle events during data recording, establishes a relationship between vehicle event data and event tags. Through event tags, the corresponding vehicle event data to be replayed can be found in the recorded file, enabling targeted searching and playback of the data to be replayed. This saves resources and costs in data retrieval, improves data search efficiency, and helps enhance data analysis efficiency. Furthermore, it allows for searching using the identification information of event tags, quickly reproducing the data of the vehicle event corresponding to the event tag, and helps improve the efficiency of system algorithm development.

[0203] 2. This embodiment of the invention analyzes the tag type of vehicle events. When the tag type of a vehicle event is determined to be a first type tag, the attribute information corresponding to the vehicle event is obtained, and the first type tag corresponding to the first vehicle event is obtained. This can be used to find the corresponding data for a specific vehicle event during subsequent data playback, thereby improving the efficiency of data retrieval.

[0204] 3. In this embodiment of the invention, by performing tag type analysis on vehicle events, when it is determined that the tag type of the vehicle event is a second type tag, the attribute information corresponding to the vehicle event is obtained, especially the first trigger time and the second trigger time, to determine the second time interval and obtain the second type tag corresponding to the second vehicle event. This can be used to find the corresponding data for a specific vehicle event during subsequent data playback, thereby improving the efficiency of data retrieval.

[0205] 4. In this embodiment of the invention, when recording data under a topic folder, a primary and backup file creation process is designed. The data to be recorded under the same topic folder is written to different files to be written, avoiding the risk of data accumulation or even loss in memory caused by file switching, improving program reliability, and ensuring the integrity and security of the recorded data.

[0206] 5. This embodiment of the invention detects an unknown end time, determines a reference time interval based on the detection result, and determines the range of recorded files that can be deleted by using the reference time interval. This avoids accidental deletion of useful data files, improves the accuracy of file deletion, reduces disk physical space usage, and increases the update frequency of available disk space, thereby improving the effectiveness of disk space utilization.

[0207] 6. In this embodiment of the invention, when the detection result indicates the existence of an unknown end time, a first limit value is determined based on the first trigger time of the time interval where the unknown end time is located. This shortens the interval length of the reference time interval, avoids accidental deletion of useful data files, enhances the security and reliability of deleting useless data files, and improves data security.

[0208] 7. In this embodiment of the invention, by recording the recording termination time when the recording process is terminated, the unknown end time in the time interval is replaced with the recording termination time, so that the second trigger time becomes a known time. The second time interval has a complete time interval, which facilitates the analysis of the event data corresponding to the event tag.

[0209] 8. By determining the event tag to be replayed, the present invention searches for and determines the data to be replayed in the recorded file, which can accurately find the required data according to the needs of data analysis, improve the efficiency of data search, and save the resources and costs of data search. By replaying the data to be replayed, key data can be viewed according to the needs of data analysis, thereby improving the pertinence and efficiency of data analysis.

[0210] 9. In this embodiment of the invention, by analyzing the recording time of the data to be played back, the recording time interval between two adjacent frames of data is obtained, and the recording time interval is used as the playback time interval between the same two frames of data. The data to be played back is played back according to the recording speed, which is beneficial to restore the situation in which the data was generated and is more conducive to data analysis for a specific vehicle event, thereby improving the accuracy of the analysis.

[0211] Please see Figure 5 , Figure 5 This is a block diagram of a data recording control device provided in an embodiment of the present invention. Figure 5 As shown, the data recording control device may include at least:

[0212] The acquisition module 201 is used to acquire the file to be written, the data to be recorded, and vehicle events; the vehicle events are events that indicate that the vehicle is in a specific state or that the vehicle is at a specific time point.

[0213] The tag generation module 203 is used to perform tag generation processing on the vehicle event to obtain the event tag of the vehicle event; the event tag of the vehicle event is used to find the data to be replayed, and the event tag of the vehicle event carries the content information and time information of the vehicle event;

[0214] The data recording module 205 is used to perform data recording processing based on the event tags of the vehicle event, the data to be recorded, and the file to be written, and generate a recorded file; the recorded file is used to determine the data to be played back according to the event tags of the vehicle event.

[0215] Please see Figure 6 , Figure 6 This is a block diagram of a data playback control device provided in an embodiment of the present invention, such as... Figure 6 As shown, the data playback control device includes at least:

[0216] The tag selection module 301 is used to determine the event tags to be replayed from the event tags of the vehicle event;

[0217] The data playback module 303 is used to search for data in the recorded file according to the identification information of the event tag to be played back, determine the data to be played back corresponding to the event tag to be played back, and play back the data to be played back.

[0218] In some embodiments, the label generation module includes:

[0219] The first type analysis unit is used to perform tag type analysis on the vehicle event and determine that the tag of the vehicle event is a first type tag; the first type tag corresponds to a first vehicle event, and the first vehicle event is an event indicating that the vehicle is at a specific time node;

[0220] The first number generation unit is used to perform a tag number generation process on the vehicle event when it is determined that the tag of the vehicle event is a first type tag, so as to obtain the first tag number of the vehicle event.

[0221] A time acquisition unit is used to acquire a preset data extension time; the preset data extension time is less than a preset time threshold.

[0222] The time extraction unit is used to extract the occurrence time of the vehicle event to obtain the first occurrence time.

[0223] The first interval analysis unit is used to perform a first time interval analysis based on the first occurrence time and the preset data extension time to obtain a first time interval.

[0224] The first tag generation unit is used to perform tag generation processing on the first tag number, the first occurrence time, and the first time interval to obtain the event tag of the vehicle event.

[0225] In some embodiments, the label generation module includes:

[0226] The second type analysis unit is used to perform tag type analysis on the vehicle event and determine that the tag of the vehicle event is a second type tag; the second type tag corresponds to a second vehicle event; the second vehicle event is an event indicating that the vehicle is in a specific state;

[0227] The second number generation unit is used to perform tag number generation processing on the vehicle event to obtain the second tag number of the vehicle event.

[0228] A trigger time acquisition unit is used to acquire a first trigger time and a second trigger time of the vehicle event; the first trigger time is earlier than the second trigger time; the first trigger time is the start time of the specific state, and the second trigger time is the end time of the specific state;

[0229] The second interval analysis unit is used to take the first trigger time and the second trigger time as the start time and end time of the time interval, respectively, to obtain the second time interval;

[0230] The second tag generation unit is used to perform tag generation processing based on the second tag number, the first trigger time, the second trigger time, and the second time interval to obtain the event tag of the vehicle event.

[0231] In some embodiments, the data recording module includes:

[0232] The writing unit is used to determine any one of the files in the list of files to be written as the current file, and write the data to be recorded into the current file;

[0233] The first mapping table generation unit is used to generate an event tag mapping table based on the event tags of the vehicle events;

[0234] The write termination unit is used to obtain the write time and terminate the data writing to the current file when the write time is equal to the first preset write time; the write time is the time elapsed since the start time of recording the current file.

[0235] The first list update unit is used to delete the current file from the list of files to be written;

[0236] The second list update unit is used to create new files to be written and update the list of files to be written.

[0237] The repeating unit is used to repeat the step of obtaining any one of the files to be written from the file to be written table as the current file and updating the file to be written list until all the data to be recorded has been recorded, generating a number of the recorded files;

[0238] The second mapping table generation unit is used to perform file information recording processing based on several recorded files to obtain a file information mapping table.

[0239] In some embodiments, the data recording and playback control device further includes:

[0240] The mapping table acquisition module is used to acquire the event tag mapping table and the file information mapping table; the file information mapping table records the recording time interval of the recorded files; the event tag mapping table records several time intervals, and each of the several time intervals corresponds to a vehicle event;

[0241] The detection module is used to record the total

[0242] If the time is greater than or equal to the second preset time, an unknown end time detection is performed on several time intervals to obtain the detection result; the total recording time refers to the cumulative data recording time since the start time of the recording process, and the unknown end time refers to the second trigger time to be determined in the second time interval;

[0243] The detection and analysis module is used to perform reference time interval analysis based on the detection results and determine the reference time interval.

[0244] The comparison and analysis module is used to compare and analyze the reference time interval with several time intervals to identify useless data files from several recorded files;

[0245] The file deletion module is used to delete the useless data files;

[0246] The useless data files are recorded files that do not overlap with the reference time interval and several other time intervals.

[0247] In some embodiments, the detection and analysis module includes:

[0248] The first endpoint value setting unit is used to set the preset interval endpoint value as the endpoint value of the reference time interval when the detection result indicates that there is no unknown end time.

[0249] The first interval determination unit is used to determine the reference time interval by taking the start time of the recording process as the starting value of the reference time interval; the reference time interval is used to determine useless data files.

[0250] In some embodiments, the detection and analysis module includes:

[0251] The first trigger time acquisition unit is used to acquire the first trigger time of the time interval in which the unknown end time is located when the detection result indicates the existence of the unknown end time;

[0252] The trigger time analysis unit is used to perform numerical analysis based on the first trigger time of the time interval in which the unknown end time is located, and to determine a first limit value, wherein the first limit value is less than a preset time threshold.

[0253] The second endpoint value setting unit is used to compare the size of the first limit value with the preset interval endpoint value, and to use the first limit value or the preset interval endpoint value as the endpoint value of the reference time interval based on the size comparison result.

[0254] The second interval determination unit is used to determine the reference time interval by taking the start time of the recording process as the starting value of the reference time interval; the reference time interval is used to determine the useless data file.

[0255] In some embodiments, the data recording and playback control device further includes:

[0256] The termination time recording module is used to record the recording termination time;

[0257] The time acquisition module is used to acquire the unknown end time in the recorded file;

[0258] The time replacement module is used to replace the unknown end time in the recorded file with the recording termination time.

[0259] In some embodiments, the data playback module includes:

[0260] The data lookup unit is used to search for data in the recorded file based on the identification information of the event tag to be played back, and to obtain the data to be played back corresponding to the event tag to be played back;

[0261] The recording time interval analysis unit is used to analyze the recording time interval of the data to be played back and obtain the recording time interval.

[0262] The data playback unit is used to play back the data to be played back by using the recording time interval as the playback time interval until all the data to be played back has been played back.

[0263] It should be noted that the device embodiments provided in this invention are based on the same inventive concept as the method embodiments described above.

[0264] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0265] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and server embodiments are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0266] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0267] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A data recording control method, characterized in that, The data recording control method includes: Acquire the file to be written, the data to be recorded, and vehicle events; the vehicle events are events that indicate that the vehicle is in a specific state or that the vehicle is at a specific time point. The vehicle events are processed to generate tags, resulting in event tags for the vehicle events. The event tags for the vehicle events are used to locate data to be replayed, and each event tag carries the content and time information of the vehicle event. The step of generating tags for the vehicle events to obtain event tags for the vehicle events includes: The vehicle event is analyzed by tag type, and the tag of the vehicle event is determined to be a first type tag; the first type tag corresponds to a first vehicle event, which is an event indicating that the vehicle is at a specific time node; If the label of the vehicle event is determined to be a first type of label, a label number generation process is performed on the vehicle event to obtain the first label number of the vehicle event. Obtain a preset data expansion time; the preset data expansion time is less than a preset time threshold. The occurrence time of the vehicle event is extracted to obtain the first occurrence time; Based on the first occurrence time and the preset data extension time, a first time interval is obtained by performing a first time interval analysis. The first tag number, the first occurrence time, and the first time interval are processed to generate a tag for the vehicle event; Alternatively, the step of generating tags for the vehicle events to obtain event tags for the vehicle events includes: The vehicle event is analyzed for its tag type, and the tag of the vehicle event is determined to be a second type tag; the second type tag corresponds to a second vehicle event; the second vehicle event is an event indicating that the vehicle is in a specific state; The vehicle event is processed to generate a second tag number, resulting in the vehicle event's second tag number. Obtain the first trigger time and the second trigger time of the vehicle event; the first trigger time is earlier than the second trigger time; the first trigger time is the start time of the specific state, and the second trigger time is the end time of the specific state; The first trigger time and the second trigger time are respectively used as the start and end times of the time interval to obtain the second time interval; Tag generation processing is performed based on the second tag number, the first trigger time, the second trigger time, and the second time interval to obtain the event tag of the vehicle event; Data recording processing is performed based on the event tags of the vehicle event, the data to be recorded, and the file to be written to generate a recorded file; the recorded file is used to determine the data to be played back based on the event tags of the vehicle event. The data to be recorded refers to all the data currently to be recorded.

2. The data recording control method according to claim 1, characterized in that, The number of files to be written is at least two. The data recording process based on the event tags of the vehicle event, the data to be recorded, and the files to be written, to generate a recorded file, includes: Select any one of the files to be written from the list of files to be written as the current file, and write the data to be recorded into the current file; An event tag mapping table is generated based on the event tags of the vehicle events; The write time is obtained, and if the write time is equal to the first preset write time, the data writing to the current file is terminated; the write time is the time elapsed since the recording start time of the current file. Delete the current file from the list of files to be written; Create new files to be written and update the list of files to be written; Repeat the steps of obtaining any one of the files to be written from the list of files to be written as the current file and updating the list of files to be written until all the data to be recorded has been recorded, generating a number of the recorded files; Based on several recorded files, file information recording processing is performed to obtain a file information mapping table.

3. The data recording control method according to claim 2, characterized in that, The data recording control method further includes: Obtain the event tag mapping table and the file information mapping table; the file information mapping table records the recording time interval of the recorded files; the event tag mapping table records several time intervals, and each of the several time intervals corresponds to a vehicle event; If the total recording time is greater than or equal to the second preset time, an unknown end time detection is performed on several time intervals to obtain a detection result; the total recording time refers to the cumulative data recording time since the start time of the recording process, and the unknown end time refers to the second trigger time to be determined in the second time interval; Based on the detection results, a reference time interval analysis is performed to determine the reference time interval; The reference time interval is compared and analyzed with several other time intervals to identify useless data files from several recorded files; Delete the useless data files; The useless data files are recorded files that do not overlap with the reference time interval and several other time intervals.

4. The data recording control method according to claim 3, characterized in that, The step of performing reference time interval analysis based on the detection results to determine the reference time interval includes: If the detection result indicates that there is no unknown end time, the preset interval end value is used as the end value of the reference time interval. The recording start time is used as the starting value of the reference time interval to determine the reference time interval; the reference time interval is used to identify useless data files.

5. The data recording control method according to claim 3, characterized in that, The step of performing reference time interval analysis based on the detection results to determine the reference time interval includes: If the detection result indicates the existence of the unknown end time, obtain the first trigger time of the time interval in which the unknown end time is located; Numerical analysis is performed based on the first trigger time within the time interval of the unknown end time to determine a first boundary value, which is less than a preset time threshold. Compare the first limit value with the preset interval endpoint value, and use the first limit value or the preset interval endpoint value as the endpoint value of the reference time interval based on the comparison result. The recording start time is used as the starting value of the reference time interval to determine the reference time interval; the reference time interval is used to determine the useless data file.

6. The data recording control method according to claim 5, characterized in that, After generating the recorded file, the data recording control method further includes: Record the recording end time; Obtain the unknown end time from the recorded file; Replace the unknown end time in the recorded file with the recording termination time.

7. A data playback control method, characterized in that, Following the data recording control method as described in any one of claims 1-6, the data playback control method includes: Determine the event tags to be replayed from the event tags of the vehicle events; The data is searched in the recorded file according to the identification information of the event tag to be played back, the data to be played back corresponding to the event tag to be played back is determined, and the data to be played back is played back.

8. The data playback control method according to claim 7, characterized in that, The step of searching for data in the recorded file based on the identifier information of the event tag to be played back, determining the data to be played back corresponding to the event tag, and playing back the data to be played back includes: Based on the identification information of the event tag to be played back, data is searched in the recorded file to obtain the data to be played back corresponding to the event tag to be played back; The recording time interval is obtained by analyzing the recording time interval of the data to be played back; The recording time interval is used as the playback time interval to play back the data to be played back until all the data to be played back has been played back.

9. A data recording control device, characterized in that, The data recording control device includes: The acquisition module is used to acquire the file to be written, the data to be recorded, and vehicle events; the vehicle events are events that indicate that the vehicle is in a specific state or that the vehicle is at a specific time point. A tag generation module is used to perform tag generation processing on the vehicle events to obtain event tags for the vehicle events; the event tags of the vehicle events are used to find data to be replayed, and the event tags of the vehicle events carry the content information and time information of the vehicle events; the tag generation processing of the vehicle events to obtain event tags includes: performing tag type analysis on the vehicle events to determine that the tag of the vehicle events is a first type tag; the first type tag corresponds to a first vehicle event, and the first vehicle event is an event indicating that the vehicle is at a specific time node; when the tag of the vehicle events is determined to be a first type tag, performing tag number generation processing on the vehicle events to obtain a first tag number of the vehicle events; obtaining a preset data extension time; the preset data extension time is less than a preset time threshold; performing occurrence time extraction processing on the vehicle events to obtain a first occurrence time; performing a first time interval analysis based on the first occurrence time and the preset data extension time to obtain a first time interval; and combining the first tag number with the first time interval. The process involves generating a tag for the vehicle event based on the occurrence time and the first time interval; or, generating a tag for the vehicle event includes: performing tag type analysis on the vehicle event to determine that the tag for the vehicle event is a second type tag; the second type tag corresponds to a second vehicle event; the second vehicle event is an event indicating that the vehicle is in a specific state; generating a tag number for the vehicle event to obtain a second tag number for the vehicle event; obtaining a first trigger time and a second trigger time for the vehicle event; the first trigger time is earlier than the second trigger time; the first trigger time is the start time of the specific state, and the second trigger time is the end time of the specific state; using the first trigger time and the second trigger time as the start and end times of the time interval respectively to obtain a second time interval; and generating a tag based on the second tag number, the first trigger time, the second trigger time, and the second time interval to obtain the event tag for the vehicle event. The data recording module is used to perform data recording processing based on the event tags of the vehicle event, the data to be recorded, and the file to be written, and generate a recorded file; the recorded file is used to determine the data to be played back based on the event tags of the vehicle event.

Citation Information

Patent Citations

  • Vehicle driving data processing method, device, equipment, medium and system

    CN115712765A