Collision event data recording method and collision event data reading method
By pre-classifying and allocating the vehicle collision data blocks, the problem of data loss caused by EDR power outage is solved, and the effect of recording some data blocks in the event of power outage is achieved.
Patent Information
- Application Number
- CN202011617674.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2040-12-30
AI Technical Summary
In the event of a vehicle collision, the event data recording device (EDR) may be powered off due to hardware damage, resulting in the inability to record the data blocks in full, resulting in data loss.
By pre-classifying data blocks to the first and second categories, different storage space is allocated for each category of data blocks. In the event of a power outage, different recording methods are used to ensure that at least some data blocks are recorded.
Even if the capacitor's power cannot be supported until the start of data recording, some data blocks can still be recorded to avoid the loss of the entire data block.
Smart Images

Figure CN114691018B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile passive safety, and in particular to a collision event data recording method and a collision event data reading method. Background Art
[0002] With the popularization of vehicles, more and more traffic accidents occur in daily life, and people pay more and more attention to traffic and automobile safety. When a vehicle collides, the vehicle's event data recorder (EDR), sometimes called the vehicle's "black box", is usually used to record information related to the collision for subsequent analysis of the cause of the accident, which is crucial to improving the passive safety of automobiles and avoiding accidents.
[0003] Currently, most vehicles have EDRs that are part of the restraint system control module, which senses collision acceleration and determines what restraints (airbags and / or seatbelt tensioners) to configure. After a physical collision, the vehicle event data recorder (EDR) will first collect the collision-related information into several data blocks in RAM (Random Access Memory), and will only record it into non-volatile memory after the data collection of a data block is completed.
[0004] However, when an event occurs, the EDR may be powered off due to damage to the vehicle hardware. In this case, the energy reserve in the capacitor of the restraint system control module can continue to power the EDR. If the power of the capacitor cannot support the end of the collection of a data block or cannot record the data block completely, the EDR will lose the data of the entire data block.
[0005] In summary, it is necessary to provide an improved collision event data recording method and device to solve the problems in the prior art. Summary of the invention
[0006] The present invention is completed to solve the above-mentioned problem, and its purpose is to provide a collision event data recording method, even if the power of the capacitor cannot support the moment when a certain data block of collision data is collected, the event data recording device will record part of the data block without losing the entire data block. The present invention also provides a collision event data reading method corresponding to the above-mentioned collision event data recording method, so as to read the collision data recorded by the above-mentioned collision event data recording method.
[0007] According to one aspect of the present invention, there is provided a collision event data recording method, which is used for recording collision data, wherein the collision data includes N data blocks, and is characterized in that it includes the following steps: a classification step, which classifies the N data blocks into first-category data and second-category data based on a preset data collection time and a first moment of each of the N data blocks, wherein the first moment is the minimum moment for meeting the recording condition, wherein N≥1; a storage space allocation step, which allocates a storage space to each of the data blocks belonging to the first category of data, and allocates a first storage space and a second storage space to each of the data blocks belonging to the second category of data; and a collision data recording step, which adopts different recording methods according to whether the event data recording device is powered off when a collision occurs and the recording condition is met.
[0008] Preferably, the data collection time includes the data collection start time and the data collection end time respectively. In the classification step, if the data collection end time of the i-th data block among the N data blocks is less than or equal to the first time, then the i-th data block is the first category data; if the data collection end time of the i-th data block among the N data blocks is greater than the first time, then the i-th data block is the second category data, where i is 1, 2,..., N.
[0009] Preferably, in the collision data recording step, when a collision occurs, the recording conditions are met and the event data recording device is not powered off, it is further determined whether the i-th data block among the N data blocks is the first category data or the second category data. If the i-th data block is the first category data, the collected i-th data block is written into the storage space from the start time of data recording of the i-th data block. If the i-th data block is the second category data, the collected i-th data block is written into the second storage space from the start time of data recording of the i-th data block.
[0010] Preferably, in the collision data recording step, when a collision occurs, the recording conditions are met and the event data recording device is powered off, it is further determined whether the i-th data block among the N data blocks is the first category data or the second category data. When the i-th data block is the first category data, the collected i-th data block is written into the storage space from the start time of data recording of the i-th data block. When the i-th data block is the second category data, the collected i-th data block is written into the first storage space at a second time, and the collected i-th data block is written into the second storage space from the start time of data recording of the i-th data block.
[0011] Preferably, in the event of a power outage in the event data recording device, the first moment, the second moment, the data collection start moment, the data collection end moment, and the data recording start moment are all converted into moments starting from the power outage moment of the event data recording device.
[0012] Preferably, the second time is set according to the charge of a capacitor when the event data recording device is powered off.
[0013] Preferably, the first moment is less than or equal to the second moment.
[0014] Preferably, the first storage space and the second storage space have the same size.
[0015] According to another aspect of the present invention, a method for reading collision event data of a diagnostic tool is provided, characterized in that the method for reading collision event data is used to read collision event data recorded by the collision event data recording method involved in one aspect of the present invention, and the method for reading collision event data comprises the following steps: a judgment step, in which the i-th data block among N data blocks is second-category data, wherein N≥1, i is 1, 2, ..., N; a first-category data reading step, in which, if it is judged in the judgment step that it is first-category data, the data in the storage space is read; and a second-category data reading step, in which, if it is judged in the judgment step that it is second-category data, a first verification step and a second verification step are further performed, the first verification step verifies whether the data in the second storage space is valid, and if the data in the second storage space is valid, the data in the second storage space is read, and if it is verified in the first verification step that the data in the second storage space is invalid, the second verification step verifies whether the data in the first storage space is valid, and if the data in the first storage space is valid, the data in the first storage space is read.
[0016] According to another aspect of the present invention, there is provided an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the collision event data recording method involved in one aspect of the present invention is implemented.
[0017] According to another aspect of the present invention, a storage medium is provided, wherein instructions are stored in the storage medium, and when the instructions are executed on a computer, the computer executes the collision event data recording method involved in one aspect of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1It is a flow chart of a collision event data recording method according to an embodiment of the present invention.
[0019] Figure 2 This is a data collection and recording timing diagram of the first data block and the second data block of an example described in an embodiment of the present invention.
[0020] Figure 3 It is an example diagram of storing constraint data using the collision event data recording method involved in an embodiment of the present invention.
[0021] Figure 4 It is a flow chart of a method for reading collision event data according to an embodiment of the present invention.
[0022] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0024] The terms used herein are only used to describe specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof is not excluded.
[0025] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.
[0026] Figure 1 It is a flow chart of a collision event data recording method according to an embodiment of the present invention.
[0027] As mentioned above, after a physical collision occurs in a vehicle, the vehicle event data recorder (EDR) will first divide the collision data into several data blocks and collect the data into RAM. After the recording conditions are met and a data block is collected, it will be stored in the memory. In addition, since the characteristics of each data block are different, the data collection time and data recording time of each data block are different. The data collection time and data recording time of each data block are pre-set in the EDR, where the data collection time includes the start time of data collection and the end time of data collection, and the data recording time includes the start time of data recording and the end time of data recording.
[0028] The collision data includes the first data block, the second data block, ... the Nth data block, where N≥1.
[0029] Here, only the first data block and the second data block are used as examples for explanation. Assume that the first data block is information related to the use and deployment status of the restraint system (airbag, seat belt), which is referred to as restraint data; the second data block is data related to the driving status of the vehicle, which is referred to as vehicle data.
[0030] Figure 2 This is a data collection and recording timing diagram of the first data block and the second data block of an example described in an embodiment of the present invention.
[0031] When a vehicle collides, the acceleration detected by the collision acceleration sensor will rise, reach a maximum value, and then fall. Usually, T0 is the moment when the acceleration rises and reaches a certain value (2g in this embodiment), Tend is the moment when the acceleration falls and reaches a certain value (2g in this embodiment), and Tqualify is the minimum moment when the recording condition is met, which is referred to as the first moment in the present invention. Figure 2 As shown, the data collection time and the data recording time of the first data block and the second data block are different.
[0032] For the first data block (constraint data), data collection starts from time T0, that is, T0 is the start time of data collection for the first data block. Deployment finished is the time when the detonation is completely completed. For the first data block, the time when the detonation is completely completed is the end time of data collection, and data recording starts at this time, that is, Deployment finished is also the start time of data recording for the first data block.
[0033] For the second data block (vehicle data), data collection starts from time T0 and can be completed quickly. Therefore, the collection is completed at the minimum time when the recording condition is met, that is, Tqualify, and data recording starts at Tqualify, that is, Tqualify is the start time of data recording for the second data block.
[0034] Below, based on Figure 1 and Figure 2 The collision event data recording method of the present invention is described.
[0035] like Figure 1 As shown, in step S101, the N data blocks are classified into first-category data and second-category data based on the data collection time of each of the N data blocks pre-set in the EDR. Specifically, the data collection end time in the data collection time of each data block is obtained, and the data collection end time of each data block is compared with the first time Tqualify. If the data collection end time of the i-th data block among the N data blocks is less than or equal to the first time Tqualify, then the i-th data block is the first-category data, and if the data collection end time of the i-th data block is greater than the first time Tqualify, then the i-th data block is the second-category data. Although the first time Tqualify is the minimum time to meet the recording conditions and varies according to each collision, the data collection and data recording of the N data blocks are usually triggered by several moments (T0, Tqualify) related to the collision, so they can be compared in advance. The first time Tqualify is generally less than or equal to 150ms.
[0036] In step S102, a storage space is allocated to each data block belonging to the first type of data, and a first storage space and a second storage space are allocated to each data block belonging to the second type of data, wherein the first storage space and the second storage space allocated to a data block have the same size.
[0037] In step S103, when a collision occurs and the recording condition is met, it is detected whether the event data recording device is powered off. If it is detected that a power outage has occurred (step S103 is yes), the timer is started at the moment when the power outage of the event data recording device is detected to count, and then the process proceeds to step S107. If no power outage has occurred (step S103 is no), the process proceeds to step S104.
[0038] In step S104, the event data recording device is not powered off, and further determines whether each data block is the first type of data. If it is determined to be the first type of data (step S104 is yes), proceed to step S105. If it is determined not to be the first type of data (step S104 is no), proceed to step S106.
[0039] In step S105, since each data block belongs to the first type of data, the existing collision data recording method can be used for these data blocks, that is, the collected data blocks are written into the storage space allocated in step S102 from the data recording start time of each data block.
[0040] In step S106, each data block belongs to the second type of data, so the collected data blocks are written into the second storage space allocated in step S102 starting from the data recording start time of each data block.
[0041] In step S107, since the event data recording device is powered off, it is further determined whether each data block is the first type of data. If it is determined to be the first type of data (step S107 is yes), the process proceeds to step S108. If it is determined not to be the first type of data (step S107 is no), the process proceeds to step S109.
[0042] In step S108, since each data block belongs to the first type of data, the existing collision data recording method can be used for these data blocks, that is, the collected data blocks are written into the storage space allocated in step S102 starting from the data recording start time of each data block.
[0043] In step S109, each data block belongs to the second category of data, so it is necessary to write each collected data block into the first storage space allocated in step S102 when the timer reaches the preset second moment TZ, and write each collected data block into the second storage space allocated in step S102 from the start moment of data recording of each data block. For China, EDR is required to record at least data within 150ms after power failure. Therefore, TZ is greater than or equal to 150ms. More preferably, the charge of the capacitor is detected at the moment of power failure, and the second moment TZ is set according to the charge of the capacitor to ensure that TZ still has charge to support EDR recording at the second moment, and can record data to the greatest extent.
[0044] When the event data recording device is powered off, the data collection start time, data collection end time, data recording start time, and data recording end time are converted into times starting from the power off time of the event data recording device.
[0045] Figure 3 The figure is an example of storing restraint system data using the collision event data recording method according to an embodiment of the present invention.
[0046] Figure 3In the figure, the horizontal axis represents time, the vertical axis represents acceleration, and the moment when the EDR is powered off (LOB) is taken as the origin. The constraint system data (the first data block) starts collecting data from the moment T0, that is, T0 is the start time of data collection for the first data block. Deployment finished is the moment when the detonation is completely completed. For the first data block, the moment when the detonation is completely completed is the end time of data collection, and data recording begins at this moment, that is, Deployment finished is also the start time of data recording for the first data block. Here, since the event data recording device is powered off, the start time of data collection, the end time of data collection, the start time of data recording, and the end time of data recording are all calculated from the moment when the event data recording device is powered off.
[0047] The data collection end time Deployment finished of the first data block (constraint data) mentioned above is greater than Tqualify, so the first data block is the second type of data.
[0048] In step S102 , a first storage space NVM1 and a second storage space NVM2 are allocated to the first data block.
[0049] After a collision occurs, the recording conditions are met, and the power failure of the event data recording device is detected, the data block is determined to be second-class data. Therefore, when the power failure of the event data recording device is detected, the timer is started to count. Figure 3 As shown, at the start time T0 of data collection, the data of the first data block is collected into RAM, and when the timer reaches TZ, the data of the first data block in RAM is written into NVM1. At the start time of data recording of the first data block, Deployment finished, the first data block collected in RAM is written into the second storage space NVM2.
[0050] Therefore, even if the power of the capacitor cannot last until the data recording start time Deployment finished, data up to TZ can at least be recorded.
[0051] Figure 4 It is a flow chart of a method for reading collision event data according to an embodiment of the present invention.
[0052] When recording data using the collision event data recording method of the above embodiment, the corresponding collision event data reading method is also required to read the data. The collision event data reading method of this embodiment is used to read the collision event data recorded using the above collision event data recording method.
[0053] like Figure 4 As shown, in step S201, it is determined whether the i-th data block among the N data blocks is the second type of data, where N≥1 and i is 1, 2, ..., N. If it is determined to be the second type of data (step S201 is yes), the process proceeds to step S202. If it is determined to be the first type of data (step S201 is no), the process proceeds to step S203.
[0054] In step S203, since it is the first type of data, the data in the storage space is directly read as in the existing situation, and the processing ends.
[0055] In step S202, it is checked whether the data in the second storage space is valid. If the data in the second storage space is valid (step S202 is yes), the process proceeds to step S204. If the data in the second storage space is invalid (step S202 is no), the process proceeds to step S205.
[0056] In step S204, the data in the second storage space is read and the process ends.
[0057] In step S205, it is further verified whether the data in the first storage space is valid. If the data in the first storage space is valid (step S205 is yes), the process proceeds to step S206. If the data in the first storage space is invalid (step S205 is no), the process ends.
[0058] In step S206, the data in the first storage space is read and the process ends.
[0059] Figure 5 A schematic diagram of the structure of an electronic device 200 provided in an embodiment of the present invention.
[0060] The embodiment of the present invention further provides an electronic device 200, including a processor 210 and a memory 220, wherein the memory 220 stores executable commands of the processor 210. The processor 210 is configured to execute the steps of the collision event data recording method of the above embodiment by executing the executable commands.
[0061] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and the program enables a computer to execute the steps of the above-mentioned collision event data recording method.
[0062] Although the present invention has been described with reference to the current specific embodiments, those skilled in the art should recognize that the scope of the invention involved in the present invention is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) by each other.
Claims
1. A collision event data recording method, which is used to record collision data, wherein the collision data includes N data blocks, characterized in that: The steps include: a classification step, wherein the classification step classifies the N data blocks into first-category data and second-category data respectively based on a preset data collection time of each of the N data blocks and a first moment, wherein the first moment is a minimum moment when a recording condition is met, wherein N≥1; a storage space allocation step, wherein the storage space allocation step allocates a storage space to each of the data blocks belonging to the first category of data, and allocates a first storage space and a second storage space to each of the data blocks belonging to the second category of data; and A collision data recording step, when a collision occurs and the recording conditions are met, when the event data recording device is powered off, further determine whether the i-th data block among the N data blocks is the first category data or the second category data, and when the i-th data block is the first category data, write the collected i-th data block into the storage space from the start time of data recording of the i-th data block, and when the i-th data block is the second category data, write the collected i-th data block into the first storage space at a second time, and write the collected i-th data block into the second storage space from the start time of data recording of the i-th data block, where i is 1, 2, ..., N.
2. The collision event data recording method according to claim 1, characterized in that: The data collection time includes the data collection start time and the data collection end time respectively. In the classification step, if the data collection end time of the i-th data block among the N data blocks is less than or equal to the first time, then the i-th data block is the first category data; if the data collection end time of the i-th data block among the N data blocks is greater than the first time, then the i-th data block is the second category data, where i is 1, 2,..., N.
3. The collision event data recording method according to claim 1 or 2, characterized in that: In the collision data recording step, when a collision occurs, the recording conditions are met and the event data recording device is not powered off, it is further determined whether the i-th data block among the N data blocks is the first category data or the second category data. When the i-th data block is the first category data, the collected i-th data block is written into the storage space from the start time of data recording of the i-th data block. When the i-th data block is the second category data, the collected i-th data block is written into the second storage space from the start time of data recording of the i-th data block.
4. The collision event data recording method according to claim 1, characterized in that: In the event that the event data recording device is powered off, the first moment, the second moment, the data collection start moment, the data collection end moment, and the data recording start moment are all converted into moments starting from the moment the event data recording device is powered off.
5. The collision event data recording method according to claim 4, characterized in that: The second time is set according to the charge of the capacitor when the event data recording device is powered off.
6. The collision event data recording method according to claim 4, characterized in that: The first moment is less than or equal to the second moment.
7. The collision event data recording method according to claim 1 or 2, characterized in that: The first storage space and the second storage space have the same size.
8. A method for reading collision event data of a diagnostic tool, characterized in that: The collision event data reading method is used to read the collision event data recorded by the collision event data recording method according to any one of claims 1 to 7, and the collision event data reading method comprises the following steps: A judging step, wherein the judging step judges whether the i-th data block among the N data blocks is the second type of data, wherein N≥1, i is 1, 2, ..., N; A first-category data reading step, in which, if the data is determined to be the first-category data in the determining step, the data in the storage space is read; and The second type of data reading step, when it is determined in the judgment step that it is the second type of data, further perform a first verification step and a second verification step, the first verification step verifies whether the data in the second storage space is valid, if the data in the second storage space is valid, then read the data in the second storage space, when it is verified in the first verification step that the data in the second storage space is invalid, the second verification step verifies whether the data in the first storage space is valid, if the data in the first storage space is valid, then read the data in the first storage space.
9. An electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the collision event data recording method according to any one of claims 1 to 7 is implemented.
10. A storage medium, characterized in that: The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the collision event data recording method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method, device and equipment for managing black box data in intelligent driving automobile
CN110570538A
Method and device for situation-dependent storage of data of a system
CN110709899A