CN108803300A - The punctual method of time synchronism apparatus based on constant-temperature crystal oscillator and time synchronism apparatus - Google Patents

The punctual method of time synchronism apparatus based on constant-temperature crystal oscillator and time synchronism apparatus Download PDF

Info

Publication number
CN108803300A
CN108803300A CN201810503127.3A CN201810503127A CN108803300A CN 108803300 A CN108803300 A CN 108803300A CN 201810503127 A CN201810503127 A CN 201810503127A CN 108803300 A CN108803300 A CN 108803300A
Authority
CN
China
Prior art keywords
crystal oscillator
constant
value
frequency
tick
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
CN201810503127.3A
Other languages
Chinese (zh)
Other versions
CN108803300B (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.)
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Original Assignee
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology 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 Xuji Group Co Ltd, XJ Electric Co Ltd, Xuchang XJ Software Technology Co Ltd filed Critical Xuji Group Co Ltd
Priority to CN201810503127.3A priority Critical patent/CN108803300B/en
Publication of CN108803300A publication Critical patent/CN108803300A/en
Application granted granted Critical
Publication of CN108803300B publication Critical patent/CN108803300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G7/00Synchronisation
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G5/00Setting, i.e. correcting or changing, the time-indication
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS

Abstract

The present invention relates to the punctual method of the time synchronism apparatus based on constant-temperature crystal oscillator and time synchronism apparatus, when punctual, first in the case where there is synchronous clock source, obtain the actual frequency for the reference frequency that constant-temperature crystal oscillator provides and interior pulse number per second;And in sequence, often setting number of seconds calculate setting number of seconds in pulse number and value, be denoted as β value, and obtained each and value is sequentially stored into buffer queue;So, when synchronization is lost clock source when, obtained β value is handled accordingly, obtains the frequency compensation value of constant-temperature crystal oscillator, with realize the variation of the frequency of constant-temperature crystal oscillator is predicted;Finally, pulse per second (PPS) of keeping time is generated according to frequency compensation value, realizes the punctual of time synchronism apparatus.So can be predicted and be compensated in the frequency variation for not being fully warmed-up and bringing to constant-temperature crystal oscillator by means of which, moreover, reducing subsequent time keeping error, the punctual accuracy of synchronised clock is improved.

Description

