Method for extracting data from data recording system, data recording system, vehicle and computer program product

By performing appropriate format conversion and data extraction strategies based on the remaining storage space of the data recording system and the required storage space relationship of the data to be extracted, the problem of data extraction failure in the autonomous driving data recording system is solved, and the reliability and integrity of data extraction are achieved.

CN119719201APending Publication Date: 2025-03-28MERCEDES BENZ GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411818426.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

When extracting data from an autonomous driving data recording system, data extraction fails when insufficient storage space is insufficient because the storage space occupied by data in JSON format is larger than the original data in binary format.

Method used

Different format conversion and data extraction strategies are performed according to the size relationship of the remaining storage space of the data recording system and the required storage space required for format conversion of event data to be extracted, including switching between volatile memory and nonvolatile memory, and sending notification information to extract data in batches when the storage space is insufficient.

Benefits of technology

It effectively avoids data extraction failure due to insufficient storage space, ensuring the success and integrity of data extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119719201A_ABST
    Figure CN119719201A_ABST
Patent Text Reader

Abstract

The present application relates to a method for extracting data from a data recording system, comprising: in response to received data extraction request information, determining a remaining storage space of the data recording system (1) comprising a first remaining storage space of a non-volatile memory (11) and a second remaining storage space of a volatile memory (12) of the data recording system (S1); calculating a required storage space required for format conversion of to-be-extracted event data determined on the basis of the data extraction request information (S2); and according to a size relationship between the determined residual storage space and the calculated required storage space, performing format conversion on the event data to be extracted and extracting the event data subjected to format conversion from the data recording system (1) (S3). According to the data extraction method and device, the situation that data cannot be extracted due to the fact that the storage space of the nonvolatile memory and / or the volatile memory of the data recording system is insufficient in the data extraction process can be effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle data processing, and in particular to a method for extracting data from a data recording system, a data recording system, a vehicle comprising the data recording system according to the present application, and a computer program product for at least assisting in implementing the steps of the method described in the present application. Background Art

[0002] According to the regulatory authorities' standards for autonomous driving data recording systems for intelligent connected vehicles, the format of data extracted from autonomous driving data recording systems is uniformly required to be JSON (Java Script Object Notation, JS object notation), which is easy to read and write, and easy for machines to parse and generate. However, compared with the original data in binary format stored in the autonomous driving data recording system, the data in JSON format occupies much more storage space. For example, after 2GB of original binary data is converted into JSON format data, the data volume may increase to 7GB. At this time, if the remaining storage space of the autonomous driving data recording system is less than 7GB, the data will be damaged during the format conversion process or the data conversion cannot be completed, which will lead to data extraction failure.

[0003] Therefore, there is room for improvement in the current data extraction methods from autonomous driving data recording systems. Summary of the invention

[0004] The object of the present application is to provide a method for extracting data from a data recording system, a data recording system, a vehicle including the data recording system according to the present application, and a computer program product, so as to at least partially solve the problems in the prior art.

[0005] According to a first aspect of the present application, there is provided a method for extracting data from a data recording system, the method comprising the following steps:

[0006] - in response to the received data extraction request information, determining the remaining storage space of the data recording system, wherein the remaining storage space includes a first remaining storage space of the non-volatile memory of the data recording system and a second remaining storage space of the volatile memory;

[0007] - calculating the required storage space required for format conversion of the event data to be extracted based on the data extraction request information; and

[0008] -Converting the format of the event data to be extracted according to the size relationship between the determined remaining storage space and the calculated required storage space, and extracting the event data after the format conversion from the data recording system.

[0009] The core concept of the present application is to execute different format conversion and data extraction strategies according to the relationship between the remaining storage space of the data recording system and the required storage space required for the format conversion of the event data to be extracted, thereby effectively avoiding the situation in which data cannot be extracted during the data extraction process due to insufficient storage space in the non-volatile memory and / or volatile memory of the data recording system.

[0010] According to an optional embodiment of the present application, when the second remaining storage space is greater than or equal to the required storage space, the format of the event data to be extracted can be converted to the volatile memory, and the format-converted event data can be extracted from the volatile memory.

