Vehicle data restoration method, device and equipment

Repairing the timestamp of vehicle data by querying the off-shift time record and matching the data rule types, solving the problem of T-BOX's time stamp invalid in extreme environments, reducing regulatory verification errors, and ensuring the normal operation of data analysis.

CN119248547APending Publication Date: 2025-01-03CHINA UNICOM SMART CONNECTION TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411190772.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In extreme environments, T-BOX cannot obtain the correct time, resulting in invalid timestamps of vehicle data, affecting data storage and subsequent analysis, and thus causing verification errors by regulatory platforms, causing unnecessary trouble to car companies.

Method used

By analyzing the timestamp of the vehicle data, it is judged. If it is invalid, query the time record for the interruption time, match the data rule type, determine the target time record for the interruption time, repair the time stamp of the vehicle data based on the record, and repair the data to ensure its accuracy .

Benefits of technology

It effectively repairs the time stamp problem of vehicle data, reduces regulatory verification errors, promotes the update of T-BOX, solves the problem of errors in collection time reporting, and ensures the normal operation of data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248547A_ABST
    Figure CN119248547A_ABST
Patent Text Reader

Abstract

The invention relates to a vehicle data restoration method, device and equipment. The method comprises the following steps: analyzing a timestamp of current vehicle data; judging whether the timestamp of the current vehicle data is valid or not; if the vehicle data is invalid, inquiring all the cut-off time records, the cut-off time records being used for recording data cut-off information existing in the stored vehicle data, the data cut-off information comprising a cut-off time range and a data rule type conforming to the cut-off data, and the data rule type being associated with a data rule; matching the current vehicle data with the data rule corresponding to the inquired out cut-off time record; determining a target cut-off time record from the inquired cut-off time records according to a matching result; and repairing the current vehicle data according to the target cut-off time record. According to the embodiment of the invention, the method can achieve the restoration of the vehicle data with invalid timestamps, can promote the updating of the T-BOX according to the analysis of the restored data, and solves a problem that the collection time of the T-BOX is wrongly reported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device and equipment for repairing vehicle data. Background Art

[0002] At present, the basic steps of the new energy monitoring system are the collection, storage and forwarding of vehicle data. The specific process includes: T-BOX (Telematics BOX, on-board remote processing terminal) collects vehicle data through the CAN protocol, collects time data through the communication module, and then assembles the vehicle data and time data into a message and sends it to the cloud platform; the cloud platform obtains vehicle data and timestamps by parsing and assembling the message, and generates a unique primary key based on the timestamp and message identifier. The unique primary key is used to identify the uniqueness of the message and is stored in the database. Using the timestamp as the primary key and using the time to query the data later can improve the query efficiency. However, in extreme environments, T-BOX cannot obtain the correct time through the communication module, and the timestamp parsed by the cloud platform will also produce errors, resulting in the inability to store vehicle data, and the subsequent data analysis logic will also be affected. In addition, after the vehicle data is forwarded to the supervision platform, the supervision platform will misjudge the data and generate a large number of verification errors, which will cause unnecessary trouble to the car companies after being notified to the car companies. Summary of the invention

[0003] In view of this, the present application provides a method, apparatus and device for repairing vehicle data, which can repair vehicle data with invalid timestamps.

[0004] In a first aspect, an embodiment of the present invention provides a method for repairing vehicle data, comprising:

[0005] Parse the timestamp of the current vehicle data;

[0006] Determining whether the timestamp of the current vehicle data is valid;

[0007] If invalid, query all the gap time records, the gap time records are used to record the data gap information of the stored vehicle data, the data gap information includes the gap time range and the data rule type that the gap data complies with, and the data rule type is associated with the data rule;

[0008] Matching the current vehicle data with the data rules corresponding to the queried off-time records;

[0009] According to the matching result, determining the target off-time record from the queried off-time records;

[0010] The current vehicle data is repaired according to the target off-time record.

[0011] In some embodiments, determining whether the timestamp of the current vehicle data is valid includes:

[0012] Determining whether the timestamp matches a preset invalid time format, or determining whether the timestamp exceeds a preset time range;

[0013] If any of the judgment results is yes, the timestamp of the current vehicle data is invalid;

[0014] Otherwise, the timestamp of the current vehicle data is valid.

[0015] In some embodiments, the data rule associated with the data rule type includes a number of rule items;

[0016] Determining the target off-time record from the queried off-time records according to the matching result includes:

[0017] Determining the number of rule items that the current vehicle data complies with under each of the data rule types;

[0018] The break time record corresponding to the data rule type that meets the largest number of rule items is determined as the target break time record.

[0019] In some embodiments, repairing the current vehicle data according to the target off-time record includes:

[0020] Determine the start time of the off-time range included in the target off-time record;

[0021] Adding a data reporting period to the start time to obtain a repair timestamp;

[0022] The timestamp of the current vehicle data is modified using the repair timestamp to obtain the repaired vehicle data.

[0023] In some embodiments, the target interruption time record further includes: the interruption frame number;

[0024] After repairing the current vehicle data according to the target off-time record, the method further includes:

[0025] Determine whether the number of interrupted frames is greater than 1;

[0026] If the number of interrupted frames is not greater than 1, the target interrupted time record is deleted.

[0027] In some embodiments, the method further comprises:

[0028] If the number of outage frames is greater than 1, the number of outage frames is reduced by 1 and the target outage time record is modified according to the repaired vehicle data.

[0029] In some embodiments, the method further comprises:

[0030] If the timestamp of the current vehicle data is valid, determining a first time difference between the timestamp of the current vehicle data and the timestamp of the previous frame of vehicle data;

[0031] Determine whether the first time difference is greater than a data reporting period;

[0032] If it is greater, a new off-time record is generated according to the current vehicle data;

[0033] Wherein, the off-time range of the new off-time record is determined according to the timestamp of the current vehicle data and the timestamp of the previous frame of vehicle data;

[0034] The data rule type of the new off-time record is determined according to the data rule that the current vehicle data complies with.

[0035] In some embodiments, the method further comprises:

[0036] The number of interruption frames in the new interruption time record is determined according to the first time difference and the data reporting period.

[0037] In a second aspect, an embodiment of the present invention provides a vehicle data repair device, comprising:

[0038] Parsing module, used to parse the timestamp of current vehicle data;

[0039] A judgment module, used to judge whether the timestamp of the current vehicle data is valid;

[0040] A query module, used for querying all gap time records when the timestamp is invalid, wherein the gap time records are used to record data gap information of the stored vehicle data, wherein the data gap information includes a gap time range and a data rule type that the gap data complies with, wherein the data rule type is associated with a data rule;

[0041] A matching module, used for matching the current vehicle data with the data rules corresponding to the queried out break time records; and determining a target break time record from the queried out break time records according to the matching result;

[0042] A repair module is used to repair the current vehicle data according to the target off-time record.

[0043] In a third aspect, an embodiment of the present invention provides a cloud processing device, comprising: a memory for storing computer program instructions and a processor for executing program instructions, wherein, when the computer program instructions are executed by the processor, the electronic device executes the method described in the first aspect or any one of the first aspects.

[0044] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the method described in the first aspect or any one of the first aspects.

[0045] In an embodiment of the present invention, the gap time record is used to record the gap information of the stored vehicle data, and the gap information includes the gap time range and the data rule type that the gap data conforms to, and each data rule type is associated with a corresponding data rule. When the timestamp of the vehicle data is invalid, the existing gap time record can be queried, and the data rule type that the current vehicle data matches can be determined, and the gap time record corresponding to the data rule type that the current vehicle data matches can be used as the target gap time record. According to the target gap time record, the current vehicle data can be repaired, and according to the analysis of the repair data, the T-BOX can be updated and replaced, solving the problem of incorrect reporting of T-BOX collection time. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0047] Figure 1 A flowchart of a vehicle data repair method provided by an embodiment of the present invention;

[0048] Figure 2 A flow chart of a method for generating a time-out record provided by an embodiment of the present invention;