The punctual method of time synchronism apparatus based on constant-temperature crystal oscillator and time synchronism apparatus
Technical field
The present invention relates to the punctual method of the time synchronism apparatus based on constant-temperature crystal oscillator and time synchronism apparatus.
Background technology
With the continuous expansion of electric system scale, the device of substation, equipment, function constantly enhance, system structure Increasingly sophisticated, the requirement to time precision is also higher and higher.Therefore, Clock Synchronization Technology is used widely in electric power.Mesh Before, clock is synchronized in protective device, scheduling system, fault oscillograph, EMS Energy Management System, (telemechanical is whole for distributed RTU End), telemetering, the data processing of remote signalling, the extensive uses such as complex automatic system and line fault distance measuring.
Currently, source when time synchronism apparatus generally uses the Big Dipper to be used as synchronous with GPS satellite antenna, is accurately awarded to realize When, using High Accuracy Constant Temperature crystal oscillator as reference frequency, frequency of keeping time is provided behind source when losing synchronous.However, constant-temperature crystal oscillator Performance is better, and the preheating of crystal oscillator and taming time are also longer.In the case where crystal oscillator is not fully warmed-up, the frequency of crystal oscillator changes It is larger.It to complete crystal oscillator in 2 hours and tame to reach the punctual precision of 1us/h and want since time synchronism apparatus claimed apparatus starts It asks.Within the time period, constant-temperature crystal oscillator is not fully warmed-up.Meanwhile it being obtained according to research and experimental data, the heat of constant-temperature crystal oscillator Frequency characteristic variations characteristic changes basically according to certain rule, thus can compensate and keep by predicting crystal oscillator frequency variation When.
Invention content
The object of the present invention is to provide a kind of punctual methods of time synchronism apparatus based on constant-temperature crystal oscillator, to solve at present Time synchronism apparatus be not fully warmed-up in constant-temperature crystal oscillator and the larger problem of the time keeping error that brings.Present invention simultaneously provides one Time synchronism apparatus of the kind based on constant-temperature crystal oscillator.
To achieve the above object, the solution of the present invention includes a kind of punctual side of the time synchronism apparatus based on constant-temperature crystal oscillator Method includes the steps that as follows:
(1) in the case where there is synchronous clock source, the actual frequency for the reference frequency that constant-temperature crystal oscillator provides is obtained, and every Pulse number in second;
(2) in sequence, often setting number of seconds calculate setting number of seconds in pulse number and value, be denoted as β value, and will obtain Each and value be sequentially stored into buffer queue;
(3) when synchronization is lost clock source when, obtained β value is handled accordingly, obtain constant-temperature crystal oscillator frequency mend Value is repaid, the variation of the frequency of constant-temperature crystal oscillator is predicted with realizing;
(4) pulse per second (PPS) of keeping time is generated according to the frequency compensation value, realizes the punctual of time synchronism apparatus.
The variation of its frequency is predicted when constant-temperature crystal oscillator is not fully warmed-up, and then frequency is changed and carries out phase The compensation answered.In the case where there is synchronous clock source, the actual frequency of reference frequency that constant-temperature crystal oscillator provides and per second is obtained Interior pulse number;Then in sequence, often setting number of seconds calculate the pulse number in setting number of seconds and value, and will obtain Each and value is sequentially stored into buffer queue;So, when synchronization is lost clock source when, obtained above and value is carried out corresponding Processing, obtain the frequency compensation value of constant-temperature crystal oscillator, with realize the variation of the frequency of constant-temperature crystal oscillator is predicted.Using this Mode can be predicted and be compensated in the frequency variation for not being fully warmed-up and bringing to constant-temperature crystal oscillator, moreover, reducing follow-up Time keeping error.Pulse per second (PPS) of keeping time is generated according to frequency compensation value, the punctual of time synchronism apparatus is realized, that is, ensure that crystal oscillator is pre- The punctual accuracy of hot phase, in turn ensures pulse per second (PPS) output stability, improves the punctual accuracy of synchronised clock, can be very There are constant-temperature crystal oscillators to preheat insufficient frequency error brought for the good punctual method of elimination tradition.
When synchronization is lost when clock source, following processing is made to each β value:According to the sequence of time from back to front, every M is sought The sum of a β value, is denoted as α values, the setting number of seconds that each α values corresponding period is M times;According to the sequence of time from back to front, The sum per N number of α values is sought, is denoted asValue, eachIt is worth the setting number of seconds that the corresponding period is M*N times.
The calculation formula of the frequency compensation value is respectively:Δtick2i+1+ α (1) and Δ tick2i+2+α(2);Δ tick's Calculation is:
……
Δtick2i+1=Δ tick2i+2=Δ tick2i-1/ 2,
Wherein, i=1,2 ..., the period corresponding with α values Δ tick corresponding periods is equal;α (1) is to lose together The last one period corresponding α values before clock source are walked, α (2) is α (1) adjacent previous periods corresponding α values.
Method is shared equally by Δ tick using remainder2i+1+ α (1) and Δ tick2i+2+ α (2) respectively mean allocation at several pieces, And two groups of pulse per second (PPS) count values are formed, each count value reaches, that is, generates a pulse per second (PPS) output, when this two groups of pulse per second (PPS)s count After the completion of the pulse per second (PPS) output that value is formed, i adds 1, recalculates Δ tick2i+1+ α (1) and Δ tick2i+2+ α (2), and generate phase The pulse per second (PPS) output answered.
Monotonicity judgement is carried out to the variation of the frequency of constant-temperature crystal oscillator, if frequency changes for monotonicity, to frequency Variation is predicted.
The present invention also provides a kind of time synchronism apparatus based on constant-temperature crystal oscillator, including execution keeping for following punctual strategy When module:
(1) in the case where there is synchronous clock source, the actual frequency for the reference frequency that constant-temperature crystal oscillator provides is obtained, and every Pulse number in second;
(2) in sequence, often setting number of seconds calculate setting number of seconds in pulse number and value, be denoted as β value, and will obtain Each and value be sequentially stored into buffer queue;
(3) when synchronization is lost clock source when, obtained β value is handled accordingly, obtain constant-temperature crystal oscillator frequency mend Value is repaid, the variation of the frequency of constant-temperature crystal oscillator is predicted with realizing;
(4) pulse per second (PPS) of keeping time is generated according to the frequency compensation value, realizes the punctual of time synchronism apparatus.
When synchronization is lost when clock source, following processing is made to each β value:According to the sequence of time from back to front, every M is sought The sum of a β value, is denoted as α values, the setting number of seconds that each α values corresponding period is M times;According to the sequence of time from back to front, The sum per N number of α values is sought, is denoted asValue, eachIt is worth the setting number of seconds that the corresponding period is M*N times.
The calculation formula of the frequency compensation value is respectively:Δtick2i+1+ α (1) and Δ tick2i+2+α(2);Δ tick's Calculation is:
……
Δtick2i+1=Δ tick2i+2=Δ tick2i-1/ 2,
Wherein, i=1,2 ..., the period corresponding with α values Δ tick corresponding periods is equal;α (1) is to lose together The last one period corresponding α values before clock source are walked, α (2) is α (1) adjacent previous periods corresponding α values.
Method is shared equally by Δ tick using remainder2i+1+ α (1) and Δ tick2i+2+ α (2) respectively mean allocation at several pieces, And two groups of pulse per second (PPS) count values are formed, each count value reaches, that is, generates a pulse per second (PPS) output, when this two groups of pulse per second (PPS)s count After the completion of the pulse per second (PPS) output that value is formed, i adds 1, recalculates Δ tick2i+1+ α (1) and Δ tick2i+2+ α (2), and generate phase The pulse per second (PPS) output answered.
Monotonicity judgement is carried out to the variation of the frequency of constant-temperature crystal oscillator, if frequency changes for monotonicity, to frequency Variation is predicted.
Description of the drawings
Fig. 1 is the principle schematic of time synchronism apparatus;
Fig. 2 is the frequency change schematic diagram of constant-temperature crystal oscillator;
Fig. 3 be α values andThe calculation schematic diagram of value;
Fig. 4 is punctual method flow diagram;
Fig. 5 is the comparison figure that PPS is exported after not compensating and compensate.
Specific implementation mode
The present invention provides a kind of punctual method of the time synchronism apparatus based on constant-temperature crystal oscillator, includes the steps that as follows:
(1) in the case where there is synchronous clock source, the actual frequency for the reference frequency that constant-temperature crystal oscillator provides is obtained, and every Pulse number in second;
(2) in sequence, often setting number of seconds calculate the pulse number in setting number of seconds and value, and each and value that will be obtained It is sequentially stored into buffer queue;
(3) when synchronization is lost clock source when, to obtain and value handled accordingly, obtain constant-temperature crystal oscillator frequency benefit Value is repaid, the variation of the frequency of constant-temperature crystal oscillator is predicted with realizing;
(4) pulse per second (PPS) of keeping time is generated according to frequency compensation value, realizes the punctual of time synchronism apparatus.
Based on the basic ideas of the method for keeping time, each step of this method is made below in conjunction with attached drawing and being described in detail.
As shown in Figure 1, time synchronism apparatus, using the punctual pulse per second (PPS) of FPGA outputs, FPGA and CPU communications connect, pass through FPGA and CPU synchronization acquisition time devices are kept time.Therefore, in the present embodiment, time synchronism apparatus includes FPGA and CPU.By In the punctual function of FPGA and CPU synchronization acquisition time devices, therefore, according to function, FPGA and CPU can be known as keeping When module.
Constant-temperature crystal oscillator provides working frequency f, that is, provides the reference pulse that frequency is f, FPGA is using this frequency as counting Benchmark stamps tick markers to the pulse per second (PPS) of synchronised clock source synchronizing signal.If it is assumed that the tick markers of the pulse per second (PPS) in N seconds For C, then, the practical concussion frequency of constant-temperature crystal oscillator can be calculated according to CPU, be:
F=C/N
So, the number for the reference pulse that the constant-temperature crystal oscillator between two adjacent pulse per second (PPS)s that synchronous clock source is sent out is sent out This is just the numerical value of frequency f.
CPU selects source signal synchronization time according to time source logic, moreover, for the ease of subsequent data processing, it will The corresponding tick markers of effective pulse per second (PPS), i.e., the reference pulse spacing value that constant-temperature crystal oscillator provides are deposited successively according to chronological order Enter ram buffer, in the present embodiment, buffer size is set as 64.
When buffering area is full, 64 time intervals of buffering area are carried out and counted, one and value are obtained, when due to one Between to be spaced corresponding be 1 pulse per second (PPS), the corresponding time is 1 second, then, 64 time intervals represent the crystalline substance of the constant temperature in 64 seconds It shakes the number of the reference pulse sent out, i.e., the number of the reference pulse sent out the constant-temperature crystal oscillator in 64 seconds is added.So, with The flowing of time, sum of the every 64 seconds numbers for just calculating the reference pulse that a constant-temperature crystal oscillator in this 64 seconds is sent out, and value are remembered For β value.In addition, the reference frequency sent out due to constant-temperature crystal oscillator is 100MHz ranks, numerical value is excessive in order to prevent and nothing Method accurately caches, that is to say, that in order to which significance bit is not lost in CPU calculating, calculates β value in the following ways:By interior perseverance per second The corresponding number per pulse per second (PPS) of actual frequency that warm crystal oscillator is sent out subtracts a standard value, obtains a difference, the present embodiment In, which is the corresponding number per pulse per second (PPS) of the nominal frequency of constant-temperature crystal oscillator, in this case, corresponding difference per second Numerical value would not be very big, prevents from losing significance bit, calculation formula is:
Wherein, t0It is constant-temperature crystal oscillator in nominal frequency f0Under second arteries and veins spacing value, i.e., reference pulse number per second, such as: Value is 99999950, tiThe pulse number per second for being constant-temperature crystal oscillator under actual frequency.
It obtains a β value within every 64 seconds, then obtained each β value is sequentially stored into buffer queue, in the present embodiment, if 512 buffer queues are set, buffer queue is joined the team according to practical sequencing, therefore, can be obtained from the buffer queue The β value that nearest every 64 seconds crystal oscillator frequencies count.
Therefore, according to above-mentioned formula it is found that f=(64 β+t0)/64, therefore β value can clearly react the frequency of constant-temperature crystal oscillator Rate changes.The power on characteristic of constant-temperature crystal oscillator is:The frequency values that constant-temperature crystal oscillator preheats early period change greatly whithin a period of time, this is just It is the power on characteristic of constant-temperature crystal oscillator, as the time of booting preheating lengthens, the rate-adaptive pacemaker of constant-temperature crystal oscillator is up to stabilization.For Different crystal oscillators, power on characteristic are different, and are same crystal oscillator in time, and retest result may also be different.When for same One crystal oscillator, in a certain range, variation is little for the trend of frequency variation and power on characteristic when booting, for realizing punctual mend It repays and provides chance.
Obtained β buffering area variables can clearly describe the power on characteristic of crystal oscillator, as shown in Fig. 2, Fig. 2 is β-t figures, equally It is also the frequency change schematic diagram of constant-temperature crystal oscillator.Thus figure is it can be seen that the every 64 seconds tick of constant-temperature crystal oscillator count change at any time Change relationship.(100*64=6400s) variation is apparent in preceding 100 periods.Show that crystal oscillator does not preheat fully at this time.With the time Movement, crystal oscillator frequency variation tends towards stability, variation tendency tends towards stability.What we to be done is exactly that energy basis for forecasting crystal oscillator is pre- This performance of heat, to realize more accurately timekeeping performance.
When losing external synchronization clock source, calculated as follows according to the β value in buffer queue, from the nearest time to Preceding calculating, the i.e. sequence according to the time from back to front:Calculate every 8 β value and value, α values are denoted as, each two α values are then calculated And value, be denoted asValue.Wherein, α (1), α (2) ... be according to from being obtained forward at the time of losing external synchronization clock source , α (1) be the pulse of nearest 64*8=512s and value, α (2) be before α (1) pulse of 64*8=512s and value, with such It pushes away.Similarly with α values,... and according to from being obtained forward at the time of losing external synchronization clock source ,Be the pulse of nearest 64*8*2=1024s and value,It isThe pulse of preceding 64*8*2=1024s And value, and so on, i.e.,
In the present embodiment, 64 α values are sought according to β value, be respectively α (1), α (2) ..., α (64), and then seek 32Value,It forward, that is, is pressed from recently as shown in figure 3, representing the time from top to bottom Calculated according to time sequence from back to front, α (n) andAs tick numbers in the crystal oscillator frequency at pulse per second (PPS) interval.
In addition, to prevent constant-temperature crystal oscillator from changing the influence of randomness at random, the stabilization to crystal oscillator frequency during preheating is needed Property judged, only when crystal oscillator frequency variation dull just progress frequency predication and adjustment.According to the actual performance of constant-temperature crystal oscillator into The monotonicity of the synchronous pulse per second (PPS) interval tick of row judges, provides following judgment mode:Choose 4It is worth, is respectivelyIt calculates If above-mentioned two inequality is set up simultaneously, then it is assumed that crystal oscillator frequency is to be monotonically changed in this period.
In the judgement of monotonicity, only the frequency of crystal oscillator warm-up phase is judged and adjusted, i.e., in buffering area at least The case where preserving 1.5 hours synchronization pulse per second (PPS) information, predicting the frequency variation after keeping time.If monotonicity is set up, according to Carry out subsequent frequency predication and compensation;If monotonicity is invalid, without compensation, according only to 1024 seconds finally preserved Pulse information generates pulse of keeping time, this part is not present invention point, is just no longer illustrated here.
In order to eliminate the normally distributed error of crystal oscillator, time synchronism apparatus by according to the second interval TICK value of last 1024s, I.e. baseline sample is α (1) and α (2), and generates output pulse per second (PPS) buffer queue data, compensation after carrying out crystal oscillator frequency compensation Method:
F=(Δ ticki+α(j))/N+f0
F is the actual output frequency of crystal oscillator, f0It is the nominal frequency of constant-temperature crystal oscillator.So:
Δ f=f-f0=(Δ ticki+α(j))/N
Therefore, as long as Δ tickiSelection is reasonable, can obtain accurate actual output frequency.
According to following compensation value calculation method, the error of the frequency of output and the actual output frequency of constant-temperature crystal oscillator can be made It is minimum, it is ensured that the punctual precision of time synchronism apparatus, i=1,2 ...
……
Δtick2i+1=Δ tick2i+2=Δ tick2i-1/2
Period corresponding with α values Δ tick corresponding periods is equal, is 512 seconds.Δtick1It is nearest 512 seconds Corresponding offset, Δ tick2It is Δ tick1Preceding 512 seconds corresponding offsets, other and so on.In addition, working as Δ tick When=1, stop compensation.
After obtaining Δ tick, according to Δ tick after compensation2i+1+ α (1) and Δ tick2i+2The value of+α (2) generates two groups 512 Tick counters interval, and export pulse per second (PPS) according to counter cycle.
In the present embodiment, method is shared equally using remainder and generates pulse per second (PPS) output sequence, wherein remainder shares method equally in patent Number for CN201410689747.2, entitled《A kind of efficient crystal oscillator frequency timekeeping method》Patent application in existing retouch It states.The pulse per second (PPS) array for sharing method generation equally using remainder is more uniform relative to 512 tick values of acquired original, but tick Summation is not lost.
Method is shared equally by the Δ tick after compensation using remainder2i+1+ α (1) and Δ tick2i+2+ α (2) respectively mean allocation at 512 parts, form 2 groups of relatively uniform 512 seconds arteries and veins value count values.
FPGA counts the real-time frequency of crystal oscillator, takes out share method 2 groups of second arteries and veins value meters of generation equally according to remainder successively Numerical value, each count value reach, that is, generate a pulse per second (PPS) output.After the completion of 2 groups of count value outputs, i adds 1, calculates mend again Repay Δ tick2i+1+ α (1) and Δ tick2i+2+ α (2), and punctual pulse per second (PPS) is alternately produced, it realizes and keeps time after synchronous clock source is lost Purpose.That is, sharing method equally by the Δ tick after compensation first with remainder1+ α (1) and Δ tick2+ α (2) is put down respectively 512 parts are distributed into, 2 groups of relatively uniform 512 seconds arteries and veins value count values are formed, each count value reaches, that is, generates a second Pulse exports.After the completion of this 2 groups of count value outputs, compensation Δ tick is calculated3+ α (1) and Δ tick4+ α (2), then will compensation Δ tick afterwards3+ α (1) and Δ tick4Mean allocation forms 2 groups of relatively uniform 512 seconds arteries and veins values to+α (2) at 512 parts respectively Count value, each count value reach, that is, generate a pulse per second (PPS) output.After the completion of this 2 groups of count value outputs, compensation Δ is calculated tick5+ α (1) and Δ tick6+ α (2) generates second arteries and veins value count value, and each count value reaches, that is, generates a pulse per second (PPS) output. And so on, punctual pulse per second (PPS) is alternately produced, realizes the purpose kept time after synchronous clock source is lost.
Fig. 4 is the flow diagram of punctual method.
Fig. 5 is the comparison figure that PPS is exported after not compensating and compensate.As seen from the figure, after not compensating PPS sequences and compensation PPS summation deviation delta t ick (such as scheming big dash area) in 512 PPS, deviation delta t ick, which is averaged, is assigned to single PPS The small opacities part of output.Offset Δ tick1 corrects for the frequency error Δ f caused by changing due to crystal oscillator frequency so that Reduce the time error caused by 512 PPS of output.
Specific embodiment is presented above, but the present invention is not limited to described embodiment.The base of the present invention This thinking is above-mentioned basic scheme, and for those of ordinary skill in the art, various changes are designed in introduction according to the present invention The model of shape, formula, parameter do not need to spend creative work.It is right without departing from the principles and spirit of the present invention The change, modification, replacement and modification that embodiment carries out are still fallen in protection scope of the present invention.

Claims (10)

  1. A kind of method 1. time synchronism apparatus based on constant-temperature crystal oscillator is kept time, which is characterized in that include the steps that as follows:
    (1) in the case where there is synchronous clock source, obtain constant-temperature crystal oscillator provide reference frequency actual frequency and it is per second in Pulse number;
    (2) in sequence, often setting number of seconds calculate setting number of seconds in pulse number and value, be denoted as β value, and each by what is obtained It is sequentially stored into buffer queue with value;
    (3) when synchronization is lost clock source when, obtained β value is handled accordingly, obtains the frequency compensation value of constant-temperature crystal oscillator, The variation of the frequency of constant-temperature crystal oscillator is predicted with realizing;
    (4) pulse per second (PPS) of keeping time is generated according to the frequency compensation value, realizes the punctual of time synchronism apparatus.
  2. The method 2. time synchronism apparatus according to claim 1 based on constant-temperature crystal oscillator is kept time, which is characterized in that when losing When synchronous clock source, following processing is made to each β value:According to the sequence of time from back to front, the sum of every M β value is sought, is denoted as α values, the setting number of seconds that each α values corresponding period is M times;According to the sequence of time from back to front, seek per N number of α values Be denoted asValue, eachIt is worth the setting number of seconds that the corresponding period is M*N times.
  3. The method 3. time synchronism apparatus according to claim 2 based on constant-temperature crystal oscillator is kept time, which is characterized in that the frequency The calculation formula of rate offset is respectively:Δtick2i+1+ α (1) and Δ tick2i+2+α(2);The calculation of Δ tick is:
    ……
    Δtick2i+1=Δ tick2i+2=Δ tick2i-1/ 2,
    Wherein, i=1,2 ..., the period corresponding with α values Δ tick corresponding periods is equal;α (1) is when losing synchronous The last one period corresponding α values before Zhong Yuan, α (2) are α (1) adjacent previous periods corresponding α values.
  4. The method 4. time synchronism apparatus according to claim 3 based on constant-temperature crystal oscillator is kept time, which is characterized in that more than utilization Number shares method equally by Δ tick2i+1+ α (1) and Δ tick2i+2+ α (2) difference mean allocations form two groups of second arteries and veins at several pieces Count value is rushed, each count value reaches, that is, a pulse per second (PPS) output is generated, when the pulse per second (PPS) that this two groups of pulse per second (PPS) count values are formed After the completion of output, i adds 1, recalculates Δ tick2i+1+ α (1) and Δ tick2i+2+ α (2), and generate corresponding pulse per second (PPS) output.
  5. The method 5. time synchronism apparatus according to claim 1 based on constant-temperature crystal oscillator is kept time, which is characterized in that constant temperature The variation of the frequency of crystal oscillator carries out monotonicity judgement, if frequency changes for monotonicity, predicts the variation of frequency.
  6. 6. a kind of time synchronism apparatus based on constant-temperature crystal oscillator, which is characterized in that have the punctual of following punctual strategy including executing Module:
    (1) in the case where there is synchronous clock source, obtain constant-temperature crystal oscillator provide reference frequency actual frequency and it is per second in Pulse number;
    (2) in sequence, often setting number of seconds calculate setting number of seconds in pulse number and value, be denoted as β value, and each by what is obtained It is sequentially stored into buffer queue with value;
    (3) when synchronization is lost clock source when, obtained β value is handled accordingly, obtains the frequency compensation value of constant-temperature crystal oscillator, The variation of the frequency of constant-temperature crystal oscillator is predicted with realizing;
    (4) pulse per second (PPS) of keeping time is generated according to the frequency compensation value, realizes the punctual of time synchronism apparatus.
  7. 7. the time synchronism apparatus according to claim 6 based on constant-temperature crystal oscillator, which is characterized in that clock when synchronization is lost When source, following processing is made to each β value:According to the sequence of time from back to front, the sum of every M β value is sought, is denoted as α values, each The setting number of seconds that the α values corresponding period is M times;According to the sequence of time from back to front, the sum per N number of α values is sought, is denoted as Value, eachIt is worth the setting number of seconds that the corresponding period is M*N times.
  8. 8. the time synchronism apparatus according to claim 7 based on constant-temperature crystal oscillator, which is characterized in that the frequency compensation value Calculation formula be respectively:Δtick2i+1+ α (1) and Δ tick2i+2+α(2);The calculation of Δ tick is:
    ……
    Δtick2i+1=Δ tick2i+2=Δ tick2i-1/ 2,
    Wherein, i=1,2 ..., the period corresponding with α values Δ tick corresponding periods is equal;α (1) is when losing synchronous The last one period corresponding α values before Zhong Yuan, α (2) are α (1) adjacent previous periods corresponding α values.
  9. 9. the time synchronism apparatus according to claim 8 based on constant-temperature crystal oscillator, which is characterized in that utilize the remainder side of sharing equally Method is by Δ tick2i+1+ α (1) and Δ tick2i+2+ α (2) difference mean allocations form two groups of pulse per second (PPS) count values at several pieces, Each count value reaches, that is, generates a pulse per second (PPS) output, is completed when the pulse per second (PPS) that this two groups of pulse per second (PPS) count values are formed exports Afterwards, i adds 1, recalculates Δ tick2i+1+ α (1) and Δ tick2i+2+ α (2), and generate corresponding pulse per second (PPS) output.
  10. 10. the time synchronism apparatus according to claim 6 based on constant-temperature crystal oscillator, which is characterized in that constant-temperature crystal oscillator The variation of frequency carries out monotonicity judgement, if frequency changes for monotonicity, predicts the variation of frequency.
