A data transmission method, device, apparatus, and storage medium
By detecting the data transmission link status, obtaining device temperature information, and updating delay parameters using pre-built temperature parameter relationships, the problem of data transmission interruption and errors caused by temperature changes is solved, thus improving the efficiency and stability of data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- XIAMEN UNISOC TECH CO LTD
- Filing Date
- 2023-05-29
- Publication Date
- 2026-06-02
Smart Images

Figure CN116582436B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to data processing technology, and more particularly to a data transmission method, apparatus, device, and storage medium. Background Technology
[0002] For devices with data exchange capabilities, data transmission anomalies often occur due to changes in the physical characteristics of the transmission line caused by environmental factors or crosstalk. In such cases, the data link layer typically needs to initiate a training command to obtain new data window sampling delay information based on the current physical layer characteristics. This training process causes data link layer transmission interruption until training is complete. During data transmission, when the temperature changes, the resistance, capacitance, and inductance characteristics of physical components (wires, complementary metal-oxide-semiconductors, etc.) change accordingly, affecting signal transmission and ultimately causing a misalignment between the data window and the sampled signal, leading to data transmission errors. Summary of the Invention
[0003] In view of this, this application provides a data transmission method, apparatus, device, and storage medium to reduce the time spent correcting delay parameters when data transmission errors occur due to temperature changes in the prior art.
[0004] In a first aspect, embodiments of this application provide a data transmission method, the method comprising:
[0005] The data transmission status of the data transmission link is detected when data is transmitted based on the current delay parameters;
[0006] If the data transmission status of the data transmission link is determined to be an error state, then the initial temperature information of each device in the data transmission link is obtained; and the temperature information is obtained based on the preset weighting value corresponding to each device.
[0007] Based on a pre-built temperature parameter relationship, the target delay parameter corresponding to the temperature information is determined; wherein, the temperature parameter relationship is the correspondence between different temperature information and different delay parameters;
[0008] Update the current latency parameter of the data transmission link according to the target latency parameter.
[0009] In this embodiment, by using a pre-built temperature parameter relationship, when a data transmission error occurs, the corresponding target delay parameter can be determined in a timely manner based on the temperature parameter relationship. This allows the data transmission link to transmit data based on the target delay parameter, reducing the time spent correcting the delay parameter when a data transmission error occurs due to temperature changes and improving the efficiency of data transmission.
[0010] Preferably, after updating the current delay parameter of the data transmission link according to the target delay parameter, the method further includes:
[0011] The first process is executed repeatedly until the data transmission link is detected to meet the first preset condition. The first preset condition is to determine that the data transmission state of the data transmission link is correct and to determine that the sampling edge of the data transmission link during data transmission is at the center point of the data window. The data window is determined based on the stable range of the level used by the data transmission link during data transmission, and the sampling edge is the rising edge or falling edge of the data transmission link during data transmission.
[0012] The first process includes:
[0013] The data transmission status of the data transmission link is detected when data is transmitted based on the updated current delay parameters;
[0014] If the data transmission status is determined to be an error status, a new delay parameter is obtained based on the preset parameter training algorithm model and the current delay parameter.
[0015] The current latency parameter of the data transmission link is updated based on the new latency parameter.
[0016] In this embodiment of the application, by setting a first process, the accuracy of the delay parameters used by the data transmission link during data transmission can be ensured, and the time spent correcting the delay parameters when errors occur in data transmission due to temperature changes can be further reduced.
[0017] Preferably, after detecting that the data transmission status of the data transmission link is correct, the method further includes:
[0018] Update the delay parameter corresponding to the temperature information in the temperature parameter relationship according to the current delay parameter of the data transmission link.
[0019] In this embodiment of the application, the accuracy of the delay parameters in the temperature parameter relationship is ensured by using the current delay parameter to update the delay parameters corresponding to the temperature information in the temperature parameter relationship.
[0020] Preferably, the temperature parameter relationship is constructed according to the following method:
[0021] For each preset characteristic temperature information, the initial delay parameter is used as the input of a preset parameter training algorithm model under the characteristic temperature information to obtain the trained delay parameter corresponding to the characteristic temperature information; the initial delay parameter is the delay parameter used before the data transmission link is processed by the parameter training algorithm model;
[0022] The temperature parameter relationship is constructed based on each feature temperature information and the corresponding trained delay parameter.
[0023] In this application, a corresponding delay parameter is set for each preset characteristic temperature information, which further reduces the time spent correcting the delay parameter when data transmission errors occur due to temperature changes, thereby improving the efficiency of data transmission.
[0024] Preferably, the step of using the initial delay parameter as input to a preset parameter training algorithm model under the characteristic temperature information to obtain the trained delay parameter corresponding to the characteristic temperature information includes:
[0025] Under the aforementioned characteristic temperature information, if the initial delay parameter is used as the input to a preset parameter training algorithm model multiple times, the final delay parameter is obtained based on the multiple delay parameters output by the parameter training algorithm model obtained from the multiple inputs.
[0026] The final delay parameter is used as the trained delay parameter corresponding to the feature temperature information.
[0027] In this application, in order to ensure the accuracy and universality of the delay parameter in the temperature parameter relationship, the final delay parameter is determined based on multiple delay parameters.
[0028] Preferably, obtaining the final delay parameter based on the delay parameters obtained in each training session includes:
[0029] The latency parameters obtained from each training iteration are mathematically processed to obtain the final latency parameters.
[0030] In this application, the accuracy of the final delay parameters is ensured by performing mathematical processing on the delay parameters.
[0031] Preferably, the step of mathematically processing the delay parameters obtained from each training session to obtain the final delay parameters includes:
[0032] The latency parameters obtained from each training iteration are processed using a mean-averaging algorithm to obtain the final latency parameters; or,
[0033] The median algorithm is used to process the delay parameters obtained from each training iteration to obtain the final delay parameters; or,
[0034] The delay parameters obtained from each training iteration are processed using the least squares method to obtain the final delay parameters.
[0035] In this application, the mean algorithm or the median algorithm can be used to process the delay parameter so that the determined final delay parameter can accurately characterize the delay parameter corresponding to the characteristic temperature.
[0036] Secondly, embodiments of this application provide a data transmission apparatus, the apparatus comprising:
[0037] The detection module is used to detect the data transmission status of the data transmission link when data is transmitted based on the current delay parameters;
[0038] The acquisition module is used to acquire the initial temperature information of each device in the data transmission link if it is determined that the data transmission status of the data transmission link is an error state; and to obtain the temperature information based on the preset weighting value corresponding to each device.
[0039] The parameter determination module is used to determine the target delay parameter corresponding to the temperature information based on a pre-built temperature parameter relationship; wherein, the temperature parameter relationship is the correspondence between different temperature information and different delay parameters;
[0040] An update module is used to update the current delay parameter of the data transmission link according to the target delay parameter.
[0041] Preferably, after updating the current delay parameter of the data transmission link according to the target delay parameter, the update module is further configured to:
[0042] The first process is executed repeatedly until the data transmission link is detected to meet the first preset condition. The first preset condition is to determine that the data transmission state of the data transmission link is correct and to determine that the sampling edge of the data transmission link during data transmission is at the center point of the data window. The data window is determined based on the stable range of the level used by the data transmission link during data transmission, and the sampling edge is the rising edge or falling edge of the data transmission link during data transmission.
[0043] The first process includes:
[0044] The data transmission status of the data transmission link is detected when data is transmitted based on the updated current delay parameters;
[0045] If the data transmission status is determined to be an error status, a new delay parameter is obtained based on the preset parameter training algorithm model and the current delay parameter.
[0046] The current latency parameter of the data transmission link is updated based on the new latency parameter.
[0047] Preferably, after detecting that the data transmission status of the data transmission link is correct, the detection module is further configured to:
[0048] Update the delay parameter corresponding to the temperature information in the temperature parameter relationship according to the current delay parameter of the data transmission link.
[0049] Preferably, the temperature parameter relationship is constructed according to the following method:
[0050] For each preset characteristic temperature information, the initial delay parameter is used as the input of a preset parameter training algorithm model under the characteristic temperature information to obtain the trained delay parameter corresponding to the characteristic temperature information; the initial delay parameter is the delay parameter used before the data transmission link is processed by the parameter training algorithm model;
[0051] The temperature parameter relationship is constructed based on each feature temperature information and the corresponding trained delay parameter.
[0052] Preferably, when the parameter determination module executes the process of using the initial delay parameter as input to a preset parameter training algorithm model under the characteristic temperature information to obtain the trained delay parameter corresponding to the characteristic temperature information, it is specifically used for:
[0053] Under the aforementioned characteristic temperature information, if the initial delay parameter is used as the input to a preset parameter training algorithm model multiple times, the final delay parameter is obtained based on the multiple delay parameters output by the parameter training algorithm model obtained from the multiple inputs.
[0054] The final delay parameter is used as the trained delay parameter corresponding to the feature temperature information.
[0055] Preferably, when the parameter determination module executes the process of obtaining the final delay parameter based on the delay parameters obtained in each training iteration, it is specifically used for:
[0056] The latency parameters obtained from each training iteration are mathematically processed to obtain the final latency parameters.
[0057] Preferably, when the parameter determination module performs mathematical processing on the delay parameters obtained from each training session to obtain the final delay parameters, it is specifically used for:
[0058] The latency parameters obtained from each training iteration are processed using a mean-averaging algorithm to obtain the final latency parameters; or,
[0059] The median algorithm is used to process the delay parameters obtained from each training iteration to obtain the final delay parameters; or,
[0060] The delay parameters obtained from each training iteration are processed using the least squares method to obtain the final delay parameters.
[0061] Thirdly, embodiments of this application provide an electronic device, including a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method described in any of the first aspects above.
[0062] Fourthly, embodiments of this application provide a computer-readable storage medium comprising a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform the method described in any of the first aspects above.
[0063] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description
[0064] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0065] Figure 1 This is a schematic diagram illustrating an application scenario of a data transmission method provided in an embodiment of this application.
[0066] Figure 2 This is a schematic diagram of the overall process of a data transmission method provided in an embodiment of this application;
[0067] Figure 3 This is a first flowchart illustrating a data transmission method provided in an embodiment of this application;
[0068] Figure 4 A schematic diagram illustrating the relationship between updated temperature parameters in a data transmission method provided in this application embodiment;
[0069] Figure 5 A schematic flowchart illustrating the construction of temperature parameter relationships in a data transmission method provided in this application embodiment;
[0070] Figure 6 This is a schematic diagram illustrating the temperature parameter relationship of a data transmission method provided in an embodiment of this application;
[0071] Figure 7A A flowchart illustrating the determination of post-training delay parameters in a data transmission method provided in this application embodiment;
[0072] Figure 7B A flowchart illustrating the process of determining a delay parameter based on a first parameter determination model, provided in an embodiment of this application, for a data transmission method.
[0073] Figure 7C A schematic diagram illustrating the process of training a first parameter determination model for a data transmission method provided in this application embodiment;
[0074] Figure 7D A schematic diagram illustrating the process of determining delay parameters using a pre-built temperature parameter mapping relationship in a data transmission method provided in this application embodiment;
[0075] Figure 7E A schematic diagram of a pre-constructed temperature parameter mapping relationship provided for a data transmission method according to an embodiment of this application;
[0076] Figure 7F A flowchart illustrating the process of determining a delay parameter based on a second parameter determination model, provided in an embodiment of this application, for a data transmission method.
[0077] Figure 8 This is another schematic flowchart illustrating a data transmission method provided in an embodiment of this application;
[0078] Figure 9 A schematic diagram of an apparatus for a data transmission method provided in an embodiment of this application;
[0079] Figure 10 This is a schematic diagram of an electronic device for a data transmission method provided in an embodiment of this application. Detailed Implementation
[0080] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0081] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0082] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0083] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0084] Before providing a detailed description of the embodiments of this application, the terms used or possibly used in the embodiments of this application will first be explained.
[0085] Device: A data exchange device whose physical characteristics change accordingly when the temperature changes in a data transmission link.
[0086] Delay parameter: The parameter used to offset the sampling edge of the sampled signal to the center point of the data window.
[0087] The inventors discovered that for devices with data exchange capabilities, data transmission abnormalities often occur due to changes in the physical characteristics of the transmission line caused by environmental factors or crosstalk. In such cases, the data link layer usually needs to initiate a training command to obtain new data window sampling delay information based on the current physical layer characteristics. This training process can cause the data link layer transmission to be interrupted until the training is completed.
[0088] Data transmission generally involves three stages: the data transmitter adjusts the phase relationship between the sampling signal and the data window; the sampling signal and data are transmitted along the physical link; and finally, the data receiver adjusts the phase between the sampling signal and the effective window of the data to complete the data sampling. Temperature is a crucial factor in data transmission. While external electromagnetic interference can be effectively shielded through encapsulation, temperature remains unshielded. Firstly, temperature can be transmitted through any medium, although different materials have different thermal transfer coefficients, resulting in varying transmission times. Secondly, temperature originates not only from external sources but also from internal sources; the movement of electrons causes devices to heat up. During data transmission, changes in temperature alter the resistance, capacitance, and inductance of physical components (wires, complementary metal-oxide-semiconductor devices, etc.), affecting signal transmission and ultimately causing a misalignment between the data window and the sampling signal, leading to data transmission errors.
[0089] In related technologies, there are many solutions to address the stability issues of the data link layer. One approach is to perform delay training on each data line to eliminate the stability problem caused by the shrinking effective data window due to inconsistent lengths of multiple data lines. However, this method takes several times longer to train each time than traditional methods, and the cost of errors caused by occasional interference is quite high. Another approach is to modify the training method to increase the accuracy of the alignment between the sampling signal and the data window. This method cannot guarantee the stability of the added link, but can only guarantee the accuracy of the alignment between the sampling signal and the data window. However, it still requires improving the accuracy of the delay at the sampling end to ensure the centering of the data sampling, and it cannot effectively solve the impact of temperature on data transmission.
[0090] To address the aforementioned problems, this application provides a data transmission method, apparatus, device, and storage medium to solve these issues. The inventive concept of this application can be summarized as follows: detecting the data transmission status of a data transmission link when data transmission is performed based on current delay parameters; if the data transmission status of the data transmission link is determined to be an error state, obtaining the initial temperature information of each device in the data transmission link; obtaining temperature information based on a preset weighted value corresponding to each device; determining the target delay parameter corresponding to the temperature information based on a pre-built temperature parameter relationship; and updating the current delay parameter of the data transmission link according to the target delay parameter. In this application embodiment, through the pre-built temperature parameter relationship, when a data transmission error occurs, the corresponding target delay parameter can be determined promptly based on the temperature parameter relationship, enabling the data transmission link to perform data transmission based on the target delay parameter. This reduces the time spent correcting the delay parameter when data transmission errors occur due to temperature changes, thus improving data transmission efficiency.
[0091] To facilitate understanding of the data transmission method provided in this application, the following detailed description of the data transmission method provided in this application is given in conjunction with the accompanying drawings:
[0092] like Figure 1 The diagram shown illustrates an application scenario of a data transmission method provided in this application. The diagram includes: a server 10, a memory 20, and a device 30; wherein:
[0093] Server 10 detects the data transmission status of the data transmission link when data transmission is performed based on the current delay parameters. If the data transmission status of the data transmission link is determined to be an error state, the server obtains the initial temperature information of each device 30 in the data transmission link; and obtains the temperature information based on the preset weighted value corresponding to each device 30; determines the target delay parameter corresponding to the temperature information based on the pre-built temperature parameter relationship; and updates the current delay parameter of the data transmission link according to the target delay parameter. The temperature parameter relationship is pre-stored in memory 20.
[0094] The description in this application focuses only on a single server 10, memory 20, and device 30. However, those skilled in the art should understand that the illustrated server 10, memory 20, and device 30 are intended to illustrate the operation of the server 10, memory 20, and device 30 involved in the technical solutions of this application, and do not imply any limitation on the number, type, or location of the server 10, memory 20, or device 30. It should be noted that adding additional modules to or removing individual modules from the illustrated environment will not change the underlying concept of the exemplary embodiments of this application.
[0095] It should be noted that the memory in the embodiments of this application can be, for example, a cache system, hard disk storage, memory storage, etc. Furthermore, the data transmission method proposed in this application is not only applicable to… Figure 1 The application scenarios shown are also applicable to any device that requires data transmission.
[0096] like Figure 2 The diagram shown is an overall flowchart of a data transmission method provided in an embodiment of this application, wherein:
[0097] In step 201: the data transmission status of the data transmission link is detected when data transmission is performed based on the current delay parameters.
[0098] In step 202: if it is determined that the data transmission state of the data transmission link is an error state, then the initial temperature information of each device in the data transmission link is obtained; and the temperature information is obtained based on the preset weighted value corresponding to each device.
[0099] The initial temperature information refers to the temperature information of each device obtained when the data transmission state of the data transmission link is in an error state.
[0100] For example: In a data transmission link, there are 3 devices, namely device 1, device 2, and device 3. If the data transmission status is determined to be an error state, then the initial temperature information of device 1, device 2, and device 3 at this time is obtained respectively. The initial temperature information of device 1 is T1, the initial temperature information of device 2 is T2, and the initial temperature information of device 3 is T3. It is determined that the weighting value of device 1 is 0.4, the weighting value of device 2 is 0.2, and the weighting value of device 3 is 0.4. Then the temperature information = T1*0.4 + T2*0.2 + T3*0.4.
[0101] In step 203: Based on the pre-built temperature parameter relationship, the target delay parameter corresponding to the temperature information is determined; wherein, the temperature parameter relationship is the correspondence between different temperature information and different delay parameters.
[0102] In step 204: Update the current delay parameters of the data transmission link according to the target delay parameters.
[0103] In this embodiment, by using a pre-built temperature parameter relationship, when a data transmission error occurs, the corresponding target delay parameter can be determined in a timely manner based on the temperature parameter relationship. This allows the data transmission link to transmit data based on the target delay parameter, reducing the time spent correcting the delay parameter when a data transmission error occurs due to temperature changes and improving the efficiency of data transmission.
[0104] To facilitate a further understanding of the data transmission method provided in this application, the following will describe... Figure 2 The steps are explained in detail below:
[0105] In some possible embodiments, this application considers that if the temperature of each device in the data transmission link is actively monitored and the delay parameter is adjusted when the temperature exceeds a set threshold, this method can improve the impact of temperature to some extent. However, the active device detection method may cause instability in data transmission. The temperature transmission time varies in different media. When actively detecting the heating temperature of a device, its temperature may not have diffused to the wires. In this case, there is no need to adjust the delay parameter. If adjustment is made at this time, overcompensation may occur due to the previous compensation, leading to abnormalities in data transmission. Therefore, this application adopts a passive triggering method for errors in the data link layer. In specific implementation, Cyclic Redundancy Check (CRC) or Error Correcting Code (ECC) methods can be used to detect the data transmission status of the device. When using CRC to detect the data transmission status of the device, it can be implemented as follows: calculate the check value of the transmitted data using a preset formula, and attach the check value to the transmitted data. If the device calculates the transmitted data using the preset formula and the result is the same, then the data transmission status is determined to be correct. If these two check values are inconsistent, it indicates that an error occurred during data transmission.
[0106] In some possible embodiments, since errors may exist at each stage during data transmission, the target delay parameter determined based on the temperature parameter relationship may not be accurate, thus failing to normalize the data transmission state of the data transmission link. Therefore, after updating the current delay parameter of the data transmission link according to the target delay parameter, the first process can be implemented cyclically until the data transmission link is detected to meet a first preset condition. The first preset condition is to determine that the data transmission state of the data transmission link is correct and to determine that the sampling edge of the data transmission link during data transmission is at the center point of the data window. The data window is determined based on the stable range of the voltage level used by the data transmission link during data transmission, and the sampling edge is the rising or falling edge of the data transmission link during sampling. The first process is as follows: Figure 3 As shown:
[0107] In step 301: the data transmission status of the data transmission link is detected when data transmission is performed based on the updated current delay parameters.
[0108] In step 302: If the data transmission status is determined to be an error status, then a new delay parameter is obtained by training the algorithm model based on the preset parameters and the current delay parameter.
[0109] In step 303: Update the current delay parameters of the data transmission link according to the new delay parameters.
[0110] In this embodiment, the preset parameter training algorithm model can be training. Before using training, it needs to be trained first. The methods for training models in related technologies are applicable to the method for training the parameter training algorithm model in this application, and will not be described in detail here. When executing the data transmission method provided in this application, the trained parameter training algorithm model is used to determine the new delay parameters, further accelerating the data transmission process. Of course, it should be noted that other models for training delay parameters in related technologies are also applicable to this application, and this application does not limit them.
[0111] In this embodiment of the application, by setting a first process, the accuracy of the delay parameters used by the data transmission link during data transmission can be ensured, further avoiding the possibility of data transmission errors caused by temperature changes.
[0112] In some possible embodiments, after detecting that the data transmission status of the data transmission link is correct, in order to ensure the accuracy of the temperature parameter relationship used, it is necessary to update the delay parameter corresponding to the temperature information in the temperature parameter relationship according to the current delay parameter of the data transmission link.
[0113] For example: Figure 4As shown in Table 1, the initial temperature parameter relationship is as follows. The target temperature collected by the current data transmission link during data transmission is T2. When the data transmission status of the data transmission link is detected to be correct, the delay parameter used by the data transmission link is C4. Then, C4 is used to update C2 corresponding to the current target temperature T2. The updated temperature parameter relationship is as shown in Table 2.
[0114] In this application, the delay parameter corresponding to the temperature information in the temperature parameter relationship is updated by using the current delay parameter, which reduces the time spent correcting the delay parameter when the temperature changes cause errors in data transmission.
[0115] In some possible embodiments, the range of temperature changes caused by the data transmission link during operation can be determined by real-time monitoring of the data transmission link. A preset temperature can then be determined based on this temperature change range. After establishing the preset temperature, the temperature parameter relationships can be constructed using methods such as... Figure 5 The steps shown are as follows:
[0116] In step 501: For each preset feature temperature information, the initial delay parameter is used as the input of the preset parameter training algorithm model under the feature temperature information to obtain the trained delay parameter corresponding to the feature temperature information.
[0117] The initial delay parameter is the delay parameter used before the data transmission link is processed using the parameter training algorithm model;
[0118] In step 502: a temperature parameter relationship is constructed based on each feature temperature information and the training delay parameter corresponding to each temperature information.
[0119] For example: The preset characteristic temperature information is 10 degrees Celsius, 11 degrees Celsius, 12 degrees Celsius, 13 degrees Celsius, 14 degrees Celsius, and 15 degrees Celsius; the initial delay parameter of the data transmission link is C0. Then, C0 is input into the parameter training algorithm model at 10 degrees Celsius, 11 degrees Celsius, 12 degrees Celsius, 13 degrees Celsius, 14 degrees Celsius, and 15 degrees Celsius respectively. The resulting trained delay parameters are C10, C11, C12, C13, C14, and C15, respectively. The constructed temperature parameter relationship is as follows: Figure 6 As shown.
[0120] In this application, each preset characteristic temperature information is assigned a corresponding delay parameter, so that when the temperature of the device in the data transmission link changes during operation, the corresponding delay parameter can be found, further reducing the time spent correcting the delay parameter when the temperature change causes errors in data transmission.
[0121] In some possible embodiments, to make the determined delay parameters more accurate, the initial delay parameters are used as input to a preset parameter training algorithm model. When obtaining the trained delay parameters corresponding to the feature temperature information, the following can be implemented: Figure 7A The steps shown are as follows:
[0122] In step 701: Under the characteristic temperature information, the initial delay parameter is used as the input to train the algorithm model multiple times.
[0123] In step 702: Based on the parameters obtained from multiple inputs, train the algorithm model to output multiple delay parameters, and obtain the final delay parameters.
[0124] In this application, the final delay parameter is obtained by mathematically processing the delay parameters obtained in each training session. In specific implementation, the mean algorithm can be used to process the delay parameters obtained in each training session to obtain the final delay parameter; or, the median algorithm can be used to process the delay parameters obtained in each training session to obtain the final delay parameter; in another possible embodiment, the final delay parameter can also be determined by constructing a least squares function based on multiple delay parameters and temperature information.
[0125] It should be noted that this application does not limit the specific algorithm for determining the final delay parameter. In addition to the embodiments given above, all methods that can determine a unique value representing a set of data based on a set of data are also applicable to this application.
[0126] In step 703: the final delay parameter is used as the trained delay parameter corresponding to the feature temperature information.
[0127] For example, at 11 degrees Celsius, the initial delay parameter C0 is input into the preset parameter training algorithm model multiple times to obtain the delay parameters C11, C21, C31, C41, and C51 output by the parameter training algorithm model. The mean of C11, C21, C31, C41, and C51 is determined and used as the final delay parameter.
[0128] In other possible embodiments, in addition to employing the above... Figure 2 Besides the methods mentioned above, data transmission can also be achieved by determining the delay parameter through a first parameter determination model. Specifically, this can be implemented as follows: Figure 7B The steps shown are as follows:
[0129] In step 711: the data transmission status of the data transmission link is detected when data transmission is performed based on the current delay parameters.
[0130] In step 712: If it is determined that the data transmission status of the data transmission link is an error state, then the initial temperature information of each device in the data transmission link is obtained.
[0131] In step 713: the initial temperature information of each device is used as the first parameter to determine the input of the model, and the target delay parameter is obtained.
[0132] For example: if it is determined that there are 3 target devices in the data transmission link, namely A, B and C, and the temperature corresponding to A is determined to be T1, the temperature corresponding to B is determined to be T2, and the temperature corresponding to C is determined to be T3, then T1, T2 and T3 are used as the input of the first parameter determination model, and the output of the first parameter determination model is N. Then the target delay parameter is N.
[0133] In step 714: Update the current delay parameters of the data transmission link according to the target delay parameters.
[0134] In some possible embodiments, the first parameter determination model is trained by: constructing training samples based on the temperature value of each device in the data link participating in data transmission and the calibrated delay parameters; inputting the training sample set into the initial first parameter determination model, training the initial first parameter determination model until a preset convergence condition is met, and using the initial first parameter determination model after the iteration ends as the first parameter determination model.
[0135] In some possible embodiments, the training sample set is input into the initial first parameter determination model, and the training of the initial first parameter determination model can be specifically implemented as follows: Figure 7C The steps shown are as follows:
[0136] In step 721: the training samples in the training sample set are input into the initial first parameter determination model to obtain the delay parameters output by the initial first parameter determination model.
[0137] It should be noted that the number of devices used to construct training samples can be determined by technicians based on the number of devices involved in the data transmission link. This application does not limit the number of devices involved in the data transmission link.
[0138] In step 722: Determine the loss value between the delay parameter calibrated by the training samples and the delay parameter of the model output determined by the initial first parameter.
[0139] In step 723: Determine whether the loss value meets the preset convergence condition.
[0140] The preset convergence conditions can be set by technicians based on the accuracy of the model determined by the expected first parameter. This application does not limit the specific convergence conditions.
[0141] In step 724: Based on the fact that the loss value does not meet the preset convergence condition, the initial first parameter is adjusted according to the loss value to determine the model parameters, and the process returns to execute the input of the training samples in the training sample set into the initial first parameter to determine the model.
[0142] In other possible embodiments, in addition to employing the above... Figure 2 as well as Figure 7B Besides the methods mentioned above, data transmission can also be achieved by determining the delay parameter through a pre-built temperature parameter mapping relationship. Specifically, this can be implemented as follows: Figure 7D The steps shown are as follows:
[0143] In step 731: the data transmission status of the data transmission link is detected when data transmission is performed based on the current delay parameters.
[0144] In step 732: If it is determined that the data transmission status of the data transmission link is an error state, then the initial temperature information of each device in the data transmission link is obtained.
[0145] In step 733: Based on the pre-built temperature parameter mapping relationship and the initial temperature information corresponding to each device, the target delay parameter is obtained.
[0146] In step 734: Update the current delay parameters of the data transmission link according to the target delay parameters.
[0147] For example: There are three devices in the data transmission link, namely A, B, and C, and the pre-built temperature parameter mapping relationship is as follows: Figure 7E As shown, if the initial temperature information of A is determined to be T1, the temperature of B is determined to be T2, and the temperature of C is determined to be T3, then the delay parameter can be determined to be N1, and N1 is used as the target delay parameter.
[0148] In other possible embodiments, besides using the methods described above for data transmission, the delay parameter can be determined through a second parameter determination model to achieve data transmission. Specifically, this can be implemented as follows: Figure 7F The steps shown are as follows:
[0149] In step 741: the data transmission status of the data transmission link is detected when data transmission is performed based on the current delay parameters.
[0150] In step 742: If it is determined that the data transmission status of the data transmission link is an error state, then the initial temperature information of each device in the data transmission link is obtained.
[0151] In step 743: the initial temperature information corresponding to each device is used as the input of the second parameter determination model to obtain the delay parameter to be processed.
[0152] In step 744: Determine the sum of the delay parameters to be processed, and use the sum as the target delay parameter.
[0153] In step 745: Update the current delay parameters of the data transmission link according to the target delay parameters.
[0154] For example: There are 3 devices in the data transmission link, namely A, B and C. The initial temperature information of A is T1, the temperature of B is T2, and the temperature of C is T3. T1 is input into the second parameter determination model to obtain the delay parameter N1 to be processed. T2 is input into the second parameter determination model to obtain the delay parameter N2 to be processed. T3 is input into the second parameter determination model to obtain the delay parameter N3 to be processed. The sum of N1, N2 and N3 is determined to be N4. Then N4 is used as the target delay parameter.
[0155] The construction and training methods for the model determined by the second parameter are the same as those for the model determined by the first parameter, and will not be repeated here.
[0156] To facilitate a further understanding of the data transmission method provided in the embodiments of this application, the detailed process of the data transmission method is described below, such as... Figure 8 As shown:
[0157] In step 801: Determine whether the data transmission status of the data transmission link is in an error state when data transmission is performed based on the current delay parameter. If it is in an error state, proceed to step 802; otherwise, proceed to step 803.
[0158] In step 802: the initial temperature information of each device in the data transmission link is obtained; and the temperature information is obtained based on the preset weighting value corresponding to each device.
[0159] In step 803: End the process.
[0160] In step 804: Based on the pre-built temperature parameter relationship, determine the target delay parameter corresponding to the temperature information.
[0161] In step 805: Update the current delay parameters of the data transmission link according to the target delay parameters.
[0162] In step 806: Determine whether the data transmission status when the data transmission link transmits data based on the updated current delay parameters is an error status. If yes, proceed to step 807; otherwise, proceed to step 809.
[0163] In step 807: the target delay parameter is used as the input to the preset parameter training algorithm model to obtain the new delay parameter.
[0164] In step 808: Update the current delay parameters of the data transmission link according to the new delay parameters.
[0165] In step 809: Update the delay parameter corresponding to the temperature information in the temperature parameter relationship according to the current delay parameter of the data transmission link.
[0166] In summary, in this embodiment of the application, by pre-constructing the temperature parameter relationship, when a data transmission error occurs, the corresponding target delay parameter can be determined in a timely manner based on the temperature parameter relationship, so that the data transmission link can transmit data based on the target delay parameter, thereby reducing the time spent correcting the delay parameter when a data transmission error occurs due to temperature changes and improving the efficiency of data transmission.
[0167] Based on the same inventive concept, such as Figure 9 As shown in the figure, this application embodiment also provides a data transmission device 900, the device comprising:
[0168] The detection module 9001 is used to detect the data transmission status of the data transmission link when data transmission is performed based on the current delay parameters;
[0169] If the acquisition module 9002 determines that the data transmission status of the data transmission link is an error state, it acquires the initial temperature information of each device in the data transmission link; and obtains the temperature information based on the preset weighted value corresponding to each device.
[0170] The parameter determination module 9003 is used to determine the target delay parameter corresponding to the temperature information based on a pre-built temperature parameter relationship; wherein, the temperature parameter relationship is the correspondence between different temperature information and different delay parameters;
[0171] The update module 9004 is used to update the current delay parameter of the data transmission link according to the target delay parameter.
[0172] Preferably, after updating the current delay parameter of the data transmission link according to the target delay parameter, the update module 9004 is further configured to:
[0173] The first process is executed repeatedly until the data transmission link is detected to meet the first preset condition. The first preset condition is to determine that the data transmission state of the data transmission link is correct and to determine that the sampling edge of the data transmission link during data transmission is at the center point of the data window. The data window is determined based on the stable range of the level used by the data transmission link during data transmission, and the sampling edge is the rising edge or falling edge of the data transmission link during data transmission.
[0174] The first process includes:
[0175] The data transmission status of the data transmission link is detected when data is transmitted based on the updated current delay parameters;
[0176] If the data transmission status is determined to be an error status, a new delay parameter is obtained based on the preset parameter training algorithm model and the current delay parameter.
[0177] The current latency parameter of the data transmission link is updated based on the new latency parameter.
[0178] Preferably, after detecting that the data transmission status of the data transmission link is correct, the detection module 9001 is further configured to:
[0179] Update the delay parameter corresponding to the temperature information in the temperature parameter relationship according to the current delay parameter of the data transmission link.
[0180] Preferably, the temperature parameter relationship is constructed according to the following method:
[0181] For each preset characteristic temperature information, the initial delay parameter is used as the input of a preset parameter training algorithm model under the characteristic temperature information to obtain the trained delay parameter corresponding to the characteristic temperature information; the initial delay parameter is the delay parameter used before the data transmission link is processed by the parameter training algorithm model;
[0182] The temperature parameter relationship is constructed based on each feature temperature information and the corresponding trained delay parameter.
[0183] Preferably, when the parameter determination module 9003 executes the characteristic temperature information and uses the initial delay parameter as input to a preset parameter training algorithm model to obtain the trained delay parameter corresponding to the characteristic temperature information, it is specifically used for:
[0184] Under the aforementioned characteristic temperature information, if the initial delay parameter is used as the input to a preset parameter training algorithm model multiple times, the final delay parameter is obtained based on the multiple delay parameters output by the parameter training algorithm model obtained from the multiple inputs.
[0185] The final delay parameter is used as the trained delay parameter corresponding to the feature temperature information.
[0186] Preferably, when the parameter determination module 9003 executes the process of obtaining the final delay parameter based on the delay parameters obtained in each training iteration, it is specifically used for:
[0187] The latency parameters obtained from each training iteration are mathematically processed to obtain the final latency parameters.
[0188] Preferably, when the parameter determination module 9003 performs mathematical processing on the delay parameters obtained from each training session to obtain the final delay parameters, it is specifically used for:
[0189] The latency parameters obtained from each training iteration are processed using a mean-averaging algorithm to obtain the final latency parameters; or,
[0190] The median algorithm is used to process the delay parameters obtained from each training iteration to obtain the final delay parameters; or,
[0191] The delay parameters obtained from each training iteration are processed using the least squares method to obtain the final delay parameters.
[0192] Corresponding to the above embodiments, this application also provides an electronic device. Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device 1000 may include a processor 1001, a memory 1002, and a communication unit 1003. These components communicate through one or more buses. Those skilled in the art will understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present invention. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0193] The communication unit 1003 is used to establish a communication channel, enabling the electronic device to communicate with other devices. It receives user data from other devices or sends user data to other devices.
[0194] The processor 1001 serves as the control center of the electronic device, connecting various parts of the device via interfaces and lines. It executes software programs and / or modules stored in the memory 1002 and retrieves data stored in the memory to perform various functions and / or process data. The processor may be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 1001 may consist only of a central processing unit (CPU). In this embodiment, the CPU may have a single processing core or include multiple processing cores.
[0195] The memory 1002 is used to store the execution instructions of the processor 1001. The memory 1002 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0196] When the execution instructions in memory 1002 are executed by processor 1001, the electronic device 1000 is able to perform operations. Figure 2 Some or all of the steps in the illustrated embodiments.
[0197] In a specific implementation, the present invention also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, may include some or all of the steps of the calling method provided by the present invention. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0198] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments of the present invention.
[0199] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the device embodiments and terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
Claims
1. A data transmission method, characterized in that, The method includes: The data transmission status of the data transmission link is detected when data is transmitted based on the current delay parameters; If the data transmission status of the data transmission link is determined to be an error state, then the initial temperature information of each device in the data transmission link is obtained; and the temperature information is obtained based on the preset weighting value corresponding to each device. Based on a pre-built temperature parameter relationship, the target delay parameter corresponding to the temperature information is determined; wherein, the temperature parameter relationship is the correspondence between different temperature information and different delay parameters; Update the current delay parameter of the data transmission link according to the target delay parameter; The first process is executed repeatedly until the data transmission link is detected to meet the first preset condition. The first preset condition is to determine that the data transmission state of the data transmission link is correct and to determine that the sampling edge of the data transmission link during data transmission is at the center point of the data window. The data window is determined based on the stable range of the level used by the data transmission link during data transmission, and the sampling edge is the rising edge or falling edge of the data transmission link during data transmission. The first process includes: The data transmission status of the data transmission link is detected when data is transmitted based on the updated current delay parameters; If the data transmission status is determined to be an error status, a new delay parameter is obtained based on the preset parameter training algorithm model and the current delay parameter. The current latency parameter of the data transmission link is updated based on the new latency parameter.
2. The method according to claim 1, characterized in that, After detecting that the data transmission status of the data transmission link is correct, the method further includes: Update the delay parameter corresponding to the temperature information in the temperature parameter relationship according to the current delay parameter of the data transmission link.
3. The method according to claim 1, characterized in that, The temperature parameter relationships are constructed using the following method: For each preset characteristic temperature information, under the characteristic temperature information, the initial delay parameter is used as the input of the preset parameter training algorithm model to obtain the trained delay parameter corresponding to the characteristic temperature information; the initial delay parameter is the delay parameter used before the data transmission link is processed by the parameter training algorithm model; The temperature parameter relationship is constructed based on each feature temperature information and the corresponding trained delay parameter.
4. The method according to claim 3, characterized in that, The step of using the initial delay parameter as input to a preset parameter training algorithm model under the characteristic temperature information to obtain the trained delay parameter corresponding to the characteristic temperature information includes: Under the aforementioned characteristic temperature information, if the initial delay parameter is used as the input to a preset parameter training algorithm model multiple times, the final delay parameter is obtained based on the multiple delay parameters output by the parameter training algorithm model obtained from the multiple inputs. The final delay parameter is used as the trained delay parameter corresponding to the feature temperature information.
5. The method according to claim 4, characterized in that, Based on the latency parameters obtained from each training iteration, the final latency parameters are obtained, including: The latency parameters obtained from each training iteration are mathematically processed to obtain the final latency parameters.
6. The method according to claim 5, characterized in that, The step of mathematically processing the delay parameters obtained from each training iteration to obtain the final delay parameters includes: The latency parameters obtained from each training iteration are processed using a mean-averaging algorithm to obtain the final latency parameters; or, The median algorithm is used to process the delay parameters obtained from each training iteration to obtain the final delay parameters; or, The delay parameters obtained from each training iteration are processed using the least squares method to obtain the final delay parameters.
7. A data transmission device, characterized in that, The device includes: The detection module is used to detect the data transmission status of the data transmission link when data is transmitted based on the current delay parameters; The acquisition module is used to acquire the initial temperature information of each device in the data transmission link if it is determined that the data transmission status of the data transmission link is an error state; and to obtain the temperature information based on the preset weighting value corresponding to each device. The parameter determination module is used to determine the target delay parameter corresponding to the temperature information based on a pre-built temperature parameter relationship; wherein, the temperature parameter relationship is the correspondence between different temperature information and different delay parameters; An update module is used to update the current delay parameter of the data transmission link according to the target delay parameter; The update module is further configured to repeatedly execute the first process until the data transmission link is detected to meet a first preset condition; the first preset condition is to determine that the data transmission state of the data transmission link is correct and to determine that the sampling edge of the data transmission link during the data transmission process is at the center point of the data window; wherein, the data window is determined based on the stable range of the level used by the data transmission link during data transmission, and the sampling edge is the rising edge or falling edge of the data transmission link during the data transmission process. The first process includes: The data transmission status of the data transmission link is detected when data is transmitted based on the updated current delay parameters; If the data transmission status is determined to be an error status, a new delay parameter is obtained based on the preset parameter training algorithm model and the current delay parameter. The current latency parameter of the data transmission link is updated based on the new latency parameter.
8. An electronic device, characterized in that, It includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to perform the method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1-6.