[0011] According to another optional embodiment of the present application, when the second remaining storage space is smaller than the required storage space and the first remaining storage space is greater than or equal to the required storage space, the format of the event data to be extracted can be converted to the non-volatile memory, and the format-converted event data can be extracted from the non-volatile memory.

[0012] According to another optional embodiment of the present application, when the first remaining storage space and the second remaining storage space are both smaller than the required storage space, and the sum of the first remaining storage space and the second remaining storage space is greater than or equal to the required storage space, the event data to be extracted can be format-converted to the volatile memory and the non-volatile memory respectively, and the format-converted event data can be extracted from the volatile memory and the non-volatile memory respectively.

[0013] According to another optional embodiment of the present application, when both the first remaining storage space and the second remaining storage space are smaller than the required storage space, and the sum of the first remaining storage space and the second remaining storage space is smaller than the required storage space, a first notification message about insufficient storage space of the data recording system and / or a second notification message about batch extraction of event data are sent to an external data extraction device. Optionally, the second notification message may include a timestamp event date interval that can be extracted in batches, the number of times the time period event data is extracted in batches, and / or request information that should be sent when extracting in batches, etc., determined based on the remaining storage space size of the data recording system and the received data extraction request information.

[0014] According to another optional embodiment of the present application, the format of the event data to be extracted may be converted into a JSON format.

[0015] According to another optional embodiment of the present application, the data extraction request information may include a time interval of a timestamp event to be extracted, and / or a sequence number of a time period event to be extracted.

[0016] According to another optional embodiment of the present application, the data recording system may include an automatic driving data recording system.

[0017] According to another optional embodiment of the present application, various timestamp event frame data objects corresponding to the time interval in the data extraction request information may be extracted from the data recording system, wherein each timestamp event frame data object may include multiple data entry objects.

[0018] According to another optional embodiment of the present application, time period event data and picture / video objects or paths corresponding to the serial number in the data extraction request information can be extracted from the data recording system, wherein each time period event data object may include multiple frame data objects, wherein each frame data object includes multiple data entry objects.

[0019] According to a second aspect of the present application, a data recording system is provided, and the data recording system may include the following components:

[0020] - a non-volatile memory and a volatile memory configured to store event data and format-converted event data;

[0021] - a data transceiver unit, through which data extraction request information is received and format-converted event data to be extracted is sent; and

[0022] - A control unit configured to perform the method according to the application.

[0023] According to a third aspect of the present application, a vehicle is provided, comprising the data recording system according to the present application.

[0024] According to a fourth aspect of the present application, a computer program product, such as a computer-readable program carrier, is provided, which contains or stores computer program instructions, and when the computer program instructions are executed by a processor, they at least assist in implementing the steps of the method described in the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The principles, features and advantages of the present application may be better understood by describing the present application in more detail below with reference to the accompanying drawings. The accompanying drawings show:

[0026] Figure 1 A flowchart showing a method for extracting data from a data recording system according to an exemplary embodiment of the present application;

[0027] Figure 2 A schematic block diagram showing a data recording system according to an exemplary embodiment of the present application; and

[0028] Figure 3 A schematic diagram of a vehicle according to an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0029] In order to make the technical problems, technical solutions and beneficial technical effects to be solved by the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and multiple exemplary embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the scope of protection of the present application.

[0030] Figure 1 The flowchart of the method for extracting data from a data recording system according to an exemplary embodiment of the present application is shown. The following exemplary embodiments describe the method according to the present application in more detail.

[0031] In the current embodiment of the present application, the data recording system 1 of the vehicle 10 can be configured as an automatic driving data recording system, which includes a non-volatile memory 11 and a volatile memory 12. During the operation of the vehicle 10, the data recording system 1 stores the event data to be recorded, including time period event data and time stamp event data, as raw data in a binary format, and in particular stores it in the non-volatile memory 11.

[0032] Before the external data extraction device 2 extracts data from the data recording system 1, the external data extraction device 2 must establish a normal network connection with the data recording system 1, and then the external data extraction device 2 sends a data extraction request message to the data transceiver unit 13 of the data recording system 1. The data extraction request message may include not only the time interval of the time stamp event to be extracted, which is the time parameter required when the external data extraction device 2 drives the electronic controller to integrate data, but also the sequence number of the time period event to be extracted, which is the parameter required when the external data extraction device 2 drives the electronic controller to integrate the data of a single time period event, wherein the upper limit of the sequence number depends on the maximum number of time period events that the data recording system 1 can record.

[0033] Next, the method for extracting data from a data recording system according to the present application is performed in the data recording system 1. Figure 1As shown, the method may include steps S1 to S3. In step S1, in response to the received data extraction request information, the remaining storage space of the data recording system 1 may be determined, wherein the remaining storage space may include a first remaining storage space of the non-volatile memory 11 and a second remaining storage space of the volatile memory 12 of the data recording system 1. In the meaning of the present application, "remaining storage space" refers to the storage space remaining after storing the original data in binary format in the memory, and the remaining storage space can be used for subsequent event data recording and can also be used to store format-converted event data.

[0034] In step S2, the required storage space required for the format conversion of the event data to be extracted determined based on the data extraction request information can be calculated. Here, the timestamp event to be extracted can be determined based on the time interval in the data extraction request information; the time period event to be extracted can be determined based on the sequence number in the data extraction request information. According to the regulatory standards for the automatic driving data recording system of intelligent networked vehicles, in addition to the external images or video data about the driving environment recorded during driving, other data extracted from the data recording system 1 are required to be converted into JSON format, which is easy to read and write, and easy to machine parse and generate, while these external images or video data still retain their original format. Compared with the original data in binary format stored in the data recording system 1, the storage space occupied by the data in JSON format is much larger. For example, after 2GB of original data in binary format is converted into data in JSON format, the data volume may increase to 7GB.

[0035] In step S3, the event data to be extracted may be format-converted according to the size relationship between the determined remaining storage space and the calculated required storage space, and the event data after format conversion may be extracted from the data recording system 1. Here, it is necessary not only to compare the size relationship between the first remaining storage space and the calculated required storage space, and the size relationship between the second remaining storage space and the calculated required storage space separately, but also to compare the size relationship between the sum of the first remaining storage space and the second remaining storage space and the calculated required storage space, and to perform different format conversion and data extraction strategies according to the size relationship.

[0036] In the case where the second remaining storage space is greater than or equal to the required storage space, the format of the event data to be extracted can be converted to the volatile memory 12, and the event data after format conversion can be extracted from the volatile memory 12. Considering that the service life of the volatile memory 12 is much longer than that of the non-volatile memory 11 (non-volatile memory usually has a maximum number of write / erase cycles that it can support), when the second remaining storage space of the volatile memory 12 is sufficient, the format conversion of the original event data and the data extraction in JSON format can be preferentially performed in the volatile memory 12.

[0037] In the case where the second remaining storage space is smaller than the required storage space and the first remaining storage space is greater than or equal to the required storage space, the format of the event data to be extracted can be converted to the non-volatile memory 11, and the event data after format conversion can be extracted from the non-volatile memory 11. Since the event data after format conversion cannot be completely stored in the volatile memory 12, but the event data after format conversion can be completely stored in the non-volatile memory 11, the format conversion of the original event data and the data extraction in JSON format can be performed in the non-volatile memory 11.

[0038] In the case where both the first remaining storage space and the second remaining storage space are smaller than the required storage space, and the sum of the first remaining storage space and the second remaining storage space is greater than or equal to the required storage space, the event data to be extracted are format-converted to the volatile memory 12 and the non-volatile memory 11, respectively, and the format-converted event data are extracted from the volatile memory 12 and the non-volatile memory 11, respectively. Here, the format-converted event data cannot be completely stored independently in the non-volatile memory 11 and the volatile memory 12, but the non-volatile memory 11 and the volatile memory 12 can cooperate with each other, for example, to store the format-converted event data in a segmented manner. Optionally, the event data to be extracted can be preferentially format-converted to the volatile memory 12, and after the second remaining storage space is full or about to be full, that is, the remaining storage space cannot completely store a time period event or the format-converted data of the complete event stamp event of the required time period, the remaining event data to be extracted can be format-converted to the non-volatile memory 11, and then the JSON format data of each time period event and / or timestamp event can be extracted piece by piece from the volatile memory 12 and the non-volatile memory 11 respectively.

[0039] Here, the format-converted timestamp event data can be extracted from the data recording system 1 based on the time interval in the data extraction request information, and the data file corresponding to the timestamp event exported in JSON format at least includes each timestamp event frame data object corresponding to the time interval, wherein each timestamp event frame data object includes multiple data entry objects. The format-converted time period event data can also be extracted from the data recording system 1 based on the sequence number in the data extraction request information, and the data file corresponding to the time period event exported in JSON format at least includes each time period event data object corresponding to the sequence number and a graphic / video object or path about the driving environment, wherein each time period event data object includes multiple frame data objects, wherein each frame data object includes multiple data entry objects. The data file corresponding to the event data exported in JSON format should be named at least including the vehicle identification code (VIN code), and the name of the timestamp event and / or time period event data.

[0040] It should be noted that when extracting data from the data recording system 1, the graphic / video data corresponding to the time period event data can be directly stored in the data file corresponding to the time period event exported in JSON format, or the graphic / video data corresponding to the time period event data can be stored as a separate file, and the path and file name of the graphic / video data corresponding to the time period event data can be stored in the data file corresponding to the time period event exported in JSON format.

[0041] In the case where both the first remaining storage space and the second remaining storage space are smaller than the required storage space, and the sum of the first remaining storage space and the second remaining storage space is smaller than the required storage space, this means that the non-volatile memory 11 and the volatile memory 12 cannot fully store the format-converted event data even if they cooperate with each other, and a first notification message about insufficient storage space of the data recording system 1 can be sent to the external data extraction device 2 through the data transceiver unit 13. Optionally, a second notification message about batch extraction of event data can also be sent to the external data extraction device 2 through the data transceiver unit 13. Here, the second notification information may include a timestamp event date interval that can be extracted in batches based on the remaining storage space size of the data recording system 1 and the received data extraction request information, for example, a request for data from January 1, 2025 to December 1, 2025 is notified that the data can be extracted in three segments from January 1, 2025 to March 31, 2025, from April 1, 2025 to October 31, 2025, and from November 1, 2025 to December 1, 2025 due to insufficient storage space; the second notification information may also include the number of times the time period event data is extracted in batches and the request information to be sent when extracting in batches, for example, the time period event data with request number 2 is notified that it can be extracted in batches due to insufficient storage space, and the external data extraction device should request the event data twice with sequence numbers 201 and 202. It is understandable that, under normal circumstances where there is no need to extract time period event data in batches, the data recording system 1 will not divide the time period event data of sequence number 2 into time period event data of sequence numbers 201 and 202, and the data recording system 1 will not make any positive response to the data extraction request information of sequence numbers 201 and 202.

[0042] According to the present application, different format conversion and data extraction strategies are executed according to the size relationship between the remaining storage space of the data recording system and the required storage space required for the format conversion of the event data to be extracted, thereby effectively avoiding the situation in which data cannot be extracted during the data extraction process due to insufficient storage space in the non-volatile memory and / or volatile memory of the data recording system.

[0043] In addition, it should be noted that the step numbers described herein do not necessarily represent a chronological order, but are merely a figure mark. The order can be changed according to specific circumstances as long as the technical purpose of the present application can be achieved.

[0044] Figure 2 A schematic block diagram of a data recording system according to an exemplary embodiment of the present application is shown.

[0045] like Figure 2 As shown, the data recording system 1 may include the following components:

[0046] - a non-volatile memory 11 and a volatile memory 12, which are configured to store event data and format-converted event data;

[0047] - a data transceiver unit 13, through which data extraction request information of the external data extraction device 2 is received and format-converted event data to be extracted is sent to the external data extraction device 2; and

[0048] A control unit 14 configured to carry out the method according to the present application.

[0049] Figure 3 A schematic diagram of a vehicle according to an exemplary embodiment of the present application is shown.

[0050] like Figure 3 As shown, the vehicle 10 includes the data recording system 1 according to the present application, and the external data extraction device 2 arranged outside the vehicle 10 can extract event data related to the vehicle 10 from the data recording system 1 of the vehicle 10 .

