Clock frequency compensation method and system for GNSS system, storage medium and terminal
阅读说明:本技术 用于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
Specifically, the clock
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
In one or more embodiments, the
In one or more embodiments, the number of the
For example, the plurality of
Further, after acquiring the temperature data acquired by the plurality of
Further, the clock
In one or more embodiments, the number of the analog-to-
For example, with continued reference to fig. 3, the output of the
Similarly, the output of each of the
In one or more embodiments, the clock
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
For example, a clock frequency compensation value corresponding to the temperature data transmitted from the
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
Further, the
Further, the default value may be determined based on physical properties of the
In a typical application scenario, by implementing the technical solutions of the methods shown in fig. 1 and fig. 2, the clock
Specifically, the clock
Further, during operation, the
Further, during operation, the
When the clock
Further, in response to obtaining the temperature data of the
Further, the determining
Further, after determining the clock frequency compensation value corresponding to the currently obtained temperature data of the
Further, the clock
Further, the
Further, the
On the other hand, the
Thus, based on the real-time deviation of the clock frequency and the temperature data of the various parts of
The clock
Therefore, according to the temperature data of different parts of the
Thus, according to the present embodiment, the temperature of each block of the
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
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
In one or more embodiments, the processor may be a processor of the
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.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:用于雷达芯片同步的设备和方法