CN116506071A - Communication time interval determining method and device - Google Patents

Communication time interval determining method and device Download PDF

Info

Publication number
CN116506071A
CN116506071A CN202310563370.5A CN202310563370A CN116506071A CN 116506071 A CN116506071 A CN 116506071A CN 202310563370 A CN202310563370 A CN 202310563370A CN 116506071 A CN116506071 A CN 116506071A
Authority
CN
China
Prior art keywords
message data
data
interval time
interval
jitter value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310563370.5A
Other languages
Chinese (zh)
Inventor
刘�东
田召广
田淑杭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ceristar Electric Co ltd
MCC Capital Engineering and Research Incorporation Ltd
Original Assignee
Ceristar Electric Co ltd
MCC Capital Engineering and Research Incorporation Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ceristar Electric Co ltd, MCC Capital Engineering and Research Incorporation Ltd filed Critical Ceristar Electric Co ltd
Priority to CN202310563370.5A priority Critical patent/CN116506071A/en
Publication of CN116506071A publication Critical patent/CN116506071A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0036Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0033Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the transmitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a method and a device for determining a communication time interval, and relates to the technical field of mobile communication circuit boards, wherein the method comprises the following steps: acquiring the interval duration of each adjacent data transmission in the historical message data; determining an average interval time jitter value of each historical message data according to the preset interval time length corresponding to each historical message data and the actual interval time length information corresponding to each historical message data; fitting the message length and the average interval time jitter value of each historical message data by adopting an exponential decay method to obtain an interval time jitter value prediction model; inputting the message length of the message data to be received into an interval time jitter value prediction model to obtain an interval time jitter value corresponding to the message data to be received; and determining a communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data of the message to be received. The invention can adjust the communication time interval in time according to the communication condition between the circuit boards.

Description

