Tracking compensation method, system and storage medium for vehicle data link
By building a link database and configuring data execution strategies in the Internet of Vehicles, the problems of data loss and low quality in large data volume interactions are solved, real-time monitoring and compensation of vehicle data links are realized, and data quality and operation and maintenance efficiency are improved. .
Patent Information
- Application Number
- CN202310950490.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-07-31
AI Technical Summary
In the existing technology, data interaction with large amounts of data leads to data loss, low data quality, and inflexible operation and maintenance work.
By building a link database in the Internet of Vehicles, configuring data execution strategies, including expiration strategies and compensation strategies, matching and splicing them and applying them to the monitoring execution tasks of the target vehicle, real-time monitoring of data links and compensation for lost data are achieved.
It realizes non-intrusive real-time tracking and compensation of vehicle data links, improves data quality, reduces operation and maintenance work, monitors data link nodes and consumption time in a timely manner, and provides statistical information on data loss.
Smart Images

Figure CN116974852B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a tracking compensation method, system and storage medium for a vehicle data link. Background Art
[0002] With the development of the Internet of Vehicles, relevant vehicle information data is becoming more and more abundant. In actual applications, the data links from the car machine to the TSP and other business systems and the data links from the TSP to the car machine are becoming more and more complex, and the amount of data is also increasing. For data link tracking, the project code usually introduces third-party dependencies such as SkyWalking and ZipKin, and then solves the problem of link tracking by collecting logs, including the common combination of ELK mode, that is, the code introduces SkyWalking, prints fixed-format business logs, collects logs through Logstash, and then pushes them to Kafka. Finally, the data is stored in Elasticsearch and viewed through Kibana. This method can monitor the data link and view the data log status of each node through a unique identifier. The disadvantage of this method is that it first needs to invade the system code, and then only supports printing fixed business logs. In actual situations, there is a huge amount of Internet of Vehicles data transmission every day, and node data loss is common in the process. If it is all done by operation and maintenance, it is not friendly. In addition, if you want to make some compensation mechanism or reminder for the lost data, it is impossible to achieve.
[0003] For the system architecture of the Internet of Vehicles, the flow of data is mostly fixed. For example, the device access end basically uses Emq as the message middleware. After the data is connected to the cloud, it is usually transferred to different business systems through the Kafka message middleware to process the business. The systems are basically decoupled through the message middleware. Faced with large amounts of data interaction, data loss due to network jitter or business system redeployment or other reasons, it is not good for the business system to compensate for the massive amount of data, which may cause data backlogs and cause pressure on business system resources. If a non-intrusive solution can be provided to track the data of the vehicle, TSP, and business system in real time, and at the same time make some compensation and alarms for lost data, and provide monitoring data such as data time consumption of each node, it can improve data quality, reduce operation and maintenance work, and flexibly monitor the health status of the nodes of concern.
[0004] In summary, the prior art has technical problems such as data loss due to data interaction of large amounts of data, low data quality, and inflexible operation and maintenance work. Summary of the invention
[0005] The present invention provides a tracking compensation method, system and storage medium for a vehicle data link, so as to solve the technical problems existing in the prior art of data loss and low data quality due to data interaction of large amounts of data, as well as inflexible operation and maintenance.
[0006] According to a first aspect of the present invention, a tracking and compensation method for a vehicle data link is provided, comprising: combining the Internet of Vehicles, performing a scene-compliance link node analysis, and building a link database, wherein the link database includes multiple pre-execution sequences; configuring a data execution strategy, wherein the data execution strategy includes an expiration strategy and a compensation strategy, and the expiration strategy is mapped to the compensation strategy; traversing the link database, matching and splicing the expiration strategy with the compensation strategy; obtaining a monitoring execution task for a target vehicle; parsing the monitoring execution task, and matching the target pre-execution sequence based on the link database; and performing data monitoring and management on the target vehicle based on the target pre-execution sequence.
[0007] According to a second aspect of the present invention, a tracking and compensation system for a vehicle data link is provided, comprising: a link database building module, the link database building module is used to combine the Internet of Vehicles, perform scene-compliance link node analysis, and build a link database, wherein the link database includes multiple pre-execution sequences; a data execution strategy configuration module, the data execution strategy configuration module is used to configure a data execution strategy, the data execution strategy includes an expiration strategy and a compensation strategy, and the expiration strategy is mapped to the compensation strategy; a matching splicing module, the matching splicing module is used to traverse the link database, and match and splice the expiration strategy with the compensation strategy; a monitoring execution task acquisition module, the monitoring execution task acquisition module is used to acquire the monitoring execution task of the target vehicle; a target pre-execution sequence matching module, the target pre-execution sequence matching module is used to parse the monitoring execution task and match the target pre-execution sequence based on the link database; a data monitoring management module, the data monitoring management module is used to perform data monitoring and management on the target vehicle based on the target pre-execution sequence.
[0008] According to the tracking and compensation method of the vehicle data link adopted in the present invention, in combination with the Internet of Vehicles, a scene-matching link node analysis is performed, and a link database is built, wherein the link database includes multiple pre-execution sequences; a data execution strategy is configured, wherein the data execution strategy includes an expiration strategy and a compensation strategy, and the expiration strategy is mapped to the compensation strategy; the link database is traversed to match and splice the expiration strategy with the compensation strategy; the monitoring execution task of the target vehicle is obtained; the monitoring execution task is parsed, and the target pre-execution sequence is matched based on the link database; based on the target pre-execution sequence, data monitoring and management of the target vehicle are performed, so as to achieve the technical effect of compensating for data integrity, monitoring each node and the total consumption time of the data link, and counting the lost data for subsequent processing by operation and maintenance personnel.
[0009] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0011] Figure 1 A schematic flow chart of a tracking compensation method for a vehicle data link provided by an embodiment of the present invention;
[0012] Figure 2 A schematic diagram of the structure of a tracking compensation system for a vehicle data link provided by an embodiment of the present invention;
[0013] Figure 3 It is a schematic diagram of the structure of an exemplary electronic device of the present invention.
[0014] Explanation of the accompanying drawings: link database building module 11, data execution strategy configuration module 12, matching splicing module 13, monitoring execution task acquisition module 14, target pre-execution sequence matching module 15, data monitoring management module 16, electronic device 300, memory 301, processor 302, communication interface 303, bus architecture 304. DETAILED DESCRIPTION
[0015] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0016] In order to solve the technical problems in the prior art of data loss, low data quality, and inflexible operation and maintenance due to data interaction of large amounts of data, the inventors of the present invention, through creative work, obtained the tracking compensation method, system and storage medium of the vehicle data link of the present invention.
[0017] Embodiment 1
[0018] Figure 1 A tracking compensation method diagram of a vehicle data link provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0019] Step S100: In combination with the Internet of Vehicles, a scenario-compatible link node analysis is performed to build a link database, wherein the link database includes a plurality of pre-execution sequences;
[0020] In this embodiment of the present invention, step S100 further includes:
[0021] Step S110: In combination with the Internet of Vehicles, calling the susceptibility scenario;
[0022] Step S120: configuring a plurality of pre-execution sequences for the survivability scenario, wherein the plurality of pre-execution sequences correspond to the survivability scenario one by one, and each pre-execution sequence is characterized as a scenario-data type-data link;
[0023] Step S130: Integrate the multiple pre-execution sequences to generate the link database.
[0024] In this embodiment of the present invention, step S120 includes:
[0025] Step S121: for the survivability scenario, matching the demand link node based on the scenario data type;
[0026] Step S122: Serializing and integrating the demand link nodes to generate multiple data links;
[0027] Step S123: Map and associate the storability scenarios, the scenario data types and the multiple data links to generate the multiple pre-execution sequences.
[0028] Specifically, the principle of the Internet of Vehicles is as follows: the on-board equipment on the vehicle effectively utilizes all vehicle dynamic information in the information network platform through wireless communication technology, provides different functional services during vehicle operation, and combines with the Internet of Vehicles to obtain different vehicle driving scenarios and conduct scenario-compatibility link node analysis. In layman's terms, based on the "scenario" node attention, different data link nodes are paid attention to for different types of data. Data link nodes can be simply understood as data flow nodes, where the scenario is used to identify the name of a data flow of concern, such as the status reporting scenario, which is used to pay attention to the status flow link, which can be the entire link or a partial link; the data type refers to the specific data that flows, such as status data, which corresponds to the specific data flow object; the data link is the node where data flows in multiple message middleware and its corresponding topic, and multiple pre-execution sequences constitute the link database.
[0029] Specifically, the process of building a link database is as follows: Combined with the Internet of Vehicles, call the survivability scenario, which is the vehicle driving status stored in the Internet of Vehicles system. For the survivability scenario, such as the status reporting scenario, the alarm scenario, etc., respectively perform the data link analysis to be monitored to determine the data link corresponding to the survivability scenario. Specifically, determine the link node based on the flow position of the corresponding data type under the scenario, serialize the link nodes based on the flow order, form a data link, and map and associate the scenario, data type and corresponding data link as a pre-execution sequence.
[0030] Exemplarily, for alarm scenarios, for example, for existing alarm data types, the data flow positions are "vehicle end-Emq-TSP-Kafka-alarm business system-Kafka" in sequence, and Emq, Kafka1, and Kafka2 can be set as the demand link nodes. Each demand link node corresponds to multiple types of topics of interest, and its attribution is marked as topic1 and topic2. Further traverse each link node to perform data inflow analysis. Preferably, in the same scenario, the corresponding data link can be flexibly configured based on actual monitoring needs. For example, for the alarm status, if only the time overhead and data loss after reporting to the business system processing need to be concerned, only Kafka1 and Kafka2 are set as the link nodes of concern. The multiple pre-execution sequences correspond to the survivability scenarios one by one, and each pre-execution sequence contains a set of corresponding scenarios, data types, and data links, which are characterized as scenarios-data types-data links. The multiple pre-execution sequences are integrated to form the link database. Based on the link database, information retrieval calls can be directly performed in the current scenario to improve processing execution efficiency and provide basic data for subsequent processes.
[0031] Step S200: configuring a data execution policy, wherein the data execution policy includes an expiration policy and a compensation policy, and the expiration policy and the compensation policy are mapped to each other;
[0032] Specifically, configure the data execution strategy, which includes an expiration strategy and a compensation strategy. In layman's terms, when monitoring the data flow at the corresponding link node, it is necessary to traverse each link node to determine the inflow of data. If no data inflow is detected at the link node, data compensation is required for the link node. For each data link in the link database, configure the expiration strategy and the compensation strategy respectively. The expiration strategy and the compensation strategy correspond one-to-one, that is, if no data inflow is detected within a predetermined time period, data compensation needs to be performed on it, that is, the link node import of data is executed again. Different expiration strategies and compensation strategies are configured for the corresponding data types in different scenarios. Specifically, the predetermined time period and the number of compensations are different. For example, the alarm data is set to "expiration time 1 minute, compensation number is one", and the maximum compensation number is configured, such as 3 times. That is, from the time the message flows into the monitoring system (data consumed by Emq), if it has not entered the next node (Kafka1) within 1 minute, the data will be resent to the original node once. If it has not flowed into the next node after the maximum compensation number is met, it is defined as missing data, and the compensation data will be stored in the database, and the current node will be marked as the data loss node.
[0033] At the same time, different compensation strategies can be set for different data types. For example, for important data, it is set to "expiration time of 1 minute, compensation 3 times, 5 times, 10 times, etc." Specifically, a fixed group is set for each scenario. Since Emq and Kafka message middleware are based on group consumption, that is, each group consumes the same data only once, so that it can be guaranteed to be independent of normal business data. Different compensation strategies and expiration strategies are set for data in different scenarios. The more important the data, the shorter the corresponding scheduled time period, and the more compensation times. For example, for status data, "expiration time of 1 minute, compensation 10 times" can be set; and for heartbeat data, it can be set to "expiration time of 30 seconds, no compensation".
[0034] Step S300: traverse the link database, and match and splice the expiration policy with the compensation policy;
[0035] Specifically, due to the flexible configuration of the node, the link database is traversed to obtain multiple pre-execution sequences of multiple different scenarios, and the expiration strategy and the compensation strategy are matched and spliced based on this. For example, if the expiration is 1 minute and the compensation is 1 time, these two strategies are executed successively and form a group of execution strategies. The compensation strategy can be used to compensate the data based on the expiration strategy. Therefore, it is necessary to combine the expiration strategy and the compensation strategy corresponding to the same scenario together to improve the accuracy of data compensation. For example, a scenario is required to only focus on the time overhead and data loss of vehicle alarm information from reporting to the business system processing, and set the expiration time to 3 minutes. No compensation strategy is set. It is only necessary to pay attention to the two topics of emq_topic_1 and Kafka_topic_2 and consume them. In the above example, only the time overhead and data loss need to be obtained, so there is no need to set a compensation strategy. It is necessary to determine whether a compensation strategy is needed according to the actual application, and map and associate multiple pre-execution sequences in the link database with the data execution strategy, that is, characterized as scenario-data type-data link-data execution strategy (expiration strategy, compensation strategy).
[0036] Step S400: obtaining the monitoring execution task of the target vehicle;
[0037] Specifically, the target vehicle is the vehicle to be data-link tracked and compensated, and the monitoring execution task refers to at least one scenario of data flow monitoring of the current state of the target vehicle. The data types are different, and the corresponding data flow data links and execution strategies are different, so targeted analysis and execution are required.
[0038] Step S500: parsing the monitoring execution task, and matching the target pre-execution sequence based on the link database;
[0039] Specifically, the monitoring execution task is parsed to determine the monitoring scenario, which is the current status scenario of the target vehicle. According to the monitoring scenario and the data type, a traversal match is performed in the link database to determine the pre-execution sequence corresponding to each task scenario, that is, at least one sequence characterized by a scenario-data type-data link-data execution strategy (expiration strategy, compensation strategy) that matches the scenario corresponding to the monitoring execution task. The pre-execution sequence corresponding to the monitoring execution task is extracted from the link database and integrated as the target pre-execution sequence.
[0040] Step S600: Based on the target pre-execution sequence, data monitoring and management are performed on the target vehicle.
[0041] In this embodiment of the present invention, step S600 includes:
[0042] Step S610: matching a node expiration policy to a first link node, where the first link node is a target node to be tracked and compensated for;
[0043] Step S620: Perform compensation triggering judgment based on the node expiration policy, generate compensation execution information to perform data management, wherein the compensation triggering standard is that the lower link node does not detect data inflow under the node expiration policy, and the compensation execution information includes adaptation execution instructions.
[0044] According to the target pre-execution sequence, data monitoring and management is performed on the target vehicle target pre-execution sequence, and the data monitoring and management includes an expiration strategy and a compensation strategy of the data link.
[0045] Specifically, the node expiration policy is matched to the first link node. The first link node refers to any target node in the target pre-execution sequence to be tracked and compensated. Each node runs independently. After the data flows to the current node, new data will be generated. The new data and the data of the previous node together constitute the data of the current node. The node expiration policy is matched to the first link node, such as how long after the expiration to compensate for the data. The compensation trigger is determined based on the node expiration policy. For example, the expiration policy is set to compensate once after 1 minute of expiration. If the data of the first link node has not been transferred to the next node for more than 1 minute, the compensation is determined to be triggered. At this time, compensation execution information is generated to perform data management. The compensation execution information includes the number of recorded compensations. In other words, in normal data flow, data flows into each node immediately and is updated until the last node. The expiration policy and compensation policy will not be triggered, but if the lower link node does not detect the inflow of data, the expiration policy and compensation policy will be triggered.
[0046] In this embodiment of the present invention, step S700 includes:
[0047] Step S710: calling node historical compensation data, where the node historical compensation data is characterized as an empty set or a non-empty set;
[0048] Step S720: If the node historical compensation data is a non-empty set, identify the number of historical compensations, and update the number of historical compensations in real time;
[0049] Step S730: matching the maximum number of compensation times in combination with the scene data type;
[0050] Step S740: if the historical compensation times do not meet the maximum compensation times, generate a data resending instruction;
[0051] Step S750: Based on the data resending instruction, perform data compensation on the first link node;
[0052] Step S760: if the historical compensation times meet the maximum compensation times, generate a data marking instruction, the data marking instruction is used to mark the lost data and the lost node;
[0053] Step S770: Based on the data marking instruction, store the marked data into a database.
[0054] Specifically, the node historical compensation data is called, and the node historical compensation data is characterized as an empty set or a non-empty set. The empty set indicates normal data flow, and the data is consumed and updated by each link node in time until it flows to the last link node, and the expiration strategy and compensation strategy will not be triggered; the non-empty set indicates that the expiration strategy and compensation strategy are triggered. If the node historical compensation data is a non-empty set, the number of historical compensations is identified. The number of historical compensations is dynamically changing and will be updated in real time. Further combined with the scenario data type, the maximum number of compensations is matched. For example, the "vehicle status reporting scenario" corresponds to topic 1 under resource Resource1 and topic 2 under Resource2, with an expiration time of 1 minute and a maximum number of compensations of 3 times. The vehicle reporting process is that during the vehicle driving process, Tbox collects various CAN signals including vehicle speed, fuel consumption, etc., and then integrates them into vehicle status data and reports them to EMQ. The cloud TSP consumes EMQ data and performs related business processing, and then sends the processed data to Kafka for use by other business systems in need. After the task is started, the corresponding data link consumption process is as follows: When data is reported to EMQ, such as the corresponding topic topic1, the monitoring system consumes the message. This message may be reported to EMQ for the first time, or it may have been reported before but triggered the expiration policy and reported again through the monitoring system. If it is the first reported data, the record compensation number is 0, and the relevant expiration policy is set to store the data in Redis, where the key value in Redis is "scenario name_data unique identifier" (such as: {"status report_10001": {data: original data, node location: [1], consumption time: [20230308171350], compensation number: 0}}). If it is reported data, that is, according to "scenario name_data unique identifier", the previous record is queried from Resis, and the monitoring system makes a business judgment. If the historical compensation number does not meet the maximum compensation number, a data reissue instruction is generated. Based on the data reissue instruction, data compensation is performed on the first link node, that is, the compensation number is obtained and updated and resent to Redis. If the compensation strategy meets the maximum number of compensation times, then if the historical number of compensation times meets the maximum number of compensation times, a data marking instruction is generated, and the data marking instruction is used to mark the lost data and the lost nodes. Based on the data marking instruction, the marked data is persisted to the database. That is to say, after the data compensation reaches the maximum number of times, no compensation will be made, and it will be directly marked and stored in the database for easy tracing.
[0055] In this embodiment of the present invention, step S800 includes:
[0056] Step S810: Monitor data flow and determine real-time link nodes;
[0057] Step S820: appending the node data of the real-time link node and integrating the upper link node data to generate updated node data;
[0058] Step S830: Transfer the updated node data to the lower link nodes, and gradually update the node data until the data transfer is completed.
[0059] Specifically, data flow monitoring is performed to determine the real-time link node, which is the node into which the current data flows. The node data of the real-time link node is appended, and the upper link node data is integrated to generate updated node data. In layman's terms, the data flowing into the upper node is combined with the data flowing into the real-time link node as updated node data, and the updated node data is further transferred to the lower link node. The lower link node combines the updated node data with the node data of the lower link node to generate a new updated node data again, and so on, step by step to update the node data until the data flow ends, that is, the data flows to the last node, and the last node receives the data and updates the data and persists it in the database.
[0060] In this embodiment of the present invention, step S900 includes:
[0061] Step S910: Setting the data maintenance cycle;
[0062] Step S920: Based on the data maintenance cycle, regularly perform monitoring data statistics to determine a multidimensional data set, wherein the multidimensional data set includes a normal link execution data set, a link interruption uncompensated data set, and a data set that reaches the maximum number of compensation times;
[0063] Step S930: Generate a deadline data report based on the normal link execution data set, the link interruption uncompensated data set and the maximum compensation times reached data set, wherein the deadline data report has a summary statistics category;
[0064] Step S940: Perform query and operation and maintenance management based on the deadline data report.
[0065] Specifically, the data maintenance cycle can be set according to actual conditions, such as 24 hours. Based on the data maintenance cycle, the monitoring data statistics are regularly performed, such as the monitoring data of the day is regularly counted at 12 o'clock every night, and a multidimensional data set is generated. The multidimensional data set includes a normal link execution data set, a link interruption uncompensated data set, and a data set with the maximum number of compensations reached. For the data of the normal link end, or the data of the data link interruption but no compensation strategy is set, and the data with the compensation strategy set to reach the maximum number of compensations, they will eventually be persisted to the database, and the normal link execution data set, the link interruption uncompensated data set, and the data set with the maximum number of compensations reached can be extracted through the database. Further, based on the normal link execution data set, the link interruption uncompensated data set, and the data set with the maximum number of compensations reached, a deadline data report is generated. The deadline data report has a summary statistical category, specifically including the data flow of the day, the average link time, the maximum and minimum time, the amount of lost data, etc. The deadline data report is sent to the operation and maintenance personnel to assist the operation and maintenance personnel in checking and operation and maintenance management.
[0066] Based on the above analysis, the present invention provides a tracking and compensation method for a vehicle data link. In this embodiment, in combination with the Internet of Vehicles, a scene-compliance link node analysis is performed, and a link database is built, wherein the link database includes multiple pre-execution sequences; a data execution strategy is configured, and the data execution strategy includes an expiration strategy and a compensation strategy, and the expiration strategy is mapped to the compensation strategy; the link database is traversed to match and splice the expiration strategy with the compensation strategy; the monitoring execution task of the target vehicle is obtained; the monitoring execution task is parsed, and the target pre-execution sequence is matched based on the link database; based on the target pre-execution sequence, data monitoring and management are performed on the target vehicle, so as to achieve the technical effect of compensating for data integrity, monitoring each node and the total consumption time of the data link, and counting the lost data for subsequent processing by operation and maintenance personnel.
[0067] Embodiment 2
[0068] Based on the same inventive concept as the tracking compensation method of the vehicle data link in the aforementioned embodiment, Figure 2 As shown, the present invention also provides a tracking compensation system for a vehicle data link, the system comprising:
[0069] A link database building module 11, wherein the link database building module 11 is used to analyze link nodes for scene compatibility in combination with the Internet of Vehicles and build a link database, wherein the link database includes a plurality of pre-execution sequences;
[0070] A data execution policy configuration module 12, the data execution policy configuration module 12 is used to configure a data execution policy, the data execution policy includes an expiration policy and a compensation policy, the expiration policy and the compensation policy are mapped to each other;
[0071] A matching and splicing module 13, wherein the matching and splicing module 13 is used to traverse the link database and match and splice the expiration policy with the compensation policy;
[0072] A monitoring execution task acquisition module 14, wherein the monitoring execution task acquisition module 14 is used to acquire the monitoring execution task of the target vehicle;
[0073] A target pre-execution sequence matching module 15, wherein the target pre-execution sequence matching module 15 is used to parse the monitoring execution task and match the target pre-execution sequence based on the link database;
[0074] The data monitoring management module 16 is used to perform data monitoring management on the target vehicle based on the target pre-execution sequence.
[0075] Furthermore, the system further comprises:
[0076] A survivability scenario calling module, which is used to call a survivability scenario in combination with the Internet of Vehicles;
[0077] A pre-execution sequence configuration module, the pre-execution sequence configuration module is used to configure a plurality of pre-execution sequences for the survivability scenario, the plurality of pre-execution sequences correspond to the survivability scenario one by one, and each pre-execution sequence is characterized as a scenario-data type-data link;
[0078] A sequence integration module is used to integrate the multiple pre-execution sequences to generate the link database.
[0079] Furthermore, the system further comprises:
[0080] A demand link node matching module, the demand link node matching module is used to match the demand link node based on the scenario data type for the survivability scenario;
[0081] A serialization integration module, the serialization integration module is used to perform serialization integration on the demand link nodes to generate multiple data links;
[0082] A mapping association module is used to map and associate the storability scenario, the scenario data type and the multiple data links to generate the multiple pre-execution sequences.
[0083] Furthermore, the system further comprises:
[0084] A node expiration policy matching module, wherein the node expiration policy matching module is used to match a node expiration policy to a first link node, wherein the first link node is a target node to be tracked and compensated for;
[0085] A compensation trigger determination module is used to perform compensation trigger determination based on the node expiration policy, generate compensation execution information to perform data management, wherein the compensation trigger standard is that the lower link node does not detect data inflow under the node expiration policy, and the compensation execution information includes an adaptation execution instruction.
[0086] Furthermore, the system further comprises:
[0087] A historical data calling module, the historical data calling module is used to call node historical compensation data, the node historical compensation data is characterized as an empty set or a non-empty set;
[0088] A historical compensation times identification module, wherein the historical compensation times identification module is used to identify the historical compensation times if the historical compensation data of the node is a non-empty set, and the historical compensation times are updated in real time;
[0089] A maximum compensation times matching module, the maximum compensation times matching module is used to match the maximum compensation times in combination with the scene data type;
[0090] A data reissue instruction generation module, the data reissue instruction generation module is used to generate a data reissue instruction if the historical compensation times do not meet the maximum compensation times;
[0091] A data compensation execution module, the data compensation execution module is used to perform data compensation on the first link node based on the data resending instruction;
[0092] A data marking instruction generation module, wherein the data marking instruction generation module is used to generate a data marking instruction if the historical compensation times meet the maximum compensation times, and the data marking instruction is used to mark the lost data and the lost nodes;
[0093] A marked data storage module is used to store the marked data into a database based on the data marking instruction.
[0094] Furthermore, the system further comprises:
[0095] A real-time link node determination module, the real-time link node determination module is used to monitor data flow and determine real-time link nodes;
[0096] An update node data generation module, the update node data generation module is used to append the node data of the real-time link node and integrate the upper link node data to generate update node data;
[0097] The node data updating module is used to transfer the updated node data to the lower link nodes, and gradually update the node data until the data transfer is completed.
[0098] Furthermore, the system further comprises:
[0099] A maintenance cycle setting module, wherein the maintenance cycle setting module is used to set a data maintenance cycle;
[0100] A multidimensional data set determination module, the multidimensional data set determination module is used to periodically perform monitoring data statistics based on the data maintenance cycle to determine a multidimensional data set, wherein the multidimensional data set includes a normal link execution data set, a link interruption uncompensated data set, and a data set that reaches the maximum number of compensation times;
[0101] A deadline data report generation module, the deadline data report generation module is used to generate a deadline data report based on the normal link execution data set, the link interruption uncompensated data set and the maximum compensation times reached data set, and the deadline data report has a summary statistics category;
[0102] An operation and maintenance management module, wherein the operation and maintenance management module is used to perform query and operation and maintenance management based on the deadline data report.
[0103] The specific example of the tracking compensation method of the vehicle data link in the aforementioned embodiment 1 is also applicable to the tracking compensation system of the vehicle data link in this embodiment. Through the aforementioned detailed description of the tracking compensation method of the vehicle data link, those skilled in the art can clearly understand the tracking compensation system of the vehicle data link in this embodiment, so for the sake of brevity of the specification, it will not be described in detail here. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part.
[0104] Embodiment 3
[0105] Based on the same inventive concept as the tracking compensation method of the vehicle data link in the aforementioned embodiment, Figure 3 As shown, the present invention further provides an electronic device 300, which includes a memory 301 and a processor 302. The memory 301 stores a computer program, and when the computer program is executed by the processor 302, the steps of a method of an embodiment are implemented.
[0106] The electronic device 300 includes: a processor 302, a communication interface 303, and a memory 301. Optionally, the electronic device 300 may also include a bus architecture 304. The communication interface 303, the processor 302, and the memory 301 may be interconnected via the bus architecture 304; the bus architecture 304 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus architecture 304 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0107] Processor 302 may be a CPU, a microprocessor, an ASIC, or one or more integrated circuits for controlling the execution of programs of the present invention.
[0108] The communication interface 303 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), wired access network, etc.
[0109] The memory 301 may be a ROM or other types of static storage devices that can store static information and instructions, a RAM or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read only memory (EEPROM), a compact disc (CD ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via the bus architecture 304. The memory may also be integrated with the processor.
[0110] The memory 301 is used to store computer-executable instructions for executing the solution of the present invention, and the execution is controlled by the processor 302. The processor 302 is used to execute the computer-executable instructions stored in the memory 301, thereby implementing the steps of the method in the above-mentioned embodiment 1 of the present invention.
[0111] Embodiment 4
[0112] Based on the same inventive concept as the tracking compensation method of the vehicle data link in the aforementioned embodiment, the present invention also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the method in embodiment one are implemented.
[0113] It should be understood that the various forms of the above-described processes may be used to reorder, add, or delete steps. For example, the steps described in this disclosure may be performed in parallel, sequentially, or in a different order.
[0114] As long as the expected results of the technical solution disclosed in the present invention can be achieved, this document does not impose any limitations here.
[0115] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A tracking compensation method for a vehicle data link, characterized in that: The method is applied to a vehicle networking server, and the method includes: Combined with the Internet of Vehicles, a scenario-compatible link node analysis is performed to build a link database, wherein the link database includes multiple pre-execution sequences, each of which corresponds to a survivability scenario. The survivability scenario includes the vehicle driving status stored in the Internet of Vehicles system, and each pre-execution sequence is characterized as a scenario-data type-data link; Configure a data execution strategy, wherein the data execution strategy includes that if no data inflow is detected within a predetermined time period, data compensation needs to be performed on it, the predetermined time period corresponds to an expiration strategy, the number of times data compensation is performed corresponds to the compensation strategy, and the expiration strategy is mapped to the compensation strategy; Traversing the link database, matching and splicing the expiration policy with the compensation policy; Obtain the monitoring execution task of the target vehicle; Parsing the monitoring execution task to determine the survivability scenario corresponding to the monitoring scenario, and matching the target pre-execution sequence based on the link database; Based on the target pre-execution sequence, data monitoring and management are performed on the target vehicle.
2. The method according to claim 1, characterized in that The method of combining the Internet of Vehicles to analyze link nodes for scene compatibility and build a link database includes: Combined with the Internet of Vehicles, call for survivability scenarios; According to the survivability scenario, multiple pre-execution sequences are configured; The plurality of pre-execution sequences are integrated to generate the link database.
3. The method according to claim 2, characterized in that The method for configuring multiple pre-execution sequences includes: For the survivability scenario, matching the demand link node based on the scenario data type; Serializing and integrating the demand link nodes to generate multiple data links; The survivability scenarios, the scenario data types and the multiple data links are mapped and associated to generate the multiple pre-execution sequences.
4. The method according to claim 3, characterized in that The method of performing data monitoring and management on the target vehicle based on the target pre-execution sequence includes: Matching a node expiration policy to a first link node, where the first link node is a target node to be tracked and compensated; A compensation triggering judgment is performed based on the node expiration policy, and compensation execution information is generated to perform data management, wherein the compensation triggering standard is that the lower link node under the node expiration policy does not detect data inflow, and the compensation execution information includes an adaptation execution instruction.
5. The method according to claim 4, characterized in that Methods include: Calling node historical compensation data, wherein the node historical compensation data is characterized as an empty set or a non-empty set; If the node historical compensation data is a non-empty set, the historical compensation times are identified, and the historical compensation times are updated in real time; In combination with the scene data type, matching the maximum number of compensation times; If the historical compensation times do not meet the maximum compensation times, generating a data resending instruction; Based on the data resending instruction, performing data compensation on the first link node; If the historical compensation times meet the maximum compensation times, a data marking instruction is generated, where the data marking instruction is used to mark lost data and lost nodes; Based on the data marking instruction, the marked data is stored in a database.
6. The method according to claim 1, characterized in that Methods include: Monitor data flow and determine real-time link nodes; Appending the node data of the real-time link node and integrating the upper link node data to generate updated node data; The updated node data is transferred to the lower link nodes, and the node data is updated step by step until the data transfer is completed.
7. The method according to claim 1, characterized in that Methods include: Set the data maintenance cycle; Based on the data maintenance cycle, monitoring data statistics are performed regularly to determine a multidimensional data set, wherein the multidimensional data set includes a normal link execution data set, a link interruption uncompensated data set, and a data set of reaching the maximum number of compensation times; Generate a deadline data report based on the normal link execution data set, the link interruption uncompensated data set and the maximum compensation times reached data set, wherein the deadline data report has a summary statistics category; Based on the said period data report, query and operation and maintenance management are carried out.
8. A tracking compensation system for a vehicle data link, characterized in that: The system comprises: A link database building module, the link database building module is used to combine the Internet of Vehicles, perform scene-compliance link node analysis, and build a link database, wherein the link database includes a plurality of pre-execution sequences, the plurality of pre-execution sequences correspond to survivability scenes one by one, the survivability scenes include vehicle driving states stored in the Internet of Vehicles system, and each pre-execution sequence is characterized as a scene-data type-data link; A data execution strategy configuration module, the data execution strategy configuration module is used to configure a data execution strategy, the data execution strategy includes that if no data inflow is detected within a predetermined time period, data compensation needs to be performed on it, the predetermined time period corresponds to an expiration strategy, the number of times data compensation is performed corresponds to the compensation strategy, and the expiration strategy is mapped to the compensation strategy; A matching and splicing module, the matching and splicing module is used to traverse the link database and match and splice the expiration policy with the compensation policy; A monitoring execution task acquisition module, wherein the monitoring execution task acquisition module is used to acquire the monitoring execution task of the target vehicle; A target pre-execution sequence matching module, the target pre-execution sequence matching module is used to parse the monitoring execution task to determine the survivability scenario corresponding to the monitoring scenario, and match the target pre-execution sequence based on the link database; A data monitoring management module is used to perform data monitoring and management on the target vehicle based on the target pre-execution sequence.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of any one of the methods of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any method of claims 1-7 are implemented.
