Video data power failure protection method and related equipment
By dynamically adjusting the video recording interval and saving it immediately under emergency conditions by collecting vehicle status information in real time, the problem of data loss when the vehicle storage medium loses power is solved, and the complete preservation of critical video data and the lifespan of storage devices are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-17
- Publication Date
- 2026-03-13
AI Technical Summary
In existing technologies, vehicle-mounted storage media cannot save critical video data in a timely manner when the vehicle loses power, resulting in data loss. Furthermore, the supercapacitor power supply solution may fail or have reduced power supply capacity in extreme accidents.
By collecting vehicle status information in real time, the video drop interval is dynamically adjusted, and video data is immediately and forcibly saved when an emergency condition is detected, and data is written using non-volatile memory.
It optimizes storage space utilization, ensures the complete preservation of video data for critical events, extends the lifespan of storage devices, and improves system response speed.
Smart Images

Figure CN121665019A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle-mounted video storage, and more particularly to a method and related equipment for video data power-off protection. Background Technology
[0002] As an in-vehicle safety device, dashcams typically use high-capacity secure digital storage cards (SD cards) or embedded multimedia cards (eMMC cards) for video storage. These storage media have limited write and erase cycles, and frequent write and erase operations will significantly shorten their lifespan.
[0003] In existing technologies, to reduce wear and tear on storage media, a common approach is to accumulate video data in memory for a certain period (e.g., 5 seconds) before writing it all at once to the storage medium. While this method can extend the lifespan of the storage medium, it has a significant drawback: in the event of an extreme accident (such as a collision) that causes a sudden power outage, the last few seconds of crucial video data may be lost because it was not written to the disk in time.
[0004] To address the power outage issue, existing solutions typically integrate supercapacitors into the equipment as backup power, providing a brief power supply to complete video recording to the disc during a power failure. However, this solution has limitations: firstly, in severe incidents, supercapacitors may be physically damaged and fail; secondly, as supercapacitors age, changes in their capacitance and internal resistance lead to a decrease in power supply capacity, potentially failing to meet the required power supply time for disc recording after prolonged use. Summary of the Invention
[0005] This application provides a video data power loss protection method and related equipment to ensure the integrity of video data when the vehicle loses power.
[0006] The first aspect of this application provides a video data power-off protection method, including:
[0007] The system collects vehicle status information in real time and determines the current disc loading interval of video data based on the vehicle status information; wherein the video data is data collected in real time by the vehicle and stored in a memory buffer; the vehicle status information includes one or more of the following: vehicle speed, acceleration, driver assistance ADAS signals, and power supply voltage;
[0008] According to the current disk write interval, the video data in the memory buffer is written to the cache memory;
[0009] When an event that meets a preset emergency condition is detected, the execution of the current disk insertion interval is interrupted, and the video data in the memory buffer is immediately written to the cache memory.
[0010] A second aspect of this application provides a video data power-off protection system, including:
[0011] The acquisition unit is used to acquire vehicle status information in real time and determine the current video data drop interval based on the vehicle status information; wherein, the video data is data acquired by the vehicle in real time and stored in a memory buffer; the vehicle status information includes one or more of the following: vehicle speed, acceleration, driver assistance ADAS signals, and power supply voltage;
[0012] The writing unit is used to write the video data in the memory buffer into the cache memory according to the current disk write interval;
[0013] The execution unit is configured to interrupt the execution of the current disk insertion interval when an event that meets a preset emergency condition is detected, and immediately write the video data in the memory buffer into the cache memory.
[0014] The video data power loss protection system provided in the second aspect of this application is used to execute the video data power loss protection method described in the first aspect.
[0015] A third aspect of this application provides a video data power-off protection device, comprising:
[0016] Central processing unit, memory, input / output interfaces, wired or wireless network interfaces, and power supply;
[0017] The memory is either a short-term storage memory or a persistent storage memory;
[0018] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the video data power-loss protection method described in the first aspect.
[0019] A fourth aspect of this application provides a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the video data power-off protection method described in the first aspect.
[0020] A fifth aspect of this application provides a computer program product, the computer program product including instructions that, when executed on a computer, cause the computer to perform the video data power-off protection method described in the first aspect.
[0021] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: The video data power loss protection method disclosed in the embodiments of this application adaptively adjusts the video disking interval by monitoring parameters such as vehicle speed and acceleration in real time, and immediately forces saving when an emergency event is detected, which not only optimizes the utilization of storage space, but also ensures the complete preservation of video data of critical events. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of this application, 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 recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0023] Figure 1 This is a schematic diagram of the architecture of a video data power-loss protection system disclosed in an embodiment of this application;
[0024] Figure 2 This is a flowchart illustrating a video data power-loss protection method disclosed in an embodiment of this application;
[0025] Figure 3 This is a flowchart illustrating another video data power-loss protection method disclosed in an embodiment of this application;
[0026] Figure 4 This is a flowchart illustrating another video data power-loss protection method disclosed in an embodiment of this application;
[0027] Figure 5 This is a flowchart illustrating another video data power-loss protection method disclosed in an embodiment of this application;
[0028] Figure 6 This is an interactive flowchart of a video data power-loss protection system disclosed in an embodiment of this application;
[0029] Figure 7 This is a schematic diagram of the structure of a video data power-off protection system disclosed in an embodiment of this application;
[0030] Figure 8 This is a schematic diagram of the structure of a video data power-off protection device disclosed in an embodiment of this application. Detailed Implementation
[0031] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0032] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of a person skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.
[0033] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0034] To address as many of the problems as possible in the existing technology, please refer to Figure 1 , Figure 1 This is a schematic diagram of the architecture of a video data power-off protection system disclosed in an embodiment of this application.
[0035] Combination Figure 1As shown, the core idea of this application's technical solution is to dynamically adjust the video disc dropping interval based on multi-dimensional sensor data and device status information. The video dynamic disc dropping control system monitors external data sources in real time, including but not limited to Controller Area Network (CAN) bus, Advanced Driver-Assistance Systems (ADS) systems, Inertial Measurement Unit (IMU) sensors, or power management systems. Among these, the CAN bus, ADAS system, IMU sensors, or power management systems can collect vehicle speed / acceleration, warning signals, vehicle motion data, or voltage / power failure detection signals in real time.
[0036] In this application's technical solution, the video dynamic disc-dropping control system includes a data acquisition module, a decision control module, and an execution module. The data acquisition module acquires real-time vehicle CAN bus data (such as vehicle speed, acceleration, and steering angle), ADAS signals (such as AEB and collision warning), airbag signals, and power supply voltage. The decision control module dynamically calculates the disc-dropping interval using a state machine or algorithm based on the acquired data. The disc-dropping interval adjustment is based on event priority; high-priority events (such as collision signals) can interrupt low-priority states. The execution module controls the writing of video data from the memory buffer to the storage medium, supporting forced disc-dropping operations. The memory buffer and storage medium are located in the storage system.
[0037] Based on the above description, the basic logic of the embodiments of this application is as follows:
[0038] 1. Real-time acquisition of various vehicle statuses. 2. Calculation of disc drop intervals based on vehicle status using a multi-factor coupled exponential decay model or a simpler state machine. 3. Disc drop operation based on the calculated disc drop interval. 4. Triggering immediate disc drop operation when emergency events such as AEB braking, power failure, or airbag deployment are triggered.
[0039] For the convenience of understanding the above Figure 1 For a detailed description of the system shown, please refer to [link / reference]. Figure 2 , Figure 2 This is a flowchart illustrating a video data power-off protection method disclosed in an embodiment of this application. It includes steps 201-203.
[0040] 201. Collect vehicle status data in real time and determine the current disc drop interval for video data based on the vehicle status data.
[0041] Combination Figure 1As shown, in this embodiment, the video dynamic disc drop control system collects sensor and status data in real time. Specifically, the data acquisition module collects one or more of the following: vehicle speed / acceleration data from vehicle sensors, TTC / warning signals from the ADAS system, or voltage data from the power supply module. Simultaneously, vehicle video data is continuously written to and temporarily stored in a memory buffer. It should be noted that the memory buffer is an auxiliary cache located in volatile memory (such as Double Data Rate Memory, DDR). The size of the memory buffer is pre-calculated and determined based on the maximum allowable disc drop interval and the video bitrate.
[0042] In some embodiments, combined with Figure 1 As shown, the video dynamic disc lowering control system collects various status information of the vehicle in real time, providing data support for dynamically calculating the disc lowering interval:
[0043] (1) The vehicle speed, longitudinal acceleration and lateral acceleration are read every 100ms. The reading source can be obtained from the vehicle CAN signal, or from GPS, vehicle electronic pulse, etc.; the longitudinal and lateral acceleration are obtained from the IMU.
[0044] (2) Monitor AEB braking signal; monitor ADAS forward collision warning and alarm status.
[0045] (3) Read the airbag deployment signal via CAN.
[0046] (4) The ADC samples the voltage value every 50ms.
[0047] Furthermore, based on the various vehicle status information collected above, the current disc-dropping interval of the video data is calculated, as detailed in the embodiment shown in Figure 4. In some embodiments, it is also necessary to simultaneously determine whether the current vehicle status information triggers the disc-dropping condition, and then execute different vehicle operating states, as detailed in [reference needed]. Figure 3 The illustrated embodiment.
[0048] 202. Write the video data in the memory buffer to the cache storage according to the current disk write interval.
[0049] After obtaining the current disk write interval, the video data in the memory buffer is written into the cache memory according to the disk write interval.
[0050] In some embodiments, persistent storage is a non-volatile buffer, which is a circular buffer constructed using ferroelectric random access memory (FRAM) or magnetoresistive random access memory (MRAM). In some embodiments, if no urgent event is sent during the waiting period and the waiting time exceeds the current disk write interval, a regular disk write is performed.
[0051] 203. When an event that meets the preset emergency conditions is detected, the execution of the current disk write interval is interrupted, and the video data in the memory buffer is immediately written to the cache memory.
[0052] Unlike step 202, if an emergency event occurs during the waiting period when calculating the current disk write interval, an immediate disk write event is triggered. The decision control unit sends an immediate disk write command to the execution unit, thereby interrupting the current waiting. The relevant execution unit forcibly reads all video data (or cached data) in the memory buffer and prioritizes writing the video data in the memory buffer to the cache memory, completing the disk write feedback. Simultaneously, it continues to determine whether the system is running. If the system is still running, step 201 is executed.
[0053] This embodiment discloses a video data power-loss protection method. The system dynamically calculates the video data write-to-disk interval based on real-time collected vehicle status data, avoiding the storage resource waste or critical data loss that can occur with fixed-interval storage. In low-risk scenarios (such as smooth driving), the write-to-disk interval is extended to reduce write operations and extend storage device lifespan; in high-risk scenarios (such as rapid acceleration or collision warning), the write-to-disk interval is shortened to ensure timely preservation of critical data. Simultaneously, when an emergency condition is detected, the current write-to-disk interval is immediately interrupted, forcibly writing the video data in the memory buffer to non-volatile memory, ensuring complete preservation of data before and after the critical event. Furthermore, video data is first written to high-speed volatile memory (such as DDR), reducing the latency of directly writing to low-speed storage devices and improving system response speed. Moreover, the combination of dynamic write-to-disk and emergency triggering provides a basis for event backtracking before and after subsequent risk events.
[0054] In this embodiment, different vehicle status information will lead to different vehicle operating states. Please refer to [link / reference]. Figure 3 , Figure 3 This is a flowchart illustrating another video data power-loss protection method disclosed in an embodiment of this application. It includes steps 301-303.
[0055] 301. Set the preset state machine model.
[0056] In one specific embodiment, a preset state machine model can be set in advance. This state machine model is used to reflect the triggering conditions and disc drop intervals of different vehicle operating states. Moreover, different vehicle operating states have different priorities.
[0057] In some embodiments, the state machine model includes, but is not limited to, a basic state, a high-speed state, an aggressive driving state, an ADAS warning state, an ADAS alarm state, and an emergency state.
[0058] The basic state corresponds to the first disk drop interval when there are no special events. For example, this first disk drop interval is 5 seconds.
[0059] In high-speed mode, the second disc drop interval is triggered when the vehicle speed continuously exceeds the first speed threshold. This second disc drop interval is shorter than the first disc drop interval. For example, the second disc drop interval is 1 second.
[0060] In aggressive driving conditions, a third disc drop interval is triggered when the longitudinal acceleration exceeds the first acceleration threshold or the lateral acceleration exceeds the second acceleration threshold. This third disc drop interval is shorter than the second disc drop interval. For example, this third disc drop interval is 0.5 seconds.
[0061] The ADAS warning state is triggered when the collision time is less than or equal to the first collision time threshold and greater than the second collision time threshold, corresponding to the fourth disk drop interval. For example, this fourth disk drop interval is 0.5s.
[0062] The ADAS alarm status is triggered when the collision time is less than or equal to the second collision time threshold and greater than the third collision time threshold, corresponding to the fifth disc drop interval, which is less than the fourth disc drop interval. For example, this fifth disc drop interval is 0.3s.
[0063] An emergency state is triggered when preset emergency conditions are met, causing an immediate disk drop.
[0064] Among them, the priorities of basic state, high-speed state, aggressive driving state, ADAS warning state, ADAS alarm state, and emergency state are from low to high, with emergency state having the highest priority.
[0065] For easier understanding, please refer to Table 1. Table 1 is used to characterize the various operating states, triggering conditions, disk write intervals, and priorities included in the state machine model.
[0066]
[0067] It is understood that the above are only one possible way to set various parameters for a state machine model, and no specific restrictions are imposed here. The higher the priority number, the higher the priority level.
[0068] 302. Based on the vehicle status information, match the triggered conditions and enter the corresponding operating state to determine the current disc drop interval.
[0069] In one specific embodiment, combining the aforementioned vehicle status information and the multiple operating states corresponding to the related state machine model, the system can match the satisfied trigger conditions based on the vehicle status information. If a certain vehicle status information satisfies the trigger condition of a certain operating state, the system enters the corresponding operating state, thereby determining the current disc drop interval in the current operating state. It should be noted that during system operation, a higher priority operating state can be immediately interrupted and overwrite a lower priority operating state.
[0070] In some embodiments, the decision control module reads current operating data (vehicle status information) in real time, and then matches different parameters with various parameters in the state machine model to determine the triggering conditions satisfied by the current vehicle status information. For example, by matching vehicle speed, longitudinal / lateral acceleration, TTC, ADAS alarm status, or power supply voltage, the corresponding triggering conditions are found.
[0071] In other feasible technical solutions, the operational state degradation also needs to meet the minimum stabilization time requirement, see step 303 for details.
[0072] 303. When the running time of the current running state meets the minimum stable time, the state degradation operation is triggered.
[0073] In one specific embodiment, since state degradation requires meeting a minimum stabilization time requirement, after entering a certain operating state, if no alarm for the corresponding state level is triggered after at least the minimum stabilization time, a degradation operation is performed. Simultaneously, if no lower operating state is currently available, the corresponding operating state is entered. For example, after entering state S3 from S4, if no alarm for state S3 is triggered within the minimum stabilization time of S3, the state enters S2. Furthermore, if no lower state is available, the state enters S0 (i.e., the basic state).
[0074] In some embodiments, it can be illustrated by examples, such as when S3 is downgraded, if there is no S2 state but there is an S1 state, then it is downgraded to S1; if there is neither S2 nor S1, then it is downgraded to S0.
[0075] In some embodiments, for the convenience of explaining the constraints on the minimum settling time, please refer to Table 2, which is a reference table of constraints on the minimum settling time.
[0076]
[0077] It is understood that the above is only one possible way to set the minimum settling time, and no specific restrictions are imposed here.
[0078] This embodiment discloses a video data power-off protection method. By setting multiple state levels, the system can progressively shorten the disc-drop interval according to the increasing driving risk, achieving refined management where higher risks require denser data storage. Simultaneously, each state corresponds to a clear trigger condition and disc-drop interval, making system behavior predictable and configurable, facilitating adjustments based on different vehicle models or regulatory requirements. Furthermore, by having high-priority states override low-priority states, it effectively addresses instantaneous high-risk events. Moreover, the introduction of a minimum stability time mechanism prevents frequent state fluctuations and avoids no-switching due to signal volatility, enhancing the reliability of state switching. Secondly, the decision control module matches vehicle state information with preset trigger conditions in real time, performing multi-dimensional condition fusion judgment to ensure the disc-drop strategy adapts promptly to the current risk level, improving the feasibility of the solution.
[0079] When calculating the disc drop interval, it is necessary to consider multiple vehicle state influencing factors, namely various vehicle state information, etc. For details, please refer to [reference needed]. Figure 4 , Figure 4 This is a flowchart illustrating another video data power-loss protection method disclosed in an embodiment of this application. It includes step 401.
[0080] 401. Substitute multiple vehicle state influencing factor functions into a preset multiplicative multifactor coupling model to calculate the current plate drop interval.
[0081] During the calculation and acquisition of the current plate drop interval, vehicle operation information can be input into the product-type multifactor coupling model.
[0082] In one specific embodiment, the vehicle operation information includes multiple vehicle status influencing factors, such as vehicle speed, acceleration (longitudinal / lateral), TTC, ADAS alarm status, or power supply voltage as described above.
[0083] In some embodiments, the expression for the product-type multifactor coupling model is:
[0084] , This is the minimum disk drop interval (e.g., 0.1s). The basic drop interval (e.g., 5 seconds). For the speed influence factor function, For acceleration influence factor function, This is the collision time influence factor function.
[0085] To facilitate the explanation of the various vehicle state influence factor functions mentioned above, in some embodiments, the speed influence factor function is... The expression is: ,in, For speed sensitivity coefficient (e.g.) ), This represents the vehicle's current speed. For speed threshold (e.g.) ), Describes orthogonal functions, taking The main part, that is Among them, when the physical meaning of the function is when hour, The speed does not affect the plate drop interval. When At that time, the drop interval decreases exponentially with increasing speed.
[0086] Acceleration Influence Factor Function The expression is: ,in, For longitudinal acceleration sensitivity coefficient (e.g.) ), For lateral acceleration sensitivity coefficient (e.g.) ), For longitudinal acceleration, This is lateral acceleration.
[0087] Collision time influence factor function The expression is:
[0088] ,in, Consider the maximum threshold (e.g., 10s). The warning threshold is set to 3 seconds. The alarm threshold (e.g., 1 second). The collision time TTC decay factor (e.g., 0.5). This is the alarm status coefficient (e.g., 0.3). This is the emergency response factor (e.g., 0.1).
[0089] Furthermore, the current disc drop interval can be obtained by using the above parameters and the corresponding vehicle state influence factor functions.
[0090] In some embodiments, the above formula is a strategy for dynamically calculating the disk drop interval in non-emergency situations. When an emergency event is triggered, it can be referred to... Figure 5 The illustrated embodiment.
[0091] This embodiment discloses a video data power-loss protection method that calculates the disc drop interval using a continuous function and adjusts the interval based on multiple influencing factors to achieve a more nuanced risk response. Furthermore, coupling multiple influencing factors in a product form comprehensively reflects the overall driving risk, rather than relying on a single trigger condition. The multi-factor approach allows the model to automatically calculate a shorter disc drop interval than a single-factor approach, as the cumulative effect amplifies the risk, resulting in more stable system performance near critical conditions. Moreover, the calculated disc drop interval value can be considered a continuous quantitative indicator of driving risk at the current moment, providing a new dimension for subsequent data analysis and facilitating the identification of high-risk segments.
[0092] In this application embodiment, multiple conditions can trigger a forced disk drop in an emergency, which can be referred to in [reference]. Figure 5 , Figure 5 This is a flowchart illustrating another video data power-loss protection method disclosed in an embodiment of this application. It includes steps 501-504. It can be understood that in this embodiment, the process is... Figure 2 In step 203 shown.
[0093] 501. Airbag deployment signal detected.
[0094] 502. The rate of decrease of the supply voltage is detected to exceed the voltage drop threshold, or the supply voltage is lower than the voltage threshold.
[0095] 503. Automatic Emergency Braking (AEB) activation signal detected.
[0096] 504. The longitudinal acceleration in the acceleration exceeds the preset emergency braking threshold and continues for a preset duration.
[0097] It is understood that in this embodiment, steps 501-504 are the conditions for triggering an emergency event. For example, in the above... Figure 2 In steps 202 and 203, if an emergency occurs during the waiting period, the emergency includes, but is not limited to:
[0098] 1. Airbag signal;
[0099] 2. Power supply voltage drop rate (Voltage drop threshold) or voltage value (Voltage threshold);
[0100] 3. AEB activation signal;
[0101] 4. Longitudinal sudden braking acceleration (Emergency braking threshold) lasts for more than 0.3 seconds (preset duration).
[0102] The video data power-off protection method disclosed in this embodiment, through cross-detection of multiple physical and electronic signals such as airbag signals, voltage anomalies, AEB activation, and emergency braking acceleration, can capture the moment of a serious accident or system failure from multiple dimensions such as vehicle structural safety, electrical system, active safety, and dynamic behavior, thereby minimizing missed detections and greatly enhancing the value of the system in safety accidents.
[0103] For the convenience of understanding the above Figures 2 to 5 For a better understanding of the illustrated embodiments, please refer to the following: Figure 6 , Figure 6 This is an interactive flowchart of a video data power-off protection system disclosed in an embodiment of this application.
[0104] Combination Figure 6 As shown, the vehicle sensors send vehicle speed / acceleration data every 100ms, the ADAS system sends TTC / warning signals in real time, and the power supply module sends voltage data to the decision control unit every 50ms. The decision control unit then calculates the disc drop interval using a product-type multi-factor coupling model. Simultaneously, video data is continuously written to the memory buffer. If the disc drop interval is reached, the decision control unit sends a disc drop command to the execution unit. The execution unit reads the video data from the memory buffer according to the command and writes it to a storage medium (such as non-volatile memory). At this point, the memory buffer is cleared of the written video data.
[0105] In some cases, if the power supply module's transmit voltage drop rate is... (or others, please refer to) Figure 5 In the embodiment shown), the decision control unit determines that it is an emergency event (S5). At this time, the decision control unit immediately sends an immediate disk write command to the execution unit. At this time, the execution unit, according to the immediate disk write command, forcibly reads the video data in the memory buffer and writes the video data into the storage medium (non-volatile memory, etc.) first, and completes the disk write feedback.
[0106] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the steps or stages of other steps.
[0107] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a video data power-off protection system disclosed in an embodiment of this application.
[0108] The acquisition unit 701 is used to acquire vehicle status information in real time and determine the current video data drop interval based on the vehicle status information; wherein, the video data is data acquired by the vehicle in real time and stored in the memory buffer; the vehicle status information includes one or more of the following: vehicle speed, acceleration, driver assistance ADAS signals, and power supply voltage;
[0109] The writing unit 702 is used to write video data in the memory buffer to the cache memory according to the current disk write interval;
[0110] When the execution unit 703 detects an event that meets a preset emergency condition, it interrupts the execution of the current disk insertion interval and immediately writes the video data in the memory buffer into the cache memory.
[0111] For example, the system further includes: a setting unit 704 and a matching unit 705;
[0112] Setting unit 704 is used to set a preset state machine model; wherein, the state machine model contains multiple running states, each state is associated with a corresponding trigger condition and disk write interval, and each running state has a different priority.
[0113] The matching unit 705 is used to match the triggering conditions met according to the vehicle status information and enter the corresponding operating state to determine the current disc drop interval; wherein, the high-priority operating state can be interrupted immediately and overwrite the low-priority operating state.
[0114] For example, a state machine model includes at least:
[0115] The basic state corresponds to the first disk drop interval when there are no special events.
[0116] In high-speed mode, the second disc drop interval is triggered when the vehicle speed continuously exceeds the first speed threshold. The second disc drop interval is shorter than the first disc drop interval.
[0117] In aggressive driving conditions, the third disc drop interval is triggered when the longitudinal acceleration exceeds the first acceleration threshold or the lateral acceleration exceeds the second acceleration threshold. The third disc drop interval is shorter than the second disc drop interval.
[0118] ADAS warning status is triggered when the collision time is less than or equal to the first collision time threshold and greater than the second collision time threshold, corresponding to the fourth disk drop interval.
[0119] ADAS alarm status is triggered when the collision time is less than or equal to the second collision time threshold and greater than the third collision time threshold, corresponding to the fifth disk drop interval, which is less than the fourth disk drop interval.
[0120] An emergency state is triggered when preset emergency conditions are met, causing an immediate disk drop.
[0121] Among them, the priorities of basic state, high-speed state, aggressive driving state, ADAS warning state, ADAS alarm state, and emergency state are from low to high, with emergency state having the highest priority.
[0122] For example, the system further includes: a trigger unit 706;
[0123] Triggering unit 706 is used to trigger a state degradation operation when the running time of the current running state meets the minimum stabilization time; wherein, during state degradation, if no lower priority running state is activated, it enters the basic state; if a lower priority state is activated, it enters the running state with the highest priority.
[0124] For example, the system further includes: a computing unit 707;
[0125] Calculation unit 707 is used to substitute multiple vehicle state influence factor functions into a preset multiplicative multifactor coupling model to calculate the current landing interval; wherein, the expression of the multiplicative multifactor coupling model is:
[0126] , Minimum plate drop interval, Based on the basic plate drop interval, For the speed influence factor function, For acceleration influence factor function, This is the collision time influence factor function.
[0127] For example,
[0128] Speed Influence Factor Function The expression is: ,in, For speed sensitivity coefficient, This represents the vehicle's current speed. For speed threshold, Describes orthogonal functions, taking The main part;
[0129] Acceleration Influence Factor Function The expression is: ,in, The longitudinal acceleration sensitivity coefficient, The lateral acceleration sensitivity coefficient, For longitudinal acceleration, It is lateral acceleration;
[0130] Collision time influence factor function The expression is:
[0131] ,in, To maximize the threshold, As the warning threshold, This is the alarm threshold. The collision time TTC decay coefficient is used. This is the alarm status coefficient. This represents the emergency state coefficient.
[0132] For example, the preset emergency conditions include at least one of the following:
[0133] Airbag deployment signal detected;
[0134] The rate of decrease of the supply voltage is detected to exceed the voltage drop threshold, or the supply voltage is detected to be below the voltage threshold;
[0135] Automatic Emergency Braking (AEB) activation signal detected;
[0136] The system detects that the longitudinal acceleration exceeds a preset emergency braking threshold and continues for a preset duration.
[0137] For example, the system further includes: a determining unit 708;
[0138] The determination unit 708 is used to pre-calculate and determine the size of the memory buffer based on the maximum allowed disk write interval and the video bitrate.
[0139] Please refer to the following: Figure 8 The schematic diagram of a video data power-off protection device disclosed in this application includes:
[0140] Central processing unit 801, memory 805, input / output interface 804, wired or wireless network interface 803, and power supply 802;
[0141] Memory 805 is either a short-term storage memory or a persistent storage memory;
[0142] The central processing unit 801 is configured to communicate with the memory 805 and execute instructions stored in the memory 805 to perform the aforementioned operations. Figures 1 to 5 Video data power-off protection method in any of the embodiments shown.
[0143] This application also provides a chip system, which includes at least one processor and a communication interface. The communication interface and the at least one processor are interconnected via a circuit. The at least one processor is used to run computer programs or instructions to perform the aforementioned... Figures 1 to 5 Video data power-off protection method in any of the embodiments shown.
[0144] This application also provides a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to perform the aforementioned actions. Figures 1 to 5 Video data power-off protection method in any of the embodiments shown.
[0145] This application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to perform the aforementioned... Figures 1 to 5 Video data power-off protection method in any of the embodiments shown.
[0146] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0147] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0148] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0149] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0150] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A method for power-loss protection of video data, characterized in that, The method includes: The system collects vehicle status information in real time and determines the current disc loading interval of video data based on the vehicle status information; wherein the video data is data collected in real time by the vehicle and stored in a memory buffer; the vehicle status information includes one or more of the following: vehicle speed, acceleration, driver assistance ADAS signals, and power supply voltage; According to the current disk write interval, the video data in the memory buffer is written to the cache memory; When an event that meets a preset emergency condition is detected, the execution of the current disk insertion interval is interrupted, and the video data in the memory buffer is immediately written to the cache memory.
2. The video data power-off protection method according to claim 1, characterized in that, Determining the current disc loading interval for video data based on the vehicle status information includes: Set a preset state machine model; wherein the state machine model contains multiple running states, each state is associated with a corresponding trigger condition and disk write interval, and each running state has a different priority; According to the vehicle status information, the corresponding operating state is entered to determine the current disc drop interval; wherein, the high-priority operating state can be immediately interrupted and overwritten by the low-priority operating state.
3. The video data power-off protection method according to claim 2, characterized in that, The state machine model includes at least: The basic state corresponds to the first disk drop interval when there are no special events. The high-speed state is triggered when the vehicle speed continuously exceeds the first speed threshold, corresponding to the second disc drop interval, which is less than the first disc drop interval. In an aggressive driving state, a third disc drop interval is triggered when the longitudinal acceleration exceeds the first acceleration threshold or the lateral acceleration exceeds the second acceleration threshold, which is less than the second disc drop interval. ADAS warning status is triggered when the collision time is less than or equal to the first collision time threshold and greater than the second collision time threshold, corresponding to the fourth disk drop interval. The ADAS alarm status is triggered when the collision time is less than or equal to the second collision time threshold and greater than the third collision time threshold, corresponding to the fifth disc drop interval, which is less than the fourth disc drop interval. An emergency state is triggered when preset emergency conditions are met, causing an immediate disk drop. Among them, the basic state, the high-speed state, the aggressive driving state, the ADAS warning state, the ADAS alarm state, and the emergency state have the highest priority from low to high.
4. The video data power-off protection method according to claim 3, characterized in that, The method further includes: When the running time of the current running state meets the minimum stability time, a state degradation operation is triggered. During state degradation, if no lower priority running state is activated, the state enters the basic state; if a lower priority state is activated, the state enters the highest priority running state.
5. The video data power-off protection method according to claim 1, characterized in that, Determining the current disc loading interval for video data based on the vehicle status information includes: Substituting multiple vehicle state influencing factor functions into a preset product-type multi-factor coupling model, the current landing interval is calculated; wherein, the expression of the product-type multi-factor coupling model is: The For the minimum disk drop interval, the Based on the basic disk drop interval, the The speed influence factor function, the The acceleration influence factor function, the This is the collision time influence factor function.
6. The video data power-off protection method according to claim 5, characterized in that, The speed influence factor function The expression is: , wherein The velocity sensitivity coefficient, the The current speed of the vehicle, the As the speed threshold, the Describes orthogonal functions, taking The main part; The acceleration influence factor function The expression is: , wherein The longitudinal acceleration sensitivity coefficient, the The lateral acceleration sensitivity coefficient, the For longitudinal acceleration, the It is lateral acceleration; The collision time influence factor function The expression is: , wherein To maximize the consideration of the threshold, the As the warning threshold, the The alarm threshold, the The collision time TTC decay coefficient, the For alarm status coefficient, the This represents the emergency state coefficient.
7. The video data power-off protection method according to claim 1, characterized in that, The preset emergency conditions include at least one of the following: Airbag deployment signal detected; The rate of decrease of the supply voltage is detected to exceed a voltage drop threshold, or the supply voltage is detected to be below a voltage threshold; Automatic Emergency Braking (AEB) activation signal detected; The longitudinal acceleration is detected to exceed a preset emergency braking threshold and continues for a preset duration.
8. A video data power-off protection system, characterized in that, The system includes: The acquisition unit is used to acquire vehicle status information in real time and determine the current video data drop interval based on the vehicle status information; wherein, the video data is data acquired by the vehicle in real time and stored in a memory buffer; the vehicle status information includes one or more of the following: vehicle speed, acceleration, driver assistance ADAS signals, and power supply voltage; The writing unit is used to write the video data in the memory buffer into the cache memory according to the current disk write interval; The execution unit is configured to interrupt the execution of the current disk insertion interval when an event that meets a preset emergency condition is detected, and immediately write the video data in the memory buffer into the cache memory.
9. A video data power-off protection device, characterized in that, The device includes: Central processing unit, memory, input / output interfaces, wired or wireless network interfaces, and power supply; The memory is either a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the video data power-off protection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when executed on a computer, cause the computer to perform the video data power-off protection method as described in any one of claims 1 to 7.