CN101499797B - Method and apparatus for controlling phase changing - Google Patents

Method and apparatus for controlling phase changing Download PDF

Info

Publication number
CN101499797B
CN101499797B CN2009100042978A CN200910004297A CN101499797B CN 101499797 B CN101499797 B CN 101499797B CN 2009100042978 A CN2009100042978 A CN 2009100042978A CN 200910004297 A CN200910004297 A CN 200910004297A CN 101499797 B CN101499797 B CN 101499797B
Authority
CN
China
Prior art keywords
reference clock
crystal oscillator
oscillator frequency
controlling value
frequency controlling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2009100042978A
Other languages
Chinese (zh)
Other versions
CN101499797A (en
Inventor
魏琳琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2009100042978A priority Critical patent/CN101499797B/en
Publication of CN101499797A publication Critical patent/CN101499797A/en
Application granted granted Critical
Publication of CN101499797B publication Critical patent/CN101499797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

The invention discloses a method for controlling phase change and a device thereof, belonging to the communication field. The method comprises the following steps: recording a crystal oscillation frequency control value of the equipment when a reference clock is in normal condition; knowing that the reference clock is abnormal and calculating the average value of the crystal oscillation frequency control value according to the recorded crystal oscillation frequency control value; and setting the average value as the crystal oscillation frequency control value for controlling an equipment system clock when the reference clock is abnormal. When the reference clock are restored to be normal, the frequency of the equipment system clock is adjusted according to the frequency of the reference clock, phase deviation between the equipment system clock and the reference clock is calculated, frequency deviation is set by stages and phase adjustment is carried out till the phase deviation meets the requirements of the phase deviation; therefore, the frequency deviation between the equipment system clock and the reference clock is guaranteed to be minimum after the reference clock is lost so as to effectively delay the phase shafting; and after the reference clock are restored to be normal, the phase deviation is adjusted to be in the specific range fast and smoothly by adjusting frequency deviation without phase jump, thus guaranteeing that the service of a base station is not interrupted.

Description

The method and apparatus that control phase changes
Technical field
The present invention relates to the communications field, particularly the method and apparatus of control phase variation.
Background technology
At wireless communication field, the clock synchronization property between the equipment is great to the service feature influence, and each communication system all explicitly calls for clock performance.For example: CDMA (Code Division Multiple Access; Code division multiple access) requires each base station equipment clock phase and GPS (Global Positioning System in the system; Global positioning system) the reference clock 1pps that is provided (pulses per second; Umber of pulse/second) phase place is less than 3us (microsecond); WIMAX (Worldwide Interoperability for Microwave Access, promptly worldwide interoperability for microwave inserts) TDD (Time Division Duplexing, time division duplex) system requirements is less than 1us.At present; Main synchronous settling mode all is to adopt satellite Timing Receiver such as GPS to come for each base station equipment reference clock to be provided, under the GPS normal condition, and the reference clock that the system clock of each base station is exported through soft phase locked track satellite Timing Receiver; Realize required clock performance requirement; But, when causing the satellite Timing Receiver unavailable, how to prolong the base station equipment clock performance owing to weather condition, satellite Timing Receiver failure and other reasons as far as possible; Guaranteeing professional normal operation, is the problem that must consider and solve.
Go out abnormal conditions such as active to reference clock; Prior art solutions is that the FREQUENCY CONTROL value (DA value) of the current VCXO that just direct use reference clock is lost after reference clock is lost is controlled the base station system clock; And after reference clock recovers normally; Be benchmark directly then, the base station system clock phase forced and the reference clock phase alignment that said method can satisfy professional operation demand to a certain extent with the reference clock phase place.
The inventor finds that there is following shortcoming and defect at least in above-mentioned prior art in realizing process of the present invention:
Lose the back at reference clock and just directly use current DA value control base station system clock; Can not guarantee that the frequency residual error is minimum; Because between the frequency residual sum phase place is integral relation; Along with the accumulation of time, can cause occurring the phenomenon of phase place rapid diffusion, the base station system clock just can not satisfy professional normal operation needs in the short time; And after reference clock recovers normally; Force the mode of phase alignment, can cause the system clock phase hit of base station self, bigger to the BTS service influence; Particularly system clock and the phase deviation between reference clock when the base station is bigger; Cause the amplitude of saltus step will be bigger, even can influence the normal operation of BTS service, cause service disconnection.
Summary of the invention
Lose and under the situation that reference clock recovers, at reference clock in order to guarantee the normal operation of BTS service, the method and apparatus that the embodiment of the invention provides a kind of control phase to change as far as possible.Said technical scheme is following:
On the one hand, the method that the embodiment of the invention provides a kind of control phase to change, said method comprises:
When the reference clock normal condition, according to sample frequency, the phase-locked loop of recording equipment is the crystal oscillator frequency controlling value under the lock-out state;
Obtain the unusual moment of reference clock;
According to the unusual moment of said reference clock, obtain the crystal oscillator frequency controlling value of record in the Preset Time section of said reference clock before the unusual moment;
According to the crystal oscillator frequency controlling value of obtaining, calculate the mean value of the crystal oscillator frequency controlling value of obtaining;
Crystal oscillator frequency controlling value to obtaining is organized division, calculates the average of the crystal oscillator frequency controlling value of each grouping;
Difference between the mean value of the crystal oscillator frequency controlling value of obtaining of calculating the average of each grouping and calculating;
To current group, if the difference that calculates surpasses preset difference value, then keep said current group, according to the crystal oscillator frequency controlling value in each grouping that keeps, calculate the mean value of the crystal oscillator frequency controlling value that keeps;
The crystal oscillator frequency controlling value of the mean value of the crystal oscillator frequency controlling value of the reservation that setting calculates control appliance system clock when clock is unusual as a reference.
Again on the one hand, the method that the embodiment of the invention also provides a kind of control phase to change, after reference clock was in abnormality, said method comprised:
Said reference clock recovers just often, and according to the frequency of said reference clock, the frequency of adjustment device systems clock satisfies the frequency departure requirement up to the frequency departure of said device systems clock and said reference clock;
After said frequency departure satisfies the frequency departure requirement, calculate the phase deviation between said device systems clock and the reference clock;
According to phase deviation, frequency departure is set stage by stage carries out the phase place adjustment, satisfy the phase deviation requirement up to phase deviation.
On the other hand, the device that the embodiment of the invention also provides a kind of control phase to change, said device comprises:
Logging modle comprises unit and record cell are set, and is used for when the reference clock normal condition, according to said the sample frequency that the unit is provided with is set, and is the crystal oscillator frequency controlling value under the lock-out state by the phase-locked loop of said recording unit records equipment;
Computing module comprises obtaining unit, acquiring unit, computing unit, grouping computing unit and processing unit; Said acquisition unit is used to obtain the unusual moment of reference clock; Said acquiring unit was used for according to the unusual moment of said reference clock, obtained the crystal oscillator frequency controlling value of record in the Preset Time section of said reference clock before the unusual moment; Said computing unit is used for calculating the mean value of the crystal oscillator frequency controlling value of obtaining according to the crystal oscillator frequency controlling value of obtaining; Said grouping computing unit is used for the crystal oscillator frequency controlling value of obtaining is organized division, calculates the average of the crystal oscillator frequency controlling value of each grouping; Said processing unit be used to calculate the average of each grouping and the mean value of the crystal oscillator frequency controlling value of obtaining that calculates between difference; To current group; If the difference that calculates does not surpass preset difference value; Then keep said current group, the crystal oscillator frequency controlling value in dividing into groups according to each that keeps, the mean value of the crystal oscillator frequency controlling value that calculating keeps;
Module is set, the crystal oscillator frequency controlling value of control appliance system clock when being used to be provided with the mean value of crystal oscillator frequency controlling value of the reservation that calculates clock is unusual as a reference.
Again on the one hand, the device that the embodiment of the invention also provides a kind of control phase to change, said device comprises:
First adjusting module is used for reference clock and recovers just often, and according to the frequency of reference clock, the frequency of adjustment device systems clock satisfies the frequency departure requirement up to the frequency departure of said device systems clock and said reference clock;
Computing module is used for after said frequency departure satisfies the frequency departure requirement, calculates the phase deviation between said device systems clock and the reference clock;
Second adjusting module is used for according to phase deviation, frequency departure is set stage by stage carries out the phase place adjustment, satisfies the phase deviation requirement up to phase deviation.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
Go out at reference clock under the situation of active; The FREQUENCY CONTROL value that writes down under the reference clock normal condition before using; Calculate base station system clock frequency control value; After guaranteeing that reference clock is lost, frequency departure is minimum between base station system clock and the reference clock, can effectively delay the phase place diffusion; After reference clock recovers normally, according to actual phase deviation situation, through the frequency departure between adjustment base station system clock and the reference clock; Fast, adjust phase deviation smoothly to prescribed limit; Avoid phase hit, guarantee the normal operation of BTS service, guarantee that BTS service do not interrupt.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram that the control phase that provides of the embodiment of the invention changes;
Fig. 2 is another flow chart of method that the control phase that provides of the embodiment of the invention changes;
Fig. 3 is the method flow diagram that the control phase that provides of the embodiment of the invention 1 changes;
Fig. 4 is the record sketch map of the DA value that provides of the embodiment of the invention 1;
Fig. 5 is the method flow diagram that the control phase that provides of the embodiment of the invention 2 changes;
Fig. 6 is the device sketch map that the control phase that provides of the embodiment of the invention 3 changes;
Fig. 7 is the device detailed maps that the control phase that provides of the embodiment of the invention 3 changes;
Fig. 8 is another detailed maps of device that the control phase that provides of the embodiment of the invention 3 changes;
Fig. 9 is the device sketch map that the control phase that provides of the embodiment of the invention 4 changes;
Figure 10 is the device detailed maps that the control phase that provides of the embodiment of the invention 4 changes.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Under the situation that reference clock is lost and reference clock recovers, in order to guarantee the normal operation of BTS service, the method that the embodiment of the invention provides a kind of control phase to change as far as possible; Referring to Fig. 1, on the one hand, when reference clock is lost; In order to delay the phase place diffusion, this method thes contents are as follows:
101: when the reference clock normal condition, the crystal oscillator frequency controlling value of recording equipment;
102: know that reference clock is unusual,, calculate the mean value of crystal oscillator frequency controlling value according to the crystal oscillator frequency controlling value of record;
103: the crystal oscillator frequency controlling value of control appliance system clock when the mean value calculate being set clock is unusual as a reference.
After this method that the embodiment of the invention provides guaranteed that reference clock is lost, frequency departure was minimum between base station system clock and the reference clock, can effectively delay the phase place diffusion, guaranteed the normal operation of BTS service.
On the other hand, after reference clock is in abnormality,,, guarantee the normal operation of BTS service in order to suppress phase hit if reference clock recovers as far as possible, referring to Fig. 2, the method that the embodiment of the invention also provides control phase to change, this method thes contents are as follows:
201: reference clock recovers just often, and according to the frequency of reference clock, the frequency of adjustment device systems clock satisfies the frequency departure requirement up to the frequency departure of device systems clock and reference clock;
202: after frequency departure satisfies the frequency departure requirement, the phase deviation between system of computational devices clock and the reference clock;
203: according to phase deviation, frequency departure is set stage by stage carries out the phase place adjustment, satisfy the phase deviation requirement up to phase deviation.
This method that the embodiment of the invention provides is through the frequency departure between adjustment base station system clock and the reference clock; Fast, adjust phase deviation smoothly to prescribed limit; Avoid phase hit, guarantee the normal operation of BTS service, guarantee that BTS service do not interrupt.
For the method that the invention described above embodiment is provided is elaborated; See also following embodiment, wherein, embodiment 1 is primarily aimed at the situation that reference clock loses and describes; The situation that embodiment 2 is primarily aimed at the reference clock recovery describes, and sees for details as follows:
Embodiment 1
Equipment is that example describes with the base station; The run duration in the base station, reference clock go out under the situation of active, in order to improve the maintenance performance of base station local system clock; Prolong the BTS service uptime as far as possible; The method that the embodiment of the invention provides a kind of control phase to change, referring to Fig. 3, this method thes contents are as follows:
301: when the reference clock normal condition, according to sample frequency, the phase-locked loop of record base station is the FREQUENCY CONTROL value of the VCXO under the lock-out state (being called for short crystal oscillator frequency controlling value DA).
Wherein, The recording process of this step 301 can be for carrying out the tracking sampling record according to sample frequency in real time in the running of base station; And above-mentioned sample frequency can be provided with according to actual needs; For example be set to every 1m (minute) sampling, promptly every DA value at a distance from a phase-locked loop of 1m record, present embodiment is not done any restriction to the concrete value of sample frequency.
Wherein, This step 301 is when the reference clock normal condition; Phase-locked loop that can also the recording occurring continuously base station is the FREQUENCY CONTROL value of the VCXO under the lock-out state; The phase-locked loop of the base station that promptly gets access to is that the FREQUENCY CONTROL value of the VCXO under the lock-out state is a continuous data, and present embodiment is not done any restriction to this.
302: know that reference clock is unusual,, obtain the crystal oscillator frequency controlling value DA that is used for control base station system clock when reference clock is unusual then according to the DA Value Data of above-mentioned record.
Wherein, this step 302 is concrete realizes that content can be following:
At first, reference clock go out active etc. unusual after; Obtain reference clock and unusual interior each DA value that writes down of preceding final stage time (writing down each DA value in the for example last several hrs) occurs; According to each DA value of obtaining; Calculate average DA value, with the crystal oscillator frequency controlling value DA of the average DA value that calculates as control base station system clock when reference clock is unusual.
Referring to Fig. 4,, as shown in Figure 4 for the unusual calculating sketch map of DA value afterwards of reference clock that the embodiment of the invention provides; The unusual moment that the hypothetical reference clock goes out active is 12:00 on May 1st, 2008; Then can obtain the DA value that is write down in preceding X hour (the concrete value of this X is provided with as required) in this moment, as shown in Figure 4, suppose that it is 6 that present embodiment is provided with the X value; Then correspondingly; Selection is from 12:00 on the 1st in May 6:00 to 2008 year on the 1st May in 2008, and obtains the DA value that is write down in the times selected section, according to each DA value of being obtained; Calculate average DA value, the crystal oscillator frequency controlling value DA of control base station system clock when clock is unusual as a reference with this average DA value.Referring to table 1, suppose that the sampling period is 1 hour, the DA value that is then write down in the times selected section (6 hours) is as shown in table 1.
Table 1
Record constantly 6:00 7:00 8:00 9:00 10:00 11:00 ……
The DA value 20.4 20.5 20.6 20.5 20.6 20.6 ……
As shown in table 1; The DA value that gets access to is respectively 20.4,20.5,20.6,20.5,20.6,20.6; Then calculate the mean value of above-mentioned each DA value, for example, can directly make even and all obtain mean value 20.517 each DA value; Get 20.5 approximately, with this 20.5 crystal oscillator frequency controlling value DA of the control base station system clock behind the loss of clock as a reference.In addition, also can carry out all square the processing to each DA value of obtaining and obtain mean value, present embodiment is the mode and the method for limit calculation mean value not.
Further, present embodiment fully takes into account reference clock and unusual preceding a period of time occurs, and the synchronous effect of base station possibly receive the unusual influence of reference clock; In order to improve computational accuracy, therefore when the select time section, remove the unusual DA value of interior record for the previous period of reference clock; Still be that example describes with Fig. 4, still to go out the unusual moment of active be 12:00 on May 1st, 2008 to the hypothetical reference clock, fully takes into account before reference clock goes out the unusual moment of active (for example since 10:00 on May 1st, 2008); Just received the unusual influence of reference clock; Then in access time during section, will remove from 10:00-12:00, promptly the times selected section is that 6:00 on May 1st, 2008 (can be described as and search the initial moment) is to 10:00 on May 1st, 2008 (can become to search and stop constantly); Then according to the DA value of the record in this time period; The crystal oscillator frequency controlling value DA of the control base station system clock after calculating reference clock and losing, in addition alternatively, this above-mentioned searching constantly can also be taken as 4:00 on May 1st, 2008; Concrete selection is carried out according to actual conditions, and the embodiment of the invention does not limit this.Other sees for details as follows: suppose unusual preceding n hour, and unusual preceding m hour, wherein, and n>m, wherein, the system clock frequency controlling value DA step of the control base station system clock after the reference clock that finally calculates is lost is following:
1, obtains historical DA value, the historical DA value in the last recorded m time of reference clock record in the unusual preceding n time, obtain the DA difference, promptly obtain n and the m DA value between the time;
2,,, thereby guarantee the accuracy of base station system clock frequency with the direct crystal oscillator frequency controlling value DA of clock after unusual as a reference of mean value DAavg to n and the DA value of m between the time DAavg that averages.
Further, in order to improve the accuracy of calculating, also can be on this basis, the DA value that n and m were write down between the time is divided into several groups earlier in order, calculates the mean value DAi of every group of DA value respectively; Secondly; Mean value DAavg with every group mean value DAi and previous calculations compares; If the deviation overshoot value (this setting is provided with according to actual needs) between DAi and the DAavg; Just remove the corresponding DA data of this group, calculate mean value according to remaining DA value again, the crystal oscillator frequency controlling value DA that this mean value that calculates is lost as final reference clock.Present embodiment is not done any restriction to the concrete account form method of obtaining this mean value.
The method that the embodiment of the invention provides; Phase-locked loop through the record base station is the FREQUENCY CONTROL value DA of the VCXO under the lock-out state; When reference clock was unusual, the DA value through record calculated system clock frequency controlling value DA, and this is calculated the numerical value crystal oscillator frequency controlling value behind the loss of clock as a reference; Make that the local system clock frequency of base station equipment is accurate; And the frequency departure between the reference clock is as much as possible little, thereby effectively delays the diffusion of phase deviation, has guaranteed the normal of service operation.
The scheme that the foregoing description 1 provides, reference clock go out active etc. under the abnormal conditions, according to the FREQUENCY CONTROL value that writes down under the reference clock normal condition; Calculate the crystal oscillator frequency controlling value after reference clock is lost, thereby after guaranteeing that reference clock is lost, frequency departure is minimum between base station system clock and the reference clock; Can effectively delay phase drift, guarantee the normal of service operation, below embodiment 2 will be just often to the reference clock recovery; How to realize the smooth excessiveness of phase place, effectively avoid phase hit, thereby guaranteed the normal of service operation; Be elaborated, referring to as follows:
Embodiment 2
It still is example with the base station; After the reference clock of this base station is in abnormality, normal if reference clock recovers, in order effectively to avoid phase hit; Thereby guaranteed the normal of service in base station operation; The method that the embodiment of the invention provides a kind of control phase to change, referring to Fig. 5, this method thes contents are as follows:
Step 501: reference clock recovers just often, according to the frequency of reference clock, and the frequency of adjustment base station system clock, thereby the frequency departure of elimination base station system clock and reference clock.
Wherein, the concrete realization of this step 501 comprises: reference clock recovers just often, the frequency departure of calculation base station system clock and reference clock; According to the frequency departure that calculates, through the crystal oscillator frequency controlling value of adjustment base station, thus the frequency departure of elimination base station system clock and reference clock.Wherein, because there is the mapping corresponding relation in the FREQUENCY CONTROL value DA of frequency departure and VCXO, therefore, the FREQUENCY CONTROL value DA of VCXO that can be through adjusting the base station eliminates the frequency departure of base station system clock and reference clock.For example; Reference clock recovers just often, and the FREQUENCY CONTROL value DA of the VCXO of base station is 55, and the frequency of base station system clock is that the frequency of 30Hz (hertz), reference clock is 20Hz; The frequency departure that is base station system clock and reference clock is 10Hz; Be on 55 the basis correspondingly then, regulate 1 forward, the FREQUENCY CONTROL value DA of the VCXO of base station is adjusted into 54 at the present FREQUENCY CONTROL value DA of the VCXO of base station; Promptly realize making the frequency of base station system clock reach 20HZ, thereby eliminate the frequency departure of base station system clock and reference clock.
Step 502: behind the frequency departure of eliminating base station system clock and reference clock, the phase deviation between calculation base station system clock and the reference clock.
Step 503: judge that phase deviation is whether in the phase deviation allowed band, if then execution in step 504; Otherwise, execution in step 505.
Wherein, the described phase deviation allowed band of this step 503 can be provided with as required, for example to cdma system; If only consider the service operation of base station self, then this phase deviation allowed band can be set to 5us, just can guarantee that the service operation in the base station self is normal; But in practical application, can fully take into account the service operation between the base station usually, therefore preferably; Under cdma system, need with reference to cdma system, it (is within the phase place 3us of the leading reference clock of phase place of base station system clock that this phase deviation allowed band can be set to 3us; Or, within the phase place 3us of the phase lag reference clock of base station system clock), wherein; The concrete value of this phase deviation allowed band confirms that according to system testing the embodiment of the invention is not done any restriction to this.
Step 504:, confirm that the correspondent frequency deviation carries out fast phase adjustment according to the size of phase deviation.
Wherein, implement this step 504 and mean phase deviation in allowed band, in order to suppress phase hit; Then according to the size of phase deviation; Confirm that the correspondent frequency deviation carries out fast phase adjustment, particular content is following: according to phase deviation, frequency departure is set stage by stage; Carry out the phase place adjustment, up to eliminating phase deviation.
Because in the practical application; Between the system clock of base station and the reference clock or what always have certain phase deviation; Belong to the situation that physics cannot be avoided, promptly exist and to accept the deviation range value (for example ± 1us), therefore; Above-mentionedly satisfy professional normal demand, correspondingly be: adjust to phase deviation and fall into and to accept in the deviation range up to eliminating phase deviation.
For example, suppose the phase place of the leading reference clock of phase place of base station system clock, and phase deviation is 30us; It is that 1hz carries out the phase place adjustment that frequency departure can be set; Promptly on the basis of original DA, calculating frequency departure is the corresponding DA value of 1hz, the output of control base station system clock crystal oscillator frequency; Behind an adjustment cycle, detecting phase deviation is 5 microseconds, and it is that 0.5hz carries out the phase place adjustment that frequency departure can be set; By that analogy, according to phase deviation, frequency departure is set stage by stage carries out the phase place adjustment, less than setting (for example 1 microsecond), promptly the phase place rapid adjustment finishes up to phase deviation.When the phase place rapid adjustment finishes; Recovering step 501 described DA values, phase-locked loop gets into normal adjustment state, and the base station system clock synchronization is in reference clock; Usually; If the phase place of the leading reference clock of phase place of base station system clock can be with the base station system clock frequency to low adjustment, to eliminate phase deviation gradually; Otherwise, if the phase place of the phase lag reference clock of base station system clock can the base station system clock frequency be adjusted to height, to eliminate phase deviation gradually.
Step 505: carry out the pressure phase alignment between base station system clock and the reference clock.
Wherein, implement this step 505 and mean that phase deviation surpasses in the allowed band, normally moves in order to ensure business; Therefore; Need to carry out the pressure phase alignment between base station system clock and the reference clock, promptly the phase place with reference clock is a benchmark, with the phase place of base station system clock disposable adjust to consistent with the phase place of reference clock; This step belongs to prior art, repeats no more.
The method that the embodiment of the invention provides; After reference clock recovers normally; According to actual phase deviation situation,, adjust phase deviation fast, smoothly and fall into prescribed limit up to phase deviation through the frequency departure between adjustment base station system clock and the reference clock; Realize no phase hit, the assurance BTS service is not interrupted.
Embodiment 3
Referring to Fig. 6, the device that the embodiment of the invention provides a kind of control phase to change, device comprises:
Logging modle 601 is used for when the reference clock normal condition crystal oscillator frequency controlling value of recording equipment;
Computing module 602 is used to know that reference clock is unusual, according to the crystal oscillator frequency controlling value of record, calculates the mean value of crystal oscillator frequency controlling value;
Module 603 is set, the crystal oscillator frequency controlling value of control appliance system clock when being used to be provided with the mean value that calculates clock is unusual as a reference.
See Fig. 7 for details, the detailed maps of the device that the control phase that provides for the embodiment of the invention changes, as shown in Figure 7, wherein, logging modle 601 comprises:
Unit 6011 is set, is used to be provided with sample frequency;
Record cell 6012 is used for according to unit 6011 is set sample frequency being set, and the phase-locked loop of recording equipment is the crystal oscillator frequency controlling value under the lock-out state.
Wherein, computing module 602 comprises:
Obtain unit 6021, be used to obtain the unusual moment of reference clock;
Acquiring unit 6022 was used for according to the unusual moment of reference clock, obtained the crystal oscillator frequency controlling value of record in the Preset Time section of reference clock before the unusual moment;
Computing unit 6023 is used for the FREQUENCY CONTROL value obtained according to acquiring unit 6022, calculates the mean value of the crystal oscillator frequency controlling value of record.
1) wherein, acquiring unit 6022 comprises:
First searches subelement 60221, is used for according to the unusual moment of reference clock, and the self-reference clock is unusual constantly to begin to search forward, obtains and searches the initial moment; Searching the unusual time difference constantly of the initial moment and reference clock is the Preset Time section;
First obtains subelement 60222, is used to obtain the crystal oscillator frequency controlling value of record in the Preset Time section.
2) wherein, acquiring unit 602 comprises:
Second searches subelement 60223, is used for according to the unusual moment of reference clock, and the self-reference clock is unusual constantly to begin to search forward, obtains and search the initial moment, searches to stop constantly; Searching the initial moment is the Preset Time section with searching the time difference that stops the moment;
Second obtains subelement 60224, is used to obtain the crystal oscillator frequency controlling value of record in the Preset Time section.
Wherein, in addition referring to Fig. 8, another detailed maps of the device that the control phase that provides for the embodiment of the invention changes, as shown in Figure 8, wherein, computing module 602 comprises:
Computing unit 6024 is used for the crystal oscillator frequency controlling value according to record, calculates the mean value of the crystal oscillator frequency controlling value of record;
Grouping computing unit 6025 is used for the crystal oscillator frequency controlling value of record is organized division, calculates the average of the crystal oscillator frequency controlling value of each grouping;
Processing unit 6026 is used to calculate the average of each grouping and the difference of the mean value that the aforementioned calculation unit calculates; To current group, if the difference that calculates surpasses preset difference value, then keep current group, according to the crystal oscillator frequency controlling value in each grouping that keeps, calculate the mean value of the crystal oscillator frequency controlling value that keeps.
The device that the embodiment of the invention provides; Phase-locked loop through the record base station is the FREQUENCY CONTROL value DA of the VCXO under the lock-out state; When reference clock was unusual, the DA value through record calculated system clock frequency controlling value DA, and this is calculated the numerical value crystal oscillator frequency controlling value behind the loss of clock as a reference; Make that the local system clock frequency of base station equipment is accurate; And the frequency departure between the reference clock is as much as possible little, thereby effectively delays the diffusion of phase deviation, has guaranteed the normal of service operation.
Embodiment 4
Referring to Fig. 9, the device that the embodiment of the invention provides a kind of control phase to change, device comprises:
First adjusting module 701 is used for reference clock and recovers just often, and according to the frequency of reference clock, the frequency of adjustment device systems clock satisfies the frequency departure requirement up to the frequency departure of device systems clock and reference clock;
Computing module 702 is used for after frequency departure satisfies the frequency departure requirement phase deviation between system of computational devices clock and the reference clock;
Second adjusting module 703 is used for according to phase deviation, frequency departure is set stage by stage carries out the phase place adjustment, satisfies the phase deviation requirement up to phase deviation.
Further, see Figure 10 for details, the detailed maps of the device that the control phase that provides for the embodiment of the invention changes, shown in figure 10, this device also comprises:
Judge module 704 is used to judge that the phase deviation size is whether in preset phase deviation allowed band;
Correspondingly, second adjusting module 703, the result who is used for judging when judge module 704 then according to phase deviation, is provided with frequency departure stage by stage and carries out phase place adjustment when being, satisfies the phase deviation requirement up to phase deviation.
Wherein, second adjusting module 703 comprises:
Unit 7031 is set, is used for size, the frequency departure size of this adjustment is set according to current phase deviation;
Computing unit 7032 is used for according to the frequency departure size that unit 7031 is provided with, the crystal oscillator frequency controlling value of computing equipment are set;
Processing unit 7033 is used for the crystal oscillator frequency controlling value that calculates according to computing unit 7032, the crystal oscillator frequency output of control appliance; After the crystal oscillator frequency output of control appliance, judge whether the size of adjusted phase deviation satisfies the phase deviation requirement, if not, then continue the size according to adjusted phase deviation, the excute phase adjustment is satisfied the phase deviation requirement up to phase deviation.
The device that the embodiment of the invention provides; After the reference clock of base station is in abnormality, normal if reference clock recovers, then according to actual phase deviation situation; Through the frequency departure between adjustment base station system clock and the reference clock; Adjust phase deviation fast, smoothly and satisfy prescribed limit up to phase deviation, realize no phase hit, the assurance BTS service is not interrupted.
" reception " speech in the embodiment of the invention is appreciated that for initiatively obtaining from other modules also can be to receive the information that other modules are sent.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
Part steps in the embodiment of the invention can utilize software to realize that corresponding software programs can be stored in the storage medium that can read, like CD or hard disk etc.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. the method that changes of a control phase is characterized in that said method comprises:
When the reference clock normal condition, according to sample frequency, the phase-locked loop of recording equipment is the crystal oscillator frequency controlling value under the lock-out state;
Obtain the unusual moment of reference clock;
According to the unusual moment of said reference clock, obtain the crystal oscillator frequency controlling value of record in the Preset Time section of said reference clock before the unusual moment;
According to the crystal oscillator frequency controlling value of obtaining, calculate the mean value of the crystal oscillator frequency controlling value of obtaining;
Crystal oscillator frequency controlling value to obtaining is organized division, calculates the average of the crystal oscillator frequency controlling value of each grouping;
Difference between the mean value of the crystal oscillator frequency controlling value of obtaining of calculating the average of each grouping and calculating;
To current group, if the difference that calculates surpasses preset difference value, then keep said current group, according to the crystal oscillator frequency controlling value in each grouping that keeps, calculate the mean value of the crystal oscillator frequency controlling value that keeps;
The crystal oscillator frequency controlling value of the mean value of the crystal oscillator frequency controlling value of the reservation that setting calculates control appliance system clock when clock is unusual as a reference.
2. the method for claim 1 is characterized in that, and is said according to the unusual moment of said reference clock, obtains the crystal oscillator frequency controlling value of record in the Preset Time section of said reference clock before the unusual moment, comprising:
According to the unusual moment of said reference clock, begin to search forward from the unusual moment of said reference clock, obtain and search the initial moment;
It is said that to search the unusual time difference between constantly of the initial moment and said reference clock be said Preset Time section;
Obtain the crystal oscillator frequency controlling value of record in the said Preset Time section.
3. the method for claim 1 is characterized in that, and is said according to the unusual moment of said reference clock, obtains the crystal oscillator frequency controlling value of record in the Preset Time section of said reference clock before the unusual moment, comprising:
According to the unusual moment of said reference clock, begin to search forward from the unusual moment of said reference clock, obtain and search the initial moment, search termination constantly; It is said that to search the time difference that initial moment and said searches between stopping constantly be said Preset Time section;
Obtain the crystal oscillator frequency controlling value of record in the said Preset Time section.
4. the device that changes of a control phase is characterized in that said device comprises:
Logging modle comprises unit and record cell are set, and is used for when the reference clock normal condition, according to said the sample frequency that the unit is provided with is set, and is the crystal oscillator frequency controlling value under the lock-out state by the phase-locked loop of said recording unit records equipment;
Computing module comprises obtaining unit, acquiring unit, computing unit, grouping computing unit and processing unit; Said acquisition unit is used to obtain the unusual moment of reference clock; Said acquiring unit was used for according to the unusual moment of said reference clock, obtained the crystal oscillator frequency controlling value of record in the Preset Time section of said reference clock before the unusual moment; Said computing unit is used for calculating the mean value of the crystal oscillator frequency controlling value of obtaining according to the crystal oscillator frequency controlling value of obtaining; Said grouping computing unit is used for the crystal oscillator frequency controlling value of obtaining is organized division, calculates the average of the crystal oscillator frequency controlling value of each grouping; Said processing unit be used to calculate the average of each grouping and the mean value of the crystal oscillator frequency controlling value of obtaining that calculates between difference; To current group; If the difference that calculates does not surpass preset difference value; Then keep said current group, the crystal oscillator frequency controlling value in dividing into groups according to each that keeps, the mean value of the crystal oscillator frequency controlling value that calculating keeps;
Module is set, the crystal oscillator frequency controlling value of control appliance system clock when being used to be provided with the mean value of crystal oscillator frequency controlling value of the reservation that calculates clock is unusual as a reference.
5. device as claimed in claim 4 is characterized in that, said acquiring unit comprises:
First searches subelement, is used for according to the unusual moment of said reference clock, begins to search forward from the unusual moment of said reference clock, obtains and searches the initial moment; It is said that to search the unusual time difference between constantly of the initial moment and said reference clock be said Preset Time section;
First obtains subelement, is used to obtain the crystal oscillator frequency controlling value of record in the said Preset Time section.
6. device as claimed in claim 4 is characterized in that, said acquiring unit comprises:
Second searches subelement, is used for according to the unusual moment of said reference clock, begins to search forward from the unusual moment of said reference clock, obtains and search the initial moment, searches to stop constantly; It is said that to search the time difference that initial moment and said searches between stopping constantly be said Preset Time section;
Second obtains subelement, is used to obtain the crystal oscillator frequency controlling value of record in the said Preset Time section.
CN2009100042978A 2009-02-24 2009-02-24 Method and apparatus for controlling phase changing Active CN101499797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100042978A CN101499797B (en) 2009-02-24 2009-02-24 Method and apparatus for controlling phase changing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100042978A CN101499797B (en) 2009-02-24 2009-02-24 Method and apparatus for controlling phase changing

Publications (2)

Publication Number Publication Date
CN101499797A CN101499797A (en) 2009-08-05
CN101499797B true CN101499797B (en) 2012-06-27

Family

ID=40946700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100042978A Active CN101499797B (en) 2009-02-24 2009-02-24 Method and apparatus for controlling phase changing

Country Status (1)

Country Link
CN (1) CN101499797B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281062B (en) * 2010-06-12 2014-03-12 大唐移动通信设备有限公司 Method and equipment for outputting clock signals
CN102299708B (en) * 2010-06-23 2013-07-24 凌阳科技股份有限公司 Method and device for calibrating sampling phase
CN103292918B (en) * 2012-03-02 2015-07-29 中国计量科学研究院 Phase place measure of the change system
CN105811933B (en) * 2014-12-31 2018-06-29 北京兆易创新科技股份有限公司 A kind of calibration method and system for improving 1Hz clock accuracies
CN105811930B (en) * 2014-12-31 2018-05-25 北京兆易创新科技股份有限公司 Improve the smooth method of adjustment of 1Hz clock accuracies and 1Hz clock systems
CN108958092B (en) * 2017-05-23 2022-11-04 佛山市顺德海尔电器有限公司 Singlechip clock anomaly detection method and device, computer readable storage medium and equipment
CN107544619B (en) * 2017-06-27 2020-05-12 新华三云计算技术有限公司 Time synchronization method and device
CN108400861B (en) * 2018-02-11 2021-08-24 京信网络系统股份有限公司 Crystal oscillator initial frequency adjusting method and device and clock synchronization system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1574637A (en) * 1995-09-19 2005-02-02 富士通株式会社 Digital frequency control circuit, phase control circuit, pll circuit
CN1611029A (en) * 2001-10-31 2005-04-27 英特尔公司 Method and apparatus for timing recovery based on the difference between the expected and the measured value of the received signal in a point between the strobe points
CN101176259A (en) * 2005-05-12 2008-05-07 三菱电机株式会社 PLL circuit and design method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1574637A (en) * 1995-09-19 2005-02-02 富士通株式会社 Digital frequency control circuit, phase control circuit, pll circuit
CN1611029A (en) * 2001-10-31 2005-04-27 英特尔公司 Method and apparatus for timing recovery based on the difference between the expected and the measured value of the received signal in a point between the strobe points
CN101176259A (en) * 2005-05-12 2008-05-07 三菱电机株式会社 PLL circuit and design method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP昭64-7377A 1989.01.11

Also Published As

Publication number Publication date
CN101499797A (en) 2009-08-05

Similar Documents

Publication Publication Date Title
CN101499797B (en) Method and apparatus for controlling phase changing
US3641274A (en) Synchronization system for communication information in pcm time division multiple access communication system
CN102118244B (en) Adaptive clock recovery with step-delay pre-compensation
US8416812B2 (en) Network timing synchronization systems
US10880951B2 (en) Base station for controlling a transmission of data packets and a method thereto
CN110445739B (en) Method and device for compensating sampling frequency offset
US20190011524A1 (en) Synchronization in software-defined radio systems
WO2021008532A1 (en) Active antenna unit delay alignment method and apparatus and active antenna unit
US7133397B2 (en) Time division duplex system utilizing global positioning system timing signals for access point synchronization
CN102087362A (en) Kalman filtering, digital phase-locked loop filtering and signal tracking methods and devices
CN100415029C (en) Apparatus and method for estimating initial frequency offset in an asynchronous mobile communication system
JP2011185731A (en) Time synchronization device and time synchronization correction method therefor
EP1970724A2 (en) Method, apparatus and system for frequency stabilisation using cellular signal bursts
CN104579527B (en) Timing offset compensation device and method
CN112969229B (en) Clock correction method and device and network equipment
US20030022685A1 (en) SIR estimation using delay time of power control commands
CN103760577A (en) GNSS satellite tracking method
CN102098716B (en) Method and device for detecting desynchronizing of base station
CN103873107A (en) Communication apparatus
CN105553590A (en) Clock synchronization method and device for grouping switching network
WO2019176660A1 (en) Time synchronization system, management device, time synchronization method, and program
CN114545761A (en) Local timing updating method, device, equipment and storage medium
WO2022143548A1 (en) Synchronization method and apparatus, and time server and downstream time server
CN112152744A (en) Clock synchronization method and device, FPGA chip and optical fiber communication network
NL2026210B1 (en) Timescale dissemination using global navigation satellite systems and applications thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant