CN110830033B - Clock frequency compensation method and system for GNSS system, storage medium and terminal - Google Patents
Clock frequency compensation method and system for GNSS system, storage medium and terminal Download PDFInfo
- Publication number
- CN110830033B CN110830033B CN201810909510.9A CN201810909510A CN110830033B CN 110830033 B CN110830033 B CN 110830033B CN 201810909510 A CN201810909510 A CN 201810909510A CN 110830033 B CN110830033 B CN 110830033B
- Authority
- CN
- China
- Prior art keywords
- clock frequency
- temperature data
- frequency compensation
- temperature
- 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 27
- 238000003860 storage Methods 0.000 title claims abstract description 10
- 239000013078 crystal Substances 0.000 claims abstract description 116
- 230000000704 physical effect Effects 0.000 claims description 12
- 238000009825 accumulation Methods 0.000 claims description 5
- 230000010355 oscillation Effects 0.000 description 20
- 238000012937 correction Methods 0.000 description 4
- 238000005520 cutting process Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 230000003071 parasitic effect Effects 0.000 description 3
- 239000003990 capacitor Substances 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000002349 favourable effect Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- 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
Landscapes
- Oscillators With Electromechanical Resonators (AREA)
Abstract
A clock frequency compensation method and system, a storage medium and a terminal for a GNSS system, wherein the method comprises the following steps: acquiring at least two temperature data of a crystal oscillator, wherein the at least two temperature data respectively represent the temperatures of different modules of the crystal oscillator; and inputting the at least two temperature data into a temperature compensation model to obtain the clock frequency compensation value, wherein the temperature compensation model is used for describing the corresponding relation between the temperature data and the clock frequency compensation value. The scheme provided by the invention can effectively reduce the compensation error of the clock frequency.
Description
Technical Field
The invention relates to the technical field of satellite navigation systems, in particular to a clock frequency compensation method and system for a GNSS system, a storage medium and a terminal.
Background
Conventional Global Navigation Satellite System (GNSS) schemes are mostly clocked by a Temperature compensated Crystal Oscillator (TCXO). The TCXO is calibrated at the time of factory shipment, and compensates for a temperature-induced frequency change of the oscillator according to an actually measured temperature, thereby providing a clock having a frequency that varies little with temperature.
However, because the TCXO scheme has the disadvantages of high cost and incapability of implementing a low power consumption mode, a Temperature Sensor Crystal (TSX) scheme is gradually used to replace the conventional TCXO scheme.
The TSX scheme is characterized in that the crystal manufacturer only provides the crystal and the temperature sensor, and the system integrator corrects and compensates the influence of the temperature on the frequency.
However, the existing TSX scheme generally has a problem of large compensation error of the clock frequency, which is not favorable for accurate calibration of the clock in the GNSS system.
Disclosure of Invention
The technical problem solved by the invention is how to reduce the compensation error of the clock frequency.
To solve the above technical problems, an embodiment of the present invention provides a clock frequency compensation method for a GNSS system, including: acquiring at least two temperature data of a crystal oscillator, wherein the at least two temperature data respectively represent the temperatures of different modules of the crystal oscillator; and inputting the at least two temperature data into a temperature compensation model to obtain the clock frequency compensation value, wherein the temperature compensation model is used for describing the corresponding relation between the temperature data and the clock frequency compensation value.
Optionally, the crystal oscillator includes a crystal and an oscillation circuit coupled to each other, and the at least two temperature data include temperature data of the crystal and temperature data of the oscillation circuit.
Optionally, for the temperature data obtained from different modules, the correspondence between the temperature data and the clock frequency compensation value is different.
Optionally, the inputting the at least two temperature data into a temperature compensation model to obtain the clock frequency compensation value includes: for each temperature data, determining a corresponding relation between the temperature data and a clock frequency compensation value according to a module related to the temperature data, and determining a clock frequency compensation value corresponding to the temperature data according to the corresponding relation; and accumulating the clock frequency compensation value corresponding to each temperature data to obtain the clock frequency compensation value.
Optionally, the corresponding relationship between the temperature data and the clock frequency compensation value is determined according to a default value, historical temperature data, and a real-time deviation of the clock frequency, where the real-time deviation of the clock frequency is determined after clock frequency compensation is performed based on the historical temperature data.
Optionally, the crystal oscillator includes a crystal and an oscillation circuit coupled to each other, and the default value is determined according to a physical property of the crystal oscillator.
Optionally, the corresponding relationship between the temperature data and the clock frequency compensation value is determined according to a default value, historical temperature data, and a real-time deviation of the clock frequency, and is as follows: and correcting the corresponding relation according to the historical temperature data and the real-time deviation of the clock frequency, wherein the corresponding relation is initially determined according to the physical property of the crystal oscillator. To solve the above technical problem, an embodiment of the present invention further provides a clock frequency compensation system for a GNSS system, including: a crystal oscillator; at least two temperature sensors adapted to measure temperature data of different modules of the crystal oscillator, respectively; and the clock frequency compensation module is coupled with the at least two temperature sensors, receives the temperature data acquired by the at least two temperature sensors respectively, and determines a clock frequency compensation value according to the acquired temperature data based on a temperature compensation model, wherein the temperature compensation model is used for describing the corresponding relation between the temperature data and the clock frequency compensation value.
Optionally, the crystal oscillator includes a crystal and an oscillation circuit coupled to each other, and the at least two temperature sensors include: a first temperature sensor adapted to measure temperature data of the crystal; a second temperature sensor adapted to measure temperature data of the oscillating circuit.
Optionally, the first temperature sensor and the crystal are integrated in the same chip.
Optionally, for the temperature data obtained from different modules, the correspondence between the temperature data and the clock frequency compensation value is different.
Optionally, the clock frequency compensation module includes: the determining submodule determines a corresponding relation between the temperature data and a clock frequency compensation value according to a module related to the temperature data and determines the clock frequency compensation value corresponding to the temperature data according to the corresponding relation for each temperature data; and the accumulation submodule accumulates the clock frequency compensation value corresponding to each temperature data to acquire the clock frequency compensation value.
Optionally, the corresponding relationship between the temperature data and the clock frequency compensation value is determined according to a default value, historical temperature data, and a real-time deviation of the clock frequency, where the real-time deviation of the clock frequency is determined after clock frequency compensation is performed based on the historical temperature data.
Optionally, the clock frequency compensation system further includes: the GNSS module is used for acquiring the real-time deviation of the clock frequency; a parameter estimation module coupled to the at least two temperature sensors, the GNSS module, and the clock frequency compensation module to correct the correspondence based on the historical temperature data and the real-time deviation of the clock frequency, the correspondence initially determined based on physical attributes of the crystal oscillator.
Optionally, the GNSS module is coupled to the clock frequency compensation module to receive the clock frequency compensation value determined by the clock frequency compensation module.
Optionally, the default value is determined according to a physical property of the crystal oscillator.
To solve the above technical problem, an embodiment of the present invention further provides a storage medium having stored thereon computer instructions, where the computer instructions execute the steps of the above method when executed.
In order to solve the foregoing technical problem, an embodiment of the present invention further provides a terminal, including a memory and a processor, where the memory stores computer instructions capable of being executed on the processor, and the processor executes the computer instructions to perform the steps of the foregoing method.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a clock frequency compensation method for a GNSS system, which comprises the following steps: acquiring at least two temperature data of a crystal oscillator, wherein the at least two temperature data respectively represent the temperatures of different modules of the crystal oscillator; and inputting the at least two temperature data into a temperature compensation model to obtain the clock frequency compensation value, wherein the temperature compensation model is used for describing the corresponding relation between the temperature data and the clock frequency compensation value. Compared with the prior technical scheme of only measuring the crystal temperature and determining the clock frequency compensation value, the scheme of the embodiment of the invention obtains a more accurate clock frequency compensation value by measuring the temperatures of a plurality of modules of the crystal oscillator and inputting the temperature data obtained by measurement into the temperature compensation model together. Furthermore, when different parts of the crystal oscillator have temperature differences, the scheme of the embodiment of the invention can fully consider the actual temperature of each part of the crystal oscillator, so that the frequency compensation is better carried out, and the compensation error of the clock frequency is effectively reduced.
Further, the crystal oscillator includes a crystal and an oscillation circuit coupled to each other, and the at least two temperature data include temperature data of the crystal and temperature data of the oscillation circuit. Therefore, the problem that the clock frequency compensation value is large in deviation when the clock frequency compensation value is determined independently according to the crystal temperature due to the fact that the temperature of each part of the crystal oscillator is not uniform can be effectively solved, the compensation error of the clock frequency is effectively reduced, and the accuracy of the clock of the satellite navigation system is improved.
Drawings
FIG. 1 is a flowchart illustrating a clock frequency compensation method for a GNSS system according to an embodiment of the present invention;
FIG. 2 is a flowchart of one embodiment of step S102 of FIG. 1;
FIG. 3 is a diagram illustrating a clock frequency compensation system for a GNSS system according to an embodiment of the present invention.
Detailed Description
As will be understood by those skilled in the art, as background art, the problem of large compensation error of clock frequency is common in the existing Temperature Sensor Crystal (TSX) solution applied to a Global Navigation Satellite System (GNSS), which is not favorable for accurate calibration of a clock in the GNSS System.
The inventor of the present application has found through analysis that the above technical problem occurs because the existing TSX scheme only uses one temperature sensor to measure the temperature of the crystal, and then determines a compensation value of the frequency (i.e., a clock frequency compensation value) based on a temperature compensation model according to the temperature, thereby compensating the clock frequency output by the crystal oscillator.
Specifically, the crystal oscillator mainly includes two parts: a crystal and an oscillating circuit.
In addition to the temperature of the crystal affecting the frequency of the oscillator output, temperature variations of various modules in the oscillator circuit (such as a capacitor array, a parasitic capacitor, etc. in the oscillator circuit) also affect the frequency of the oscillator output.
In practical applications, the crystal and the oscillating circuit are not on the same chip, which results in that the temperatures of the two parts are not necessarily the same.
Therefore, it is obvious that the clock frequency compensation by measuring the crystal temperature alone in the prior art cannot compensate the frequency deviation of the oscillation circuit caused by the temperature influence. Especially when the temperature changes drastically, the clock frequency output by the crystal oscillator still has severe jitter after temperature compensation based on the prior art scheme.
On the other hand, the existing model only considers the influence of the crystal temperature on the frequency, and does not consider other parameters (such as the influence of the temperature of the oscillator on the frequency, and the like), and the inaccuracy of the parameter estimation can aggravate the error degree of the finally output clock frequency compensation value.
To solve the above technical problem, an embodiment of the present invention provides a clock frequency compensation method for a GNSS system, including: acquiring at least two temperature data of a crystal oscillator, wherein the at least two temperature data respectively represent the temperatures of different modules of the crystal oscillator; and inputting the at least two temperature data into a temperature compensation model to obtain the clock frequency compensation value, wherein the temperature compensation model is used for describing the corresponding relation between the temperature data and the clock frequency compensation value.
Those skilled in the art understand that the solution of the embodiment of the present invention obtains a more accurate clock frequency compensation value by measuring the temperatures of a plurality of modules of the crystal oscillator and inputting the temperature data obtained by measurement into the temperature compensation model together. Furthermore, when different parts of the crystal oscillator have temperature differences, the scheme of the embodiment of the invention can fully consider the actual temperature of each part of the crystal oscillator, so that the frequency compensation is better carried out, and the compensation error of the clock frequency is effectively reduced.
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, embodiments accompanying figures are described in detail below.
FIG. 1 is a flowchart illustrating a clock frequency compensation method for a GNSS system according to an embodiment of the present invention. The scheme of the embodiment can be applied to a scene that TSX is adopted to provide clocks for a satellite navigation system such as a GNSS system; alternatively, the method can also be applied to a scenario in which other devices are adopted to provide clocks for a satellite navigation system, and the temperatures of various modules (such as a crystal and an oscillator) in the other devices are different.
Specifically, in this embodiment, the clock frequency compensation method for a GNSS system may include the following steps:
step S101, at least two temperature data of the crystal oscillator are obtained, and the at least two temperature data respectively represent the temperatures of different modules of the crystal oscillator.
Step S102, inputting the at least two temperature data into a temperature compensation model to obtain the clock frequency compensation value, wherein the temperature compensation model is used for describing the corresponding relation between the temperature data and the clock frequency compensation value.
More specifically, the crystal oscillator may include a crystal and an oscillation circuit coupled to each other, and the at least two temperature data may include temperature data of the crystal and temperature data of the oscillation circuit. Wherein the crystal may be TSX. Therefore, the problem that the clock frequency compensation value is large in deviation when the clock frequency compensation value is determined independently according to the crystal temperature due to the fact that the temperature of each part of the crystal oscillator is not uniform can be effectively solved, the compensation error of the clock frequency is effectively reduced, and the accuracy of the clock of the satellite navigation system is improved.
In one or more embodiments, a temperature sensor may be integrated in the chip in which the crystal is packaged to accurately collect temperature data of the crystal. Alternatively, the temperature sensor may be disposed on (or near) the crystal to collect temperature data of the crystal.
In one or more embodiments, at least one temperature sensor may be disposed proximate to the oscillating circuit, such as proximate to a capacitive array and/or parasitic capacitance of the oscillating circuit, to collect temperature data of the oscillating circuit.
In one or more embodiments, when a plurality of temperature sensors are provided for the oscillation circuit, the temperature data collected by the plurality of temperature sensors may be averaged and the average may be used as the temperature data of the oscillation circuit.
In a variation, the temperature data collected by the plurality of temperature sensors may be all used as the temperature data of the oscillation circuit, and the temperature data of the crystal may be input into the temperature compensation model together to obtain the clock frequency compensation value.
In one or more embodiments, the correspondence between the temperature data described by the temperature compensation model and the clock frequency compensation value can be embodied in the form of a third-order polynomial, and the correspondence can be generated into a curve for visual depiction.
In one or more embodiments, the correspondence between the temperature data and the clock frequency compensation value may be different for temperature data obtained from different modules.
For example, the temperature data obtained from different modules correspond to different third-order polynomials, the coefficients configured in the different third-order polynomials are different, and the corresponding curves are also different.
In one or more embodiments, referring to fig. 2, the step S102 may include the steps of:
step S1021, for each temperature data, determining a corresponding relation between the temperature data and a clock frequency compensation value according to the module associated with the temperature data, and determining a clock frequency compensation value corresponding to the temperature data according to the corresponding relation.
Step S1022, the clock frequency compensation values corresponding to the temperature data are accumulated to obtain the clock frequency compensation values.
For example, a clock frequency compensation value corresponding to the temperature data of the currently acquired crystal is determined according to a curve corresponding to the temperature of the crystal, and at the same time, before, after, a clock frequency compensation value corresponding to the temperature data of the currently acquired oscillation circuit is determined according to a curve corresponding to the temperature of the oscillation circuit, and the two clock frequency compensation values are added to be used as a finally output clock frequency compensation value.
Therefore, the influence of the temperature of different parts of the crystal oscillator on the clock frequency compensation value can be fully considered, and the compensation error can be reduced.
In one or more embodiments, the correspondence between the temperature data and the clock frequency compensation value may be determined according to a default value, historical temperature data, and a real-time deviation of the clock frequency, which may be determined after performing clock frequency compensation based on the historical temperature data.
In particular, the default value may be determined according to physical properties of the crystal oscillator. Wherein the physical property may be selected from: cutting data (such as cutting mode) of the crystal; the manufacturing process of the oscillating circuit (such as the performance of capacitance changing with temperature).
In one or more embodiments, the correspondence may be corrected based on the historical temperature data and the real-time deviation of the clock frequency, which may be initially determined based on physical properties of the crystal oscillator.
For example, a polynomial corresponding to temperature data in a temperature compensation model may be initially determined according to physical properties of the crystal oscillator, and each coefficient in the polynomial is initially filled with a default value, where an input value of the polynomial is temperature data and an output value is a clock frequency compensation value. Further, the temperature data obtained from different modules may correspond to different polynomials.
Further, after the clock frequency compensation value is determined by performing the scheme of the embodiment, compensation may be performed based on the clock frequency compensation value, and the compensated clock frequency may be transmitted to the GNSS system.
Further, the GNSS system may feed back the difference between the received compensated clock frequency and the standard clock frequency (i.e., the real-time offset). The standard clock frequency may be determined by the GNSS system, such as the clock frequency determined by the GNSS system through positioning.
Furthermore, according to the real-time deviation and the temperature data (namely the historical temperature data) adopted when the compensated clock frequency is determined, each term coefficient in the corresponding polynomial is corrected, so that the output result of the polynomial is more practical, and the frequency compensation is better carried out.
Therefore, by adopting the scheme of the embodiment, the temperature of a plurality of modules of the crystal oscillator is measured, and the temperature data obtained by measurement is input into the temperature compensation model together to obtain a more accurate clock frequency compensation value.
Furthermore, when different parts of the crystal oscillator have temperature differences, the scheme of the embodiment of the invention can fully consider the actual temperature of each part of the crystal oscillator, so that the frequency compensation is better carried out, and the compensation error of the clock frequency is effectively reduced.
FIG. 3 is a diagram illustrating a clock frequency compensation system for a GNSS system according to an embodiment of the present invention. The clock frequency compensation system 300 may implement the method solutions shown in fig. 1 and fig. 2 to compensate the clock frequency output by the crystal oscillator 310.
Specifically, the clock frequency compensation system 300 may include: a crystal oscillator 310; at least two temperature sensors adapted to measure temperature data of different modules of the crystal oscillator 310, respectively; the clock frequency compensation module 330 is coupled to the at least two temperature sensors, receives the temperature data obtained by the at least two temperature sensors, and determines a clock frequency compensation value according to the obtained temperature data based on a temperature compensation model, where the temperature compensation model is used to describe a corresponding relationship between the temperature data and the clock frequency compensation value.
Further, the explanation of the terms involved in the present embodiment can refer to the related description in fig. 1 and fig. 2, which is not repeated herein.
Further, the crystal oscillator 310 may include a crystal 311 and an oscillation circuit 312 coupled to each other, and the at least two temperature sensors may include: a first temperature sensor 321 adapted to measure temperature data of the crystal 311; a second temperature sensor 322 adapted to measure temperature data of the oscillating circuit 312.
In one or more embodiments, the first temperature sensor 321 can be integrated in the same chip as the crystal 311.
In one or more embodiments, the number of the second temperature sensors 322 may be one or more, and when there are a plurality of second temperature sensors 322 (fig. 3 illustrates two second temperature sensors 322, and in practical applications, a person skilled in the art may adjust the specific number and the positions of the second temperature sensors 322 as needed), the plurality of second temperature sensors 322 may measure the temperatures of different portions of the oscillating circuit 312 respectively.
For example, the plurality of second temperature sensors 322 may be used to measure the temperature of the capacitive array and the parasitic capacitance of the oscillating circuit 312, respectively.
Further, after acquiring the temperature data acquired by the plurality of second temperature sensors 322, the clock frequency compensation module 330 may sum the plurality of temperature data to acquire temperature data, which is used to characterize the temperature of the oscillating circuit 312.
Further, the clock frequency compensation system 300 may further include at least one Analog-to-Digital Converter (ADC) 340, so as to convert the temperature data collected by each temperature sensor into a Digital signal and transmit the Digital signal to the clock frequency compensation module 330.
In one or more embodiments, the number of the analog-to-digital converters 340 may be determined according to the number of the temperature sensors.
For example, with continued reference to fig. 3, the output of the first temperature sensor 321 may be coupled to an analog-to-digital converter 340, and the output of the analog-to-digital converter 340 may be coupled to the clock frequency compensation module 330 to transmit the converted temperature data to the clock frequency compensation module 330 for later use.
Similarly, the output of each of the second temperature sensors 322 may be coupled to a respective analog-to-digital converter 340, and the output of each analog-to-digital converter 340 is coupled to the clock frequency compensation module 330, so as to transmit the respective converted temperature data to the clock frequency compensation module 330 for later use.
In one or more embodiments, the clock frequency compensation module 330 processes the received temperature data based on the temperature compensation model to determine a clock frequency compensation value. Wherein, for the temperature data obtained from different modules, the corresponding relationship between the temperature data and the clock frequency compensation value may be different.
For example, for the correspondence between the temperature data obtained from the crystal 311 (i.e., the temperature data received from the first temperature sensor 321) and the clock frequency compensation value, the correspondence may be different from the correspondence between the temperature data obtained from the oscillation circuit 312 (i.e., the temperature data received from the second temperature sensor 322) and the clock frequency compensation value.
In one or more embodiments, the clock frequency compensation module 330 may include: the determining submodule 331, for each temperature data, determines a corresponding relationship between the temperature data and a clock frequency compensation value according to a module (such as the crystal 311 or the oscillating circuit 312) associated with the temperature data, and determines a clock frequency compensation value corresponding to the temperature data according to the corresponding relationship; the accumulation submodule 332 accumulates the clock frequency compensation value corresponding to each temperature data to obtain the clock frequency compensation value.
For example, a clock frequency compensation value corresponding to the temperature data transmitted from the first temperature sensor 321 is determined according to the correspondence between the temperature data obtained from the crystal 311 and the clock frequency compensation value, a clock frequency compensation value corresponding to the temperature data transmitted from the second temperature sensor 322 is determined according to the correspondence between the temperature data obtained from the oscillation circuit 312 and the clock frequency compensation value, and the two clock frequency compensation values are added and output.
In one or more embodiments, the correspondence between the temperature data and the clock frequency compensation value may be determined according to a default value, historical temperature data, and a real-time deviation of the clock frequency, which may be determined after performing clock frequency compensation based on the historical temperature data.
In one or more embodiments, the clock frequency compensation system 300 may further include: a GNSS module 350, configured to obtain a real-time offset of the clock frequency; a parameter estimation module 360 coupled to the at least two temperature sensors, the GNSS module 350 and the clock frequency compensation module 330, for correcting the correspondence, which is initially determined according to physical properties of the crystal oscillator 310, according to the historical temperature data and the real-time deviation of the clock frequency.
Further, the GNSS module 350 may be coupled to the clock frequency compensation module 330 to receive the clock frequency compensation value determined by the clock frequency compensation module 330.
Further, the default value may be determined based on physical properties of the crystal oscillator 310. Wherein the physical properties of the crystal oscillator 310 may be selected from: cutting data of the crystal 311; a process for manufacturing the oscillating circuit 312.
In a typical application scenario, by implementing the technical solutions of the methods shown in fig. 1 and fig. 2, the clock frequency compensation system 300 according to this embodiment can compensate the deviation of the clock frequency of the crystal oscillator 310 (which may be simply referred to as clock frequency deviation) more accurately.
Specifically, the clock frequency compensation module 330 stores therein a temperature compensation model of the temperature-to-frequency effect, the temperature compensation model includes a plurality of correspondences between temperature data obtained from different portions of the crystal oscillator 310 and the clock frequency compensation value, and a coefficient of each correspondence is initially configured as a default parameter. For example, in this scenario, the temperature compensation model describes a corresponding relationship between temperature data collected from the crystal 311 and a clock frequency compensation value, and a corresponding relationship between temperature data collected from the oscillation circuit 312 and a clock frequency compensation value, and coefficients in the two corresponding relationships are initially configured with different default values, respectively.
Further, during operation, the first temperature sensor 321 collects temperature data of the crystal 311 and sends the collected temperature data of the crystal 311 to the clock frequency compensation module 330 via the coupled analog-to-digital converter 340.
Further, during operation, the second temperature sensor 322 collects temperature data of the oscillating circuit 312 and sends the collected temperature data of the oscillating circuit 312 to the clock frequency compensation module 330 via the coupled analog-to-digital converter 340.
When the clock frequency compensation system 300 is provided with a plurality of second temperature sensors 322, the plurality of second temperature sensors 322 may respectively transmit the respectively acquired temperature data of different parts of the oscillating circuit 312 to the clock frequency compensation module 330 via respectively coupled analog-to-digital converters 340. In response to receiving temperature data for the plurality of oscillator circuits 312, the clock frequency compensation module 330 may sum the temperature data for the plurality of oscillator circuits 312 as the temperature data for the oscillator circuits 312 that is input to the temperature compensation model.
Further, in response to obtaining the temperature data of the crystal 311 from the first temperature sensor 321 and the temperature data of the oscillating circuit 312 from the second temperature sensor 322, the clock frequency compensation module 330 inputs the two temperature data into the temperature compensation model.
Further, the determining sub-module 331 of the clock frequency compensation module 330 may determine a clock frequency compensation value corresponding to the temperature data of the crystal 311 according to the correspondence between the temperature data collected from the crystal 311 and the clock frequency compensation value described by the temperature compensation model, and determine a clock frequency compensation value corresponding to the temperature data of the oscillating circuit 312 according to the correspondence between the temperature data collected from the oscillating circuit 312 and the clock frequency compensation value described by the temperature compensation model.
Further, after determining the clock frequency compensation value corresponding to the currently obtained temperature data of the crystal 311 and the clock frequency compensation value corresponding to the currently obtained temperature data of the oscillation circuit 312, respectively, the accumulation submodule 332 of the clock frequency compensation module 330 may sum the two clock frequency compensation values and output the sum as the currently determined clock frequency compensation value of the crystal oscillator 310.
Further, the clock frequency compensation module 330 may send the clock frequency compensation value output by the temperature compensation module (i.e., the clock frequency compensation value output by the accumulation sub-module 332) to the GNSS module 350.
Further, the GNSS module 350 may feed back the real-time deviation of the clock frequency determined based on the received clock frequency compensation value to the parameter estimation module 360. Wherein the parameter estimation module 360 may estimate parameters of the temperature compensation model.
Further, the parameter estimation module 360 is coupled to the first temperature sensor 321 and the second temperature sensor 322 (indirectly coupled through the respective analog-to-digital converters 340). Thus, after acquiring temperature data of a plurality of portions of the crystal oscillator 310, each temperature sensor is simultaneously transmitted to the clock frequency compensation module 330 and the parameter estimation module 360.
On the other hand, the parameter estimation module 360 obtains the real-time deviation between the clock frequency corrected by the clock frequency compensation value and the standard clock frequency from the GNSS module 350.
Thus, based on the real-time deviation of the clock frequency and the temperature data of the various parts of crystal oscillator 310, parameter estimation module 360 may adjust the coefficients of the various correspondences in the temperature compensation model and send correction values (e.g., corrections based on the current values) to the clock frequency compensation module 330. And when the correction is carried out for the first time, the current value is the default value.
The clock frequency compensation module 330 may correct the corresponding relationship according to the received correction amount, so that the corrected corresponding relationship may be used as a reference when determining the clock frequency compensation value according to the acquired multiple temperature data next time, thereby improving the accuracy of the clock frequency compensation value finally output to the GNSS module 350.
Therefore, according to the temperature data of different parts of the crystal oscillator 310 obtained by the multiple temperature sensors and the real-time deviation of the clock frequency determined by the GNSS module 350 after positioning, the parameter estimation module 360 can continuously update the coefficients (also referred to as parameters) of the respective corresponding relations in the temperature compensation model, so as to perform better frequency compensation.
Thus, according to the solution of the present embodiment, the temperature of each block of the crystal 311 and the oscillation circuit 312 is measured at the same time by using a plurality of temperature sensors, and the frequency value to be compensated (i.e., the clock frequency compensation value) is calculated from these temperatures to perform the compensation of the clock frequency, so that the frequency deviation of the crystal oscillator 310 can be compensated more accurately.
Further, the embodiment of the present invention also discloses a storage medium, on which computer instructions are stored, and when the computer instructions are executed, the technical solution of the method described in the embodiments shown in fig. 1 and fig. 2 is executed. Preferably, the storage medium may include a computer-readable storage medium such as a non-volatile (non-volatile) memory or a non-transitory (non-transient) memory. The storage medium may include ROM, RAM, magnetic or optical disks, etc.
In a non-limiting embodiment, the parameter estimation module 360 described in the embodiment of fig. 3 above may be adapted to execute the computer instructions, and the clock frequency compensation module 330 may be implemented by using a dedicated logic module.
Further, an embodiment of the present invention further discloses a terminal, which includes a memory and a processor, where the memory stores computer instructions capable of being executed on the processor, and the processor executes the technical solution of the method in the embodiment shown in fig. 1 and fig. 2 when executing the computer instructions. Preferably, the terminal may be a User Equipment (UE) or other terminal device integrated with at least a part of the clock frequency compensation system 300 shown in fig. 3.
In one or more embodiments, the processor may be a processor of the GNSS module 350 described in the embodiment of fig. 3.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (14)
1. A clock frequency compensation method for a GNSS system, comprising:
acquiring at least two temperature data of a crystal oscillator, wherein the at least two temperature data respectively represent the temperatures of different modules of the crystal oscillator, the crystal oscillator comprises a crystal and an oscillating circuit which are coupled, the at least two temperature data comprise the temperature data of the crystal and the temperature data of the oscillating circuit, and the crystal comprises TSX;
inputting the at least two temperature data into a temperature compensation model to obtain the clock frequency compensation value, wherein the temperature compensation model is used for describing the corresponding relation between the temperature data and the clock frequency compensation value;
wherein, for the temperature data obtained from different modules, the corresponding relationship between the temperature data and the clock frequency compensation value is different.
2. The clock frequency compensation method of claim 1, wherein the inputting the at least two temperature data into a temperature compensation model to obtain the clock frequency compensation value comprises:
for each temperature data, determining a corresponding relation between the temperature data and a clock frequency compensation value according to a module related to the temperature data, and determining a clock frequency compensation value corresponding to the temperature data according to the corresponding relation;
and accumulating the clock frequency compensation value corresponding to each temperature data to obtain the clock frequency compensation value.
3. The clock frequency compensation method according to claim 1, wherein the correspondence between the temperature data and the clock frequency compensation value is determined according to a default value, historical temperature data, and a real-time deviation of the clock frequency, which is determined after clock frequency compensation based on the historical temperature data.
4. The clock frequency compensation method of claim 3, wherein the default value is determined according to physical properties of the crystal oscillator.
5. The clock frequency compensation method of claim 3, wherein the correspondence between the temperature data and the clock frequency compensation value is determined according to a default value, historical temperature data, and a real-time deviation of the clock frequency by: and correcting the corresponding relation according to the historical temperature data and the real-time deviation of the clock frequency, wherein the corresponding relation is initially determined according to the physical attribute of the crystal oscillator.
6. A clock frequency compensation system for a GNSS system, comprising:
a crystal oscillator comprising a coupled crystal and an oscillating circuit, the crystal comprising a TSX;
at least two temperature sensors adapted to measure temperature data of different modules of the crystal oscillator, respectively, the at least two temperature sensors comprising: a first temperature sensor adapted to measure temperature data of the crystal; a second temperature sensor adapted to measure temperature data of the oscillating circuit;
the clock frequency compensation module is coupled with the at least two temperature sensors, receives temperature data acquired by the at least two temperature sensors respectively, and determines a clock frequency compensation value according to the acquired temperature data based on a temperature compensation model, wherein the temperature compensation model is used for describing the corresponding relation between the temperature data and the clock frequency compensation value;
wherein, for the temperature data obtained from different modules, the corresponding relationship between the temperature data and the clock frequency compensation value is different.
7. The clock frequency compensation system of claim 6, wherein the first temperature sensor is integrated in the same chip as the crystal.
8. The clock frequency compensation system of claim 6, wherein the clock frequency compensation module comprises:
the determining submodule determines a corresponding relation between the temperature data and a clock frequency compensation value according to a module related to the temperature data and determines the clock frequency compensation value corresponding to the temperature data according to the corresponding relation for each temperature data;
and the accumulation submodule accumulates the clock frequency compensation value corresponding to each temperature data to obtain the clock frequency compensation value.
9. The clock frequency compensation system of claim 6, wherein the correspondence between the temperature data and the clock frequency compensation value is determined according to a default value, historical temperature data, and a real-time deviation of the clock frequency determined after clock frequency compensation based on the historical temperature data.
10. The clock frequency compensation system of claim 9, further comprising:
the GNSS module is used for acquiring the real-time deviation of the clock frequency;
a parameter estimation module coupled to the at least two temperature sensors, the GNSS module, and the clock frequency compensation module to correct the correspondence based on the historical temperature data and the real-time deviation of the clock frequency, the correspondence initially determined based on physical attributes of the crystal oscillator.
11. The clock frequency compensation system of claim 10, wherein the GNSS module is coupled to the clock frequency compensation module to receive the clock frequency compensation value determined by the clock frequency compensation module.
12. The clock frequency compensation system of claim 9, wherein the default value is determined based on physical properties of the crystal oscillator.
13. A storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 5.
14. A terminal comprising a memory and a processor, the memory having stored thereon computer instructions executable on the processor, wherein the processor, when executing the computer instructions, performs the steps of the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810909510.9A CN110830033B (en) | 2018-08-10 | 2018-08-10 | Clock frequency compensation method and system for GNSS system, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810909510.9A CN110830033B (en) | 2018-08-10 | 2018-08-10 | Clock frequency compensation method and system for GNSS system, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110830033A CN110830033A (en) | 2020-02-21 |
CN110830033B true CN110830033B (en) | 2022-10-25 |
Family
ID=69541642
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810909510.9A Active CN110830033B (en) | 2018-08-10 | 2018-08-10 | Clock frequency compensation method and system for GNSS system, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110830033B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114500209B (en) * | 2021-12-23 | 2024-02-27 | 北京智联安科技有限公司 | Frequency offset compensation method, system, electronic equipment and computer readable storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202059371U (en) * | 2011-05-13 | 2011-11-30 | 苏州银河龙芯科技有限公司 | Device for realizing compensation of closed loop temperature of clock crystal oscillator |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7649426B2 (en) * | 2006-09-12 | 2010-01-19 | Cts Corporation | Apparatus and method for temperature compensation of crystal oscillators |
US7466209B2 (en) * | 2007-01-05 | 2008-12-16 | Sirf Technology, Inc. | System and method for providing temperature correction in a crystal oscillator |
CN107144860A (en) * | 2017-04-20 | 2017-09-08 | 上海北伽导航科技有限公司 | A kind of frequency drift and time determine method and GNSS receiver |
-
2018
- 2018-08-10 CN CN201810909510.9A patent/CN110830033B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202059371U (en) * | 2011-05-13 | 2011-11-30 | 苏州银河龙芯科技有限公司 | Device for realizing compensation of closed loop temperature of clock crystal oscillator |
Also Published As
Publication number | Publication date |
---|---|
CN110830033A (en) | 2020-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7340366B2 (en) | Method and apparatus of temperature compensation for integrated circuit chip using on-chip sensor and computation means | |
US20200328718A1 (en) | Systems and methods for frequency compensation of real-time-clock systems | |
US9344095B2 (en) | Temperature compensation for an oscillator crystal | |
US8427244B2 (en) | Oscillation circuit and frequency-correcting oscillation circuit | |
US10028239B2 (en) | Method and system for precise temperature and timebase PPM error estimation using multiple timebases | |
WO2016206384A1 (en) | Crystal oscillator circuit, crystal oscillator circuit tuning method, and storage medium | |
CN113114108A (en) | Method for estimating crystal oscillator frequency | |
CN109212560B (en) | Method and apparatus for compensating frequency inaccuracy of frequency generator such as oscillator | |
CN110830033B (en) | Clock frequency compensation method and system for GNSS system, storage medium and terminal | |
CN114647178A (en) | Automatic atomic clock calibration method and system based on Beidou and ground reference transmission | |
US9651626B2 (en) | Electric capacity measurement apparatus with temperature compensation and temperature compensation method thereof | |
CN103904998A (en) | Method and device for adjusting frequency of mobile terminal | |
CN113848568A (en) | Time correction system and method | |
US9838023B2 (en) | Slow-clock calibration method and unit, clock circuit, and mobile communication terminal | |
KR20160006501A (en) | Frequency correction system and correcting method thereof | |
US8909164B2 (en) | Frequency offset correction | |
CN114201001A (en) | Compensation method and device of real-time clock, terminal equipment and medium | |
CN106330134B (en) | A kind of crystal-oscillator circuit and its tuning methods | |
US9310260B2 (en) | Temperature estimation circuit and count value correction circuit | |
CN101488751B (en) | Measurement system and method for temperature frequency correcting apparatus | |
CN112083226A (en) | Frequency calibration method and device for electronic equipment, medium and electronic equipment | |
JP4626498B2 (en) | Microcomputer | |
CN114826156A (en) | Method, device, equipment and storage medium for adjusting output frequency of oscillator circuit | |
EP2940871A1 (en) | Frequency compensation | |
KR20230078989A (en) | Frequency compensation method and circuit, storage medium, electronic device |
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 |