Methods, apparatus, equipment, and computer storage media for temperature frequency deviation compensation
By acquiring the temperature frequency offset compensation correspondence and channel state information of the terminal, calculating the target crystal oscillator deviation and confidence level, and updating the temperature frequency offset compensation table, the problem of inaccurate frequency offset compensation in the prior art is solved, and the accuracy of frequency offset compensation and communication performance are improved.
Patent Information
- Application Number
- CN202411488017.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-10-23
AI Technical Summary
In existing technologies, the temperature frequency offset compensation method for terminal devices cannot be updated in a timely manner, resulting in inaccurate frequency offset compensation and affecting communication performance.
By acquiring the temperature frequency offset compensation correspondence and channel state information of the terminal, the initial crystal oscillator deviation and confidence level are determined. The first confidence level is calculated using the signal-to-noise ratio and Doppler frequency shift. The target crystal oscillator deviation and confidence level are updated, and the temperature frequency offset compensation table is adjusted in a timely manner to perform frequency offset compensation.
It improves the accuracy of frequency offset compensation, reduces errors, ensures frequency synchronization between the terminal and the base station, and enhances communication quality.
Smart Images

Figure CN119109741B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communications, and in particular relates to a method, apparatus, device, computer-readable storage medium, and computer program product for temperature frequency offset compensation. Background Technology
[0002] In synchronous communication systems, terminals need to maintain frequency synchronization with base stations for normal data communication. However, during data communication, due to environmental factors and the precision of terminal devices, the signals received by the terminal may exhibit frequency offset. Excessive frequency offset can lead to a deterioration in the signal-to-noise ratio, affecting communication performance. Therefore, frequency offset calibration and compensation are necessary to achieve frequency synchronization between the terminal and the base station.
[0003] In existing temperature frequency offset compensation methods, the frequency offset compensation value corresponding to the temperature of the terminal can be determined according to the terminal's temperature frequency offset compensation table. The temperature frequency offset compensation table includes a pre-fitted relationship between temperature and frequency offset, and then frequency offset compensation is performed on the terminal. However, during the frequency offset compensation process, the temperature frequency offset compensation table cannot be updated in a timely manner, resulting in a large error in frequency offset compensation. Therefore, the existing temperature frequency offset compensation method has the problem of insufficient frequency offset compensation. Summary of the Invention
[0004] This application provides a method, apparatus, device, computer-readable storage medium, and computer program product for temperature frequency offset compensation, which can improve the accuracy of frequency offset compensation.
[0005] In a first aspect, embodiments of this application provide a method for temperature frequency deviation compensation, the method comprising:
[0006] The temperature frequency offset compensation correspondence of the terminal and the temperature of the environment are obtained. The temperature frequency offset compensation correspondence includes the correspondence between temperature and crystal oscillator deviation and confidence level.
[0007] In the temperature frequency offset compensation correspondence, the initial crystal oscillator deviation and initial confidence level corresponding to the temperature are determined;
[0008] Acquire the terminal's channel state information, which includes frequency offset, signal-to-noise ratio, and Doppler shift;
[0009] The first confidence level is determined based on the signal-to-noise ratio and Doppler frequency shift;
[0010] The first deviation is obtained by calculating the difference between the product of the first confidence level and the Doppler frequency shift and the frequency offset;
[0011] The target crystal oscillator deviation is determined based on the first deviation and the initial crystal oscillator deviation.
[0012] The target confidence level is determined based on the first confidence level and the initial confidence level;
[0013] In the temperature frequency offset compensation correspondence, the values of the initial crystal oscillator deviation and the initial confidence level corresponding to the temperature are replaced with the values of the target crystal oscillator deviation and the target confidence level.
[0014] The frequency offset of the terminal is compensated based on the target crystal oscillator deviation.
[0015] In one feasible implementation, determining the first confidence level based on the signal-to-noise ratio and Doppler frequency shift includes:
[0016] In the preset mapping relationship between signal-to-noise ratio and signal-to-noise ratio mapping value, the target signal-to-noise ratio mapping value corresponding to the signal-to-noise ratio is determined, and the value range of the target signal-to-noise ratio mapping value is 0 to 1;
[0017] In the preset mapping relationship between Doppler frequency shift and Doppler frequency shift mapping value, the target Doppler frequency shift mapping value corresponding to the Doppler frequency shift is determined, and the value range of the target Doppler frequency shift mapping value is 0 to 1;
[0018] The first confidence level is obtained by multiplying the target signal-to-noise ratio mapping value and the target Doppler frequency shift mapping value.
[0019] In one feasible implementation, determining the target crystal oscillator deviation based on the first deviation and the initial crystal oscillator deviation includes:
[0020] The weight of the first deviation is determined by the ratio of the first confidence level to the initial confidence level. The weight of the initial crystal oscillator deviation is obtained by subtracting the first deviation from the value 1. The target crystal oscillator deviation is obtained by summing the product of the first deviation and the weight of the first deviation with the product of the initial crystal oscillator deviation and the weight of the initial crystal oscillator deviation.
[0021] In one feasible implementation, determining the target confidence level based on the first confidence level and the initial confidence level includes:
[0022] Obtain the weight of the first confidence level, subtract the value 1 from the weight of the first confidence level to obtain the weight of the initial confidence level, and sum the product of the first confidence level and the weight of the first confidence level with the product of the initial confidence level and the weight of the initial confidence level to obtain the target confidence level.
[0023] In one feasible implementation, after determining the initial crystal oscillator deviation and initial confidence level corresponding to the temperature in the temperature frequency offset compensation correspondence, the method further includes:
[0024] Identify the communication mode of the terminal;
[0025] If the terminal's communication mode is a non-terrestrial network or a global navigation satellite system and the initial confidence level is less than or equal to a preset threshold, the terminal's communication mode will be switched to a terrestrial network.
[0026] In one feasible implementation, before switching the terminal's communication mode to a terrestrial network, the method further includes:
[0027] Based on the product type of the terminal, determine whether the terminal's communication mode allows switching to a terrestrial network;
[0028] If the terminal's communication mode allows switching to a terrestrial network, switch the terminal's communication mode to a terrestrial network.
[0029] Secondly, embodiments of this application provide a temperature frequency deviation compensation device, the device comprising:
[0030] The acquisition module is used to acquire the temperature frequency offset compensation correspondence of the terminal and the temperature of the environment. The temperature frequency offset compensation correspondence includes the correspondence between temperature and crystal oscillator deviation and confidence level.
[0031] The determination module is used to determine the initial crystal oscillator deviation and initial confidence level corresponding to the temperature in the temperature frequency offset compensation correspondence.
[0032] The acquisition module is also used to acquire the terminal's channel state information, which includes frequency offset, signal-to-noise ratio, and Doppler frequency shift.
[0033] The determination module is also used to determine a first confidence level based on the signal-to-noise ratio and Doppler frequency shift;
[0034] The calculation module is used to calculate the difference between the product of the first confidence level and the Doppler frequency shift and the frequency offset to obtain the first deviation;
[0035] The determination module is also used to determine the target crystal oscillator deviation based on the first deviation and the initial crystal oscillator deviation;
[0036] The determination module is also used to determine the target confidence level based on the first confidence level and the initial confidence level;
[0037] The replacement module is used to replace the initial crystal oscillator deviation and initial confidence level corresponding to the temperature with the target crystal oscillator deviation and target confidence level in the temperature frequency offset compensation correspondence.
[0038] The compensation module is used to compensate for the target crystal oscillator deviation and the frequency offset of the terminal.
[0039] Thirdly, embodiments of this application provide an electronic device, the device including: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement a temperature frequency deviation compensation method as described in any embodiment of the first aspect.
[0040] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the temperature frequency offset compensation method as described in any embodiment of the first aspect.
[0041] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform a temperature frequency offset compensation method as described in any embodiment of the first aspect.
[0042] The method, apparatus, device, computer-readable storage medium, and computer program product for temperature frequency offset compensation according to embodiments of this application first obtain the temperature frequency offset compensation correspondence of the terminal and the temperature of the environment. In the temperature frequency offset compensation correspondence, the initial crystal oscillator deviation and initial confidence level corresponding to the temperature are determined. Then, the channel state information of the terminal is obtained, which includes frequency offset, signal-to-noise ratio, and Doppler frequency shift. A first confidence level is determined based on the signal-to-noise ratio and Doppler frequency shift. The difference between the product of the first confidence level and the first Doppler frequency shift and the first frequency offset is calculated to obtain a first deviation. A target crystal oscillator deviation is determined based on the first deviation and the initial crystal oscillator deviation. A target confidence level is determined based on the first confidence level and the initial confidence level. Finally, in the temperature frequency offset compensation correspondence, the values of the initial crystal oscillator deviation and the initial confidence level corresponding to the temperature are replaced with the values of the target crystal oscillator deviation and the target confidence level. The frequency offset of the terminal is compensated based on the target crystal oscillator deviation. By obtaining the crystal oscillator deviation and confidence level corresponding to the current ambient temperature when the terminal receives the network-side signal, and using the channel state information in the network-side signal to update the crystal oscillator deviation and confidence level corresponding to the current temperature in a timely manner, and using the updated crystal oscillator deviation to perform frequency offset compensation for the terminal, the error of frequency offset compensation can be reduced and the accuracy of frequency offset compensation can be improved. Attached Figure Description
[0043] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 This is a schematic flowchart of a temperature frequency offset compensation method provided in one embodiment of this application;
[0045] Figure 2 This is a schematic flowchart of a temperature frequency offset compensation method provided in another embodiment of this application;
[0046] Figure 3 This is a schematic flowchart of a temperature frequency offset compensation method provided in another embodiment of this application;
[0047] Figure 4 This is a schematic diagram of the structure of a temperature frequency offset compensation device provided in one embodiment of this application;
[0048] Figure 5 This is a schematic diagram of the hardware structure of an electronic device provided in one embodiment of this application. Detailed Implementation
[0049] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0050] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0051] In synchronous communication systems, terminals need to maintain frequency synchronization with base stations for normal data communication. However, during data communication, due to environmental factors and the precision of terminal devices, the signals received by the terminal may exhibit frequency offset. Excessive frequency offset can lead to a deterioration in the signal-to-noise ratio, affecting communication performance. Therefore, frequency offset calibration and compensation are necessary to achieve frequency synchronization between the terminal and the base station.
[0052] In existing temperature frequency offset compensation methods, the frequency offset compensation value corresponding to the temperature of the terminal can be determined according to the terminal's temperature frequency offset compensation table. The temperature frequency offset compensation table includes a pre-fitted relationship between temperature and frequency offset, and then frequency offset compensation is performed on the terminal. However, during the frequency offset compensation process, the temperature frequency offset compensation table cannot be updated in a timely manner, resulting in a large error in frequency offset compensation. Therefore, the existing temperature frequency offset compensation method has the problem of insufficient frequency offset compensation.
[0053] To address the problems of the prior art, embodiments of this application provide a method, apparatus, device, computer storage medium, and computer program product for temperature frequency deviation compensation. The method for temperature frequency deviation compensation provided in this application embodiment will be described first below.
[0054] Figure 1 A schematic flowchart of a temperature frequency offset compensation method according to an embodiment of this application is shown. Figure 1 As shown, the method includes the following steps: S110 to S190.
[0055] S110: Obtain the temperature frequency offset compensation correspondence of the terminal and the temperature of the environment. The temperature frequency offset compensation correspondence includes the correspondence between temperature and crystal oscillator deviation and confidence level.
[0056] In this embodiment, the terminal may include a Digital Controlled Crystal Oscillator (DCXO). The temperature frequency offset compensation correspondence refers to a specific temperature in the temperature frequency offset compensation table and the corresponding frequency deviation of the crystal oscillator at that temperature. This can be called crystal oscillator deviation or DCXO deviation. The crystal oscillator deviation is the compensation standard used to compensate for the frequency offset of the crystal oscillator. The temperature frequency offset compensation table may also include the confidence level corresponding to the frequency deviation of the crystal oscillator at that temperature, which can also be regarded as the confidence level corresponding to that temperature. That is, the temperature frequency offset compensation table includes the corresponding crystal oscillator deviation and confidence level. The confidence level is obtained through historical data such as historical temperature, crystal oscillator deviation, confidence level, and channel state information. Therefore, it can also be regarded as historical confidence level (Confidence_Level_His). The historical confidence level is used to measure whether the temperature and crystal oscillator deviation corresponding to the historical confidence level in the temperature frequency offset compensation table are reliable, that is, whether the error of the crystal oscillator deviation at that temperature in the temperature frequency offset compensation table is too large. The correspondence between temperature, crystal oscillator deviation, and historical confidence level is shown in Table 1, the temperature frequency offset compensation table.
[0057]
[0058] Table 1
[0059] In one embodiment, multiple crystals can be selected as samples, and the crystal oscillator deviation value between -40 degrees and 80 degrees can be measured in a temperature chamber. A set of frequency values can be measured at intervals of M degrees, and a fitting curve can be obtained based on the algorithm as the initial value of the temperature frequency deviation compensation table.
[0060] In one embodiment, during production on the production line, the DCXO deviation of the crystal oscillator is calibrated at room temperature, and the entire temperature frequency deviation compensation table is adjusted synchronously based on the calibration value to eliminate individual differences among crystal oscillators. Due to cost factors, it is not possible to calibrate at all temperatures on the production line, resulting in a significant residual error in the temperature frequency deviation compensation table.
[0061] The correspondence between temperature, crystal oscillator deviation, and confidence level is obtained from the pre-created temperature frequency offset compensation table. The temperature of the current environment of the terminal is obtained using a temperature sensor, i.e., the ambient temperature of the crystal oscillator in the terminal. At the same time, channel state information is obtained from the network-side signals received by the terminal. The channel state information may include information such as frequency offset, signal-to-noise ratio, and Doppler shift.
[0062] S120: In the temperature frequency offset compensation correspondence, determine the initial crystal oscillator deviation and initial confidence level corresponding to the temperature.
[0063] In the temperature frequency offset compensation table, the crystal oscillator deviation and historical confidence level (Confidence_Level_His) corresponding to the temperature of the current environment are determined based on the temperature frequency offset compensation correspondence. In other words, the initial crystal oscillator deviation and initial confidence level are determined. The initial confidence level is the historical confidence level (Confidence_Level_His).
[0064] S130: Obtain the terminal's channel state information, which includes frequency offset, signal-to-noise ratio, and Doppler shift.
[0065] Channel state information (CSI) includes frequency offset, signal-to-noise ratio (SNR), and Doppler shift. CSI is a crucial concept in wireless communication, describing the characteristics of a communication channel and essential for optimizing communication quality and improving data transmission efficiency. CSI typically includes several parameters, with frequency offset, SNR, and Doppler shift being key indicators. Frequency offset refers to the difference between the carrier frequency received by the receiver and the carrier frequency transmitted by the transmitter. Signal-to-noise ratio (SNR) is the ratio of signal power to noise power, and it is an important indicator of communication link quality. Doppler shift refers to the frequency change caused by the relative motion between the signal source (or receiver) and the scattering object.
[0066] Channel state information is obtained from the network-side signals received by the terminal. The channel state information may include information such as frequency offset, signal-to-noise ratio, and Doppler shift.
[0067] S140: Determine the first confidence level based on the signal-to-noise ratio and Doppler shift.
[0068] A first confidence level can be determined by the signal-to-noise ratio and Doppler shift in the channel state information received by the terminal. The first confidence level can be used to represent the reliability of the estimated crystal oscillator deviation of the current crystal oscillator, and can also be regarded as the current confidence level (Confidence_Level_Cur). A high current confidence level means a high reliability of the estimated crystal oscillator deviation of the current crystal oscillator.
[0069] S150: Calculate the difference between the product of the first confidence level and the Doppler shift and the frequency offset to obtain the first deviation.
[0070] By subtracting the product of the first confidence level and the Doppler shift from the frequency offset in the channel state information, an estimated crystal oscillator deviation of a crystal oscillator can be obtained. To distinguish it from the crystal oscillator deviation corresponding to the temperature of the current environment, that is, the initial crystal oscillator deviation in this embodiment, the initial crystal oscillator deviation can be expressed as deviation Error1. The estimated crystal oscillator deviation of a crystal oscillator obtained by subtracting the product of the first confidence level and the Doppler shift from the frequency offset in the channel state information, that is, the first deviation in this embodiment, is expressed as deviation Error2. The calculation process of deviation Error2 is as follows: deviation Error2 = F2(“frequency offset”, “Doppler shift”), specifically Error2 = “frequency offset” - Factor2 * “Doppler shift”, where 0 < Factor2 < 1. The specific value of Factor2 is determined by the first confidence level, that is, obtained from the current confidence level (Confidence_Level_Cur), and is in a direct proportional relationship with the current confidence level. The larger the current confidence level, the larger the value of Factor2. Based on the first confidence level, Factor2 can be obtained through a mapping relationship. Factor2 is equal to the product of a preset coefficient and the first confidence level. When “Doppler shift” is small, the value of Factor2 * “Doppler shift” is small, and the value of Error2 is close to “frequency offset”.
[0071] S160: Determine the target crystal oscillator deviation based on the first deviation and the initial crystal oscillator deviation.
[0072] The first confidence level is the current confidence level (Confidence_Level_Cur), and the initial confidence level is the historical confidence level (Confidence_Level_His). Based on the current confidence level (Confidence_Level_Cur) and the historical confidence level (Confidence_Level_His), the weights of deviations Error1 and Error2 can be determined. Based on deviations Error1, Error2, the weight of Error1, and the weight of Error2, the target crystal oscillator deviation can be determined. That is, the crystal oscillator deviation obtained by adjusting the channel state information obtained from the network-side signal received by the terminal is used to update the crystal oscillator deviation corresponding to the current ambient temperature in the temperature frequency offset compensation table.
[0073] S170: Determine the target confidence level based on the first confidence level and the initial confidence level.
[0074] The initial confidence level corresponding to the current temperature, obtained from the temperature frequency offset compensation table, is the historical confidence level (Confidence_Level_His) corresponding to the current temperature. The first confidence level can be used to represent the reliability of the estimated crystal oscillator deviation of the current crystal oscillator, and can also be regarded as the current confidence level (Confidence_Level_Cur). The weights of the current confidence level (Confidence_Level_Cur) and the historical confidence level (Confidence_Level_His) are obtained. The weights of the current confidence level (Confidence_Level_Cur) and the historical confidence level (Confidence_Level_His) can be user-preset values. The target confidence level can be determined based on the weights of the current confidence level (Confidence_Level_Cur), historical confidence level (Confidence_Level_His), and the weights of the current confidence level (Confidence_Level_Cur) and historical confidence level (Confidence_Level_His). This target confidence level is obtained by adjusting the channel state information obtained from the network-side signal received by the terminal. It is used to update the historical confidence level corresponding to the temperature of the current environment in the temperature frequency offset compensation table.
[0075] S180: In the temperature frequency offset compensation correspondence, replace the initial crystal oscillator deviation and initial confidence level corresponding to the temperature with the target crystal oscillator deviation and target confidence level.
[0076] In the temperature frequency offset compensation table, based on the temperature frequency offset compensation correspondence, the initial crystal oscillator deviation and initial confidence level corresponding to the temperature of the current environment are replaced with the target crystal oscillator deviation and target confidence level. That is, the values of deviation Error1 and historical confidence level (Confidence_Level_His) are replaced with the values of deviation Error2 and current confidence level (Confidence_Level_Cur). This completes the update of the initial crystal oscillator deviation and initial confidence level corresponding to the temperature in the temperature frequency offset compensation table under the current temperature, so that the terminal can be frequency offset compensated according to the latest updated temperature frequency offset compensation correspondence in the future.
[0077] S190: Compensate for the frequency offset of the terminal based on the target crystal oscillator deviation.
[0078] Based on the determined target crystal oscillator deviation, i.e. the updated crystal oscillator deviation corresponding to the current ambient temperature in the temperature frequency offset compensation table, a crystal oscillator control word is generated and configured into the crystal oscillator of the terminal. In other words, the crystal oscillator in the terminal is compensated based on the crystal oscillator deviation corresponding to the current ambient temperature.
[0079] The method, apparatus, device, computer-readable storage medium, and computer program product for temperature frequency offset compensation according to embodiments of this application first obtain the temperature frequency offset compensation correspondence of the terminal and the temperature of the environment. In the temperature frequency offset compensation correspondence, the initial crystal oscillator deviation and initial confidence level corresponding to the temperature are determined. Then, the channel state information of the terminal is obtained, which includes frequency offset, signal-to-noise ratio, and Doppler frequency shift. A first confidence level is determined based on the signal-to-noise ratio and Doppler frequency shift. The difference between the product of the first confidence level and the first Doppler frequency shift and the first frequency offset is calculated to obtain a first deviation. A target crystal oscillator deviation is determined based on the first deviation and the initial crystal oscillator deviation. A target confidence level is determined based on the first confidence level and the initial confidence level. Finally, in the temperature frequency offset compensation correspondence, the values of the initial crystal oscillator deviation and the initial confidence level corresponding to the temperature are replaced with the values of the target crystal oscillator deviation and the target confidence level. The frequency offset of the terminal is compensated based on the target crystal oscillator deviation. By obtaining the crystal oscillator deviation and confidence level corresponding to the current ambient temperature when the terminal receives the network-side signal, and using the channel state information in the network-side signal to update the crystal oscillator deviation and confidence level corresponding to the current temperature in a timely manner, and using the updated crystal oscillator deviation to perform frequency offset compensation for the terminal, the error of frequency offset compensation can be reduced and the accuracy of frequency offset compensation can be improved.
[0080] As another implementation of this application, step S140: determining a first confidence level based on signal-to-noise ratio and Doppler frequency shift includes: determining a target signal-to-noise ratio mapping value corresponding to the signal-to-noise ratio in a preset mapping relationship between signal-to-noise ratio and signal-to-noise ratio mapping value, wherein the target signal-to-noise ratio mapping value ranges from 0 to 1; determining a target Doppler frequency shift mapping value corresponding to the Doppler frequency shift in a preset mapping relationship between Doppler frequency shift and Doppler frequency shift mapping value, wherein the target Doppler frequency shift mapping value ranges from 0 to 1; and obtaining a first confidence level based on the product of the target signal-to-noise ratio mapping value and the target Doppler frequency shift mapping value.
[0081] The first confidence level, also known as the current confidence level (Confidence_Level_Cur), is the confidence level of the estimated crystal oscillator deviation Error2. Current confidence level (Confidence_Level_Cur) = Confi(“Signal-to-Noise Ratio”) * Confi(“Doppler Shift”). The signal-to-noise ratio (SNR) is mapped to a corresponding value using the function Confi(“SNR”). The value of Confi(“SNR”) is between 0 and 1, and it is a monotonically increasing function of SNR. A high SNR indicates high reliability of Doppler shift and frequency offset estimations, meaning high reliability of the deviation Error2 obtained from Doppler shift and frequency offset. Conversely, a low SNR indicates low reliability of Doppler shift and frequency offset estimations, meaning low reliability of the deviation Error2 obtained from Doppler shift and frequency offset. The mapping relationship between Doppler frequency shift and its mapping value can be obtained through the function Confi(“Doppler frequency shift”). The value of Confi(“Doppler frequency shift”) is between 0 and 1. Confi(“Doppler frequency shift”) is a monotonically decreasing function of “Doppler frequency shift”. When “Doppler frequency shift” is small, it indicates that the channel changes slowly. When the value of Confi(“Doppler frequency shift”) is large, the reliability of the deviation Error2 is high. When “Doppler frequency shift” is large, it indicates that the channel changes quickly. When the value of Confi(“Doppler frequency shift”) is small, the reliability of the deviation Error2 is low.
[0082] This embodiment converts the signal-to-noise ratio (SNR) and Doppler frequency shift into target mapped values through a preset mapping relationship, and calculates the product of the target SNR mapped value and the target Doppler frequency shift mapped value to obtain the first confidence level. By considering the influence of SNR and Doppler frequency shift, the reliability of the received signal can be more accurately determined, thereby determining whether adjusting the temperature frequency offset compensation correspondence based on the signal is reliable, thus improving the effectiveness of frequency offset compensation.
[0083] As another implementation of this application, step S160: determining the target crystal oscillator deviation based on the first deviation and the initial crystal oscillator deviation includes: determining the ratio of the first confidence level to the initial confidence level as the weight of the first deviation, subtracting the weight of the first deviation from the value 1 to obtain the weight of the initial crystal oscillator deviation, and summing the product of the first deviation and the weight of the first deviation with the product of the initial crystal oscillator deviation and the weight of the initial crystal oscillator deviation to obtain the target crystal oscillator deviation.
[0084] The crystal oscillator deviation corresponding to the temperature in the temperature frequency offset compensation table can be updated by using IIR filtering. That is, the target crystal oscillator deviation is calculated by using IIR filtering to update the crystal oscillator deviation corresponding to the temperature of the current environment in the temperature frequency offset compensation table. The target crystal oscillator deviation can be expressed as deviation Error3. The calculation formula of Error3 is shown in formula (1).
[0085] Error3= (1-Alpha) * Error1 + Alpha * Error2 (1)
[0086] Here, Alpha represents the filter coefficient, which can be determined by the confidence level. Alpha = F3(Confidence_Level_Cur, Confidence_Level_His), where F3 is a monotonically increasing function of (Confidence_Level_Cur / Confidence_Level_His). Confidence_Level_Cur / Confidence_Level_His represents the ratio of the current confidence level (Confidence_Level_Cur) to the historical confidence level (Confidence_Level_His), which is the ratio of the first confidence level to the initial confidence level. Alpha also represents the deviation between Error2 and Error1, indicating which deviation is more reliable. If Confidence_Level_Cur / Confidence_Level_His > 1, then Error2 is more reliable and can be multiplied by a larger weighting factor. The weighting factor for Error1 is equal to the value 1 minus the weighting factor for Error2.
[0087] In scenarios with high signal-to-noise ratio, low Doppler frequency shift, and small frequency offset, the currently estimated DCXO error is small, and the table will be updated with a larger weight. Furthermore, for TN networks and TNT high-orbit satellite scenarios, when the terminal is not in high-speed movement, it is easier to accurately estimate the DCXO deviation. This data will be updated in the temperature frequency offset compensation table, and its use in NTN low-orbit scenarios will help improve performance in these scenarios.
[0088] This embodiment considers a first confidence level and an initial confidence level when determining the target crystal oscillator deviation. The weight of the first deviation is determined by calculating the ratio of the two, and the weight of the initial crystal oscillator deviation is further calculated. Finally, the first target crystal oscillator deviation is obtained by weighted summation of the first deviation and the initial crystal oscillator deviation. This can more accurately reflect the reliability of crystal oscillator deviations from different sources. Therefore, more reliable crystal oscillator deviations are given higher weights when calculating the target crystal oscillator deviation, which improves the accuracy of the final target crystal oscillator deviation result. This, in turn, improves the accuracy of adjusting the temperature frequency offset compensation correspondence and improves the accuracy rate of frequency offset compensation.
[0089] As another implementation of this application, step S170: determining the target confidence level based on the first confidence level and the initial confidence level includes: obtaining the weight of the first confidence level, subtracting the value 1 from the weight of the first confidence level to obtain the weight of the initial confidence level, and summing the product of the first confidence level and the weight of the first confidence level with the product of the initial confidence level and the weight of the initial confidence level to obtain the target confidence level.
[0090] The target confidence level is used to update the historical confidence level corresponding to the current temperature in the temperature frequency offset compensation table. The target confidence level is the updated historical confidence level (Confidence_Level_His). The calculation method for the updated historical confidence level (Confidence_Level_His) is shown in formula (2).
[0091] Confidence_Level_His = Beta * Confidence_Level_Cur + (2)
[0092] (1-Beta)*Confidence_Level_His
[0093] Where Beta is a coefficient, a preset fixed value, and its value is 1 / N, where N is an integer. The weight of the current confidence level (Confidence_Level_Cur) is Beta, and the weight of the historical confidence level (Confidence_Level_His) is 1-Beta.
[0094] This embodiment calculates the target confidence level by assigning weights to the current confidence level and historical confidence levels respectively, using a weighted average method. By assigning different weights to confidence levels from different sources, higher weights are given to more reliable confidence levels, thereby improving the accuracy of the final target confidence level. This, in turn, improves the accuracy of frequency offset compensation.
[0095] As another implementation of this application, Figure 2A flowchart illustrating a temperature frequency offset compensation method according to another embodiment of this application is shown. After determining the initial crystal oscillator deviation and initial confidence level corresponding to the temperature in step S120 of the temperature frequency offset compensation correspondence, the method further includes steps S210 to S250.
[0096] S210: Identify the communication mode of the terminal.
[0097] The terminal's communication modes can include terrestrial network (TN), non-terrestrial network (NTN), and Global Navigation Satellite System (GNSS). After determining the initial crystal oscillator deviation and initial confidence level corresponding to the temperature, the communication mode of the current terminal's operating state is determined.
[0098] S220: If the terminal's communication mode is a non-terrestrial network or a global navigation satellite system and the initial confidence level is less than or equal to a preset threshold, switch the terminal's communication mode to a terrestrial network.
[0099] When the terminal's communication mode is NTN or GNSS, it determines whether the initial confidence level is less than or equal to a preset threshold, also known as the confidence threshold. This means checking whether the confidence level corresponding to the temperature frequency compensation table at the current temperature is less than or equal to the threshold value. If the confidence level is less than or equal to the threshold value, it indicates that the crystal oscillator deviation in the temperature frequency offset compensation table is unreliable. In TN mode, the Doppler frequency shift is lower, making it easier to obtain the accurate crystal oscillator deviation rate at the current temperature. Updating the temperature frequency offset compensation table in TN mode and using this data in NTN low-Earth orbit scenarios helps improve performance in these scenarios. In dual-SIM or dual-mode strategies, this can be configured using the `at` command or `nv`. The confidence threshold is related to the specific terminal product type.
[0100] When the terminal's communication mode is a non-terrestrial network or a global navigation satellite system and the initial confidence level is less than or equal to a preset threshold (i.e., the historical confidence level (Confidence_Level_His) corresponding to the current temperature is less than or equal to the preset threshold), the terminal's communication mode is switched to a terrestrial network. The terminal's channel state information is obtained. Using the channel state information in the terminal's network-side signal obtained from the terrestrial network communication mode, combined with the already obtained initial crystal oscillator deviation and initial confidence level, the temperature frequency offset compensation is updated and the terminal's frequency offset compensation is completed in the manner described in steps S130 to S190.
[0101] In one embodiment, when the terminal's communication mode is identified as a terrestrial network, i.e., the terminal's current communication mode is TN mode, the terminal's communication mode is not changed. The channel state information in the terminal's network-side signal under the current communication mode is obtained. Combined with the obtained initial crystal oscillator deviation and initial confidence level, the temperature frequency offset compensation is updated and the frequency offset compensation of the terminal is completed in the manner described in steps S130 to S190.
[0102] In one embodiment, if the initial confidence level is greater than a preset threshold, that is, if the historical confidence level (Confidence_Level_His) corresponding to the current temperature is greater than the preset threshold, the channel state information in the terminal network side signal under the current communication mode is obtained. Combined with the obtained initial crystal oscillator deviation and initial confidence level, the temperature frequency offset compensation is updated and the frequency offset compensation of the terminal is completed in the manner described in steps S130 to S190.
[0103] In other words, if the historical confidence level (Confidence_Level_His) corresponding to the current temperature is greater than the preset threshold, regardless of whether the terminal is currently in TN, NTN or GNSS communication mode, the channel state information in the terminal network side signal under the current communication mode will continue to be obtained. Combined with the initial crystal oscillator deviation and initial confidence level, the temperature frequency offset compensation will be updated and the frequency offset compensation of the terminal will be completed in the manner described in steps S130 to S190.
[0104] In TN mode, the Doppler frequency shift is lower, making it easier to obtain an accurate DCXO deviation rate at the current temperature. For high-orbit satellite scenarios in TN and TNT networks, when the terminal is not moving at high speed, it is easier to accurately estimate the DCXO deviation. Updating this data to the temperature frequency offset compensation table and using it in NTN low-orbit scenarios helps improve performance in low-orbit scenarios.
[0105] In one embodiment, when the terminal's communication mode is a non-terrestrial network or a global navigation satellite system and the historical confidence level (Confidence_Level_His) corresponding to the current temperature is less than or equal to a preset threshold, the terminal's communication mode is switched to a terrestrial network. After updating the temperature frequency offset compensation table using data from the terminal's terrestrial network communication mode, the method further includes: switching the terminal's communication mode back to the original non-terrestrial network or global navigation satellite system, and updating the terminal based on the updated temperature frequency offset compensation table.
[0106] This embodiment, when the terminal communication mode is NTN or GNSS, ensures that the initial confidence level is less than or equal to a preset threshold. It then switches the terminal communication mode to TN and updates the temperature frequency offset compensation table using the channel state information of the network-side signal in TN mode. Frequency offset compensation is then performed on the terminal based on the updated temperature frequency offset compensation table. In TN, NTN, and GNSS modes, a single crystal oscillator and a single temperature frequency offset compensation table are shared, and the table is updated uniformly. This reduces usage and maintenance costs, as well as the error of the temperature frequency offset compensation table. Especially for NTN or GNSS modes, to ensure more accurate frequency offset compensation values, data from TN mode can be reused to update the temperature frequency offset compensation data, further reducing the error of the temperature frequency offset compensation table and improving terminal performance and the accuracy of frequency offset compensation.
[0107] As another implementation of this application, before step S230: switching the terminal's communication mode to a terrestrial network, the method further includes: determining whether the terminal's communication mode allows switching to a terrestrial network based on the terminal's product type; if the terminal's communication mode allows switching to a terrestrial network, switching the terminal's communication mode to a terrestrial network.
[0108] If the terminal's communication mode is a non-terrestrial network or a global navigation satellite system, and if the confidence level corresponding to the temperature frequency compensation table at the current temperature is less than or equal to the threshold value, first determine whether the terminal's communication mode allows switching to a terrestrial network. Whether switching to a terrestrial network is allowed depends on the specific terminal product type. If the terminal's communication mode allows switching to a terrestrial network, then switch the terminal's communication mode to a terrestrial network.
[0109] This embodiment determines whether the communication mode of a terminal can be switched to a terrestrial network based on the terminal's product type. This method ensures that different types of devices can use the most suitable communication method under appropriate conditions, thereby enhancing the system's compatibility and flexibility.
[0110] As another implementation of this application, Figure 3 A schematic flowchart of a temperature frequency offset compensation method provided in another embodiment of this application is shown. The method includes steps S301 to S314.
[0111] S301: Measure multiple DCXOs, fit a temperature frequency deviation fitting table based on statistical characteristics, and write the temperature frequency deviation fitting table into the terminal NV.
[0112] S302: On the production line, the terminal is calibrated using instruments, and the calibrated values are used to adjust the temperature frequency deviation fitting table to obtain the temperature frequency deviation compensation table.
[0113] S303: The terminal is powered on and enters the working state. The current communication mode of the terminal is identified. The communication modes include TN, NTN and GNSS.
[0114] S304: When the terminal communication mode is TN, the ambient temperature of the current terminal is read using a temperature sensor.
[0115] S305: Query the temperature frequency offset compensation table according to the temperature, and configure the DCXO to perform frequency offset compensation for the terminal according to the crystal oscillator deviation corresponding to the temperature.
[0116] S306: Access the network signal received from the TN network, synchronously estimate the current frequency offset, signal-to-noise ratio, and Doppler, and update the temperature frequency offset compensation table based on the current frequency offset, signal-to-noise ratio, and Doppler.
[0117] S307: When the terminal communication mode is NTN or GNSS, the temperature sensor is used to read the ambient temperature of the current terminal.
[0118] S308: Query the temperature frequency offset compensation table based on the temperature to obtain the corresponding crystal oscillator deviation and confidence level.
[0119] S309: Determine whether the confidence level is greater than the threshold.
[0120] S310: When the confidence level is greater than the threshold, the DCXO is configured to compensate for the frequency offset of the terminal according to the crystal oscillator deviation corresponding to the temperature.
[0121] S311: Access network signals received from NTN or GNSS networks, synchronously estimate the current frequency offset, signal-to-noise ratio, and Doppler, and update the temperature frequency offset compensation table based on the current frequency offset, signal-to-noise ratio, and Doppler.
[0122] S312: If the confidence level is less than or equal to the threshold, determine whether the terminal is allowed to enter TN mode. If the terminal is not allowed to enter TN mode, access the network signal received by the NTN or GNSS network.
[0123] S313: When the terminal is allowed to enter TN mode, switch to TN mode to access services, synchronously estimate the current frequency offset, signal-to-noise ratio and Doppler, and update the temperature frequency offset compensation table based on the current frequency offset, signal-to-noise ratio and Doppler.
[0124] S314: Determine if the current confidence level is greater than the threshold. If the confidence level is greater than the threshold, switch the terminal's communication mode back to NTN or GNSS.
[0125] Based on the same concept, this application provides a temperature frequency deviation compensation device, which is described below in conjunction with... Figure 4 The temperature frequency deviation compensation device provided in the embodiments of this application will be described in detail.
[0126] Figure 4 This is a structural block diagram of a temperature frequency offset compensation device shown in an embodiment of this application.
[0127] like Figure 4 As shown, the temperature frequency deviation compensation device may include:
[0128] The acquisition module 410 is used to acquire the temperature frequency offset compensation correspondence of the terminal and the temperature of the environment. The temperature frequency offset compensation correspondence includes the correspondence between temperature and crystal oscillator deviation and confidence level.
[0129] The module 420 is used to determine the initial crystal oscillator deviation and initial confidence level corresponding to the temperature in the temperature frequency offset compensation correspondence.
[0130] The acquisition module 410 is also used to acquire the channel state information of the terminal, including frequency offset, signal-to-noise ratio and Doppler frequency shift;
[0131] The determination module 420 is also used to determine a first confidence level based on the signal-to-noise ratio and Doppler frequency shift;
[0132] The calculation module 430 is used to calculate the difference between the product of the first confidence level and the Doppler frequency shift and the frequency offset to obtain the first deviation;
[0133] The determination module 420 is also used to determine the target crystal oscillator deviation based on the first deviation and the initial crystal oscillator deviation;
[0134] The determination module 420 is also used to determine the target confidence level based on the first confidence level and the initial confidence level;
[0135] Replacement module 440 is used to replace the initial crystal oscillator deviation and initial confidence level corresponding to the temperature with the target crystal oscillator deviation and target confidence level in the temperature frequency offset compensation correspondence.
[0136] The compensation module 450 is used to compensate for the target crystal oscillator deviation and the frequency deviation of the terminal.
[0137] In one embodiment, the determining module 420 is specifically configured to: determine a target signal-to-noise ratio mapping value corresponding to a first signal-to-noise ratio in a preset mapping relationship between signal-to-noise ratio and signal-to-noise ratio mapping values, wherein the target signal-to-noise ratio mapping value ranges from 0 to 1; determine a target Doppler frequency shift mapping value corresponding to a first Doppler frequency shift in a preset mapping relationship between Doppler frequency shift and Doppler frequency shift mapping values, wherein the target Doppler frequency shift mapping value ranges from 0 to 1; and obtain a first confidence level based on the product of the target signal-to-noise ratio mapping value and the target Doppler frequency shift mapping value.
[0138] In one embodiment, the determining module 420 is specifically used to determine the ratio of the first confidence level to the initial confidence level as the weight of the first deviation, subtract the weight of the first deviation from the value 1 to obtain the weight of the initial crystal oscillator deviation, and sum the product of the first deviation and the weight of the first deviation with the product of the initial crystal oscillator deviation and the weight of the initial crystal oscillator deviation to obtain the target crystal oscillator deviation.
[0139] In one embodiment, the determining module 420 is specifically used to obtain the weight of the first confidence level, subtract the value 1 from the weight of the first confidence level to obtain the weight of the initial confidence level, and sum the product of the first confidence level and the weight of the first confidence level with the product of the initial confidence level and the weight of the initial confidence level to obtain the target confidence level.
[0140] In one embodiment, the determining module 420 is specifically used to identify the communication mode of the terminal after determining the initial crystal oscillator deviation and initial confidence level corresponding to the temperature in the temperature frequency offset compensation correspondence.
[0141] If the terminal's communication mode is a non-terrestrial network or a global navigation satellite system and the initial confidence level is less than or equal to a preset threshold, the terminal's communication mode is switched to a terrestrial network to obtain the terminal's channel status information.
[0142] In one embodiment, the determining module 420 is specifically used to determine, based on the product type of the terminal, whether the communication mode of the terminal allows switching to a terrestrial network before switching the communication mode of the terminal to a terrestrial network; and if the communication mode of the terminal allows switching to a terrestrial network.
[0143] Figure 4 Each module in the illustrated device has the ability to implement Figure 1 , Figure 2 and Figure 3 The functions of each step in the process and their corresponding technical effects are described in detail here for the sake of brevity.
[0144] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of this application is shown.
[0145] The electronic device may include a processor 510 and a memory 520 storing computer program instructions.
[0146] Specifically, the processor 510 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0147] Memory 520 may include mass storage for data or instructions. For example, and not limitingly, memory 520 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 520 may include removable or non-removable (or fixed) media. Where appropriate, memory 520 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 520 is non-volatile solid-state memory.
[0148] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of this disclosure.
[0149] The processor 510 reads and executes computer program instructions stored in the memory 520 to implement any of the temperature frequency deviation compensation methods in the above embodiments.
[0150] In one example, the electronic device may also include a communication interface 530 and a bus 540. Wherein, such as Figure 5 As shown, the processor 510, memory 520, and communication interface 530 are connected through bus 540 and complete communication with each other.
[0151] The communication interface 530 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0152] Bus 540 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 540 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.
[0153] This electronic device can perform the temperature frequency offset compensation method described in the embodiments of this application, thereby achieving a combination Figure 1 , Figure 2 and Figure 3 The method for temperature frequency deviation compensation is described.
[0154] Furthermore, in conjunction with the temperature frequency offset compensation method in the above embodiments, this application embodiment can provide a computer-readable storage medium for implementation. This computer-readable storage medium stores computer program instructions; when executed by a processor, these computer program instructions implement any of the temperature frequency offset compensation methods in the above embodiments.
[0155] This application also provides a computer program product, including a computer program that, when executed, implements any of the temperature frequency offset compensation methods described in the above embodiments.
[0156] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0157] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0158] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0159] The aspects of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations 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, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0160] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A method for temperature frequency deviation compensation, characterized in that, The method includes: The temperature frequency offset compensation correspondence of the terminal and the temperature of the environment are obtained. The temperature frequency offset compensation correspondence includes the correspondence between temperature and crystal oscillator deviation and confidence level. In the temperature frequency offset compensation correspondence, the initial crystal oscillator deviation and initial confidence level corresponding to the temperature are determined; The channel state information of the terminal is obtained, including frequency offset, signal-to-noise ratio, and Doppler shift. A first confidence level is determined based on the signal-to-noise ratio and the Doppler frequency shift; The first deviation is obtained by calculating the difference between the product of the first confidence level and the Doppler frequency shift and the frequency offset; The target crystal oscillator deviation is determined based on the first deviation and the initial crystal oscillator deviation; The target confidence level is determined based on the first confidence level and the initial confidence level; In the temperature frequency offset compensation correspondence, the values of the initial crystal oscillator deviation and the initial confidence level corresponding to the temperature are replaced with the values of the target crystal oscillator deviation and the target confidence level; The frequency offset of the terminal is compensated based on the target crystal oscillator deviation.
2. The method according to claim 1, characterized in that, Determining the first confidence level based on the signal-to-noise ratio and the Doppler frequency shift includes: In the preset mapping relationship between signal-to-noise ratio and signal-to-noise ratio mapping value, a target signal-to-noise ratio mapping value corresponding to the signal-to-noise ratio is determined, and the target signal-to-noise ratio mapping value ranges from 0 to 1; In the preset mapping relationship between Doppler frequency shift and Doppler frequency shift mapping value, the target Doppler frequency shift mapping value corresponding to the Doppler frequency shift is determined, and the value range of the target Doppler frequency shift mapping value is 0 to 1; The first confidence level is obtained by multiplying the target signal-to-noise ratio mapping value and the target Doppler frequency shift mapping value.
3. The method according to claim 1, characterized in that, The step of determining the target crystal oscillator deviation based on the first deviation and the initial crystal oscillator deviation includes: The weight of the first deviation is determined by the ratio of the first confidence level to the initial confidence level. The initial crystal oscillator deviation is obtained by subtracting the first deviation from the value 1. The target crystal oscillator deviation is obtained by summing the product of the first deviation and the weight of the first deviation with the product of the initial crystal oscillator deviation and the weight of the initial crystal oscillator deviation.
4. The method according to claim 1, characterized in that, Determining the target confidence level based on the first confidence level and the initial confidence level includes: Obtain the weight of the first confidence level, subtract the value 1 from the weight of the first confidence level to obtain the weight of the initial confidence level, and sum the product of the first confidence level and the weight of the first confidence level with the product of the initial confidence level and the weight of the initial confidence level to obtain the target confidence level.
5. The method according to claim 1, characterized in that, In the temperature frequency offset compensation correspondence, after determining the initial crystal oscillator deviation and initial confidence level corresponding to the temperature, the method further includes: Identify the communication mode of the terminal; If the terminal's communication mode is a non-terrestrial network or a global navigation satellite system and the initial confidence level is less than or equal to a preset threshold, the terminal's communication mode is switched to a terrestrial network.
6. The method according to claim 5, characterized in that, Before switching the communication mode of the terminal to a terrestrial network, the method further includes: Based on the product type of the terminal, determine whether the communication mode of the terminal allows switching to a terrestrial network; If the communication mode of the terminal allows switching to a terrestrial network, then switch the communication mode of the terminal to a terrestrial network.
7. A device for temperature frequency deviation compensation, characterized in that, The device includes: The acquisition module is used to acquire the temperature frequency offset compensation correspondence of the terminal and the temperature of the environment. The temperature frequency offset compensation correspondence includes the correspondence between temperature and crystal oscillator deviation and confidence level. The determination module is used to determine the initial crystal oscillator deviation and initial confidence level corresponding to the temperature in the temperature frequency offset compensation correspondence; The acquisition module is also used to acquire the channel state information of the terminal, the channel state information including frequency offset, signal-to-noise ratio and Doppler frequency shift; The determining module is further configured to determine a first confidence level based on the signal-to-noise ratio and the Doppler frequency shift; The calculation module is used to calculate the difference between the product of the first confidence level and the Doppler frequency shift and the frequency offset to obtain the first deviation; The determining module is further configured to determine the target crystal oscillator deviation based on the first deviation and the initial crystal oscillator deviation; The determining module is further configured to determine a target confidence level based on the first confidence level and the initial confidence level; The replacement module is used to replace the values of the initial crystal oscillator deviation and the initial confidence level corresponding to the temperature in the temperature frequency offset compensation correspondence with the values of the target crystal oscillator deviation and the target confidence level; The compensation module is used to compensate for the target crystal oscillator deviation and the frequency deviation of the terminal.
8. An electronic device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the temperature frequency offset compensation method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the temperature frequency offset compensation method as described in any one of claims 1-6.
10. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device performs the temperature frequency offset compensation method as described in any one of claims 1-6.
Citation Information
Patent Citations
Frequency offset compensation method and system, electronic equipment and computer readable storage medium
CN110855590A
Frequency offset correction
US20240223415A1