[0049] Figure 3 A flow chart of a vehicle data repair method provided by an embodiment of the present invention;

[0050] Figure 4 A schematic diagram of the structure of a vehicle data repair device provided by an embodiment of the present invention;

[0051] Figure 5 A schematic diagram of the structure of a cloud processing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to better understand the technical solution of the present application, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0053] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0054] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0055] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0056] See also Figure 1 , which is a flow chart of a vehicle data repair method provided in an embodiment of the present invention. Figure 1 The method shown is mainly applied to cloud platforms, such as Figure 1 As shown, the processing steps of the method include:

[0057] 101, receiving vehicle data sent by T-BOX. For the convenience of description, the currently received vehicle data is described as current vehicle data.

[0058] 102, parsing the timestamp of the current vehicle data.

[0059] 103, determine whether the timestamp of the current vehicle data is valid.

[0060] In extreme environments, the communication module of T-BOX cannot collect the correct time, which will cause the timestamp of the vehicle data to be invalid. After the cloud platform obtains the current vehicle data reported by T-BOX, it parses the timestamp from the current vehicle data and determines the validity of the timestamp of the current vehicle data.

[0061] The embodiment of the present invention can pre-set an invalid time format for an invalid time stamp, and can pre-set a certain time range. If the timestamp of the current vehicle data matches the preset invalid time format, or the timestamp of the current vehicle data is within the preset time range, the timestamp of the current vehicle data is invalid. If the timestamp of the current vehicle data does not match the preset invalid timestamp and is not within the preset time range, it is determined that the timestamp of the current vehicle data is valid.

[0062] 104 , if the timestamp of the current vehicle data is invalid, then executing a step of repairing the current vehicle data.

[0063] 105 . If the timestamp of the current vehicle data is valid, calculate a first time difference between the timestamp of the current vehicle data and the timestamp of the previous frame of vehicle data.

[0064] 106. Determine whether the first time difference is greater than a data reporting period. The data reporting period is a period for the T-BOX to report vehicle data to the cloud platform.

[0065] 107, if the first time difference is greater than the data reporting cycle, it means that there is a data gap between the previous frame vehicle data and the current frame vehicle data, and then the step of generating a gap time record is executed. The gap time record can record information such as the gap time range of the gap data and the data rule type that the gap data complies with. If the timestamp of the vehicle data received subsequently is invalid, the gap time record generated here can be used to repair it.

[0066] 108. If the first time difference is less than or equal to the data reporting period, it means that the current vehicle data is normal vehicle data, and the current vehicle data is stored.

[0067] From the above description, it can be seen that in the method of the embodiment of the present invention, when the timestamp of the vehicle data is invalid, the step of repairing the vehicle data can be performed; when the timestamp of the vehicle data is valid, the step of generating a gap time record can be determined based on the difference between the timestamp of the current vehicle data and the timestamp of the previous frame of vehicle data. The generated gap time record can be used to repair the vehicle data with invalid timestamps in the subsequent time.

[0068] For ease of understanding, the following will first describe the steps of generating the interruption time record in conjunction with an embodiment. Figure 2, is a flow chart of a method for generating a time gap record provided by an embodiment of the present invention. In an embodiment of the present invention, when the communication module of T-BOX cannot collect the correct time, it automatically assigns the timestamp to 1970-01-01 or 0000-00-00. Therefore, the invalid time format can be preset as 1970-01-01 or 0000-00-00. And the time range of the valid timestamp can be preset. Based on this, Figure 2 The processing steps of the method shown include:

[0069] 201, receiving current vehicle data sent by T-BOX.

[0070] 202, parsing the timestamp of the current vehicle data.

[0071] 203, determine whether the timestamp of the current vehicle data is valid. That is, whether the timestamp of the current vehicle data is 1970-01-01 or 0000-00-00, or whether the timestamp of the current vehicle data exceeds the preset time range. If both are no, the timestamp of the current vehicle data is valid. Otherwise, the timestamp of the current vehicle data is invalid. If the timestamp of the current vehicle data is invalid, refer to Figure 3 An example of a method to perform steps of repairing current vehicle data.

[0072] 204 , if the timestamp of the current vehicle data is valid, calculate a first time difference between the timestamp of the current vehicle data and the timestamp of the previous frame of vehicle data.

[0073] 205. Determine whether the first time difference is greater than the data reporting period.

[0074] 206. If the first time difference is greater than the data reporting period, it means that there is a time gap between the current vehicle data and the previous frame of vehicle data, then a gap time record is generated based on the previous frame of vehicle data and the current vehicle data. The gap time record includes the gap time range, the data rule type that the gap data complies with, and the number of gap frames.

[0075] The gap time range in the gap time record can be determined according to the timestamp of the current vehicle data and the timestamp of the previous frame of vehicle data. Specifically, the timestamp of the previous frame of vehicle data can be determined as the start time of the gap time record, and the timestamp of the current vehicle data can be determined as the end time of the gap time record. Optionally, the gap time record can also include a start signal list and an end signal list, wherein the start signal list is the parsed value of the previous frame of vehicle data, and the end signal list is the parsed value of the current vehicle data.

[0076] The number of gap frames can be calculated based on the difference between the timestamp of the current vehicle data and the timestamp of the previous frame of vehicle data. Specifically, the number of gap frames can be calculated based on the first time difference and the data reporting period. Exemplarily, the number of gap frames can be determined based on the ratio between the first time difference and the data reporting period.

[0077] Furthermore, the definition of data rules includes data rule types and data rule lists. Among them, data rule types may include types such as parking, driving and charging. The data rule list corresponding to each data rule type contains several rule items, and the rule items may include: state machine type rule items, range value type rule items and custom type rule items. The state machine type rule items may be, for example, rule items about vehicle startup status, charging status, running status, etc. The range value type rule items may be, for example, rule items about vehicle speed, accumulated mileage, voltage, current, temperature, etc. The custom type rule items may be, for example, rule items for determining movement based on longitude and latitude, battery pack current and voltage accumulation, etc.

[0078] In the embodiment of the present invention, determining the data rule type in the off-time record includes: determining the type of data rule that the current vehicle data complies with, and determining the data rule type that the current vehicle data complies with as the data rule type in the off-time record.

[0079] In the embodiment of the present invention, the off time record may also include

[0080] After explaining the steps for generating the time-out record, the following will explain the steps for restoring the vehicle data. Figure 3 , is a flow chart of a vehicle data repair method provided by an embodiment of the present invention. Figure 3 As shown, the processing steps of the method include:

[0081] 301, receiving the current vehicle data sent by T-BOX.

[0082] 302, parsing the timestamp of the current vehicle data.

[0083] 303, determine whether the timestamp of the current vehicle data is valid. That is, whether the timestamp of the current vehicle data is 1970-01-01 or 0000-00-00, or whether the timestamp of the current vehicle data exceeds the preset time range. If both are no, the timestamp of the current vehicle data is valid; otherwise, the timestamp of the current vehicle data is invalid. If the timestamp of the current vehicle data is valid, refer to Figure 2 Method example.

[0084] 304, if the timestamp of the current vehicle data is invalid, query all the gap time records, the gap time records are used to record the data gap information of the stored vehicle data, the data gap information includes the gap time range, the data rule type that the gap data complies with, and the number of gap frames. Each data rule type is associated with a corresponding data rule.

[0085] 305, matching the current vehicle data with the data rule corresponding to the queried off-time record.

[0086] 306. According to the matching result, determine the target off-time record from the queried off-time records.

[0087] The data rules associated with each data rule type include several rule items. In the embodiment of the present invention, the current vehicle data is matched with the data rules corresponding to each outage time record queried, and the number of rule items that the current vehicle data complies with under each outage time record is accumulated. In the embodiment of the present invention, the outage time record corresponding to the data rule class that complies with the largest number of rule items can be determined as the target outage time record, and the target outage time record can be used to repair the current vehicle data.

