Summary of the invention
The technical problem to be solved in the present invention is exactly that frequency offset correction can not be carried out in the base station that solves the low-cost TCXO crystal oscillator of available technology adopting when carrying out business, thereby traffic affecting problem, propose the online frequency deviation correcting method of a kind of not traffic affecting, can make the TCXO crystal oscillator carry out online, real time calibration.
In order to solve the problems of the technologies described above; the invention provides a kind of GSM global system for mobile communications base station crystal oscillator frequency deviation correcting method; after selecting the Reference BTS of frequency offset correction; when under treating the up receiving mode in base station, school, working in the idle frame of idle time slot or gsm system; the described base station, school for the treatment of is set to the operating handset pattern; be operated in the descending frequency of Reference BTS, the crystal oscillator frequency offset correction is carried out in the described base station, school for the treatment of.
Further, described method comprises the steps:
(1) Reference BTS of selection frequency offset correction;
(2) adjust the radio frames position for the treatment of the base station, school, the idle time slot of the non-BCCH channel of broadcast control for the treatment of the base station, school is alignd with the time slot at the frequency correction channel FCCH channel place of Reference BTS;
(3) under treating the up receiving mode in base station, school, work in when not having professional idle time slot, treat that the base station, school is set to the operating handset pattern, make the receive path for the treatment of the base station, school be operated in the descending frequency of Reference BTS;
(4) carry out the FCCH Channel Detection, obtain treating of frequency deviation and the frame position skew of base station, school, carry out the compensation of crystal oscillator compensate of frequency deviation and frame position with respect to Reference BTS;
(5) treat that the base station, school is set to normal mode of operation.
Further, described method comprises the steps:
(1) Reference BTS of selection frequency offset correction;
(2) the radio frames position and the frame number of base station, school are treated in adjustment, make the FCCH channel of Reference BTS be positioned at the idle frame for the treatment of the base station, school;
When (three) treating to work in the idle frame of gsm system under the up receiving mode in base station, school, will treat that the base station, school is changed to the operating handset pattern, and make the receive path for the treatment of the base station, school be operated in the descending frequency of Reference BTS;
(4) carry out the FCCH Channel Detection, obtain treating of frequency deviation and the frame position skew of base station, school, carry out the compensation of crystal oscillator compensate of frequency deviation and frame position with respect to Reference BTS;
(5) treat that the base station, school is set to normal mode of operation.
Further, select the step of the Reference BTS of frequency offset correction to comprise:
(A) treat that the base station, school sets up the selectable frequency dot cycle of an online frequency offset correction;
(B) treat that the base station, school carries out the FCCH Channel Detection with the frequency in the optional frequency;
(C) treat that the base station, school carries out synchronous channel SCH with the frequency described in the step (B) and detect, write down the frame position and the frame number of described frequency;
(D) judge whether that the FCCH channel of all optional frequencies and SCH Channel Detection finish, if, then carry out next step, otherwise, select next frequency to be measured, return execution in step (B);
(E) from optional frequency, select the benchmark frequency of online frequency offset correction,, determine to treat the Reference BTS of the frequency offset correction of base station, school by described benchmark frequency.
Further, in the described step (B), if the success of FCCH Channel Detection, then execution in step (C), otherwise, judge whether to reach maximum and detect number of times, if do not reach the maximum number of times that detects, then return execution in step (B), otherwise this frequency processing finishes, execution in step (D).
Further, in the described step (C), described SCH Channel Detection comprises SCH channel demodulation and SCH channel decoding, if the success of SCH channel decoding, then write down the frame position and the frame number of described frequency, otherwise, judge whether to reach maximum and detect number of times, if do not reach the maximum number of times that detects, then return execution in step (B), otherwise this frequency processing finishes, execution in step (D).
Further, described step (E) comprises the steps:
Select all frequencies of SCH Channel Detection success;
From the frequency of described SCH Channel Detection success, choose the benchmark frequency of the frequency of a signal to noise ratio maximum as frequency offset correction.
Further, described adjustment treats that the step of the radio frames position of base station, school comprises:
Calculate Reference BTS with respect to the frame position skew for the treatment of the base station, school according to the frame position of Reference BTS;
According to described frame position skew, treat base station, school frame position and compensate.
Further, described adjustment treats that the step of the frame number of base station, school comprises:
According to the frame number of Reference BTS with constantly treating the frame number of base station, school, calculate Reference BTS with respect to the frame number deviation for the treatment of the base station, school;
According to described frame number deviation, treat base station, school frame number and compensate, make and treat that base station, school frame number is consistent with the Reference BTS frame number.
Further, in the described step of carrying out the FCCH Channel Detection, if do not detect the FCCH channel, FCCH Channel Detection fail counter adds one, when FCCH Channel Detection fail counter surpasses thresholding, report online frequency offset estimating failure, no longer carry out compensation of crystal oscillator compensate of frequency deviation and frame position and follow-up step.
Further, the step of described crystal oscillator compensate of frequency deviation and frame position compensation comprises:
Surpass the frequency deviation thresholding if treat the base station, school with respect to the frequency deviation of Reference BTS, carry out the crystal oscillator compensate of frequency deviation;
Surpass frame position skew thresholding if treat the base station, school with respect to the frame position skew of Reference BTS, carry out the frame position compensation.
Further, the described step for the treatment of that the base station, school is set to normal mode of operation comprises:
To treat that the up receiving mode in base station, school changes the base station receiving mode into by the mobile phone receiving mode;
To treat that base station, school receive path pll parameter is changed into by the descending frequency of Reference BTS and treat the up frequency in base station, school.
What the present invention proposed is the online frequency deviation correcting method that utilizes idle time slot in base station or idle frame; can't sacrifice business; with around the crystal oscillator of other base station be the on-line correction that benchmark realizes treating base station, school TCXO crystal oscillator frequency deviation, can make the TCXO crystal oscillator carry out online, real time calibration.
Embodiment
In the present invention, utilizing does not have the professional idle time slot or the idle frame of gsm system to carry out online frequency offset correction, has solved the base station and has carried out frequency offset correction and can sacrifice professional problem.
The present invention is described in detail below in conjunction with drawings and the specific embodiments.
Embodiment one
As shown in Figure 1, utilize the method that does not have professional idle time slot to carry out online frequency offset correction to comprise the steps:
Step 101, the Reference BTS of selection frequency offset correction;
The benchmark frequency of the frequency offset correction by selecting to treat the base station, school, thus determine to treat the Reference BTS of the frequency offset correction of base station, school;
Step 102 is adjusted the radio frames position for the treatment of the base station, school, and the idle time slot of non-BCCH (BroadcastControl Channel, Broadcast Control Channel) for the treatment of the base station, school is alignd with the time slot at the FCCH channel place of Reference BTS;
Step 103 treats that the base station, school works in when not having professional idle time slot in normal mode of operation (being up receiving mode), will treat that the base station, school is changed to the operating handset pattern, makes the receive path for the treatment of the base station, school be operated in the descending frequency of Reference BTS;
Specifically, carry out following configuration operation:
A) will treat that the up receiving mode in base station, school changes the mobile phone receiving mode into by the base station receiving mode;
B) will treat that base station, school receive path pll parameter is by treating that the up frequency in base station, school changes the descending frequency of Reference BTS into;
Step 104 is carried out the FCCH Channel Detection, obtains treating frequency deviation and the frame position skew of base station, school with respect to Reference BTS, carries out crystal oscillator compensate of frequency deviation and frame position compensation deals;
Because treat base station, school receive path pll parameter by treating that the up frequency in base station, school changes the descending frequency of Reference BTS into this moment, though carry out that the step of FCCH Channel Detection is actual carries out on the base station, school treating, actual is the FCCH Channel Detection of carrying out Reference BTS;
In this step, if do not detect the FCCH channel, FCCH Channel Detection fail counter adds one, when FCCH Channel Detection fail counter surpasses thresholding, report online frequency offset estimating failure, no longer carry out crystal oscillator compensate of frequency deviation and frame position compensation deals and follow-up step;
In this step, carry out following crystal oscillator compensate of frequency deviation and frame position compensation deals:
If a) treat that the base station, school surpasses the frequency deviation thresholding with respect to the frequency deviation of Reference BTS, carries out the crystal oscillator compensate of frequency deviation;
Wherein, the frequency deviation threshold value is as the criterion with agreement, and for example the frequency deviation thresholding of GSM pico base station is the positive and negative 0.1ppm of error;
B) treat that the base station, school surpasses frame position skew thresholding with respect to the frame position skew of Reference BTS, carries out the frame position compensation;
Such as, can be set at skew and surpass positive and negative 8 symbols for surpassing frame position skew thresholding;
Step 105 is recovered to treat that the base station, school is a normal mode of operation;
Carry out following configuration operation:
A) will treat that the up receiving mode in base station, school changes the base station receiving mode into by the mobile phone receiving mode;
B) will treat that base station, school receive path pll parameter is changed into by the descending frequency of Reference BTS treats the up frequency in base station, school.
Wherein, in the described step 101, the benchmark frequency of the frequency offset correction by selecting to treat the base station, school, thus determine to treat the base station, school frequency offset correction Reference BTS concrete implementation step as shown in Figure 2, comprising:
Step 201 treats that the base station, school sets up the selectable frequency dot cycle of an online frequency offset correction, and establishing the frequency number is N, loop index n ∈ [1, N], and frequency is fn
Step 202 treats that the base station, school is with frequency fnCarry out the FCCH Channel Detection;
Step 203, if the success of FCCH Channel Detection, then execution instep 205, otherwise, execution instep 204;
Step 204 judges whether to reach maximum and detects number of times, if do not reach the maximum number of times that detects, then returnstep 202, otherwise this frequency processing finishes, execution instep 208;
Step 205 treats that the base station, school is with frequency fnCarry out SCH (Synchronization Channel, synchronizing channel) Channel Detection, described SCH Channel Detection comprises SCH channel demodulation and SCH channel decoding;
Step 206, if the success of SCH channel decoding is then carried out next step, otherwise, execution instep 205;
Step 207, this frequency fnSCH Channel Detection success, write down this frequency fnSCH channel position (being frame position) and frame number; Wherein, the SCH channel position obtains in the process of SCH channel demodulation, and frame number is obtained by the decode results of SCH channel;
Step 208 judges whether that the FCCH channel of all optional frequencies and SCH Channel Detection finish, if, then carry out next step, otherwise, select next frequency to be measured, returnstep 202;
Step 209 is then chosen criterion according to predefined benchmark frequency, selects the benchmark frequency of online frequency offset correction from optional frequency, and this benchmark frequency is designated as f0Choose the benchmark frequency, also promptly determined the Reference BTS of the frequency offset correction of this benchmark frequency correspondence;
The benchmark frequency is chosen criterion and is not belonged to the content that the present invention describes in detail, and it is example that present embodiment is chosen criterion with the signal to noise ratio maximum, and it is as follows to describe benchmark frequency choosing method:
A) at first select all frequencies of SCH channel decoding success;
B) from the frequency of SCH channel decoding success, choose the benchmark frequency of the frequency of a signal to noise ratio maximum then as online frequency offset correction.
In the described step 102, the method for adjusting the radio frames position for the treatment of the base station, school is:
A), calculate Reference BTS with respect to the frame position skew for the treatment of the base station, school according to the frame position that Reference BTS SCH channel demodulation is calculated;
B) be offset with respect to the frame position for the treatment of the base station, school according to Reference BTS, treat base station, school frame position and compensate.
In the ordinary course of things, described step 101 and 102 is once to get final product treating to carry out when the base station, school has just powered on, and step 103-105 regularly carries out, and like this, just can carry out online frequency offset correction when business is carried out in the base station, can not influence business.
Embodiment two
As shown in Figure 3, the method for utilizing the idle frame of gsm system to carry out online frequency offset correction comprises the steps:
Step 301, the Reference BTS of selection frequency offset correction;
The benchmark frequency of the frequency offset correction by selecting to treat the base station, school, thus determine to treat the Reference BTS of the frequency offset correction of base station, school, and specific implementation no longer describes in detail as shown in Figure 2 herein;
Step 302 is adjusted and is treated the radio frames position and the frame number of base station, school, makes the FCCH channel of Reference BTS be positioned at the idle frame for the treatment of the base station, school;
Step 303 treats that the base station, school when working in the idle frame of gsm system, will treat that the base station, school is changed to the operating handset pattern in normal mode of operation (being up receiving mode), makes the receive path for the treatment of the base station, school be operated in the descending frequency of Reference BTS;
Specifically, carry out following configuration operation:
A) will treat that the up receiving mode in base station, school changes the mobile phone receiving mode into by the base station receiving mode;
B) will treat that base station, school receive path pll parameter is by treating that the up frequency in base station, school changes the descending frequency of Reference BTS into;
Step 304 is carried out the FCCH Channel Detection, obtains treating frequency deviation and the frame position skew of base station, school with respect to Reference BTS, carries out crystal oscillator compensate of frequency deviation and frame position compensation deals;
Because treat base station, school receive path pll parameter by treating that the up frequency in base station, school changes the descending frequency of Reference BTS into this moment, though carry out that the step of FCCH Channel Detection is actual carries out on the base station, school treating, actual is the FCCH Channel Detection of carrying out Reference BTS;
In this step, if do not detect the FCCH channel, FCCH Channel Detection fail counter adds one, when FCCH Channel Detection fail counter surpasses thresholding, report online frequency offset estimating failure, no longer carry out crystal oscillator compensate of frequency deviation and frame position compensation deals and follow-up step;
In this step, carry out following crystal oscillator compensate of frequency deviation and frame position compensation deals:
If a) treat that the base station, school surpasses the frequency deviation thresholding with respect to the frequency deviation of Reference BTS, carries out the crystal oscillator compensate of frequency deviation;
Wherein, the frequency deviation threshold value is as the criterion with agreement, and for example the frequency deviation thresholding of GSM pico base station is the positive and negative 0.1ppm of error;
B) treat that the base station, school surpasses frame position skew thresholding with respect to the frame position skew of Reference BTS, carries out the frame position compensation;
Such as, can be set at skew and surpass positive and negative 8 symbols for surpassing frame position skew thresholding;
Step 305 is recovered to treat that the base station, school is a normal mode of operation;
Carry out following configuration operation:
A) will treat that the up receiving mode in base station, school changes the base station receiving mode into by the mobile phone receiving mode;
B) will treat that base station, school receive path pll parameter is changed into by the descending frequency of Reference BTS treats the up frequency in base station, school.
Wherein, in the describedstep 302, the method for adjusting the radio frames position for the treatment of the base station, school is:
A), calculate Reference BTS with respect to the frame position skew for the treatment of the base station, school according to the frame position that Reference BTS SCH channel demodulation is calculated;
B) be offset with respect to the frame position for the treatment of the base station, school according to Reference BTS, treat base station, school frame position and compensate.
In the describedstep 302, the method for adjusting the frame number for the treatment of the base station, school is:
A) according to the frame number that Reference BTS SCH channel decoding is calculated with constantly treating the frame number of base station, school, calculate Reference BTS with respect to the frame number deviation for the treatment of the base station, school;
B) according to Reference BTS with respect to the frame number deviation for the treatment of the base station, school, treat base station, school frame number and compensate, make and to treat that base station, school frame number is consistent with the Reference BTS frame number.
In the ordinary course of things; describedstep 301 and 302; be once to get final product treating to carry out when the base station, school has just powered on; step 303-305 regularly carries out; like this; just can when business is carried out in the base station, carry out online frequency offset correction, can not influence business, guarantee to treat that the crystal oscillator frequency deviation of base station, school is in less can accepting within the scope.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.