[0051] It should be understood that, in this document, the expressions "first", "second", "third", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance, nor should they be understood as implicitly indicating the number of the indicated technical features.

[0052] If an embodiment includes an “and / or” association between a first feature and a second feature, it should be interpreted as follows: according to one embodiment, the embodiment has both the first feature and the second feature, and according to another embodiment, the embodiment has either only the first feature or only the second feature.

[0053] Although specific embodiments have been described above, these embodiments are not intended to limit the scope of the present disclosure, even when only a single embodiment is described with respect to specific features. The feature examples provided in the present disclosure are intended to be illustrative, not restrictive, unless otherwise stated. In specific implementations, multiple features may be combined with each other, where technically feasible, according to actual needs. Various substitutions, changes, and modifications may also be conceived without departing from the spirit and scope of the present application.

Claims

1. A method for extracting data from a data recording system (1), the method comprising the following steps: In response to the received data extraction request information, determining the remaining storage space of the data recording system (1), wherein the remaining storage space includes a first remaining storage space of the non-volatile memory (11) and a second remaining storage space of the volatile memory (12) of the data recording system (1); Calculating the required storage space required for format conversion of the event data to be extracted based on the data extraction request information; and According to the size relationship between the determined remaining storage space and the calculated required storage space, the event data to be extracted is format converted, and the event data after the format conversion is extracted from the data recording system (1).

2. The method according to claim 1, wherein: When the second remaining storage space is greater than or equal to the required storage space, the format of the event data to be extracted is converted to the volatile memory (12), and the event data after the format conversion is extracted from the volatile memory (12).

3. A method according to any one of the preceding claims, wherein: When the second remaining storage space is smaller than the required storage space and the first remaining storage space is greater than or equal to the required storage space, the format of the event data to be extracted is converted to the non-volatile memory (11), and the format-converted event data is extracted from the non-volatile memory (11).

4. A method according to any one of the preceding claims, wherein: When the first remaining storage space and the second remaining storage space are both smaller than the required storage space, and the sum of the first remaining storage space and the second remaining storage space is greater than or equal to the required storage space, the event data to be extracted are format-converted to the volatile memory (12) and the non-volatile memory (11), respectively, and the format-converted event data are extracted from the volatile memory (12) and the non-volatile memory (11), respectively.

5. A method according to any one of the preceding claims, wherein: When both the first remaining storage space and the second remaining storage space are smaller than the required storage space, and the sum of the first remaining storage space and the second remaining storage space is smaller than the required storage space, sending a first notification message about insufficient storage space of the data recording system (1) and / or a second notification message about batch extraction of event data to an external data extraction device (2); and / or The second notification information includes a time stamp event date interval that can be extracted in batches, determined based on the remaining storage space size of the data recording system (1) and the received data extraction request information, the number of times the time period event data is extracted in batches and / or the request information that should be sent when extracting in batches.

6. A method according to any one of the preceding claims, wherein: Convert the event data to be extracted into JSON format; and / or The data extraction request information includes the time interval of the time stamp event to be extracted, and / or the sequence number of the time period event to be extracted; and / or The data recording system (1) comprises an automatic driving data recording system.

7. A method according to any one of the preceding claims, wherein: Each time-stamped event frame data object corresponding to the time interval in the data extraction request information is extracted from the data recording system (1), wherein each time-stamped event frame data object includes a plurality of data entry objects; and / or Extracting time period event data and picture / video objects or paths corresponding to the sequence number in the data extraction request information from the data recording system (1), wherein each time period event data object includes a plurality of frame data objects, wherein each frame data object includes a plurality of data entry objects.

8. A data recording system (1), comprising the following components: A non-volatile memory (11) and a volatile memory (12) configured to store event data and format-converted event data; A data transceiver unit (13), through which data extraction request information is received and format-converted event data to be extracted is sent; and A control unit (14) configured to execute the method according to any one of claims 1 to 7.

9. A vehicle (10) comprising a data recording system (1) according to claim 8. 10 . A computer program product, such as a computer-readable program carrier, comprising or storing computer program instructions, which, when executed by a processor, at least assist in implementing the steps of the method according to claim 1 .