CN201810503127.3A 2018-05-23 2018-05-23 Time synchronization device timekeeping method and time synchronization device based on constant-temperature crystal oscillator Active CN108803300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810503127.3A CN108803300B (en) 2018-05-23 2018-05-23 Time synchronization device timekeeping method and time synchronization device based on constant-temperature crystal oscillator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810503127.3A CN108803300B (en) 2018-05-23 2018-05-23 Time synchronization device timekeeping method and time synchronization device based on constant-temperature crystal oscillator

Publications (2)

Publication Number Publication Date
CN108803300A true CN108803300A (en) 2018-11-13
CN108803300B CN108803300B (en) 2020-11-17

Family

ID=64092811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810503127.3A Active CN108803300B (en) 2018-05-23 2018-05-23 Time synchronization device timekeeping method and time synchronization device based on constant-temperature crystal oscillator

Country Status (1)

Country Link
CN (1) CN108803300B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597297A (en) * 2018-12-11 2019-04-09 烟台持久钟表有限公司 A kind of crystal oscillator compensation method and device
CN110908272A (en) * 2019-12-20 2020-03-24 昆明理工大学 1pps pulse signal timing method
CN111817714A (en) * 2020-07-14 2020-10-23 积成电子股份有限公司 Electronic equipment time synchronization and timekeeping method based on crystal oscillator inter-second pulse synchronization technology
CN113419286A (en) * 2021-06-21 2021-09-21 中国科学院地质与地球物理研究所 High-precision frequency synthesis compensation method for complementation of satellite and constant-temperature crystal oscillator
CN116938380A (en) * 2023-09-18 2023-10-24 南方电网数字电网研究院有限公司 Time scale management method, device, computer equipment and time scale manager

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11271476A (en) * 1998-01-22 1999-10-08 Advantest Corp Reference frequency generating device
CN102004441A (en) * 2010-12-15 2011-04-06 许继集团有限公司 Adaptive crystal oscillator frequency timekeeping method
CN103427793A (en) * 2013-07-29 2013-12-04 国电南瑞科技股份有限公司 Time hacking and punctuality system and method based on temperature compensation
CN103970008A (en) * 2014-05-06 2014-08-06 积成电子股份有限公司 Timekeeping method based on crystal oscillator error compensation
CN104536285A (en) * 2014-11-25 2015-04-22 许继电气股份有限公司 High-efficiency crystal oscillator frequency timekeeping method
CN106877963A (en) * 2016-12-29 2017-06-20 河北远东通信系统工程有限公司 A kind of synchronised clock with learning functionality keeps system and method
CN107026702A (en) * 2017-04-20 2017-08-08 中国南方电网有限责任公司电网技术研究中心 The punctual method and apparatus of high accuracy

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11271476A (en) * 1998-01-22 1999-10-08 Advantest Corp Reference frequency generating device
CN102004441A (en) * 2010-12-15 2011-04-06 许继集团有限公司 Adaptive crystal oscillator frequency timekeeping method
CN103427793A (en) * 2013-07-29 2013-12-04 国电南瑞科技股份有限公司 Time hacking and punctuality system and method based on temperature compensation
CN103970008A (en) * 2014-05-06 2014-08-06 积成电子股份有限公司 Timekeeping method based on crystal oscillator error compensation
CN104536285A (en) * 2014-11-25 2015-04-22 许继电气股份有限公司 High-efficiency crystal oscillator frequency timekeeping method
CN106877963A (en) * 2016-12-29 2017-06-20 河北远东通信系统工程有限公司 A kind of synchronised clock with learning functionality keeps system and method
CN107026702A (en) * 2017-04-20 2017-08-08 中国南方电网有限责任公司电网技术研究中心 The punctual method and apparatus of high accuracy

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周水斌 等: "时间同步装置的高稳定性输出设计方法", 《电力系统自动化》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597297A (en) * 2018-12-11 2019-04-09 烟台持久钟表有限公司 A kind of crystal oscillator compensation method and device
CN110908272A (en) * 2019-12-20 2020-03-24 昆明理工大学 1pps pulse signal timing method
CN110908272B (en) * 2019-12-20 2021-04-13 昆明理工大学 1pps pulse signal timing method
CN111817714A (en) * 2020-07-14 2020-10-23 积成电子股份有限公司 Electronic equipment time synchronization and timekeeping method based on crystal oscillator inter-second pulse synchronization technology
CN111817714B (en) * 2020-07-14 2024-01-26 积成电子股份有限公司 Electronic equipment time synchronization and time keeping method based on crystal oscillator second pulse synchronization technology
CN113419286A (en) * 2021-06-21 2021-09-21 中国科学院地质与地球物理研究所 High-precision frequency synthesis compensation method for complementation of satellite and constant-temperature crystal oscillator
CN113419286B (en) * 2021-06-21 2022-01-14 中国科学院地质与地球物理研究所 High-precision frequency synthesis compensation method for complementation of satellite and constant-temperature crystal oscillator
CN116938380A (en) * 2023-09-18 2023-10-24 南方电网数字电网研究院有限公司 Time scale management method, device, computer equipment and time scale manager
CN116938380B (en) * 2023-09-18 2024-01-23 南方电网数字电网研究院有限公司 Time scale management method, device, computer equipment and time scale manager

Also Published As

Publication number Publication date
CN108803300B (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN108803300A (en) The punctual method of time synchronism apparatus based on constant-temperature crystal oscillator and time synchronism apparatus
CN105549379B (en) A kind of synchronous measuring apparatus triggered based on split-second precision benchmark and method
KR101340752B1 (en) High-precision synchronisation method and system
CN102064827B (en) Rubidium oscillator-based standard frequency and time adjusting method
CN109428598B (en) Calibration method and system for data sampling
CN202102264U (en) Rubidium clock taming system
CN202256483U (en) GPS (Global Positioning System) second-based real-time self-adaptive evenly-spaced sampling synchronous data acquisition device
CN103969500B (en) Intelligent grid analog acquisition device, method and system
CN101419483B (en) Clock generator based on phase-locked loop and clock generating method
CN106527113A (en) High-precision clock online frequency calibration and timing method based on GPS
CN103970008B (en) Timekeeping method based on crystal oscillator error compensation
CN109283864A (en) A kind of time synchronization of data sampling, calibration method and system
CN103713552A (en) Self-adaptive dynamic synchronous sampling control device and method based on pulse per second
CN103454905A (en) Method for synchronizing time
CN111064536A (en) Power distribution network monitoring device and method based on clock synchronization
CN202353572U (en) Institute of Electrical and Electronic Engineers (IEEE) 1588 time synchronization system for electronic type mutual inductor merging units
TW200524286A (en) DDS circuit with arbitrary frequency control clock
CN106383438B (en) One kind taming and dociling clock method based on sliding window time extension high-precision
CN103457716A (en) Optimizing time synchronizing device for multi-channel clock sources
CN108599758B (en) Algorithm and device for generating high-precision trigger pulse based on GPS
CN110928177B (en) Clock synchronization system and method
EP1612942A1 (en) A fractional divider system and method
CN109120260A (en) A kind of clock module high-precision phase demodulation system and method based on ASIC-TDC
CN100518045C (en) Method for realizing clock interactive synchronization
CN114594669B (en) Accurate synchronization method for transient wave recording type fault indicator

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