CN110311673A - A kind of transmitting frequency calibration method, terminal and storage medium - Google Patents
A kind of transmitting frequency calibration method, terminal and storage medium Download PDFInfo
- Publication number
- CN110311673A CN110311673A CN201910549452.8A CN201910549452A CN110311673A CN 110311673 A CN110311673 A CN 110311673A CN 201910549452 A CN201910549452 A CN 201910549452A CN 110311673 A CN110311673 A CN 110311673A
- Authority
- CN
- China
- Prior art keywords
- frequency
- dynamic
- compensation
- parameter
- static
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 239000013078 crystal Substances 0.000 claims abstract description 39
- 230000005540 biological transmission Effects 0.000 claims abstract description 8
- 230000003068 static effect Effects 0.000 claims description 76
- 230000006870 function Effects 0.000 claims description 34
- 238000004590 computer program Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 claims description 4
- 241000208340 Araliaceae Species 0.000 claims description 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 2
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 2
- 235000008434 ginseng Nutrition 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 9
- 238000005070 sampling Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 5
- 238000012512 characterization method Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000010355 oscillation Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/13—Receivers
- G01S19/23—Testing, monitoring, correcting or calibrating of receiver elements
- G01S19/235—Calibration of receiver components
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L1/00—Stabilisation of generator output against variations of physical values, e.g. power supply
- H03L1/02—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only
- H03L1/022—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only by indirect stabilisation, i.e. by generating an electrical correction signal which is a function of the temperature
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Oscillators With Electromechanical Resonators (AREA)
Abstract
The embodiment of the present application provides a kind of transmitting frequency calibration method, terminal and storage medium, this method comprises: determining that exemplary frequency deviation values, standard frequency are transmission frequency when transmitting terminal sends signal according to signal frequency and standard frequency that crystal oscillator generates;When exemplary frequency deviation values are greater than predeterminated frequency deviation threshold, dynamic frequency compensation parameter is called;Dynamic frequency compensation parameter is adjusted, and carries out frequency compensation using dynamic frequency compensation parameter adjusted, until completing frequency compensated process when the dynamic frequency deviation after frequency compensation meets frequency departure standard.
Description
Technical field
This application involves crystal oscillator technologies field more particularly to a kind of transmitting frequency calibration methods, terminal and storage medium.
Background technique
In the positioning principle of Global Navigation Satellite System (Global Navigation Satellite System, GNSS)
In, by by satellite emission signal reach GNSS receiving module time, estimated multiplied by electromagnetic wave propagation speed satellite with
The distance between terminal device.Therefore, the clock accuracy of terminal device will directly affect the positioning accuracy of GNSS.
Crystal oscillator can produce highly stable resonance frequency, as the clock frequency of terminal device, since frequency is
The inverse of time, therefore, in order to improve clock accuracy it is necessary to mending to crystal oscillator frequency error as caused by temperature
It repays.
In the prior art, the frequency of crystal oscillator under all temperature ranges is usually determined by one group of C parameter
Deviation, to carry out frequency compensation, and during real-time frequency compensation, crystal oscillator will do it study sampling and self-correcting
Standard, to be calibrated to this group of C parameter.However, the study sampling of crystal oscillator and self calibration need certain triggering
Condition and processing time, these time delays will lead to that frequency departure is big, problem of frequency compensation effect difference.
Summary of the invention
The embodiment of the present application provides a kind of transmitting frequency calibration method, terminal and storage medium, can reduce frequency departure, improves
Frequency compensation effect.
The technical solution of the application is achieved in that
The embodiment of the present application provides a kind of transmitting frequency calibration method, which comprises
According to signal frequency and standard frequency that crystal oscillator generates, determine that exemplary frequency deviation values, the standard frequency are
Transmitting terminal sends transmission frequency when signal;
When the exemplary frequency deviation values are greater than predeterminated frequency deviation threshold, dynamic frequency compensation parameter is called;
The dynamic frequency compensation parameter is adjusted, and is carried out using the dynamic frequency compensation parameter adjusted
Frequency compensation, until completing frequency compensated mistake when the dynamic frequency deviation after frequency compensation meets frequency departure standard
Journey.
In the above-mentioned methods, it is described carry out frequency compensation using the dynamic frequency compensation parameter adjusted after, institute
State method further include:
Static frequency deviation is obtained respectively and dynamic compensating for frequency offset is remaining, and the static frequency offset is using static
Frequency compensation parameter carries out the exemplary frequency deviation values after frequency compensation, and the static frequency compensating parameter is dynamic frequency benefit
Repay the adjustment benchmark of parameter, the dynamic compensating for frequency offset remnants be frequency values after dynamic frequency compensation and standard frequency value it
Between frequency deviation difference;
It is remaining according to the dynamic frequency deviation, the static frequency deviation and the dynamic compensating for frequency offset, it determines
First data to be sampled out;
Obtain Current Temperatures when generating the signal frequency;
According to the described first data to be sampled and the Current Temperatures, the static frequency compensating parameter is calibrated.
In the above-mentioned methods, described according to the dynamic frequency deviation, the static frequency deviation and the dynamic
Compensating for frequency offset is remaining, determines the first data to be sampled, comprising:
Determine the first difference between the dynamic frequency deviation and the static frequency deviation;
The sum of first difference and the dynamic compensating for frequency offset remnants are determined as the described first data to be sampled.
In the above-mentioned methods, the signal frequency and standard frequency generated according to crystal oscillator, determines frequency departure
After value, the method also includes:
When the exemplary frequency deviation values are less than the predeterminated frequency deviation threshold, static frequency compensating parameter is called;
Frequency compensation is carried out using the static frequency compensating parameter.
It is in the above-mentioned methods, described to carry out frequency compensation using the dynamic frequency compensation parameter adjusted, comprising:
The dynamic frequency compensation parameter adjusted is added in predeterminated frequency penalty function, the dynamic frequency is obtained
The corresponding first frequency penalty function of rate compensating parameter;
Frequency compensation is carried out according to Current Temperatures and the first frequency penalty function.
The embodiment of the present application provides a kind of terminal, and the terminal includes:
Determination unit, signal frequency and standard frequency for being generated according to crystal oscillator, determines exemplary frequency deviation values, institute
Stating standard frequency is transmission frequency when transmitting terminal sends signal;
Call unit, for calling dynamic frequency compensation when the exemplary frequency deviation values are greater than predeterminated frequency deviation threshold
Parameter;
Frequency compensation unit for being adjusted to the dynamic frequency compensation parameter, and utilizes adjusted described dynamic
State frequency compensation parameter carries out frequency compensation, until the dynamic frequency deviation after frequency compensation meets frequency departure standard
When, complete frequency compensated process.
In above-mentioned terminal, the terminal further include: acquiring unit and calibration unit;
The acquiring unit, the static frequency remaining for obtaining static frequency deviation and dynamic compensating for frequency offset respectively
Rate offset is the exemplary frequency deviation values carried out after frequency compensation using static frequency compensating parameter, the static frequency compensation ginseng
Number is the adjustment benchmark of the dynamic frequency compensation parameter, and the dynamic compensating for frequency offset remnants are the frequency after dynamic frequency compensation
Frequency deviation difference between rate value and standard frequency value;Obtain Current Temperatures when generating the signal frequency;
The determination unit is also used to according to the dynamic frequency deviation, the static frequency deviation and described dynamic
State compensating for frequency offset is remaining, determines the first data to be sampled;
The calibration unit is used for according to the described first data to be sampled and the Current Temperatures, to the static frequency
Compensating parameter is calibrated.
In above-mentioned terminal, the determination unit is also used to determine the dynamic frequency deviation and the static frequency
The first difference between deviation;By the sum of first difference and the dynamic compensating for frequency offset remnants be determined as described first to
Sampled data.
In above-mentioned terminal, the call unit is also used to be less than the predeterminated frequency deviation when the exemplary frequency deviation values
When threshold value, static frequency compensating parameter is called;
The frequency compensation unit is also used to carry out frequency compensation using the static frequency compensating parameter.
In above-mentioned terminal, the terminal further include: adding unit;
The adding unit, for the dynamic frequency compensation parameter adjusted to be added to predeterminated frequency penalty function
In, obtain the corresponding first frequency penalty function of the dynamic frequency compensation parameter;
The frequency compensation unit is specifically used for carrying out frequency benefit according to Current Temperatures and the first frequency penalty function
It repays.
The embodiment of the present application provides a kind of terminal, and the terminal includes: processor, memory and communication bus;The place
Reason device realizes method as described in any one of the above embodiments when executing the operation program of memory storage.
The embodiment of the present application provides a kind of storage medium, is stored thereon with computer program, is applied to terminal, and feature exists
In the computer program realizes method as described in any one of the above embodiments when being executed by processor.
The embodiment of the present application provides a kind of transmitting frequency calibration method, terminal and storage medium, this method comprises: according to crystal
The signal frequency and standard frequency that oscillator generates determine that exemplary frequency deviation values, standard frequency are hair when transmitting terminal sends signal
Send frequency;When exemplary frequency deviation values are greater than predeterminated frequency deviation threshold, dynamic frequency compensation parameter is called;To dynamic frequency compensation
Parameter is adjusted, and carries out frequency compensation using dynamic frequency compensation parameter adjusted, until dynamic after frequency compensation
When state exemplary frequency deviation values meet frequency departure standard, frequency compensated process is completed.Using above-mentioned implementation, when terminal judges
When exemplary frequency deviation values are greater than predeterminated frequency deviation threshold out, characterization carries out frequency compensation using existing static frequency compensating parameter
When frequency departure it is big, at this point, terminal calls dynamic frequency compensation parameter to carry out parameter adjustment, and utilize dynamic adjusted frequency
Rate compensating parameter carries out frequency compensation parameter, until terminal judges that the dynamic frequency deviation after frequency compensation meets frequency
When deviation standard, terminal completes frequency compensation, thus when crystal oscillator needs real-time learning sampling and self calibration, calls dynamic
State frequency compensation parameter carries out frequency compensation, can reduce the frequency departure after frequency compensation, and improves frequency compensation effect
Fruit.
Detailed description of the invention
Fig. 1 is the sampling schematic diagram of exemplary frequency deviation values and temperature value in the prior art;
Fig. 2 is a kind of flow diagram one of transmitting frequency calibration method provided by the embodiments of the present application;
Fig. 3 is a kind of illustrative schematic diagram for obtaining exemplary frequency deviation values provided by the embodiments of the present application;
Fig. 4 is frequency compensating parameter function in a kind of illustrative history scheme and the application provided by the embodiments of the present application
Comparison diagram;
Fig. 5 is a kind of flow diagram two of transmitting frequency calibration method provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram one of terminal provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram two of terminal provided by the embodiments of the present application.
Specific embodiment
It should be appreciated that specific embodiment described herein is only used to explain the application.It is not used to limit the application.
It should be noted that the temperature-frequency bias property of crystal oscillator usually in the form of simple cubic equation into
Row indicates, it may be determined that a predeterminated frequency departure function, as shown in following formula (1):
F (t)=C3 × (t-t0)3+C2×(t-t0)2+C1×(t-t0)+C0 (1)
Wherein, f (t) is exemplary frequency deviation values of the crystal oscillator at temperature value t, and C3, C2, C1 and C0 are predeterminated frequency
The frequency compensation parameter of departure function, t0For preset temperature constant.
It is understood that in the prior art, by acquiring the exemplary frequency deviation values at several temperature, that is, can determine default
The specific value of C3, C2, C1 and C0 in frequency departure function, so that different temperatures lower frequency deviation is determined using the function,
To compensate.
It should be noted that producing line calibration and application scenarios, the temperature of crystal oscillator under normal conditions can all concentrate
In room temperature section (20 DEG C to 40 DEG C) and high temperature section (40 DEG C or more), being difficult can be at 0 DEG C hereinafter, current compensation scheme, firstly, surveying
Try temperature t=t0When f (t0), calculate C0;C3 and C2 are arranged to Fixed constant again, wherein C2=0, test t0 nearby 2
The exemplary frequency deviation values of temperature value, then substitute into formula (1) and calculate C1, specifically, controlling terminal equipment works under maximum power,
Crystal oscillator heating is driven by operational heat, certain temperature section is formed, as shown in Figure 1, the temperature range is usually 30
DEG C to 40 DEG C, the temperature value and exemplary frequency deviation values at sample temperature section both ends substitute into the value that formula (1) calculates C1;Finally lead to
Cross collect it is multiple from t0The exemplary frequency deviation values of farther away temperature value calculate the actual value of C2 and C3.
It should be noted that the prior art is that frequency departure function is determined under normal temperature environment, it is brilliant to carry out frequency compensation
To 50 DEG C, this section can be relatively good at 20 DEG C for the frequency departure of oscillation body device, usually within 0.5ppm, still -20 DEG C to 0 DEG C
In temperature range, frequency departure can be very big after compensation, typically larger than 1ppm, even more than 3ppm.
In order to reduce crystal oscillator in the frequency departure of each temperature range, this programme is proposed, following implementation is passed through
What example carried out illustrates.
Embodiment one
The embodiment of the present application provides a kind of transmitting frequency calibration method, as shown in Fig. 2, this method may include:
S101, the signal frequency and standard frequency generated according to crystal oscillator, determine that exemplary frequency deviation values, standard frequency are
Transmitting terminal sends transmission frequency when signal.
A kind of transmitting frequency calibration method provided by the embodiments of the present application is suitable for carrying out frequency to the clock frequency of terminal device
Under the scene of calibration.
It should be noted that in the ideal situation, the signal frequency that crystal oscillator provides under different operating temperatures
It should be standard signal frequency, and in actual application, due to the influence of temperature, crystal oscillator is actually in difference
At a temperature of the signal frequency that provides can not reach the standard signal frequency, therefore, it is necessary to carry out frequency compensation, specific standard
Signal frequency the embodiment of the present application is not construed as limiting.
Fig. 3 is a kind of illustrative schematic diagram for obtaining multiple groups exemplary frequency deviation values provided by the embodiments of the present application.Such as Fig. 3 institute
Show, crystal oscillator actually configures on needing mainboard to be applied, which is placed in incubator, by adjusting incubator
Temperature, i.e., the operating temperature of controllable crystal oscillator, obtains multiple groups exemplary frequency deviation values.
In the embodiment of the present application, when the crystal oscillator of terminal generates signal frequency, transmitting terminal is generated standard by terminal
The signal frequency that frequency is generated with crystal oscillator is subtracted each other, and frequency departure is obtained, wherein base station can carry certainly when sending
The signal frequency of body.
S102, when exemplary frequency deviation values be greater than predeterminated frequency deviation threshold when, call dynamic frequency compensation parameter.
When terminal is according to receiving frequency and standard frequency, after determining exemplary frequency deviation values, terminal by exemplary frequency deviation values and
Predeterminated frequency deviation threshold is compared, when terminal judges the big predeterminated frequency deviation threshold of exemplary frequency deviation values rain, terminal tune
With dynamic frequency compensation parameter.
In the embodiment of the present application, terminal has preset dynamic frequency compensation parameter and static frequency compensating parameter, dynamic frequency
Compensating parameter is used to be responsible for carry out frequency compensation use, static frequency compensation under the poor scene of frequency departure of crystal oscillator
Parameter is used to be responsible for carry out frequency compensation use under the preferable scene of frequency departure of crystal oscillator, wherein dynamic frequency is mended
Repaying parameter can be adjusted correspondingly according to the frequency departure after compensation in real time, and static frequency compensating parameter is dynamic frequency
The adjustment benchmark of rate compensating parameter, i.e. dynamic frequency compensation parameter are adjusted according to static frequency compensating parameter.
In the embodiment of the present application, exemplary frequency deviation values and predeterminated frequency deviation threshold are compared by terminal, when terminal judges
When exemplary frequency deviation values are greater than predeterminated frequency deviation threshold out, the frequency departure for characterizing crystal oscillator is poor, and terminal is called at this time
Dynamic frequency compensation parameter, wherein predeterminated frequency deviation threshold is that GNSS position error is caused to be in facing for unacceptable range
Boundary's point.
Further, when terminal judges that exemplary frequency deviation values are less than predeterminated frequency deviation threshold, terminal calls static frequency
Rate compensating parameter, and frequency compensation is carried out using static frequency compensating parameter.
S103, dynamic frequency compensation parameter is adjusted, and carries out frequency using dynamic frequency compensation parameter adjusted
Rate compensation, until completing when the dynamic frequency deviation after frequency compensation meets frequency departure standard to exemplary frequency deviation values
Frequency compensation.
After terminal calls dynamic frequency compensation parameter, terminal is adjusted dynamic frequency compensation parameter, and utilizes
Dynamic frequency compensation parameter adjusted carries out frequency compensation, until the dynamic frequency deviation after frequency compensation meets frequency
When deviation standard, terminal completes frequency compensated process.
In the embodiment of the present application, dynamic frequency compensation parameter adjusted is added to predeterminated frequency penalty function by terminal
In, obtain the corresponding first frequency penalty function of dynamic frequency compensation parameter;Later, terminal is according to Current Temperatures and first frequency
Penalty function carries out frequency compensation.
In the embodiment of the present application, the initial value of terminal dynamic frequency compensation parameter is static frequency compensating parameter, and terminal is dynamic
The adjustment static frequency compensating parameter of state, obtains dynamic frequency compensation parameter, later, terminal substitutes into dynamic frequency compensation parameter
In predeterminated frequency penalty function, the corresponding first frequency penalty function of dynamic frequency compensation parameter is obtained, later, terminal will be current
Temperature inputs in first frequency penalty function, carries out frequency compensation;After frequency compensation, after the compensation of terminal determination frequency
Whether dynamic frequency deviation meets frequency departure standard, and dynamic frequency deviation after terminal judges frequency compensation is not
When meeting frequency departure standard, terminal readjusts dynamic frequency compensation parameter, and by dynamic frequency compensation parameter adjusted
It substitutes into predeterminated frequency penalty function, the first frequency penalty function updated, terminal is compensated based on the first frequency of update
Function continues frequency compensation, until terminal judges that the dynamic frequency deviation after frequency compensation meets frequency departure mark
On time, terminal completes the frequency compensation to exemplary frequency deviation values.
Illustratively, predeterminated frequency penalty function is formula (1):
F (t)=C3 × (t-t0)3+C2×(t-t0)2+C1×(t-t0)+C0 (1)
Terminal substitutes into dynamic frequency compensation parameter in C3, C2, C1 and C0 respectively, obtains the first predeterminated frequency compensation letter
Number, calculates the corresponding dynamic frequency deviation f (t) of Current Temperatures t using the first predeterminated frequency penalty function later.
Based on the above embodiment one, in embodiments herein, above-mentioned terminal is utilizing the dynamic frequency adjusted
After rate compensating parameter carries out frequency compensation, i.e. after S103, the method that above-mentioned terminal carries out frequency calibration can also include with
Lower step, as shown in Figure 5:
S104, terminal obtain static frequency deviation respectively and dynamic compensating for frequency offset is remaining, and static frequency offset is benefit
Exemplary frequency deviation values after carrying out frequency compensation with static frequency compensating parameter, static frequency compensating parameter are dynamic frequency compensation
The adjustment benchmark of parameter, dynamic compensating for frequency offset remnants are the frequency values after dynamic frequency compensation and the frequency between standard frequency value
Deviation.
In the embodiment of the present application, terminal substitutes into static frequency compensating parameter and Current Temperatures in predeterminated frequency penalty function
Frequency compensation is carried out, static frequency deviation is obtained.
In the embodiment of the present application, terminal is previously provided with standard frequency value, when terminal using dynamic frequency compensation parameter into
After line frequency compensation, still there is certain frequency departure between the frequency values and standard frequency value of crystal oscillator, then move
It is remaining that frequency deviation difference between frequency values after state frequency compensation and standard frequency value is confirmed as dynamic compensating for frequency offset.
S105, terminal are remaining according to dynamic frequency deviation, static frequency deviation and dynamic compensating for frequency offset, determine the
One data to be sampled.
After terminal gets static frequency deviation and dynamic compensating for frequency offset is remaining, terminal is according to dynamic frequency deviation
Value, static frequency deviation and dynamic compensating for frequency offset are remaining, determine the first data to be sampled.
In the embodiment of the present application, terminal determines the first difference between dynamic frequency deviation and static frequency deviation;
Later, the sum of the first difference and dynamic compensating for frequency offset remnants are determined as the first data to be sampled by terminal, and terminal is to first wait adopt
Sample data carry out study sampling.
S106, terminal obtain Current Temperatures when generating signal frequency.
After crystal oscillator generates signal frequency, terminal obtains Current Temperatures when generating signal frequency.
S107, terminal calibrate static frequency compensating parameter according to the first data to be sampled and Current Temperatures.
When terminal determines the first data to be sampled, and after getting the corresponding Current Temperatures of signal frequency, terminal root
According to the first data to be sampled and Current Temperatures, static frequency compensating parameter is calibrated.
In the embodiment of the present application, terminal substitutes into the first data to be sampled and Current Temperatures in predeterminated frequency departure function,
To be calibrated to static frequency compensating parameter, to guarantee that the frequency departure of crystal oscillator is in more stable state.
Further, in GNSS locating closing, then stop enabling dynamic frequency compensation parameter, and by dynamic frequency compensation
Parameter reconstruction is to state identical with current static frequency compensation parameter value, for calling dynamic frequency compensation parameter next time
When, the process of dynamic adjustment is carried out on the basis of current static frequency compensation parameter value.
Illustratively, as shown in figure 4, in history scheme using one group of C parameter (frequency compensation parameter) realize frequency compensation,
Sampling study and self-alignment process;Compared to history scheme, C parameter is divided into static Cs parameter in the embodiment of the present application
(static frequency compensating parameter) and dynamic Cd parameter (dynamic frequency compensation parameter), wherein static Cs parameter is for being sampled
Frequency compensation when study, self calibration and preferable crystal oscillator frequency deviation;Dynamic Cd parameter is used in crystal oscillator frequency
Dynamic corrections C parameter compensates when rate deviation is poor;
It is understood that characterization is using when terminal judges that exemplary frequency deviation values are greater than predeterminated frequency deviation threshold
Frequency departure when some static frequency compensating parameter progress frequency compensations is big, at this point, terminal calls dynamic frequency compensation parameter
Parameter adjustment is carried out, and carries out frequency compensation parameter using dynamic frequency compensation parameter adjusted, until terminal judges frequency
When dynamic frequency deviation after rate compensation meets frequency departure standard, terminal completes frequency compensation, thus works as crystal oscillation
When device needs real-time learning sampling and self calibration, dynamic frequency compensation parameter is called to carry out frequency compensation, can reduce frequency benefit
Frequency departure after repaying, and improve frequency compensation effect.
Embodiment two
The embodiment of the present application provides a kind of terminal 1, as shown in fig. 6, the terminal 1 may include:
Determination unit 10, signal frequency and standard frequency for being generated according to crystal oscillator, determines exemplary frequency deviation values,
The standard frequency is transmission frequency when transmitting terminal sends signal;
Call unit 11, for calling dynamic frequency to mend when the exemplary frequency deviation values are greater than predeterminated frequency deviation threshold
Repay parameter;
Frequency compensation unit 12 for being adjusted to the dynamic frequency compensation parameter, and utilizes adjusted described
Dynamic frequency compensation parameter carries out frequency compensation, until the dynamic frequency deviation after frequency compensation meets frequency departure standard
When, complete frequency compensated process.
Optionally, the terminal further include: acquiring unit 13 and calibration unit 14;
The acquiring unit 13, for obtaining static frequency deviation and dynamic compensating for frequency offset remnants, the static state respectively
Frequency compensation value is the exemplary frequency deviation values carried out after frequency compensation using static frequency compensating parameter, the static frequency compensation
Parameter is the adjustment benchmark of the dynamic frequency compensation parameter, and the dynamic compensating for frequency offset remnants is after dynamic frequency compensations
Frequency deviation difference between frequency values and standard frequency value;Obtain Current Temperatures when generating the signal frequency;
The determination unit 10 is also used to according to the dynamic frequency deviation, the static frequency deviation and described
Dynamic compensating for frequency offset is remaining, determines the first data to be sampled;
The calibration unit 14 is used for according to the described first data to be sampled and the Current Temperatures, to the static frequency
Rate compensating parameter is calibrated.
Optionally, the determination unit 10 is also used to determine the dynamic frequency deviation and the static frequency deviation
The first difference between value;It is to be sampled that the sum of first difference and the dynamic compensating for frequency offset remnants are determined as described first
Data.
Optionally, the call unit 11 is also used to be less than the predeterminated frequency deviation threshold when the exemplary frequency deviation values
When, call static frequency compensating parameter;
The frequency compensation unit 12 is also used to carry out frequency compensation using the static frequency compensating parameter.
Optionally, the terminal further include: adding unit 15;
The adding unit 15, for the dynamic frequency compensation parameter adjusted to be added to predeterminated frequency compensation letter
In number, the corresponding first frequency penalty function of the dynamic frequency compensation parameter is obtained;
The frequency compensation unit 12 is specifically used for carrying out frequency according to Current Temperatures and the first frequency penalty function
Compensation.
A kind of terminal provided by the embodiments of the present application, according to signal frequency and standard frequency that crystal oscillator generates, really
Determine exemplary frequency deviation values, standard frequency is transmission frequency when transmitting terminal sends signal;When exemplary frequency deviation values are inclined greater than predeterminated frequency
When poor threshold value, dynamic frequency compensation parameter is called;Dynamic frequency compensation parameter is adjusted, and utilizes dynamic frequency adjusted
Rate compensating parameter carries out frequency compensation, until when the dynamic frequency deviation after frequency compensation meets frequency departure standard, it is complete
At frequency compensated process.It can be seen that the terminal that the present embodiment proposes, when terminal judges that exemplary frequency deviation values are greater than default frequency
When rate deviation threshold, frequency departure when characterization is using existing static frequency compensating parameter progress frequency compensation is big, at this point, eventually
End calls dynamic frequency compensation parameter to carry out parameter adjustment, and carries out frequency compensation using dynamic frequency compensation parameter adjusted
Parameter, when the dynamic frequency deviation after terminal judges frequency compensation meets frequency departure standard, terminal completes frequency
Rate compensation calls dynamic frequency compensation parameter to carry out frequency thus when crystal oscillator needs real-time learning sampling and self calibration
Rate compensation, can reduce the frequency departure after frequency compensation, and improve frequency compensation effect.
Fig. 7 is that a kind of composed structure schematic diagram two of terminal 1 provided by the embodiments of the present application is based in practical applications
Under the same open design of above-described embodiment, as shown in fig. 7, the terminal 1 of the present embodiment include: processor 16, memory 17 and
Communication bus 18.
During specific embodiment, above-mentioned determination unit 10, frequency compensation unit 12, is obtained call unit 11
Unit 13, calibration unit 14 and adding unit 15 can realize that above-mentioned processor 16 can be by the processor 16 being located in terminal 1
Application-specific IC (ASIC, Application Specific Integrated Circuit), digital signal processor
(DSP, Digital Signal Processor), digital signal processing device (DSPD, Digital Signal
Processing Device), programmable logic device (PLD, Programmable Logic Device), field programmable gate
Array (FPGA, Field Programmable Gate Array), CPU, controller, in microcontroller, microprocessor at least
It is a kind of.It is to be appreciated that for different equipment, the electronic device for realizing above-mentioned processor function can also be it is other,
The present embodiment is not especially limited.
In the embodiment of the present application, above-mentioned communication bus 18 is logical for realizing the connection between processor 16 and memory 17
Letter;Above-mentioned processor 16 realizes the frequency calibration side as described in embodiment one when executing the operation program stored in memory 17
Method.
The embodiment of the present application provides a kind of storage medium, is stored thereon with computer program, above-mentioned computer-readable storage
Media storage has one or more program, and said one or multiple programs can be executed by one or more processor, be answered
For in terminal, which to realize the transmitting frequency calibration method as described in embodiment one.
The above, the only preferred embodiment of the application, are not intended to limit the protection scope of the application.
Claims (12)
1. a kind of transmitting frequency calibration method, which is characterized in that the described method includes:
According to signal frequency and standard frequency that crystal oscillator generates, determine that exemplary frequency deviation values, the standard frequency are to send
End sends transmission frequency when signal;
When the exemplary frequency deviation values are greater than predeterminated frequency deviation threshold, dynamic frequency compensation parameter is called;
The dynamic frequency compensation parameter is adjusted, and carries out frequency using the dynamic frequency compensation parameter adjusted
Compensation, until completing frequency compensated process when the dynamic frequency deviation after frequency compensation meets frequency departure standard.
2. the method according to claim 1, wherein described utilize the dynamic frequency compensation parameter adjusted
After carrying out frequency compensation, the method also includes:
Static frequency deviation is obtained respectively and dynamic compensating for frequency offset is remaining, and the static frequency offset is to utilize static frequency
Compensating parameter carries out the exemplary frequency deviation values after frequency compensation, and the static frequency compensating parameter is dynamic frequency compensation ginseng
Several adjustment benchmark, the dynamic compensating for frequency offset remnants are for the frequency values after dynamic frequency compensation and between standard frequency value
Frequency deviation difference;
It is remaining according to the dynamic frequency deviation, the static frequency deviation and the dynamic compensating for frequency offset, determine the
One data to be sampled;
Obtain Current Temperatures when generating the signal frequency;
According to the described first data to be sampled and the Current Temperatures, the static frequency compensating parameter is calibrated.
3. according to the method described in claim 2, it is characterized in that, described according to the dynamic frequency deviation, the static state
Exemplary frequency deviation values and the dynamic compensating for frequency offset are remaining, determine the first data to be sampled, comprising:
Determine the first difference between the dynamic frequency deviation and the static frequency deviation;
The sum of first difference and the dynamic compensating for frequency offset remnants are determined as the described first data to be sampled.
4. the method according to claim 1, wherein the signal frequency generated according to crystal oscillator and mark
Quasi- frequency, after determining exemplary frequency deviation values, the method also includes:
When the exemplary frequency deviation values are less than the predeterminated frequency deviation threshold, static frequency compensating parameter is called;
Frequency compensation is carried out using the static frequency compensating parameter.
5. the method according to claim 1, wherein described utilize the dynamic frequency compensation parameter adjusted
Carry out frequency compensation, comprising:
The dynamic frequency compensation parameter adjusted is added in predeterminated frequency penalty function, the dynamic frequency is obtained and mends
Repay the corresponding first frequency penalty function of parameter;
Frequency compensation is carried out according to Current Temperatures and the first frequency penalty function.
6. a kind of terminal, which is characterized in that the terminal includes:
Determination unit, signal frequency and standard frequency for being generated according to crystal oscillator determine exemplary frequency deviation values, the mark
Quasi- frequency is transmission frequency when transmitting terminal sends signal;
Call unit, for calling dynamic frequency compensation parameter when the exemplary frequency deviation values are greater than predeterminated frequency deviation threshold;
Frequency compensation unit for being adjusted to the dynamic frequency compensation parameter, and utilizes the dynamic frequency adjusted
Rate compensating parameter carries out frequency compensation, until when the dynamic frequency deviation after frequency compensation meets frequency departure standard, it is complete
At frequency compensated process.
7. terminal according to claim 6, which is characterized in that the terminal further include: acquiring unit and calibration unit;
The acquiring unit, remaining for obtaining static frequency deviation and dynamic compensating for frequency offset respectively, the static frequency is mended
Repaying value is the exemplary frequency deviation values carried out after frequency compensation using static frequency compensating parameter, and the static frequency compensating parameter is
The adjustment benchmark of the dynamic frequency compensation parameter, the dynamic compensating for frequency offset remnants are the frequency values after dynamic frequency compensation
Frequency deviation difference between standard frequency value;Obtain Current Temperatures when generating the signal frequency;
The determination unit is also used to be mended according to the dynamic frequency deviation, the static frequency deviation and the dynamic
Frequency deviation remnants are repaid, determine the first data to be sampled;
The calibration unit, for compensating the static frequency according to the described first data to be sampled and the Current Temperatures
Parameter is calibrated.
8. terminal according to claim 7, which is characterized in that
The determination unit is also used to determine that first between the dynamic frequency deviation and the static frequency deviation is poor
Value;The sum of first difference and the dynamic compensating for frequency offset remnants are determined as the described first data to be sampled.
9. terminal according to claim 6, which is characterized in that
The call unit is also used to call static frequency when the exemplary frequency deviation values are less than the predeterminated frequency deviation threshold
Rate compensating parameter;
The frequency compensation unit is also used to carry out frequency compensation using the static frequency compensating parameter.
10. terminal according to claim 6, which is characterized in that the terminal further include: adding unit;
The adding unit, for the dynamic frequency compensation parameter adjusted to be added in predeterminated frequency penalty function,
Obtain the corresponding first frequency penalty function of the dynamic frequency compensation parameter;
The frequency compensation unit is specifically used for carrying out frequency compensation according to Current Temperatures and the first frequency penalty function.
11. a kind of terminal, which is characterized in that the terminal includes: processor, memory and communication bus;The processor is held
The method according to claim 1 to 5 is realized when the operation program of line storage storage.
12. a kind of storage medium, is stored thereon with computer program, it is applied to terminal, which is characterized in that the computer program quilt
Processor realizes the method according to claim 1 to 5 when executing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910549452.8A CN110311673B (en) | 2019-06-24 | 2019-06-24 | Frequency calibration method, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910549452.8A CN110311673B (en) | 2019-06-24 | 2019-06-24 | Frequency calibration method, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110311673A true CN110311673A (en) | 2019-10-08 |
CN110311673B CN110311673B (en) | 2024-02-02 |
Family
ID=68076455
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910549452.8A Active CN110311673B (en) | 2019-06-24 | 2019-06-24 | Frequency calibration method, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110311673B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111045318A (en) * | 2019-12-26 | 2020-04-21 | 展讯通信(上海)有限公司 | Calibration method, device and system of equipment clock, self-calibration method and equipment |
CN112380774A (en) * | 2020-11-23 | 2021-02-19 | 青岛柯锐思德电子科技有限公司 | Dynamic modeling method and system based on residual echo state network |
CN112714089A (en) * | 2020-12-28 | 2021-04-27 | 四川天邑康和通信股份有限公司 | High-frequency 5G base station signal processing method and base station |
CN112865884A (en) * | 2020-12-11 | 2021-05-28 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for determining static parameters |
CN113434008A (en) * | 2021-06-25 | 2021-09-24 | 紫光展锐(重庆)科技有限公司 | Calibration method and device |
CN114391243A (en) * | 2020-08-05 | 2022-04-22 | 北京小米移动软件有限公司 | Frequency offset compensation and calibration method and device, and storage medium |
CN114553649A (en) * | 2022-02-22 | 2022-05-27 | 成都四相致新科技有限公司 | Signal frequency deviation calibration method, device, electronic equipment and storage medium |
CN114650202A (en) * | 2020-12-17 | 2022-06-21 | Oppo广东移动通信有限公司 | Carrier deviation processing method, terminal and storage medium |
CN116223906A (en) * | 2022-12-30 | 2023-06-06 | 广东惠伦晶体科技股份有限公司 | Temperature compensation crystal oscillator test method, circuit and system capable of achieving frequency calibration |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB1596845A (en) * | 1977-11-25 | 1981-09-03 | Hewlett Packard Co | Quartz crystal resonator |
EP0833448A2 (en) * | 1996-09-27 | 1998-04-01 | Nec Corporation | Frequency adjusting method for use with digital receiver and frequency adjusting circuit thereof |
JPH10303644A (en) * | 1997-04-25 | 1998-11-13 | Matsushita Electric Ind Co Ltd | Adjustment device for temperature compensation crystal oscillator and adjustment method |
JP2000124736A (en) * | 1998-10-13 | 2000-04-28 | Seiko Epson Corp | Temperature compensation method for oscillator and temperature compensation circuit therefor |
WO2010069222A1 (en) * | 2008-12-16 | 2010-06-24 | 中兴通讯股份有限公司 | Method and system for frequency offset estimation and compensation in mobile communications |
CN106028436A (en) * | 2016-04-28 | 2016-10-12 | 华为技术有限公司 | Time and frequency deviation compensation method and user terminal |
CN106292839A (en) * | 2016-08-11 | 2017-01-04 | 上海东软载波微电子有限公司 | Real-time clock compensates circuit and calibration steps, device |
CN106549720A (en) * | 2016-10-13 | 2017-03-29 | 广东欧珀移动通信有限公司 | A kind of method and mobile terminal for improving mobile terminal radio frequency frequency deviation |
CN108732424A (en) * | 2018-04-26 | 2018-11-02 | 南京合智电力科技有限公司 | Phasor backoff algorithm under fixed frequency sampling mode and compensation system |
-
2019
- 2019-06-24 CN CN201910549452.8A patent/CN110311673B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB1596845A (en) * | 1977-11-25 | 1981-09-03 | Hewlett Packard Co | Quartz crystal resonator |
EP0833448A2 (en) * | 1996-09-27 | 1998-04-01 | Nec Corporation | Frequency adjusting method for use with digital receiver and frequency adjusting circuit thereof |
JPH10303644A (en) * | 1997-04-25 | 1998-11-13 | Matsushita Electric Ind Co Ltd | Adjustment device for temperature compensation crystal oscillator and adjustment method |
JP2000124736A (en) * | 1998-10-13 | 2000-04-28 | Seiko Epson Corp | Temperature compensation method for oscillator and temperature compensation circuit therefor |
WO2010069222A1 (en) * | 2008-12-16 | 2010-06-24 | 中兴通讯股份有限公司 | Method and system for frequency offset estimation and compensation in mobile communications |
CN106028436A (en) * | 2016-04-28 | 2016-10-12 | 华为技术有限公司 | Time and frequency deviation compensation method and user terminal |
CN106292839A (en) * | 2016-08-11 | 2017-01-04 | 上海东软载波微电子有限公司 | Real-time clock compensates circuit and calibration steps, device |
CN106549720A (en) * | 2016-10-13 | 2017-03-29 | 广东欧珀移动通信有限公司 | A kind of method and mobile terminal for improving mobile terminal radio frequency frequency deviation |
CN108732424A (en) * | 2018-04-26 | 2018-11-02 | 南京合智电力科技有限公司 | Phasor backoff algorithm under fixed frequency sampling mode and compensation system |
Non-Patent Citations (2)
Title |
---|
杨少尘等: "基于Wiener过程的GPS校准晶振型频率源守频方法", 《中国测试》 * |
杨庆: "一种带电源电压和温度补偿的振荡器电路设计", 《电子技术应用》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111045318A (en) * | 2019-12-26 | 2020-04-21 | 展讯通信(上海)有限公司 | Calibration method, device and system of equipment clock, self-calibration method and equipment |
CN111045318B (en) * | 2019-12-26 | 2021-11-30 | 展讯通信(上海)有限公司 | Calibration method, device and system of equipment clock, self-calibration method and equipment |
CN114391243A (en) * | 2020-08-05 | 2022-04-22 | 北京小米移动软件有限公司 | Frequency offset compensation and calibration method and device, and storage medium |
CN112380774A (en) * | 2020-11-23 | 2021-02-19 | 青岛柯锐思德电子科技有限公司 | Dynamic modeling method and system based on residual echo state network |
CN112865884A (en) * | 2020-12-11 | 2021-05-28 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for determining static parameters |
CN114650202A (en) * | 2020-12-17 | 2022-06-21 | Oppo广东移动通信有限公司 | Carrier deviation processing method, terminal and storage medium |
CN112714089A (en) * | 2020-12-28 | 2021-04-27 | 四川天邑康和通信股份有限公司 | High-frequency 5G base station signal processing method and base station |
CN113434008A (en) * | 2021-06-25 | 2021-09-24 | 紫光展锐(重庆)科技有限公司 | Calibration method and device |
CN113434008B (en) * | 2021-06-25 | 2022-09-16 | 紫光展锐(重庆)科技有限公司 | Calibration method and device |
CN114553649A (en) * | 2022-02-22 | 2022-05-27 | 成都四相致新科技有限公司 | Signal frequency deviation calibration method, device, electronic equipment and storage medium |
CN114553649B (en) * | 2022-02-22 | 2024-05-28 | 成都四相致新科技有限公司 | Signal frequency deviation calibration method, device, electronic equipment and storage medium |
CN116223906A (en) * | 2022-12-30 | 2023-06-06 | 广东惠伦晶体科技股份有限公司 | Temperature compensation crystal oscillator test method, circuit and system capable of achieving frequency calibration |
Also Published As
Publication number | Publication date |
---|---|
CN110311673B (en) | 2024-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110311673A (en) | A kind of transmitting frequency calibration method, terminal and storage medium | |
US7793119B2 (en) | Adaptive voltage scaling with age compensation | |
US9344095B2 (en) | Temperature compensation for an oscillator crystal | |
US7272078B1 (en) | Efficient clock calibration in electronic equipment | |
US20110050495A1 (en) | Methods and apparatus for obtaining gnss time in a gnss receiver | |
CN110460358B (en) | Phase compensation in NFC systems | |
US7423488B2 (en) | System and method for compensating for the effects of aging and temperature on transistor performance | |
KR20160040539A (en) | Method for measuring sensitivity of data packet signal transceiver | |
CN113541913B (en) | Clock calibration method, clock calibration device, electronic device, and readable medium | |
US7952378B2 (en) | Tunable stress technique for reliability degradation measurement | |
JP5666428B2 (en) | Method and apparatus for obtaining GNSS time in GNSS receiver | |
CN105634473B (en) | The frequency adjusting method and device of mobile terminal | |
CN110336557B (en) | Frequency compensation method, terminal and storage medium | |
CN112398766B (en) | Frequency offset compensation method and device | |
JP4883555B2 (en) | Oscillation control device and synchronization system | |
JP2016219940A (en) | Temperature compensation circuit and radar device | |
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 | |
CN115856793A (en) | Radar signal frequency deviation estimation compensation method | |
CN110212911B (en) | Frequency calibration method and device and storage medium | |
CN105656454A (en) | Siginal generator and calibrating method thereof | |
CN104753464A (en) | Frequency calibration method and device for temperature compensated crystal oscillator in mobile terminal | |
CN109273811B (en) | Tuning control method of cavity combiner and cavity combiner | |
JPH1093468A (en) | Radio communication equipment and frequency drift compensation method | |
CN110708060B (en) | Method for optimizing C field current to reduce rubidium clock temperature sensitivity |
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 |