CN110311673B - Frequency calibration method, terminal and storage medium - Google Patents
Frequency calibration method, terminal and storage medium Download PDFInfo
- Publication number
- CN110311673B CN110311673B CN201910549452.8A CN201910549452A CN110311673B CN 110311673 B CN110311673 B CN 110311673B CN 201910549452 A CN201910549452 A CN 201910549452A CN 110311673 B CN110311673 B CN 110311673B
- Authority
- CN
- China
- Prior art keywords
- frequency
- compensation
- dynamic
- frequency compensation
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 239000013078 crystal Substances 0.000 claims abstract description 39
- 230000005540 biological transmission Effects 0.000 claims abstract description 6
- 230000003068 static effect Effects 0.000 claims description 73
- 230000006870 function Effects 0.000 claims description 35
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 5
- 238000005070 sampling Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 5
- 238000012360 testing method Methods 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/13—Receivers
- G01S19/23—Testing, monitoring, correcting or calibrating of receiver elements
- G01S19/235—Calibration of receiver components
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION, OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L1/00—Stabilisation of generator output against variations of physical values, e.g. power supply
- H03L1/02—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only
- H03L1/022—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only by indirect stabilisation, i.e. by generating an electrical correction signal which is a function of the temperature
Abstract
The embodiment of the application provides a frequency calibration method, a terminal and a storage medium, wherein the method comprises the following steps: determining a frequency deviation value according to the signal frequency generated by the crystal oscillator and a standard frequency, wherein the standard frequency is a transmission frequency when a transmitting end transmits signals; when the frequency deviation value is larger than a preset frequency deviation threshold value, calling a dynamic frequency compensation parameter; and adjusting the dynamic frequency compensation parameter, and performing frequency compensation by utilizing the adjusted dynamic frequency compensation parameter until the dynamic frequency deviation value after frequency compensation meets the frequency deviation standard, thereby completing the frequency compensation process.
Description
Technical Field
The present disclosure relates to the field of crystal oscillators, and in particular, to a frequency calibration method, a terminal, and a storage medium.
Background
In the positioning principle of the global navigation satellite system (Global Navigation Satellite System, GNSS), the distance between the satellite and the terminal device is estimated by multiplying the time of arrival of the satellite transmitting signal at the GNSS receiving module by the propagation velocity of the electromagnetic wave. Thus, the clock accuracy of the terminal device will directly affect the positioning accuracy of the GNSS.
The crystal oscillator can generate a very stable resonance frequency as the clock frequency of the terminal device, and since the frequency is the inverse of time, the frequency error of the crystal oscillator caused by temperature is compensated for in order to improve the clock accuracy.
In the prior art, the frequency deviation values of the crystal oscillator in all temperature intervals are usually determined through a set of C parameters to perform frequency compensation, and in the process of real-time frequency compensation, the crystal oscillator performs learning sampling and self-calibration, so that the set of C parameters is calibrated. However, the learning sampling and self-calibration of the crystal oscillator require certain trigger conditions and processing time, and these delays can cause problems of large frequency deviation and poor frequency compensation effect.
Disclosure of Invention
The embodiment of the application provides a frequency calibration method, a terminal and a storage medium, which can reduce frequency deviation and improve frequency compensation effect.
The technical scheme of the application is realized as follows:
the embodiment of the application provides a frequency calibration method, which comprises the following steps:
determining a frequency deviation value according to the signal frequency generated by the crystal oscillator and a standard frequency, wherein the standard frequency is a transmission frequency when a transmitting end transmits signals;
when the frequency deviation value is larger than a preset frequency deviation threshold value, calling a dynamic frequency compensation parameter;
and adjusting the dynamic frequency compensation parameter, and performing frequency compensation by utilizing the adjusted dynamic frequency compensation parameter until the dynamic frequency deviation value after frequency compensation meets the frequency deviation standard, so as to complete the frequency compensation process.
In the above method, after the frequency compensation is performed using the adjusted dynamic frequency compensation parameter, the method further includes:
respectively obtaining a static frequency offset value and a dynamic compensation frequency offset residual, wherein the static frequency offset value is a frequency offset value after frequency compensation is carried out by utilizing a static frequency compensation parameter, the static frequency compensation parameter is an adjustment reference of the dynamic frequency compensation parameter, and the dynamic compensation frequency offset residual is a frequency offset difference value between the frequency value after dynamic frequency compensation and a standard frequency value;
determining first data to be sampled according to the dynamic frequency deviation value, the static frequency deviation value and the dynamic compensation frequency deviation residual;
acquiring a current temperature when the signal frequency is generated;
and calibrating the static frequency compensation parameter according to the first data to be sampled and the current temperature.
In the above method, the determining the first data to be sampled according to the dynamic frequency offset value, the static frequency offset value, and the dynamic compensation frequency offset residual includes:
determining a first difference between the dynamic frequency offset value and the static frequency offset value;
and determining the sum of the first difference value and the dynamic compensation frequency offset residual as the first data to be sampled.
In the above method, after determining the frequency deviation value according to the signal frequency generated by the crystal oscillator and the standard frequency, the method further includes:
when the frequency deviation value is smaller than the preset frequency deviation threshold value, calling a static frequency compensation parameter;
and performing frequency compensation by using the static frequency compensation parameter.
In the above method, the performing frequency compensation using the adjusted dynamic frequency compensation parameter includes:
adding the adjusted dynamic frequency compensation parameters into a preset frequency compensation function to obtain a first frequency compensation function corresponding to the dynamic frequency compensation parameters;
and performing frequency compensation according to the current temperature and the first frequency compensation function.
The embodiment of the application provides a terminal, which comprises:
the determining unit is used for determining a frequency deviation value according to the signal frequency generated by the crystal oscillator and a standard frequency, wherein the standard frequency is a transmitting frequency when a transmitting end transmits signals;
the calling unit is used for calling dynamic frequency compensation parameters when the frequency deviation value is larger than a preset frequency deviation threshold value;
and the frequency compensation unit is used for adjusting the dynamic frequency compensation parameter, and carrying out frequency compensation by utilizing the adjusted dynamic frequency compensation parameter until the dynamic frequency deviation value after frequency compensation meets the frequency deviation standard, thereby completing the frequency compensation process.
In the above terminal, the terminal further includes: an acquisition unit and a calibration unit;
the acquisition unit is used for respectively acquiring a static frequency offset value and a dynamic compensation frequency offset residual, wherein the static frequency offset value is a frequency offset value after frequency compensation is carried out by utilizing a static frequency compensation parameter, the static frequency compensation parameter is an adjustment reference of the dynamic frequency compensation parameter, and the dynamic compensation frequency offset residual is a frequency offset difference value between the frequency value after dynamic frequency compensation and a standard frequency value; acquiring a current temperature when the signal frequency is generated;
the determining unit is further configured to determine first data to be sampled according to the dynamic frequency offset value, the static frequency offset value, and the dynamic compensation frequency offset residual;
and the calibration unit is used for calibrating the static frequency compensation parameter according to the first data to be sampled and the current temperature.
In the above terminal, the determining unit is further configured to determine a first difference between the dynamic frequency offset value and the static frequency offset value; and determining the sum of the first difference value and the dynamic compensation frequency offset residual as the first data to be sampled.
In the above terminal, the calling unit is further configured to call a static frequency compensation parameter when the frequency deviation value is smaller than the preset frequency deviation threshold;
the frequency compensation unit is further configured to perform frequency compensation using the static frequency compensation parameter.
In the above terminal, the terminal further includes: an adding unit;
the adding unit is used for adding the adjusted dynamic frequency compensation parameter to a preset frequency compensation function to obtain a first frequency compensation function corresponding to the dynamic frequency compensation parameter;
the frequency compensation unit is specifically configured to perform frequency compensation according to the current temperature and the first frequency compensation function.
The embodiment of the application provides a terminal, which comprises: a processor, a memory, and a communication bus; the processor, when executing a memory-stored operating program, implements a method as described in any one of the preceding claims.
An embodiment of the present application provides a storage medium, on which a computer program is stored, for application to a terminal, where the computer program, when executed by a processor, implements a method as set forth in any one of the preceding claims.
The embodiment of the application provides a frequency calibration method, a terminal and a storage medium, wherein the method comprises the following steps: determining a frequency deviation value according to the signal frequency generated by the crystal oscillator and a standard frequency, wherein the standard frequency is a transmission frequency when a transmitting end transmits signals; when the frequency deviation value is larger than a preset frequency deviation threshold value, calling a dynamic frequency compensation parameter; and adjusting the dynamic frequency compensation parameter, and performing frequency compensation by utilizing the adjusted dynamic frequency compensation parameter until the dynamic frequency deviation value after frequency compensation meets the frequency deviation standard, thereby completing the frequency compensation process. By adopting the implementation scheme, when the terminal judges that the frequency deviation value is larger than the preset frequency deviation threshold, the frequency deviation is large when the frequency deviation value is subjected to frequency compensation by using the existing static frequency compensation parameter, at the moment, the terminal calls the dynamic frequency compensation parameter to carry out parameter adjustment, and carries out frequency compensation by using the adjusted dynamic frequency compensation parameter until the terminal judges that the dynamic frequency deviation value after the frequency compensation meets the frequency deviation standard, and the terminal completes the frequency compensation, so that when the crystal oscillator needs to learn sampling and self-calibration in real time, the dynamic frequency compensation parameter is called to carry out the frequency compensation, the frequency deviation after the frequency compensation can be reduced, and the frequency compensation effect is improved.
Drawings
FIG. 1 is a schematic diagram of sampling frequency offset values and temperature values in the prior art;
fig. 2 is a schematic flow chart of a frequency calibration method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an exemplary frequency deviation value acquisition according to an embodiment of the present application;
FIG. 4 is a diagram illustrating an exemplary history scenario provided by an embodiment of the present application versus frequency compensation parameter functionality in the present application;
fig. 5 is a second flowchart of a frequency calibration method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a second terminal according to an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the application. And are not intended to limit the present application.
It should be noted that the temperature-frequency deviation characteristic of the crystal oscillator is generally expressed in the form of a unitary cubic equation, and a predetermined frequency deviation function can be determined, as shown in the following formula (1):
f(t)=C3×(t-t 0 ) 3 +C2×(t-t 0 ) 2 +C1×(t-t 0 )+C0 (1)
wherein f (t) is the frequency deviation value of the crystal oscillator at the temperature value t, and C3, C2, C1 and C0 are all frequency compensation parameters of a preset frequency deviation function, t 0 Is a preset temperature constant.
It will be appreciated that in the prior art, specific values of C3, C2, C1 and C0 in the preset frequency deviation function can be determined by collecting frequency deviation values at several temperatures, so that the frequency deviation values at different temperatures can be determined by using the function to compensate.
It should be noted that, in the production line calibration and application scenario under normal conditions, the temperature of the crystal oscillator is concentrated in the normal temperature section (20 ℃ to 40 ℃) and the high temperature section (more than 40 ℃), and is difficult to be below 0 ℃, and the current compensation scheme is that, first, the test temperature t=t 0 F (t) at time 0 ) Calculating C0; setting C3 and C2 as fixed constants, wherein C2=0, testing the frequency deviation values of 2 temperature values near t0, substituting the frequency deviation values into formula (1) to calculate C1, specifically, controlling terminal equipment to work under maximum power, driving a crystal oscillator to heat up through working heating to form a certain temperature interval, and substituting the temperature values and the frequency deviation values at two ends of the sampling temperature interval into formula (1) to calculate the value of C1, wherein the temperature interval is usually 30-40 ℃ as shown in fig. 1; finally by collecting a plurality of distances t 0 Remote temperature valueThe actual values of C2 and C3 are calculated.
It should be noted that, in the prior art, the frequency deviation function is determined under the normal temperature environment to perform frequency compensation, the frequency deviation of the crystal oscillator is better in the section of 20 ℃ to 50 ℃, and is usually within 0.5ppm, but the frequency deviation after compensation is quite large, usually more than 1ppm, and even more than 3ppm in the temperature range of-20 ℃ to 0 ℃.
In order to reduce the frequency deviation of the crystal oscillator in each temperature interval, the present scheme is proposed, and the following specific description is given by way of examples.
Example 1
An embodiment of the present application provides a frequency calibration method, as shown in fig. 2, the method may include:
s101, determining a frequency deviation value according to the signal frequency generated by the crystal oscillator and a standard frequency, wherein the standard frequency is a transmitting frequency when a transmitting end transmits signals.
The frequency calibration method provided by the embodiment of the application is suitable for the scene of frequency calibration of the clock frequency of the terminal equipment.
It should be noted that, in an ideal situation, the signal frequencies provided by the crystal oscillator at different operating temperatures should be standard signal frequencies, but in a practical application process, the signal frequencies provided by the crystal oscillator at different temperatures cannot actually reach the standard signal frequencies due to the influence of temperature, so that frequency compensation is required, and the specific standard signal frequencies are not limited in the embodiments of the present application.
Fig. 3 is a schematic diagram of an exemplary method for obtaining multiple sets of frequency offset values according to an embodiment of the present application. As shown in fig. 3, the crystal oscillator is actually configured on a motherboard to be applied, the motherboard is placed in an incubator, and the working temperature of the crystal oscillator can be controlled by adjusting the temperature of the incubator, so as to obtain multiple groups of frequency deviation values.
In this embodiment, when the crystal oscillator of the terminal generates the signal frequency, the terminal subtracts the signal frequency generated by the crystal oscillator from the standard frequency generated by the transmitting end to obtain the frequency deviation, where the base station carries its own signal frequency when transmitting.
S102, when the frequency deviation value is larger than a preset frequency deviation threshold value, calling a dynamic frequency compensation parameter.
After the terminal determines the frequency deviation value according to the receiving frequency and the standard frequency, the terminal compares the frequency deviation value with a preset frequency deviation threshold value, and when the terminal judges that the frequency deviation value is larger than the preset frequency deviation threshold value, the terminal calls the dynamic frequency compensation parameter.
In this embodiment, the terminal presets a dynamic frequency compensation parameter and a static frequency compensation parameter, where the dynamic frequency compensation parameter is used for performing frequency compensation in a scene with poor frequency deviation of the crystal oscillator, and the static frequency compensation parameter is used for performing frequency compensation in a scene with good frequency deviation of the crystal oscillator, where the dynamic frequency compensation parameter can be adjusted correspondingly in real time according to the frequency deviation after compensation, and the static frequency compensation parameter is an adjustment reference of the dynamic frequency compensation parameter, that is, the dynamic frequency compensation parameter is adjusted according to the static frequency compensation parameter.
In the embodiment of the application, the terminal compares the frequency deviation value with the preset frequency deviation threshold, and when the terminal judges that the frequency deviation value is larger than the preset frequency deviation threshold, the frequency deviation of the crystal oscillator is poor, and at the moment, the terminal calls the dynamic frequency compensation parameter, wherein the preset frequency deviation threshold is a critical point which leads to the GNSS positioning error in an unacceptable range.
Further, when the terminal judges that the frequency deviation value is smaller than the preset frequency deviation threshold value, the terminal calls a static frequency compensation parameter and performs frequency compensation by utilizing the static frequency compensation parameter.
S103, adjusting the dynamic frequency compensation parameters, and performing frequency compensation by utilizing the adjusted dynamic frequency compensation parameters until the dynamic frequency deviation value after frequency compensation meets the frequency deviation standard, so as to complete the frequency compensation of the frequency deviation value.
After the terminal calls the dynamic frequency compensation parameter, the terminal adjusts the dynamic frequency compensation parameter, and frequency compensation is carried out by utilizing the adjusted dynamic frequency compensation parameter until the dynamic frequency deviation value after frequency compensation meets the frequency deviation standard, and the terminal completes the frequency compensation process.
In the embodiment of the application, the terminal adds the adjusted dynamic frequency compensation parameter to a preset frequency compensation function to obtain a first frequency compensation function corresponding to the dynamic frequency compensation parameter; and then, the terminal performs frequency compensation according to the current temperature and the first frequency compensation function.
In the embodiment of the application, an initial value of a dynamic frequency compensation parameter of a terminal is a static frequency compensation parameter, the terminal dynamically adjusts the static frequency compensation parameter to obtain the dynamic frequency compensation parameter, then the terminal substitutes the dynamic frequency compensation parameter into a preset frequency compensation function to obtain a first frequency compensation function corresponding to the dynamic frequency compensation parameter, and then the terminal inputs the current temperature into the first frequency compensation function to perform frequency compensation; after the frequency compensation, the terminal judges whether the dynamic frequency deviation value after the frequency compensation meets the frequency deviation standard, when the terminal judges that the dynamic frequency deviation value after the frequency compensation does not meet the frequency deviation standard, the terminal readjust the dynamic frequency compensation parameter, substitutes the regulated dynamic frequency compensation parameter into a preset frequency compensation function to obtain an updated first frequency compensation function, and continuously performs the frequency compensation based on the updated first frequency compensation function until the terminal judges that the dynamic frequency deviation value after the frequency compensation meets the frequency deviation standard, and the terminal completes the frequency compensation of the frequency deviation value.
Illustratively, the preset frequency compensation function is formula (1):
f(t)=C3×(t-t 0 ) 3 +C2×(t-t 0 ) 2 +C1×(t-t 0 )+C0 (1)
the terminal substitutes the dynamic frequency compensation parameters into C3, C2, C1 and C0 respectively to obtain a first preset frequency compensation function, and then calculates a dynamic frequency deviation value f (t) corresponding to the current temperature t by using the first preset frequency compensation function.
Based on the first embodiment, in the embodiment of the present application, after performing frequency compensation using the adjusted dynamic frequency compensation parameter, that is, after S103, the method for performing frequency calibration by the terminal may further include the following steps, as shown in fig. 5:
s104, the terminal respectively acquires a static frequency offset value and a dynamic compensation frequency offset residual, wherein the static frequency offset value is the frequency offset value after frequency compensation by utilizing a static frequency compensation parameter, the static frequency compensation parameter is an adjustment reference of the dynamic frequency compensation parameter, and the dynamic compensation frequency offset residual is the frequency offset difference value between the frequency value after dynamic frequency compensation and a standard frequency value.
In the embodiment of the application, the terminal substitutes the static frequency compensation parameter and the current temperature into a preset frequency compensation function to perform frequency compensation, so as to obtain a static frequency deviation value.
In the embodiment of the application, the terminal is preset with a standard frequency value, and when a certain frequency deviation exists between the frequency value of the crystal oscillator and the standard frequency value after the terminal performs frequency compensation by utilizing the dynamic frequency compensation parameter, the frequency deviation difference between the frequency value after the dynamic frequency compensation and the standard frequency value is determined as the dynamic compensation frequency deviation residual.
S105, the terminal determines first data to be sampled according to the dynamic frequency deviation value, the static frequency deviation value and the dynamic compensation frequency deviation residual.
After the terminal acquires the static frequency deviation value and the dynamic compensation frequency deviation residual, the terminal determines first data to be sampled according to the dynamic frequency deviation value, the static frequency deviation value and the dynamic compensation frequency deviation residual.
In the embodiment of the application, a terminal determines a first difference value between a dynamic frequency deviation value and a static frequency deviation value; and then, the terminal determines the sum of the first difference value and the dynamic compensation frequency offset residual as first data to be sampled, and the terminal learns and samples the first data to be sampled.
S106, the terminal acquires the current temperature when the signal frequency is generated.
After the crystal oscillator generates the signal frequency, the terminal acquires the current temperature at which the signal frequency was generated.
And S107, the terminal calibrates the static frequency compensation parameter according to the first data to be sampled and the current temperature.
And after the terminal determines the first data to be sampled and acquires the current temperature corresponding to the signal frequency, the terminal calibrates the static frequency compensation parameter according to the first data to be sampled and the current temperature.
In the embodiment of the application, the terminal substitutes the first data to be sampled and the current temperature into a preset frequency deviation function to calibrate the static frequency compensation parameter, so that the frequency deviation of the crystal oscillator is ensured to be in a more stable state.
Further, when the GNSS positioning is closed, the dynamic frequency compensation parameter is stopped to be started, and the dynamic frequency compensation parameter is restored to the same state as the current static frequency compensation parameter value, so that the dynamic adjustment process is performed by taking the current static frequency compensation parameter value as a reference when the dynamic frequency compensation parameter is called next time.
Illustratively, as shown in fig. 4, the history scheme employs a set of C parameters (frequency compensation parameters) to implement the processes of frequency compensation, sample learning, and self-calibration; compared with a historical scheme, in the embodiment of the application, the C parameter is divided into a static Cs parameter (static frequency compensation parameter) and a dynamic Cd parameter (dynamic frequency compensation parameter), wherein the static Cs parameter is used for sampling learning, self-calibration and frequency compensation when the frequency deviation of the crystal oscillator is good; the dynamic Cd parameter is used for dynamically correcting C parameter compensation when the frequency deviation of the crystal oscillator is poor;
it can be understood that when the terminal judges that the frequency deviation value is greater than the preset frequency deviation threshold, the terminal characterizes that the frequency deviation is large when the frequency compensation is performed by using the existing static frequency compensation parameter, at this time, the terminal calls the dynamic frequency compensation parameter to perform parameter adjustment, and uses the adjusted dynamic frequency compensation parameter to perform the frequency compensation parameter until the terminal judges that the dynamic frequency deviation value after the frequency compensation meets the frequency deviation standard, and the terminal completes the frequency compensation, so that when the crystal oscillator needs to learn sampling and self-calibration in real time, the dynamic frequency compensation parameter is called to perform the frequency compensation, the frequency deviation after the frequency compensation can be reduced, and the frequency compensation effect is improved.
Example two
The embodiment of the present application provides a terminal 1, as shown in fig. 6, the terminal 1 may include:
a determining unit 10, configured to determine a frequency deviation value according to a signal frequency generated by the crystal oscillator and a standard frequency, where the standard frequency is a transmission frequency when the transmitting end transmits a signal;
a calling unit 11, configured to call a dynamic frequency compensation parameter when the frequency deviation value is greater than a preset frequency deviation threshold;
the frequency compensation unit 12 is configured to adjust the dynamic frequency compensation parameter, and perform frequency compensation by using the adjusted dynamic frequency compensation parameter until the dynamic frequency deviation value after frequency compensation meets the frequency deviation standard, thereby completing the frequency compensation process.
Optionally, the terminal further includes: an acquisition unit 13 and a calibration unit 14;
the acquiring unit 13 is configured to acquire a static frequency offset value and a dynamic compensation frequency offset residual, where the static frequency offset value is a frequency offset value after frequency compensation by using a static frequency compensation parameter, the static frequency compensation parameter is an adjustment reference of the dynamic frequency compensation parameter, and the dynamic compensation frequency offset residual is a frequency offset difference value between the frequency value after dynamic frequency compensation and a standard frequency value; acquiring a current temperature when the signal frequency is generated;
the determining unit 10 is further configured to determine first data to be sampled according to the dynamic frequency offset value, the static frequency offset value, and the dynamic compensation frequency offset residual;
the calibration unit 14 is configured to calibrate the static frequency compensation parameter according to the first data to be sampled and the current temperature.
Optionally, the determining unit 10 is further configured to determine a first difference value between the dynamic frequency offset value and the static frequency offset value; and determining the sum of the first difference value and the dynamic compensation frequency offset residual as the first data to be sampled.
Optionally, the calling unit 11 is further configured to call a static frequency compensation parameter when the frequency deviation value is smaller than the preset frequency deviation threshold;
the frequency compensation unit 12 is further configured to perform frequency compensation using the static frequency compensation parameter.
Optionally, the terminal further includes: an adding unit 15;
the adding unit 15 is configured to add the adjusted dynamic frequency compensation parameter to a preset frequency compensation function, so as to obtain a first frequency compensation function corresponding to the dynamic frequency compensation parameter;
the frequency compensation unit 12 is specifically configured to perform frequency compensation according to the current temperature and the first frequency compensation function.
According to the terminal provided by the embodiment of the application, a frequency deviation value is determined according to the signal frequency generated by the crystal oscillator and the standard frequency, wherein the standard frequency is the transmission frequency when the transmitting end transmits signals; when the frequency deviation value is larger than a preset frequency deviation threshold value, calling a dynamic frequency compensation parameter; and adjusting the dynamic frequency compensation parameter, and performing frequency compensation by utilizing the adjusted dynamic frequency compensation parameter until the dynamic frequency deviation value after frequency compensation meets the frequency deviation standard, thereby completing the frequency compensation process. Therefore, when the terminal determines that the frequency deviation value is greater than the preset frequency deviation threshold, the terminal characterizes that the frequency deviation is large when the frequency deviation is compensated by using the existing static frequency compensation parameter, at this time, the terminal calls the dynamic frequency compensation parameter to perform parameter adjustment, and uses the adjusted dynamic frequency compensation parameter to perform the frequency compensation parameter until the terminal determines that the dynamic frequency deviation value after the frequency compensation meets the frequency deviation standard, and the terminal completes the frequency compensation, so that when the crystal oscillator needs to learn sampling and self-calibration in real time, the dynamic frequency compensation parameter is called to perform the frequency compensation, the frequency deviation after the frequency compensation can be reduced, and the frequency compensation effect is improved.
Fig. 7 is a schematic diagram of a second component structure of a terminal 1 according to the embodiment of the present application, in practical application, based on the same disclosure concept of the above embodiment, as shown in fig. 7, the terminal 1 of the present embodiment includes: a processor 16, a memory 17 and a communication bus 18.
In the process of the specific embodiment, the determining unit 10, the calling unit 11, the frequency compensating unit 12, the obtaining unit 13, the calibrating unit 14 and the adding unit 15 may be implemented by a processor 16 located on the terminal 1, where the processor 16 may be at least one of an application specific integrated circuit (ASIC, application Specific Integrated Circuit), a digital signal processor (DSP, digital Signal Processor), a digital signal processing device (DSPD, digital Signal Processing Device), a programmable logic device (PLD, programmable Logic Device), a field programmable gate array (FPGA, field Programmable Gate Array), a CPU, a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronics for implementing the above-described processor functions may be other for different devices, and the present embodiment is not particularly limited.
In the embodiment of the present application, the above-mentioned communication bus 18 is used to implement connection communication between the processor 16 and the memory 17; the processor 16 implements the frequency calibration method according to the first embodiment when executing the running program stored in the memory 17.
The embodiment of the application provides a storage medium, on which a computer program is stored, where the computer readable storage medium stores one or more programs, where the one or more programs are executable by one or more processors and applied to a terminal, and the computer program implements the frequency calibration method according to the embodiment one.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application.
Claims (6)
1. A method of frequency calibration, the method comprising:
determining a frequency deviation value according to the signal frequency generated by the crystal oscillator and a standard frequency, wherein the standard frequency is a transmission frequency when a transmitting end transmits signals;
when the frequency deviation value is larger than a preset frequency deviation threshold value, calling a dynamic frequency compensation parameter;
adjusting the dynamic frequency compensation parameter, and performing frequency compensation by utilizing the adjusted dynamic frequency compensation parameter until the dynamic frequency deviation value after frequency compensation meets the frequency deviation standard, so as to complete the frequency compensation process;
when the frequency deviation value is smaller than the preset frequency deviation threshold value, calling a static frequency compensation parameter; performing frequency compensation by utilizing the static frequency compensation parameter;
after the frequency compensation is carried out by utilizing the adjusted dynamic frequency compensation parameters, respectively obtaining a static frequency offset value and a dynamic frequency offset residual, wherein the static frequency offset value is the frequency offset value after the frequency compensation is carried out by utilizing the static frequency compensation parameters, the static frequency compensation parameters are the adjustment references of the dynamic frequency compensation parameters, and the dynamic frequency offset residual is the frequency offset difference value between the frequency value after the dynamic frequency compensation and the standard frequency value; determining a first difference between the dynamic frequency offset value and the static frequency offset value; determining the sum of the first difference value and the dynamic compensation frequency offset residual as first data to be sampled; acquiring a current temperature when the signal frequency is generated; and calibrating the static frequency compensation parameter according to the first data to be sampled and the current temperature.
2. The method of claim 1, wherein said frequency compensating with said adjusted dynamic frequency compensation parameter comprises:
adding the adjusted dynamic frequency compensation parameters into a preset frequency compensation function to obtain a first frequency compensation function corresponding to the dynamic frequency compensation parameters;
and performing frequency compensation according to the current temperature and the first frequency compensation function.
3. A frequency calibration device, the device comprising:
the determining unit is used for determining a frequency deviation value according to the signal frequency generated by the crystal oscillator and a standard frequency, wherein the standard frequency is a transmitting frequency when a transmitting end transmits signals;
the calling unit is used for calling dynamic frequency compensation parameters when the frequency deviation value is larger than a preset frequency deviation threshold value;
the frequency compensation unit is used for adjusting the dynamic frequency compensation parameters and carrying out frequency compensation by utilizing the adjusted dynamic frequency compensation parameters until the dynamic frequency deviation value after frequency compensation meets the frequency deviation standard, so as to complete the frequency compensation process;
the calling unit is further configured to call a static frequency compensation parameter when the frequency deviation value is smaller than the preset frequency deviation threshold;
the frequency compensation unit is further used for performing frequency compensation by utilizing the static frequency compensation parameter;
the acquisition unit is used for respectively acquiring a static frequency offset value and a dynamic compensation frequency offset residual, wherein the static frequency offset value is a frequency offset value after frequency compensation by utilizing a static frequency compensation parameter, the static frequency compensation parameter is an adjustment reference of the dynamic frequency compensation parameter, and the dynamic compensation frequency offset residual is a frequency offset difference value between the frequency value after dynamic frequency compensation and a standard frequency value; acquiring a current temperature when the signal frequency is generated;
the determining unit is further configured to determine a first difference value between the dynamic frequency offset value and the static frequency offset value; determining the sum of the first difference value and the dynamic compensation frequency offset residual as first data to be sampled;
and the calibration unit is used for calibrating the static frequency compensation parameter according to the first data to be sampled and the current temperature.
4. A device according to claim 3, characterized in that the device further comprises: an adding unit;
the adding unit is used for adding the adjusted dynamic frequency compensation parameter to a preset frequency compensation function to obtain a first frequency compensation function corresponding to the dynamic frequency compensation parameter;
the frequency compensation unit is specifically configured to perform frequency compensation according to the current temperature and the first frequency compensation function.
5. A frequency calibration apparatus, the apparatus comprising: a processor, a memory, and a communication bus; the processor, when executing a memory-stored operating program, implements the method according to claim 1 or 2.
6. A storage medium having stored thereon a computer program for use in a frequency calibration device, which computer program, when executed by a processor, implements the method according to claim 1 or 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910549452.8A CN110311673B (en) | 2019-06-24 | 2019-06-24 | Frequency calibration method, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910549452.8A CN110311673B (en) | 2019-06-24 | 2019-06-24 | Frequency calibration method, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110311673A CN110311673A (en) | 2019-10-08 |
CN110311673B true CN110311673B (en) | 2024-02-02 |
Family
ID=68076455
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910549452.8A Active CN110311673B (en) | 2019-06-24 | 2019-06-24 | Frequency calibration method, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110311673B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111045318B (en) * | 2019-12-26 | 2021-11-30 | 展讯通信(上海)有限公司 | Calibration method, device and system of equipment clock, self-calibration method and equipment |
CN114391243A (en) * | 2020-08-05 | 2022-04-22 | 北京小米移动软件有限公司 | Frequency offset compensation and calibration method and device, and storage medium |
CN112380774B (en) * | 2020-11-23 | 2022-04-15 | 青岛柯锐思德电子科技有限公司 | Dynamic modeling method and system based on residual echo state network |
CN112865884B (en) * | 2020-12-11 | 2023-01-03 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for determining static parameters |
CN114650202A (en) * | 2020-12-17 | 2022-06-21 | Oppo广东移动通信有限公司 | Carrier deviation processing method, terminal and storage medium |
CN112714089A (en) * | 2020-12-28 | 2021-04-27 | 四川天邑康和通信股份有限公司 | High-frequency 5G base station signal processing method and base station |
CN113434008B (en) * | 2021-06-25 | 2022-09-16 | 紫光展锐(重庆)科技有限公司 | Calibration method and device |
CN114553649A (en) * | 2022-02-22 | 2022-05-27 | 成都四相致新科技有限公司 | Signal frequency deviation calibration method, device, electronic equipment and storage medium |
CN116223906A (en) * | 2022-12-30 | 2023-06-06 | 广东惠伦晶体科技股份有限公司 | Temperature compensation crystal oscillator test method, circuit and system capable of achieving frequency calibration |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB1596845A (en) * | 1977-11-25 | 1981-09-03 | Hewlett Packard Co | Quartz crystal resonator |
EP0833448A2 (en) * | 1996-09-27 | 1998-04-01 | Nec Corporation | Frequency adjusting method for use with digital receiver and frequency adjusting circuit thereof |
JPH10303644A (en) * | 1997-04-25 | 1998-11-13 | Matsushita Electric Ind Co Ltd | Adjustment device for temperature compensation crystal oscillator and adjustment method |
JP2000124736A (en) * | 1998-10-13 | 2000-04-28 | Seiko Epson Corp | Temperature compensation method for oscillator and temperature compensation circuit therefor |
WO2010069222A1 (en) * | 2008-12-16 | 2010-06-24 | 中兴通讯股份有限公司 | Method and system for frequency offset estimation and compensation in mobile communications |
CN106028436A (en) * | 2016-04-28 | 2016-10-12 | 华为技术有限公司 | Time and frequency deviation compensation method and user terminal |
CN106292839A (en) * | 2016-08-11 | 2017-01-04 | 上海东软载波微电子有限公司 | Real-time clock compensates circuit and calibration steps, device |
CN106549720A (en) * | 2016-10-13 | 2017-03-29 | 广东欧珀移动通信有限公司 | A kind of method and mobile terminal for improving mobile terminal radio frequency frequency deviation |
CN108732424A (en) * | 2018-04-26 | 2018-11-02 | 南京合智电力科技有限公司 | Phasor backoff algorithm under fixed frequency sampling mode and compensation system |
-
2019
- 2019-06-24 CN CN201910549452.8A patent/CN110311673B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB1596845A (en) * | 1977-11-25 | 1981-09-03 | Hewlett Packard Co | Quartz crystal resonator |
EP0833448A2 (en) * | 1996-09-27 | 1998-04-01 | Nec Corporation | Frequency adjusting method for use with digital receiver and frequency adjusting circuit thereof |
JPH10303644A (en) * | 1997-04-25 | 1998-11-13 | Matsushita Electric Ind Co Ltd | Adjustment device for temperature compensation crystal oscillator and adjustment method |
JP2000124736A (en) * | 1998-10-13 | 2000-04-28 | Seiko Epson Corp | Temperature compensation method for oscillator and temperature compensation circuit therefor |
WO2010069222A1 (en) * | 2008-12-16 | 2010-06-24 | 中兴通讯股份有限公司 | Method and system for frequency offset estimation and compensation in mobile communications |
CN106028436A (en) * | 2016-04-28 | 2016-10-12 | 华为技术有限公司 | Time and frequency deviation compensation method and user terminal |
CN106292839A (en) * | 2016-08-11 | 2017-01-04 | 上海东软载波微电子有限公司 | Real-time clock compensates circuit and calibration steps, device |
CN106549720A (en) * | 2016-10-13 | 2017-03-29 | 广东欧珀移动通信有限公司 | A kind of method and mobile terminal for improving mobile terminal radio frequency frequency deviation |
CN108732424A (en) * | 2018-04-26 | 2018-11-02 | 南京合智电力科技有限公司 | Phasor backoff algorithm under fixed frequency sampling mode and compensation system |
Non-Patent Citations (2)
Title |
---|
一种带电源电压和温度补偿的振荡器电路设计;杨庆;《电子技术应用》;20141231;全文 * |
基于Wiener过程的GPS校准晶振型频率源守频方法;杨少尘等;《中国测试》;20160630(第06期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110311673A (en) | 2019-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110311673B (en) | Frequency calibration method, terminal and storage medium | |
US9344095B2 (en) | Temperature compensation for an oscillator crystal | |
KR20110004331A (en) | System and method for built in self test for timing module holdover | |
CN102185663B (en) | Frequency calibration method and device | |
CN113541913B (en) | Clock calibration method, clock calibration device, electronic device, and readable medium | |
CN107566105B (en) | Time synchronization equipment compensation method, device, storage medium and computer equipment thereof | |
EP2896129B1 (en) | Communications device with oscillator calibration and related methods | |
CN113114108A (en) | Method for estimating crystal oscillator frequency | |
CN110336557B (en) | Frequency compensation method, terminal and storage medium | |
CN112398766B (en) | Frequency offset compensation method and device | |
US8909164B2 (en) | Frequency offset correction | |
CN111045317B (en) | Calibration method, device and system of equipment clock, self-calibration method and equipment | |
CN112083226A (en) | Frequency calibration method and device for electronic equipment, medium and electronic equipment | |
CN111045318B (en) | Calibration method, device and system of equipment clock, self-calibration method and equipment | |
GB2335554A (en) | Radio synchronisation system | |
CN101488751B (en) | Measurement system and method for temperature frequency correcting apparatus | |
JP4454126B2 (en) | Temperature compensation oscillator adjustment method | |
CN105634473A (en) | Method and device for adjusting frequency of mobile terminal | |
CN101488752A (en) | Temperature frequency correcting apparatus | |
CN101388646B (en) | Successive approximation temperature and frequency correcting method and device | |
CN110212911B (en) | Frequency calibration method and device and storage medium | |
CN115856793A (en) | Radar signal frequency deviation estimation compensation method | |
US20190319651A1 (en) | Noise canceller device | |
JP2010281596A (en) | Temperature-compensated distance detection device | |
CN109981065B (en) | Power amplifier gain control method, device, power amplifier system, storage medium and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |