Method and device for time synchronization and maintaining based on frequency deviation estimation

A frequency deviation and time synchronization technology, which is applied in the direction of synchronization devices, digital transmission systems, electrical components, etc., can solve the problems that the clock cannot perform frequency adjustment and time maintenance, affects counting accuracy, and frequency jumps, etc.

CN102480350AInactive Publication Date: 2012-05-30BEIJING INTERVISION SOFTWARE
3 Cites 23 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2012-05-30
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a method and a device for time synchronization and maintaining based on frequency deviation estimation. The method includes firstly, synchronizing time of a slave clock and a master clock and calculating a frequency deviation initial value R0 of the master clock and the slave clock; and secondly, estimating the corresponding time of the slave clock to the master clock at the moment t according to the calculated frequency deviation initial value R0, calculating the synchronization time measured value Ts of the slave clock at the moment t, determining whether synchronizing time or not according to the error of the master clock time and the synchronization time measured value Ts, if yes, synchronizing time of the slave clock and the master clock, and if not, acquiring N new master clock counts and slave clock counts to recalculating a frequency deviation value R based on the N new master clock counts and slave clock counts. By means of the method and the device for time synchronization and maintaining based on frequency deviation estimation, a distributive system can be more accurate in clock synchronization and more convenient in operation.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to a method and device for realizing time synchronization and maintenance among multiple computers in a distributed network environment, in particular to a time synchronization and maintenance method and device based on frequency deviation estimation. Background technique

[0002] Time unification is one of the most basic requirements of computer application systems. In a network-based distributed system, it is necessary to establish a standard time unification system or a common time reference to achieve system time unification. Otherwise, these applications are very difficult to work together and run well.

[0003] For two free-running clocks, due to reasons such as the frequency division deviation of the crystal oscillator and the clock timer, each clock runs at a different speed, which eventually causes a deviation between the clocks. Therefore, time synchronization includes two parts of work: (1) Realize time difference syn...

Examples

Embodiment Construction

[0050] The method and device for time synchronization and maintenance based on frequency deviation estimation of the present invention are introduced below in conjunction with the accompanying drawings:

[0051] figure 1 Shown is the flow chart of the method for time synchronization and maintenance based on frequency deviation estimation of the present invention, which includes steps: S1 performs the time synchronization operation between the slave clock and the master clock and calculates the initial value R of the frequency deviation of the master-slave clock 0 ; S2 according to the calculated initial value of frequency deviation R 0 , to estimate the master clock time corresponding to the slave clock at time t Calculate the synchronization time measurement Ts of the slave clock at time t, according to the master clock time Whether to take the time synchronization operation with the error of the measured value Ts of the synchronization time, if so, then perform the time ...