Femtocell and signal frequency calibration steps thereof
Technical field
The present invention relates to a kind of mobile base station, particularly a kind of femtocell and calibrate this femtocell signal frequency calibration method.
Background technology
As everyone knows, in wireless communication system, the no matter communication network such as GSM network, cdma network or GPRS network, because the transmission range of wireless signal is limited, therefore all need to set up corresponding Large-scale Mobile base station at interval of certain distance, transmit again after wireless signal is strengthened.But, in the area of some landform more complicated, even if set up Large-scale Mobile base station, often there is the blind spot district that signal is difficult to cover and shadow region, therefore, operator is proposed small base station (microcell) as a supplement, signal be difficult to cover blind spot district and shadow region set up small base station.But, for small base station, still there is the region being difficult to cover.Therefore, femtocell (Femtocell, also referred to as microminiature mobile base station) also grows up gradually, this femtocell is usually for strengthening the signal within the scope of more small size, such as, be arranged in a user family, strengthen the signal of this user.But femtocell needs regularly to calibrate its signal frequency, maintains identical with the frequency of the communication network that it is applied, otherwise be difficult to ensure speech quality.
At present, the calibration of femtocell has two kinds of modes, first kind of way is by obtaining signal from small base station (microcell) and carrying out comparison calibration, if but surrounding does not have small base station, or when femtocell is based upon indoor, often cannot obtains signal by this small base station and carry out comparison calibration.The second way is by computer network and NTP (Network Time Protocol, NTP (Network Time Protocol)) server connects and carries out the calibration of signal frequency and time, but, due to the instability of network environment and ntp server, the signal frequency of this femtocell is usually also caused to be calibrated accurately.
Summary of the invention
In view of this, a kind of femtocell and signal frequency calibration steps thereof are provided, first signal contrast calibration is obtained by small base station, after obtaining Signal Fail from small base station, frequency and time calibration is carried out again by ntp server, and whether precheck NTP network environment and ntp server are stablized, namely whether the communication delay time is excessive, and only when determining that this NTP network environment and ntp server are stablized, namely, when the communication delay time is less, the calibration of the signal frequency to this femtocell is just carried out.
A kind of femtocell, with a small base station or can communicate to connect with ntp server, thus calibration signal frequency, this femtocell comprises one first communication unit, a second communication unit, a network delay detecting module and a calibration module.This first communication unit is used for communicating to connect with a small base station.This second communication unit is used for communicating to connect with a ntp server.This network delay detecting module is for detecting communication delay time when this second communication unit communicates with this ntp server.This calibration module is used for when a calibration cycle arrives, control this first communication unit and this small base station establishes a communications link, and when connection failure, control this second communication unit and this ntp server establishes a communications link, this network delay detecting module is after this second communication unit and this ntp server establish a communications link, detect this communication delay time and judge whether this communication delay time is less than a reference time, this calibration module is when this communication delay time is less than this reference time, signal frequency is obtained from this ntp server, and calibrate according to the signal frequency of this signal frequency to this femtocell.
A calibration steps for signal frequency, for calibrating the signal frequency of a femtocell, this femtocell comprises the first communication unit, second communication unit, and the method comprises: control the first communication unit and a small base station establishes a communications link; If this communication connection is set up unsuccessfully, control second communication unit and a ntp server establish a communications link; Detect the communication delay time of this second communication unit and this ntp server; This communication delay time and a reference time are compared, judges whether this communication delay time is less than a reference time; And when this communication delay time is less than a reference time, obtained the signal frequency of this ntp server by this second communication unit, and calibrate according to the signal frequency of this signal frequency to femtocell.
Femtocell of the present invention and signal frequency calibration steps thereof, after obtaining signal frequency failure from small base station, when detecting is less than this reference time with the communication delay time of ntp server, is just carried out the calibration of signal frequency by ntp server, thus ensure that the accuracy of calibration.
Accompanying drawing explanation
Fig. 1 is the functional block diagram of femtocell in first embodiment of the invention.
Fig. 2 is for calibrating the flow chart of the calibration steps of the signal frequency of femtocell in first embodiment of the invention.
Main element symbol description
Femtocell |
1 |
Small base station |
2 |
Ntp server |
3 |
First communication unit |
101 |
Second communication unit |
102 |
Network delay detecting module |
103 |
Calibration module |
104 |
Step |
S200~S210 |
Embodiment
Referring to Fig. 1, is the module diagram of femtocell in first embodiment of the invention 1.This femtocell 1 comprises one first communication unit 101, second communication unit 102, network delay detecting module 103 and a calibration module 104.This first communication unit 101 is for communicating with small base station 2.This second communication unit 102 is for communicating with NTP (Network Time Protocol, NTP (Network Time Protocol)) server 3.This calibration module 104 communicates with small base station 2 for controlling this first communication unit 101 at interval of a calibration cycle (such as at interval of 2 days), obtain the signal frequency of this small base station 2, and calibrate according to the signal frequency of signal frequency to this femtocell 1 of this small base station 2.This calibration module 104 is also when this first communication unit 101 cannot establish a communications link with small base station 2, control this second communication unit 102 to communicate with ntp server 3, this network delay detecting module 103 is when this second communication unit 102 communicates with ntp server 3, the detecting communication delay time also judges whether this communication delay time is less than a reference time, this calibration module 104 is when this communication delay time is less than this reference time, signal frequency is obtained from this ntp server, and calibrate according to the signal frequency of signal frequency to this femtocell 1 of this acquisition.Wherein, this calibration cycle and this reference time can be set by system default, or are set by the user, and this femtocell 1 also can comprise a setting module (not shown) for setting this calibration cycle and this reference time.Obviously, this femtocell 1 also comprises other and maintains its element normally needed for work.
In the present embodiment, this network delay detecting module 103 sends the packet of predetermined quantity to this ntp server 3 by this second communication unit 102, and detect each packet respectively from being issued to this ntp server 3 until this second communication unit 102 receives the time interval of the response signal corresponding to this packet of this ntp server 3 passback, thus obtain the time interval of predetermined quantity.Those time intervals and a reference time compare by this network delay detecting module 103, if have at least a time interval to be less than this reference time, judge that this communication delay time is less than this reference time, then this calibration module 104 obtains signal frequency by this second communication unit 102 from this ntp server 3, calibrates the signal frequency of this femtocell 1.If this network delay detecting module 103 judges that all time intervals are all greater than this reference time, then this calibration module 104 is not calibrated the signal frequency of this femtocell 1, and waits for that the arrival of next calibration cycle repeats above-mentioned step again.Therefore, avoid network delay very large time, brought larger error is calibrated to this signal frequency.
In other embodiments, when this network delay detecting module 103 judges that at least one time interval is less than this reference time, this calibration module 104 also obtains a standard time from this ntp server 3, and calibrates according to the time of this standard time to this femtocell 1.
In other embodiments, this network delay detecting module 103 is when judging that all time intervals are all greater than this reference time, after interval one scheduled time (such as 1 minute), resend the packet of this predetermined quantity to this ntp server 3, this calibration module 104 same when being less than this reference time this at least one interval time, the signal frequency of femtocell 1 is calibrated, otherwise does not calibrate.
Referring to Fig. 2, is the calibration steps flow chart of the signal frequency of first embodiment of the invention alignment femtocell.First, calibration module 104, when a calibration cycle arrives, controls this first communication unit 101 and communicates with a small base station 2, and judge whether to communicate successfully (S200).If this first communication unit 101 communicates successfully with this small base station 2, then calibration module 104 obtains the signal frequency of this small base station 2, and calibrates (S202) according to the signal frequency of signal frequency to this femtocell 1 of this small base station 2.If this first communication unit 101 establishes a communications link unsuccessfully with this small base station 2, this calibration module 104 controls this second communication unit 102 to carry out communicate (S204) with a ntp server 3.This network delay detecting module 103 detects communication delay time when this second communication unit 102 communicates with this ntp server 3; Wherein, in the present embodiment, this network delay detecting module 103 sends the packet of predetermined quantity to this ntp server 3 by this second communication unit 102, and detect each packet from being issued to this ntp server 3 until receive the time interval of the corresponding response signal of this packet of this ntp server 3 passback, thus obtain the time interval (S206) of predetermined quantity.This network delay detecting module 103 judges whether this communication delay time is less than a reference time; In the present embodiment, the time interval of this predetermined quantity and a reference time compare by this network delay detecting module 103, and when judging to have at least a time interval to be less than this reference time, then judge that this communication delay time is less than this reference time (S208).If whether this communication delay time is less than this reference time, namely a time interval is had at least to be less than this reference time, then this calibration module 104 obtains the signal frequency of this ntp server 3, and calibrate (S210) according to the signal frequency of signal frequency to this femtocell 1 of this ntp server 3, otherwise flow process terminates.
The present invention, first calibrated by the signal frequency of this small base station 2 pairs of femtocell 1, when with small base station 2 communication failure, and when the communication delay time with ntp server 3 is less than the scheduled time, carried out the calibration of signal frequency again by ntp server 3, thus ensure that the calibration accuracy of frequency.