Automobile event data storage method and device, electronic equipment and storage medium
By storing data before and after an event in separate regions within the vehicle event data storage system, the problem of existing technologies being unable to detect and store changes in data before and after an event is solved, thus achieving complete preservation of critical data.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CAMEL GRP WUHAN NEW ENERGY TECH CO LTD
- Filing Date
- 2026-04-23
- Publication Date
- 2026-06-05
AI Technical Summary
Existing methods for storing automotive event data cannot detect and store data changes before and after an event occurs.
If no target event is detected, the data to be stored is periodically flushed to the target storage area according to the set storage period. When a target event is detected, the data related to the event is stored in the first area and frozen, while other data is stored in the second area. Frozen data is not overwritten. The data related to the event includes data for a period of time before and after the event.
It enables the detection and saving of data changes before and after the occurrence of a target event, preventing relevant data from being overwritten during subsequent storage and ensuring the integrity of critical data.
Smart Images

Figure CN122152595A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of embedded controller technology in the automotive industry, specifically to a method, device, electronic device, and storage medium for storing automotive event data. Background Technology
[0002] In the field of embedded controller technology in the automotive industry, data storage typically begins after an event is triggered. This is because event triggering takes time, especially events executed by the local controller, which also rely on detection by other controllers. If storage only begins after an event is triggered, data changes prior to and during the event cannot be detected.
[0003] Therefore, existing automotive event data storage methods are unable to detect and store data changes before and after an event occurs. Summary of the Invention
[0004] In view of this, it is necessary to provide a method, apparatus, electronic device and storage medium for storing automotive event data to solve the technical problem that existing automotive event data storage methods cannot detect and store data changes before and after an event occurs.
[0005] To address the aforementioned problems, in a first aspect, the present invention provides a method for storing automotive event data, comprising: If no target event is detected in the data to be stored, the data to be stored will be periodically flushed and stored to the target storage area according to the set storage period. If a target event is detected in the data to be stored, the data related to the target event in the data to be stored is stored in the first area of the target storage area, and the data in the first area is frozen. The data unrelated to the target event in the data to be stored is periodically flushed and stored in the second area of the target storage area. The frozen data is not overwritten by the periodically flushed data. The data related to the target event includes data in the first time period before the target event is triggered and data in the second time period after the target event is triggered.
[0006] In one possible implementation, the vehicle event data storage method further includes: If the target event is detected again in the data to be stored, the frozen data is unlocked and overwritten, and new data related to the target event is restored in the unlocked and overwritten area. The newly stored new data related to the target event is then frozen.
[0007] In one possible implementation, if no target event is detected in the data to be stored, the data to be stored is periodically flushed and stored to the target storage area according to a set storage period, including: Divide the target storage area into at least two different storage areas; If no target event is detected in the data to be stored, the data to be stored is periodically flushed and stored in the at least two different storage areas according to the set storage period.
[0008] In one possible implementation, the storage space size of the at least two different storage regions is the same.
[0009] In one possible implementation, the target storage area is divided into at least two distinct storage areas, including: Based on the set storage period and the size of the key data of the target event, determine the target storage space required for each storage of the data to be stored; The target storage area is divided into storage areas of at least two target storage space sizes.
[0010] In one possible implementation, the target storage space required for storing data each time is determined based on the set storage period and the critical data size of the target event, including: The target storage space required for each storage session is determined by multiplying the set storage period by the size of the critical data of the target event.
[0011] In one possible implementation, the vehicle event data storage method further includes: If the remaining lifespan of the target storage area is detected to have reached a preset warning time limit, the storage space size of the target storage area is increased.
[0012] Secondly, the present invention also provides a vehicle event data storage device, comprising: The first storage module is used to periodically write and store the data to be stored to the target storage area according to a set storage period if no target event is detected in the data to be stored. The second storage module is used to, when a target event is detected in the data to be stored, store the data related to the target event in the first area of the target storage area, freeze the data in the first area, and periodically flush and store the data unrelated to the target event in the second area of the target storage area; wherein, the frozen data is not overwritten by the periodically flushed data; the data related to the target event includes: data in the first time period before the target event is triggered and data in the second time period after the target event is triggered.
[0013] Thirdly, the present invention also provides an electronic device, including a memory and a processor, wherein, The memory is used to store programs; The processor, coupled to the memory, is configured to execute the program stored in the memory to implement the steps of the vehicle event data storage method as described in any of the preceding claims.
[0014] Fourthly, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the vehicle event data storage method as described in any of the preceding claims.
[0015] The beneficial effects of the above implementation are as follows: The vehicle event data storage method, device, electronic device, and storage medium provided by the present invention, when no target event is detected in the data to be stored, periodically writes and stores the data to be stored into the target storage area according to a set storage period; when a target event is detected in the data to be stored, the data related to the target event in the data to be stored is stored into a first area of the target storage area, and the data in the first area is frozen, while the data unrelated to the target event in the data to be stored is periodically written and stored into a second area of the target storage area; wherein, the frozen data is not overwritten by the periodically written data; the data related to the target event includes: data in a first time period before the target event is triggered and data in a second time period after the target event is triggered.
[0016] The solution provided by this invention uses a periodic storage method to store data unrelated to the target event in the target storage area. For data related to the target event, data for a period of time before and after the target event is triggered is stored in the first area of the target storage area, while other data is stored in the second area of the target storage area. The data in the first area is frozen to prevent the target event-related data stored in the first area from being overwritten by other data during subsequent write operations. This achieves the effect of detecting and saving changes in data before and after the target event, thereby solving the technical problem that existing automotive event data storage methods cannot detect and store data changes before and after an event. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.
[0018] Figure 1 A flowchart of an embodiment of the vehicle event data storage method provided by the present invention; Figure 2 A schematic diagram of another embodiment of the vehicle event data storage method provided by the present invention; Figure 3 A schematic block diagram of an embodiment of the vehicle event data storage device provided by the present invention; Figure 4 A schematic diagram of an embodiment of the electronic device provided by the present invention. Detailed Implementation
[0019] 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 a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0020] In the description of the embodiments of this application, unless otherwise stated, "a plurality of" means two or more.
[0021] In this embodiment of the invention, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, apparatus, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules that are explicitly listed, but may include other steps or modules that are not explicitly listed or that are inherent to such process, method, product or device.
[0022] The naming or numbering of steps in the embodiments of the present invention does not mean that the steps in the method flow must be executed in the time / logical order indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effect can be achieved.
[0023] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0024] This invention provides a method, apparatus, electronic device, and storage medium for storing automotive event data, which will be described below.
[0025] This invention provides a method for storing automotive event data, which can be implemented by executing an application program stored on the vehicle controller; such as... Figure 1 As shown, the method includes: S101. If no target event is detected in the data to be stored, the data to be stored is periodically flushed and stored to the target storage area according to the set storage period.
[0026] Understandably, a target event refers to an event that occurs to a vehicle. Target events can include multiple types of events, such as a lithium battery thermal runaway event or a vehicle collision event.
[0027] The target storage area is a storage area partitioned on the vehicle's memory.
[0028] S102. When a target event is detected in the data to be stored, the data related to the target event in the data to be stored is stored in the first area of the target storage area, and the data in the first area is frozen. The data unrelated to the target event in the data to be stored is periodically flushed and stored in the second area of the target storage area. The frozen data is not overwritten by the periodically flushed data. The data related to the target event includes the data in the first time period before the target event is triggered and the data in the second time period after the target event is triggered.
[0029] It is understandable that the first time period before the target event is triggered can be 3 minutes before the target event is triggered, and the second time period after the target event is triggered can be 2 minutes after the target event is triggered.
[0030] This invention freezes data related to the target event, ensuring that other data unrelated to the target event is stored in other areas, thus avoiding overwriting the data related to the target event. The data related to the target event, being critical data, can be easily uploaded to a cloud platform or made available to users for later viewing.
[0031] It should be noted that many emergencies occur in automobiles, but not all controllers can upload the event signals to the cloud platform. For example, in the event of a vehicle collision, lithium battery thermal runaway, or some controllers having difficult-to-reproduce faults, these signals are difficult to upload to the cloud platform. To solve these problems, this invention provides an automotive event data storage solution. This storage solution can store data before, during, and after these events, enabling better analysis of these operating conditions and simultaneously storing event data for the most recent period.
[0032] In some embodiments, the vehicle event data storage method further includes: If the target event is detected again in the data to be stored, the frozen data is unlocked and overwritten, and new data related to the target event is restored in the unlocked and overwritten area. The newly stored new data related to the target event is then frozen.
[0033] Understandably, when the target event is detected again in the data to be stored, the original target event-related data needs to be overwritten with the new target event-related data, and only the latest event data is saved.
[0034] It should be noted that the new target event may or may not be the same as the original target event. For example, the original target event may be lithium battery thermal runaway, while the new target event may be a vehicle collision. Alternatively, both the original and new target events could be vehicle collisions.
[0035] In some embodiments, if no target event is detected in the data to be stored, the data to be stored is periodically flushed and stored to the target storage area according to a set storage period, including: Divide the target storage area into at least two different storage areas; If no target event is detected in the data to be stored, the data to be stored is periodically flushed and stored in the at least two different storage areas according to the set storage period.
[0036] Understandably, the target storage area can be divided into two different storage areas, or three different storage areas, or more storage areas.
[0037] The storage period can be set based on the size of the critical data that needs to be stored for the event, determining the length of each period. For example, the storage period could be once every 1 second; however, if the data update frequency is not high, it could also be once every 2 seconds or once every 3 seconds.
[0038] In some embodiments, the storage space size of the at least two different storage regions is the same.
[0039] Understandably, since the size of vehicle data remains relatively stable overall and the storage period is also fixed, the storage space size of multiple different storage areas can be set to the same value.
[0040] In some embodiments, the target storage region is divided into at least two different storage regions, including: Based on the set storage period and the size of the key data of the target event, determine the target storage space required for each storage of the data to be stored; The target storage area is divided into storage areas of at least two target storage space sizes.
[0041] It is understandable that key data of the target event can be stored in the same storage area, or it can be stored separately in two different storage areas, with each storage area storing a portion of the data.
[0042] In some embodiments, the target storage space required for storing data each time is determined based on a set storage period and the critical data size of the target event, including: The target storage space required for each storage session is determined by multiplying the set storage period by the size of the critical data of the target event.
[0043] Understandably, based on the size of the critical data that needs to be stored for the event (e.g., 1KB of data), and the required data storage cycle (e.g., storing data once per second), the required data storage space is 1KB. 5min 60s 2 = 600kb.
[0044] In some embodiments, the vehicle event data storage method further includes: If the remaining lifespan of the target storage area is detected to have reached a preset warning time limit, the storage space size of the target storage area is increased.
[0045] Understandably, for example, if a target storage area is divided into two different storage areas, and the lifespan of the two storage areas is not yet sufficient, more storage areas can be added for alternating flushing, thereby ensuring that the data flushing can be completed and extending the lifespan of the storage areas.
[0046] In some embodiments, the overall approach of the solution provided by this invention includes, for example, storing data for 3 minutes before an event and 2 minutes after the event. The storage area is divided into two storage areas, A (the first area) and B (the second area), which can store a total of 10 minutes of data. The storage is divided into two parts: the first part is normal periodic storage, stored every 5 minutes; when an event is triggered, storage management freezes the data for the 3 minutes before and 2 minutes after the event, and the frozen data is no longer updated, while the remaining storage space continues periodic storage.
[0047] Specifically, the vehicle event data storage method provided by the present invention includes: 1. Storage Space Selection: Based on the size of the critical data to be stored for the event, such as 1KB of data, and the required data storage cycle, such as storing data once per second, 1KB of storage space is needed. 5min 60s 2 = 600kb.
[0048] 2. Storage Lifespan Protection: Embedded storage modules have limited write cycles, typically one million cycles over their entire lifespan. To meet this design lifespan requirement, write operations are performed alternately between two storage areas, A and B, when no event has occurred. For example, the first 5 minutes are spent writing to area A, and the next 5 minutes to area B. This alternating writing reduces wear and tear on individual storage blocks. If the lifespan of two storage areas is still insufficient, more storage areas can be added for alternating writing.
[0049] 3. Storage Management: When no event has occurred, as described in point 2, periodic storage is performed. Upon detecting an event, storage control is required, freezing data from the 3 minutes prior to and 2 minutes after the vehicle collision event. This data is no longer periodically overwritten; the remaining data continues to be periodically overwritten until a new event occurs, at which point the previously frozen area is unlocked and new frozen data is stored. (Reference) Figure 2 As shown, each cell represents the storage capacity for one minute of data; for example, a 10-minute space.
[0050] Therefore, the solution provided by this invention can store data before, during, and after the latest event, as well as data from the most recent event, within a limited storage space.
[0051] like Figure 3 As shown, the present invention also provides an automotive event data storage device 300, which includes: The first storage module 301 is used to periodically write and store the data to be stored to the target storage area according to a set storage period when no target event is detected in the data to be stored. The second storage module 302 is used to, when a target event is detected in the data to be stored, store the data related to the target event in the first area of the target storage area, freeze the data in the first area, and periodically write the data unrelated to the target event in the data to be stored to the second area of the target storage area; wherein, the frozen data is not overwritten by the periodically written data; the data related to the target event includes: data in the first time period before the target event is triggered and data in the second time period after the target event is triggered.
[0052] The vehicle event data storage device provided in the above embodiments can implement the technical solutions described in the above vehicle event data storage method embodiments. The specific implementation principles of each module or unit can be found in the corresponding content in the above vehicle event data storage method embodiments, and will not be repeated here.
[0053] like Figure 4As shown, the present invention also provides an electronic device 400. The electronic device 400 includes a processor 401, a memory 402, and a display 403. Figure 4 Only some components of the electronic device 400 are shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.
[0054] In some embodiments, memory 402 may be an internal storage unit of electronic device 400, such as a hard disk or memory of electronic device 400. In other embodiments, memory 402 may also be an external storage device of electronic device 400, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. equipped on electronic device 400.
[0055] Furthermore, the memory 402 may include both internal storage units of the electronic device 400 and external storage devices. The memory 402 is used to store application software and various types of data installed on the electronic device 400.
[0056] In some embodiments, processor 401 may be a central processing unit (CPU), microprocessor, or other data processing chip, used to run program code stored in memory 402 or process data, such as the vehicle event data storage method of the present invention.
[0057] In some embodiments, display 403 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. Display 403 is used to display information from electronic device 400 and to display a visual user interface. Components 401-403 of electronic device 400 communicate with each other via a system bus.
[0058] In some embodiments of the present invention, when the processor 401 executes the vehicle event data storage program in the memory 402, the following steps can be implemented: If no target event is detected in the data to be stored, the data to be stored will be periodically flushed and stored to the target storage area according to the set storage period. If a target event is detected in the data to be stored, the data related to the target event in the data to be stored is stored in the first area of the target storage area, and the data in the first area is frozen. The data unrelated to the target event in the data to be stored is periodically flushed and stored in the second area of the target storage area. The frozen data is not overwritten by the periodically flushed data. The data related to the target event includes data in the first time period before the target event is triggered and data in the second time period after the target event is triggered.
[0059] It should be understood that when the processor 401 executes the vehicle event data storage program in the memory 402, in addition to the functions mentioned above, it can also perform other functions, as detailed in the description of the corresponding method embodiments above.
[0060] Furthermore, the embodiments of the present invention do not specifically limit the type of electronic device 400 mentioned. Electronic device 400 can be a mobile phone, tablet computer, personal digital assistant (PDA), wearable device, laptop computer, or other portable electronic device. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices running iOS, Android, Microsoft, or other operating systems. The aforementioned portable electronic device can also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, electronic device 400 may not be a portable electronic device, but rather a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0061] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the vehicle event data storage method provided by the methods described above, the method comprising: If no target event is detected in the data to be stored, the data to be stored will be periodically flushed and stored to the target storage area according to the set storage period. If a target event is detected in the data to be stored, the data related to the target event in the data to be stored is stored in the first area of the target storage area, and the data in the first area is frozen. The data unrelated to the target event in the data to be stored is periodically flushed and stored in the second area of the target storage area. The frozen data is not overwritten by the periodically flushed data. The data related to the target event includes data in the first time period before the target event is triggered and data in the second time period after the target event is triggered.
[0062] Those skilled in the art will understand that all or part of the processes of the methods described in the above embodiments can be implemented by a computer program instructing related hardware, and the program can be stored in a computer-readable storage medium. The computer-readable storage medium may be a disk, optical disk, read-only memory, or random access memory, etc.
[0063] The above provides a detailed description of the vehicle event data storage method, device, electronic device, and storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for storing automotive event data, characterized in that, include: If no target event is detected in the data to be stored, the data to be stored will be periodically flushed and stored to the target storage area according to the set storage period. If a target event is detected in the data to be stored, the data related to the target event in the data to be stored is stored in the first area of the target storage area, and the data in the first area is frozen. The data unrelated to the target event in the data to be stored is periodically flushed and stored in the second area of the target storage area. The frozen data is not overwritten by the periodically flushed data. The data related to the target event includes data in the first time period before the target event is triggered and data in the second time period after the target event is triggered.
2. The vehicle event data storage method according to claim 1, characterized in that, Also includes: If the target event is detected again in the data to be stored, the frozen data is unlocked and overwritten, and new data related to the target event is restored in the unlocked and overwritten area. The newly stored new data related to the target event is then frozen.
3. The vehicle event data storage method according to claim 1, characterized in that, If no target event is detected in the data to be stored, the data to be stored is periodically flushed and stored to the target storage area according to the set storage period, including: Divide the target storage area into at least two different storage areas; If no target event is detected in the data to be stored, the data to be stored is periodically flushed and stored in the at least two different storage areas according to the set storage period.
4. The vehicle event data storage method according to claim 3, characterized in that, The storage space size of the at least two different storage areas is the same.
5. The vehicle event data storage method according to claim 4, characterized in that, Divide the target storage area into at least two distinct storage areas, including: Based on the set storage period and the size of the key data of the target event, determine the target storage space required for each storage of the data to be stored; The target storage area is divided into storage areas of at least two target storage space sizes.
6. The vehicle event data storage method according to claim 5, characterized in that, Based on the set storage period and the size of the key data for the target event, determine the target storage space required for each storage of the data to be stored, including: The target storage space required for each storage session is determined by multiplying the set storage period by the size of the critical data of the target event.
7. The vehicle event data storage method according to any one of claims 1-6, characterized in that, Also includes: If the remaining lifespan of the target storage area is detected to have reached a preset warning time limit, the storage space size of the target storage area is increased.
8. A vehicle event data storage device, characterized in that, include: The first storage module is used to periodically write and store the data to be stored to the target storage area according to a set storage period if no target event is detected in the data to be stored. The second storage module is used to, when a target event is detected in the data to be stored, store the data related to the target event in the first area of the target storage area, freeze the data in the first area, and periodically flush and store the data unrelated to the target event in the second area of the target storage area; wherein, the frozen data is not overwritten by the periodically flushed data; the data related to the target event includes: data in the first time period before the target event is triggered and data in the second time period after the target event is triggered.
9. An electronic device, characterized in that, Including memory and processor, among which, The memory is used to store programs; The processor, coupled to the memory, is configured to execute the program stored in the memory to implement the steps of the vehicle event data storage method as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the vehicle event data storage method as described in any one of claims 1 to 7.