Driving recording method and device, electronic equipment and readable storage medium
By obtaining and encoding camera data in the vehicle instrument system and packaging and backup in the vehicle entertainment system, the problem of data loss in the vehicle built-in DVR system is solved, and the stability and reliability of the driving recording function is achieved, ensuring important event data is ensured. Save.
Patent Information
- Application Number
- CN202411159877.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Modern vehicles have built-in DVR systems that are prone to crashes, crashes, encoder exceptions and file input and output exceptions when carrying multiple entertainment tasks, resulting in data loss in important events.
Obtain and encode the camera data through the vehicle instrument system, and distribute the encoded data to the vehicle entertainment system for packaging. At the same time, the data is distributed to the backup module for cache, monitor the entertainment system status information, and store the backup data in a timely manner when the packaging function is abnormal, ensuring the data stability and reliability.
It improves the stability and reliability of driving recording functions, prevents data loss, and ensures that data can be backed up and restored in time when the entertainment system is abnormal.
Smart Images

Figure CN119107713A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a driving recording method, device, electronic device and readable storage medium. Background Art
[0002] A digital video recorder (DVR) is a device that can convert video signals into digital format and store them on a hard disk or other storage media. In the automotive field, DVR is often referred to as a driving recorder. A driving recorder can record video and audio information in real time during driving, which can not only provide key evidence in the event of an accident, but also record the scenery during the journey, leaving good memories for the driver.
[0003] With the development of automobile technology, modern car systems often have built-in DVR functions, so that the driving recorder function can be integrated into the vehicle's entertainment system. This integrated solution not only saves space, but also improves user experience. The built-in DVR allows users to easily view, playback and download driving records.
[0004] However, the vehicle's entertainment system needs to carry a lot of entertainment tasks, and various problems may occur, such as freezing, DVR application crashes, encoder abnormalities, file input and output abnormalities, etc. Once these problems occur, the DVR will lose the data during the abnormal time period. If some important events occur during this abnormal time period, these events will not be recorded, which may cause significant losses to users. Summary of the invention
[0005] In view of this, one or more embodiments of the present disclosure provide a driving recording method, device, electronic device and readable storage medium, which can improve the stability and reliability of the driving recording function.
[0006] In a first aspect, the present disclosure provides a driving recording method, which is applied to a vehicle instrument system, and the method includes: acquiring and encoding camera data to generate encoded data; distributing the encoded data to a vehicle entertainment system so that the vehicle entertainment system encapsulates the encoded data; distributing the encoded data to a backup module so that the backup module caches the encoded data; monitoring status information reported by the vehicle entertainment system; and storing the encoded data cached in the backup module when the status information indicates that the encapsulation function of the vehicle entertainment system for the encoded data is abnormal.
[0007] In a second aspect, the present disclosure provides a driving recording method, which is applied to a vehicle entertainment system, and the method includes: receiving coded data distributed by a vehicle instrument system, the coded data being formed by the vehicle instrument system encoding acquired camera data; encapsulating the coded data to generate a target file; reporting status information to the vehicle instrument system, the status information indicating whether the encapsulation function of the vehicle entertainment system for the coded data is abnormal, so that the vehicle instrument system can store the coded data cached in a backup module when the status information indicates that the encapsulation function of the vehicle entertainment system for the coded data is abnormal.
[0008] In a third aspect, the present disclosure provides a driving recorder device, which is applied to a vehicle instrument system, and the device includes: an encoding unit, which is used to acquire and encode camera data to generate encoded data; a first distribution unit, which is used to distribute the encoded data to a vehicle entertainment system so that the vehicle entertainment system encapsulates the encoded data; a second distribution unit, which is used to distribute the encoded data to a backup module so that the backup module caches the encoded data; a monitoring unit, which is used to monitor status information reported by the vehicle entertainment system; and a backup unit, which is used to store the encoded data cached in the backup module when the status information indicates that the encapsulation function of the vehicle entertainment system for the encoded data is abnormal.
[0009] In a fourth aspect, the present disclosure provides a driving recorder device, which is applied to a vehicle entertainment system, and the device includes: a receiving unit, which is used to receive coded data distributed by a vehicle instrument system, and the coded data is formed by the vehicle instrument system encoding acquired camera data; an encapsulation unit, which is used to encapsulate the coded data and generate a target file; and a reporting unit, which is used to report status information to the vehicle instrument system, and the status information indicates whether the encapsulation function of the vehicle entertainment system for the coded data is abnormal, so that the vehicle instrument system can store the coded data cached in a backup module when the status information indicates that the encapsulation function of the vehicle entertainment system for the coded data is abnormal.
[0010] In a fifth aspect, the present disclosure provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the driving recording method described in the first aspect or the driving recording method described in the second aspect is implemented.
[0011] In a sixth aspect, the present disclosure provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed by a processor, it implements the driving recording method described in the first aspect above, or implements the driving recording method described in the second aspect above.
[0012] The technical solution provided by one or more embodiments of the present disclosure acquires and encodes the camera data through the vehicle instrument system, making full use of the stability and reliability of the vehicle instrument system to ensure the continuous acquisition of the encoded data; encapsulates the encoded data through the vehicle entertainment system, and utilizes the rich functionality of the vehicle entertainment system to perform various types of processing and calling on the encapsulated encoded data. In addition, the backup module is used to cache the encoded data, so that when an abnormality occurs in the vehicle entertainment system, the cached data can be stored in time to ensure that the encoded data will not be lost, which is conducive to the later data retrieval and recovery. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The features and advantages of the embodiments of the present disclosure may be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present disclosure in any way. In the accompanying drawings:
[0014] Figure 1 A schematic diagram showing the steps of a driving recording method in one embodiment of the present disclosure is shown;
[0015] Figure 2 A schematic diagram showing the steps of a driving recording method in another embodiment of the present disclosure is shown;
[0016] Figure 3 A functional architecture diagram of a driving recorder system in one embodiment of the present disclosure is shown;
[0017] Figure 4 A data backup logic diagram of a driving recorder system in one embodiment of the present disclosure is shown;
[0018] Figure 5 A schematic diagram of abnormal monitoring logic of a driving recorder system in one embodiment of the present disclosure is shown;
[0019] Figure 6 A schematic diagram of abnormal recovery logic of a driving recorder system in one embodiment of the present disclosure is shown;
[0020] Figure 7 A schematic diagram of functional modules of a driving recorder in one embodiment of the present disclosure is shown;
[0021] Figure 8 A schematic diagram of functional modules of a driving recorder in another embodiment of the present disclosure is shown;
[0022] Fig. 9 A schematic structural diagram of an electronic device in one embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0024] In the related technologies, DVR is becoming more and more popular in automobiles. Before the electrification and intelligence of automobiles, most cars used external independent DVR settings due to the limitations of the hardware capabilities of the automobile's own on-board system, but the reliability of external independent DVRs is often criticized by users. With the development of automobile electrification and intelligence, the hardware performance of the automobile's own on-board system has rapidly improved, and some built-in DVR solutions have begun to appear. The built-in DVR solution can reuse the on-board camera as a data source. With the powerful encoding capability of the on-board system and the rich body information obtained by the on-board system, it can provide users with a better experience.
[0025] In related technologies, the vehicle computer system is generally composed of a high-reliability instrument system (such as a real-time operating system) and a feature-rich entertainment system. The DVR function of the vehicle computer is usually developed on the vehicle's entertainment system because of file storage, network transmission, and development efficiency. In some actual work scenarios, the vehicle's entertainment system carries too many entertainment tasks, which may cause various problems such as freezes, DVR application crashes, encoder abnormalities, and file input and output abnormalities.
[0026] In view of this, one or more embodiments of the present disclosure can jointly complete the encoding and packaging of camera data based on a highly reliable vehicle instrument system and a multifunctional vehicle entertainment system, thereby improving the stability and reliability of the driving recording function.
[0027] See also Figure 1 A driving recording method provided in an embodiment of the present disclosure can be applied to a vehicle instrument system and may include the following steps.
[0028] S1: Acquire and encode video data to generate encoded data.
[0029] In this embodiment, the camera data can be obtained through the vehicle-mounted camera device as the data source of the driving record. Subsequently, the vehicle instrument system can select a preset encoding standard (such as H.264 encoding, H.265 encoding, VP9 encoding, etc.) to encode the acquired camera data to form encoded data. Encoding the camera data can compress the data size and reduce the demand for storage space; it can improve the efficiency of data transmission; it can also adapt to the vehicle environment, such as jitter and rapid movement during vehicle driving, to ensure the stability and reliability of the data.
[0030] S2: Distribute the encoded data to a vehicle entertainment system so that the vehicle entertainment system encapsulates the encoded data.
[0031] In this embodiment, the encoded data is a kind of video data, which can be further encapsulated by the vehicle entertainment system to form a target file (such as MP4 file, MOV file, AVI file). The encapsulation process is an important part of video production and distribution, which can ensure the availability and accessibility of video content. The target file can be a widely supported multimedia container format, which can contain video, audio, subtitles and metadata, and can be compatible for playback on multiple devices and platforms. By utilizing the rich functional characteristics of the vehicle entertainment system, the encoded data is encapsulated, which is conducive to the management and call of driving record data.
[0032] S3: Distribute the encoded data to a backup module, so that the backup module caches the encoded data.
[0033] In this embodiment, the coded data can be distributed not only to the vehicle entertainment system for packaging, but also to the backup module for caching. The backup module can be a submodule included in the vehicle entertainment system, or a module of other devices that the vehicle entertainment system can access and manage. By caching the coded data in the backup module, the coded data is backed up to a certain extent to prevent data loss in unexpected situations.
[0034] In some embodiments, after receiving the coded data, the backup module can cache the coded data in a buffer queue. The length of the buffer queue can be configured according to actual needs. When the data in the buffer queue is full, when new coded data arrives, the backup module can delete the oldest coded data from the buffer queue and store the new coded data in the buffer queue. According to the set length of the buffer queue, the buffer queue can store coded data of a specified time length before the current moment. For example, if the length of the buffer queue is set to 1200, if the frame rate of the coded data is 30fps, 40s of coded data can be cached.
[0035] S4: Monitoring status information reported by the vehicle entertainment system.
[0036] In this embodiment, the vehicle entertainment system can send some status information to the vehicle instrument system. In this way, the vehicle entertainment system can indicate the correct operation of its own system and the correct operation of related application functions in the system. The status information reported by the vehicle entertainment system can be reported according to a predetermined time period. For example, the vehicle entertainment system can periodically send heartbeat information to the vehicle instrument system. If the heartbeat information is interrupted, it can be considered that the vehicle entertainment system has crashed or is stuck. The status information reported by the vehicle entertainment system can also be reported immediately after a predetermined event is triggered. For example, the vehicle entertainment system can immediately send a warning message to the vehicle instrument system when the encapsulation of coded data fails. Through this warning message, it can be reflected that the coded data is received incorrectly, the coded data cannot be encapsulated, and the target file formed by the encapsulated coded data is abnormal.
[0037] S5: When the status information indicates that the encapsulation function of the vehicle entertainment system for the coded data is abnormal, storing the coded data cached in the backup module.
[0038] In this embodiment, when the encapsulation function of the vehicle entertainment system for the coded data is abnormal, the vehicle instrument system can store the coded data cached in the backup module in time. Using the stored coded data, the data can be retrieved and restored when the vehicle entertainment system returns to normal.
[0039] Specifically, the vehicle instrument system can monitor and analyze abnormal information reported by the vehicle entertainment system. When abnormal information occurs and it is determined that data loss may occur, the vehicle instrument system can command the backup module to write the cached encoded data to a preset data storage area (such as a preset disk space).
[0040] It should be noted that the coded data distributed to the backup module after an exception occurs will also be stored in a pre-set data storage area until the exception is resolved, and the file writing operation on the cached data in the backup module will not be stopped.
[0041] In some embodiments, the status information reported by the vehicle entertainment system includes first status information and second status information. If the first status information reported by the vehicle entertainment system is monitored, the coded data cached in the backup module is stored to generate a first emergency file. The first status information may indicate that the encapsulation function of the vehicle entertainment system for the coded data is abnormal. If the second status information reported by the vehicle entertainment system is monitored, the first emergency file is sent to the vehicle entertainment system for encapsulation. The second status information may indicate that the encapsulation function of the vehicle entertainment system for the coded data has returned to normal.
[0042] Specifically, the first status information may indicate a system crash or freeze of the vehicle entertainment system, or an application function abnormality in the system, such as an error in receiving coded data, failure to encapsulate coded data, or an abnormality in the target file formed by encapsulating coded data. When the first status information is detected, the vehicle instrument system needs to save the coded data in the current backup module and the coded data that subsequently enters the backup module to generate a first emergency file.
[0043] When the vehicle entertainment system and the application functions within the system resume normal operation, the vehicle instrument system can resend the coded data stored in the first emergency file to the vehicle entertainment system for packaging and processing. Optionally, when the coded data in the first emergency file is processed by the vehicle entertainment system, the vehicle instrument system can instruct to delete the temporarily stored first emergency file.
[0044] In some embodiments, the status information reported by the vehicle entertainment system includes third status information and fourth status information. If the third status information reported by the vehicle entertainment system is monitored, the encoded data cached in the backup module is stored to generate a second emergency file. The third status information can indicate that the vehicle entertainment system has detected an abnormal vehicle body state. If the fourth status information reported by the vehicle entertainment system is monitored, the second emergency file is sent to the vehicle entertainment system for packaging. The fourth status information can indicate that the vehicle entertainment system has detected that the vehicle body state has returned to normal.
[0045] Specifically, the third state information may indicate abnormal vehicle body information such as collision, side sliding, emergency stop, etc. When the third state information is detected, the vehicle instrument system needs to save the coded data in the current backup module and the coded data subsequently entered into the backup module to generate a second emergency file.
[0046] When the vehicle body returns to normal, the vehicle instrument system can resend the coded data stored in the second emergency file to the vehicle entertainment system for packaging. Optionally, when the coded data in the second emergency file is processed by the vehicle entertainment system, the vehicle instrument system can instruct to delete the temporarily stored second emergency file.
[0047] In a practical application example, when a vehicle's pre-collision warning occurs, the vehicle entertainment system needs to report this information to the vehicle instrument system in a timely manner. The driving record application of the vehicle instrument system will save the coded data in advance to avoid the driving record video not being stored after the vehicle entertainment system crashes due to a collision.
[0048] See also Figure 2 A driving recording method provided in an embodiment of the present disclosure can be applied to a vehicle entertainment system and may include the following steps.
[0049] S21: receiving coded data distributed by a vehicle instrument system, wherein the coded data is generated by encoding acquired camera data by the vehicle instrument system.
[0050] In this embodiment, the specific process of the vehicle instrument system acquiring and encoding the camera data is described in the above step S1, which will not be repeated here.
[0051] S22: Encapsulate the encoded data to generate a target file.
[0052] In this embodiment, the encoded data is a kind of video data, which can be further encapsulated by the vehicle entertainment system to form a target file (such as MP4 file, MOV file, AVI file). The encapsulation process is an important part of video production and distribution, which can ensure the availability and accessibility of video content. The target file can be a widely supported multimedia container format, which can contain video, audio, subtitles and metadata, and can be compatible for playback on multiple devices and platforms. By utilizing the rich functional characteristics of the vehicle entertainment system, the encoded data is encapsulated, which is conducive to the management and call of driving record data.
[0053] S23: Reporting status information to the vehicle instrument system, wherein the status information indicates whether the encapsulation function of the vehicle entertainment system for the encoded data is abnormal, so that the vehicle instrument system can store the encoded data cached in the backup module when the status information indicates that the encapsulation function of the vehicle entertainment system for the encoded data is abnormal.
[0054] In this embodiment, for the specific description of the vehicle instrument system reporting the status information, please refer to the relevant description of step S4 above, which will not be repeated here.
[0055] In this embodiment, when the encapsulation function of the vehicle entertainment system for the coded data is abnormal, the vehicle instrument system can be instructed to store the coded data cached in the backup module in time by reporting status information. The stored coded data can be used to retrieve and restore the data when the vehicle entertainment system returns to normal.
[0056] In some implementations, the first state information may be reported to the vehicle instrument system. The first state information may indicate that the encapsulation function of the vehicle entertainment system for the coded data is abnormal, so that the vehicle instrument system can store the coded data cached in the backup module and generate a first emergency file when acquiring the first state information.
[0057] In some implementations, the second state information may be reported to the vehicle instrument system, which may indicate that the encapsulation function of the vehicle entertainment system for the encoded data has returned to normal, so that the vehicle instrument system can send the first emergency file to the vehicle entertainment system for encapsulation when acquiring the second state information.
[0058] Specifically, the first status information may indicate a system crash or freeze of the vehicle entertainment system, or an application function abnormality in the system, such as an error in receiving coded data, failure to encapsulate coded data, or an abnormality in the target file formed by encapsulating coded data. By reporting the first status information, the vehicle instrument system may be instructed to save the coded data in the current backup module and the coded data that subsequently enters the backup module, and generate a first emergency file.
[0059] When the vehicle entertainment system and the application functions within the system resume normal operation, the second status information can instruct the vehicle instrument system to resend the encoded data stored in the first emergency file to the vehicle entertainment system for packaging processing.
[0060] In some implementations, the third state information may be reported to the vehicle instrument system. The third state information may indicate that the vehicle entertainment system detects an abnormal vehicle body state, so that when the vehicle instrument system obtains the third state information, it can store the coded data cached in the backup module and generate a second emergency file.
[0061] In some implementations, the fourth state information may be reported to the vehicle instrument system, which may indicate that the vehicle entertainment system has detected that the vehicle body state has returned to normal, so that when the vehicle instrument system obtains the fourth state information, it can send the second emergency file to the vehicle entertainment system for packaging.
[0062] Specifically, the third state information may indicate vehicle body abnormality information such as collision, side sliding, emergency stop, etc. By reporting the third state information, the vehicle instrument system may be instructed to save the coded data in the current backup module and the coded data subsequently entering the backup module to generate a second emergency file.
[0063] When the vehicle body status returns to normal, by reporting the fourth status information, the vehicle instrument system can be instructed to resend the coded data stored in the second emergency file to the vehicle entertainment system for packaging processing.
[0064] A driving recorder system provided by one embodiment of the present disclosure may include a vehicle instrument system and a vehicle entertainment system.
[0065] The vehicle instrument system can acquire and encode the camera data to generate encoded data; the encoded data can be distributed to the vehicle entertainment system so that the vehicle entertainment system can encapsulate the encoded data; the encoded data can also be distributed to the backup module so that the backup module can cache the encoded data.
[0066] The vehicle entertainment system can receive the encoded data distributed by the vehicle instrument system; and can encapsulate the encoded data to generate a target file.
[0067] In the driving recorder system, the vehicle entertainment system can report status information to the vehicle instrument system. The status information can reflect whether the encapsulation function of the vehicle entertainment system for the coded data is abnormal. The vehicle instrument system can monitor the status information reported by the vehicle entertainment system. When the status information indicates that the encapsulation function of the vehicle entertainment system for the coded data is abnormal, the vehicle instrument system can store the coded data cached in the backup module.
[0068] For a practical example, see Figure 3 The overall design of a driving recorder system is divided into two parts: services running on the vehicle instrument system and services on the vehicle entertainment system.
[0069] Specifically, the service on the vehicle instrument system side completes the following functions: acquiring and encoding camera data; distributing the encoded data to the driving record service on the vehicle entertainment system side; distributing the encoded data to the backup module; and using the status monitoring module to monitor the execution status of the driving record service on the vehicle entertainment system side.
[0070] The service on the vehicle entertainment system side completes the following functions: receiving the coded data distributed by the vehicle instrument system; encapsulating the coded data and saving it as a target file; using the status reporting module to report the heartbeat information of the vehicle entertainment system and the abnormal body information to the vehicle instrument system.
[0071] For a practical example, see Figure 4 ,The driving record system utilizes two subordinate systems and the logic of ,backing up the coded data is as follows.
[0072] The driving record service of the vehicle instrument system will distribute the coded data to the backup module managed by the vehicle instrument system when distributing the coded data to the vehicle entertainment system. After receiving the coded data, the backup module will cache the coded data in the buffer queue. The length of the buffer queue can be configured according to demand. When the buffer queue is full and new coded data arrives, the oldest coded data will be deleted from the buffer queue and the new coded data will be stored. According to the set length of the buffer queue, the buffer queue can store coded data of a specified time length before the current moment. For example, if the length of the buffer queue is set to 1200 and the frame rate of the coded data is 30fps, 40s of data can be cached.
[0073] For a practical example, see Figure 5 ,The driving record system utilizes two subordinate systems and the logic of ,monitoring abnormalities is as follows.
[0074] The status reporting module of the driving record service of the vehicle entertainment system can always report the following information in the background:
[0075] 1. The vehicle entertainment system periodically sends heartbeat information to the vehicle instrument system. If the heartbeat is interrupted, it means that the driving record service on the vehicle entertainment system side has crashed, is stuck, or the entire vehicle entertainment system is stuck.
[0076] 2. The vehicle entertainment system detects whether the coded data is received normally. If the coded data is not received within the specified time (set by the user), a timeout message will be reported to the vehicle instrument system.
[0077] 3. The vehicle entertainment system detects whether the MP4 file generated after encapsulating the encoded data is normal. If the input and output ports of the MP4 file are abnormal, a timeout message will be reported.
[0078] 4. Detect abnormal vehicle body information. For example, when a pre-collision warning occurs, this information needs to be reported to the driving record service of the vehicle instrument system in a timely manner. The driving record service of the vehicle instrument system will save the coded data in advance to avoid crashes that cause the vehicle entertainment system to crash and to avoid driving record data not being stored.
[0079] In this application example, the status monitoring module corresponding to the driving record service of the vehicle instrument system will detect and analyze abnormal information. When abnormal information occurs and it is determined that data loss may occur, the vehicle instrument system will command the backup module to write the backed-up coded data to the disk. After the abnormal information occurs, the coded data distributed to the backup module will also be written to the disk. The file writing operation of the coded data in the backup module will not be stopped until the abnormality is resolved.
[0080] For a practical example, see Figure 6 ,The driving record system utilizes two subordinate systems and the logic of data ,recovery after an abnormal state occurs is as follows.
[0081] After an exception occurs, when the driving record service of the vehicle entertainment system resumes normal operation, the driving record service of the vehicle instrument system will send the coded data saved in the emergency file to the driving record service of the vehicle entertainment system. After receiving the coded data saved in the emergency file, the driving record service of the vehicle entertainment system will extract the coded data, encapsulate it and save it. The logic is as follows:
[0082] 1. After the driving record service of the vehicle entertainment system is normal, it will perform self-check and report system information to the driving record service of the vehicle instrument system.
[0083] 2. The driving record service of the vehicle instrument system will check whether there are emergency files.
[0084] 3. If there is an emergency data file, the driving record service of the vehicle instrument system will send the emergency file to the driving record service of the vehicle entertainment system. After receiving the data in the emergency file, the driving record service of the vehicle entertainment system will encapsulate and save it as an MP4 file.
[0085] 4. The driving record service of the vehicle instrument system will delete the emergency files of the vehicle instrument system after all emergency files have been transmitted and the driving record service of the vehicle entertainment system has processed the data in the emergency files.
[0086] 5. When all emergency documents have been processed, the driving record service of the vehicle instrument system and the driving record service of the vehicle entertainment system will continue the normal driving record process.
[0087] The technical solution provided by one or more embodiments of the present disclosure fully utilizes the high stability of the instrument system and the rich development ecology of the entertainment system without adding additional hardware circuits, and splits the driving record application based on the entertainment system into the instrument system and the entertainment system. The data is backed up in the two systems, which greatly enhances the stability of the driving record application under abnormal conditions.
[0088] According to the technical solution provided by one or more embodiments of the present disclosure, the operations of obtaining and encoding camera data by the driving record application are placed in the instrument system, which is more efficient and occupies less hardware resources than placing them in the entertainment system.
[0089] In one or more embodiments of the present disclosure, the instrument system and the entertainment system have backups for the driving record data. When the entertainment system is abnormal, the instrument system with high feasibility can still save the driving record data.
[0090] According to the technical solution provided by one or more embodiments of the present disclosure, after the abnormality is eliminated and the entertainment system is restored, the backup data of the instrument system can be restored to the entertainment system.
[0091] The technical solution provided by one or more embodiments of the present disclosure can address the file input and output problems caused by the freezing of the entertainment system, the high load of the entertainment system, and the loss of driving record data when the driving record application on the entertainment system side crashes.
[0092] The technical solution provided by one or more embodiments of the present disclosure acquires and encodes the camera data through the vehicle instrument system, making full use of the stability and reliability of the vehicle instrument system to ensure the continuous acquisition of the encoded data; encapsulates the encoded data through the vehicle entertainment system, and utilizes the rich functionality of the vehicle entertainment system to perform various types of processing and calling on the encapsulated encoded data. In addition, the backup module is used to cache the encoded data, so that when an abnormality occurs in the vehicle entertainment system, the cached data can be stored in time to ensure that the encoded data will not be lost, which is conducive to the later data retrieval and recovery.
[0093] See also Figure 7 The present disclosure also provides a driving recorder device, which is applied to a vehicle instrument system, and the device comprises:
[0094] The encoding unit 100 is used to obtain and encode the camera data to generate encoded data;
[0095] A first distribution unit 200, configured to distribute the encoded data to a vehicle entertainment system, so that the vehicle entertainment system encapsulates the encoded data;
[0096] The second distribution unit 300 is used to distribute the encoded data to the backup module so that the backup module caches the encoded data;
[0097] A monitoring unit 400, configured to monitor status information reported by the vehicle entertainment system;
[0098] The backup unit 500 is used to store the coded data cached in the backup module when the status information indicates that the encapsulation function of the vehicle entertainment system for the coded data is abnormal.
[0099] In one embodiment, the status information includes first status information and second status information. The backup unit 500 is specifically used to store the coded data cached in the backup module and generate a first emergency file if the first status information reported by the vehicle entertainment system is monitored, and the first status information indicates that the encapsulation function of the vehicle entertainment system for the coded data is abnormal; if the second status information reported by the vehicle entertainment system is monitored, the first emergency file is sent to the vehicle entertainment system for encapsulation, and the second status information indicates that the encapsulation function of the vehicle entertainment system for the coded data has returned to normal.
[0100] In one embodiment, the status information includes third status information and fourth status information. The backup unit 500 is specifically used to store the coded data cached in the backup module and generate a second emergency file if the third status information reported by the vehicle entertainment system is monitored, and the third status information indicates that the vehicle entertainment system has detected an abnormal vehicle body status; if the fourth status information reported by the vehicle entertainment system is monitored, the second emergency file is sent to the vehicle entertainment system for packaging, and the fourth status information indicates that the vehicle entertainment system has detected that the vehicle body status has returned to normal.
[0101] See also Figure 8 The present disclosure also provides a driving recorder device, which is applied to a vehicle entertainment system, and the device comprises:
[0102] The receiving unit 600 is used to receive the coded data distributed by the vehicle instrument system, wherein the coded data is formed by encoding the acquired camera data by the vehicle instrument system;
[0103] The encapsulation unit 700 is used to encapsulate the encoded data and generate a target file;
[0104] The reporting unit 800 is used to report status information to the vehicle instrument system, wherein the status information indicates whether the encapsulation function of the vehicle entertainment system for the encoded data is abnormal, so that the vehicle instrument system can store the encoded data cached in the backup module when the status information indicates that the encapsulation function of the vehicle entertainment system for the encoded data is abnormal.
[0105] In one embodiment, the status information includes first status information and second status information, and the reporting unit 800 is specifically used to report the first status information to the vehicle instrument system, wherein the first status information indicates that the encapsulation function of the vehicle entertainment system for the encoded data is abnormal, so that when the vehicle instrument system obtains the first status information, the vehicle entertainment system stores the encoded data cached in the backup module and generates a first emergency file; and report the second status information to the vehicle instrument system, wherein the second status information indicates that the encapsulation function of the vehicle entertainment system for the encoded data has returned to normal, so that when the vehicle instrument system obtains the second status information, the vehicle entertainment system sends the first emergency file to the vehicle entertainment system for encapsulation.
[0106] In one embodiment, the status information includes third status information and fourth status information, and the reporting unit 800 is specifically used to report the third status information to the vehicle instrument system, wherein the third status information indicates that the vehicle entertainment system has detected an abnormal vehicle body status, so that when the vehicle instrument system obtains the third status information, it stores the coded data cached in the backup module and generates a second emergency file; and report the fourth status information to the vehicle instrument system, wherein the fourth status information indicates that the vehicle entertainment system has detected that the vehicle body status has returned to normal, so that when the vehicle instrument system obtains the fourth status information, it sends the second emergency file to the vehicle entertainment system for packaging.
[0107] Each unit described in the above embodiment can be implemented by a computer chip or a product with a certain function. A typical implementation device is a computer. For the convenience of description, the above devices are described separately according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0108] See also Fig. 9 The present disclosure also provides an electronic device, which includes a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the above-mentioned driving recording method is implemented.
[0109] The present disclosure also provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the above-mentioned driving recording method is implemented.
[0110] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0111] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiment.
[0112] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0113] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0114] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device, equipment, and storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0115] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
[0116] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A driving recording method, applied to a vehicle instrument system, characterized in that: The method comprises: Acquire and encode camera data to generate encoded data; Distributing the encoded data to a vehicle entertainment system so that the vehicle entertainment system encapsulates the encoded data; Distributing the encoded data to a backup module so that the backup module caches the encoded data; Monitoring status information reported by the vehicle entertainment system; When the status information indicates that the encapsulation function of the vehicle entertainment system for the coded data is abnormal, the coded data cached in the backup module is stored.
2. The method according to claim 1, characterized in that: The state information includes first state information and second state information, and the method includes: If the first state information reported by the vehicle entertainment system is monitored, the coded data cached in the backup module is stored to generate a first emergency file, wherein the first state information indicates that the encapsulation function of the vehicle entertainment system for the coded data is abnormal; If the second status information reported by the vehicle entertainment system is monitored, the first emergency file is sent to the vehicle entertainment system for encapsulation, and the second status information indicates that the encapsulation function of the vehicle entertainment system for the encoded data has returned to normal.
3. The method according to claim 1 or 2, characterized in that: The state information includes third state information and fourth state information, and the method includes: If the third state information reported by the vehicle entertainment system is monitored, the coded data cached in the backup module is stored to generate a second emergency file, wherein the third state information indicates that the vehicle entertainment system has detected an abnormal vehicle body state; If the fourth status information reported by the vehicle entertainment system is monitored, the second emergency file is sent to the vehicle entertainment system for packaging, and the fourth status information indicates that the vehicle entertainment system detects that the vehicle body state has returned to normal.
4. A driving recording method, applied to a vehicle entertainment system, characterized in that: The method comprises: Receiving coded data distributed by a vehicle instrument system, wherein the coded data is formed by encoding acquired camera data by the vehicle instrument system; Encapsulating the encoded data to generate a target file; Report status information to the vehicle instrument system, wherein the status information indicates whether the encapsulation function of the vehicle entertainment system for the encoded data is abnormal, so that the vehicle instrument system can store the encoded data cached in the backup module when the status information indicates that the encapsulation function of the vehicle entertainment system for the encoded data is abnormal.
5. The method according to claim 4, characterized in that The state information includes first state information and second state information, and the method includes: Reporting first status information to the vehicle instrument system, wherein the first status information indicates that the encapsulation function of the vehicle entertainment system for the coded data is abnormal, so that the vehicle instrument system stores the coded data cached in the backup module and generates a first emergency file when acquiring the first status information; Reporting second status information to the vehicle instrument system, the second status information indicating that the encapsulation function of the vehicle entertainment system for the encoded data has returned to normal, so that the vehicle instrument system can send the first emergency file to the vehicle entertainment system for encapsulation when acquiring the second status information.
6. The method according to claim 4 or 5, characterized in that: The state information includes third state information and fourth state information, and the method includes: Reporting third state information to the vehicle instrument system, wherein the third state information indicates that the vehicle entertainment system detects an abnormal vehicle body state, so that when the vehicle instrument system obtains the third state information, it stores the coded data cached in the backup module and generates a second emergency file; Reporting fourth status information to the vehicle instrument system, the fourth status information indicating that the vehicle entertainment system has detected that the vehicle body state has returned to normal, so that the vehicle instrument system can send the second emergency file to the vehicle entertainment system for packaging when acquiring the fourth status information.
7. A driving recorder, applied to a vehicle instrument system, characterized in that: The device comprises: An encoding unit, used for acquiring and encoding the camera data to generate encoded data; A first distribution unit, configured to distribute the encoded data to a vehicle entertainment system, so that the vehicle entertainment system encapsulates the encoded data; A second distribution unit, configured to distribute the encoded data to a backup module, so that the backup module caches the encoded data; A monitoring unit, used to monitor status information reported by the vehicle entertainment system; The backup unit is used to store the coded data cached in the backup module when the status information indicates that the encapsulation function of the vehicle entertainment system for the coded data is abnormal.
8. A driving recorder, applied to a vehicle entertainment system, characterized in that: The device comprises: A receiving unit, used to receive coded data distributed by a vehicle instrument system, wherein the coded data is formed by encoding acquired camera data by the vehicle instrument system; An encapsulation unit, used for encapsulating the encoded data to generate a target file; A reporting unit is used to report status information to the vehicle instrument system, wherein the status information indicates whether the encapsulation function of the vehicle entertainment system for the encoded data is abnormal, so that the vehicle instrument system can store the encoded data cached in the backup module when the status information indicates that the encapsulation function of the vehicle entertainment system for the encoded data is abnormal.
9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory is used to store a computer program, and when the computer program is executed by the processor, it implements the method as claimed in any one of claims 1 to 3, or implements the method as claimed in any one of claims 4 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, it implements the method according to any one of claims 1 to 3, or implements the method according to any one of claims 4 to 6.
Citation Information
Patent Citations
Vehicle-mounted information system with functions of video shooting, data interaction, projection display and navigation
CN102717766A
New energy automobile monitoring method, new energy automobile monitoring device and automobile-mounted terminal
CN106227096A
Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment
CN113268205A
Vehicle image processing method and device and vehicle
CN116311584A
Data acquisition method and device, equipment and medium
CN116796156A