Communication time interval determining method and device
Technical Field
The present invention relates to the field of mobile communication circuit board technologies, and in particular, to a method and an apparatus for determining a communication time interval.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
When the existing circuit boards communicate with each other, a communication time interval is required to be preset, and message messaging is carried out according to the preset time interval. For example, the circuit board 1 communicates with the circuit board 2, and after receiving data, the circuit board 2 immediately starts DMA data transmission, and transmits the received data to the memory for buffering, and simultaneously starts a Timer1 as a watchdog for data transmission of the present communication messages T and R, so as to monitor whether the present data communication has overtime. The Timeout time Timeout1 of the timer1 is determined according to the baud rate B, the single-time data transmission length Bit and the transmission interval delay of the circuit board 1, and the calculation method is as follows: timeout1 = 1.1 (Bit/B+sleep) +T_offset in seconds. Wherein t_offset is the clock period of the machine inside the circuit board 2, and represents the minimum period of single-step operation of the chip inside the circuit board. The circuit board 1 receives data while transmitting data each time, and then sleeps for delay time, and starts the next data transmission again. The interval time of the adjacent 2 data communication messages R causes time variation of program task processing and the like due to timing deviation, so that the circuit board 2 cannot accurately predict the arrival time of data, and the problems of data preparation, data communication slowing and the like occur.
Disclosure of Invention
The embodiment of the invention provides a communication time interval determining method, which is used for timely adjusting the communication time interval according to the communication condition between circuit boards, ensuring the normal transmission of message data between the circuit boards and improving the flexibility of the communication mode between the circuit boards, and comprises the following steps:
acquiring actual interval duration information corresponding to historical message data with different message lengths according to a timer of the circuit board; the actual interval duration information comprises: the interval duration of each adjacent data transmission in the historical message data;
determining an interval time jitter value of each adjacent data transmission in each historical message data according to a preset interval time length corresponding to each historical message data and actual interval time length information corresponding to each historical message data; the preset interval duration corresponding to each historical message data is the timeout duration of a preset timer of the circuit board;
determining an average interval time jitter value of each historical message data according to the interval time jitter value of each adjacent data transmission in each historical message data and the message length of each historical message data;
fitting the message length of each historical message data and the average interval time jitter value by adopting an exponential decay method to obtain an interval time jitter value prediction model;
inputting the message length of the message data to be received into an interval time jitter value prediction model to obtain an interval time jitter value corresponding to the message data to be received;
and determining a communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data of the message to be received.
The embodiment of the invention also provides a communication time interval determining device, which is used for timely adjusting the communication time interval according to the communication condition between the circuit boards, ensuring the normal transmission of message data between the circuit boards and improving the flexibility of the communication mode between the circuit boards, and comprises the following steps:
the acquisition module is used for acquiring actual interval duration information corresponding to historical message data with different message lengths according to the timer of the circuit board; the actual interval duration information comprises: the interval duration of each adjacent data transmission in the historical message data;
the first processing module is used for determining the interval time jitter value of each adjacent data transmission in each historical message data according to the preset interval time length corresponding to each historical message data and the actual interval time length information corresponding to each historical message data; the preset interval duration corresponding to each historical message data is the timeout duration of a preset timer of the circuit board;
the second processing module is used for determining the average interval time jitter value of each historical message data according to the interval time jitter value of each adjacent data transmission in each historical message data and the message length of each historical message data;
the third processing module is used for fitting the message length of each historical message data and the average interval time jitter value by adopting an exponential decay method to obtain an interval time jitter value prediction model;
the fourth processing module is used for inputting the message length of the message data to be received into the interval time jitter value prediction model to obtain an interval time jitter value corresponding to the message data to be received;
and the fifth processing module is used for determining a communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data of the message to be received.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the communication time interval determining method when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the communication time interval determining method when being executed by a processor.
The embodiment of the invention also provides a computer program product, which comprises a computer program, wherein the computer program is executed by a processor to realize the communication time interval determining method.
According to the embodiment of the invention, according to the timer of the circuit board, the actual interval duration information corresponding to the historical message data with different message lengths is obtained; the actual interval duration information comprises: the interval duration of each adjacent data transmission in the historical message data; determining an interval time jitter value of each adjacent data transmission in each historical message data according to a preset interval time length corresponding to each historical message data and actual interval time length information corresponding to each historical message data; the preset interval duration corresponding to each historical message data is the timeout duration of a preset timer of the circuit board; determining an average interval time jitter value of each historical message data according to the interval time jitter value of each adjacent data transmission in each historical message data and the message length of each historical message data; fitting the message length of each historical message data and the average interval time jitter value by adopting an exponential decay method to obtain an interval time jitter value prediction model; inputting the message length of the message data to be received into an interval time jitter value prediction model to obtain an interval time jitter value corresponding to the message data to be received; and determining a communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data of the message to be received. Therefore, the communication time interval can be timely adjusted according to the length of the transmission messages between the circuit boards, normal transmission of message data between the circuit boards is ensured, and the flexibility of the communication mode between the circuit boards is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a flowchart of a communication time interval determining method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for determining an average interval time jitter value of each historical packet data according to an interval time jitter value of each adjacent data transmission in each historical packet data and a packet length of each historical packet data according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a variation relationship between a message length and an average interval time jitter value according to an embodiment of the present invention;
FIG. 4 is an exemplary graph of an exponential function fit curve of a message length and an average interval time jitter value of historical message data provided in an embodiment of the present invention;
fig. 5 is a schematic diagram of a communication time interval determining apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention.
The data acquisition, storage, use, processing and the like in the technical scheme meet the relevant regulations of national laws and regulations.
The term "and/or" is used herein to describe only one relationship, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist together, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
In the description of the present specification, the terms "comprising," "including," "having," "containing," and the like are open-ended terms, meaning including, but not limited to. Reference to the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The sequence of steps involved in the embodiments is used to schematically illustrate the practice of the present application, and is not limited thereto and may be appropriately adjusted as desired.
It is found that when the circuit boards communicate with each other, a predetermined time interval is required for communication, and the message is sent and received according to the predetermined time interval. For example, the circuit board 1 communicates with the circuit board 2, and after receiving data, the circuit board 2 immediately starts DMA data transmission, and transmits the received data to the memory for buffering, and simultaneously starts a Timer1 as a watchdog for data transmission of the present communication messages T and R, so as to monitor whether the present data communication has overtime. The Timeout time Timeout1 of the timer1 is determined according to the baud rate B, the single-time data transmission length Bit and the transmission interval delay of the circuit board 1, and the calculation method is as follows: timeout1 = 1.1 (Bit/B+sleep) +T_offset in seconds. Wherein t_offset is the clock period of the machine inside the circuit board 2, and represents the minimum period of single-step operation of the chip inside the circuit board. The circuit board 1 receives data while transmitting data each time, and then sleeps for delay time, and starts the next data transmission again. The interval time of the adjacent 2 data communication messages R causes time variation of program task processing and the like due to timing deviation, so that the circuit board 2 cannot accurately predict the arrival time of data, and the problems of data preparation, data communication slowing and the like occur.
For the above study, as shown in fig. 1, an embodiment of the present invention provides a method for determining a communication time interval, including:
s101: acquiring actual interval duration information corresponding to historical message data with different message lengths according to a timer of the circuit board; the actual interval duration information comprises: the interval duration of each adjacent data transmission in the historical message data;
s102: determining an interval time jitter value of each adjacent data transmission in each historical message data according to a preset interval time length corresponding to each historical message data and actual interval time length information corresponding to each historical message data; the preset interval duration corresponding to each historical message data is the timeout duration of a preset timer of the circuit board;
s103: determining an average interval time jitter value of each historical message data according to the interval time jitter value of each adjacent data transmission in each historical message data and the message length of each historical message data;
s104: fitting the message length of each historical message data and the average interval time jitter value by adopting an exponential decay method to obtain an interval time jitter value prediction model;
s105: inputting the message length of the message data to be received into an interval time jitter value prediction model to obtain an interval time jitter value corresponding to the message data to be received;
s106: and determining a communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data of the message to be received.
According to the embodiment of the invention, according to the timer of the circuit board, the actual interval duration information corresponding to the historical message data with different message lengths is obtained; the actual interval duration information comprises: the interval duration of each adjacent data transmission in the historical message data; determining an interval time jitter value of each adjacent data transmission in each historical message data according to a preset interval time length corresponding to each historical message data and actual interval time length information corresponding to each historical message data; the preset interval duration corresponding to each historical message data is the timeout duration of a preset timer of the circuit board; determining an average interval time jitter value of each historical message data according to the interval time jitter value of each adjacent data transmission in each historical message data and the message length of each historical message data; fitting the message length of each historical message data and the average interval time jitter value by adopting an exponential decay method to obtain an interval time jitter value prediction model; inputting the message length of the message data to be received into an interval time jitter value prediction model to obtain an interval time jitter value corresponding to the message data to be received; and determining a communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data of the message to be received. Therefore, the communication time interval can be timely adjusted according to the length of the transmission messages between the circuit boards, normal transmission of message data between the circuit boards is ensured, and the flexibility of the communication mode between the circuit boards is improved.
The above-described communication time interval determination method will be described in detail.
For S101, the lengths of the message data transmitted between the circuit boards may be different, and the data included in each message data includes, for example: when transmitting message data between circuit boards, the message header identifier is transmitted first, then the message length is transmitted, then the message content of the message length is transmitted, and finally the check code is transmitted. After receiving one data in the message data, the circuit board immediately starts DMA data transmission, transmits the received data to the memory for buffering, and simultaneously starts a timer as a watchdog of the data transmission of the message data, and is used for monitoring whether overtime occurs in the data communication.
Specifically, each adjacent data transmission in the message data will be separated by a certain period of time, for example, because the SPI belongs to a full duplex synchronous serial communication method, when the circuit board 1 and the circuit board 2 adopt SPI communication, the sender sends the first 16-bit data (i.e. 2 bytes or 1 word) in the message data, and the receiver feeds back a 16-bit data synchronously when receiving the data. Therefore, after the circuit board 2 receives the message header identifier, a piece of data is fed back immediately, but the data has no meaning, after the circuit board 2 reacts for a certain time, a piece of feedback data indicating that the message header identifier has been received is fed back to the circuit board 1 according to the message header identifier, and the time between the time when the message header identifier is received (i.e. the time when the invalid data is fed back) and the time when the feedback data is sent is the time length of the transmission interval of the adjacent data in the message data.
In order to better determine the communication interval duration between two communication circuit boards, acquiring actual interval duration information corresponding to historical message data with different message lengths between two communication circuit boards from any one of the two communication circuit boards; the actual interval duration information comprises: the time duration of each adjacent data transmission interval in the historical message data.
For S102, the preset interval duration corresponding to each history packet data is the timeout duration of the timer of the preset circuit board.
In an embodiment of the present invention, determining an interval time jitter value of each adjacent data transmission in each historical packet data according to a preset interval time length corresponding to each historical packet data and actual interval time length information corresponding to each historical packet data includes: and subtracting the interval duration of each adjacent data transmission in the historical message data by adopting the preset interval duration corresponding to the historical message data aiming at each historical message data to obtain the interval time jitter value of each adjacent data transmission in the historical message data.
For example, the Timer1 of the circuit board records the interval duration sleep of 2 adjacent data transmissions, and before the Timer is started for the second time, the actual count value TimeStill of the Timer1 is read, and the Timeout value Timeout1 of the Timer1 is used to subtract TimeStill, which is the jitter value Ti of the interval duration.
For S103, as shown in fig. 2, a flowchart of a method for determining an average interval time jitter value of each historical packet data according to an interval time jitter value of each adjacent data transmission in each historical packet data and a packet length of each historical packet data according to an embodiment of the present invention is provided, where the method includes: for each historical message data:
s201: and determining the interval time data quantity corresponding to the historical message data according to the length of the historical message data.
For example, the historical message data transmitted by the circuit board comprises data R1-Rm, and the SPI communication interval time jitter between the transmission messages R1 and R2 is T1; the SPI communication interval time jitter between the transmission messages R2 and R3 is T2, and the like, m-1 communication interval jitter is recorded in total.
S202: and adding the interval time jitter values of each adjacent data transmission in the historical message data to obtain the sum of the interval time jitter values of the historical message data.
S203: dividing the sum of the interval time jitter values of the historical message data by the interval time data quantity corresponding to the historical message data to obtain the average interval time jitter value of the historical message data.
For example, as shown in table 1, an exemplary table of the relationship between the message length and the average interval time jitter value of the historical message data is provided in the embodiment of the present invention:
TABLE 1
For the above S104, fitting the message length of each historical message data and the average interval time jitter value by using an exponential decay method to obtain an interval time jitter value prediction model, including:
fitting the following exponential functions according to the message length of each historical message data and the average interval time jitter value to obtain model parameters of an interval time jitter value prediction model, and obtaining the interval time jitter value prediction model according to the model parameters of the interval time jitter value prediction model:
wherein T is an average interval time jitter value corresponding to the historical message data, and n is a message length corresponding to the historical message data, and k and τ are model parameters of an interval time jitter value prediction model.
Specifically, as shown in fig. 3, the horizontal axis represents the report Wen Changdu n, the vertical axis represents the average interval time jitter value T, the communication interval time jitter value T (i) increases gradually as the message length n increases, the average interval time jitter value T of the interval time jitter value T (i) decreases gradually as n increases, and the key parameters k and τ of the communication interval are identified by fitting with an exponential decay method.
Using standard exponential functionsThe function curve is shown in fig. 4, and the time T ranges from 0.001 to 10, so as to estimate the value of the exponential function T at the time 0, and the correct standard value is 1.
In practical situations, all attenuation process data, even about 10 times of attenuation time curve, cannot be obtained, so that a section of continuous attenuation process, about 3 times of attenuation time, is adopted in the exponential regression process to simulate the practical situations. The 3-fold decay time is considered because the function value has decayed to 5% of the initial value within the initial 3-fold decay time, satisfying the international standard principle of 3 sigma.
The purpose of exponential regression is to identifyTime-based, the aim is to identify parameters before->The absolute value of the error from the actual value Y is the smallest and the fit thus obtained is the closest. In the actual process, the actual value N and the time T both have interference and jitter, the fitting error is caused, and the effect is consistent. Only the correct time is considered, and the analog measurement is interfered; on one hand, the time reference crystal oscillator of the DSP is considered to be higher, so that the time deviation is small; on the other hand, the deviation is larger in consideration of the error percentage of the analog measurement value compared with time. Under the condition that no interference signal is added, analyzing data of the first 3 seconds, and fitting by using a least square method, wherein the obtained fitting parameters are completely standard exponential functions without any deviation; the final 3 seconds of data was analyzed and fitted using the least squares method, again reproducing the standard exponential function. Here, it is relatively close to mathematical analysis, so that no numerical algorithm is commonly foundComputer truncation errors occur. Adding 0.5% of random noise signals, analyzing the first 3 seconds of data and the last 3 seconds of data again, then performing least square fitting, performing exponential regression on the moment 0 by using estimated parameters, and performing comparison error analysis with a standard value. The first 3 seconds of data processing results are: y0 is0.995173; distis 0.482739%. The last 3 seconds data processing result is: y0 is 0.007747; distis 99.225281%.
The actual simulation result verifies the original theoretical analysis, the same analog quantity interferes signals, the small signal interference is obvious, and the resulting exponential regression deviation is very large, which is far beyond the acceptance range; the same analog interference signal has small interference to the algorithm aiming at the exponential regression algorithm, and the accuracy of the data estimation result is high.
For the above S105, when the circuit board receives the message length of the message data to be received, the message length L of the message data to be received is input into the following trained interval time jitter value prediction model:
the training of k and τ in S104 is performed to calculate the interval time jitter value T corresponding to the message data to be received according to n=l, which is a model parameter known to the interval time jitter value prediction model.
For S106, determining the communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data to be received, for example, includes: and adding the overtime time of the timer of the circuit board with the interval time jitter value corresponding to the message data to be received to obtain the communication time interval corresponding to the data to be transmitted.
The embodiment of the invention also provides a communication time interval determining device, which is described in the following embodiment. Because the principle of the device for solving the problem is similar to that of the communication time interval determining method, the implementation of the device can refer to the implementation of the communication time interval determining method, and the repetition is omitted.
As shown in fig. 5, a schematic diagram of a communication time interval determining apparatus according to an embodiment of the present invention includes: an acquisition module 501, a first processing module 502, a second processing module 503, a third processing module 504, a fourth processing module 505, and a fifth processing module 506; wherein, the liquid crystal display device comprises a liquid crystal display device,
the obtaining module 501 is configured to obtain actual interval duration information corresponding to historical message data with different message lengths according to a timer of the circuit board; the actual interval duration information comprises: the interval duration of each adjacent data transmission in the historical message data;
the first processing module 502 is configured to determine an interval time jitter value of each adjacent data transmission in each historical packet data according to a preset interval duration corresponding to each historical packet data and actual interval duration information corresponding to each historical packet data; the preset interval duration corresponding to each historical message data is the timeout duration of a preset timer of the circuit board;
a second processing module 503, configured to determine an average interval time jitter value of each historical packet data according to the interval time jitter value of each adjacent data transmission in each historical packet data and the packet length of each historical packet data;
a third processing module 504, configured to fit the message length of each historical message data and the average interval time jitter value by using an exponential decay method, so as to obtain an interval time jitter value prediction model;
the fourth processing module 505 is configured to input a message length of the message data to be received into an interval time jitter value prediction model, to obtain an interval time jitter value corresponding to the message data to be received;
and a fifth processing module 506, configured to determine a communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data to be received.
In one possible implementation manner, the first processing module is specifically configured to, for each historical packet data, subtract the interval duration of each adjacent data transmission in the historical packet data from the preset interval duration corresponding to the historical packet data, so as to obtain the interval time jitter value of each adjacent data transmission in the historical packet data.
In one possible implementation manner, the second processing module is specifically configured to, for each historical packet data: determining the interval time data quantity corresponding to the historical message data according to the length of the historical message data; adding the interval time jitter values of each adjacent data transmission in the historical message data to obtain the sum of the interval time jitter values of the historical message data; dividing the sum of the interval time jitter values of the historical message data by the interval time data quantity corresponding to the historical message data to obtain the average interval time jitter value of the historical message data.
In a possible implementation manner, the fourth processing module is specifically configured to fit the following exponential function according to the message length of each historical message data and the average interval time jitter value to obtain a model parameter of the interval time jitter value prediction model, and obtain the interval time jitter value prediction model according to the model parameter of the interval time jitter value prediction model:
wherein T is an average interval time jitter value corresponding to the historical message data, and n is a message length corresponding to the historical message data, and k and τ are model parameters of an interval time jitter value prediction model.
In one possible implementation manner, the fifth processing module is specifically configured to add a timeout duration of a timer of the circuit board to an interval time jitter value corresponding to the message data to be received, so as to obtain a communication time interval corresponding to the data to be transmitted.
Based on the foregoing inventive concept, as shown in fig. 6, the present invention further proposes a computer device 600, including a memory 610, a processor 620, and a computer program 630 stored in the memory 610 and executable on the processor 620, where the processor 620 implements the foregoing communication time interval determining method when executing the computer program 630.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the communication time interval determining method when being executed by a processor.
The embodiment of the invention also provides a computer program product, which comprises a computer program, wherein the computer program is executed by a processor to realize the communication time interval determining method.
According to the embodiment of the invention, according to the timer of the circuit board, the actual interval duration information corresponding to the historical message data with different message lengths is obtained; the actual interval duration information comprises: the interval duration of each adjacent data transmission in the historical message data; determining an interval time jitter value of each adjacent data transmission in each historical message data according to a preset interval time length corresponding to each historical message data and actual interval time length information corresponding to each historical message data; the preset interval duration corresponding to each historical message data is the timeout duration of a preset timer of the circuit board; determining an average interval time jitter value of each historical message data according to the interval time jitter value of each adjacent data transmission in each historical message data and the message length of each historical message data; fitting the message length of each historical message data and the average interval time jitter value by adopting an exponential decay method to obtain an interval time jitter value prediction model; inputting the message length of the message data to be received into an interval time jitter value prediction model to obtain an interval time jitter value corresponding to the message data to be received; and determining a communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data of the message to be received. Therefore, the communication time interval can be timely adjusted according to the length of the transmission messages between the circuit boards, normal transmission of message data between the circuit boards is ensured, and the flexibility of the communication mode between the circuit boards is improved.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (13)

1. A method for determining a communication time interval, comprising:
acquiring actual interval duration information corresponding to historical message data with different message lengths according to a timer of the circuit board; the actual interval duration information comprises: the interval duration of each adjacent data transmission in the historical message data;
determining an interval time jitter value of each adjacent data transmission in each historical message data according to a preset interval time length corresponding to each historical message data and actual interval time length information corresponding to each historical message data; the preset interval duration corresponding to each historical message data is the timeout duration of a preset timer of the circuit board;
determining an average interval time jitter value of each historical message data according to the interval time jitter value of each adjacent data transmission in each historical message data and the message length of each historical message data;
fitting the message length of each historical message data and the average interval time jitter value by adopting an exponential decay method to obtain an interval time jitter value prediction model;
inputting the message length of the message data to be received into an interval time jitter value prediction model to obtain an interval time jitter value corresponding to the message data to be received;
and determining a communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data of the message to be received.
2. The communication time interval determining method as claimed in claim 1, wherein determining the interval time jitter value of each adjacent data transmission in each history message data according to the preset interval time length corresponding to each history message data and the actual interval time length information corresponding to each history message data comprises:
and subtracting the interval duration of each adjacent data transmission in the historical message data by adopting the preset interval duration corresponding to the historical message data aiming at each historical message data to obtain the interval time jitter value of each adjacent data transmission in the historical message data.
3. The communication time interval determining method as claimed in claim 1, wherein determining the average interval time jitter value of each history message data based on the interval time jitter value of each adjacent data transmission in each history message data and the message length of each history message data, comprises:
for each historical message data:
determining the interval time data quantity corresponding to the historical message data according to the length of the historical message data;
adding the interval time jitter values of each adjacent data transmission in the historical message data to obtain the sum of the interval time jitter values of the historical message data;
dividing the sum of the interval time jitter values of the historical message data by the interval time data quantity corresponding to the historical message data to obtain the average interval time jitter value of the historical message data.
4. The communication time interval determining method as claimed in claim 1, wherein fitting the message length of each historical message data and the average interval time jitter value by using an exponential decay method to obtain an interval time jitter value prediction model comprises:
fitting the following exponential functions according to the message length of each historical message data and the average interval time jitter value to obtain model parameters of an interval time jitter value prediction model, and obtaining the interval time jitter value prediction model according to the model parameters of the interval time jitter value prediction model:
wherein T is an average interval time jitter value corresponding to the historical message data, and n is a message length corresponding to the historical message data, and k and τ are model parameters of an interval time jitter value prediction model.
5. The communication time interval determining method as claimed in claim 1, wherein determining the communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data to be received comprises:
and adding the overtime time of the timer of the circuit board with the interval time jitter value corresponding to the message data to be received to obtain the communication time interval corresponding to the data to be transmitted.
6. A communication time interval determining apparatus, comprising:
the acquisition module is used for acquiring actual interval duration information corresponding to historical message data with different message lengths according to the timer of the circuit board; the actual interval duration information comprises: the interval duration of each adjacent data transmission in the historical message data;
the first processing module is used for determining the interval time jitter value of each adjacent data transmission in each historical message data according to the preset interval time length corresponding to each historical message data and the actual interval time length information corresponding to each historical message data; the preset interval duration corresponding to each historical message data is the timeout duration of a preset timer of the circuit board;
the second processing module is used for determining the average interval time jitter value of each historical message data according to the interval time jitter value of each adjacent data transmission in each historical message data and the message length of each historical message data;
the third processing module is used for fitting the message length of each historical message data and the average interval time jitter value by adopting an exponential decay method to obtain an interval time jitter value prediction model;
the fourth processing module is used for inputting the message length of the message data to be received into the interval time jitter value prediction model to obtain an interval time jitter value corresponding to the message data to be received;
and the fifth processing module is used for determining a communication time interval corresponding to the data to be transmitted according to the interval time jitter value corresponding to the data of the message to be received.
7. The communication time interval determining apparatus according to claim 6, wherein the first processing module is specifically configured to, for each historical packet data, subtract the interval duration of each adjacent data transmission in the historical packet data from the preset interval duration corresponding to the historical packet data, to obtain the interval time jitter value of each adjacent data transmission in the historical packet data.
8. The communication time interval determining apparatus according to claim 6, wherein the second processing module is specifically configured to, for each historical message data:
determining the interval time data quantity corresponding to the historical message data according to the length of the historical message data;
adding the interval time jitter values of each adjacent data transmission in the historical message data to obtain the sum of the interval time jitter values of the historical message data;
dividing the sum of the interval time jitter values of the historical message data by the interval time data quantity corresponding to the historical message data to obtain the average interval time jitter value of the historical message data.
9. The communication time interval determining apparatus according to claim 6, wherein the fourth processing module is specifically configured to fit the following exponential function according to the message length of each historical message data and the average interval time jitter value to obtain model parameters of the interval time jitter value prediction model, and obtain the interval time jitter value prediction model according to the model parameters of the interval time jitter value prediction model:
wherein T is an average interval time jitter value corresponding to the historical message data, and n is a message length corresponding to the historical message data, and k and τ are model parameters of an interval time jitter value prediction model.
10. The communication time interval determining apparatus according to claim 6, wherein the fifth processing module is specifically configured to add a timeout duration of a timer of the circuit board to an interval time jitter value corresponding to the message data to be received, to obtain a communication time interval corresponding to the data to be transmitted.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 5 when executing the computer program.
12. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 1 to 5.
13. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the method of any of claims 1 to 5.
CN202310563370.5A 2023-05-18 2023-05-18 Communication time interval determining method and device Pending CN116506071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310563370.5A CN116506071A (en) 2023-05-18 2023-05-18 Communication time interval determining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310563370.5A CN116506071A (en) 2023-05-18 2023-05-18 Communication time interval determining method and device

