[go: up one dir, main page]

CN108064079B - Clock synchronization method and base station - Google Patents

Clock synchronization method and base station Download PDF

Info

Publication number
CN108064079B
CN108064079B CN201610985911.3A CN201610985911A CN108064079B CN 108064079 B CN108064079 B CN 108064079B CN 201610985911 A CN201610985911 A CN 201610985911A CN 108064079 B CN108064079 B CN 108064079B
Authority
CN
China
Prior art keywords
clock
base station
base stations
interval
fluctuation
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
CN201610985911.3A
Other languages
Chinese (zh)
Other versions
CN108064079A (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

Images

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)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a clock synchronization method and a base station, wherein the clock synchronization method comprises the following steps: counting the clock signal fluctuation interval of each adjacent base station in at least two adjacent base stations in a preset period by monitoring the clock signals of at least two adjacent base stations, wherein the at least two adjacent base stations comprise one or more adjacent base stations with higher monitoring levels than the base stations; if all the clock signal fluctuation intervals have overlapping intervals, setting the starting point of the overlapping interval as a relative time point corresponding to at least two adjacent base stations; and calibrating the system clock of the base station according to the relative time point. The invention effectively improves the accuracy and reliability in the clock synchronization process, thereby improving the user experience.

Description

Clock synchronization method and base station
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a clock synchronization method and a base station.
Background
Currently, a GPS (Global Positioning System) synchronization method is mostly used for base station synchronization. The base stations are connected with GPS signals, so that clock synchronization among the base stations is realized.
However, when the GPS synchronization method is used for base stations installed indoors in shopping malls, office buildings, and the like, a large number of cables are required to be laid for each base station to connect to GPS signals. In order to solve the above problem, the prior art generally monitors the clock signal of a neighboring base station which is higher than the base station itself by one level, so as to set its own clock according to the clock of the neighboring base station. Obviously, in the prior art, when time synchronization is performed on a base station to be calibrated, clocks of the base station to be calibrated and a neighboring base station are simply synchronized, and if clocks of the neighboring base station are out of step, the clocks synchronized by the base station to be calibrated also have the problem of clock out of step.
Therefore, in the prior art, when the clock synchronization is performed on the base station to be calibrated, the problems of low synchronization precision and easy occurrence of clock desynchronization after synchronization exist, and an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a clock synchronization method and a base station, and aims to solve the problems that in the prior art, when the clock synchronization is carried out on the base station to be calibrated, the synchronization precision is low, the clock is easy to be out of step, and the user experience is poor.
In order to solve the above problem, the present invention discloses a clock synchronization method, which is applied to a base station, and comprises:
counting the clock signal fluctuation interval of each adjacent base station in at least two adjacent base stations in a preset period by monitoring the clock signals of at least two adjacent base stations, wherein the at least two adjacent base stations comprise one or more adjacent base stations with higher monitoring levels than the base stations;
if all the clock signal fluctuation intervals have overlapping intervals, setting the starting point of the overlapping interval as a relative time point corresponding to at least two adjacent base stations;
and calibrating the system clock of the base station according to the relative time point.
In a preferred embodiment of the present invention, the method may further comprise: detecting whether a base station has GPS signal input;
if not, monitoring clock synchronization messages of at least two adjacent base stations, wherein the clock synchronization messages carry clock signals and monitoring levels;
and setting the monitoring level of the base station according to the monitoring level.
In a preferred embodiment of the present invention, the step of counting a clock signal fluctuation interval of each of at least two neighboring base stations in a predetermined period by monitoring clock signals of at least two neighboring base stations specifically includes:
sampling a clock signal at predetermined time intervals in a predetermined period;
and counting the clock signal fluctuation interval corresponding to the clock signal according to the sampling result.
In a preferred embodiment of the present invention, the step of counting a clock signal fluctuation interval of each of at least two neighboring base stations in a predetermined period by monitoring clock signals of at least two neighboring base stations specifically includes:
calculating a first deviation value between a first time point corresponding to the current sampling point and a second time point corresponding to the previous sampling point, and a second deviation value between a third time point corresponding to the next sampling point and the first time point;
superposing the first deviation value and the second deviation value to obtain a clock fluctuation value corresponding to the next sampling point;
sequentially acquiring clock fluctuation values corresponding to all sampling points in a preset period;
and establishing a clock fluctuation interval according to the minimum value and the maximum value in the acquired multiple clock fluctuation values.
In a preferred embodiment of the present invention, the method may further comprise:
if there is no overlapping interval between the clock fluctuation interval corresponding to at least one adjacent base station and the clock fluctuation intervals corresponding to other adjacent base stations in at least two adjacent base stations, counting the clock signal fluctuation interval of each adjacent base station in at least two adjacent base stations in the next preset period.
According to another aspect of the present invention, there is provided a base station, comprising:
the statistical module is used for counting the clock signal fluctuation interval of each adjacent base station in the at least two adjacent base stations in a preset period by monitoring the clock signals of the at least two adjacent base stations, wherein the at least two adjacent base stations comprise one or more adjacent base stations with higher monitoring levels than the base station;
the first setting module is used for setting the starting point of the overlapping interval as a relative time point corresponding to at least two adjacent base stations if the overlapping interval exists in all the clock signal fluctuation intervals;
and the calibration module is used for calibrating the system clock of the base station according to the relative time point.
In a preferred embodiment of the present invention, the base station further includes:
the detection module is used for detecting whether the base station has GPS signal input;
the monitoring module is used for monitoring the clock synchronization messages of at least two adjacent base stations if the detection module detects that the clock synchronization messages carry clock signals and monitoring levels;
and the second setting module is used for setting the monitoring level of the base station according to the monitoring level.
In a preferred embodiment of the present invention, the statistical module is further configured to sample the clock signal at predetermined time intervals during a predetermined period;
and counting a clock signal fluctuation interval corresponding to the clock signal according to the sampling result.
In a preferred embodiment of the present invention, the statistical module is further configured to calculate a first deviation value between a first time point corresponding to the current sampling point and a second time point corresponding to the previous sampling point, and a second deviation value between a third time point corresponding to the next sampling point and the first time point;
superposing the first deviation value and the second deviation value to obtain a clock fluctuation value corresponding to the next sampling point;
sequentially acquiring clock fluctuation values corresponding to all sampling points in a preset period;
and establishing a clock fluctuation interval according to the minimum value and the maximum value in the acquired multiple clock fluctuation values.
In a preferred embodiment of the present invention, the counting module is further configured to count a clock signal fluctuation interval of each of the at least two neighboring base stations in a next predetermined period if there is no overlapping interval between the clock fluctuation interval corresponding to at least one neighboring base station and the clock fluctuation intervals corresponding to other neighboring base stations in the at least two neighboring base stations.
Compared with the prior art, the clock signal fluctuation interval of each adjacent base station in the at least two adjacent base stations in the preset period is counted by monitoring the clock signals of the at least two adjacent base stations, wherein the at least two adjacent base stations comprise one or more adjacent base stations with higher monitoring level than the base station; if all the clock signal fluctuation intervals have overlapping intervals, setting the starting point of the overlapping interval as a relative time point corresponding to at least two adjacent base stations; and calibrating the system clock of the base station according to the relative time point, thereby effectively improving the accuracy and reliability in the clock synchronization process and further improving the user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of a method of clock synchronization according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the layout position of a base station according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of clock fluctuation intervals according to an embodiment of the present invention;
fig. 4 is a block diagram of a base station according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The base station in the embodiment of the present invention may specifically be a TD-LTE (Time Division Long term evolution) micro base station, and specifically includes: femto station, Pico station, Nanocell station, Smallcell station.
Referring to fig. 1, a flowchart of a clock synchronization method according to an embodiment of the present invention is shown, where the method is applied to a base station, and specifically includes the following steps:
step 101, counting a clock signal fluctuation interval of each of at least two neighboring base stations in a predetermined period by monitoring clock signals of the at least two neighboring base stations, wherein the at least two neighboring base stations include one or more neighboring base stations with higher monitoring levels than the base station.
Specifically, in the embodiment of the present invention, in a scenario where a base station (to distinguish from other base stations, the base station is referred to as a base station to be synchronized hereinafter) needs to perform clock synchronization, the base station to be synchronized monitors clock signals of at least two neighboring base stations around, where at least two neighboring base stations monitored by the base station to be synchronized need to include one or more neighboring base stations whose monitoring levels are higher than that of the base station to be synchronized. The base station to be synchronized counts the clock signal fluctuation interval of each monitored adjacent base station in a preset period by monitoring the clock signals of at least two adjacent base stations. In a preferred embodiment of the present invention, the clock signal fluctuation interval represents an interval value formed by clock skew (fluctuation) amount of the monitored base station due to clock jitter during the monitoring process of the predetermined period, wherein the specific construction mode of the clock signal fluctuation interval will be explained in detail in the following embodiments.
Further, in another preferred embodiment of the present invention, the predetermined period may be set to a second order, for example: for 10 s. The user can set the predetermined period according to the actual requirement, which is not limited in the present invention.
And 102, if the fluctuation intervals of all the clock signals have the overlapping intervals, setting the starting point of the overlapping interval as the relative time point corresponding to at least two adjacent base stations.
Specifically, in the embodiment of the present invention, the base station to be synchronized performs processing analysis on the counted fluctuation intervals of the plurality of clock signals. If all the clock signal fluctuation intervals have the overlapping interval, the starting point of the overlapping interval is the relative time point corresponding to at least two adjacent base stations, that is, the relative time is the time offset between the absolute time of the base station to be synchronized and at least two adjacent base stations. For example, the following steps are carried out: if the absolute time of the base station to be synchronized is 10 o' clock 58 to zero for 1 second, when the relative time point is 2 milliseconds, that is, the absolute time of the base station with synchronization is 2 milliseconds different from the absolute time counted by at least two base stations (the counted absolute time of at least two base stations is similar or identical to the GPS time, and may also be understood as the GPS time, and is referred to as the GPS time hereinafter for distinguishing the absolute time).
And 103, calibrating the system clock of the base station according to the relative time point.
Specifically, in the embodiment of the present invention, since the base station to be synchronized knows that the difference between the current absolute time and the GPS time is the relative value corresponding to the relative time point, the base station to be synchronized calibrates the system clock of the base station to be synchronized according to the relative time point. Still taking the numerical value in step 102 as an example, if the base station to be synchronized knows that the current absolute time of the base station to be synchronized is 2ms different from the GPS time (i.e. the relative value corresponding to the relative time point), the base station to be synchronized needs to add 2ms to the absolute time of the base station to be synchronized (10: 58, zero and 1 second) to calibrate the system clock of the base station. The clock after the synchronous base station is calibrated is 10 points, 58 points, zero, 1 second and zero 2 milliseconds, the time is the absolute time after the calibration, and the time after the calibration is close to or the same as the GPS time.
In a preferred embodiment of the present invention, to further ensure the accuracy of the system clock of the base station to be synchronized, the base station to be synchronized may continue to monitor the clock signals of the neighboring base stations within a predetermined period of a specified number, and perform clock synchronization. In another preferred embodiment, the operator may also set the listening duration by, for example: and setting the monitoring time duration to be 1 hour, and continuously monitoring the clock signals of the adjacent base stations by the base station to be synchronized according to a preset period within the 1 hour, and performing clock synchronization. In another preferred embodiment of the present invention, the base station to be synchronized may further perform statistics on the relative time, and if none of the statistical relative time points in three consecutive predetermined periods has changed, determine that the relative time point is an accurate value, synchronize the clock according to the relative time point, and stop monitoring.
In summary, in the technical solution in the embodiments of the present invention, clock signals of at least two neighboring base stations are monitored, and a clock signal fluctuation interval of each of the at least two neighboring base stations in a predetermined period is counted, where the at least two neighboring base stations include one or more neighboring base stations whose monitoring level is higher than that of the base station; if all the clock signal fluctuation intervals have overlapping intervals, setting the starting point of the overlapping interval as a relative time point corresponding to at least two adjacent base stations; and calibrating the system clock of the base station according to the relative time point, thereby effectively improving the accuracy and reliability in the clock synchronization process. In addition, the base station in the invention monitors the clock signal of the adjacent base station to calibrate the system clock of the base station, thereby reducing the wiring and other processes of indoor installation and improving the efficiency and the practicability of indoor installation. Meanwhile, the base station does not need to be additionally provided with a receiving device for receiving the GPS signal, so that the implementation cost is further saved, and the user experience is improved.
Furthermore, in a preferred embodiment of the present invention, the method may further comprise: detecting whether a base station has GPS signal input; if not, monitoring clock synchronization messages of at least two adjacent base stations, wherein the clock synchronization messages carry clock signals and monitoring levels; and setting the monitoring level of the base station according to the monitoring level.
In a preferred embodiment of the present invention, step 101 may further specifically include:
sampling a clock signal at predetermined time intervals in a predetermined period;
and counting the clock signal fluctuation interval corresponding to the clock signal according to the sampling result.
In a preferred embodiment of the present invention, step 101 may further specifically include:
calculating a first deviation value between a first time point corresponding to the current sampling point and a second time point corresponding to the previous sampling point, and a second deviation value between a third time point corresponding to the next sampling point and the first time point;
superposing the first deviation value and the second deviation value to obtain a clock fluctuation value corresponding to the next sampling point;
sequentially acquiring clock fluctuation values corresponding to all sampling points in a preset period;
and establishing a clock fluctuation interval according to the minimum value and the maximum value in the acquired multiple clock fluctuation values.
In a preferred embodiment of the present invention, the method may further comprise:
and if the clock fluctuation interval corresponding to at least one adjacent base station in the two adjacent base stations is not overlapped with the clock fluctuation interval corresponding to other adjacent base stations, counting the clock signal fluctuation interval of each adjacent base station in the at least two adjacent base stations in the next preset period.
In order to better understand the clock synchronization method of the present invention for those skilled in the art, the following detailed description is given with reference to specific embodiments.
Fig. 2 is a schematic diagram illustrating a base station layout position in the embodiment of the present invention. The base station with asterisk in the figure is the base station to be synchronized in the invention. Wherein the middle double loop represents the base station with the GPS signal, referred to as the source base station in the present invention. The source base station has a receiving device capable of receiving GPS signals to synchronize its own clock by GPS synchronization. The dotted circle in the figure represents a base station with a listening level of level 1. The level 1 base station adopts the synchronous clock method related by the invention to calibrate the clock of the base station by monitoring the source base station and the base station in the same level. And, since the level 1 base station is the listening source base station, the level 1 base station sets its own listening level to level 1 during the calibration process. The base station layout positions in fig. 2 are only schematic examples for better understanding of the present invention, and users can perform the base station layout according to actual requirements.
In the following, a base station with an asterisk (hereinafter referred to as a base station to be synchronized), i.e., a level 2 base station, is taken as an example for detailed explanation.
Firstly, a base station to be synchronized detects whether GPS signal input exists in the base station, and when the base station to be synchronized detects that the GPS signal input does not exist in the base station, a monitoring synchronization function is started. The method comprises the steps that a base station to be synchronized monitors clock synchronization messages of two or more adjacent base stations around, wherein the clock synchronization messages carry clock signals and monitoring levels. In this embodiment, the base station to be synchronized listens to the clock synchronization messages sent from two level 1 base stations and two level 2 base stations. The clock synchronization messages sent by the two level-1 base stations carry identification information for identifying the monitoring level as level 1. Similarly, the clock synchronization messages sent by the two level-2 base stations carry identification information identifying that the monitoring level is level 2. It should be noted that, in the present invention, two or more neighboring base stations monitored by the base station to be synchronized need to include one or more neighboring base stations with higher monitoring level than the base station to be synchronized.
And the base station to be synchronized acquires the identification information, and if the current monitored high-level base station is 1 level, the monitoring level of the base station to be synchronized is set to be 2 levels.
And then, the base station to be synchronized samples the clock signal at preset time intervals in a preset period, and counts the clock signal fluctuation interval corresponding to the clock signal according to the sampling result. Specifically, in the embodiment of the present invention, the predetermined period is set to 60s, and the predetermined time interval is set to 1 s. That is, the base station to be synchronized samples each of the monitored clock signals at time intervals of 1s for 60 s. Assuming that the time to start sampling is 10 o' clock, the base station to be synchronized needs to sample each clock signal 60 times in 60 s. The numerical values of the present invention are only exemplary, and the setting of the predetermined period and the setting of the sampling interval may be set according to actual requirements, in general, the predetermined period is in the order of seconds, and the sampling interval is in the order of milliseconds. In the sampling process of the base station to be synchronized, the sampling result needs to be further processed and analyzed, and the specific processing and analyzing process is as follows:
and calculating a first deviation value between a first time point corresponding to the current sampling point and a second time point corresponding to the previous sampling point, and a second deviation value between a third time point corresponding to the next sampling point and the first time point. And then, overlapping the first deviation value and the second deviation value to obtain a clock fluctuation value corresponding to the next sampling point. And the base station to be synchronized sequentially acquires the clock fluctuation values corresponding to all the sampling points in a preset period according to the steps. And the base station to be synchronized establishes a clock fluctuation interval according to the minimum value and the maximum value in the acquired multiple clock fluctuation values. For example, the following steps are carried out: the base station to be synchronized samples one of the base stations of level 1, the time corresponding to the first sampling point is 10 points, zero 1 second and zero 1 millisecond, the clock signal fluctuation value (namely the deviation value) corresponding to the first sampling point is 1 millisecond, the recorder takes the original point as the center on the time axis, and the fluctuation value is recorded at the position of 1 millisecond. The base station to be synchronized carries out second sampling at intervals of 1 second, the time corresponding to the second sampling point is 10 points, zero 1 second and zero 999 milliseconds, however, the expected time of the second sampling point is 10 points, zero 2 seconds and zero 1 millisecond, and therefore, the deviation value between the second sampling point and the first sampling point is-2 milliseconds. Because the deviation value corresponding to the first sampling point is 1 millisecond, the base station to be synchronized superposes the deviation value corresponding to the second sampling point and the deviation value corresponding to the first sampling point, namely the superposition value is-1, and the recorder records the clock signal fluctuation value corresponding to the second sampling point at the position of-1 millisecond on the time axis. And the base station to be synchronized sequentially samples and records the clock signal fluctuation value corresponding to each sampling point on the actual axis by the steps. After the last sampling is finished, a plurality of clock signal fluctuation values are recorded on a time axis, the minimum value and the maximum value of the recorded clock fluctuation values on the time axis are taken, and a clock signal fluctuation interval corresponding to the monitored base station is established. The sampling and analyzing process of other monitored base stations is the same as the above steps, and is not described herein.
Fig. 3 is a schematic diagram of clock signal fluctuation intervals counted by the base station to be synchronized after sampling and analyzing two level-1 base stations and two level-2 base stations in this embodiment. The two dotted-line clock signal fluctuation intervals correspond to two level-2 base stations, and the two solid-line clock signal fluctuation intervals correspond to two level-1 base stations. As shown in the figure, if there is an overlapping interval (i.e. the oblique line part in the figure) between the four clock signal fluctuation intervals, the starting point of the overlapping interval is the relative time corresponding to the four monitored neighboring base stations, i.e. the relative value between the absolute time of the base station to be synchronized and the absolute time of the four monitored neighboring base stations. Assuming that the starting point of the overlap interval is 1 millisecond, the current absolute time of the base station to be synchronized, that is, the time (10 points and zero 1 minute) corresponding to the last sampling point needs to be superimposed with the counted relative time point, and the time after the superimposition is: and (3) zero 1 at 10 points is divided into zero 1 millisecond, the time is absolute time close to or consistent with GPS time, and the base station to be synchronized calibrates the system time with the absolute time.
In the embodiment of the present invention, if there is no overlapping interval between the clock fluctuation interval corresponding to one or more neighboring base stations and the clock fluctuation interval corresponding to other neighboring base stations in the clock fluctuation interval corresponding to the monitored neighboring base station, it indicates that the sampling result in the predetermined time is inaccurate, and the calibration of the system clock cannot be performed. The base station to be synchronized needs to monitor again in the next predetermined period and count the fluctuation interval corresponding to the clock signal corresponding to the monitored neighboring base station.
Further, in order to ensure the accuracy of the clock signal, in the embodiment of the present invention, the base station to be synchronized may repeat the monitoring and synchronizing steps, or continue monitoring and synchronizing within a specified time. And when the clock synchronization of the base station to be synchronized is finished, the base station to be synchronized closes the monitoring synchronization function and opens the self-calibration function. And in the continuous process of the self-calibration function, the base station to be synchronized automatically calibrates the system clock through the self-calibration function. It should be noted that the base stations produced by different manufacturers have different self-calibration performance, i.e. different self-calibration duration. Therefore, after the preset self-calibration time of the base station to be synchronized is over, the monitoring synchronization function is restarted to recalibrate the system clock, so that the clock synchronization between the base stations is further ensured, and the phenomenon of clock desynchronization is avoided.
In summary, in the technical solution of the embodiments of the present invention, the base station to be synchronized monitors the high-level or the high-level and same-level neighboring base stations, so that the system clock of the base station to be synchronized can be calibrated according to the clock signals of the multiple neighboring base stations, and the accuracy and reliability of clock synchronization are effectively improved. In addition, the base station in the invention monitors the clock signal of the adjacent base station to calibrate the system clock of the base station, thereby reducing the wiring and other processes of indoor installation and improving the efficiency and the practicability of indoor installation. Meanwhile, the base station does not need to be additionally provided with a receiving device for receiving the GPS signal, so that the implementation cost is further saved, and the customer experience is improved.
Referring to fig. 4, a block diagram of a base station according to an embodiment of the present invention is shown, where the base station may specifically include the following modules:
a counting module 401, configured to count a clock signal fluctuation interval of each of at least two neighboring base stations in a predetermined period by monitoring clock signals of the at least two neighboring base stations, where the at least two neighboring base stations include one or more neighboring base stations with higher monitoring levels than the base station.
A first setting module 402, configured to set a starting point of an overlapping interval as a relative time point corresponding to at least two adjacent base stations if there is an overlapping interval between all clock signal fluctuation intervals.
A calibration module 403, configured to calibrate a system clock of the base station according to the relative time point.
In a preferred embodiment of the present invention, the base station may further include:
and a detection module (not shown in the figure) for detecting whether the base station itself has a GPS signal input.
And a monitoring module (not shown in the figure), configured to monitor clock synchronization messages of at least two neighboring base stations if the detection module detects that the clock synchronization messages do not carry the clock signal and the monitoring level.
And the second setting module is used for setting the monitoring level of the base station according to the monitoring level.
In a preferred embodiment of the present invention, the statistic module 401 may be further configured to sample the clock signal at predetermined time intervals in a predetermined period. And counting a clock signal fluctuation interval corresponding to the clock signal according to the sampling result.
In a preferred embodiment of the present invention, the statistical module 401 may further be configured to calculate a first deviation value between a first time point corresponding to the current sampling point and a second time point corresponding to the previous sampling point, and a second deviation value between a third time point corresponding to the next sampling point and the first time point; superposing the first deviation value and the second deviation value to obtain a clock fluctuation value corresponding to the next sampling point; sequentially acquiring clock fluctuation values corresponding to all sampling points in a preset period; and establishing a clock fluctuation interval according to the minimum value and the maximum value in the acquired multiple clock fluctuation values.
In a preferred embodiment of the present invention, the counting module 401 may be further configured to count a clock signal fluctuation interval of each of the at least two neighboring base stations in a next predetermined period if there is no overlapping interval between the clock fluctuation interval corresponding to at least one neighboring base station and the clock fluctuation intervals corresponding to other neighboring base stations in the at least two neighboring base stations.
In summary, in the base station in the embodiment of the present invention, the clock signal fluctuation interval of each of the at least two neighboring base stations in the predetermined period is counted by monitoring the clock signals of the at least two neighboring base stations, where the at least two neighboring base stations include one or more neighboring base stations whose monitoring levels are higher than that of the base station; if all the clock signal fluctuation intervals have overlapping intervals, setting the starting point of the overlapping interval as a relative time point corresponding to at least two adjacent base stations; and calibrating the system clock of the base station according to the relative time point, thereby effectively improving the accuracy and reliability in the clock synchronization process. In addition, the base station in the invention monitors the clock signal of the adjacent base station to calibrate the system clock of the base station, thereby reducing the wiring and other processes of indoor installation and improving the efficiency and the practicability of indoor installation. Meanwhile, the base station does not need to be additionally provided with a receiving device for receiving the GPS signal, so that the implementation cost is further saved, and the user experience is improved.
For the apparatus embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The clock synchronization method and the base station provided by the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A clock synchronization method, applied to a base station, the method comprising:
counting a clock signal fluctuation interval of each adjacent base station in at least two adjacent base stations in a preset period by monitoring clock signals of the at least two adjacent base stations, wherein the at least two adjacent base stations comprise one or more adjacent base stations with higher monitoring levels than the base station; the clock signal fluctuation interval represents an interval value formed by clock offset caused by clock jitter of a monitored base station in the monitoring process of a preset period;
if all clock signal fluctuation intervals have overlapping intervals, setting the starting point of the overlapping interval as a relative time point corresponding to the at least two adjacent base stations;
and calibrating the system clock of the base station according to the relative time point.
2. The method of claim 1, further comprising:
detecting whether the base station has GPS signal input;
if not, monitoring clock synchronization messages of the at least two adjacent base stations, wherein the clock synchronization messages carry the clock signals and the monitoring levels;
and setting the monitoring level of the base station according to the monitoring level.
3. The method according to claim 1, wherein the step of counting a clock signal fluctuation interval of each of at least two neighboring base stations in a predetermined period by monitoring clock signals of the at least two neighboring base stations specifically comprises:
sampling the clock signal at a predetermined time interval within the predetermined period;
and counting a clock signal fluctuation interval corresponding to the clock signal according to the sampling result.
4. The method according to claim 3, wherein the step of counting a clock signal fluctuation interval of each of at least two neighboring base stations within a predetermined period by monitoring clock signals of the at least two neighboring base stations specifically comprises:
calculating a first deviation value between a first time point corresponding to the current sampling point and a second time point corresponding to the previous sampling point, and a second deviation value between a third time point corresponding to the next sampling point and the first time point;
superposing the first deviation value and the second deviation value to obtain a clock fluctuation value corresponding to the next sampling point;
sequentially acquiring clock fluctuation values corresponding to all sampling points in the preset period;
and establishing the clock fluctuation interval according to the minimum value and the maximum value in the acquired multiple clock fluctuation values.
5. The method of claim 1, further comprising:
if there is no overlapping interval between the clock fluctuation interval corresponding to at least one adjacent base station and the clock fluctuation intervals corresponding to other adjacent base stations in the at least two adjacent base stations, counting the clock signal fluctuation interval of each adjacent base station in the at least two adjacent base stations in the next preset period.
6. A base station, comprising:
the statistical module is used for counting the clock signal fluctuation interval of each adjacent base station in at least two adjacent base stations in a preset period by monitoring the clock signals of the at least two adjacent base stations, wherein the at least two adjacent base stations comprise one or more adjacent base stations with higher monitoring levels than the base station; the clock signal fluctuation interval represents an interval value formed by clock offset caused by clock jitter of a monitored base station in the monitoring process of a preset period;
a first setting module, configured to set a starting point of an overlapping interval as a relative time point corresponding to the at least two adjacent base stations if there is an overlapping interval between all clock signal fluctuation intervals;
and the calibration module is used for calibrating the system clock of the base station according to the relative time point.
7. The base station of claim 6, wherein the base station further comprises:
the detection module is used for detecting whether the base station has GPS signal input;
a monitoring module, configured to monitor clock synchronization messages of the at least two neighboring base stations if the detection module detects that the clock synchronization messages carry the clock signals and the monitoring levels;
and the second setting module is used for setting the monitoring level of the base station per se according to the monitoring level.
8. The base station of claim 6, wherein the statistical module is further configured to sample the clock signal at a predetermined time interval during the predetermined period;
and counting a clock signal fluctuation interval corresponding to the clock signal according to the sampling result.
9. The base station of claim 8, wherein the statistical module is further configured to calculate a first deviation value between a first time point corresponding to a current sampling point and a second time point corresponding to a previous sampling point, and a second deviation value between a third time point corresponding to a next sampling point and the first time point;
superposing the first deviation value and the second deviation value to obtain a clock fluctuation value corresponding to the next sampling point;
sequentially acquiring clock fluctuation values corresponding to all sampling points in the preset period;
and establishing the clock fluctuation interval according to the minimum value and the maximum value in the acquired multiple clock fluctuation values.
10. The base station of claim 6, wherein the counting module is further configured to count a clock signal fluctuation interval of each of the at least two neighboring base stations in a next predetermined period if there is no overlapping interval between the clock fluctuation interval corresponding to at least one neighboring base station and the clock fluctuation intervals corresponding to other neighboring base stations in the at least two neighboring base stations.
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 CN108064079A (en) 2018-05-22
CN108064079B true 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
CN108064079A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
US10542519B2 (en) Terminal positioning method and network device
US8837316B2 (en) RTT based ranging system and method
US9455885B2 (en) Systems, methods, and apparatus for modifying sensor time stamp data
JP2010528495A (en) Method for determining time variation in a mobile terminal
EP2765813A1 (en) High-precision time tagging for content synthesization
US20130016739A1 (en) Multi-channel sniffer system and method for multi-channel sniffer synchronization
CN112422250B (en) Method and system for multi-reference signal joint measurement time offset
CN112422249A (en) Method and system for jointly measuring frequency offset by multiple reference signals
Jia et al. Passive network synchronization based on concurrent observations in industrial IoT systems
CN114258126A (en) Data processing method and device
CN103167599A (en) Method and device for information synchronization
CN113923667B (en) Control method, device, equipment and medium of terminal equipment
CN109699068B (en) Base station synchronization method and device
CN113794528B (en) A time-frequency synchronization evaluation device and method for power 5G network timing
CN108064079B (en) Clock synchronization method and base station
CN111246386B (en) Terminal positioning method and device
CN105338487B (en) Techniques for multi-pass geolocation
CN110346754B (en) Positioning time obtaining method and device
CN110933690A (en) Mobile terminal room division distinguishing method, device, server and storage medium
Luo et al. Rapid clock synchronisation for ubiquitous sensing services involving multiple smartphones
WO2023193684A1 (en) Method for verifying position of terminal, and terminal and network side device
JP7155796B2 (en) Wireless communication system, aggregation device, interference source airtime acquisition method and interference source airtime acquisition program
CN112566235B (en) Wireless synchronization method, device and system for monitoring station
KR100785239B1 (en) Mobile terminal synchronization system, synchronization server and method
CN110972254A (en) Clock synchronization system

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