CN108064079A - A kind of clock synchronizing method and base station - Google Patents

A kind of clock synchronizing method and base station Download PDF

Info

Publication number
CN108064079A
CN108064079A CN201610985911.3A CN201610985911A CN108064079A CN 108064079 A CN108064079 A CN 108064079A CN 201610985911 A CN201610985911 A CN 201610985911A CN 108064079 A CN108064079 A CN 108064079A
Authority
CN
China
Prior art keywords
base station
clock
adjacent base
clock signal
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610985911.3A
Other languages
Chinese (zh)
Other versions
CN108064079B (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201610985911.3A priority Critical patent/CN108064079B/en
Publication of CN108064079A publication Critical patent/CN108064079A/en
Application granted granted Critical
Publication of CN108064079B publication Critical patent/CN108064079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

An embodiment of the present invention provides a kind of clock synchronizing method and base station, which includes:By the clock signal for monitoring at least two adjacent base stations, count clock signal waving interval of each adjacent base station in predetermined period at least two adjacent base stations, wherein, at least two adjacent base stations include the adjacent base station that one or more monitorings are superior to base station;If the starting point of overlapping interval is arranged to relative point in time corresponding at least two adjacent base stations by all clock signal waving intervals there are overlapping interval;The system clock of base station is calibrated according to relative point in time.The accuracy and reliability in Clock Synchronization Procedure are effectively improved by the present invention, and then promotes user experience.

Description

A kind of clock synchronizing method and base station
Technical field
The present embodiments relate to the communications field more particularly to a kind of clock synchronizing method and base stations.
Background technology
At present, base station synchronization is mostly synchronous using GPS (Global Positioning System, global positioning system) Mode.GPS signal is drawn in base station by connecing, synchronous so as to fulfill the clock between base station.
But for being mounted on the indoor base station such as market, office building, when using the GPS methods of synchronization, then each Base station needs to be laid with substantial amounts of cable draws GPS signal to connect.In view of the above-mentioned problems, the prior art is typically to compare base station by monitoring From the clock signal of the other adjacent base station of height level-one, so as to the clock of the clock setting itself according to adjacent base station.Obviously, by In the prior art when carrying out time synchronization to base station to be calibrated, simply simply by base station to be calibrated and adjacent base station when Clock synchronizes, if inherently there is clock step-out in the clock of adjacent base station, after base station synchronization to be calibrated when Clock can also have clock step-out.
Therefore, the prior art to base station to be calibrated into during row clock synchronization, there are synchronization accuracy it is relatively low, be susceptible to it is same The problem of clock step-out after step, currently no effective solution has been proposed.
The content of the invention
The embodiment of the present invention provides a kind of clock synchronizing method and base station, to solve in the prior art to base station to be calibrated Into during row clock synchronization, there are synchronization accuracy it is relatively low, be susceptible to clock step-out, cause poor user experience the problem of.
To solve the above-mentioned problems, the invention discloses a kind of clock synchronizing method, the method is applied to base station, described Method includes:
By monitoring the clock signal of at least two adjacent base stations, each adjacent base station at least two adjacent base stations is counted Clock signal waving interval in predetermined period, wherein, at least two adjacent base stations include one or more monitorings It is superior to the adjacent base station of base station;
If the starting point of overlapping interval is arranged to and at least two by all clock signal waving intervals there are overlapping interval The corresponding relative point in time of a adjacent base station;
The system clock of base station is calibrated according to relative point in time.
In a preferred embodiment of the invention, method can also include:Base station itself is detected with the presence or absence of GPS to believe Number input;
If it is not, then monitoring the clock synchronization message of at least two adjacent base stations, clock letter is carried in clock synchronization message Number and monitor rank;
According to rank is monitored, the monitoring rank of base station itself is set.
In a preferred embodiment of the invention, by monitoring the clock signal of at least two adjacent base stations, statistics In at least two adjacent base stations the step of clock signal waving interval of each adjacent base station in predetermined period, specifically include:
In predetermined period, clock signal is sampled with predetermined time interval;
According to sampled result, clock signal waving interval corresponding with clock signal is counted.
In a preferred embodiment of the invention, by monitoring the clock signal of at least two adjacent base stations, statistics In at least two adjacent base stations the step of clock signal waving interval of each adjacent base station in predetermined period, specifically include:
Calculate the between the corresponding first time point of current sampling point the second time point corresponding with a upper sampled point The second deviation between one deviation and next sampled point corresponding 3rd time point and first time point;
First deviation and the second deviation are overlapped, obtain clock undulating value corresponding with next sampled point;
The corresponding clock undulating value of all sampled points in predetermined period is obtained successively;
According to the minimum value and maximum in the multiple clock undulating values got, clock waving interval is established.
In a preferred embodiment of the invention, method can also include:
If there are the corresponding clock waving interval of at least one adjacent base station is adjacent with other at least two adjacent base stations Non-overlapping section between the corresponding clock waving interval in base station then counts at least two adjacent base stations each adjacent base station under Clock signal waving interval in one predetermined period.
According to another aspect of the present invention, a kind of base station is provided, which is characterized in that including:
Statistical module for passing through the clock signal for monitoring at least two adjacent base stations, counts at least two adjacent base stations In each clock signal waving interval of the adjacent base station in predetermined period, wherein, at least two adjacent base stations include one Or more than one monitoring is superior to the adjacent base station of base station;
First setup module, if for all clock signal waving intervals there are overlapping interval, by rising for overlapping interval Initial point is arranged to relative point in time corresponding at least two adjacent base stations;
Calibration module, for calibrating the system clock of base station according to relative point in time.
In a preferred embodiment of the invention, base station further comprises:
Detection module inputs for detecting base station itself with the presence or absence of GPS signal;
Module is monitored, if being detected as detection module no, monitors the clock synchronization message of at least two adjacent base stations, Clock signal is carried in clock synchronization message and monitors rank;
Second setup module, for according to rank is monitored, setting the monitoring rank of base station itself.
In a preferred embodiment of the invention, statistical module is further used in predetermined period, with pre- timing Between be spaced clock signal sampled;
And according to sampled result, count clock signal waving interval corresponding with clock signal.
In a preferred embodiment of the invention, statistical module is further used for calculating current sampling point corresponding the The first deviation and next sampled point between the second time point corresponding with a upper sampled point at one time point is corresponding The second deviation between 3rd time point and first time point;
First deviation and the second deviation are overlapped, obtain clock undulating value corresponding with next sampled point;
The corresponding clock undulating value of all sampled points in predetermined period is obtained successively;
According to the minimum value and maximum in the multiple clock undulating values got, clock waving interval is established.
In a preferred embodiment of the invention, if statistical module is further used for depositing at least two adjacent base stations Without weight between the corresponding clock waving interval of at least one adjacent base station clock waving interval corresponding with other adjacent base stations Interval overlapping then counts clock signal wave zone of each adjacent base station in next predetermined period at least two adjacent base stations Between.
Compared with prior art, by monitoring the clock signal of at least two adjacent base stations, statistics at least two in the present invention Clock signal waving interval of each adjacent base station in predetermined period in a adjacent base station, wherein, at least two adjacent base stations Include the adjacent base station that one or more monitorings are superior to base station;If there is overlapping in all clock signal waving intervals The starting point of overlapping interval is then arranged to relative point in time corresponding at least two adjacent base stations by section;According to it is opposite when Between point calibration base station system clock, so as to the accuracy and reliability that are effectively improved in Clock Synchronization Procedure, and then Improve user experience.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow chart of clock synchronizing method of the embodiment of the present invention;
Fig. 2 is the base station layout position illustration of the embodiment of the present invention;
Fig. 3 is the clock fluctuation interval diagram of the embodiment of the present invention;
Fig. 4 is a kind of structure diagram of base station of the embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is described in further detail.
Base station in the embodiment of the present invention is specifically as follows TD-LTE (Time Division Long Term Evolution, time-division Long Term Evolution) micro-base station, it specifically includes:Femto stations, Pico stations, Nanocell stations, Smallcell stations.
With reference to Fig. 1, a kind of flow chart of clock synchronizing method of the embodiment of the present invention is shown, this method is applied to base It stands, specifically may comprise steps of:
Step 101, by monitoring the clock signal of at least two adjacent base stations, count each at least two adjacent base stations Clock signal waving interval of the adjacent base station in predetermined period, wherein, at least two adjacent base stations include one or one It is above to monitor the adjacent base station for being superior to base station.
Specifically, in an embodiment of the present invention, (to be distinguished with other base stations, the base station is claimed below in base station For base station to be synchronized) it needs under the scene of row clock synchronization, at least two adjacent base stations of surrounding are monitored in base station to be synchronized Clock signal, wherein, it needs to include one or more prisons at least two adjacent base stations that base station to be synchronized is listened to Listen the adjacent base station for being superior to base station to be synchronized.Base station to be synchronized by monitor at least two adjacent base stations clock signal, Count clock signal waving interval of each monitored adjacent base station in predetermined period.One in the present invention is preferred In embodiment, clock signal waving interval is represented in the snoop procedure of predetermined period, is monitored base station by clock jitter institute Caused by clock skew (fluctuation) measure formed interval value, wherein, the specific building mode of clock signal waving interval will be It is described in detail in the following examples.
In addition, in another preferred embodiment of the present invention, predetermined period could be provided as second grade, such as:10s. User can be configured predetermined period according to actual demand, and the present invention does not do this any restriction.
Step 102, if the starting point of overlapping interval is arranged to by all clock signal waving intervals there are overlapping interval Relative point in time corresponding at least two adjacent base stations.
Specifically, in an embodiment of the present invention, base station to be synchronized to multiple clock signal waving intervals after statistics into Row processing analysis.Wherein, if all clock signal waving intervals are there are overlapping interval, the starting point of the overlapping interval is For relative point in time corresponding at least two adjacent base stations, that is to say, that relative time is the absolute time of base station to be synchronized Between time offset between at least two adjacent base stations.It illustrates:If the base station to be synchronized absolute time of itself is 10 Point 58 minutes and 01 seconds, then when relative point in time is 2 milliseconds, i.e., itself absolute time and at least two base stations with synchronous base station (absolute time of at least two base stations after statistics is close or identical with GPS time, can also be by it for absolute time after statistics GPS time is interpreted as, to distinguish the absolute time, hereinafter referred to as GPS time) 2 milliseconds of difference.
Step 103, the system clock of base station is calibrated according to relative point in time.
Specifically, in an embodiment of the present invention, since the current absolute time and GPS of itself has been known in base station to be synchronized The corresponding relative value of relative point in time described in time phase difference, then base station to be synchronized base to be synchronized is calibrated according to the relative point in time It stands the system clock of itself.It is still illustrated with the numerical value in step 102, the current absolute time of itself has been known in base station to be synchronized Between 2ms (relative value i.e. corresponding to relative point in time) is differed with GPS time, then base station to be synchronized is needed the absolute time of itself Between (10: 01 58 :) plus 2ms, to calibrate its own system clock.Clock after base station calibration to be synchronized for 10 points 58 minutes 01 seconds 02 milliseconds, which is the absolute time after calibrating, and the time after the calibration is close or identical with GPS time.
In a preferred embodiment of the invention, to be further ensured that the accurate of the system clock of base station to be synchronized Degree, base station to be synchronized can continue to monitor the clock signal of the adjacent base station in the predetermined period of specified number, and row clock of going forward side by side is same Step.In another preferred embodiment, operating personnel can also monitor duration by setting, such as:It sets a length of 1 when monitoring Hour, then when 1 is small in the time, base station to be synchronized continues to monitor the clock signal of adjacent base station according to predetermined period, and carries out Clock is synchronous.In another preferred embodiment of the present invention, base station to be synchronized can also count relative time, if The relative point in time of statistics is unchanged in continuous three predetermined periods, it is determined that and relative point in time is exact value, and according to this Relative point in time synchronised clock, and cease listening for.
To sum up, the technical solution in the embodiment of the present invention, by monitoring the clock signal of at least two adjacent base stations, statistics Clock signal waving interval of each adjacent base station in predetermined period at least two adjacent base stations, wherein, at least two phases Adjacent base station includes the adjacent base station that one or more monitorings are superior to base station;If all clock signal waving intervals are deposited In overlapping interval, then the starting point of overlapping interval is arranged to relative point in time corresponding at least two adjacent base stations;According to Relative point in time calibrates the system clock of base station, so as to the accuracy that is effectively improved in Clock Synchronization Procedure and reliable Property.Also, its own system clock is calibrated in the base station in the present invention by monitoring the clock signal of adjacent base station, so as to reduce room The wiring of interior installation and other techniques improve the efficiency and exploitativeness of indoor location.Meanwhile the present invention in base station by In the reception device that need not additionally set to receive GPS signal, therefore, implementation cost is further saved, improve use It experiences at family.
In addition, in a preferred embodiment of the invention, method can also include:Detection base station itself whether there is GPS signal inputs;If it is not, the clock synchronization message of at least two adjacent base stations is then monitored, when being carried in clock synchronization message Clock signal and monitoring rank;According to rank is monitored, the monitoring rank of base station itself is set.
In a preferred embodiment of the invention, step 101 can also specifically include:
In predetermined period, clock signal is sampled with predetermined time interval;
According to sampled result, clock signal waving interval corresponding with clock signal is counted.
In a preferred embodiment of the invention, step 101 can also specifically include:
Calculate the between the corresponding first time point of current sampling point the second time point corresponding with a upper sampled point The second deviation between one deviation and next sampled point corresponding 3rd time point and first time point;
First deviation and the second deviation are overlapped, obtain clock undulating value corresponding with next sampled point;
The corresponding clock undulating value of all sampled points in predetermined period is obtained successively;
According to the minimum value and maximum in the multiple clock undulating values got, clock waving interval is established.
In a preferred embodiment of the invention, method can also include:
If the corresponding clock waving interval of at least one adjacent base station is corresponding with other adjacent base stations in two adjacent base stations Clock waving interval between non-overlapping section, then count at least two adjacent base stations each adjacent base station next predetermined Clock signal waving interval in cycle.
In order to make those skilled in the art be better understood from the present invention clock synchronizing method, below with specific embodiment into Row elaborates.
The base station layout position illustration being illustrated in figure 2 in the embodiment of the present invention.The base station with asterisk is this in figure Base station to be synchronized in invention.Wherein, intermediate bicyclic expression has the base station of GPS signal, in the present invention referred to as source base station. The source base station has the reception device that can receive GPS signal, by itself synchronous clock by way of GPS synchronizations.In figure Dotted line ring represents to monitor the base station that rank is 1 grade.1 grade of base station passes through monitoring using synchronised clock method according to the present invention Source base station and same level base station, to calibrate itself clock.Also, since 1 grade of base station is to monitor source base station, 1 grade of base station In a calibration process, the monitoring rank of itself is arranged to 1 grade.Base station installation position in Fig. 2 is only to be better understood from this hair Bright made schematic example, user can carry out the laying of base station according to actual demand.
Below with the base station (base station hereinafter referred to as to be synchronized) with asterisk, i.e. it is described in detail exemplified by 2 grades of base stations.
First, base station detection base station itself to be synchronized is inputted with the presence or absence of GPS signal, itself GPS is not present when detecting When signal inputs, then monitoring synchronizing function is opened.Monitor the clock of two or more adjacent base stations of surrounding in base station to be synchronized Synchronization message, wherein, clock signal is carried in clock synchronization message and monitors rank.In the present embodiment, base to be synchronized Station listens to the clock synchronization message that two 1 grade of base stations and two 2 grades of base stations are sent.Wherein, the clock that two 1 grade of base stations are sent Mark is carried in synchronization message, and it monitors the identification information that rank is 1 grade.Equally, the clock that two 2 grades of base stations are sent is synchronous Mark is carried in message, and it monitors the identification information that rank is 2 grades.It should be noted that base station to be synchronized is supervised in the present invention In two or more adjacent base stations listened, the high phase of the monitoring rank of one or more base stations more to be synchronized need to be included Adjacent base station.
Base station to be synchronized obtains the identification information, and recognizes the high-level base station currently monitored as 1 grade, then by itself It monitors rank and is arranged to 2 grades.
Then, base station to be synchronized samples clock signal with predetermined time interval in predetermined period, and according to adopting Sample is as a result, statistics clock signal waving interval corresponding with clock signal.Specifically, it in an embodiment of the present invention, sets pre- Fixed cycle is set as 60s, and predetermined time interval is arranged to 1s.Base station i.e. to be synchronized is right in 60s with the time interval of 1s The each clock signal listened to is sampled.Assuming that starting the time of sampling as 10 o'clock sharps, then base station to be synchronized is needed in 60s It is interior to each clock signal samples 60 times.The numerical value of the present invention simply carries out schematic example, the setting of predetermined period and adopts The setting at sample interval can be set according to actual demand, and under normal circumstances, predetermined period is second grade, and the sampling interval is millisecond Grade.Base station to be synchronized also needs sampled result to be further processed analysis, specifically handles analytic process in sampling process It is as follows:
Calculate the between the corresponding first time point of current sampling point the second time point corresponding with a upper sampled point The second deviation between one deviation and next sampled point corresponding 3rd time point and first time point.Then, will First deviation is overlapped with the second deviation, obtains clock undulating value corresponding with next sampled point.It is also, to be synchronized Base station obtains the corresponding clock undulating value of all sampled points in predetermined period according to above-mentioned steps successively.Base station to be synchronized is according to obtaining Minimum value and maximum in the multiple clock undulating values got, establish clock waving interval.It illustrates:Base station pair to be synchronized One of them 1 grade of base station is sampled, first sampled point corresponding time for 10 points 01 seconds 01 milliseconds, then first sampling The corresponding clock signal undulating value of point (being deviation) is 1 millisecond, and recorder is on a timeline centered on origin, in 1 milli The undulating value is recorded on the position of second.Base station to be synchronized is every second of the sampling of progress in 1 second, second sampled point corresponding time 10 points 01 seconds 0 999 milliseconds, still, the time expected from the second sampled point should be 10 points 02 seconds 01 milliseconds, therefore, second adopts Deviation between sampling point and the first sampled point is -2 milliseconds.Since the corresponding deviation of first time sampled point is 1 millisecond, treat same The corresponding deviation of second sampled point deviation corresponding with the first sampled point is overlapped by step base station, i.e., superposition value is -1, Clock signal undulating value corresponding with the second sampled point is then recorded on -1 millisecond of the position of recorder on a timeline.It is to be synchronized Base station is sampled with above-mentioned steps and the corresponding clock signal undulating value of each sampled point is recorded in actual axle successively.At last After secondary sampling, record there are into multiple clock signal undulating values on time shaft, takes the clock undulating value of the record on time shaft Minimum value and maximum, establish and be monitored the corresponding clock signal waving interval in base station with this.Other monitored base stations Sampling and analytic process are identical with above-mentioned steps, do not repeat herein.
It is illustrated in figure 3 base station to be synchronized in the present embodiment and sampling analysis is carried out to two 1 grade of base stations and two 2 grades of base stations The clock signal waving interval schematic diagram counted afterwards.Two dotted clock signal fluctuation sections correspond to two 2 grades of base stations, and two A solid clock signal fluctuation section corresponds to two 1 grade of base stations.As shown in the figure, there is overlapping in four clock signal waving intervals Section (being the oblique line portion in figure), then the starting point of the overlapping interval is corresponding with four monitored adjacent base stations Relative value between the absolute time of relative time, i.e., the absolute time of base station to be synchronized and monitored four adjacent base stations. It is assumed that the starting point of overlapping interval is 1 millisecond, then the current absolute time of base station to be synchronized, i.e. last time sampled point correspond to Time (10 points 01 minutes) need to be overlapped with the relative point in time after statistics, the time after superposition is:10 points of 01 minutes 01 millis Second, the time be close to GPS time or the absolute time consistent with GPS time, base station to be synchronized by system time and this absolutely Time is calibrated.
In an embodiment of the present invention, if in the monitored corresponding clock waving interval of adjacent base station, there are one Or without weight between the corresponding clock waving interval of more than one adjacent base station clock waving interval corresponding with other adjacent base stations Interval overlapping then illustrates that sampled result is inaccurate in the predetermined time, can not carry out the calibration of system clock.Base station to be synchronized needs Monitor and count the corresponding wave zone of corresponding with the adjacent base station being monitored clock signal again in next predetermined period Between.
Further, to ensure the accuracy of clock signal, in an embodiment of the present invention, base station to be synchronized can repeat It monitors and synchronizing step or within a specified time continues to monitor and synchronize.When base station clock to be synchronized synchronously finishes, Base station to be synchronized, which is closed, monitors synchronizing function, and opens self-calibration function.In self-calibration function time-continuing process, base station to be synchronized System clock is calibrated automatically by the self-calibration function of itself.It should be noted that the base station that different vendor is produced Self-alignment performance is not had to, i.e. the self calibration duration is different.Therefore, base station to be synchronized is tied in the predetermined self calibration time Shu Hou will reopen monitoring synchronizing function, to be recalibrated to system clock, so as to be further ensured that between base station Clock is synchronous, and the phenomenon that avoiding clock step-out occurs.
In conclusion the technical solution in the embodiment of the present invention, base station to be synchronized by high-level alternatively, to high-level Monitored with the adjacent base station of same level, so as to according to the clock signal of multiple adjacent base stations to the system clock of itself It is calibrated, is effectively improved the precision and reliability of clock synchronization.Also, the base station in the present invention is adjacent by monitoring The clock signal of base station, so as to reduce the wiring of indoor location and other techniques, improves interior to calibrate its own system clock The efficiency and exploitativeness of installation.Meanwhile the base station in the present invention receives GPS signal due to need not additionally set Therefore reception device, further saves implementation cost, improves customer experience.
With reference to Fig. 4, a kind of structure diagram of base station of the embodiment of the present invention is shown, which can specifically include following Module:
Statistical module 401 for passing through the clock signal for monitoring at least two adjacent base stations, counts at least two adjacent bases It stands each clock signal waving interval of the adjacent base station in predetermined period, wherein, at least two adjacent base stations include one A or more than one monitoring is superior to the adjacent base station of base station.
First setup module 402, if for all clock signal waving intervals there are overlapping interval, by overlapping interval Starting point is arranged to relative point in time corresponding at least two adjacent base stations.
Calibration module 403, for calibrating the system clock of base station according to relative point in time.
In a preferred embodiment of the invention, base station can further include:
Detection module (not shown) inputs for detecting base station itself with the presence or absence of GPS signal.
Module (not shown) is monitored, if being detected as detection module no, monitors at least two adjacent base stations Clock synchronization message carries clock signal in clock synchronization message and monitors rank.
Second setup module, for according to rank is monitored, setting the monitoring rank of base station itself.
In a preferred embodiment of the invention, statistical module 401 can be further used in predetermined period, with Predetermined time interval samples clock signal.And according to sampled result, count clock signal corresponding with clock signal Waving interval.
In a preferred embodiment of the invention, statistical module 401 can also be further used for calculating present sample It the first deviation between the corresponding first time point of point the second time point corresponding with a upper sampled point and next adopts The second deviation between sampling point corresponding 3rd time point and first time point;First deviation and the second deviation are carried out Superposition obtains clock undulating value corresponding with next sampled point;When obtaining that all sampled points are corresponding in predetermined period successively Clock undulating value;According to the minimum value and maximum in the multiple clock undulating values got, clock waving interval is established.
In a preferred embodiment of the invention, if statistical module 401 can also be further used at least two phases There are the corresponding clock waving interval of at least one adjacent base station clock wave zones corresponding with other adjacent base stations in adjacent base station Between between non-overlapping section, then count each clock of the adjacent base station in next predetermined period at least two adjacent base stations Signal fluctuation section.
In conclusion the base station in the embodiment of the present invention, by monitoring the clock signal of at least two adjacent base stations, statistics Clock signal waving interval of each adjacent base station in predetermined period at least two adjacent base stations, wherein, at least two phases Adjacent base station includes the adjacent base station that one or more monitorings are superior to base station;If all clock signal waving intervals are deposited In overlapping interval, then the starting point of overlapping interval is arranged to relative point in time corresponding at least two adjacent base stations;According to Relative point in time calibrates the system clock of base station, so as to the accuracy that is effectively improved in Clock Synchronization Procedure and reliable Property.Also, its own system clock is calibrated in the base station in the present invention by monitoring the clock signal of adjacent base station, so as to reduce room The wiring of interior installation and other techniques improve the efficiency and exploitativeness of indoor location.Meanwhile the present invention in base station by In the reception device that need not additionally set to receive GPS signal, therefore, implementation cost is further saved, improve use It experiences at family.
For apparatus embodiments, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, the highlights of each of the examples are with The difference of other embodiment, just to refer each other for identical similar part between each embodiment.
The embodiment of the present invention can be described in the general context of computer executable instructions, example Such as program module.Usually, program module include routines performing specific tasks or implementing specific abstract data types, program, Object, component, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these Distributed Calculation rings In border, by performing task by communication network and connected remote processing devices.In a distributed computing environment, program mould Block can be located in the local and remote computer storage media including storage device.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, commodity or equipment including a series of elements not only include that A little elements, but also including other elements that are not explicitly listed or further include for this process, method, commodity or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except also there are other identical elements in the process including the element, method, commodity or equipment.
Above to a kind of clock synchronizing method provided by the present invention and base station, it is described in detail, it is used herein Specific case is set forth the principle of the present invention and embodiment, to understand the explanation of above example is only intended to helping The method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, thought according to the invention is having There will be changes in body embodiment and application range, in conclusion this specification content should not be construed as to the present invention Limitation.

Claims (10)

1. a kind of clock synchronizing method, the method is applied to base station, which is characterized in that the described method includes:
By monitoring the clock signal of at least two adjacent base stations, each adjacent base station at least two adjacent base station is counted Clock signal waving interval in predetermined period, wherein, at least two adjacent base station includes one or more Monitor the adjacent base station for being superior to the base station;
If all clock signal waving intervals there are overlapping interval, by the starting point of the overlapping interval be arranged to it is described extremely The corresponding relative point in time of few two adjacent base stations;
The system clock of the base station is calibrated according to the relative point in time.
2. according to the method described in claim 1, it is characterized in that, the method is further included:
The base station itself is detected to input with the presence or absence of GPS signal;
If it is not, then monitoring the clock synchronization message of at least two adjacent base station, carried in the clock synchronization message State clock signal and the monitoring rank;
According to the monitoring rank, the monitoring rank of the base station itself is set.
3. according to the method described in claim 1, it is characterized in that, the clock by monitoring at least two adjacent base stations is believed Number, the step of each clock signal waving interval of the adjacent base station in predetermined period in statistics at least two adjacent base station Suddenly, specifically include:
In the predetermined period, the clock signal is sampled with predetermined time interval;
According to sampled result, clock signal waving interval corresponding with the clock signal is counted.
4. according to the method described in claim 3, it is characterized in that, the clock by monitoring at least two adjacent base stations is believed Number, the step of each clock signal waving interval of the adjacent base station in predetermined period in statistics at least two adjacent base station Suddenly, specifically include:
First between the corresponding first time point of calculating current sampling point the second time point corresponding with a upper sampled point is inclined The second deviation between difference and next sampled point corresponding 3rd time point and the first time point;
First deviation and second deviation are overlapped, obtain clock corresponding with the next sampled point Undulating value;
The corresponding clock undulating value of all sampled points in the predetermined period is obtained successively;
According to the minimum value and maximum in the multiple clock undulating values got, the clock waving interval is established.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
If there are the corresponding clock waving interval of at least one adjacent base station is adjacent with other at least two adjacent base station Non-overlapping section between the corresponding clock waving interval in base station, then count each adjacent base station at least two adjacent base station Clock signal waving interval in next predetermined period.
6. a kind of base station, which is characterized in that including:
Statistical module for passing through the clock signal for monitoring at least two adjacent base stations, counts at least two adjacent base station In each clock signal waving interval of the adjacent base station in predetermined period, wherein, at least two adjacent base station includes One or more monitor the adjacent base station for being superior to the base station;
First setup module, if for all clock signal waving intervals there are overlapping interval, by rising for the overlapping interval Initial point is arranged to relative point in time corresponding at least two adjacent base station;
Calibration module, for calibrating the system clock of the base station according to the relative point in time.
7. base station according to claim 6, which is characterized in that the base station further comprises:
Detection module inputs for detecting the base station itself with the presence or absence of GPS signal;
Module is monitored, if being detected as the detection module no, the clock for monitoring at least two adjacent base station is synchronous Message carries the clock signal and the monitoring rank in the clock synchronization message;
Second setup module, for according to the monitoring rank, setting the monitoring rank of the base station itself.
8. base station according to claim 6, which is characterized in that the statistical module is further used in the predetermined period It is interior, the clock signal is sampled with predetermined time interval;
And according to sampled result, count clock signal waving interval corresponding with the clock signal.
9. base station according to claim 8, which is characterized in that the statistical module is further used for calculating current sampling point The first deviation and next sampling between corresponding first time point the second time point corresponding with a upper sampled point The second deviation between point corresponding 3rd time point and the first time point;
First deviation and second deviation are overlapped, obtain clock corresponding with the next sampled point Undulating value;
The corresponding clock undulating value of all sampled points in the predetermined period is obtained successively;
According to the minimum value and maximum in the multiple clock undulating values got, the clock waving interval is established.
10. base station according to claim 6, which is characterized in that if the statistical module is further used for described at least two There are the corresponding clock waving interval of at least one adjacent base station clock waves corresponding with other adjacent base stations in a adjacent base station Non-overlapping section between dynamic section then counts at least two adjacent base station each adjacent base station in next predetermined period Interior clock signal waving interval.
CN201610985911.3A 2016-11-09 2016-11-09 Clock synchronization method and base station Active CN108064079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610985911.3A CN108064079B (en) 2016-11-09 2016-11-09 Clock synchronization method and base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610985911.3A CN108064079B (en) 2016-11-09 2016-11-09 Clock synchronization method and base station

Publications (2)

Publication Number Publication Date
CN108064079A true CN108064079A (en) 2018-05-22
CN108064079B CN108064079B (en) 2020-08-18

Family

ID=62137493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610985911.3A Active CN108064079B (en) 2016-11-09 2016-11-09 Clock synchronization method and base station

Country Status (1)

Country Link
CN (1) CN108064079B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1232586A (en) * 1996-09-30 1999-10-20 诺基亚电信公司 Hierarchical synchronization method
GB2410864A (en) * 2004-02-06 2005-08-10 Nec Technologies Apparatus for automatic time base correction.
CN1956358A (en) * 2005-10-28 2007-05-02 北京三星通信技术研究有限公司 Cell synchronous method based on access leading
CN101056135A (en) * 2006-06-15 2007-10-17 华为技术有限公司 Radio area network system and method for adjusting the cell synchronization
CN102859912A (en) * 2010-04-27 2013-01-02 模式转换系统有限公司 Data transmission involving multiplexing and demultiplexing of embedded clock signals
CN105657816A (en) * 2016-03-30 2016-06-08 京信通信技术(广州)有限公司 Method and device for keeping base stations synchronous

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1232586A (en) * 1996-09-30 1999-10-20 诺基亚电信公司 Hierarchical synchronization method
GB2410864A (en) * 2004-02-06 2005-08-10 Nec Technologies Apparatus for automatic time base correction.
CN1956358A (en) * 2005-10-28 2007-05-02 北京三星通信技术研究有限公司 Cell synchronous method based on access leading
CN101056135A (en) * 2006-06-15 2007-10-17 华为技术有限公司 Radio area network system and method for adjusting the cell synchronization
CN102859912A (en) * 2010-04-27 2013-01-02 模式转换系统有限公司 Data transmission involving multiplexing and demultiplexing of embedded clock signals
CN105657816A (en) * 2016-03-30 2016-06-08 京信通信技术(广州)有限公司 Method and device for keeping base stations synchronous

Also Published As

Publication number Publication date
CN108064079B (en) 2020-08-18

Similar Documents

Publication Publication Date Title
US11853959B1 (en) Drive-thru system implementing location tracking
WO2014199729A1 (en) Distribution device, distribution system, and distribution method
CN104660359B (en) A kind of method, apparatus and equipment of clock frequency deviation detection
US10845460B2 (en) Sound source position detection device, sound source position detection method, sound source position detection program, and recording medium
US20220149623A1 (en) Automatic discovery of electrical supply network topology and phase
US10003915B2 (en) Frame time synchronization in a wireless local area network
US20150271643A1 (en) Position determination using time of arrival measurements in a wireless local area network
JP2017187337A (en) Water leakage investigation method
CN104683088B (en) Multi-reference synchronization method, device and system
CN106295861A (en) The acquisition methods of weather forecast information, device and equipment
Zhang et al. Synchrophasor time skew: Formulation, detection and correction
CN110113124A (en) Clock synchronizing method and device for optical fiber vibration sensing system
CN112422249A (en) Method and system for jointly measuring frequency offset by multiple reference signals
CN109699068B (en) Base station synchronization method and device
CN108064079A (en) A kind of clock synchronizing method and base station
JP2018119826A (en) Time correction device, sensor device, sensor system, time correction method and program
CN108574547A (en) A kind of time calibrating method and device
KR101367261B1 (en) Wireless Module appling Time synchronization Embedded Blood Glucose Test Meter system
JP6021233B2 (en) Synchronization method and synchronization device for synchronizing devices connected to a communication network
CN107534842A (en) The method that the position of the transmitter of Location-Unknown is determined by synchronous receiver known to position
CN113141227B (en) Time determination method, system and medium based on hierarchical control
JP5331932B1 (en) Time synchronization method and measurement system using the method
Karakostas et al. A low-cost instrumentation approach for seismic hazard assessment in urban areas
US10345784B2 (en) Ladder logic graphical programming and textual programming synchronization
US20200174458A1 (en) Method to present a user with a menu of ranked building system based upon usage of building systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant