Data acquisition method of automobile data recorder and automobile data recorder

By monitoring the accident signal value using the driving data within the first preset time and the second preset time in areas where the background is not allowed to continue recording, the accident screen is fully recorded, which solves the problem that the accident screen cannot be recorded in full, and improves the recording response speed and integrity.

CN119992682APending Publication Date: 2025-05-13CHENGDU CELIS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411425060.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In areas where the dash recorder is not allowed to continuously record in real time in the background, the accident scene cannot be recorded in full.

Method used

The first travel data of the vehicle is stored by cycling update within the first preset time period and the accident signal value is monitored. When the accident signal value is greater than the preset signal value, the second travel data within the second preset time is stored to generate an accident data file.

Benefits of technology

It ensures the response speed of the accident situation, improves the completeness and accuracy of the accident screen recording, and solves the problem that the accident screen cannot be recorded in full.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119992682A_ABST
    Figure CN119992682A_ABST
Patent Text Reader

Abstract

The invention relates to a data acquisition method of an automobile data recorder and the automobile data recorder. Relates to the technical field of vehicles. The method comprises the following steps: circularly updating and storing first driving data of a vehicle based on a first preset duration, and monitoring an accident signal value of the vehicle; when it is monitored that the accident signal value is larger than the preset signal value, second driving data of the vehicle in a second preset duration are stored at the same time based on the first driving data; wherein the starting moment of the second preset duration is the ending moment of the first preset duration; and generating an accident data file based on the first driving data and the second driving data. By adopting the method, the problem that an accident picture cannot be completely recorded in an area where the automobile data recorder is not allowed to continuously record in real time at the background can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a data collection method for a driving recorder and a driving recorder. Background Art

[0002] As the number of cars continues to increase, urban roads are becoming more and more congested, which in turn leads to an increasing number of traffic accidents. In order to facilitate subsequent accountability, it is extremely important to fully record the scene of the accident when the traffic accident occurs.

[0003] However, although there are already dashcams built into the vehicle system that can record audio and video images during driving in real time, and dashcams can generally record continuously in the background to effectively avoid the problem of not recording the accident scene when an emergency occurs. However, in some areas where dashcams are not allowed to record continuously in real time in the background, the technical means provided by the existing technology only start recording driving videos after identifying that the vehicle has an emergency accident, which results in the inability to record the driving images at the time of the accident and before the accident, that is, it is impossible to effectively and completely record the scene of the accident.

[0004] Therefore, it is urgent to provide a method that can solve the problem that the accident scene cannot be recorded completely in areas where the driving recorder is not allowed to perform continuous real-time recording in the background. Summary of the invention

[0005] Based on this, it is necessary to provide a data collection method, device, dash cam, computer-readable storage medium and computer program product for a dash cam that can achieve complete recording of accident scenes in order to address the technical problem that accident scenes cannot be fully recorded in areas where dash cams are not allowed to perform continuous real-time recording in the background.

[0006] In a first aspect, the present application provides a data collection method for a driving recorder, comprising:

[0007] cyclically updating and storing first driving data of the vehicle based on a first preset time length, and monitoring an accident signal value of the vehicle;

[0008] When it is detected that the accident signal value is greater than the preset signal value, based on the first driving data, second driving data of the vehicle within a second preset time period is stored simultaneously; wherein the start time of the second preset time period is the end time of the first preset time period;

[0009] An accident data file is generated based on the first driving data and the second driving data.

[0010] In one of the embodiments, monitoring the accident signal value of the vehicle includes: monitoring at least one of a collision signal value, a brake signal value, a wheel lock signal value and a sensor signal value of the vehicle.

[0011] In one of the embodiments, the sensor of the vehicle includes an acceleration sensor and a gyroscope sensor; and monitoring the sensor signal value of the vehicle includes: monitoring multiple acceleration values ​​of the acceleration sensor and multiple angular velocity values ​​of the gyroscope sensor.

[0012] In one embodiment, when it is monitored that the accident signal value is greater than the preset signal value, the second driving data of the vehicle within a second preset time period is stored based on the first driving data, including: when it is monitored that at least one of the collision signal value, the brake signal value and the wheel lock signal value of the vehicle is greater than the corresponding preset sub-signal value, and at least one of the acceleration value and the angular velocity value of the sensor signal value is greater than the corresponding preset sub-signal value, the second driving data of the vehicle within the second preset time period is stored based on the first driving data.

[0013] In one of the embodiments, after monitoring the multiple acceleration values ​​of the acceleration sensor and the multiple angular velocity values ​​of the gyroscope sensor, it also includes: when at least one of the angular velocity values ​​is greater than the corresponding preset angular velocity threshold, determining that the state of the vehicle is a first accident state; when at least one of the acceleration values ​​is greater than the corresponding preset acceleration threshold, determining that the state of the vehicle is a second accident state.

[0014] In one of the embodiments, the first driving data and the second driving data include video data and audio data; after the second driving data of the vehicle within a second preset time period is stored simultaneously based on the first driving data, it also includes: encoding the video data and the audio data of the first driving data and the second driving data, and inputting the encoded video data and the audio data into a data cache pool.

[0015] In one of the embodiments, inputting the encoded video data and the audio data into a data cache pool comprises: extracting the encoding timestamps of the encoded video data and the audio data; comparing the time difference between the timestamp of the first data in the data cache pool and the encoding timestamp; and inputting the encoded video data and the audio data into the data cache pool when the time difference is less than the time length of the encoded video data and the audio data.

