Method and apparatus for determining communication time intervals
By acquiring historical interval duration information of the circuit board and fitting a model using the exponential decay method, the problem of untimely data preparation caused by timing deviation in circuit board communication was solved, enabling flexible adjustment of communication time intervals and normal data transmission.
Patent Information
- Application Number
- CN202310563370.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-18
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2043-05-18
AI Technical Summary
In the existing technology, communication between circuit boards cannot accurately predict the arrival time of data due to timing deviations and program task processing, resulting in data not being ready and data communication becoming slower.
By obtaining historical interval duration information for different message lengths, the interval jitter value is determined. An interval jitter value prediction model is obtained by fitting the exponential decay method, and the communication time interval is adjusted according to the length of the message to be received.
This technology enables timely adjustment of communication time intervals based on the length of transmission messages between circuit boards, ensuring normal transmission of message data between circuit boards and improving the flexibility of communication methods.
Smart Images

Figure CN116506071B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mobile communication circuit board technology, and in particular to a method and apparatus for determining communication time intervals. Background Technology
[0002] This section is intended to provide background or context for the embodiments of the invention set forth in the claims. The description herein is not an admission that it is prior art simply because it is included in this section.
[0003] When existing circuit boards communicate, a pre-agreed communication time interval is required, and message transmission and reception are performed according to this agreed-upon interval. For example, when circuit board 1 and circuit board 2 communicate, circuit board 2 immediately initiates DMA data transmission upon receiving data, transferring the received data to memory for buffering. Simultaneously, a timer (Timer1) is started as a watchdog timer for the T and R data transmissions of this communication, monitoring whether a timeout occurs during the data communication. The timeout period (Timeout1) of timer 1 is determined based on the baud rate (B) of circuit board 1, the length of a single data transmission (Bit), and the transmission interval delay (sleep), calculated as: Timeout 1 = 1.1 * (Bit / B + sleep) + T_offset, in seconds. Here, T_offset is the internal machine clock cycle of circuit board 2, representing the minimum cycle for a single-step operation of the chip within that circuit board. Circuit board 1 receives data simultaneously with each data transmission, then sleeps for the delay period before starting the next data transmission. The time interval between two adjacent data communication messages R varies due to timing deviations and changes in program task processing, causing circuit board 2 to be unable to accurately predict the data arrival time, resulting in problems such as data not being ready and data communication slowing down. Summary of the Invention
[0004] This invention provides a method for determining communication time intervals, which adjusts the communication time intervals in a timely manner according to the communication status between circuit boards, ensuring the normal transmission of message data between circuit boards and improving the flexibility of communication methods between circuit boards. The method includes:
[0005] Based on the timer on the circuit board, the actual interval duration information corresponding to historical message data of different message lengths is obtained; wherein, the actual interval duration information includes: the interval duration of each adjacent data transmission in the historical message data;
[0006] Based on the preset interval duration corresponding to each historical message data and the actual interval duration information corresponding to each historical message data, the time jitter value of the interval between each adjacent data transmission in each historical message data is determined; wherein, the preset interval duration corresponding to each historical message data is the timeout duration of the timer of the circuit board that is preset.
[0007] determine 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;
[0008] fit the message length of each historical message data and the average interval time jitter value by using the exponential decay method to obtain an interval time jitter value prediction model;
[0009] input the message length of the to-be-received message data into the interval time jitter value prediction model to obtain the interval time jitter value corresponding to the to-be-received message data;
[0010] determine the communication time interval corresponding to the to-be-transmitted data according to the interval time jitter value corresponding to the to-be-received message data.
[0011] The embodiment of the present application also provides a communication time interval determination device for timely adjusting the communication time interval according to the communication condition between circuit boards to ensure the normal transmission of message data between the circuit boards and improve the flexibility of the communication mode between the circuit boards, which comprises:
[0012] an acquisition module for acquiring actual interval duration information corresponding to historical message data of different message lengths according to the timer of the circuit board; wherein the actual interval duration information comprises the interval duration of each adjacent data transmission in the historical message data;
[0013] a first processing module for determining the interval time jitter value of each adjacent data transmission in each historical message data according to the preset interval duration corresponding to each historical message data and the actual interval duration information corresponding to each historical message data; wherein the preset interval duration corresponding to each historical message data is the timeout duration of the timer of the circuit board which is set in advance;
[0014] a second processing module 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;
[0015] a third processing module for fitting the message length of each historical message data and the average interval time jitter value by using the exponential decay method to obtain an interval time jitter value prediction model;
[0016] a fourth processing module for inputting the message length of the to-be-received message data into the interval time jitter value prediction model to obtain the interval time jitter value corresponding to the to-be-received message data;
[0017] a fifth processing module for determining the communication time interval corresponding to the to-be-transmitted data according to the interval time jitter value corresponding to the to-be-received message data.
[0018] The embodiment of the present application further provides a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the communication time interval determination method when executing the computer program.
[0019] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program implements the communication time interval determination method when executed by a processor.
[0020] The embodiment of the present application further provides a computer program product, which comprises a computer program, and the computer program implements the communication time interval determination method when executed by a processor.
[0021] In the embodiment of the present application, the actual interval duration information corresponding to the historical message data of different message lengths is obtained according to the timer of the circuit board; wherein the actual interval duration information comprises: the interval duration of each adjacent data transmission in the historical message data; the interval time jitter value of each adjacent data transmission in each historical message data is determined according to the preset interval duration corresponding to each historical message data and the actual interval duration information corresponding to each historical message data; wherein the preset interval duration corresponding to each historical message data is the timeout duration of the timer of the circuit board; the average interval time jitter value of each historical message data is determined 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 message length and the average interval time jitter value of each historical message data are fitted by using the exponential decay method to obtain an interval time jitter value prediction model; the message length of the to-be-received message data is input into the interval time jitter value prediction model to obtain the interval time jitter value corresponding to the to-be-received message data; and the communication time interval corresponding to the to-be-transmitted data is determined according to the interval time jitter value corresponding to the to-be-received message data. In this way, the communication time interval can be adjusted in time according to the transmission message length between the circuit boards, the normal transmission of message data between the circuit boards is ensured, and the flexibility of the communication mode between the circuit boards is improved. BRIEF DESCRIPTION OF DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor. In the drawings:
[0023] Figure 1 A flow chart of a communication time interval determination method is provided in the embodiment of the present application;
[0024] Figure 2 A flow chart of a method for determining an average interval time jitter value of each historical message data according to an interval time jitter value of each adjacent data transmission in each historical message data and a message length of each historical message data is provided in the embodiments of the present application.
[0025] Figure 3 An example graph of a change relationship between a message length and an average interval time jitter value is provided in the embodiments of the present application.
[0026] Figure 4 An example graph of an exponential function fitting curve of a message length and an average interval time jitter value of historical message data is provided in the embodiments of the present application.
[0027] Figure 5 A schematic diagram of a communication time interval determination device is provided in the embodiments of the present application.
[0028] Figure 6 A schematic diagram of a computer device is provided in the embodiments of the present application. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, further detailed description of the embodiments of the present application will be given below with reference to the accompanying drawings. Herein, the schematic embodiments of the present application and the descriptions thereof are used to explain the present application, but not to limit the present application.
[0030] The acquisition, storage, use, processing and the like of data in the technical solutions of the present application all comply with the relevant provisions of national laws and regulations.
[0031] The term "and / or" herein merely describes an association relationship, which means that there can be three relationships, for example, A and / or B can mean that 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 and C can mean including any one or more elements selected from the set consisting of A, B and C.
[0032] In the description of the specification, "include", "includes", "have", "contains", and the like are open terms, that is, mean to include but not limited to. The description of the terms "one embodiment", "one specific embodiment", "some embodiments", "for example", and the like means that the specific features, structures, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. The order of the steps involved in each embodiment is used to illustrate the implementation of the present application, and the order of the steps is not limited. The order can be adjusted as needed.
[0033] It is found through research that when the circuit boards communicate, the communication time interval needs to be agreed in advance, and the message transmission and reception is carried out according to the agreed time interval. For example, when circuit board 1 and circuit board 2 communicate, circuit board 2 starts DMA data transmission immediately after receiving data each time, and transmits the received data to the memory for buffering, and starts a timer Timer 1 as a watchdog for this time communication message T and R data transmission, for monitoring whether the current data communication is timed out. The timeout time Timeout 1 of the timer 1 is determined according to the baud rate B of the circuit board 1, the single data transmission length Bit, and the transmission interval delay sleep, and the calculation method is: Timeout 1 = 1.1*(Bit / B+sleep)+T_offset, unit: second. Wherein, T_offset is the internal machine clock period of the circuit board 2, which represents the minimum period of the single step running of the internal chip of the circuit board. Circuit board 1 receives data at the same time of sending data each time, and then sleeps for a delay time, and then starts the next data transmission. The interval time of adjacent two data communication messages R changes due to timing deviation, program task processing, etc., which causes the circuit board 2 to be unable to accurately predict the data arrival time, and thus problems such as data not being ready and slow data communication occur.
[0034] In view of the above research, as shown in Figure 1 The embodiment of the present application provides a communication time interval determination method, which comprises:
[0035] S101: According to the timer of the circuit board, the actual interval time information corresponding to the historical message data of different message lengths is obtained; wherein, the actual interval time information includes: the interval time of each adjacent data transmission in the historical message data;
[0036] S102: determining an interval time jitter value of each adjacent data transmission in each historical message data according to a preset interval duration corresponding to each historical message data and actual interval duration information corresponding to each historical message data; wherein the preset interval duration corresponding to each historical message data is a timeout duration of a timer of the circuit board pre-set;
[0037] 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;
[0038] S104: fitting the message length and the average interval time jitter value of each historical message data by using an exponential decay method to obtain an interval time jitter value prediction model;
[0039] S105: inputting the message length of the to-be-received message data into the interval time jitter value prediction model to obtain an interval time jitter value corresponding to the to-be-received message data;
[0040] S106: determining a communication time interval corresponding to the to-be-transmitted data according to the interval time jitter value corresponding to the to-be-received message data.
[0041] In the embodiment of the application, the actual interval duration information corresponding to the historical message data of different message lengths is obtained according to the timer of the circuit board; wherein the actual interval duration information includes: the interval duration of each adjacent data transmission in the historical message data; the interval time jitter value of each adjacent data transmission in each historical message data is determined according to the preset interval duration corresponding to each historical message data and the actual interval duration information corresponding to each historical message data; wherein the preset interval duration corresponding to each historical message data is a timeout duration of a timer of the circuit board pre-set; the average interval time jitter value of each historical message data is determined 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 message length and the average interval time jitter value of each historical message data are fitted by using an exponential decay method to obtain an interval time jitter value prediction model; the message length of the to-be-received message data is input into the interval time jitter value prediction model to obtain an interval time jitter value corresponding to the to-be-received message data; and a communication time interval corresponding to the to-be-transmitted data is determined according to the interval time jitter value corresponding to the to-be-received message data. In this way, the communication time interval can be adjusted in time according to the transmission message length between the circuit boards, the normal transmission of message data between the circuit boards is ensured, and the flexibility of the communication mode between the circuit boards is improved.
[0042] The communication time interval determination method is described in detail below.
[0043] For the above S101, the message data length transmitted between the circuit boards can be different, and each message data includes data such as message header identification, message length, message content, and check code. When transmitting the message data between the circuit boards, the message header identification 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 the circuit board receives one of the message data, the DMA data transmission is started immediately to transmit the received data to the memory for buffering, and a timer is started at the same time as the watchdog of the data transmission of the message data for monitoring whether the data communication is timed out.
[0044] Specifically, each adjacent data transmission in the message data is separated by a certain time length. For example, since SPI belongs to a full-duplex synchronous serial communication method, when the circuit board 1 and the circuit board 2 use SPI communication, the sender transmits 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 at the same time when receiving the data. Therefore, the circuit board 2 feeds back a data immediately after receiving the message header identification, but the data has no meaning. After a certain time, the circuit board 2 feeds back another feedback data to the circuit board 1 to indicate that the message header identification has been received. The time length between the time when the message header identification is received (i.e. the time when the invalid data is fed back) and the time when the feedback data is transmitted is the time length of the adjacent data transmission in the message data.
[0045] In order to better determine the communication interval time length between the two circuit boards in communication, the actual interval time length information corresponding to the historical message data of different message lengths between the two circuit boards in communication needs to be obtained from any one of the two circuit boards in communication. The actual interval time length information includes the interval time length of each adjacent data transmission in the historical message data.
[0046] For the above S102, the preset interval time length corresponding to each historical message data is the timeout time length of the timer of the circuit board.
[0047] In an embodiment of the present application, the interval time jitter value of each adjacent data transmission in each historical message data is determined 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. For example, for each historical message data, the interval time jitter value of each adjacent data transmission in the historical message data is obtained by subtracting the interval time length of each adjacent data transmission in the historical message data from the preset interval time length corresponding to the historical message data.
[0048] For example, the timer Timer1 of the circuit board records the interval time sleep of the adjacent two data transmissions, before starting the timer for the second time, the actual timer count value TimeStill of Timer1 is read, and the jitter value Ti of the interval time of this time is obtained by subtracting TimeStill from the timeout time Timeout1 of Timer1.
[0049] For the above S103, as shown in the method flowchart provided by the embodiment of the application 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, comprising: Figure 2
[0050] S201: determining the interval time data quantity corresponding to the historical message data according to the historical message data length.
[0051] For example, the historical message data transmitted by the circuit board includes data R1-Rm, 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 so on, and then a total of m-1 communication interval jitters are recorded.
[0052] S202: adding the interval time jitter value of each adjacent data transmission in the historical message data to obtain the interval time jitter value sum of the historical message data.
[0053] S203: dividing the interval time jitter value sum 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.
[0054] For example, as shown in Table 1, the relationship between the message length of the historical message data and the average interval time jitter value is provided as an example table by the embodiment of the application.
[0055] Table 1
[0056]
[0057]
[0058] For the above S104, the message length and the average interval time jitter value of each historical message data are fitted by using the exponential decay method to obtain the interval time jitter value prediction model, comprising:
[0059] According to the message length of each historical message data and the average interval time jitter value, an exponential function is fitted to obtain the model parameters of the interval time jitter value prediction model, and the interval time jitter value prediction model is obtained according to the model parameters of the interval time jitter value prediction model:
[0060]
[0061] Wherein, T is the average interval time jitter value corresponding to the historical message data, n is the message length corresponding to the historical message data, k and τ are the model parameters of the interval time jitter value prediction model.
[0062] Specifically, as shown in Figure 3 The horizontal axis represents the message length n, and the vertical axis represents the average interval time jitter value T. As the message length n increases, the communication interval time jitter value T(i) gradually increases, and the average interval time jitter value T of the interval time jitter value T(i) gradually decreases with the increase of n. The exponential decay method is used for fitting to identify the key parameters k and τ of the communication time interval.
[0063] The standard exponential function The function curve is shown in Figure 4 The time t ranges from 0.001 to 10, and the purpose is to estimate the value of the exponential function T at 0 time. The correct standard value is 1.
[0064] In actual situations, it is impossible to obtain all the decay process data, or even a decay time curve of about 10 times. Therefore, in the exponential regression process, a continuous decay process of about 3 times the decay time is also used to simulate the actual situation. Considering the 3 times decay time, because the function value has decayed to 5% of the initial value within the initial 3 times decay time, it meets the international standard principle of 3 sigma.
[0065] The purpose of the exponential regression is to identify The time is taken as the reference, and the purpose is to identify the parameters after The error absolute value of the actual value Y is minimum, so the fitting is closest. In actual process, both the actual value N and the time T will be disturbed, and both will have jitter, which will cause fitting error and consistent effect. Only the time is considered correct here, and the analog measurement value is disturbed; on the one hand, the time reference crystal of the DSP is relatively high, so the time deviation is small; on the other hand, the error percentage of the analog measurement value is relatively large compared with the time. Without adding a disturbance signal, the data of the first 3 seconds is analyzed, and the fitting parameters obtained by using the least square method are completely standard exponential functions without any deviation; the last 3 seconds of data is analyzed, and the least square method is used for fitting, which also reproduces the standard exponential function. Here, it is close to mathematical analysis, so there is no computer truncation error commonly seen in numerical algorithms. Add a 0.5% random noise signal, analyze the first 3 seconds of data and the last 3 seconds of data again, and then perform least square fitting, use the estimated parameters to perform exponential regression at time 0, and compare with the standard value to analyze the error. The processing result of the first 3 seconds of data is: y0 is 0.995173; dist is 0.482739%. The processing result of the last 3 seconds of data is: y0 is 0.007747; dist is 99.225281%.
[0066] The actual simulation result verifies the original theoretical analysis. The same analog quantity disturbance signal has obvious interference on the small signal, resulting in a very large exponential regression deviation, which far exceeds the acceptable range; and the same analog quantity disturbance signal has little interference on the algorithm, and the data estimation result is very accurate.
[0067] For the above S105, when the circuit board receives the message length of the to-be-received message data, the message length L of the to-be-received message data is input into the following trained interval time jitter value prediction model:
[0068]
[0069] Wherein, k, and τ are model parameters known to the interval time jitter value prediction model through the training of the above S104, and n=L is used to calculate the interval time jitter value T corresponding to the to-be-received message data.
[0070] For the above S106, according to the interval time jitter value corresponding to the to-be-received message data, the communication time interval corresponding to the to-be-transmitted data is determined, for example, including: adding the timeout length of the timer of the circuit board to the interval time jitter value corresponding to the to-be-received message data to obtain the communication time interval corresponding to the to-be-transmitted data.
[0071] This invention also provides a communication time interval determination device, as described in the following embodiments. Since the principle by which this device solves the problem is similar to that of the communication time interval determination method, the implementation of this device can refer to the implementation of the communication time interval determination method; repeated details will not be elaborated further.
[0072] like Figure 5 The diagram shown is a schematic representation of a communication time interval determination device provided in an embodiment of the present invention, comprising: 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,
[0073] The acquisition module 501 is used to acquire the actual interval duration information corresponding to historical message data of different message lengths according to the timer of the circuit board; wherein, the actual interval duration information includes: the interval duration of each adjacent data transmission in the historical message data;
[0074] The first processing module 502 is used to determine the time jitter value of each adjacent data transmission interval in each historical data according to the preset interval duration corresponding to each historical data and the actual interval duration information corresponding to each historical data; wherein, the preset interval duration corresponding to each historical data is the timeout duration of the timer of the circuit board that is preset.
[0075] The second processing module 503 is used to determine the average interval jitter value of each historical message data based on the interval jitter value of each adjacent data transmission in each historical message data and the message length of each historical message data.
[0076] The third processing module 504 is used to fit the message length and average interval jitter value of each historical message data using the exponential decay method to obtain an interval jitter value prediction model.
[0077] The fourth processing module 505 is used to input the message length of the message data to be received into the interval jitter value prediction model to obtain the interval jitter value corresponding to the message data to be received.
[0078] The fifth processing module 506 is used to determine the communication time interval corresponding to the data to be transmitted based on the jitter value of the interval time corresponding to the message data to be received.
[0079] In one possible implementation, the first processing module is specifically used to, for each historical message data, subtract the interval duration of each adjacent data transmission in the historical message data from the preset interval duration corresponding to the historical message data to obtain the interval jitter value of each adjacent data transmission in the historical message data.
[0080] In a possible implementation, the second processing module is specifically configured to, for each historical message data: determine an interval time data amount corresponding to the historical message data according to a length of the historical message data; add interval time jitter values of each adjacent data transmission to obtain a total interval time jitter value of the historical message data; and obtain an average interval time jitter value of the historical message data by dividing the total interval time jitter value of the historical message data by the interval time data amount corresponding to the historical message data.
[0081] In a possible implementation, the fourth processing module is specifically configured to: obtain model parameters of an interval time jitter value prediction model by fitting an exponential function according to a message length of each historical message data and the average interval time jitter value, and obtain the interval time jitter value prediction model according to the model parameters of the interval time jitter value prediction model.
[0082]
[0083] wherein T is the average interval time jitter value corresponding to the historical message data, n is the message length corresponding to the historical message data, k and τ are the model parameters of the interval time jitter value prediction model.
[0084] In a possible implementation, the fifth processing module is specifically configured to: add a timeout duration of a timer of a circuit board to an interval time jitter value corresponding to the to-be-received message data to obtain a communication time interval corresponding to the to-be-transmitted data.
[0085] Based on the foregoing inventive concept, as shown in Figure 6 The present application also provides a computer device 600, which comprises a memory 610, a processor 620, and a computer program 630 stored in the memory 610 and capable of running on the processor 620, wherein the processor 620 implements the foregoing communication time interval determination method when implementing the computer program 630.
[0086] The present application also provides a computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the foregoing communication time interval determination method.
[0087] The present application also provides a computer program product, which comprises a computer program, wherein the computer program is executed by a processor to implement the foregoing communication time interval determination method.
[0088] In the embodiment of the present application, the actual interval duration information corresponding to the historical message data of different message lengths is obtained according to the timer of the circuit board; wherein, the actual interval duration information comprises: interval duration of each adjacent data transmission in the historical message data; the interval time jitter value of each adjacent data transmission in each historical message data is determined according to the preset interval duration corresponding to each historical message data and the actual interval duration information corresponding to each historical message data; wherein, the preset interval duration corresponding to each historical message data is the timeout duration of the timer of the circuit board; the average interval time jitter value of each historical message data is determined 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 message length and the average interval time jitter value of each historical message data are fitted by using the exponential decay method to obtain an interval time jitter value prediction model; the message length of the to-be-received message data is input into the interval time jitter value prediction model to obtain the interval time jitter value corresponding to the to-be-received message data; and the communication time interval corresponding to the to-be-transmitted data is determined according to the interval time jitter value corresponding to the to-be-received message data. In this way, the communication time interval can be adjusted in time according to the transmission message length between the circuit boards, the normal transmission of the message data between the circuit boards is ensured, and the flexibility of the communication mode between the circuit boards is improved.
[0089] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0090] The present application is described with reference to flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one flow or multiple flows and / or blocks Figure 1 The means for performing the functions specified in one block or multiple blocks.
[0091] These computer program instructions can 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 instructions which implement the flow Figure 1 The functions of a flow or multiple flows and / or a block or multiple blocks in conjunction with the disclosed aspects can be implemented on practitioners' computers in an interactive mode or in a batch mode. Figure 1
[0092] These computer program instructions can 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 flow Figure 1 The functions of a flow or multiple flows and / or a block or multiple blocks in conjunction with the disclosed aspects can be implemented on practitioners' computers in an interactive mode or in a batch mode. Figure 1
[0093] The above detailed description merely describes specific embodiments of the application, and the purpose of the above detailed description is to further illustrate the principles of the application, technical solutions and beneficial effects. It should be understood that the above detailed description is only a specific embodiment of the application and is not intended to limit the protection scope of the application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application should be included in the protection scope of the application.
Claims
1. A method for determining a communication time interval, characterized in that, include: Based on the timer on the circuit board, the actual interval duration information corresponding to historical message data of different message lengths is obtained; wherein, the actual interval duration information includes: the interval duration of each adjacent data transmission in the historical message data; Based on the preset interval duration corresponding to each historical message data and the actual interval duration information corresponding to each historical message data, the time jitter value of the interval between each adjacent data transmission in each historical message data is determined; wherein, the preset interval duration corresponding to each historical message data is the timeout duration of the timer of the circuit board that is preset. The average interval jitter value of each historical message is determined based on the jitter value of the interval between each adjacent data transmission in each historical message and the message length of each historical message. The exponential decay method was used to fit the message length and average interval jitter value of each historical message data to obtain the interval jitter value prediction model. The message length of the message data to be received is input into the interval jitter value prediction model to obtain the interval jitter value corresponding to the message data to be received. The communication time interval corresponding to the data to be transmitted is determined based on the jitter value of the interval time corresponding to the data to be received. Specifically, the exponential decay method is used to fit the message length and average interval jitter value of each historical message data to obtain the interval jitter value prediction model, including: The following exponential function is fitted based on the message length of each historical message and the average interval jitter value to obtain the model parameters of the interval jitter value prediction model. Based on these model parameters, the interval jitter value prediction model is obtained: Where T is the average interval jitter value corresponding to the historical message data, n is the message length corresponding to the historical message data, and k and τ are the model parameters of the interval jitter value prediction model, where a 3x decay time is used in the exponential regression process.
2. The communication time interval determination method as described in claim 1, characterized in that, Based on the preset interval duration corresponding to each historical message data and the actual interval duration information corresponding to each historical message data, determine the time jitter value of the interval between each adjacent data transmission in each historical message data, including: For each historical message, the jitter value of the interval between adjacent data transmissions in the historical message is obtained by subtracting the interval between the preset interval corresponding to the historical message from the interval between adjacent data transmissions.
3. The communication time interval determination method as described in claim 1, characterized in that, Based on the jitter value of the interval between adjacent data transmissions in each historical message and the message length of each historical message, the average jitter value of the interval between data transmissions is determined, including: For each historical message data: Determine the amount of data at the corresponding interval based on the length of the historical message data; The jitter values of the interval between each adjacent data transmission in the historical message data are added together to obtain the total jitter value of the interval between historical message data. The average interval jitter value of historical message data is obtained by dividing the sum of the interval jitter values of historical message data by the corresponding interval data volume.
4. The communication time interval determination method as described in claim 1, characterized in that, Based on the jitter value of the interval corresponding to the data to be received, determine the communication time interval corresponding to the data to be transmitted, including: The communication time interval corresponding to the data to be transmitted is obtained by adding the timeout duration of the timer on the circuit board to the jitter value of the interval corresponding to the data to be received.
5. A communication time interval determination device, characterized in that, include: The acquisition module is used to acquire the actual interval duration information corresponding to historical message data of different message lengths according to the timer of the circuit board; wherein, the actual interval duration information includes: the interval duration of each adjacent data transmission in the historical message data; The first processing module is used to determine the time jitter value of each adjacent data transmission interval in each historical data according to the preset interval duration corresponding to each historical data and the actual interval duration information corresponding to each historical data; wherein, the preset interval duration corresponding to each historical data is the timeout duration of the timer of the circuit board that is preset. The second processing module is used to determine the average interval jitter value of each historical message based on the interval jitter value of each adjacent data transmission in each historical message and the message length of each historical message. The third processing module is used to fit the message length and average interval jitter value of each historical message data using the exponential decay method to obtain the interval jitter value prediction model. The fourth processing module is used to input the message length of the message data to be received into the interval jitter value prediction model to obtain the interval jitter value corresponding to the message data to be received. The fifth processing module is used to determine the communication time interval corresponding to the data to be transmitted based on the jitter value of the interval time corresponding to the data to be received. The fourth processing module is specifically used to fit the following exponential function based on the message length of each historical message and the average interval jitter value to obtain the model parameters of the interval jitter value prediction model. Based on the model parameters of the interval jitter value prediction model, the interval jitter value prediction model is obtained. Where T is the average interval jitter value corresponding to the historical message data, n is the message length corresponding to the historical message data, and k and τ are the model parameters of the interval jitter value prediction model, where a 3x decay time is used in the exponential regression process.
6. The communication time interval determination device as described in claim 5, characterized in that, The first processing module is specifically used to subtract the interval duration of each adjacent data transmission in the historical message from the preset interval duration corresponding to the historical message data to obtain the interval jitter value of each adjacent data transmission in the historical message data.
7. The communication time interval determination device as described in claim 5, characterized in that, The second processing module is specifically used for each historical message data: Determine the amount of data at the corresponding interval based on the length of the historical message data; The jitter values of the interval between each adjacent data transmission in the historical message data are added together to obtain the total jitter value of the interval between historical message data. The average interval jitter value of historical message data is obtained by dividing the sum of the interval jitter values of historical message data by the corresponding interval data volume.
8. The communication time interval determination device as described in claim 5, characterized in that, The fifth processing module is specifically used to add the timeout duration of the timer on the circuit board to the jitter value of the interval time corresponding to the data to be received, so as to obtain the communication time interval corresponding to the data to be transmitted.
9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of any one of claims 1 to 4.
11. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 4.