[0088] 307, repair the current vehicle data according to the target outage time record. The target outage time record can be used to repair the timestamp of the current vehicle data. Specifically, the target outage time record includes an outage time range, and the outage time range includes a start time and an end time. In this step, the data reporting period can be added to the start time recorded in the target outage time record to obtain a repair timestamp. The repair timestamp can be used to modify the timestamp of the current vehicle data to obtain repaired vehicle data.

[0089] 308 , marking the repaired vehicle data as repaired data and storing it.

[0090] 309, determining whether the number of interruption frames in the target interruption time record is greater than 1.

[0091] 310. If the number of interruption frames in the target interruption time record is not greater than 1, the target interruption time record is deleted.

[0092] 311, if the number of interrupted frames in the target interrupted time record is greater than 1, the number of interrupted frames is reduced by 1 and the target interrupted time record is modified according to the repaired vehicle data. Modifying the target interrupted time record according to the repaired vehicle data includes: modifying the start time in the target interrupted time record to the timestamp of the repaired data, and modifying the start signal list in the target interrupted time record to the parsed value of the current vehicle data.

[0093] In the embodiment of the present invention, when the timestamp of the vehicle data is invalid, the timestamp of the vehicle data can be repaired according to the interruption time record. The analysis of the repaired data can promote the upgrading of the T-BOX and solve the problem of incorrect reporting of the T-BOX collection time.

[0094] The following further provides specific examples of generating a time-out record and repairing vehicle data.

[0095] Example 1: The number of interruption frames in the interruption time record is 1.

[0096] In Example 1, the reporting period of vehicle data is 5 seconds, that is, T-BOX reports vehicle data every 5 seconds.

[0097] In Example 1, the data rule definition run_define: data rule type (driving), the rule list is: [Vehicle status = start, total voltage value range is 700 ~ 550, total current value range is -450 ~ -650, speed is greater than 0; according to the longitude and latitude, the moving distance error does not exceed 5 meters; front and rear total mileage range determination; front and rear total voltage range determination; front and rear total current range determination].

[0098] Data rule definition stop_define: data rule type (parking), the rule list is: [Vehicle status = engine off, total voltage 0, total current 0, speed 0; the error of moving distance determined based on longitude and latitude does not exceed 0.001 meters; the total mileage before and after is equal; the total voltage before and after is equal; the total current before and after is equal].

[0099] The timestamp of normal message A is 2024-06-01 09:15:30, the vehicle status is off, speed 0, longitude and latitude 114.202707,30.626388, total mileage 2300000 meters, total voltage 0V, and total current 0A.

[0100] The timestamp of normal message B is 2024-06-01 09:15:40, the vehicle status is engine off, speed 0, longitude and latitude 114.202707,30.626369, total mileage 2300000 meters, total voltage 0V, and total current 0A.

[0101] The timestamp of snapshot message C is 2024-06-01 10:05:00, the vehicle status is start, speed 50, longitude and latitude 114.210351,30.624731, total mileage 2300985 meters, total voltage 700V, total current -600A.

[0102] The timestamp of normal message D is 2024-06-01 10:05:05, the vehicle status is start, speed 50, longitude and latitude 114.211086,30.624758, total mileage 2301055 meters, total voltage 600V, total current -500A.

[0103] The timestamp of normal message E is 2024-06-01 10:05:15, the vehicle status is start, speed 52, longitude and latitude 114.212567,30.624814, total mileage 2301194 meters, total voltage 560V, total current -480A.

[0104] The timestamp of abnormal message F is 1970-01-01 00:00:00, the vehicle status is off, speed 0, longitude and latitude 114.202707,30.626318, total mileage 2300000 meters, total voltage 0V, and total current 0A.

[0105] The timestamp of abnormal message G is 1970-01-01 00:00:00, the vehicle status is start, speed 52, longitude and latitude 114.211832,30.624772, total mileage 2301125 meters, total voltage 580V, total current -489A.

[0106] When receiving message A, the timestamp information is parsed normally, a snapshot is generated, and the data is stored and forwarded. When receiving message B, the timestamp information is parsed normally, and compared with snapshot A, it is determined that the reporting frequency is abnormal, 1 frame of data is missing, and a gap time record A001 is generated. The start time of the gap time record A001 is the timestamp of message A, the end time is the timestamp of message B, the number of missing frames is 1, the start signal list is the parsed value of message A, and the end signal list is the parsed value of message B. According to the data rule definition, it is determined that the data rule type of A001 belongs to parking.

[0107] When receiving the C message, the timestamp information is parsed normally, a snapshot is generated, and the data is stored and forwarded. When receiving the D message, the timestamp information is parsed normally, and then the timestamp is compared with the snapshot C to determine that the reporting frequency is normal, and the message D is forwarded and stored and overwrites the snapshot C. When receiving the E message, the timestamp information is parsed normally, and then it is compared with the snapshot D to determine that the reporting frequency is abnormal, and 1 frame of data is missing, then the gap time record A002 is generated. The start time of the gap time record A002 is the timestamp of the D message, the end time is the timestamp of the E message, the number of missing frames is 1, the start signal list is the parsed value of the D message, and the end signal list is the parsed value of the E message. According to the data rule definition, it is determined that the data rule type of A002 belongs to driving.

[0108] When the F message is received, the parsed timestamp information is incorrect, and the gap time records A001 and A002 are found. According to the data rule type recorded in A001, the data rule definition stop_define and the rule list associated with stop_define are loaded. The F message is compared with the rule list associated with stop_define, and the number of rule items that the F message hits stop_define is 8. According to the data rule type recorded in A002, the data rule definition run_define and the rule list associated with run_define are loaded. The number of rule items that the F message hits run_define is 0, and the gap time record with the highest number of hits is sorted and obtained as A001. The timestamp information of the F message is modified to the start time in the A001 record + 5 seconds, and the data is resent, and the current message is marked as repair data and stored. Because the number of missing frames in the A001 record is 1, the record has been completed, so the gap time record A001 is cleared.

[0109] When receiving the G message, the parsed timestamp information is incorrect, and the query finds that there is a time gap range record A002. According to the type of A002 record, load the data rule definition run_define and the rule list associated with run_define. The number of rule items that hit run_define in the F message is 9, and the record with the highest number of hits is A002. Modify the timestamp information of the G message to the start time in the A002 record + 5 seconds, and resend the data, mark the current message as repair data and store it. Because the number of missing frames in the A002 record is 1, the record has been completed, so the gap time record A002 is cleared.

[0110] Example 2: The number of gap frames in the gap time record is 2.

[0111] In Example 2, the reporting period of vehicle data is 5 seconds, that is, T-BOX reports vehicle data every 5 seconds.

[0112] In Example 2, the data rule definition run_define: data rule type (driving), rule list [vehicle state = start, total voltage value range is 700 ~ 550, total current value range is -450 ~ -650, speed is greater than 0; according to the longitude and latitude, the moving distance error does not exceed 5 meters; front and rear total mileage range determination; front and rear total voltage range determination; front and rear total current range determination]

[0113] The timestamp of snapshot message A is 2024-05-21 14:04:50, the vehicle status is start, speed 50, longitude and latitude 114.211521,30.624911, total mileage 2300985 meters, total voltage 660V, total current -600A.

[0114] The timestamp of normal message B is 2024-05-21 14:05:05, the vehicle status is start, speed 50, longitude and latitude 114.209284,30.624818, total mileage 2301195 meters, total voltage 580V, total current -480A.

[0115] The timestamp of abnormal message C is 1970-01-01 00:00:00, the vehicle status is off, speed 51, longitude and latitude 114.210764,30.624864, total mileage 2301055 meters, total voltage 650V, total current -540A.

[0116] The timestamp of abnormal message D is 1970-01-01 00:00:00, the vehicle status is start, speed 52, longitude and latitude 114.210013,30.624851, total mileage 2301125 meters, total voltage 630V, total current -500A.

[0117] When receiving message A, the timestamp information is parsed normally, a snapshot is generated, and the data is stored and forwarded. When receiving message B, the timestamp information is parsed normally, and compared with snapshot A, it is determined that the reporting frequency is abnormal, 2 frames of data are missing, and the gap time record A001 is generated. The start time of the gap time record A001 is the timestamp of message A, the end time is the timestamp of message B, the number of missing frames is 2, the start signal list is the parsed value of message A, and the end signal list is the parsed value of message B. According to the data rule definition, it is determined that the data rule type of A001 belongs to driving.

[0118] When receiving the C message, the parsed timestamp information is incorrect, and the gap time record A001 is found. According to the data rule type of the A001 record, the data rule definition run_define is loaded. The number of run_define rules hit by the C message is 9, and the record with the highest number of hits is A001. The timestamp information of the C message is modified to the start time in the A001 record + 5 seconds, and the data is reissued, and the current message is marked as repair data and stored. Because the number of missing frames in the A001 record is 2, the message C and A001 records are merged, the start time and start signal list are replaced with the data of the message C, and the number of missing frames is reduced to 1

[0119] When receiving the D message, the parsed timestamp information is incorrect, and the gap time record A001 is found. According to the data rule type of the A001 record, the data rule definition run_define is loaded. The number of run_define rules hit by the D message is 9, and the record with the highest number of hits is A001. The timestamp information of the D message is modified to the start time in the A001 record + 5 seconds, and the data is resent, marking the current message as repair data and storing it. Because the number of missing frames in the A001 record is 1, the record has been completed, so the A001 record is cleared.

[0120] When T-BOX is temporarily unable to solve the problem of time collection under extreme conditions, this method can repair and restore the collected data, ensure the normal operation of subsequent business, reduce the problem of regulatory verification, and record and analyze the repaired data, which can promote the subsequent improvement of T-BOX's time collection problem.

[0121] See also Figure 4 , is a schematic diagram of the structure of a vehicle data repair device provided by an embodiment of the present invention. The device can be deployed in a cloud platform, such as Figure 4 As shown, the device comprises:

[0122] Parsing module 401, used for parsing the timestamp of current vehicle data;

[0123] A determination module 402 is used to determine whether the timestamp of the current vehicle data is valid;

[0124] A query module 403, for querying all gap time records when the timestamp is invalid, wherein the gap time record is used to record data gap information of the stored vehicle data, wherein the data gap information includes a gap time range and a data rule type that the gap data complies with, wherein the data rule type is associated with a data rule;

[0125] A matching module 404 is used to match the current vehicle data with the data rules corresponding to the queried out time-off records; and determine a target time-off record from the queried out time-off records according to the matching result;

[0126] The repair module 405 is used to repair the current vehicle data according to the target off-time record.

[0127] The vehicle data repair device of the embodiment of the present invention can execute the method of the embodiment shown above. For the part not described in detail in the embodiment of the present invention, reference can be made to the relevant description of the method embodiment. The execution process and technical effects of the technical solution can be referred to the description in the method embodiment, which will not be repeated here.

[0128] See also Figure 5, is a schematic diagram of the structure of a cloud processing device provided by an embodiment of the present invention. The cloud processing device corresponds to the above-mentioned cloud platform. Figure 5 As shown, the cloud processing device 500 may include: a processor 501, a memory 502 and a communication unit 503. These components communicate via one or more buses. Those skilled in the art will appreciate that the structure of the cloud processing device shown in the figure does not limit the embodiments of the present application. It may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.

[0129] The communication unit 503 is used to establish a communication channel so that the cloud processing device can communicate with other devices, receive user data sent by other devices or send user data to other devices.

[0130] The processor 501 is the control center of the cloud processing device. It uses various interfaces and lines to connect various parts of the entire cloud processing device. It runs or executes software programs, instructions, and / or modules stored in the memory 502, and calls data stored in the memory to perform various functions and / or process data of the cloud processing device. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 501 may include a central processing unit (CPU), a microcontroller Uni (MCU), etc.

[0131] The memory 502 is used to store the execution instructions of the processor 501. The memory 502 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0132] When the execution instructions in the memory 502 are executed by the processor 501 , the cloud processing device 500 is enabled to execute the vehicle data repair method in the embodiment of the present invention.

[0133] In a specific implementation, the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the vehicle data repair method provided in the present application. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0134] In a specific implementation, the present application also provides a computer program product, wherein the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or all of the steps in each embodiment of the vehicle data repair method provided in the present application.

[0135] The embodiment of the present application also provides a non-temporary computer-readable storage medium, which stores computer instructions, and the computer instructions enable the computer to execute the method provided by the embodiment of the present application.

[0136] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0137] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

Claims

1. A method for repairing vehicle data, characterized in that: include: Parse the timestamp of the current vehicle data; Determining whether the timestamp of the current vehicle data is valid; If invalid, query all the gap time records, the gap time records are used to record the data gap information of the stored vehicle data, the data gap information includes the gap time range and the data rule type that the gap data complies with, and the data rule type is associated with the data rule; Matching the current vehicle data with the data rules corresponding to the queried off-time records; According to the matching result, determining the target off-time record from the queried off-time records; The current vehicle data is repaired according to the target off-time record.

2. The method according to claim 1, characterized in that The determining whether the timestamp of the current vehicle data is valid includes: Determining whether the timestamp matches a preset invalid time format, or determining whether the timestamp exceeds a preset time range; If any of the judgment results is yes, the timestamp of the current vehicle data is invalid; Otherwise, the timestamp of the current vehicle data is valid.

3. The method according to claim 1, characterized in that The data rule associated with the data rule type includes a number of rule items; Determining the target off-time record from the queried off-time records according to the matching result includes: Determining the number of rule items that the current vehicle data complies with under each of the data rule types; The break time record corresponding to the data rule type that meets the largest number of rule items is determined as the target break time record.

4. The method according to claim 1, characterized in that: The repairing of the current vehicle data according to the target off-time record includes: Determine the start time of the off time range included in the target off time record; Adding a data reporting period to the start time to obtain a repair timestamp; The timestamp of the current vehicle data is modified using the repair timestamp to obtain the repaired vehicle data.

5. The method according to claim 1, characterized in that The target interruption time record also includes: interruption frame number; After repairing the current vehicle data according to the target off-time record, the method further includes: Determine whether the number of interrupted frames is greater than 1; If the number of interrupted frames is not greater than 1, the target interrupted time record is deleted.

6. The method according to claim 5, characterized in that The method further comprises: If the number of outage frames is greater than 1, the number of outage frames is reduced by 1 and the target outage time record is modified according to the repaired vehicle data.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: If the timestamp of the current vehicle data is valid, determining a first time difference between the timestamp of the current vehicle data and the timestamp of the previous frame of vehicle data; Determine whether the first time difference is greater than a data reporting period; If it is greater, a new off-time record is generated according to the current vehicle data; Wherein, the off-time range of the new off-time record is determined according to the timestamp of the current vehicle data and the timestamp of the previous frame of vehicle data; The data rule type of the new off-time record is determined according to the data rule that the current vehicle data complies with.

8. The method according to claim 7, characterized in that The method further comprises: The number of interruption frames in the new interruption time record is determined according to the first time difference and the data reporting period.

9. A vehicle data repair device, characterized in that: include: Parsing module, used to parse the timestamp of current vehicle data; A judgment module, used to judge whether the timestamp of the current vehicle data is valid; A query module, used for querying all gap time records when the timestamp is invalid, wherein the gap time records are used to record data gap information of the stored vehicle data, wherein the data gap information includes a gap time range and a data rule type that the gap data complies with, wherein the data rule type is associated with a data rule; A matching module, used for matching the current vehicle data with the data rules corresponding to the queried out break time records; and determining a target break time record from the queried out break time records according to the matching result; A repair module is used to repair the current vehicle data according to the target off-time record.

10. A cloud processing device, characterized in that: include: A memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 8.