[0016] In one of the embodiments, it also includes: when the time difference is equal to or greater than the time length of the encoded video data and the audio data, removing the first data from the data cache pool and inputting the encoded video data and the audio data into the data cache pool.

[0017] In one of the embodiments, when it is monitored that the accident signal value is greater than the preset signal value, it also includes: generating a scheduled task associated with the accident data file output; the triggering condition of the scheduled task includes that the driving recorder has stored the first driving data of the first preset time period and the second driving data of the second preset time period; after storing the second driving data of the vehicle within the second preset time period based on the first driving data, it also includes: when it is monitored that the scheduled task meets the corresponding triggering condition, generating the accident data file based on the first driving data and the second driving data.

[0018] In a second aspect, the present application also provides a data acquisition device for a driving recorder, comprising:

[0019] A data acquisition module, used for cyclically updating and storing first driving data of the vehicle based on a first preset time length, and monitoring an accident signal value of the vehicle;

[0020] A data storage module, configured to store second driving data of the vehicle within a second preset time period based on the first driving data when the accident signal value is detected to be greater than a preset signal value; wherein the start time of the second preset time period is the end time of the first preset time period;

[0021] A data processing module is used to generate an accident data file based on the first driving data and the second driving data.

[0022] In a third aspect, the present application further provides a driving recorder, the driving recorder comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0023] cyclically updating and storing first driving data of the vehicle based on a first preset time length, and monitoring an accident signal value of the vehicle;

[0024] When it is detected that the accident signal value is greater than the preset signal value, based on the first driving data, second driving data of the vehicle within a second preset time period is stored simultaneously; wherein the start time of the second preset time period is the end time of the first preset time period;

[0025] An accident data file is generated based on the first driving data and the second driving data.

[0026] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0027] cyclically updating and storing first driving data of the vehicle based on a first preset time length, and monitoring an accident signal value of the vehicle;

[0028] When it is detected that the accident signal value is greater than the preset signal value, based on the first driving data, second driving data of the vehicle within a second preset time period is stored simultaneously; wherein the start time of the second preset time period is the end time of the first preset time period;

[0029] An accident data file is generated based on the first driving data and the second driving data.

[0030] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, which implements the following steps when executed by a processor:

[0031] cyclically updating and storing first driving data of the vehicle based on a first preset time length, and monitoring an accident signal value of the vehicle;

[0032] When it is detected that the accident signal value is greater than the preset signal value, based on the first driving data, second driving data of the vehicle within a second preset time period is stored simultaneously; wherein the start time of the second preset time period is the end time of the first preset time period;

[0033] An accident data file is generated based on the first driving data and the second driving data.

[0034] In the data collection method and driving recorder of the driving recorder provided by the present application, the data collection method of the driving recorder first cyclically updates and stores the first driving data of the vehicle based on a first preset time length, and monitors the accident signal value of the vehicle; then, when it is monitored that the accident signal value is greater than the preset signal value, the second driving data of the vehicle within a second preset time length is further stored based on the first driving data; wherein the starting time of the second preset time length is the ending time of the first preset time length; finally, an accident data file is generated based on the first driving data and the second driving data. In the above process, by cyclically updating and storing the first driving data of the first preset time, in the case that no traffic accident occurs, the driving recorder can monitor and record the driving status of the vehicle for the most recent first preset time, so as to avoid the continuous recording of driving data by the driving recorder in the background, which is conducive to avoiding the acquisition of user privacy data; then, in combination with the driving recorder, the accident signal value of the vehicle is obtained in real time. Once the accident signal value is detected to exceed the preset signal value, it means that the vehicle has a traffic accident at this time. At this time, based on the first driving data of the first preset time before and at the time of the accident collected by the driving recorder, the second driving data after the accident is further immediately recorded and stored, and the accident data file is generated based on the combination of the first driving data and the second driving data. The recording and storage of the first driving data and the second driving data related to the accident is triggered based on the accident signal value exceeding the preset signal value, which ensures the response speed of the driving recorder to the recording of the accident situation, and also improves the integrity and accuracy of the recording of the relevant accident pictures. Therefore, the data collection method of the driving recorder solves the problem that the accident picture cannot be recorded completely in areas where the driving recorder is not allowed to perform continuous real-time recording in the background. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A schematic diagram of a flow chart of a data collection method of a driving recorder in one embodiment;

[0037] Figure 2 A schematic diagram of a flow chart of data collection steps of a driving recorder in one embodiment;

[0038] Figure 3 A schematic diagram of a signal receiving process of a driving recorder in one embodiment;

[0039] Figure 4 A schematic diagram of a signal receiving process of a driving recorder in another embodiment;

[0040] Figure 5 A flowchart of a vehicle driving recorder buffering video data and audio data in one embodiment;

[0041] Figure 6 A schematic diagram of a process of encoding audio and video data by a driving recorder in one embodiment;

[0042] Figure 7 A schematic diagram of a process of a driving recorder writing video data and audio data into a data buffer pool in one embodiment;

[0043] Figure 8 A structural block diagram of a data acquisition device for a driving recorder in one embodiment;

[0044] Fig. 9 FIG. 1 is a diagram showing the internal structure of a driving recorder in one embodiment. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] In an exemplary embodiment, Figure 1 As shown, a data collection method for a driving recorder is provided, comprising the following steps S102 to S106. Among them:

[0047] Step S102, cyclically updating and storing first driving data of the vehicle based on a first preset time length, and monitoring the accident signal value of the vehicle.

[0048] Among them, the first preset duration is a specified time period, the duration of which can be customized by the user, or a fixed duration can be set based on the regulations of different regions, and this application does not make specific limitations on this. The driving recorder is used to cyclically update the external driving picture of the vehicle during this time period (first preset duration). The first driving data is vehicle driving related information collected within the first preset duration, and may include video data and audio data of the outside of the vehicle, and further, may also include the vehicle's driving speed, acceleration, driving direction, etc. The accident signal value is a specific indicator or parameter used to determine whether the vehicle has an accident. When the accident signal value exceeds the normal range, it indicates that an accident may have occurred.

[0049] In the above-mentioned first driving data of the vehicle that is cyclically updated and stored based on the first preset duration, the cyclic update can mean that the driving recorder will only store the audio and video data of the most recent first preset duration, that is, although the driving recorder is always shooting the external driving picture of the vehicle, it will only store the latest audio and video data of the first preset duration, and the audio and video data before the first preset duration will be directly deleted, or the audio and video data before the first preset duration will be overwritten by the latest audio and video data of the first preset duration. In an optional embodiment, for example, in the case where no traffic accident has occurred, the driving recorder will only store the most recent 15S of audio and video data, that is, when the driving recorder has stored 15S of the first driving data, if the accident signal value of the monitored vehicle does not exceed the preset signal value, then no traffic accident has occurred at this time, the driving recorder will delete the data of the 15S segment, and re-record and store the new 15S of the first driving data; in another optional embodiment, for example, the driving recorder will only store the most recent 15S of audio and video data, and the audio and video data before 15S will be continuously updated and overwritten.

[0050] Step S104, when it is monitored that the accident signal value is greater than the preset signal value, based on the first driving data, the second driving data of the vehicle within the second preset time length is stored simultaneously; wherein the starting time of the second preset time length is the ending time of the first preset time length.

[0051] Among them, the preset signal value is a threshold value for comparison with the accident signal value. When the accident signal value exceeds the preset signal value, it indicates that the vehicle has an accident. When the accident signal value does not exceed the preset signal value, it indicates that the vehicle has not an accident. Only when the judgment result is that the vehicle has an accident, the driving recorder further records and stores the second driving data of the second preset time length based on the first driving data of the first preset time length currently stored. The second preset time length is a new time period starting from the end time of the first preset time length after detecting that the accident signal value is greater than the preset signal value, which is used to record the vehicle driving data after the accident occurs, specifically the above-mentioned audio and video image data of the vehicle's exterior. Correspondingly, the first preset time length is used to record the vehicle driving data at the time of the accident and a period of time before the accident, specifically the above-mentioned audio and video image data of the vehicle's exterior. Since the second driving data is collected immediately after the first driving data, the combination of the second driving data and the first driving data can be used to record the complete situation before and after the accident.

[0052] It should also be added that the present application does not specifically limit whether the first preset duration and the second preset duration are the same. For example, in order to ensure the integrity of the relevant accident images at the time of the accident and before the accident, the first preset duration may be set to be longer than the second preset duration.

[0053] Step S106: Generate an accident data file based on the first driving data and the second driving data.

[0054] The accident data file is a file generated by summarizing the first driving data and the second driving data, and includes detailed data information at the time of the accident and before and after the accident, such as audio and video image data at the time of the accident and before and after the accident.

[0055] In the data collection method of the above-mentioned driving recorder, the first driving data of the vehicle is first cyclically updated and stored based on the first preset time length, and the accident signal value of the vehicle is monitored; then, when it is monitored that the accident signal value is greater than the preset signal value, the second driving data of the vehicle within the second preset time length is further stored based on the first driving data; wherein the starting time of the second preset time length is the ending time of the first preset time length; finally, an accident data file is generated based on the first driving data and the second driving data. In the above process, by cyclically updating and storing the first driving data of the first preset time, in the case that no traffic accident occurs, the driving recorder can monitor and record the driving status of the vehicle for the most recent first preset time, so as to avoid the continuous recording of driving data by the driving recorder in the background, which is conducive to avoiding the acquisition of user privacy data; then, in combination with the driving recorder, the accident signal value of the vehicle is obtained in real time. Once the accident signal value is detected to exceed the preset signal value, it means that the vehicle has a traffic accident at this time. At this time, based on the first driving data of the first preset time before and at the time of the accident collected by the driving recorder, the second driving data after the accident is further immediately recorded and stored, and the accident data file is generated based on the combination of the first driving data and the second driving data. The recording and storage of the first driving data and the second driving data related to the accident is triggered based on the accident signal value exceeding the preset signal value, which ensures the response speed of the driving recorder to the recording of the accident situation, and also improves the integrity and accuracy of the recording of the relevant accident pictures. Therefore, the data collection method of the driving recorder solves the problem that the accident picture cannot be recorded completely in areas where the driving recorder is not allowed to perform continuous real-time recording in the background.

[0056] In an exemplary embodiment, the monitoring of the accident signal value of the vehicle in the above step S102 includes: monitoring at least one of the collision signal value, brake signal value, wheel lock signal value and sensor signal value of the vehicle.

[0057] Specifically, the collision signal value can be the signal value of a specific signal detected by a relevant collision sensor when a collision accident occurs in the vehicle. The signal value can usually be used to determine information such as the intensity and direction of the vehicle collision, and can be used to identify the moment of the accident, so that at the moment of the accident, the vehicle's driving recorder can be triggered in time to record relevant accident data. Specifically, the driving recorder is triggered to further record and store second driving data of a second preset time length after storing first driving data of a first preset time length.

[0058] The brake signal value can be used to describe the state of the vehicle's brake system, which may include the pressure of the brake pedal, the working condition of the brake system, etc. When the brake signal value exceeds the set threshold, it may indicate that the driver is performing unconventional emergency braking, that is, the probability of a traffic accident at this time is very high; therefore, the brake signal value can also be used to identify the moment when the accident occurs, so that at the moment of the accident, the vehicle's driving recorder can be triggered to record relevant data, specifically, the driving recorder is triggered to further record and store the second driving data of the second preset time length after storing the first driving data of the first preset time length.

[0059] The wheel lock signal value can be used to describe the state in which the wheels of the vehicle stop rotating due to excessive braking during the braking process. When the wheel lock signal value exceeds the set threshold, it may indicate that the driver is over-braking the vehicle; therefore, the wheel lock signal value can also be used to identify the moment of the accident, so that at the moment of the accident, the vehicle's driving recorder can be triggered to record relevant data, specifically, the driving recorder is triggered to further record and store the second driving data of the second preset time length after storing the first driving data of the first preset time length. In addition, the monitoring of the wheel lock signal value can also help determine the braking performance of the vehicle in an emergency situation, and the braking operation applied by the driver to the vehicle is conducive to preventing the vehicle from losing control or slipping.

[0060] The sensor signal value may include values ​​monitored by various vehicle sensors, such as values ​​monitored by an acceleration sensor and values ​​monitored by a gyroscope sensor. The sensor signal value can help determine the driving status of the vehicle. When the sensor signal value exceeds a set threshold, it may indicate that the vehicle is about to have an accident. Therefore, the sensor signal value can also be used to identify the moment when the accident occurs, so that before the accident occurs, the vehicle's driving recorder can be triggered to record relevant data. Specifically, the driving recorder is triggered to further record and store second driving data of a second preset time length after storing first driving data of a first preset time length.

[0061] In this embodiment, by monitoring at least one of the vehicle's collision signal value, brake signal value, wheel lock signal value and sensor signal value, more accurate vehicle safety management and accident warning can be achieved, which is conducive to timely triggering the vehicle's driving recorder to record relevant accident data, thereby improving driving safety and event response capabilities.

[0062] In one embodiment, the vehicle's sensors include an acceleration sensor and a gyroscope sensor; the above-mentioned monitoring of the vehicle's sensor signal values ​​includes: monitoring multiple acceleration values ​​of the acceleration sensor and multiple angular velocity values ​​of the gyroscope sensor.

[0063] Among them, the sensor is a device used to detect and measure specific physical quantities and convert them into signal values ​​that can be analyzed. In a vehicle, different types of sensors are used to monitor a variety of different dynamic parameters; for example, in addition to the above-mentioned collision sensors, the vehicle may further include acceleration sensors and gyroscope sensors. Among them, the acceleration sensor is a sensor used to measure the acceleration of the vehicle in various directions. For example, it can measure the longitudinal acceleration, which is the acceleration of the vehicle along its direction of travel, that is, the acceleration in the direction from the front to the rear of the vehicle, reflecting the acceleration, deceleration and braking of the vehicle; and for example, it can measure the lateral acceleration, that is, the horizontal acceleration perpendicular to the direction of travel of the vehicle, which is usually used to monitor the vehicle during turning. The gyroscope sensor is used to measure the angular velocity of the vehicle, that is, the speed at which the vehicle rotates around different axes, such as the speed of rotation around the X-axis, which is usually called the roll angular velocity, which reflects the rotation of the vehicle around its horizontal axis (X-axis), that is, perpendicular to the direction of travel of the vehicle and the vertical axis (Z-axis), which is used to reflect the situation when the vehicle rolls over or makes a sharp turn; and for example, the rotation around the Y-axis, which is usually called the pitch angular velocity, which reflects the rotation of the vehicle around its longitudinal axis, that is, along the direction of travel of the vehicle, that is, when the vehicle goes uphill, downhill or pitches. Gyroscope sensors can also provide key information about the vehicle's heading and stability, especially when driving at high speeds or turning. Acceleration refers to the value measured by the acceleration sensor, usually expressed in meters per second squared (m / s²), which can help analyze the vehicle's motion state, including dynamic changes during acceleration, deceleration, and steering. Angular velocity refers to the value measured by the gyroscope sensor, usually expressed in degrees per second (° / s) or radians per second (rad / s), which is used to evaluate the vehicle's stability and control ability when turning or changing direction.

[0064] In this embodiment, by monitoring the acceleration values ​​and angular velocity values, a comprehensive analysis of the dynamic behavior of the vehicle can be achieved; real-time monitoring of acceleration and angular velocity can help identify dangerous driving behaviors, such as sudden braking or rapid turns, thereby issuing alarms in a timely manner; by monitoring the dynamic changes of sensor-related measured values, the vehicle's stability control system can be optimized to reduce the risk of vehicle skidding and rollover; it can also improve driving safety, identify potential dangerous situations in a timely manner, and optimize the driving experience.

[0065] Further, in one embodiment, when it is monitored that the accident signal value is greater than the preset signal value, the second driving data of the vehicle within the second preset time length is stored based on the first driving data, including: when it is monitored that at least one of the collision signal value, brake signal value and wheel lock signal value of the vehicle is greater than the corresponding preset sub-signal value, and at least one of the acceleration value and angular velocity value of the sensor signal value is greater than the corresponding preset sub-signal value, the second driving data of the vehicle within the second preset time length is stored based on the first driving data.

[0066] Optionally, the second preset time length refers to the time period for continuing to record the vehicle driving data after the accident signal is detected, which can be set according to safety standards or design requirements. The second preset time length usually refers to the time period within a few seconds after the accident occurs to capture the changes in the vehicle during this time period. For example, if the second preset time length is set to 5 seconds, the driving recorder will continue to record data for 5 seconds after the accident occurs; and the second driving data is the data collected after the vehicle accident, which is collected immediately after the first driving data; the preset sub-signal value refers to the preset value corresponding to the collision signal value of the vehicle, or the brake signal The preset value corresponding to the value, or the preset value corresponding to the wheel lock signal value, or the preset value corresponding to the acceleration value of the sensor signal value, or the preset value corresponding to the angular velocity value, the above preset value represents the threshold value of the vehicle accident. If at least one of the collision signal value, brake signal value and wheel lock signal value of the vehicle is monitored to be greater than the corresponding preset sub-signal value, that is, the preset value, and at least one of the acceleration value and the angular velocity value of the sensor signal value is greater than the corresponding preset sub-signal value, that is, the preset value, then it is judged that the vehicle has an accident, and it is necessary to store the second driving data of the vehicle within the second preset time period based on the first driving data.

[0067] Specifically, the accident state of the vehicle is determined by combining at least one of the collision signal value, the brake signal value and the wheel lock signal value in the accident signal value of the vehicle and at least one of the acceleration value and the angular velocity value in the sensor signal value; for example, if the collision signal value and the acceleration value of the vehicle are respectively greater than the corresponding preset sub-signal values, if the collision signal value and the angular velocity value of the vehicle are respectively greater than the corresponding preset sub-signal values, if the brake signal value and the acceleration value of the vehicle are respectively greater than the corresponding preset sub-signal values, if the brake signal value and the angular velocity value of the vehicle are respectively greater than the corresponding preset sub-signal values, if the wheel lock signal value and the acceleration value of the vehicle are respectively greater than the corresponding preset sub-signal values, if the wheel lock signal value and the acceleration value of the vehicle are respectively greater than the corresponding preset sub-signal values, any one of the above conditions can be used to determine that the vehicle is in an accident state.

[0068] In this embodiment, by combining at least one of the collision signal value, brake signal value and wheel lock signal value in the vehicle's accident signal value and at least one of the acceleration value and angular velocity value in the sensor signal value, the accident state of the vehicle is judged, so that it can be more accurately determined whether the vehicle has an accident and more comprehensive data on the vehicle accident can be obtained.

[0069] In an exemplary embodiment, after executing the above-mentioned step S104 to monitor multiple acceleration values ​​of the acceleration sensor and multiple angular velocity values ​​of the gyroscope sensor, it also includes: when at least one angular velocity value is greater than the corresponding preset angular velocity threshold, determining that the state of the vehicle is a first accident state; when at least one acceleration value is greater than the corresponding preset acceleration threshold, determining that the state of the vehicle is a second accident state.

[0070] Among them, the preset angular velocity threshold is a pre-defined standard value used to determine whether the vehicle enters a certain state. If the angular velocity value monitored in real time exceeds the angular velocity threshold, it indicates that the vehicle may be experiencing violent steering or loss of control; the first accident state may be when the angular velocity value exceeds the preset angular velocity threshold, the vehicle is marked as the "first accident state", indicating that the vehicle may be in a dangerous driving state, such as sharp turns or sideslipping, which may cause a collision or rollover; accordingly, the preset acceleration threshold: is also a set value, used to evaluate whether the acceleration or deceleration of the vehicle reaches a dangerous level. When the acceleration value exceeds the acceleration threshold, it indicates that the vehicle may be experiencing sudden acceleration or sudden braking; the second accident state may mean that if the acceleration value exceeds the preset acceleration threshold, the vehicle will be marked as the "second accident state", indicating that the vehicle suddenly accelerates or brakes.

[0071] In this embodiment, by monitoring the angular velocity and acceleration and comparing them with the corresponding preset thresholds, the state of the vehicle can be dynamically evaluated, and the evaluation results can be made more accurate. It can also help to timely identify the driver's potential dangerous driving behavior, thereby improving the safety of vehicle driving.

[0072] In one embodiment, the first driving data and the second driving data include video data and audio data; after storing the second driving data of the vehicle within a second preset time period based on the first driving data, it also includes: encoding the video data and audio data of the first driving data and the second driving data, and inputting the encoded video data and audio data into a data cache pool.

