A frequency offset control method and device, and an electronic device
By considering the channel state and signal-to-noise ratio of multiple carriers in the terminal, and using components such as voltage-controlled oscillator and phase-locked loop for frequency offset adjustment, the problem of inaccurate frequency offset adjustment in the prior art is solved, and higher frequency offset compensation accuracy is achieved.
Patent Information
- Application Number
- CN202310582367.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-23
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2043-05-23
AI Technical Summary
The accuracy of frequency offset adjustment in existing technologies is relatively low, especially in 4G and 5G terminals, where the shared crystal oscillator among multi-carrier components leads to insufficient precision in frequency offset adjustment.
By considering the channel states corresponding to multiple carriers, especially the signal-to-noise ratio, the weight values of the carriers are determined, and the frequency offset is adjusted using the control voltage of the voltage-controlled oscillator. Further adjustments are made using a phase-locked loop and a digital oscillator to improve the accuracy of the frequency offset adjustment.
It improves the accuracy of frequency offset adjustment, ensures the frequency offset compensation effect of the terminal in a multi-carrier environment, and reduces the error of frequency offset adjustment.
Smart Images

Figure CN116684237B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and more specifically, to a frequency offset control method and apparatus, and electronic equipment. Background Technology
[0002] In terminal communication systems, frequency offset adjustment can be performed on the terminal to compensate for the loss of baseband computing performance caused by the frequency offset of the terminal relative to the base station. The main causes of terminal frequency offset include: deviations due to the stability of the crystal oscillator in the terminal; and deviations due to Doppler variations caused by terminal movement and relative changes in the base station's position.
[0003] In the implementation of 4G and 5G terminals, to reduce costs, multi-carrier components (CCs) or cells often share a single crystal oscillator (XO). There are generally three ways to adjust the crystal oscillator: adjusting the voltage-controlled oscillator (VCO), adjusting the digitally controlled oscillator (NCO), and adjusting the phase-locked loop (PLL). In existing technologies, frequency offset adjustment is typically performed based on the current service status of the CC. However, the accuracy of frequency offset adjustment using these methods is relatively low. Summary of the Invention
[0004] The purpose of this application is to provide a frequency offset control method, device, and electronic device to solve the technical problem of low accuracy in frequency offset adjustment in the prior art.
[0005] In a first aspect, embodiments of this application provide a frequency offset control method, which is applied to a terminal, the terminal including a voltage-controlled oscillator, the frequency offset control method including: determining a second frequency offset corresponding to the multiple carriers based on multiple channel states corresponding to multiple carriers and multiple first frequency offsets; and adjusting a target control voltage corresponding to the voltage-controlled oscillator based on the second frequency offset.
[0006] In the above scheme, since different carriers correspond to different channel states, during the frequency offset control of the terminal, the channel states corresponding to multiple carriers can be introduced in addition to the first frequency offset corresponding to multiple carriers. Based on these channel states and the first frequency offset, a second frequency offset that needs adjustment is determined, and the control voltage of the voltage-controlled oscillator is adjusted using this second frequency offset, thereby achieving frequency offset adjustment of the terminal. Compared with the prior art that adjusts frequency offset based on the current service state of the carrier, this scheme improves the accuracy of frequency offset adjustment because it considers the channel states corresponding to multiple carriers during the adjustment process.
[0007] In an optional implementation, the channel state includes the signal-to-noise ratio (SNR), and determining the second frequency offset corresponding to the multiple carriers based on the multiple channel states corresponding to the multiple carriers and the multiple first frequency offsets includes: determining a weight value for each first frequency offset corresponding to each carrier based on the SNR of each carrier among the multiple carriers; and calculating a weighted average of the multiple first frequency offsets based on the determined weight values, as the second frequency offset. In the above scheme, since the SNR can characterize the accuracy of the channel frequency offset estimation corresponding to the carrier, the channel state can include the SNR; by determining the weight value corresponding to the carrier based on the SNR of multiple carriers, the weight of the frequency offset with higher accuracy can be increased and the weight of the frequency offset with lower accuracy can be reduced, thereby improving the accuracy of frequency offset adjustment.
[0008] In optional implementations, the weight value is proportional to the signal-to-noise ratio (SNR); and / or, when the SNR corresponding to a carrier is less than the SNR threshold, the weight value corresponding to that carrier is 0 or the first frequency offset corresponding to that carrier is discarded. In the above scheme, since the higher the SNR of the channel corresponding to the carrier, the higher the accuracy of its estimated frequency offset, the weight value corresponding to the carrier can be proportional to the SNR corresponding to the carrier in determining the second frequency offset that needs to be adjusted, thereby improving the accuracy of frequency offset adjustment. Furthermore, when the SNR corresponding to the carrier is less than the SNR threshold, the weight value corresponding to that carrier can also be directly determined to be 0 or the first frequency offset corresponding to that carrier can be directly discarded, which can also improve the accuracy of frequency offset adjustment.
[0009] In an optional implementation, adjusting the target control voltage of the voltage-controlled oscillator (VCO) according to the second frequency offset includes: determining the target control voltage based on the second frequency offset and a correspondence table; wherein the correspondence table characterizes the relationship between the frequency offset and the control voltage of the VCO. In the above scheme, since there is a correspondence between the output frequency of the VCO and its control voltage, the target control voltage to which the VCO needs to be adjusted can be determined by using the second frequency offset to be adjusted and the corresponding correspondence table for the VCO. Therefore, frequency offset adjustment of the terminal can be achieved by adjusting the control voltage of the VCO to the aforementioned target control voltage.
[0010] In an optional implementation, determining the target control voltage based on the second frequency offset and the correspondence table includes: determining a target frequency offset based on the second frequency offset in the correspondence table; wherein the target frequency offset is the frequency offset that is smaller than the second frequency offset and has the smallest difference from the second frequency offset, or the frequency offset that has the smallest absolute value of the difference from the second frequency offset; and determining the control voltage corresponding to the target frequency offset in the correspondence table as the target control voltage. In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the voltage-controlled oscillator, the magnitude of the second frequency offset that needs to be adjusted may be between two adjacent frequency offsets in the correspondence table. In this case, the frequency offset that is smaller than the second frequency offset and has the smallest difference from the second frequency offset in the correspondence table, or the frequency offset that has the smallest absolute value of the difference from the second frequency offset in the correspondence table, can be determined as the target frequency offset for table lookup, thereby enabling frequency offset adjustment of the terminal as accurately as possible.
[0011] In an optional implementation, the terminal further includes a digital oscillator. After adjusting the target control voltage corresponding to the voltage-controlled oscillator according to the second frequency offset, the method further includes: for each carrier, calculating the difference between the second frequency offset and the target frequency offset corresponding to the carrier, as the third frequency offset corresponding to the carrier; if the third frequency offset is not greater than a frequency offset threshold, then adjusting the phase of the digital oscillator corresponding to the carrier according to the third frequency offset. In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the voltage-controlled oscillator, adjusting only the voltage-controlled oscillator may not be sufficient to adjust to the second frequency offset. Therefore, if the residual frequency offset between the second frequency offset and the target frequency offset is small, the digital oscillator can be adjusted in addition to adjusting the voltage-controlled oscillator, thereby enabling the terminal to adjust its frequency offset as accurately as possible.
[0012] In an optional implementation, the terminal further includes a phase-locked loop (PLL) and a digital oscillator. After adjusting the target control voltage corresponding to the voltage-controlled oscillator (VCO) according to the second frequency offset, the method further includes: for each carrier, calculating the difference between the second frequency offset and the target frequency offset, as the third frequency offset corresponding to the carrier; if the third frequency offset is greater than a frequency offset threshold, adjusting the multiplication ratio of the PLL corresponding to the carrier according to the portion of the third frequency offset that is greater than the frequency offset threshold, and adjusting the phase of the digital oscillator corresponding to the carrier according to the frequency offset threshold. In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the VCO, adjusting only the VCO may not be sufficient to adjust to the second frequency offset. Therefore, if the residual frequency offset between the second frequency offset and the target frequency offset is large, the PLL can be adjusted in addition to adjusting the VCO, thereby achieving the most accurate frequency offset adjustment for the terminal.
[0013] Secondly, embodiments of this application provide a frequency offset control device, which is applied to a terminal. The terminal includes a voltage-controlled oscillator (VCO). The frequency offset control device includes: a first determining module, configured to determine a second frequency offset corresponding to the multiple carriers based on multiple channel states corresponding to multiple carriers and multiple first frequency offsets; and a second determining module, configured to adjust a target control voltage corresponding to the VCO based on the second frequency offset.
[0014] In the above scheme, since different carriers correspond to different channel states, during the frequency offset control of the terminal, the channel states corresponding to multiple carriers can be introduced in addition to the first frequency offset corresponding to multiple carriers. Based on these channel states and the first frequency offset, a second frequency offset that needs adjustment is determined, and the control voltage of the voltage-controlled oscillator is adjusted using this second frequency offset, thereby achieving frequency offset adjustment of the terminal. Compared with the prior art that adjusts frequency offset based on the current service state of the carrier, this scheme improves the accuracy of frequency offset adjustment because it considers the channel states corresponding to multiple carriers during the adjustment process.
[0015] In an optional implementation, the channel state includes the signal-to-noise ratio (SNR), and the first determining module is specifically configured to: determine a weight value for a first frequency offset corresponding to each of the plurality of carriers based on the SNR of each carrier; and calculate a weighted average of the plurality of first frequency offsets based on the determined weight values, as the second frequency offset. In the above scheme, since the SNR can characterize the accuracy of the channel frequency offset estimation corresponding to a carrier, the channel state can include the SNR; by determining the weight value corresponding to a carrier based on the SNR of the plurality of carriers, the weight of frequency offsets with higher accuracy can be increased and the weight of frequency offsets with lower accuracy can be decreased, thereby improving the accuracy of frequency offset adjustment.
[0016] In optional implementations, the weight value is proportional to the signal-to-noise ratio (SNR); and / or, when the SNR corresponding to a carrier is less than the SNR threshold, the weight value corresponding to that carrier is 0 or the first frequency offset corresponding to that carrier is discarded. In the above scheme, since the higher the SNR of the channel corresponding to the carrier, the higher the accuracy of its estimated frequency offset, the weight value corresponding to the carrier can be proportional to the SNR corresponding to the carrier in determining the second frequency offset that needs to be adjusted, thereby improving the accuracy of frequency offset adjustment. Furthermore, when the SNR corresponding to the carrier is less than the SNR threshold, the weight value corresponding to that carrier can also be directly determined to be 0 or the first frequency offset corresponding to that carrier can be directly discarded, which can also improve the accuracy of frequency offset adjustment.
[0017] In an optional implementation, the second determining module is specifically used to: determine the target control voltage based on the second frequency offset and the corresponding relationship table; wherein the corresponding relationship table is used to characterize the correspondence between the frequency offset and the control voltage of the voltage-controlled oscillator. In the above scheme, since there is a correspondence between the output frequency of the voltage-controlled oscillator and its control voltage, the target control voltage to which the voltage-controlled oscillator needs to be adjusted can be determined by using the second frequency offset that needs to be adjusted and the corresponding relationship table for the voltage-controlled oscillator. Therefore, the frequency offset of the terminal can be adjusted by adjusting the control voltage of the voltage-controlled oscillator to the above-mentioned target control voltage.
[0018] In an optional implementation, the second determining module is specifically used to: determine a target frequency offset based on the second frequency offset in the correspondence table; wherein the target frequency offset is the frequency offset that is smaller than the second frequency offset and has the smallest difference from the second frequency offset, or the frequency offset that has the smallest absolute value of the difference from the second frequency offset; and determine the control voltage corresponding to the target frequency offset in the correspondence table as the target control voltage. In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the voltage-controlled oscillator, the magnitude of the second frequency offset that needs to be adjusted may be between two adjacent frequency offsets in the correspondence table. In this case, the frequency offset that is smaller than the second frequency offset and has the smallest difference from the second frequency offset in the correspondence table, or the frequency offset that has the smallest absolute value of the difference from the second frequency offset in the correspondence table, can be determined as the target frequency offset for table lookup, thereby enabling frequency offset adjustment of the terminal as accurately as possible.
[0019] In an optional implementation, the terminal further includes a digital oscillator, and the frequency offset control device further includes: a first calculation module, used to calculate, for each carrier, the difference between the second frequency offset corresponding to the carrier and the target frequency offset, as the third frequency offset corresponding to the carrier; and a first adjustment module, used to adjust the phase of the digital oscillator corresponding to the carrier according to the third frequency offset if the third frequency offset is not greater than a frequency offset threshold. In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the voltage-controlled oscillator, adjusting only the voltage-controlled oscillator may not be sufficient to adjust to the second frequency offset. Therefore, if the residual frequency offset between the second frequency offset and the target frequency offset is small, the digital oscillator can be adjusted in addition to adjusting the voltage-controlled oscillator, thereby enabling the terminal to adjust its frequency offset as accurately as possible.
[0020] In an optional implementation, the terminal further includes a phase-locked loop (PLL) and a digital oscillator (DOX). The frequency offset control device further includes: a second calculation module, used to calculate, for each carrier, the difference between the second frequency offset corresponding to the carrier and the target frequency offset, as the third frequency offset corresponding to the carrier; and a second adjustment module, used to adjust the multiplication ratio of the PLL corresponding to the carrier based on the portion of the third frequency offset exceeding the frequency offset threshold if the third frequency offset is greater than the frequency offset threshold, and to adjust the phase of the DVO corresponding to the carrier based on the frequency offset threshold. In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the voltage-controlled oscillator (VCO), adjusting only the VCO may not be sufficient to adjust to the second frequency offset. Therefore, if the residual frequency offset between the second frequency offset and the target frequency offset is large, the PLL can be adjusted in addition to adjusting the VCO, thereby enabling the terminal to adjust its frequency offset as accurately as possible.
[0021] Thirdly, embodiments of this application provide an electronic device, including: a processor, a memory, and a bus; the processor and the memory communicate with each other through the bus; the memory stores computer program instructions that can be executed by the processor, and the processor can execute the frequency offset control method as described in the first aspect by calling the computer program instructions.
[0022] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a computer, cause the computer to perform the frequency offset control method as described in the first aspect.
[0023] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, embodiments of this application are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0024] 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. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 A flowchart of a frequency offset control method provided in an embodiment of this application;
[0026] Figure 2 A flowchart of another frequency offset control method provided in the embodiments of this application;
[0027] Figure 3 A structural block diagram of a frequency offset control device provided in an embodiment of this application;
[0028] Figure 4 This is a structural block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0029] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0030] Please refer to Figure 1 , Figure 1 A flowchart of a frequency offset control method is provided in this application embodiment. The frequency offset control method is applied to a terminal, which includes a voltage-controlled oscillator. The frequency offset control method may include the following steps:
[0031] Step S101: Determine the second frequency offset corresponding to the multiple carriers based on the multiple channel states corresponding to the multiple carriers and the multiple first frequency offsets.
[0032] Step S102: Adjust the target control voltage of the voltage-controlled oscillator according to the second frequency deviation.
[0033] Specifically, the frequency offset control method provided in this application embodiment can be applied to a terminal, wherein the terminal includes a crystal oscillator. It is understood that the terminal may receive signals from one or more base stations. Since the carrier frequency corresponding to each carrier may be different, in the above step S101, frequency offset estimation can be performed for multiple carriers. The multiple carriers include the carrier corresponding to each of the multiple signals received by the terminal, and multiple signals are used for frequency offset estimation among the multiple carriers.
[0034] In step S101 above, the multiple channel states corresponding to multiple carriers include the channel state corresponding to each of the multiple carriers. The embodiments of this application do not specifically limit the implementation of the above channel states; those skilled in the art can make appropriate adjustments according to actual circumstances. For example, channel states may include signal-to-noise ratio, channel quality, etc.
[0035] The multiple first frequency offsets corresponding to multiple carriers include the frequency offset determined by frequency offset estimation for each of the multiple carriers; it can be understood that the same or different frequency offset estimation methods can be used for each carrier when performing frequency offset estimation. The second frequency offset corresponding to multiple carriers includes a frequency offset determined based on the multiple channel states corresponding to the multiple carriers and the multiple first frequency offsets.
[0036] In other words, after obtaining the channel states corresponding to multiple carriers and the first frequency offsets corresponding to multiple carriers, the terminal can determine the aforementioned second frequency offset based on the multiple channel states corresponding to multiple carriers and the multiple first frequency offsets.
[0037] It should be noted that the embodiments of this application do not specifically limit the specific implementation of determining the second frequency offset based on multiple channel states corresponding to multiple carriers and multiple first frequency offsets. Those skilled in the art can make appropriate adjustments according to the actual situation. For example, the weights corresponding to the first frequency offsets can be determined according to the channel states, and then the weighted average of the first frequency offsets can be determined as the second frequency offset; or, the first frequency offsets can be filtered according to the channel states, and the first frequency offset corresponding to the carrier with the optimal channel state can be determined as the second frequency offset, etc.
[0038] In one implementation, the terminal may include a voltage-controlled oscillator (VCO). The VCO can be understood as a crystal oscillator within the terminal, whose voltage can be controlled by a control word to change the output power. For example, the voltage of the VCO can be controlled by a 12-bit control word, with each step of the control word controlling one voltage level. Since frequency offset can be understood as a deviation of the crystal oscillator (e.g., a crystal oscillator deviation of 0.1 kHz will cause a 3 GHz carrier frequency to deviate by 100 Hz), frequency offset adjustment can be achieved by adjusting the control voltage of the VCO.
[0039] In step S102 above, the target control voltage corresponding to the voltage-controlled oscillator in the terminal can be determined based on the second frequency offset obtained in step S101 above. Therefore, by adjusting the control voltage of the voltage-controlled oscillator to the target control voltage, the frequency offset of the terminal can be adjusted, thereby reducing the frequency offset of multiple signals received by the terminal.
[0040] It should be noted that the embodiments of this application do not specifically limit the specific implementation of determining the target control voltage based on the second frequency offset, and those skilled in the art can make appropriate adjustments according to the actual situation. For example, the target control voltage corresponding to the second frequency offset can be determined according to a predetermined correspondence; or, the corresponding target control voltage can be calculated based on the second frequency offset, etc.
[0041] In the above scheme, since different carriers correspond to different channel states, during the frequency offset control of the terminal, the channel states corresponding to multiple carriers can be introduced in addition to the first frequency offset corresponding to multiple carriers. Based on these channel states and the first frequency offset, a second frequency offset that needs adjustment is determined, and the control voltage of the voltage-controlled oscillator is adjusted using this second frequency offset, thereby achieving frequency offset adjustment of the terminal. Compared with the prior art that adjusts frequency offset based on the current service state of the carrier, this scheme improves the accuracy of frequency offset adjustment because it considers the channel states corresponding to multiple carriers during the adjustment process.
[0042] Furthermore, based on the above embodiments, the channel state may include the signal-to-noise ratio. In this case, step S101 may specifically include the following steps:
[0043] Step 1) Determine the weight value of the first frequency offset for each carrier based on the signal-to-noise ratio of each carrier among the multiple carriers.
[0044] Step 2) Calculate the weighted average of multiple first frequency offsets based on the determined weight values, and use it as the second frequency offset.
[0045] Specifically, the signal-to-noise ratio (SNR) can characterize the accuracy of the channel frequency offset estimation corresponding to the carrier. Since the higher the SNR of the channel corresponding to the carrier, the higher the accuracy of its estimated frequency offset, the weight corresponding to the first frequency offset can be determined based on the SNR, and the first frequency offset can be weighted based on the above weights to obtain the corresponding second frequency offset.
[0046] In step 1) above, this application embodiment does not specifically limit the specific implementation method of determining the weight corresponding to the first frequency offset based on the signal-to-noise ratio. Those skilled in the art can make appropriate adjustments according to the actual situation. For example, the signal-to-noise ratio can be directly determined as the corresponding weight; or, the signal-to-noise ratio can be proportional to the corresponding weight, etc.
[0047] In the above scheme, since the signal-to-noise ratio (SNR) can characterize the accuracy of the channel frequency offset estimation corresponding to the carrier, the channel state can include the SNR. By determining the weight value corresponding to the carrier based on the SNR of multiple carriers, the weight of the frequency offset with higher accuracy can be increased and the weight of the frequency offset with lower accuracy can be reduced, thereby improving the accuracy of frequency offset adjustment.
[0048] Furthermore, based on the above embodiments, the weight value can be proportional to the signal-to-noise ratio.
[0049] In the above scheme, since the higher the signal-to-noise ratio of the channel corresponding to the carrier, the higher the accuracy of the estimated frequency offset, the weight value corresponding to the carrier can be proportional to the signal-to-noise ratio of the carrier in the process of determining the second frequency offset that needs to be adjusted, thereby improving the accuracy of frequency offset adjustment.
[0050] Furthermore, based on the above embodiments, when the signal-to-noise ratio corresponding to a carrier is less than the signal-to-noise ratio threshold, the weight value corresponding to that carrier is 0 or the first frequency offset corresponding to that carrier is discarded.
[0051] In the above scheme, when the signal-to-noise ratio corresponding to the carrier is less than the signal-to-noise ratio threshold, the weight value corresponding to the carrier can be directly determined to be 0 or the first frequency offset corresponding to the carrier can be directly discarded, thereby improving the accuracy of frequency offset adjustment.
[0052] Furthermore, based on the above embodiments, before step S101, the frequency offset control method provided in this application embodiment may further include the following steps:
[0053] Step 1) Determine whether the signal-to-noise ratio (SNR) of multiple carriers is greater than the SNR threshold.
[0054] Step 2): If the signal-to-noise ratios (SNRs) of multiple carriers are all greater than the SNR threshold, then determine the weight value corresponding to each first frequency offset based on the SNRs of the multiple carriers.
[0055] Step 3): If the signal-to-noise ratio (SNR) of a certain carrier is not greater than the SNR threshold, then discard the first frequency offset corresponding to that carrier or set the weight value of that carrier to 0.
[0056] It is understandable that steps 2) and 3) above only represent branches under two different circumstances. Therefore, steps 2) and 3) are not executed in any particular order.
[0057] Furthermore, based on the above embodiments, step S102 may specifically include the following steps:
[0058] The target control voltage is determined based on the second frequency offset and the corresponding relationship table.
[0059] Specifically, the correspondence table is used to characterize the correspondence between frequency offset and control voltage of voltage-controlled oscillator for this terminal. That is, the correspondence table includes multiple frequency offsets, and each frequency offset corresponds to the control voltage of a voltage-controlled oscillator.
[0060] It is understood that the above correspondence table can be predetermined and stored in the terminal. The following example illustrates a specific implementation method for determining the above correspondence table provided by this application: The voltage-controlled oscillator is scanned from the lowest voltage to the highest voltage to obtain the crystal output frequency corresponding to each voltage; by determining the frequency deviation corresponding to a typical frequency value, the voltage corresponding to the frequency deviation is determined, thereby determining the above correspondence table.
[0061] In the above steps, a lookup can be performed in the corresponding relationship table based on the second frequency offset to find a frequency offset that is equal to the second frequency offset, and the control voltage corresponding to the found frequency offset is determined as the target control voltage.
[0062] In the above scheme, since there is a correspondence between the output frequency of the voltage-controlled oscillator (VCO) and its control voltage, the target control voltage that the VCO needs to be adjusted to can be determined by referring to the second frequency offset that needs to be adjusted and the corresponding relationship table for the VCO. Therefore, the frequency offset of the terminal can be adjusted by adjusting the control voltage of the VCO to the aforementioned target control voltage.
[0063] Furthermore, based on the above embodiments, as one implementation method, the step of determining the target control voltage according to the second frequency offset and the corresponding relationship table may specifically include the following steps:
[0064] Step 1): Determine the target frequency offset in the corresponding relationship table based on the second frequency offset.
[0065] Step 2) Determine the control voltage corresponding to the target frequency offset in the correspondence table as the target control voltage.
[0066] Specifically, in step 1) above, as one implementation, the target frequency offset can be the frequency offset that is less than the second frequency offset and has the smallest difference with the second frequency offset; as another implementation, the target frequency offset can be the frequency offset with the smallest absolute value of the difference with the second frequency offset.
[0067] In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the voltage-controlled oscillator, the magnitude of the second frequency deviation that needs to be adjusted may fall between two adjacent frequency deviations in the correspondence table. In this case, the frequency deviation in the correspondence table that is smaller than the second frequency deviation and has the smallest difference from it, or the frequency deviation in the correspondence table that has the smallest absolute value of the difference from the second frequency deviation, can be determined as the target frequency deviation for table lookup. This allows for the most accurate frequency deviation adjustment of the terminal.
[0068] Furthermore, based on the above embodiments, since there is a minimum precision for adjusting the control voltage and output frequency of the voltage-controlled oscillator, and the magnitude of this minimum precision is fixed for the same terminal, adjusting only the voltage-controlled oscillator may not be sufficient to achieve the second frequency deviation. For example, assuming the minimum precision is 20Hz, if an adjustment to 22Hz is required, there will be a residual frequency deviation of 2Hz.
[0069] In the above situation, a phase-locked loop or a digitally controlled oscillator can be introduced to further adjust the frequency offset of the terminal.
[0070] In one implementation, the terminal may further include a digital oscillator. In this implementation, after step S102 described above, the frequency offset control method provided in this application embodiment may further include the following steps:
[0071] Step 1): For each carrier, calculate the difference between the second frequency offset and the target frequency offset corresponding to the carrier, and use it as the third frequency offset corresponding to the carrier.
[0072] Step 2): If the third frequency offset is not greater than the frequency offset threshold, then adjust the phase of the digital oscillator corresponding to the carrier according to the third frequency offset.
[0073] Specifically, in step 1) above, for each carrier, the second frequency offset refers to the frequency offset that needs to be adjusted, while the target frequency offset refers to the frequency offset that has been adjusted after adjusting the voltage-controlled oscillator. Therefore, the residual frequency offset, i.e. the third frequency offset mentioned above, can be determined by calculating the difference between the second frequency offset and the target frequency offset.
[0074] In step 2) above, the digital oscillator is located on the transmit / receive link corresponding to the carrier. Since adjusting the digital oscillator only adjusts the frequency offset at the current time, and the terminal needs to readjust it the next time it receives a signal, the digital oscillator can be adjusted only if the third frequency offset is not greater than the frequency offset threshold.
[0075] The digital oscillator can adjust the signal frequency offset by adjusting its digital inputs. In other words, the digital oscillator can multiply the signal by a phase at each sampling point to achieve frequency offset adjustment. Therefore, the phase of the digital oscillator can be determined based on the third frequency offset, and each sampling point can be multiplied by this phase.
[0076] It is understandable that, in this implementation, high-accuracy frequency offset adjustment can be achieved by adjusting the voltage-controlled oscillator and the digital oscillator.
[0077] In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the voltage-controlled oscillator (VCO), adjusting only the VCO may not be sufficient to achieve the second frequency offset. Therefore, if the residual frequency offset between the second frequency offset and the target frequency offset is small, the digital oscillator can be adjusted in addition to the VCO adjustment, thereby achieving the most accurate frequency offset adjustment for the terminal.
[0078] In another implementation, the terminal may further include a phase-locked loop and a digital oscillator. In this implementation, after step S102 described above, the frequency offset control method provided in this application embodiment may further include the following steps:
[0079] Step 1): For each carrier, calculate the difference between the second frequency offset and the target frequency offset corresponding to the carrier, and use it as the third frequency offset corresponding to the carrier.
[0080] Step 2): If the third frequency offset is greater than the frequency offset threshold, adjust the multiplication ratio of the phase-locked loop corresponding to the carrier according to the portion of the third frequency offset that is greater than the frequency offset threshold, and adjust the phase of the digital oscillator corresponding to the carrier according to the frequency offset threshold.
[0081] Specifically, in step 1) above, for each carrier, the second frequency offset refers to the frequency offset that needs to be adjusted, while the target frequency offset refers to the frequency offset that has been adjusted after adjusting the voltage-controlled oscillator. Therefore, the residual frequency offset, i.e. the third frequency offset mentioned above, can be determined by calculating the difference between the second frequency offset and the target frequency offset.
[0082] In step 2) above, the phase-locked loop (PLL) has a settling time. If the PLL is adjusted too many times, the settling time may not meet the timing requirements. Therefore, the PLL can be adjusted only when the third frequency offset is greater than the frequency offset threshold, based on the portion of the third frequency offset that exceeds the frequency offset threshold.
[0083] The phase-locked loop (PLL) stores a frequency multiplication ratio, which represents the multiple relationship between the carrier frequency and the crystal oscillator frequency. When the terminal experiences frequency deviation, the frequency deviation can be adjusted by changing the frequency multiplication ratio in the PLL. Therefore, a new frequency multiplication ratio for the PLL can be determined based on the portion of the third frequency deviation that exceeds the frequency deviation threshold, and the PLL's frequency multiplication ratio can be adjusted to the aforementioned new ratio.
[0084] Understandably, in this implementation, high-accuracy frequency offset adjustment can be achieved by adjusting the voltage-controlled oscillator and the phase-locked loop.
[0085] Then, based on the remaining part of the third frequency offset, which is equal to the frequency offset threshold, the phase of the digital oscillator can be determined, and each sampling point can be multiplied by this phase to adjust the digital oscillator.
[0086] In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the voltage-controlled oscillator (VCO), adjusting only the VCO may not be sufficient to achieve the second frequency deviation. Therefore, if the residual frequency deviation between the second and target frequency deviations is large, the phase-locked loop (PLL) can be adjusted in addition to adjusting the VCO, thereby achieving the most accurate frequency deviation adjustment for the terminal.
[0087] Please refer to Figure 2 , Figure 2 A flowchart of another frequency offset control method provided in this application embodiment, the frequency offset control method may include the following steps:
[0088] Step 1) Determine the second frequency offset corresponding to the multiple carriers based on the signal-to-noise ratio and the first frequency offset.
[0089] Step 2) Determine whether the signal-to-noise ratio (SNR) of multiple carriers is greater than the SNR threshold.
[0090] In one implementation method, the aforementioned signal-to-noise ratio (SNR) threshold is... th =5dB.
[0091] Step 3): If the signal-to-noise ratio is greater than that of the carrier, then the weight value corresponding to each first frequency offset is determined based on the signal-to-noise ratio of the multiple carriers; if the signal-to-noise ratio is not greater than that of the carrier, then the first frequency offset corresponding to the carrier is discarded or the weight value corresponding to the carrier is determined to be 0.
[0092] Step 4): After traversing each carrier, calculate the weighted average of multiple first frequency offsets based on the determined weight values, and use it as the second frequency offset.
[0093] Step 4) above can be expressed using the following formula:
[0094]
[0095] In the above formula, AFC represents the second frequency offset, and FOE... cci (i = 0, ..., x) represents multiple first frequency offsets, SNR cci (i = 0, ..., x) represents multiple signal-to-noise ratios, where multiple weight values are equal to multiple signal-to-noise ratios.
[0096] Step 5): Determine the target control voltage based on the second frequency offset and the corresponding relationship table.
[0097] Step 6): For each carrier, calculate the difference between the second frequency offset and the target frequency offset corresponding to the carrier, and use it as the third frequency offset corresponding to the carrier.
[0098] Step 6) above can be represented by the following formula:
[0099] FOC res_ccx =AFC-AFC VCO ;
[0100] In the above formula, FOC res_ccx Indicates the third frequency offset, AFC VCO This indicates the target frequency offset.
[0101] Step 7) Determine whether the third frequency offset is greater than the frequency offset threshold.
[0102] In one implementation method, the aforementioned frequency offset threshold FOE th =50Hz.
[0103] Step 8): If the frequency offset is not greater than the third frequency offset, adjust the phase of the digital oscillator corresponding to the carrier according to the third frequency offset; if the frequency offset is greater than the third frequency offset, adjust the multiplication ratio of the phase-locked loop corresponding to the carrier according to the portion of the third frequency offset that is greater than the frequency offset threshold, and adjust the phase of the digital oscillator corresponding to the carrier according to the frequency offset threshold.
[0104] Please refer to Figure 3 , Figure 3 This application provides a structural block diagram of a frequency offset control device. The frequency offset control device is applied to a terminal, which includes a voltage-controlled oscillator. The frequency offset control device 300 may include: a first determining module 301, used to determine a second frequency offset corresponding to the multiple carriers based on multiple channel states corresponding to multiple carriers and multiple first frequency offsets; and a second determining module 302, used to adjust the target control voltage corresponding to the voltage-controlled oscillator based on the second frequency offset.
[0105] In the above scheme, since different carriers correspond to different channel states, during the frequency offset control of the terminal, the channel states corresponding to multiple carriers can be introduced in addition to the first frequency offset corresponding to multiple carriers. Based on these channel states and the first frequency offset, a second frequency offset that needs adjustment is determined, and the control voltage of the voltage-controlled oscillator is adjusted using this second frequency offset, thereby achieving frequency offset adjustment of the terminal. Compared with the prior art that adjusts frequency offset based on the current service state of the carrier, this scheme improves the accuracy of frequency offset adjustment because it considers the channel states corresponding to multiple carriers during the adjustment process.
[0106] Furthermore, based on the above embodiments, the channel state includes the signal-to-noise ratio (SNR), and the first determining module 301 is specifically used to: determine the weight value of the first frequency offset corresponding to each carrier according to the SNR of each carrier among the plurality of carriers; and calculate the weighted average of the plurality of first frequency offsets according to the determined weight values, as the second frequency offset.
[0107] In the above scheme, since the signal-to-noise ratio (SNR) can characterize the accuracy of the channel frequency offset estimation corresponding to the carrier, the channel state can include the SNR. By determining the weight value corresponding to the carrier based on the SNR of multiple carriers, the weight of the frequency offset with higher accuracy can be increased and the weight of the frequency offset with lower accuracy can be reduced, thereby improving the accuracy of frequency offset adjustment.
[0108] Furthermore, based on the above embodiments, the weight value is proportional to the signal-to-noise ratio; and / or, when the signal-to-noise ratio corresponding to a carrier is less than the signal-to-noise ratio threshold, the weight value corresponding to that carrier is 0 or the first frequency offset corresponding to that carrier is discarded.
[0109] In the above scheme, since a higher signal-to-noise ratio (SNR) of the channel corresponding to the carrier indicates higher accuracy of the estimated frequency offset, the weight value corresponding to the carrier can be proportional to the SNR of the carrier when determining the second frequency offset that needs adjustment, thereby improving the accuracy of frequency offset adjustment. Furthermore, when the SNR of the carrier is less than the SNR threshold, the weight value of that carrier can be directly set to 0, or the first frequency offset corresponding to that carrier can be discarded, which also improves the accuracy of frequency offset adjustment.
[0110] Furthermore, based on the above embodiments, the second determining module 302 is specifically used to: determine the target control voltage according to the second frequency offset and the corresponding relationship table; wherein, the corresponding relationship table is used to characterize the correspondence between the frequency offset and the control voltage of the voltage-controlled oscillator.
[0111] In the above scheme, since there is a correspondence between the output frequency of the voltage-controlled oscillator (VCO) and its control voltage, the target control voltage that the VCO needs to be adjusted to can be determined by referring to the second frequency offset that needs to be adjusted and the corresponding relationship table for the VCO. Therefore, the frequency offset of the terminal can be adjusted by adjusting the control voltage of the VCO to the aforementioned target control voltage.
[0112] Furthermore, based on the above embodiments, the second determining module 302 is specifically used to: determine a target frequency offset in the correspondence table according to the second frequency offset; wherein, the target frequency offset is the frequency offset that is less than the second frequency offset and has the smallest difference with the second frequency offset, or, is the frequency offset that has the smallest absolute value of the difference with the second frequency offset; and determine the control voltage corresponding to the target frequency offset in the correspondence table as the target control voltage.
[0113] In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the voltage-controlled oscillator, the magnitude of the second frequency deviation that needs to be adjusted may fall between two adjacent frequency deviations in the correspondence table. In this case, the frequency deviation in the correspondence table that is smaller than the second frequency deviation and has the smallest difference from it, or the frequency deviation in the correspondence table that has the smallest absolute value of the difference from the second frequency deviation, can be determined as the target frequency deviation for table lookup. This allows for the most accurate frequency deviation adjustment of the terminal.
[0114] Furthermore, based on the above embodiments, the terminal further includes a digital oscillator, and the frequency offset control device 300 further includes: a first calculation module, used to calculate, for each carrier, the difference between the second frequency offset corresponding to the carrier and the target frequency offset, as the third frequency offset corresponding to the carrier; and a first adjustment module, used to adjust the phase of the digital oscillator corresponding to the carrier according to the third frequency offset if the third frequency offset is not greater than the frequency offset threshold value.
[0115] In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the voltage-controlled oscillator (VCO), adjusting only the VCO may not be sufficient to achieve the second frequency offset. Therefore, if the residual frequency offset between the second frequency offset and the target frequency offset is small, the digital oscillator can be adjusted in addition to the VCO adjustment, thereby achieving the most accurate frequency offset adjustment for the terminal.
[0116] Furthermore, based on the above embodiments, the terminal further includes a phase-locked loop and a digital oscillator, and the frequency offset control device 300 further includes: a second calculation module, used to calculate, for each carrier, the difference between the second frequency offset corresponding to the carrier and the target frequency offset, as the third frequency offset corresponding to the carrier; and a second adjustment module, used to adjust the multiplication ratio of the phase-locked loop corresponding to the carrier according to the portion of the third frequency offset that is greater than the frequency offset threshold, and adjust the phase of the digital oscillator corresponding to the carrier according to the frequency offset threshold if the third frequency offset is greater than the frequency offset threshold.
[0117] In the above scheme, since there is a minimum precision required to adjust the control voltage and output frequency of the voltage-controlled oscillator (VCO), adjusting only the VCO may not be sufficient to achieve the second frequency deviation. Therefore, if the residual frequency deviation between the second and target frequency deviations is large, the phase-locked loop (PLL) can be adjusted in addition to adjusting the VCO, thereby achieving the most accurate frequency deviation adjustment for the terminal.
[0118] Please refer to Figure 4 , Figure 4This application provides a structural block diagram of an electronic device 400, which includes at least one processor 401, at least one communication interface 402, at least one memory 403, and at least one communication bus 404. The communication bus 404 enables direct communication between these components, the communication interface 402 facilitates signaling or data communication with other node devices, and the memory 403 stores machine-readable instructions executable by the processor 401. When the electronic device 400 is running, the processor 401 communicates with the memory 403 via the communication bus 404, and when the machine-readable instructions are invoked by the processor 401, the aforementioned frequency offset control method is executed.
[0119] For example, the processor 401 in this embodiment of the application can read a computer program from the memory 403 via the communication bus 404 and execute the computer program to implement the following method: Step S101: Determine the second frequency offset corresponding to the multiple carriers based on the multiple channel states corresponding to the multiple carriers and the multiple first frequency offsets. Step S102: Adjust the target control voltage corresponding to the voltage-controlled oscillator based on the second frequency offset.
[0120] The processor 401 comprises one or more, and can be an integrated circuit chip with signal processing capabilities. The processor 401 can be a general-purpose processor, including a Central Processing Unit (CPU), a Microcontroller Unit (MCU), a Network Processor (NP), or other conventional processors; it can also be a special-purpose processor, including a Neural-network Processing Unit (NPU), a Graphics Processing Unit (GPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. Furthermore, when there are multiple processors 401, some can be general-purpose processors, and others can be special-purpose processors.
[0121] The memory 403 includes one or more, which may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.
[0122] Understandable. Figure 4 The structure shown is for illustrative purposes only; the electronic device 400 may also include components that are more advanced than those shown. Figure 4 The more or fewer components shown, or having the same Figure 4 The different configurations shown. Figure 4 The components shown can be implemented using hardware, software, or a combination thereof. In the embodiments of this application, electronic device 400 can be, but is not limited to, physical devices such as desktop computers, laptops, smartphones, smart wearable devices, and in-vehicle devices, or virtual devices such as virtual machines. Furthermore, electronic device 400 is not necessarily a single device; it can be a combination of multiple devices, such as a server cluster, etc.
[0123] This application also provides a computer-readable storage medium that stores computer program instructions. When the computer program instructions are executed by a computer, the computer performs the frequency offset control method described in the foregoing method embodiments.
[0124] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0125] Furthermore, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0126] Furthermore, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0127] It should be noted that if the function is implemented as a software module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0128] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.
[0129] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A frequency offset control method, characterized in that, The frequency offset control method is applied to a terminal, the terminal including a voltage-controlled oscillator, and the frequency offset control method includes: The second frequency offset corresponding to the multiple carriers is determined based on the multiple channel states corresponding to the multiple carriers and the multiple first frequency offsets; Adjust the target control voltage corresponding to the voltage-controlled oscillator according to the second frequency deviation; The step of adjusting the target control voltage corresponding to the voltage-controlled oscillator according to the second frequency deviation includes: The target control voltage is determined based on the second frequency offset and the corresponding relationship table; wherein, the corresponding relationship table is used to characterize the correspondence between the frequency offset and the control voltage of the voltage-controlled oscillator; Determining the target control voltage based on the second frequency offset and the corresponding relationship table includes: The target frequency offset is determined in the corresponding table based on the second frequency offset; wherein the target frequency offset is the frequency offset that is less than the second frequency offset and has the smallest difference with the second frequency offset, or the frequency offset that has the smallest absolute value of the difference with the second frequency offset; The control voltage corresponding to the target frequency offset in the correspondence table is determined as the target control voltage; The terminal further includes a phase-locked loop and a digital oscillator. After adjusting the target control voltage corresponding to the voltage-controlled oscillator according to the second frequency deviation, the method further includes: For each carrier, the difference between the second frequency offset corresponding to the carrier and the target frequency offset is calculated, and used as the third frequency offset corresponding to the carrier; If the third frequency offset is greater than the frequency offset threshold, the frequency multiplication ratio of the phase-locked loop corresponding to the carrier is adjusted according to the portion of the third frequency offset that is greater than the frequency offset threshold, and the phase of the digital oscillator corresponding to the carrier is adjusted according to the frequency offset threshold.
2. The frequency offset control method according to claim 1, characterized in that, The channel state includes the signal-to-noise ratio, and determining the second frequency offset corresponding to the multiple carriers based on the multiple channel states corresponding to multiple carriers and multiple first frequency offsets includes: The weight value of the first frequency offset corresponding to each carrier is determined based on the signal-to-noise ratio of each carrier among the plurality of carriers; The weighted average of the multiple first frequency offsets is calculated based on the determined weight values, and this average is used as the second frequency offset.
3. The frequency offset control method according to claim 2, characterized in that, The weight value is proportional to the signal-to-noise ratio; And / or, When the signal-to-noise ratio (SNR) of a carrier is less than the SNR threshold, the weight value of that carrier is 0 or the first frequency offset of that carrier is discarded.
4. The frequency offset control method according to claim 1, characterized in that, The terminal further includes a digital oscillator, and after adjusting the target control voltage corresponding to the voltage-controlled oscillator according to the second frequency offset, the method further includes: For each carrier, the difference between the second frequency offset corresponding to the carrier and the target frequency offset is calculated, and used as the third frequency offset corresponding to the carrier; If the third frequency offset is not greater than the frequency offset threshold, then the phase of the digital oscillator corresponding to the carrier is adjusted according to the third frequency offset.
5. A frequency offset control device, characterized in that, The frequency offset control device is applied to a terminal, the terminal including a voltage-controlled oscillator, and the frequency offset control device includes: The first determining module is used to determine the second frequency offset corresponding to the multiple carriers based on the multiple channel states corresponding to the multiple carriers and the multiple first frequency offsets; The second determining module is used to adjust the target control voltage corresponding to the voltage-controlled oscillator according to the second frequency deviation; The second determining module is specifically used for: The target control voltage is determined based on the second frequency offset and the corresponding relationship table; wherein, the corresponding relationship table is used to characterize the correspondence between the frequency offset and the control voltage of the voltage-controlled oscillator; The target frequency offset is determined in the corresponding table based on the second frequency offset; wherein the target frequency offset is the frequency offset that is less than the second frequency offset and has the smallest difference with the second frequency offset, or the frequency offset that has the smallest absolute value of the difference with the second frequency offset; The control voltage corresponding to the target frequency offset in the correspondence table is determined as the target control voltage; The terminal also includes a phase-locked loop and a digital oscillator, and the frequency offset control device further includes: The second calculation module is used to calculate the difference between the second frequency offset corresponding to the carrier and the target frequency offset for each carrier, and use it as the third frequency offset corresponding to the carrier. The second adjustment module is used to adjust the frequency multiplication ratio of the phase-locked loop corresponding to the carrier according to the portion of the third frequency deviation that is greater than the frequency deviation threshold, and to adjust the phase of the digital oscillator corresponding to the carrier according to the frequency deviation threshold if the third frequency deviation is greater than the frequency deviation threshold.
6. An electronic device, characterized in that, include: Processor, memory, and bus; The processor and the memory communicate with each other via the bus; The memory stores computer program instructions that can be executed by the processor, and the processor can invoke the computer program instructions to perform the method as described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a computer, cause the computer to perform the method as described in any one of claims 1-4.
Citation Information
Patent Citations
Method and device for realizing automatic frequency control
CN102136850A
Frequency adjustment method and device, terminal and storage medium
CN112040541A