Data transmission method and system based on information age and storage medium
By setting the information age and building a network model in the Internet of Things, predicting the transmission timeout and the number of retransmissions, the problem of untimely data transmission in the Internet of Things is solved, the information timeliness and reliability of the system are improved, and resource waste is avoided.
Patent Information
- Application Number
- CN202410568994.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-08-30
AI Technical Summary
Existing technology is difficult to effectively solve the information age problem of sensor network data transmission in the Internet of Things, resulting in untimely data transmission and affecting the accuracy and reliability of system decision-making.
By setting the information age for data transmission, the smart terminal sends query instructions to the electronic control unit, calculates the data interaction time, builds a network model to predict the timeout time and number of retransmissions, optimizes data transmission, and ensures the timeliness and reliability of information.
It achieves the reliability and timeliness of data transmission, avoids the waste of idle waiting for transmission resources caused by too old information, and improves the decision-making accuracy of the system.
Smart Images

Figure CN118573584A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and in particular relates to a data transmission method, system and storage medium based on information age. Background Art
[0002] The Internet of Things is the third information technology revolution after computers and the Internet. It has received widespread attention from governments, enterprises and academia around the world, and has developed rapidly with the application of sensor network technology and driverless vehicle technology. Installing a gateway on a vehicle can realize the collection of sensor network data, and how to accurately and reliably transmit the data generated by industrial vehicles to the network platform for use within an effective time is becoming a hot research topic. In traditional data communications, more attention is paid to the delay of information transmission, or the optimization of data transmission by deriving the life model of the retransmitted sensor network.
[0003] For example, the Chinese patent application "CN103634826B" discloses a method for optimizing the life of a wireless sensor network under non-uniform deployment conditions, including the following steps: Step 1: deploy a one-dimensional wireless sensor network; Step 2: obtain the energy consumption model of the wireless sensor nodes; Step 3: obtain the retransmission model of the one-dimensional wireless sensor network; Step 4: obtain the energy consumption model of the one-dimensional wireless sensor network considering retransmission; Step 5: obtain the reliability model of the one-dimensional wireless sensor network considering retransmission; Step 6: obtain the life optimization model of the one-dimensional wireless sensor network under non-uniform deployment conditions and solve it. The present invention considers the retransmission mechanism, establishes an optimization model for wireless sensor networks under non-uniform deployment conditions with data transmission reliability as a constraint and maximizing the network life considering energy consumption as the goal, and uses the Newton method to optimize the number of node deployments, which is an innovation of a convenient and efficient life optimization deployment method for wireless sensor networks.
[0004] In real-time update applications, more attention is paid to the timeliness of information, because after the data is generated, as time passes, the obsolescence of the data information also increases one-way, and it continues to "age". Information freshness is crucial for the real-time monitoring system and status update system of the Internet of Things. If the destination receives outdated information, it may reduce the accuracy and reliability of system decisions and cause huge security risks.
[0005] However, in the above technologies, although the centralized expression factor of the sensor network can represent the load of the transmission network and improve the reliability of system transmission by increasing the network life of the entire network through the retransmission network model, there is no in-depth research on building a network model based on information age to achieve reliable data transmission. Summary of the invention
[0006] To solve the above problems, the present invention provides a data transmission method, system and storage medium based on information age to solve the problems in the prior art.
[0007] In order to achieve the above-mentioned object of the invention, the present invention proposes a data transmission method based on information age, comprising:
[0008] Step S1: setting a first information age for data transmission, where the first information age is the maximum information age in the case of abnormal data transmission, and sending a query command to the electronic control unit through the smart terminal;
[0009] Step S2: the electronic control unit receives the query instruction, generates first target data corresponding to the query instruction, and calculates a first data volume and a transmission frequency of the first target data;
[0010] Step S3: Calculate the data interaction time between the electronic control unit and the smart terminal under the standard state of the first target data as the first time, wherein the first time includes the first transmission time when the electronic control unit sends data to the smart terminal and the first response time when the smart terminal receives the data and responds to the electronic control unit;
[0011] Step S4: The first target data is processed by the smart terminal to obtain second target data, and the interaction time between the smart terminal and the network platform under the standard state of the second target data is calculated as the second time, where the second time includes the second transmission time when the smart terminal sends data to the network platform and the second response time when the network platform receives the data and responds to the smart terminal;
[0012] Step S5: Acquire the first network status and the second network status in real time, input the first data volume, the first network status and the module processing time of the smart terminal into the first model, obtain a first timeout time that is greater than and closest to the first time and a first data retransmission number between the electronic control unit and the smart terminal, and also input the second network status, the second data volume of the second target data and the module processing time into the second model, obtain a second timeout time that is greater than and closest to the second time, and a second data retransmission number between the smart terminal and the network platform.
[0013] Furthermore, the step S5 further includes a step S6:
[0014] Based on the first timeout period and the first data retransmission number, the first target data interacts between the electronic control unit and the smart terminal, and based on the second timeout period and the second data retransmission number, the second target data interacts between the smart terminal and the network platform.
[0015] Furthermore, step S3 includes the following steps:
[0016] Step S31: after the system is powered on and the network status is stable, sending first test data to the smart terminal through the electronic control unit, wherein the first test data includes a first test sending time and a first test data volume;
[0017] Step S32: After receiving the first test data, the smart terminal obtains the first test sending time and records the first test receiving time. After parsing the first test data, the smart terminal records the first test processing time, and sends the first test sending time, the first test receiving time and the first test processing time to the control unit;
[0018] Step S33: the control unit receives the first test sending time, the first test receiving time and the first test processing time, and obtains the first test transmission time through the time difference between the first test receiving time and the first test sending time, and obtains the first test response time through the time difference between the first test processing time and the first test receiving time;
[0019] Step S34: Obtain a first ratio between the first data volume and the first test data volume, and use the product of the first ratio and the first test transmission time as the first transmission time, and use the product of the first ratio and the first test response time as the first response time.
[0020] Further, the step S4 includes: after the smart terminal parses the first test signal, sending a second test signal to the network platform, wherein the second test signal includes a second test sending time of the second test signal; and using the methods of the steps S32, S33 and S34 to obtain the second transmission time and the second response time.
[0021] Furthermore, the construction of the first model and the second model includes the following steps:
[0022] Step S51: creating the first model and the second model by a model creation unit respectively, wherein the first model is used to predict a first timeout period and a first data retransmission number of communications between the electronic control unit and the smart terminal, and the second model is used to predict the second timeout period and the second data retransmission number of communications between the smart terminal and the network platform;
[0023] Step S52: Generate through a simulation unit and send multiple simulated data with different data volumes in multiple simulated network states and multiple module simulated processing times, obtain multiple corresponding first simulated transmission times and first simulated response times, and use the multiple simulated network states, multiple simulated data, multiple module simulated processing times and the corresponding first simulated transmission times and first simulated response times as first training data to train the first model;
[0024] Step S53: Generate a plurality of second training data of the second model using the method of step S52 to train the second model.
[0025] Furthermore, the step S4 also includes: obtaining the product of the first timeout time and the first data retransmission number, calculating a second ratio of the product to the first time, and retraining the first model when the second ratio is less than or equal to 1 or greater than a first threshold value; similarly, obtaining a third ratio of the product of the second timeout time and the second data retransmission number to the second time, and retraining the second model when the third ratio is less than or equal to 1 or greater than a second threshold value.
[0026] Furthermore, in step S5, after the system is started, it is determined whether the electronic control unit sends the first target data for the first time. If so, the module processing time of the smart terminal is the ratio of the first response time to the first data volume. If not, the module processing time of the smart terminal is the ratio of the third response time of the last time the electronic control unit sent the third target data to the third data volume of the third target data.
[0027] Further, the sum of the product of the first timeout period and the first data retransmission number and the product of the second timeout period and the second data retransmission number is defined as a second information age, and the second information age is smaller than the first information age.
[0028] The present invention also provides a data transmission system based on information age, which is used to implement the above-mentioned method, and the system includes the following modules:
[0029] A data query module, which sets a first information age for data transmission, wherein the first information age is a maximum information age in the case of abnormal data transmission, and sends a query command to the electronic control unit through the intelligent terminal;
[0030] A data acquisition module, wherein the electronic control unit receives the query instruction, generates first target data corresponding to the query instruction, and calculates a first data volume and a transmission number of the first target data;
[0031] A first calculation module, wherein the data interaction time between the electronic control unit and the smart terminal under the standard state of the first target data is taken as the first time, and the first time includes the first transmission time when the electronic control unit sends data to the smart terminal and the first response time when the smart terminal receives the data to respond to the electronic control unit;
[0032] A second calculation module, wherein the first target data is processed by the smart terminal to obtain second target data, and the interaction time between the smart terminal and the network platform under the standard state of the second target data is calculated as a second time, wherein the second time includes a second transmission time when the smart terminal sends data to the network platform and a second response time when the network platform receives the data and responds to the smart terminal;
[0033] A model building module obtains the first network status and the second network status in real time, inputs the first data volume, the first network status and the module processing time of the smart terminal into the first model, obtains a first timeout time that is greater than and closest to the first time and a first data retransmission number between the electronic control unit and the smart terminal, and also inputs the second network status, the second data volume of the second target data and the module processing time into the second model, obtains a second timeout time that is greater than and closest to the second time, and a second data retransmission number between the smart terminal and the network platform.
[0034] The present invention also provides a computer storage medium, wherein the computer storage medium stores program instructions, wherein when the program instructions are executed, the device where the computer storage medium is located is controlled to execute the above-mentioned method.
[0035] Compared with the prior art, the beneficial effects of the present invention are at least as follows:
[0036] The present invention firstly sends a query instruction to the electronic control unit through the intelligent terminal to obtain transmission data, and sets the maximum information age under the most severe transmission environment conditions, so as to provide an upper limit threshold for the judgment of the information age; secondly, the electronic control unit receives the query instruction of the intelligent terminal, generates the first target data including the data volume and the number of transmissions, calculates the first time of data interaction between the electronic control unit and the intelligent terminal under the standard positive transmission state, and the second time of data interaction between the intelligent terminal and the network platform, and provides the minimum information age of data transmission under the ideal transmission state; constructs different network models between the electronic control unit and the intelligent terminal, and between the intelligent terminal and the network platform, so as to achieve more accurate data prediction for different transmission environments; inputs the data volume, network status and module processing time of the target data into the network model, obtains the predicted values of the data transmission timeout time and the number of data retransmissions, and then obtains the information age closest to the actual needs.
[0037] The present invention constructs a network model based on information age to obtain the optimal data timeout time and data retransmission times, thereby obtaining the closest information age, achieving successful data transmission, and ensuring the reliability of data transmission. At the same time, the network model is continuously trained and optimized, and it is also avoided that the information age is too large due to excessive preset parameters, resulting in idle waiting waste of transmission resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flowchart of the steps of a data transmission method based on information age of the present invention;
[0039] Figure 2 It is a structural schematic diagram of a data transmission system based on information age of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0041] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.
[0042] First, let me introduce some professional terms involved in this application:
[0043] Age of Information (AoI): refers to the time difference from the generation of information to the current moment. The biggest difference from latency is that information age not only includes the transmission delay of information, but also includes the waiting time of information at the source node and the residence time at the destination node.
[0044] The purpose of introducing information age is to measure the freshness of information updates and to ensure the timeliness and reliability of data transmission.
[0045] like Figure 1 As shown, a data transmission method based on information age includes:
[0046] Step S1: setting a first information age for data transmission, where the first information age is the maximum information age in the case of abnormal data transmission, and sending a query command to the electronic control unit through the smart terminal.
[0047] Specifically, the intelligent terminal sends a query instruction to the electronic control unit, and the electronic control unit sends data according to the content of different instructions. During the data transmission process, when affected by factors such as channel congestion, data interference or network fluctuations, the data sending and receiving process will experience abnormal transmission situations such as data delays or transmission failures. This requires continuous retransmission of data to ensure the successful arrival of data. The first information age is the maximum transmission time to complete data transmission under such abnormal transmission conditions.
[0048] Step S2: the electronic control unit receives the query instruction, generates first target data corresponding to the query instruction, and calculates a first data volume and a transmission frequency of the first target data.
[0049] Specifically, when the electronic control unit receives a query instruction issued by the intelligent terminal, it generates the corresponding first target data according to the query requirements of the query instruction, and obtains the first data volume of the first target data and the number of transmissions required to complete each transmission. The number of transmissions means that when the data is too large to be sent in one time, it needs to be sent in multiple times.
[0050] Step S3: Calculate the data interaction time between the electronic control unit and the smart terminal under the standard state as the first time for the first target data. The first time includes the first transmission time when the electronic control unit sends data to the smart terminal and the first response time when the smart terminal receives the data response to the electronic control unit.
[0051] Specifically, the standard state of data transmission, that is, the sending and receiving of data is not affected by factors such as channel congestion, data interference or network fluctuations, and there will be no abnormal transmission such as data delay or transmission failure. The first transmission time when the electronic control unit successfully sends the first target data to the smart terminal and the first response time when the smart terminal responds to the electronic control unit after receiving the data under the standard state are calculated. The sum of the first transmission time and the first response time is recorded as the first time, which is the data interaction time of the first target data between the electronic control unit and the smart terminal.
[0052] Step S4: The first target data is processed by the smart terminal to obtain the second target data, and the interaction time between the smart terminal and the network platform under the standard state of the second target data is calculated as the second time. The second time includes the second transmission time of the smart terminal sending data to the network platform and the second response time of the network platform receiving the data to respond to the smart terminal.
[0053] Specifically, after the first target data is generated from the electronic control unit to the processing of the smart terminal, it becomes the second target data. Similarly, under the standard data transmission state, the second transmission time for the smart terminal to successfully send the second target data to the network platform and the second response time for the network platform to respond to the smart terminal after receiving the data are calculated. The sum of the second transmission time and the second response time is recorded as the second time, which is the data interaction time of the second target data between the smart terminal and the network platform.
[0054] Step S5: Acquire the first network status and the second network status in real time, input the first data volume, the first network status and the module processing time of the smart terminal into the first model, obtain a first timeout time that is greater than and closest to the first time and the first data retransmission number between the electronic control unit and the smart terminal, and also input the second network status, the second data volume of the second target data and the module processing time into the second model, obtain a second timeout time that is greater than and closest to the second time, and the second data retransmission number between the smart terminal and the network platform.
[0055] Specifically, during the data transmission between the electronic control unit and the smart terminal, and between the smart terminal and the network platform, the data transmission time and the data reception time are not the same. Therefore, the construction of the network model should also be divided into the first model and the second model, so as to obtain more accurate data. However, the processing time of the smart terminal module sending and receiving are roughly the same. For example, in this embodiment, the processing time of the smart terminal module receiving is And the processing time sent by the module exist The numerical range is roughly equal, so when the first model and the second model are trained, the training parameters representing the module processing capabilities are unified as the module processing time.
[0056] According to model influencing factors such as different network states, data volume of different target data and module processing time, a first model of data transmission between the electronic control unit and the intelligent terminal and a second model of data transmission between the intelligent terminal and the network platform are constructed. Through the constructed data models, the data timeout time and data retransmission number of real-time transmission data can be predicted.
[0057] When the first data volume, the first network status and the module processing time are input into the first model, the model will automatically match the first timeout period and the first number of data retransmissions, which satisfy the first time condition for data transmission between the electronic control unit and the intelligent terminal, which is greater than and closest to the first time condition for transmission under the standard state; similarly, when the second data volume, the second network status and the module processing time are input into the second model, the second timeout period and the second number of data retransmissions can be obtained, which satisfy the second time condition for data transmission between the intelligent terminal and the network platform, which is greater than and closest to the second time condition for transmission under the standard state. This can achieve successful data transmission without causing idle waste of transmission resources due to setting the information age too large.
[0058] Furthermore, step S5 further includes step S6:
[0059] Based on the first timeout period and the first data retransmission number, the first target data interacts between the electronic control unit and the intelligent terminal, and based on the second timeout period and the second data retransmission number, the second target data interacts between the intelligent terminal and the network platform.
[0060] Specifically, based on step S5, the first timeout time and the first data retransmission number of the first target data transmitted from the electronic control unit to the smart terminal can be obtained through the prediction of the first model, which provides a basis for the data transmission from the electronic control unit to the smart terminal. The first target data is transmitted according to the predicted first timeout time and the first data retransmission number; the second timeout time and the second data retransmission number of the second target data transmitted from the smart terminal to the network platform can be obtained through the prediction of the second model, which provides a basis for the data transmission from the smart terminal to the network platform. The second target data is transmitted according to the predicted second timeout time and the second data retransmission number.
[0061] Further, step S3 includes the following steps:
[0062] Step S31: after the system is powered on and the network status is stable, first test data is sent to the smart terminal through the electronic control unit, wherein the first test data includes a first test sending time and a first test data volume.
[0063] Specifically, when the system is powered on and the network status is uncertain, the transmission channel is in an idle state and the network is relatively stable. The sending and receiving of data are not easily affected by unstable factors such as channel congestion, data interference or network fluctuations, which will greatly reduce the occurrence of data delays or transmission failures. At this time, the electronic control unit sends the first test data to the smart terminal, which can be regarded as the shortest time under ideal conditions for data transmission. At the same time, the first test sending time and the first test data volume are obtained, which provide a data basis for subsequent calculations.
[0064] Step S32: After receiving the first test data, the smart terminal obtains the first test sending time and records the first test receiving time. After parsing the first test data, the smart terminal records the first test processing time and sends the first test sending time, the first test receiving time and the first test processing time to the control unit.
[0065] Specifically, when the smart terminal receives the first test data, it also obtains the first test sending time and records the first test receiving time when the first test data is received. After analysis and processing by the smart terminal, it gives response feedback to the electronic control unit at the first test processing time, and sends the first test sending time, the first test receiving time and the first test processing time to the control unit for processing, providing data basis for the calculation of the first test transmission time and the first test response time.
[0066] Step S33: The control unit receives the first test sending time, the first test receiving time and the first test processing time, and obtains the first test transmission time through the time difference between the first test receiving time and the first test sending time, and obtains the first test response time through the time difference between the first test processing time and the first test receiving time.
[0067] Specifically, after the control unit receives the data, it subtracts the first test receiving time from the first test sending time to obtain the first test transmission time for the first test data to be transmitted between the electronic control unit and the smart terminal. Similarly, it subtracts the first test processing time from the first test receiving time to obtain the first test response time for the first test data to be transmitted between the smart terminal and the electronic control unit, laying the foundation for the next step of obtaining the transmission parameters of the first target data.
[0068] Step S34: Obtain a first ratio between the first data volume and the first test data volume, and use the product of the first ratio and the first test transmission time as the first transmission time, and use the product of the first ratio and the first test response time as the first response time.
[0069] Specifically, different data volumes correspond to different transmission times. The first test transmission time t of the first test data under ideal conditions and the ratio of the first data volume a to the first test data volume b are calculated, and the first transmission time of the first target data is calculated based on the first formula. Similarly, the first response time of the first target data is calculated.
[0070] Further, step S4 includes: after the smart terminal parses the first test signal, sending a second test signal to the network platform, wherein the second test signal includes a second test sending time of the second test signal; and using the methods of steps S32, S33 and S34 to obtain the second transmission time and the second response time.
[0071] Specifically, by the same logic, the transmission parameters between the smart terminal and the network platform under ideal transmission conditions are obtained. After the first test signal is parsed and processed by the smart terminal, the second test signal is sent to the network platform. The network platform obtains and records the second test sending time, the second test receiving time and the second test processing time. After processing by the control unit, the second test transmission time and the second test response time are calculated, and the second transmission time and the second response time are obtained based on the ratio of the data volume of the second target data to the data volume of the second test signal.
[0072] Furthermore, the construction of the first model and the second model includes the following steps:
[0073] Step S51: Create a first model and a second model respectively through the model creation unit, wherein the first model is used to predict the first timeout period and the first data retransmission number of communications between the electronic control unit and the smart terminal, and the second model is used to predict the second timeout period and the second data retransmission number between the smart terminal and the network platform.
[0074] Specifically, since the time for sending and receiving data between the electronic control unit and the smart terminal, and between the smart terminal and the network platform are not the same, a first model is constructed by a model creation unit to predict the first timeout time and the first number of data retransmissions, thereby meeting the information age of data transmission between the electronic control unit and the smart terminal. Similarly, by constructing a second model, the second timeout time and the second number of data retransmissions can be predicted to meet the information age of data transmission between the smart terminal and the network platform.
[0075] Step S52: Generate through the simulation unit and send multiple simulated data with different data volumes in multiple simulated network states and multiple module simulation processing times, obtain multiple corresponding first simulated transmission times and first simulated response times, and use the multiple simulated network states, multiple simulated data, multiple module simulation processing times and the corresponding first simulated sending times and first simulated response times as the first training data to train the first model.
[0076] Specifically, the network model is trained through multiple different simulation variables provided by the simulation unit to realize the construction of the model. The first training data of the first model between the electronic control unit and the intelligent terminal includes different network states, different module processing times, and simulation data of different data amounts to obtain multiple first simulation transmission times and first simulation response times. After training under multiple groups of different conditions, the prediction function of the model will become more and more accurate.
[0077] Step S53: Generate a plurality of second training data of the second model using the method of step S52 to train the second model.
[0078] Specifically, the construction principle of the second model between the smart terminal and the network platform is the same as that of the first model. By obtaining multiple second simulation transmission times and second simulation response times through different network states, different module simulation processing times, and different data volumes of simulated data, the second model can be constructed.
[0079] Furthermore, step S4 also includes: obtaining the product of the first timeout time and the first data retransmission number, calculating the second ratio of the product to the first time, and retraining the first model when the second ratio is less than or equal to 1 or greater than the first threshold value; similarly, obtaining the third ratio of the product of the second timeout time and the second data retransmission number to the second time, and retraining the second model when the third ratio is less than or equal to 1 or greater than the second threshold value.
[0080] Specifically, the first model predicts the first timeout time and the first data retransmission number of the data interaction between the electronic control unit and the intelligent terminal, and the multiplication of the two is the completion transmission time of the data. When the second ratio of the product of the two and the first time is less than or equal to 1, that is, the completion transmission time of the data is less than or equal to the first time of transmission under the ideal state, it means that the data has not been transmitted. It also means that the first model at this time is immature and needs to be retrained. The optimized training data is added to the first model to improve the first model. At the same time, when the second ratio is greater than the first threshold, in this embodiment, the first threshold is 2, which means that the predicted first timeout time and the first data retransmission number are obviously too large. If the data is transmitted according to this data, there will be a lot of idle waiting time left after the data is transmitted, resulting in a waste of resources. In this case, the first model also needs to be retrained.
[0081] Further, in step S5, after the system is started, it is determined whether the electronic control unit sends the first target data for the first time. If so, the module processing time of the smart terminal is the ratio of the first response time to the first data volume. If not, the module processing time of the smart terminal is the ratio of the third response time of the last time the electronic control unit sent the third target data to the third data volume of the third target data.
[0082] Specifically, the time it takes for a module to receive or send data varies depending on the amount of data transmitted. The module processing time of a smart terminal is the ratio of the first response time to the first target data, which represents the data processing capability. Therefore, the module processing time is an indispensable training data for training the first model. At the same time, the calculation of the module processing time is closest to the most recent training data. Therefore, when predicting the first target data, the training data closest in time will be selected.
[0083] Further, the sum of the product of the first timeout period and the first data retransmission number and the product of the second timeout period and the second data retransmission number is defined as the second information age, and the second information age is smaller than the first information age.
[0084] Specifically, the product of the first timeout time and the first data retransmission number and the sum of the product of the second timeout time and the second data retransmission number are calculated to obtain the second information age for predicting data completion transmission. The second information age is greater than and closest to the sum of the first time and the second time for transmission under ideal standard conditions, and is less than the first information age of the maximum transmission time to complete data transmission under abnormal transmission conditions.
[0085] like Figure 2 As shown, the present invention also provides a data transmission system based on information age, which is used to implement the above method. The system mainly includes:
[0086] The data query module sets a first information age for data transmission, where the first information age is the maximum information age in the case of abnormal data transmission, and sends a query command to the electronic control unit through the intelligent terminal.
[0087] The data acquisition module, the electronic control unit receives the query instruction, generates first target data corresponding to the query instruction, and calculates the first data volume and transmission times of the first target data.
[0088] The first calculation module uses the data interaction time between the electronic control unit and the smart terminal under the standard state as the first time for the first target data. The first time includes the first transmission time when the electronic control unit sends data to the smart terminal and the first response time when the smart terminal receives the data and responds to the electronic control unit.
[0089] The second calculation module, the first target data is processed by the smart terminal to obtain the second target data, and the interaction time between the smart terminal and the network platform under the standard state of the second target data is calculated as the second time, and the second time includes the second transmission time when the smart terminal sends data to the network platform and the second response time when the network platform receives the data and responds to the smart terminal.
[0090] The model building module obtains the first network status and the second network status in real time, inputs the first data volume, the first network status and the module processing time of the intelligent terminal into the first model, obtains a first timeout time that is greater than and closest to the first time and the first data retransmission number between the electronic control unit and the intelligent terminal, and also inputs the second network status, the second data volume of the second target data and the module processing time into the second model, obtains a second timeout time that is greater than and closest to the second time, and the second data retransmission number between the intelligent terminal and the network platform.
[0091] The present invention also provides a computer storage medium, which stores program instructions. When the program instructions are executed, the device where the computer storage medium is located is controlled to execute the above method.
[0092] Compared with the prior art, the present invention has at least the following beneficial effects:
[0093] The present invention firstly sends a query instruction to the electronic control unit through the intelligent terminal to obtain transmission data, and sets the maximum information age under the most severe transmission environment conditions, so as to provide an upper limit threshold for the judgment of the information age; secondly, the electronic control unit receives the query instruction of the intelligent terminal, generates the first target data including the data volume and the number of transmissions, calculates the first time of data interaction between the electronic control unit and the intelligent terminal under the standard positive transmission state, and the second time of data interaction between the intelligent terminal and the network platform, and provides the minimum information age of data transmission under the ideal transmission state; constructs different network models between the electronic control unit and the intelligent terminal, and between the intelligent terminal and the network platform, so as to achieve more accurate data prediction for different transmission environments; inputs the data volume, network status and module processing time of the target data into the network model, obtains the predicted values of the data transmission timeout time and the number of data retransmissions, and then obtains the information age closest to the actual needs.
[0094] The present invention constructs a network model based on information age to obtain the optimal data timeout time and data retransmission times, thereby obtaining the closest information age, achieving successful data transmission, and ensuring the reliability of data transmission. At the same time, the network model is continuously trained and optimized, and it is also avoided that the information age is too large due to excessive preset parameters, resulting in idle waiting waste of transmission resources.
[0095] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0096] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The above-mentioned program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0097] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0098] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
[0099] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. 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 data transmission method based on information age, characterized in that: include: Step S1: setting a first information age for data transmission, where the first information age is the maximum information age in the case of abnormal data transmission, and sending a query command to the electronic control unit through the smart terminal; Step S2: the electronic control unit receives the query instruction, generates first target data corresponding to the query instruction, and calculates a first data volume and a transmission frequency of the first target data; Step S3: Calculate the data interaction time between the electronic control unit and the smart terminal under the standard state of the first target data as the first time, wherein the first time includes the first transmission time when the electronic control unit sends data to the smart terminal and the first response time when the smart terminal receives the data and responds to the electronic control unit; Step S4: The first target data is processed by the smart terminal to obtain second target data, and the interaction time between the smart terminal and the network platform under the standard state of the second target data is calculated as the second time, where the second time includes the second transmission time when the smart terminal sends data to the network platform and the second response time when the network platform receives the data and responds to the smart terminal; Step S5: Acquire the first network status and the second network status in real time, input the first data volume, the first network status and the module processing time of the smart terminal into the first model, obtain a first timeout time that is greater than and closest to the first time and a first data retransmission number between the electronic control unit and the smart terminal, and also input the second network status, the second data volume of the second target data and the module processing time into the second model, obtain a second timeout time that is greater than and closest to the second time, and a second data retransmission number between the smart terminal and the network platform.
2. The method according to claim 1, characterized in that The step S5 further includes a step S6: Based on the first timeout period and the first data retransmission number, the first target data interacts between the electronic control unit and the smart terminal, and based on the second timeout period and the second data retransmission number, the second target data interacts between the smart terminal and the network platform.
3. The method according to claim 1, characterized in that: The step S3 comprises the following steps: Step S31: after the system is powered on and the network status is stable, sending first test data to the smart terminal through the electronic control unit, wherein the first test data includes a first test sending time and a first test data volume; Step S32: After receiving the first test data, the smart terminal obtains the first test sending time and records the first test receiving time. After parsing the first test data, the smart terminal records the first test processing time, and sends the first test sending time, the first test receiving time and the first test processing time to the control unit; Step S33: the control unit receives the first test sending time, the first test receiving time and the first test processing time, and obtains the first test transmission time through the time difference between the first test receiving time and the first test sending time, and obtains the first test response time through the time difference between the first test processing time and the first test receiving time; Step S34: Obtain a first ratio between the first data volume and the first test data volume, and use the product of the first ratio and the first test transmission time as the first transmission time, and use the product of the first ratio and the first test response time as the first response time.
4. The method according to claim 3, characterized in that The step S4 includes: after the smart terminal parses the first test data, sending second test data to the network platform, wherein the second test data includes a second test sending time of the second test data; and using the methods of the steps S32, S33 and S34 to obtain the second transmission time and the second response time.
5. The method according to claim 1, characterized in that The construction of the first model and the second model includes the following steps: Step S51: creating the first model and the second model by a model creation unit respectively, wherein the first model is used to predict a first timeout period and a first data retransmission number of communications between the electronic control unit and the smart terminal, and the second model is used to predict the second timeout period and the second data retransmission number of communications between the smart terminal and the network platform; Step S52: Generate through a simulation unit and send multiple simulated data with different data volumes in multiple simulated network states and multiple module simulated processing times, obtain multiple corresponding first simulated transmission times and first simulated response times, and use the multiple simulated network states, multiple simulated data, multiple module simulated processing times and the corresponding first simulated transmission times and first simulated response times as first training data to train the first model; Step S53: Generate a plurality of second training data of the second model using the method of step S52 to train the second model.
6. The method according to claim 4, characterized in that The step S4 also includes: obtaining the product of the first timeout time and the first data retransmission number, calculating a second ratio of the product to the first time, and retraining the first model when the second ratio is less than or equal to 1 or greater than a first threshold value; similarly, obtaining a third ratio of the product of the second timeout time and the second data retransmission number to the second time, and retraining the second model when the third ratio is less than or equal to 1 or greater than a second threshold value.
7. The method according to claim 1, characterized in that In step S5, after the system is started, it is determined whether the electronic control unit sends the first target data for the first time. If so, the module processing time of the smart terminal is the ratio of the first response time to the first data volume. If not, the module processing time of the smart terminal is the ratio of the third response time of the last time the electronic control unit sent the third target data to the third data volume of the third target data.
8. The method according to claim 1, characterized in that The sum of the product of the first timeout period and the first data retransmission number and the product of the second timeout period and the second data retransmission number is defined as a second information age, and the second information age is smaller than the first information age.
9. A data transmission system based on information age, used to implement the method according to any one of claims 1 to 8, characterized in that: Includes the following modules: A data query module, which sets a first information age for data transmission, wherein the first information age is a maximum information age in the case of abnormal data transmission, and sends a query command to the electronic control unit through the intelligent terminal; A data acquisition module, wherein the electronic control unit receives the query instruction, generates first target data corresponding to the query instruction, and calculates a first data volume and a transmission number of the first target data; A first calculation module, wherein the data interaction time between the electronic control unit and the smart terminal under the standard state of the first target data is taken as the first time, wherein the first time includes a first transmission time when the electronic control unit sends data to the smart terminal and a first response time when the smart terminal receives data to respond to the electronic control unit; A second calculation module, wherein the first target data is processed by the smart terminal to obtain second target data, and the interaction time between the smart terminal and the network platform under the standard state of the second target data is calculated as a second time, wherein the second time includes a second transmission time when the smart terminal sends data to the network platform and a second response time when the network platform receives the data and responds to the smart terminal; A model building module obtains the first network status and the second network status in real time, inputs the first data volume, the first network status and the module processing time of the smart terminal into the first model, obtains a first timeout time that is greater than and closest to the first time and a first data retransmission number between the electronic control unit and the smart terminal, and also inputs the second network status, the second data volume of the second target data and the module processing time into the second model, obtains a second timeout time that is greater than and closest to the second time, and a second data retransmission number between the smart terminal and the network platform.
10. A computer storage medium, characterized in that: The computer storage medium stores program instructions, wherein when the program instructions are executed, the device where the computer storage medium is located is controlled to execute the method according to any one of claims 1 to 8.
