Clock frequency compensation method and system for GNSS system, storage medium and terminal

文档序号:1469701 发布日期:2020-02-21 浏览:14次 中文

阅读说明:本技术 用于gnss系统的时钟频率补偿方法和系统、存储介质、终端 (Clock frequency compensation method and system for GNSS system, storage medium and terminal ) 是由 蒋冶 张娣 于 2018-08-10 设计创作,主要内容包括:一种用于GNSS系统的时钟频率补偿方法和系统、存储介质、终端,所述方法包括:获取晶体振荡器的至少两个温度数据,所述至少两个温度数据分别表征所述晶体振荡器的不同模块的温度;将所述至少两个温度数据输入温补模型,以获取所述时钟频率补偿值,所述温补模型用于描述温度数据与时钟频率补偿值之间的对应关系。通过本发明提供的方案能够有效减少时钟频率的补偿误差。(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.)

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;

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.

2. The clock frequency compensation method of claim 1, wherein the crystal oscillator comprises a crystal and an oscillating circuit coupled together, and wherein the at least two temperature data comprise temperature data of the crystal and temperature data of the oscillating circuit.

3. The clock frequency compensation method of claim 1, wherein the correspondence between the temperature data and the clock frequency compensation value is different for temperature data obtained from different modules.

4. The clock frequency compensation method of claim 3, 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.

5. The clock frequency compensation method according to 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, which is determined after clock frequency compensation based on the historical temperature data.

6. The clock frequency compensation method of claim 5, wherein the default value is determined according to physical properties of the crystal oscillator.

7. The clock frequency compensation method of claim 5, 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 property of the crystal oscillator.

8. A clock frequency compensation system for a GNSS system, comprising:

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.

9. The clock frequency compensation system of claim 8, wherein the crystal oscillator comprises a coupled crystal and oscillation circuit, and wherein the at least two temperature sensors comprise:

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.

10. The clock frequency compensation system of claim 9, wherein the first temperature sensor is integrated in the same chip as the crystal.

11. The clock frequency compensation system of claim 8, wherein the correspondence between the temperature data and the clock frequency compensation value is different for temperature data obtained from different modules.

12. The clock frequency compensation system of claim 11, 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 acquire the clock frequency compensation value.

13. The clock frequency compensation system of claim 8, 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.

14. The clock frequency compensation system of claim 13, 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.

15. The clock frequency compensation system of claim 14, 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.

16. The clock frequency compensation system of claim 13, wherein the default value is determined based on physical properties of the crystal oscillator.

17. A storage medium having stored thereon computer instructions, wherein said computer instructions when executed perform the steps of the method of any of claims 1 to 7.

18. 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 7.

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 frequency change of the oscillator caused by a temperature according to an actually measured temperature, thereby providing a clock having a frequency that is less varied with a 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 calibrates 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 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.

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 comprises a crystal and an oscillating 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 above 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 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 mentioned in the background, the conventional Temperature sensor crystal (TSX) scheme applied to a Global Navigation Satellite System (GNSS) generally has a problem of large compensation error for clock frequency, 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 comprehensible, embodiments accompanied with 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 value 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 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 (e.g., cutting pattern) 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 the temperature data and an output value of the polynomial 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 is coupled to the clock frequency compensation module 330, so as 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 the 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 the respectively coupled analog-to-digital converters 340. In response to receiving temperature data for a 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 temperature data, 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 acquired by the plurality of 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 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 clock frequency compensation, 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.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于雷达芯片同步的设备和方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!