A method, device and storage medium for deep recovery of data from a vehicle driving recorder
By extracting the chip image of the driving recorder and judging the validity of the data block based on time characteristics, the problem of data being unable to be extracted due to accident damage is solved, data recovery and analysis of the driving recorder is realized, and support for vehicle driving safety and traffic An in-depth analysis of the accident.
Patent Information
- Application Number
- CN202211180768.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-09-27
AI Technical Summary
Existing driving recorders are easily damaged in traffic accidents, causing damage to the USB interface and RS232 serial port, making it impossible to read data normally, and making it difficult to extract and analyze key driving data.
By confirming the memory chip model of the driving recorder, extracting the chip image, and extracting customized data blocks based on time characteristics, the validity of the data blocks is judged. If they match, they will be saved in HEX format. If they do not match, they will continue to search for relevant feature data until Mirroring ends and data recovery of the damaged device is achieved.
It realizes the extraction and analysis of key driving data blocks of damaged driving recorders, and can completely extract vehicle historical driving data for driver overtime and speeding behavior analysis and identification of causes of road traffic accidents.
Smart Images

Figure CN115690943B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle evidence collection, and in particular to a method, device and storage medium for deep recovery of data from a vehicle driving recorder. Background Art
[0002] As a device that is compulsorily installed on "two passenger and one dangerous goods" vehicles, the driving recorder records a large amount of vehicle information, such as driving speed, location information, suspected accidents, overtime driving and speed status, etc. It plays an important role in analyzing the driver's violations such as overtime and speeding, vehicle driving safety, and the analysis and identification of the causes of road traffic accidents.
[0003] The current driving recorder equipment basically complies with the "GB / T 19056-2012" standard. In 4.4.1.3.3 of the standard, it is clearly stipulated that "the USB interface should support the host mode (Host) of the USB2.0 standard, and the recorder should be able to write data recording files to the USB storage device through the USB interface". In 5.4.1.3.2 of the standard, it is also stipulated that "use the test software to collect data and set parameters for the recorder through the RS232 serial interface". If you need to view the driving recorder data, you can directly export it through the USB interface or RS232 serial port. However, traffic accidents involving "two passenger and one dangerous goods" vehicles are often very tragic, and the cockpit is prone to major deformation, which often causes the driving recorder's USB interface, RS232 serial port, and hardware circuit to suffer varying degrees of damage, resulting in the inability to extract the driving recorder data normally. Summary of the invention
[0004] In response to the above technical problems, this application proposes a method, device and storage medium for deep recovery of vehicle driving recorder data, which is specifically used to solve the problem that the standard interface cannot read the driving recorder data normally, and to realize the extraction and analysis of key driving data blocks of damaged equipment.
[0005] In the first aspect, the present application proposes a method for deep recovery of vehicle driving recorder data, comprising the following steps:
[0006] S1: Confirm the chip model of the driving recorder and extract the chip image;
[0007] S2: Scan the data from the starting position of the chip image to determine whether the first 6 bytes of the data block meet the time validity judgment rule. The time validity judgment rule includes whether it is in BCD encoding format and whether the value is within a specific time range. If it meets the requirements, execute S3; if not, execute S4;
[0008] S3: extract the time feature, perform custom data block extraction based on the time feature, and then execute S6;
[0009] The S3 specifically includes:
[0010] S31: Extracting the driving speed data block: judging whether the time feature meets the time feature of speed validity judgment, if so, further judging whether the subsequent 120 bytes of data meet the speed validity judgment rule, if so, the data block is considered to be driving speed data; continuing to confirm the subsequent data until there is no data meeting the speed validity judgment rule in the subsequent data, calculating all the lengths of the data meeting the rule, and converting them into HEX format;
[0011] S32: extracting the location information data block: judging whether the time feature meets the time feature of the location validity judgment rule, if so, further judging whether the subsequent fields meet the location validity judgment rule, if so, considering that the data block is the location information data block; continuing to confirm the subsequent data until there is no data meeting the location validity judgment rule in the subsequent data, calculating all the lengths of the data meeting the rule, and converting them into HEX format;
[0012] S33: Extracting the accident suspicious point data block: judging whether the time feature meets the time feature of the accident suspicious point validity judgment rule, if so, further judging whether the subsequent fields meet the accident suspicious point validity judgment rule, if so, the data block is considered to be the accident suspicious point data block; continuing to confirm the subsequent data until there is no data that meets the accident suspicious point validity judgment rule in the subsequent data, calculating all the lengths of the data that meets the rule, and converting them into HEX format;
[0013] S4: Determine whether the subsequent data meets the timeout validity rule. If so, calculate all the lengths of the data that meet the timeout validity rule and convert them into HEX format, and execute S6; if not, execute S5;
[0014] S5: Continue to search for relevant characteristic data. If the chip mirroring stored data does not meet the data characteristics to be searched, search for the next data segment based on the chip read / write minimum unit offset until the mirroring ends.
[0015] S6: The acquired driving recorder data and the corresponding data length are stored in a new file in a VDR format for preservation.
[0016] Preferably, the speed validity judgment rule in S31 is specifically:
[0017] The time feature is HH:MM:00;
[0018] The encoding format of speed and status signals is HEX format;
[0019] The effective speed range is 0km / h to 220km / h, and invalid speed values and status signal values are FF;
[0020] Continuous storage of 60 groups;
[0021] If one or two abnormal speed values appear in adjacent time, the abnormality can be eliminated based on the front and rear speeds and brake signals; if the speed exceeds the recording length or exceeds the valid data range for 10 consecutive groups, the entire group of data is considered invalid.
[0022] Preferably, the position validity judgment rule in S32 is specifically:
[0023] The time feature is HH:00:00;
[0024] The latitude, longitude, altitude, and speed are encoded in HEX format;
[0025] The valid range of longitude is -180 degrees to 180 degrees, the valid range of latitude is -90 degrees to 90 degrees, and the invalid value of longitude and latitude is 7FFFFFFFH;
[0026] The valid altitude value range is -32767 meters to 32767 meters, and the invalid altitude value is FFFFH;
[0027] The longitude and latitude data collected at adjacent times are converted into trajectories with the help of Baidu Maps to observe whether the trajectories are continuous; or whether the time interval and distance between discontinuous trajectories are reasonable. Individual positioning data with large jumps can be regarded as outliers.
[0028] Preferably, the validity judgment rule of the doubtful point in S33 is specifically:
[0029] The time feature is HH:MM:SS;
[0030] If the driver's license number is the same as the ID number, 18 consecutive digits or 18 identical digits will be regarded as the default ID number;
[0031] The encoding format of speed and status signals is HEX format;
[0032] The effective speed range is 0km / h to 220km / h, and invalid speed values and status signal values are FF;
[0033] The speed and status signals are stored every 0.2s. Whether the continuous adjacent speed changes exceed 1km / h can be judged to determine whether the speed is abnormal;
[0034] Determine whether the speed is normal based on whether the speed at the corresponding time point collected in the speed block and the speed value in the previous 20 seconds can match the speed at the suspected accident point;
[0035] The latitude, longitude, altitude, and speed are encoded in HEX format;
[0036] The valid range of latitude is -180 to 180 degrees, the valid range of latitude is -90 to 90 degrees, and the invalid value of longitude and latitude is 7FFFFFFFH;
[0037] The valid altitude value range is -32767 meters to 32767 meters, and the invalid altitude value is FFFFH.
[0038] Preferably, the timeout validity judgment rule in S4 is specifically:
[0039] If the driver's license number is the same as the ID number, 18 consecutive digits or 18 identical digits will be regarded as the default ID number;
[0040] The start and end time meet the time validity judgment, and the data characteristics are HH:MM:SS;
[0041] The latitude, longitude, altitude, and speed are encoded in HEX format;
[0042] The valid range of longitude is -180 degrees to 180 degrees, the valid range of latitude is -90 degrees to 90 degrees, and the invalid value of longitude and latitude is 7FFFFFFFH;
[0043] The valid altitude value range is -32767 meters to 32767 meters, and the invalid altitude value is FFFFH.
[0044] Preferably, the relevant characteristic data in S5 includes the brand of the driving recorder, power-on record and speed status log information.
[0045] In the second aspect, the present application also proposes a vehicle driving recorder data deep recovery device, the device comprising:
[0046] A chip image extraction module, configured to confirm the model of the chip stored in the driving recorder and extract the chip image;
[0047] A time validity judgment module is configured to scan data from the chip image starting position to judge whether the first 6 bytes of the data block meet the time validity judgment rule, wherein the time validity judgment rule includes whether it is in BCD encoding format and whether the value is within a specific time range;
[0048] The custom data block extraction module is configured to extract time features and perform custom data block extraction based on the time features, specifically including:
[0049] Extract the driving speed data block: determine whether the time feature meets the time feature of the speed validity judgment. If so, further determine whether the subsequent 120 bytes of data meet the speed validity judgment rule. If so, the data block is considered to be driving speed data. Continue to confirm the subsequent data until there is no data that meets the speed validity judgment rule in the subsequent data. Calculate all the lengths of the data that meets the rule and convert them into HEX format.
[0050] Extract location information data block: determine whether the time feature meets the time feature of the location validity judgment rule. If so, further determine whether the subsequent fields meet the location validity judgment rule. If so, the data block is considered to be a location information data block. Continue to confirm the subsequent data until there is no data that meets the location validity judgment rule in the subsequent data. Calculate all the lengths of the data that meets the rule and convert them into HEX format.
[0051] Extract the accident suspicious point data block: determine whether the time feature meets the time feature of the accident suspicious point validity judgment rule. If so, further determine whether the subsequent fields meet the accident suspicious point validity judgment rule. If so, the data block is considered to be an accident suspicious point data block; continue to confirm the subsequent data until there is no data that meets the accident suspicious point validity judgment rule in the subsequent data, calculate all the lengths of the data that meets the rule, and convert it into HEX format;
[0052] The timeout validity judgment module is configured to judge whether the subsequent data meets the timeout validity rule. If yes, the length of all data meeting the timeout validity rule is calculated and converted into HEX format;
[0053] A related characteristic data search module is configured to search for related characteristic data. If the chip mirroring stored data does not meet the data characteristics to be searched, the next data segment is searched by the chip read and write minimum unit offset until the mirroring ends;
[0054] The data storage module is configured to store the acquired driving recorder data and the corresponding data length in a new file in a VDR format for preservation.
[0055] In a third aspect, the present application further proposes an electronic device, comprising:
[0056] one or more processors;
[0057] A storage device for storing one or more programs;
[0058] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in the first aspect.
[0059] In a fourth aspect, the present application further proposes a computer-readable storage medium having a computer program stored thereon, which implements the method described in the first aspect when the program is executed by a processor.
[0060] The present application proposes a method for deep recovery of data from a large vehicle driving recorder, which first confirms the model of the driving recorder storage chip and extracts the chip image, then scans the data from the starting position of the chip image, and determines whether the first 6 bytes of the data block meet the time validity judgment rules. If so, a custom data block is extracted based on the time feature. If not, it determines whether the subsequent data meets the timeout validity rules and searches for relevant feature data. After that, the acquired driving recorder data and the corresponding data length are stored in a new file in VDR format for preservation. This enables the extraction and analysis of key driving data blocks of damaged equipment. The present application is suitable for scenarios where the amount of data exported by the driving recorder device through the external physical port is significantly less, or the physical port is damaged due to an accident, or the power supply system fails. By performing data scanning and analysis on the chip image by the present application, the historical driving data of the vehicle can be completely extracted, thereby playing an important role in analyzing the driver's violations such as overtime and speeding, and in vehicle driving safety, and in the analysis and identification of the causes of road traffic accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate the embodiments and are used together with the description to explain the principles of the present application. It will be easy to recognize other embodiments and many expected advantages of the embodiments because they become better understood by reference to the following detailed description. The elements of the drawings are not necessarily to scale with each other. The same reference numerals refer to corresponding similar parts.
[0062] Figure 1 The present invention discloses a flow chart of a method for deep recovery of data from a vehicle driving recorder.
[0063] Figure 2 It is a schematic diagram of the VDR file data storage format and the data block internal storage format in one embodiment of the present application.
[0064] Figure 3 It is a schematic diagram of the internal chip data storage structure of a driving recorder in one embodiment of the present application.
[0065] Figure 4 It is a schematic diagram of data extraction and reorganization in one embodiment of the present application.
[0066] Figure 5 It is a schematic diagram of the module structure of a vehicle driving recorder data deep recovery device in one embodiment of the present application.
[0067] Figure 6It is a structural diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application. DETAILED DESCRIPTION
[0068] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0069] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0070] Figure 1 A flowchart of a method for deep recovery of vehicle driving recorder data in the present application is shown, referring to Figure 1 , the method specifically comprises the following steps:
[0071] S1: Confirm the chip model of the driving recorder and extract the chip image;
[0072] S2: Scan the data from the starting position of the chip image to determine whether the first 6 bytes of the data block meet the time validity judgment rule. The time validity judgment rule includes whether it is in BCD encoding format and whether the value is within a specific time range. If it meets the requirements, execute S3; if not, execute S4;
[0073] S3: extract the time feature, perform custom data block extraction based on the time feature, and then execute S6;
[0074] The S3 specifically includes:
[0075] S31: Extracting the driving speed data block: judging whether the time feature meets the time feature of speed validity judgment, if so, further judging whether the subsequent 120 bytes of data meet the speed validity judgment rule, if so, the data block is considered to be driving speed data; continuing to confirm the subsequent data until there is no data meeting the speed validity judgment rule in the subsequent data, calculating all the lengths of the data meeting the rule, and converting them into HEX format;
[0076] In a specific embodiment, the speed validity judgment rule in S31 is specifically:
[0077] The time feature is HH:MM:00;
[0078] The encoding format of speed and status signals is HEX format;
[0079] The effective speed range is 0km / h to 220km / h, and invalid speed values and status signal values are FF;
[0080] Continuous storage of 60 groups;
[0081] If one or two abnormal speed values appear in adjacent time, the abnormality can be eliminated based on the front and rear speeds and brake signals; if the speed exceeds the recording length or exceeds the valid data range for 10 consecutive groups, the entire group of data is considered invalid.
[0082] S32: extracting the location information data block: judging whether the time feature meets the time feature of the location validity judgment rule, if so, further judging whether the subsequent fields meet the location validity judgment rule, if so, considering that the data block is the location information data block; continuing to confirm the subsequent data until there is no data meeting the location validity judgment rule in the subsequent data, calculating all the lengths of the data meeting the rule and converting them into HEX format;
[0083] In a specific embodiment, the position validity judgment rule in S32 is specifically:
[0084] The time feature is HH:00:00;
[0085] The latitude, longitude, altitude, and speed are encoded in HEX format;
[0086] The valid range of longitude is -180 degrees to 180 degrees, the valid range of latitude is -90 degrees to 90 degrees, and the invalid value of longitude and latitude is 7FFFFFFFH;
[0087] The valid altitude value range is -32767 meters to 32767 meters, and the invalid altitude value is FFFFH;
[0088] The longitude and latitude data collected at adjacent times are converted into trajectories with the help of Baidu Maps to observe whether the trajectories are continuous; or whether the time interval and distance between discontinuous trajectories are reasonable. Individual positioning data with large jumps can be regarded as outliers.
[0089] S33: Extracting the accident suspicious point data block: judging whether the time feature meets the time feature of the accident suspicious point validity judgment rule, if so, further judging whether the subsequent fields meet the accident suspicious point validity judgment rule, if so, the data block is considered to be the accident suspicious point data block; continuing to confirm the subsequent data until there is no data that meets the accident suspicious point validity judgment rule in the subsequent data, calculating all the lengths of the data that meets the rule, and converting them into HEX format;
[0090] In a specific embodiment, the validity judgment rule of the doubtful point in S33 is specifically:
[0091] The time feature is HH:MM:SS;
[0092] If the driver's license number is the same as the ID number, 18 consecutive digits or 18 identical digits will be regarded as the default ID number;
[0093] The encoding format of speed and status signals is HEX format;
[0094] The effective speed range is 0km / h to 220km / h, and invalid speed values and status signal values are FF;
[0095] The speed and status signals are stored every 0.2s. Whether the continuous adjacent speed changes exceed 1km / h can be judged to determine whether the speed is abnormal;
[0096] Determine whether the speed is normal based on whether the speed at the corresponding time point collected in the speed block and the speed value in the previous 20 seconds can match the speed at the suspected accident point;
[0097] The latitude, longitude, altitude, and speed are encoded in HEX format;
[0098] The valid range of latitude is -180 to 180 degrees, the valid range of latitude is -90 to 90 degrees, and the invalid value of longitude and latitude is 7FFFFFFFH;
[0099] The valid altitude value range is -32767 meters to 32767 meters, and the invalid altitude value is FFFFH.
[0100] S4: Determine whether the subsequent data meets the timeout validity rule. If so, calculate all the lengths of the data that meet the timeout validity rule and convert them into HEX format, and execute S6; if not, execute S5;
[0101] In a specific embodiment, the timeout validity judgment rule in S4 is specifically:
[0102] If the driver's license number is the same as the ID number, 18 consecutive digits or 18 identical digits will be regarded as the default ID number;
[0103] The start and end time meet the time validity judgment, and the data characteristics are HH:MM:SS;
[0104] The latitude, longitude, altitude, and speed are encoded in HEX format;
[0105] The valid range of longitude is -180 degrees to 180 degrees, the valid range of latitude is -90 degrees to 90 degrees, and the invalid value of longitude and latitude is 7FFFFFFFH;
[0106] The valid altitude value range is -32767 meters to 32767 meters, and the invalid altitude value is FFFFH.
[0107] S5: Continue to search for relevant characteristic data. If the chip mirroring stored data does not meet the data characteristics to be searched, search for the next data segment based on the chip read / write minimum unit offset until the mirroring ends.
[0108] In a specific embodiment, the relevant characteristic data in S5 includes the brand, power-on record and speed status log information of the driving recorder;
[0109] S6: The acquired driving recorder data and the corresponding data length are stored in a new file in a VDR format for preservation.
[0110] The following embodiments will specifically describe a method for deep recovery of vehicle driving recorder data in the present application:
[0111] The means of reading data from a fully functional driving recorder device mainly relies on the extraction from the device's own external physical port, or on retrieval from the device's supervision and management platform. If the driving recorder's external extraction port or hardware circuit is damaged, data cannot be exported from the physical interface, or the driving recorder is old and the amount of stored data far exceeds the extraction area set by the extraction program, resulting in incomplete data extracted from the physical interface, and it can only rely on retrieving data from the background supervision platform. The data record of the supervision platform is generally set to record once every 30 seconds, and due to network transmission rate issues, the device data is often unable to be synchronized to the supervision platform in real time. The data at the time of the accident is also often missing, and the data granularity is not fine enough, which makes it difficult to investigate the cause of the accident. There has been no relevant research on solutions to such problems. The improvements proposed in this application are mainly to locate the data storage chip in the driving recorder hardware solution, extract the chip image in combination with the data storage characteristics of each vehicle body event to perform deep recovery extraction, and output the VDR file specified by the national standard.
[0112] At present, about 90% of the driving recorder equipment brands on the market export VDR file data storage format based on the GB / T 19056-2012 standard. Figure 2 Data blocks 1, 2, ... N are driving data, including 16 data types such as driving recorder basic information, speed record, location record, status signal, etc. VDR file data storage format reference Figure 2 .
[0113] The internal storage format of each type of data block in the driving recorder is: data block number, data name identifier, data length and data area. The data area storage format is different for different types of data. This application discloses the following data type validity judgment methods:
[0114] 1. Time validity judgment:
[0115] (1) BCD encoding format;
[0116] (2) Data length: 6 bytes;
[0117] (3) The value is in the range of 00:00:00 on January 1, 2000 to 23:59:59 on December 31, 2099;
[0118] Data that conforms to the above rules can be considered as time data.
[0119] 2. Speed effectiveness judgment:
[0120] Storage format:
[0121] time Speed 1 Status signal 1 …… Speed 60 Status signal 60
[0122] Data characteristics:
[0123] (1) The time complies with the time validity judgment rules and the data feature is HH:MM:00;
[0124] (2) The encoding format of speed and status signals is HEX format;
[0125] (3) The effective speed range is 0km / h to 220km / h. Invalid speed values and status signal values are FF. (Because the speed data is stored in 1 minute, each small block of speed is 126 bytes. If the actual recorded speed data is less than 60 groups, it is filled with FF FF.)
[0126] (4) Continuously store 60 groups;
[0127] (5) If one or two abnormal speed values appear in adjacent time periods, the abnormality can be eliminated based on the front and rear speeds and brake signals; if the speed exceeds the recording length or exceeds the valid data range for 10 consecutive groups, the entire group of data is considered invalid.
[0128] Data that conforms to the above rules can be considered as speed block data.
[0129] 3. Location validity judgment:
[0130] Storage format:
[0131] time Longitude 1 Latitude 1 Altitude 1 Speed 1 …… Longitude 60 Latitude 60 Altitude 60 Speed 60
[0132] Data characteristics:
[0133] (1) The time complies with the time validity judgment rules, and the data feature is HH:00:00;
[0134] (2) Latitude, longitude, altitude, and vehicle speed are encoded in HEX format;
[0135] (3) The valid range of longitude is -180 to 180 degrees (>0 indicates east longitude, <0 indicates west longitude), the valid range of latitude is -90 to 90 degrees (>0 indicates north latitude, <0 indicates south latitude), and the invalid value of longitude and latitude is 7FFFFFFFH;
[0136] (4) The valid altitude value range is -32767 meters to 32767 meters, and the invalid altitude value is FFFFH;
[0137] (5) The longitude and latitude data collected at adjacent times are converted into trajectories with the help of Baidu Maps to observe whether the trajectories are continuous; or whether the time intervals and distances between discontinuous trajectories are reasonable. Individual data with large positioning jumps can be regarded as abnormal values;
[0138] Data that complies with the above rules can be considered as location information data.
[0139] 4. Timeout validity judgment:
[0140] Storage format:
[0141]
[0142] Data characteristics:
[0143] (1) If the driver's license number is the same as the ID number, 18 consecutive digits or 18 identical digits are regarded as the default ID number;
[0144] (2) The start and end time meet the time validity judgment, and the data characteristics are HH:MM:SS;
[0145] (3) The longitude, latitude, and altitude meet the requirements of points (2) to (4) in the location validity judgment;
[0146] Data that meets the above rules can be considered as timeout data.
[0147] 5. Judgment on the validity of the suspected accident points:
[0148] The accident suspicion data is the driver information, effective position, speed, and status signal data recorded 20 seconds before the vehicle stops or 20 seconds before the driving recorder is powered off.
[0149] Storage Format:
[0150] time Driver's license Speed 1 Status signal 1 …… Speed 100 Status signal 100 longitude latitude altitude
[0151] Data characteristics:
[0152] (1) The time meets the time validity judgment, and the data characteristics are HH:MM:SS;
[0153] (2) The driver's license number shall refer to the judgment method in point (1) for judging the validity of the driver's license number after the expiration of the time limit;
[0154] (3) The speed complies with the speed validity judgment rules (2) to (3);
[0155] (4) The speed and status signals are stored every 0.2 seconds. Whether the continuous adjacent speed changes exceed 1 km / h can be judged to determine whether the speed is abnormal;
[0156] (5) Determine whether the speed is normal based on whether the speed at the corresponding time point collected in the speed block and the speed value in the previous 20 seconds can match the speed at the suspected accident point;
[0157] (6) The longitude, latitude and altitude data refer to points (2) to (4) for judging the validity of the location; data that meets the above rules can be considered as accident suspicion data.
[0158] The internal storage of the driving recorder is mostly SPI FLASH chip, and the data block storage structure is as follows Figure 2 As shown. Memory chips usually use the SPI protocol to write the collected data into the memory according to the set storage address. Since the chip model and the minimum unit of storage space reading are not fixed, and the storage lengths occupied by different types of driving recorder data blocks are also inconsistent, the storage locations of different data are not fixed. It is necessary to identify them one by one according to the above data type judgment method, and extract all the data of the same type, calculate the data block size, and store them in a fixed location in VDR format. If the minimum storage unit of some data types is smaller than the minimum write unit of the chip mirror, it is also necessary to remove the redundant data in the data block before extraction.
[0159] like Figure 3 As shown, the driving data stored inside the chip is disordered, and the corresponding data blocks need to be extracted according to the data features and stored in the VDR format. Figure 4 The following is a schematic diagram of data extraction and reorganization. The extraction process is as follows:
[0160] (1) Confirm the storage chip model and extract the chip image;
[0161] (2) Determine whether the first 6 bytes from the starting position meet the time validity judgment rules;
[0162] (3-1) If the time feature is HH:MM:00, i.e., the time feature for speed validity judgment, and the subsequent 120 bytes of data meet the speed validity judgment rule, then the data block is considered to be driving speed data;
[0163] (3-2) Continue to confirm the subsequent data according to the method (3-1) until there is no data in the subsequent data that meets the speed validity judgment rule, calculate all the lengths of the data that meet the rule, and convert them into HEX format;
[0164] (4-1) If the time feature is HH:00:00, which is the time feature for location validity judgment, and the subsequent fields meet the location validity judgment rules, the data is considered to be location information data;
[0165] (4-2) Continue to confirm subsequent data according to method (4-1) until the data does not meet the position validity judgment rule, calculate all the lengths of the data that meet the rule, and convert them into HEX format;
[0166] (5-1) If the time feature is HH:MM:SS, and the subsequent byte data meets the validity judgment rules for accident suspicious points, the data is considered to be accident suspicious point data;
[0167] (5-2) Continue to confirm subsequent data according to method (5-1) until the data does not meet the accident suspicion validity judgment rule, calculate all the lengths of the data that meet the rule, and convert them into HEX format;
[0168] (6-1) The first 6 bytes do not meet the time validity judgment rule, and the subsequent data is checked to see if it meets the timeout validity rule;
[0169] (6-2) Continue to confirm subsequent data according to method (6-1) until the data does not meet the timeout validity judgment rule, calculate all the lengths of the data that meet the rule, and convert them into HEX format;
[0170] (7) If the timeout validity judgment rule is not met, continue to search for other characteristic data, such as driving recorder brand, power-on record, speed status log information, etc.
[0171] (8) If the data stored in the chip does not match the data characteristics to be searched, the next data segment is searched using the chip read and write minimum unit offset until the mirroring ends.
[0172] (9) The acquired driving recorder data and the corresponding data length are stored in a new file in VDR format for preservation.
[0173] This application is applicable to scenarios where the amount of data exported by the driving recorder through the external physical port is significantly less, or the physical port is damaged due to an accident, or the power supply system fails. Through this application, data scanning and analysis of the chip image can be performed to completely extract the vehicle's historical driving data. This plays an important role in analyzing the driver's violations such as overtime and speeding, vehicle driving safety, and the analysis and identification of the causes of road traffic accidents.
[0174] Further references Figure 5 As an implementation of the above method, the present application provides an embodiment of a vehicle driving recorder data depth recovery device, and the device embodiment is similar to Figure 1Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0175] refer to Figure 5 , a vehicle driving recorder data deep recovery device, comprising:
[0176] The chip image extraction module 201 is configured to confirm the chip model of the driving recorder storage chip and extract the chip image;
[0177] The time validity judgment module 202 is configured to scan data from the chip image starting position and judge whether the first 6 bytes of the data block meet the time validity judgment rule, wherein the time validity judgment rule includes whether it is in BCD encoding format and whether the value is within a specific time range;
[0178] The custom data block extraction module 203 is configured to extract the time feature and extract the custom data block according to the time feature, specifically including:
[0179] Extract the driving speed data block: determine whether the time feature meets the time feature of the speed validity judgment. If so, further determine whether the subsequent 120 bytes of data meet the speed validity judgment rule. If so, the data block is considered to be driving speed data. Continue to confirm the subsequent data until there is no data that meets the speed validity judgment rule in the subsequent data. Calculate all the lengths of the data that meets the rule and convert them into HEX format.
[0180] Extract location information data block: determine whether the time feature meets the time feature of the location validity judgment rule. If so, further determine whether the subsequent fields meet the location validity judgment rule. If so, the data block is considered to be a location information data block. Continue to confirm the subsequent data until there is no data that meets the location validity judgment rule in the subsequent data. Calculate all the lengths of the data that meets the rule and convert them into HEX format.
[0181] Extract the accident suspicious point data block: determine whether the time feature meets the time feature of the accident suspicious point validity judgment rule. If so, further determine whether the subsequent fields meet the accident suspicious point validity judgment rule. If so, the data block is considered to be an accident suspicious point data block; continue to confirm the subsequent data until there is no data that meets the accident suspicious point validity judgment rule in the subsequent data, calculate all the lengths of the data that meets the rule, and convert it into HEX format;
[0182] The timeout validity judgment module 204 is configured to judge whether the subsequent data meets the timeout validity rule. If yes, all the lengths of the data meeting the timeout validity rule are calculated and converted into HEX format;
[0183] The relevant characteristic data search module 205 is configured to search for relevant characteristic data. If the chip mirroring stored data does not meet the data characteristics to be searched, the next data segment is searched by the chip read and write minimum unit offset until the mirroring ends;
[0184] The data storage module 206 is configured to store the acquired driving recorder data and the corresponding data length in a new file in a VDR format for preservation.
[0185] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 300 suitable for implementing an electronic device of an embodiment of the present application. Figure 6 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0186] like Figure 6 As shown, the computer system 300 includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage part 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the system 300 are also stored. The CPU 301, the ROM 302, and the RAM 303 are connected to each other through a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0187] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. The drive 230 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 230 as needed, so that a computer program read therefrom is installed into the storage section 308 as needed.
[0188] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 309, and / or installed from a removable medium 311. When the computer program is executed by a central processing unit (CPU) 301, the above-mentioned functions defined in the method of the present application are executed.
[0189] As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device implements the following when executing. Figure 1 The method shown in .
[0190] It should be noted that the computer-readable storage medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0191] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0192] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0193] The above describes the specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0194] In the description of the present application, it should be understood that the terms "upper", "lower", "inside", "outside", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. The wording 'comprising' does not exclude the presence of elements or steps not listed in the claims. The wording 'one' or 'an' preceding an element does not exclude the presence of a plurality of such elements. The simple fact that certain measures are recorded in mutually different dependent claims does not indicate that a combination of these measures cannot be used for improvement. Any reference symbols in the claims should not be interpreted as limiting the scope.
Claims
1. A method for deep recovery of vehicle driving recorder data, characterized in that: The method comprises the following steps: S1: Confirm the chip model of the driving recorder and extract the chip image; S2: Scan the data from the starting position of the chip image to determine whether the first 6 bytes of the data block meet the time validity judgment rule. The time validity judgment rule includes whether it is in BCD encoding format and whether the value is within a specific time range. If it meets the requirements, execute S3; if not, execute S4; S3: extract the time feature, perform custom data block extraction based on the time feature, and then execute S6; The S3 specifically includes: S31: Extracting the driving speed data block: judging whether the time feature meets the time feature of speed validity judgment, if so, further judging whether the subsequent 120 bytes of data meet the speed validity judgment rule, if so, the data block is considered to be driving speed data; continuing to confirm the subsequent data until there is no data meeting the speed validity judgment rule in the subsequent data, calculating all the lengths of the data meeting the rule, and converting them into HEX format; S32: extracting the location information data block: judging whether the time feature meets the time feature of the location validity judgment rule, if so, further judging whether the subsequent fields meet the location validity judgment rule, if so, considering that the data block is the location information data block; continuing to confirm the subsequent data until there is no data meeting the location validity judgment rule in the subsequent data, calculating all the lengths of the data meeting the rule, and converting them into HEX format; S33: Extracting the accident suspicious point data block: judging whether the time feature meets the time feature of the accident suspicious point validity judgment rule, if so, further judging whether the subsequent fields meet the accident suspicious point validity judgment rule, if so, the data block is considered to be the accident suspicious point data block; continuing to confirm the subsequent data until there is no data that meets the accident suspicious point validity judgment rule in the subsequent data, calculating all the lengths of the data that meets the rule, and converting them into HEX format; S4: Determine whether the subsequent data meets the timeout validity rule. If so, calculate all the lengths of the data that meet the timeout validity rule and convert them into HEX format, and execute S6; if not, execute S5; S5: Continue to search for relevant characteristic data. If the chip mirroring stored data does not meet the data characteristics to be searched, search for the next data segment based on the chip read / write minimum unit offset until the mirroring ends. S6: The acquired driving recorder data and the corresponding data length are stored in a new file in a VDR format for preservation.
2. According to claim 1, a method for deep recovery of vehicle driving recorder data is characterized in that: The speed validity judgment rule in S31 is specifically: The time feature is HH:MM:00; The encoding format of speed and status signals is HEX format; The effective speed range is 0km / h to 220km / h, and invalid speed values and status signal values are FF; Continuous storage of 60 groups; If one or two abnormal speed values appear within a certain period of time, the abnormality can be eliminated based on the front and rear speeds and brake signals; If the speed exceeds the record length or 10 consecutive groups are outside the valid data range, the entire group of data is considered invalid.
3. The method for deep recovery of vehicle driving recorder data according to claim 1 is characterized in that: The position validity judgment rule in S32 is specifically: The time feature is HH:00:00; The latitude, longitude, altitude, and speed are encoded in HEX format; The valid range of longitude is -180 degrees to 180 degrees, the valid range of latitude is -90 degrees to 90 degrees, and the invalid value of longitude and latitude is 7FFFFFFFH; The valid altitude value range is -32767 meters to 32767 meters, and the invalid altitude value is FFFFH; The longitude and latitude data collected at adjacent times are converted into trajectories with the help of Baidu Maps to observe whether the trajectories are continuous; or whether the time interval and distance between discontinuous trajectories are reasonable. Individual positioning data with large jumps can be regarded as abnormal values.
4. The method for deep recovery of vehicle driving recorder data according to claim 1 is characterized in that: The specific rules for judging the validity of the doubtful points in S33 are: The time feature is HH:MM:SS; If the driver's license number is the same as the ID number, 18 consecutive digits or 18 identical digits will be regarded as the default ID number; The encoding format of speed and status signals is HEX format; The effective speed range is 0km / h to 220km / h, and invalid speed values and status signal values are FF; The speed and status signals are stored every 0.2s. Whether the continuous adjacent speed changes exceed 1km / h can be judged to determine whether the speed is abnormal; Determine whether the speed is normal based on whether the speed at the corresponding time point collected in the speed block and the speed value in the previous 20 seconds can match the speed at the suspected accident point; The latitude, longitude, altitude, and speed are encoded in HEX format; The valid range of latitude is -180 to 180 degrees, the valid range of latitude is -90 to 90 degrees, and the invalid value of longitude and latitude is 7FFFFFFFH; The valid altitude value range is -32767 meters to 32767 meters, and the invalid altitude value is FFFFH.
5. The method for deep recovery of vehicle driving recorder data according to claim 1 is characterized in that: The timeout validity judgment rule in S4 is specifically: If the driver's license number is the same as the ID number, 18 consecutive digits or 18 identical digits are regarded as the default ID number; The start and end time meet the time validity judgment, and the data characteristics are HH:MM:SS; The latitude, longitude, altitude, and speed are encoded in HEX format; The valid range of longitude is -180 degrees to 180 degrees, the valid range of latitude is -90 degrees to 90 degrees, and the invalid value of longitude and latitude is 7FFFFFFFH; The valid altitude value range is -32767 meters to 32767 meters, and the invalid altitude value is FFFFH.
6. The method for deep recovery of vehicle driving recorder data according to claim 1 is characterized in that: The relevant characteristic data in S5 includes the brand, power-on record and speed status log information of the driving recorder.
7. A vehicle driving recorder data deep recovery device, characterized by: The device comprises: A chip image extraction module, configured to confirm the model of the chip stored in the driving recorder and extract the chip image; A time validity judgment module is configured to scan data from the chip image starting position to judge whether the first 6 bytes of the data block meet the time validity judgment rule, wherein the time validity judgment rule includes whether it is in BCD encoding format and whether the value is within a specific time range; The custom data block extraction module is configured to extract time features and perform custom data block extraction based on the time features, specifically including: Extract the driving speed data block: determine whether the time feature meets the time feature of the speed validity judgment. If so, further determine whether the subsequent 120 bytes of data meet the speed validity judgment rule. If so, the data block is considered to be driving speed data. Continue to confirm the subsequent data until there is no data that meets the speed validity judgment rule in the subsequent data. Calculate all the lengths of the data that meets the rule and convert them into HEX format. Extract location information data block: determine whether the time feature meets the time feature of the location validity judgment rule. If so, further determine whether the subsequent fields meet the location validity judgment rule. If so, the data block is considered to be a location information data block. Continue to confirm the subsequent data until there is no data that meets the location validity judgment rule in the subsequent data. Calculate all the lengths of the data that meets the rule and convert them into HEX format. Extract the accident suspicious point data block: determine whether the time feature meets the time feature of the accident suspicious point validity judgment rule. If so, further determine whether the subsequent fields meet the accident suspicious point validity judgment rule. If so, the data block is considered to be an accident suspicious point data block; continue to confirm the subsequent data until there is no data that meets the accident suspicious point validity judgment rule in the subsequent data, calculate all the lengths of the data that meets the rule, and convert it into HEX format; The timeout validity judgment module is configured to judge whether the subsequent data meets the timeout validity rule. If yes, the length of all data meeting the timeout validity rule is calculated and converted into HEX format; A related characteristic data search module is configured to search for related characteristic data. If the chip mirroring stored data does not meet the data characteristics to be searched, the next data segment is searched by the chip read and write minimum unit offset until the mirroring ends; The data storage module is configured to store the acquired driving recorder data and the corresponding data length in a new file in a VDR format for preservation.
8. An electronic device comprising: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Mirror image file obtaining method and device
CN112711427A
Data protection method for damaged memory cells
US20120117445A1