[0073] Specifically, video data refers to visual information recorded by the camera in the driving recorder, which is usually used to monitor the external driving environment and help analyze the cause of the accident. Video data may include the road ahead, side views, etc.; audio data can be the collected sound information outside the vehicle, which can provide other information about the driving environment, such as external traffic sounds during driving, which helps to comprehensively analyze the driving status of the vehicle; encoding is the process of converting raw data into a specific format for easy storage, transmission or processing, for example: in video and audio processing, encoding usually involves compression and formatting to reduce file size and improve playback efficiency; the data cache pool is a temporary storage area for storing encoded data, which can be quickly accessed and provide support for subsequent data processing, analysis or playback, and the design of the data cache pool usually takes into account the data reading speed and storage efficiency.

[0074] In this embodiment, by encoding the video and audio information of the first driving data and the second driving data and inputting them into a data cache pool, efficient data management and analysis can be achieved, which can provide important information support for subsequent driving behavior analysis, accident investigation and safety assessment, thereby improving the safety of vehicle driving.

[0075] Furthermore, in one embodiment, inputting the encoded video data and audio data into a data cache pool includes: extracting the encoding timestamp of the encoded video data and audio data; comparing the time difference between the timestamp of the first data in the data cache pool and the encoding timestamp; when the time difference is less than the time length of the encoded video data and audio data, inputting the encoded video data and audio data into the data cache pool.

[0076] Exemplarily, the encoded video data may be video information that has been compressed and formatted, and is usually stored in a specific encoding format to reduce file size and optimize playback efficiency, and the encoded video data may contain a variety of information, such as image frames, resolution, and frame rate, etc.; correspondingly, the encoded audio data refers to sound information that has been compressed and converted, and usually contains parameters such as audio stream, sampling rate, and number of channels, so as to facilitate effective storage and playback; timestamp is data used to mark the time when a specific event occurs. In video and audio processing, timestamp can be used to synchronize audio and video streams, analyze event sequence, and retrieve data at a specific moment; time difference refers to the difference between two time points, and in this embodiment, it can represent the gap between the timestamp of the first data and the encoding timestamp.

[0077] In this embodiment, by extracting the timestamp of the encoded video and audio data and comparing the time difference between the timestamp of the first data in the cache pool and the encoding timestamp, the timeliness of the encoded video data and audio data can be determined. If the time difference is less than the time length of the encoded video data and audio data, it means that the encoded video data and audio data can be safely input into the data cache pool, ensuring the validity and consistency of the data.

[0078] In one embodiment, the method further includes: when the time difference is equal to or greater than the time length of the encoded video data and audio data, removing the first piece of data from the data cache pool, and inputting the encoded video data and audio data into the data cache pool.

[0079] Specifically, removal refers to deleting data from the data cache pool. In this embodiment, it means that the first data in the data cache pool will be cleared when specific conditions are met to make room for new data. When the time difference is equal to or greater than the time length of the encoded video and audio data, it means that the first data in the cache pool can be safely removed to avoid data redundancy, and then the encoded video data and audio data will be input into the data cache pool, maintaining the continuity and validity of the data stream.

[0080] In one embodiment, when it is monitored that the accident signal value is greater than the preset signal value, it also includes: generating a scheduled task associated with the output of the accident data file; the triggering condition of the scheduled task includes that the driving recorder has stored the first driving data of the first preset time length and the second driving data of the second preset time length; after storing the second driving data of the vehicle within the second preset time length based on the first driving data, it also includes: when it is monitored that the scheduled task meets the corresponding triggering condition, generating an accident data file based on the first driving data and the second driving data.

[0081] Among them, the accident data file output refers to the data file automatically generated and saved by the driving recorder when a traffic accident occurs, which usually contains accident-related information such as time, location, speed, acceleration, etc.; the scheduled task refers to an operation that is automatically performed at a preset time interval or specific conditions. In this embodiment, it is used to ensure that the accident data file is generated when certain conditions are met; the trigger condition refers to a specific condition that needs to be met to start the scheduled task, which in this embodiment includes the time length of the first driving data and the second driving data stored in the driving recorder.

[0082] In this embodiment, by setting scheduled tasks and trigger conditions, key information is ensured to be recorded during driving. Once the driving recorder completes the storage of the first driving data and the second driving data for the first preset time period and the second preset time period, the driving recorder will automatically generate an accident data file, which helps to quickly collect the required data when an accident occurs.

[0083] The present application provides a method for collecting data from a driving recorder. Figure 2 As shown, the specific process of the data collection method of the driving recorder of the present application is described in detail below, including the following steps:

[0084] Step S202, receiving a signal when an emergency occurs.

[0085] Specifically, the signal receiving process is as follows: Figure 3As shown in the figure, through the connection between the CAN (Controller Area Network) bus and the MCU, and the connection between the MCU (Microcontroller Unit, an integrated circuit) and the QNX (Quick UNIX) system, and further connection with the HAL (Hardware Abstraction Layer) interface layer, it can be seen that the driving recorder only needs to interact with the middleware Adapter to receive the collision signal. The specific process is as follows: define the signal value to be monitored, and trigger the emergency recording signal, then send a signal that the wheel will be locked through the sensor installed on the wheel, the controller instructs the regulator to reduce the oil pressure of the wheel brake cylinder, reduce the braking torque, and after a certain period of time, restore the original oil pressure, and continuously cycle (up to 5 to 10 times per second) to always keep the wheel in a rotating state with the maximum braking torque. Among them, the automatic emergency braking system (Autonomous Emergency Braking, referred to as AEB) is an active safety technology for automobiles, mainly composed of three modules, including the control module (ECU), the distance measurement module, and the braking module. The core of the distance measurement module includes microwave radar, face recognition technology and video system, etc., which can provide safe, accurate and real-time images and road conditions information on the road ahead. Specifically, it can include collision signals and emergency brake signals. First, register the signal monitor through PlatformAdapter (platform adapter), then receive the change of signal value through onDataChange (a callback function), and then emergency braking also needs to trigger emergency recording; the specific flow chart is as follows Figure 4 As shown, the signal value is first defined, and then the ABS (Antilock Brake System) and AEB (Automatic Emergency Braking) are triggered. In addition, in order to improve the accuracy of accident judgment, the present application uses signals in combination with sensors as trigger conditions, including: acceleration sensors and gyroscope sensors. The specific steps are as follows: first obtain the sensor service, then register the acceleration sensor and the gyroscope sensor, and monitor the changes in sensor values, including the x-axis angular velocity, y-axis angular velocity and z-axis angular velocity of the gyroscope sensor, and the x-axis acceleration, y-axis acceleration and z-axis acceleration of the acceleration sensor.

[0086] The above process determines whether the current vehicle's driving is in an abnormal state by combining the angular velocity and acceleration values ​​of the xyz axis. If the acceleration value is greater than a certain threshold, the vehicle may be in emergency braking or a collision; if the angular velocity is greater than a certain threshold, the vehicle may be in a rollover state; in order to avoid misjudgment caused by the user during self-driving, the present application combines collision signals with sensors to further improve the accuracy of accident judgment.

[0087] Step S204, real-time caching of 15 seconds of video data and audio data before and after the accident.

[0088] Specifically, Figure 5 After the dash cam is started, the camera and audio recording will be turned on respectively. After obtaining the video data and audio data, they will be encoded through MediaCoder (media encoder) and stored in the cache pool, including VideoQueue (used to encapsulate the operation of adding a video queue) video data cache pool and AudioQueue (a software object used to record and play audio) audio data cache pool.

[0089] And, if Figure 6 As shown in the figure, when MediaCoder is used to encode audio and video data, a current timestamp is assigned to the data of the current frame. When the data is put into the buffer pool, the first data in the buffer pool is compared with the data for a time difference. If the time difference is less than 30s, the data is put at the end of the buffer pool. If the time difference is greater than 30s, the first data is removed from the buffer pool and the data is put at the end of the buffer pool.

[0090] Step S206, writing the video data and audio data into a file to generate an accident data file.

[0091] Specifically, after receiving the collision signal, a scheduled task is sent to be executed in 15 seconds. When the time is up, the task is executed and the data is written to the file. The audio and video data are synthesized and written to the mp4 file through MediaMuxer (a class used to encapsulate audio and video streams). Then, MediaMuxer is created and video data is obtained. Then, video data is written, audio data is obtained, and audio data is written. Figure 7 FIG. 4 is a schematic diagram of writing video data and audio data into a data buffer pool in this embodiment.

[0092] Through the above embodiments, for areas where the dash cam is not allowed to record in real time in the background, in order to solve the problem of being able to record accident images when an emergency accident collision occurs during driving, the accident collision signal is received to trigger recording of continuous images for a period of time, and the images before the accident are retained through data caching technology, thereby solving the problem that the dash cam cannot record in real time.

[0093] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0094] Based on the same inventive concept, the embodiment of the present application also provides a data acquisition device for a driving recorder for implementing the data acquisition method for a driving recorder involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more data acquisition devices for driving recorders provided below can refer to the limitations of the data acquisition method for driving recorders above, and will not be repeated here.

[0095] In an exemplary embodiment, Figure 8 As shown, a data acquisition device for a driving recorder is provided, comprising: a data acquisition module 801, a data storage module 802 and a data processing module 803, wherein:

[0096] The data acquisition module 801 is used to cyclically update and store first driving data of the vehicle based on a first preset time length, and monitor the accident signal value of the vehicle;

[0097] The data storage module 802 is used to store the second driving data of the vehicle within a second preset time period based on the first driving data when the accident signal value is greater than the preset signal value; wherein the start time of the second preset time period is the end time of the first preset time period;

[0098] The data processing module 803 is used to generate an accident data file based on the first driving data and the second driving data.

[0099] Furthermore, in one embodiment, the data acquisition module 801 is also used to monitor at least one of a collision signal value, a brake signal value, a wheel locking signal value and a sensor signal value of the vehicle.

[0100] Furthermore, in one embodiment, the data acquisition module 801 is also used to monitor a plurality of acceleration values ​​of the acceleration sensor and a plurality of angular velocity values ​​of the gyroscope sensor.

[0101] Furthermore, in one embodiment, the data acquisition module 801 is also used to store second driving data of the vehicle within a second preset time period based on the first driving data when it is monitored that at least one of the collision signal value, brake signal value and wheel lock signal value of the vehicle is greater than the corresponding preset sub-signal value, and at least one of the acceleration value and angular velocity value of the sensor signal value is greater than the corresponding preset sub-signal value.

[0102] Furthermore, in one embodiment, the data acquisition module 801 is also used to determine that the state of the vehicle is a first accident state when at least one angular velocity value is greater than a corresponding preset angular velocity threshold; and to determine that the state of the vehicle is a second accident state when at least one acceleration value is greater than a corresponding preset acceleration threshold.

[0103] Furthermore, in one embodiment, the data storage module 802 is further used to encode the video data and audio data of the first driving data and the second driving data, and input the encoded video data and audio data into the data cache pool.

[0104] Furthermore, in one embodiment, the data storage module 802 is also used to extract the encoding timestamp of the encoded video data and audio data; compare the time difference between the timestamp of the first data in the data cache pool and the encoding timestamp; when the time difference is less than the time length of the encoded video data and audio data, input the encoded video data and audio data into the data cache pool.

[0105] Furthermore, in one embodiment, the data storage module 802 is also used to remove the first data from the data cache pool and input the encoded video data and audio data into the data cache pool when the time difference is equal to or greater than the time length of the encoded video data and audio data.

[0106] Furthermore, in one embodiment, the data processing module 803 is also used to generate a scheduled task associated with the output of the accident data file; the triggering condition of the scheduled task includes that the driving recorder has stored first driving data of a first preset time period and second driving data of a second preset time period; after storing the second driving data of the vehicle within the second preset time period based on the first driving data, it also includes: when it is monitored that the scheduled task meets the corresponding triggering condition, generating an accident data file based on the first driving data and the second driving data.

[0107] Each module in the data acquisition device of the above-mentioned driving recorder can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the driving recorder in the form of hardware, or can be stored in the memory in the driving recorder in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0108] In an exemplary embodiment, a driving recorder is provided. The driving recorder may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The driving recorder includes a data acquisition device of the driving recorder and a cloud server. The data acquisition device of the driving recorder is connected to the cloud server, and the data acquisition device of the driving recorder may also include a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, a data acquisition method of the driving recorder is implemented.

[0109] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the driving recorder to which the scheme of the present application is applied. The specific driving recorder may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0110] In an exemplary embodiment, a driving recorder is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0111] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0112] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0113] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0114] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0115] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0116] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data collection method for a driving recorder, characterized in that: The method comprises: cyclically updating and storing first driving data of the vehicle based on a first preset time length, and monitoring an accident signal value of the vehicle; When it is detected that the accident signal value is greater than the preset signal value, based on the first driving data, second driving data of the vehicle within a second preset time period is stored simultaneously; wherein the start time of the second preset time period is the end time of the first preset time period; An accident data file is generated based on the first driving data and the second driving data.

2. The method according to claim 1, characterized in that The monitoring of the accident signal value of the vehicle includes: At least one of a collision signal value, a brake signal value, a wheel lock signal value, and a sensor signal value of the vehicle is monitored.

3. The method according to claim 2, characterized in that The sensors of the vehicle include an acceleration sensor and a gyroscope sensor; The monitoring of the sensor signal value of the vehicle includes: A plurality of acceleration values ​​of the acceleration sensor and a plurality of angular velocity values ​​of the gyro sensor are monitored.

4. The method according to claim 3, characterized in that When it is detected that the accident signal value is greater than a preset signal value, based on the first driving data, the second driving data of the vehicle within a second preset time period is stored simultaneously, including: When it is monitored that at least one of the collision signal value, the brake signal value and the wheel lock signal value of the vehicle is greater than the corresponding preset sub-signal value, and at least one of the acceleration value and the angular velocity value of the sensor signal value is greater than the corresponding preset sub-signal value, based on the first driving data, the second driving data of the vehicle within a second preset time length is stored simultaneously.

5. The method according to claim 3 or 4, characterized in that: After monitoring the multiple acceleration values ​​of the acceleration sensor and the multiple angular velocity values ​​of the gyroscope sensor, the method further includes: In a case where at least one of the angular velocity values ​​is greater than a corresponding preset angular velocity threshold, determining that the state of the vehicle is a first accident state; When at least one of the acceleration values ​​is greater than a corresponding preset acceleration threshold, the state of the vehicle is determined to be a second accident state.

6. The method according to claim 1, characterized in that The first driving data and the second driving data include video data and audio data; After storing the second driving data of the vehicle within a second preset time period based on the first driving data, the method further includes: The video data and the audio data of the first driving data and the second driving data are encoded, and the encoded video data and the audio data are input into a data buffer pool.

7. The method according to claim 6, characterized in that The step of inputting the encoded video data and the encoded audio data into a data buffer pool comprises: Extracting encoding timestamps of the encoded video data and the encoded audio data; Compare the time difference between the timestamp of the first data in the data cache pool and the encoding timestamp; In a case where the time difference is smaller than the time lengths of the encoded video data and the encoded audio data, the encoded video data and the encoded audio data are input into the data buffer pool.

8. The method according to claim 7, characterized in that Also includes: When the time difference is equal to or greater than the time length of the encoded video data and the audio data, the first piece of data is removed from the data buffer pool, and the encoded video data and the audio data are input into the data buffer pool.

9. The method according to claim 1, characterized in that: In the case where it is detected that the accident signal value is greater than the preset signal value, the method further includes: Generate a scheduled task associated with the output of the accident data file; the triggering condition of the scheduled task includes that the driving recorder has stored the first driving data of the first preset time length and the second driving data of the second preset time length; After storing the second driving data of the vehicle within a second preset time period based on the first driving data, the method further includes: When it is monitored that the scheduled task satisfies the corresponding trigger condition, the accident data file is generated based on the first driving data and the second driving data.

10. A driving recorder, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 9 are implemented.