Summary of the invention
The objective of the invention is provides in a kind of TD-SCDMA of being applied to mobile communication system terminal in order to solve the above-mentioned problems in the prior art and defective, is used for self-adapting type clock correcting method and equipment under the battery saving mode.
The objective of the invention is to be achieved through the following technical solutions:
A kind of clock correcting method comprises the step of calculating the clock alignment time, calculates in the clock alignment time step at this, calculates the timing error value earlier, calculates the clock alignment time according to the timing error value then.
Can calculate timing error value Δ by the following method:
Δ=α(T
FT+T
W)-δ;
Wherein, T
FTBe the timing tracing positional of current path track algorithm, T
WBe the fault-tolerant error that can calibrate before the paging receiving indication by the path trace algorithm, δ is the timing error surplus, and α is predefined coefficient, 0<α≤1.
Preferably, α is more than or equal to 0.5 and smaller or equal to 1.
Can calculate the clock alignment time T by the following method
m:
Wherein, T
DRXBe discontinuous receiving cycle, f
HIt is the frequency of high frequency clock.
And then when low-frequency clock was calibrated, carrying out time span was T
mCalibration.
Technical scheme of the present invention also comprises a kind of clock alignment equipment, comprises a calculation element, is used to calculate the described clock alignment time, and this calculation element comprises: a timing error computing unit is used to calculate the timing error value; A clock alignment time calculating unit calculates the clock alignment time according to the timing error value that calculates.
Wherein, at this timing error computing unit, the formula below utilizing calculates timing error value Δ:
Δ=α(T
FT+T
W)-δ,
In the formula, T
FTBe the timing tracing positional of current path track algorithm, T
WBe the fault-tolerant error that can calibrate before the paging receiving indication by the path trace algorithm, δ is the timing error surplus, and α is predefined coefficient, 0<α≤1.
The preferable range of α is more than or equal to 0.5 and smaller or equal to 1.
Wherein, this alignment time computing unit profit is calculated the described clock alignment time in the following method:
Wherein, T
DRXBe discontinuous receiving cycle, f
HIt is the frequency of high frequency clock.
This clock alignment equipment also comprises a calibrating installation, and it is T that low-frequency clock is carried out time span
mCalibration.
Positive progressive effect of the present invention is: satisfying under the timing error requirement prerequisite, can reduce the clock alignment cycle, thereby increase the deep sleep time of terminal, and then prolong the stand-by time of terminal.
Embodiment
Below in conjunction with Fig. 1 to Fig. 3, provide preferred embodiment of the present invention, to describe technical scheme of the present invention in detail.
Consult Fig. 1 and Fig. 2, flow process of the present invention such as embodiment 1 to 4.
Embodiment 1
A kind of clock correcting method comprises the step of calculating the clock alignment time, calculates in the clock alignment time step at this, calculates the timing error value earlier, calculates the clock alignment time according to the timing error value then.
Idiographic flow is as follows:
Receive the networking broadcast and obtain paging indication receiving cycle;
The calculating optimum clock alignment time;
Judge whether paging cycle arrives;
If do not arrive, then repeat above-mentioned determining step;
If paging cycle arrives, judge then whether automatic frequency corrector restrains;
Then do not finish whole flow process if do not restrain; If the clock alignment process is then dispatched in convergence;
Further judge whether convergence then;
If do not restrain, then finish whole flow process; If the convergence, then initiate the deep sleep process after, finish whole flow process.
Obtain paging indication receiving cycle according to the network broadcast message that receives, calculate the step of clock alignment time, can calculate timing error value Δ by the following method:
Δ=α(T
FT+T
W)-δ;
Wherein, T
FTBe the tracing positional of path trace algorithm, T
WBe the timing error that can calibrate before the paging receiving indication by the path trace algorithm, δ is the timing error surplus, described T
FT, T
W, T
DRXAnd f
HBe in the communication system predefined, δ is the poor of high frequency clock and low-frequency clock, and α is according to the predefined coefficient of the needs of communication system, in the present embodiment, and α=1.
That is: Δ=(T
FT+ T
W-δ),
Wherein, calculate the clock alignment time T by the following method
m:
Wherein, T
DRXBe discontinuous receiving cycle, f
HIt is the frequency of high frequency clock.
Then, when low-frequency clock was calibrated, carrying out time span was T
mCalibration.
Embodiment 2
Present embodiment is with the different of embodiment 1: α=0.5, all the other processes are all identical with embodiment 1, repeat no more.
Embodiment 3
Present embodiment is with the different of embodiment 1 or 2: α=0.8, all the other processes are all identical with embodiment 1, repeat no more.
Embodiment 4
Different being of present embodiment and embodiment 1,2 or 3: α=0.2, all the other processes are all identical with embodiment 1, repeat no more.
Embodiment 5
As shown in Figure 3, a kind of clock alignment equipment comprises a calculation element 1, is used to calculate the described clock alignment time, and this calculation element 1 comprises: a timing error computing unit 11 is used to calculate the timing error value; A clock alignment time calculating unit 12 calculates the clock alignment time according to the timing error value that calculates.
Wherein, at this timing error computing unit 11, the formula below utilizing calculates timing error value Δ:
Δ=α(T
FT+T
W)-δ;
Wherein, T
FTBe the tracing positional of path trace algorithm, T
WBe the timing error that can calibrate before the paging receiving indication by the path trace algorithm, δ is the timing error surplus, described T
FT, T
W, T
DRXAnd f
HBe in the communication system predefined, δ is the poor of high frequency clock and low-frequency clock, and α is according to the predefined coefficient of the needs of communication system, in the present embodiment, and α=1.
Wherein, these alignment time computing unit 12 profits are calculated the described clock alignment time in the following method:
Wherein, T
DRXBe discontinuous receiving cycle, f
HIt is the frequency of high frequency clock.
This clock alignment equipment also comprises a calibrating installation 2, and it is T that low-frequency clock is carried out time span
mCalibration.
Embodiment 6
The difference of present embodiment and embodiment 5 is: α=0.5, remainder are all identical with embodiment 3, repeat no more.
Embodiment 7
The difference of present embodiment and embodiment 5 or 6 is: α=0.8, remainder are all identical with embodiment 3, repeat no more.
Embodiment 8
The difference of present embodiment and embodiment 5,6 or 7 is: α=0.2, remainder are all identical with embodiment 3, repeat no more.