Publications (1)

Publication Number Publication Date
CN116506071A true CN116506071A (en) 2023-07-28

Family

ID=87326624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310563370.5A Pending CN116506071A (en) 2023-05-18 2023-05-18 Communication time interval determining method and device

Country Status (1)

Country Link
CN (1) CN116506071A (en)

Similar Documents

Publication Publication Date Title
CN111510345B (en) Method and device for detecting edge node abnormity
CN101309400B (en) Stream media service pause information acquisition method and device
JP2011123885A5 (en)
US7103514B1 (en) Filter turning point detection
JP2011507378A5 (en)
CN106911927B (en) Method and device for evaluating experience quality of network video user and DPI equipment
CN102473341B (en) Data communication system, data communication method, sensor and sensor control device
CA2736072A1 (en) Handheld electronic device and associated method providing time data in a messaging environment
CN110019386A (en) A kind of stream data processing method and equipment
CN113654899B (en) Pressure analysis method, device, equipment and storage medium for conveying pipeline
JP2020507147A (en) Real-time data processing method and apparatus
CN116506071A (en) Communication time interval determining method and device
CN113835626B (en) Method and device for determining usable time length of disk
CN106162577B (en) A kind of information push method and message pushing equipment
CN116757367B (en) Three-dimensional visual power grid operation data analysis system
CN104391275B (en) Underwater acoustic network node mutual distance measurement method based on gamma distribution model
CN106452621B (en) A kind of peak power, the determination method and device of peak to average power ratio
CN114683857B (en) Method for recording actual driving mileage of automobile
RU2639956C1 (en) Method and device for transmitting data for non-synchronized transitions between areas with different clock frequencies
CN104601393B (en) Queueing delay method of estimation and device
CN109614570A (en) Predict the method and device of section water quality parameter data
CN111611186B (en) Transmission control method and device in embedded chip
CN113844499A (en) ATO speed measurement method and system for train automatic driving system
CN106677263B (en) A kind of determination method and system that pipe network is really missed
US8379643B2 (en) Method for controlling transmission speed of multi-cast packets

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination