CN105301947A - Timing method and timing device - Google Patents

Timing method and timing device Download PDF

Info

Publication number
CN105301947A
CN105301947A CN201510789766.7A CN201510789766A CN105301947A CN 105301947 A CN105301947 A CN 105301947A CN 201510789766 A CN201510789766 A CN 201510789766A CN 105301947 A CN105301947 A CN 105301947A
Authority
CN
China
Prior art keywords
time
primary sinusoid
pulses
square wave
wave
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
CN201510789766.7A
Other languages
Chinese (zh)
Other versions
CN105301947B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201510789766.7A priority Critical patent/CN105301947B/en
Publication of CN105301947A publication Critical patent/CN105301947A/en
Application granted granted Critical
Publication of CN105301947B publication Critical patent/CN105301947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04FTIME-INTERVAL MEASURING
    • G04F10/00Apparatus for measuring unknown time intervals by electric means
    • G04F10/04Apparatus for measuring unknown time intervals by electric means by counting pulses or half-cycles of an ac

Abstract

The invention provides a timing method and a timing device. By converting sine waves into square waves, the number of pulses of the square waves is recorded to achieve timing. The timing scheme is easy to realize, low in manufacturing cost and safe to use; only when a time obtaining request is received, can current time be calculated, namely, the current time is calculated and output on the basis of the request, and loads of data processing can be reduced; under the circumstance of electromagnetic interference, by calibrating frequency of the first transmitted sine wave, the influence on timing from the electromagnetic interference can be eliminated automatically, time is calibrated automatically, time synchronization with the earth is not needed, and the using cost of the timing device is reduced.

Description

A kind of clocking method and time set
Technical field
The present invention relates to communication technical field, be specifically related to a kind of clocking method and time set.
Background technology
The electromagnetic wave that atomic clock sends when being and utilizing Atomic absorption or release energy carrys out timing, because this electromagnetic wave is highly stable, therefore, is widely used in astronomy, navigation, space travel lamp technical field.At present, the timing in cosmic space is the atomic decay computing time utilizing radioactive element cesium element mostly.Atomic clock timing is very accurate, and its precision can reach 1 second/1,000,000 years.
But, use atomic clock to carry out cosmic space timing and there is following problem:
1, the manufacturing cost of atom time set and cost higher, and also there is hidden danger in the security of radioelement.
2 cause timing abnormal once break down, atom time set cannot carry out time calibration, can only depend on and carry out time calibration with ground, concrete, atom time set is communicated by electromagnetic wave with the earth, and the distance be between the atom time set of the outer space and the earth, therefore electromagnetic emissive power is large, and communications cost is larger.
Therefore, need a kind of clocking scheme badly, to solve the problems of the technologies described above.
Summary of the invention
The present invention is directed to above shortcomings in prior art, a kind of clocking method and time set are provided, in order to solve the problem that cosmic space time set manufacturing cost is high, there is potential safety hazard, and cannot the problem of self calibration time when timing is abnormal.
The present invention, for solving the problems of the technologies described above, adopts following technical scheme:
The invention provides a kind of clocking method, comprising:
Launch the primary sinusoid according to the cycle T preset, the primary sinusoid is converted to square wave, and records the number of pulses of square wave;
Whether the frequency detecting the primary sinusoid of transmission is normal, if abnormal, then calibrates the frequency of the primary sinusoid of transmission, and the number of pulses i of abnormal square wave and frequency f in recording frequency exception procedure i;
When obtaining request when received, according to number of pulses i and the frequency f of described abnormal square wave i, the current number of pulses n of square wave and the initialization time t of the default primary sinusoid 0, calculate and return current time.
The present invention also provides a kind of time set, comprising: sinusoidal wave generating unit, converting unit, processing unit, computing unit, receiving element, transmitting element;
Sinusoidal wave generating unit is used for, and launches the primary sinusoid according to the cycle T preset; And, launch the second sine wave;
Converting unit is used for, and the primary sinusoid is converted to square wave;
Processing unit is used for, the number of pulses of record square wave; And whether the frequency detecting the primary sinusoid of transmission is normal, when the frequency anomaly of the primary sinusoid transmitted, the frequency of the primary sinusoid of calibration transmission, and the number of pulses i of abnormal square wave and frequency f in recording frequency exception procedure i;
Computing unit is used for, when receiving element receives time acquisition request, according to number of pulses i and the frequency f of the abnormal square wave of described processing unit record i, the current number of pulses n of square wave and the initialization time t of the default primary sinusoid 0, calculate current time, and the current time indicating transmitting element to return to calculate.
The present invention is by being converted to square wave by sine wave, and record square-wave pulse quantity realizes timing, and this clocking scheme realizes simple, low cost of manufacture, use safety; When the time that receives obtains request, just calculate current time, namely calculate based on request and export current time, the load of data processing can be reduced; When there is electromagnetic interference (EMI), by the frequency of the primary sinusoid of calibration transmission, the impact of electromagnetic interference (EMI) on timing can be eliminated voluntarily, and the self calibration time, without the need to the Geo-synchronous time, reduce the use cost of time set.
Accompanying drawing explanation
The structural representation of the time set that Fig. 1 provides for the embodiment of the present invention;
The timing procedure schematic diagram that Fig. 2 provides for the embodiment of the present invention;
The schematic diagram of the second sine wave that Fig. 3 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the present invention, carry out clear, complete description to the technical scheme in the present invention, obviously, described embodiment is a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
For the problems referred to above that prior art exists, embodiments provide a kind of clocking scheme, universe time timing field can be applied to, by sine wave is converted to square wave, the quantity of record square-wave pulse realizes timing, thus solves the problem that cosmic space time set manufacturing cost is high, there is potential safety hazard, when there is electromagnetic interference (EMI), the impact of electromagnetic interference (EMI) on timing can be eliminated voluntarily, realize time self calibration.
Technical scheme of the present invention is described in detail below in conjunction with accompanying drawing.As shown in Figure 1, time set comprises: sinusoidal wave generating unit 11, converting unit 12, processing unit 13, computing unit 14, receiving element 15, transmitting element 16 and power supply unit 17.Be preset with the cycle T of the primary sinusoid in sinusoidal wave generating unit 11, can launch the primary sinusoid according to described cycle T, sinusoidal wave generating unit 11 can select sine-wave generator to realize, and adopts high-frequency current pulse to produce electrical analog signals.Converting unit 12, for sine wave being converted to square wave (digital signal), can select Schmidt trigger; Power supply unit 17, for powering for sinusoidal wave generating unit 11, converting unit 12, processing unit 13 and computing unit 14, can select solar cell.Be preset with timing initial time in processing unit 13, timing initial time is the initialization time t of the primary sinusoid 0.
Describe timing procedure of the present invention in detail below in conjunction with Fig. 2, as shown in Figure 2, described flow process comprises the following steps:
Step 201, launches the primary sinusoid according to the cycle T preset.
Concrete, sinusoidal wave generating unit 11 launches the primary sinusoid according to the cycle T preset.In order to improve accuracy of timekeeping, preferably, the cycle T of the primary sinusoid can be Millisecond.Frequency due to the primary sinusoid is about hundreds of Hz, and much smaller than current satellite-signal wave frequency (usual unit is GHz), the wavelength difference of two kinds of ripples is than very large, and therefore, current satellite-signal ripple is difficult to produce interference to time set of the present invention.
Step 202, is converted to square wave by the primary sinusoid, and records the number of pulses of square wave.
Concrete, the primary sinusoid (simulating signal) is converted to square wave (digital signal) by converting unit 12, and the square wave period after conversion is identical with the cycle T of the described primary sinusoid.Processing unit 13 can utilize the first counter to realize the step-by-step counting of square wave, namely according to the number of pulses n of digital pulse signal record square wave, and the high level signal of such as recording pulse signal or low level signal.Such as, the voltage range of the primary sinusoid that sinusoidal wave generating unit 11 is launched is 0-1V (namely crest and voltage corresponding to trough are 1V), after converting unit 12 is changed, the high level pulse signal of the square wave generated is 1V, low level pulse signal is-1V, the quantity of converting unit 12 record high level pulse signal, or, the only quantity of record low level pulse signal.
Principle and the implementation of counter belong to prior art, do not repeat them here.
Step 203, whether the frequency detecting the primary sinusoid of transmission is normal, if abnormal, then performs step 204, if normally, then continues the frequency detecting the primary sinusoid.
Concrete, because time set of the present invention is mainly used in timing field, universe, in space, electromagnetic interference (EMI) phenomenon is very general, if the primary sinusoid that sinusoidal wave generating unit 11 is launched is subject to electromagnetic interference in transmitting procedure, its frequency, amplitude all can change.Processing unit 13 judges that whether the frequency of the primary sinusoid transmitted is equal with the frequency (i.e. 1/T) preset, if not etc., think frequency anomaly, illustrate that the primary sinusoid is subject to the impact of electromagnetic interference (EMI) in transmitting procedure, if now do not intervened, there is deviation in the time that the primary sinusoid being then subject to electromagnetic interference (EMI) based on this calculates, therefore needs the frequency (namely performing step 204) of calibrating the primary sinusoid.If the frequency of the primary sinusoid of transmission is equal with the frequency (i.e. 1/T) preset, illustrate that the primary sinusoid is not subject to electromagnetic interference (EMI) in transmitting procedure, the number of pulses of the square wave of current record is normal, and converting unit 12 can not the number of pulses of recording exceptional square wave.
Step 204, the frequency of the primary sinusoid of calibration transmission, and the number of pulses i of abnormal square wave and frequency f in recording frequency exception procedure i.
Concrete, when converting unit 12 judges the frequency anomaly of the primary sinusoid transmitted, the frequency of the primary sinusoid of calibration transmission, in the process, triggers the number of pulses i of the abnormal square wave of the second counter records, and records the frequency f of the square wave of each exception i.
It should be noted that, the value of the first counter and the second counter such as, by rewritable storage element, micro-SD memory card, and store, even if time set power-off, data also can not be lost.
The specific implementation of the frequency of the primary sinusoid of calibration transmission is follow-up to be described in detail again.
Step 205, when obtaining request when received, calculates and returns current time.
Specifically, if user is for obtaining current time, then obtain request to time set transmitting time, when receiving element 15 receives time acquisition request, computing unit 14 is according to the frequency f of described abnormal square wave iand second counter records the number of pulses i of abnormal square wave, the number of pulses n of the current square wave of the first counter records and the initialization time t of the default primary sinusoid 0, calculate current time, and return the time calculated to user.
Concrete, computing unit 14 can according to the number of pulses i of abnormal square wave and frequency f icalculate alignment time t ', and according to the number of pulses i of alignment time t ', abnormal square wave and the initialization time t of the default primary sinusoid 0and cycle T, calculate current time t.
Wherein, alignment time t ' can calculate according to following formula (1):
t ′ = 1 f 1 + 1 f 2 + ... ... + 1 f i ; - - - ( 1 )
Current time t can calculate according to following formula (2):
t=t 0+t’+T*(n-i)(2)
It should be noted that, at the initialization time t of the primary sinusoid 0to the time period that the time that receives obtains between request, if the transmission of the primary sinusoid is not subject to electromagnetic interference (EMI) (frequency of the primary sinusoid namely transmitted is normal), then, there is not the frequency f of abnormal square wave in the number of pulses i=0 of the abnormal square wave of the second counter records i, also there is not alignment time t ', therefore, formula (2) can be deformed into: t=t 0+ T*n.
Can be found out by above-mentioned steps 201-205, by sine wave is converted to square wave, record square-wave pulse quantity realizes timing, this clocking scheme realizes simple, relative to existing atomic clock clocking scheme low cost of manufacture, use safety, the count requirement in cosmic space state of weightlessness can be met.And in clocking scheme of the present invention, time set, when receiving time acquisition request, just calculates current time, that is calculates and output time based on request, instead of real-time computing time, can reduce computing unit data process load.In addition, once find to there is electromagnetic interference (EMI), by the frequency of the primary sinusoid of calibration transmission, the impact of electromagnetic interference (EMI) on timing can be eliminated voluntarily, and the self calibration time, without the need to the Geo-synchronous time, reduce the use cost of time set.
It should be noted that, the number of pulses i of the number of pulses n of the first counter records square wave and the abnormal square wave of the second counter records carries out respectively, the two is independent of each other mutually, as long as the primary sinusoid is converted to square wave, first counter just counts the number of pulses of square wave, and no matter whether this square wave is normal.Once find that square wave is abnormal, just trigger the second counter and the number of pulses of abnormal square wave is counted.That is, if there is electromagnetic interference (EMI), the number of pulses n of the square wave of the first counter records comprises the number of pulses i of abnormal square wave.Therefore, without influencing each other between step 202 and step 203, can perform simultaneously.
Below in conjunction with Fig. 3, describe the calibration process of the frequency of the primary sinusoid of transmission in detail.The process of the frequency of the primary sinusoid of calibration transmission is as follows:
Step 301, determines to disturb electromagnetic phase place and cycle.
Concrete, the phase place of the primary sinusoid that processing unit 13 can be launched according to the phase place of the primary sinusoid of transmission (that namely disturbs electromagnetic wave and the primary sinusoid superposes ripple) and cycle and sinusoidal wave generating unit 11 and cycle, determine and disturb electromagnetic phase place and cycle.
Step 302, launches second sinusoidal wave, with make the second sinusoidal wave primary sinusoid with transmitting to superpose wave frequency normal.
Concrete, as shown in Figure 3, interference electromagnetic wave can being offset by launching the second sine wave that is identical with described interference electromagnetic wave cycle, phase 180 °, superposing with what make the second sinusoidal wave primary sinusoid with transmitting the frequency 1/T that wave frequency equals the primary sinusoid.
It should be noted that, in step 203, detect the frequency of the primary sinusoid of transmission normal after, the wave height of the primary sinusoid of transmission can also be detected further, if the wave height of the primary sinusoid of transmission is unequal with the wave height of the primary sinusoid preset, also think that the primary sinusoid of transmission is abnormal, be subject to electromagnetic interference (EMI), and disturb electromagnetic frequency identical with the frequency 1/T of the primary sinusoid, wave height is different from the wave height of the primary sinusoid, in this case, first counter possibility miscount, in order to ensure accuracy of timekeeping, as long as one of them frequency with the primary sinusoid preset of the frequency of the primary sinusoid of transmission or wave height or wave height unequal, just perform step 204.
Accordingly, in step 301, except determining to disturb electromagnetic phase place and except the cycle, also will determine to disturb electromagnetic wave height, in step 302, the second sinusoidal wave, phase 180 ° identical with wave height with described interference electromagnetic wave cycle.
Can be found out by step 301-302, electromagnetic wave is disturbed by launching the second sinusoidal wave counteracting, thus eliminate universe magnetic storm to the impact of time set, time set, in timing course, can detect electromagnetic interference (EMI), eliminate this electromagnetic interference (EMI) voluntarily, and the self calibration time, intervene can realize time calibration without the need to the external world, dependence is little, ensures the accuracy of timing, save the communication overhead with the earth, reduce use cost.
Power supply unit 17 is solar cell, if cause its electricity to exhaust because environmental factor makes solar cell fail in time charging, this time set will power-off, cannot continue timing.In this case, once power supply unit 17 restores electricity, time set by calibrating current time with the Geo-synchronous time, and can continue timing.The implementation of the timing procedure under power-off scene has two kinds, describes in detail respectively below.
The timing procedure of mode one can comprise the following steps:
Step 401, obtains and detects the power supply parameter of power supply unit, if described power supply parameter is abnormal, is then reset by the number of pulses i of the number of pulses n of current square wave and abnormal square wave, and stops launching the primary sinusoid.
Concrete, processing unit 13 cycle obtains and detects the power supply parameter of power supply unit 17, and described power supply parameter can be voltage.To obtain and the cycle detecting power supply parameter can be set to identical with the transmitting cycle of the primary sinusoid.If when processing unit 13 detects that the output voltage of power supply unit 17 is less than default alarm voltage, just think that power supply parameter is abnormal, power supply unit 17 electricity shortage is described, may be that solar cell can not charge in time.Alarm voltage sets according to the model of solar cell, once the output voltage of power supply unit 17 is lower than alarm voltage, then sinusoidal wave generating unit 11 just cannot launch the normal primary sinusoid.In this case, if continuation timing, the primary sinusoid of launching also is difficult to ensure that its cycle is identical with the cycle T preset, therefore, in order to avoid carrying out unnecessary calculating and process, sinusoidal wave generating unit 11 can be indicated to stop launching the primary sinusoid, further, can also by the first counter and the second counter O reset.
Step 402, when power supply parameter is normal, with the Geo-synchronous time, obtains t lock in time 2, launch the primary sinusoid according to the cycle T preset.
Concrete, once enhancement of environment, power supply unit 17 can charge, accordingly, the power supply parameter of power supply unit 17 just can reach arm's length standard, now, processing unit 13 can initiate time synchronized request to the opertaing device of the earth, thus with the Geo-synchronous time, obtain current time t 2.Processing unit 13 is synchronized to current time t 2after, indicate sinusoidal wave generating unit 11 to launch the primary sinusoid according to the cycle T preset, thus restart timing.Accordingly, the primary sinusoid is converted to square wave by converting unit 12, and passes through the number of pulses (now the first counter counts from 0) of the first counter records square wave.In the process, whether the frequency that processing unit 13 detects the primary sinusoid of transmission is abnormal, by the number of pulses of the abnormal square wave of the second counter records, and the frequency of the primary sinusoid of calibration transmission.Specific implementation is identical with the specific implementation of step 201-204, does not repeat them here.
Step 403, when obtaining request when received, by t lock in time 2as the initialization time of the primary sinusoid, calculate current time.
The implementation procedure of this step is identical with step 205, and difference is: the initialization time of the primary sinusoid is t lock in time 2.
At the initialization time t of the primary sinusoid 2to the time period that the time that receives obtains between request, if the transmission of the primary sinusoid is not subject to electromagnetic interference (EMI) (frequency of the primary sinusoid namely transmitted is normal), then current time t=t 2+ T*n.
At the initialization time t of the primary sinusoid 2to the time period that the time that receives obtains between request, if the transmission of the primary sinusoid is subject to electromagnetic interference (EMI) (frequency anomaly of the primary sinusoid namely transmitted), then current time t=t 2+ t '+T* (n-i), wherein, the alignment time t ′ = 1 f 1 + 1 f 2 + ... ... + 1 f i .
The timing procedure of mode two can comprise the following steps:
Step 501, obtains and detects the power supply parameter of power supply unit, if described power supply parameter is abnormal, then calculates current time t 1, and record current square-wave pulse quantity n 1.
Concrete, when processing unit 13 detects that the power supply parameter of power supply unit 17 is abnormal, no longer by the first counter and the second counter O reset, but instruction computing unit 14 calculates current time t 1, and by current square-wave pulse quantity n 1be marked.
It should be noted that, if at t 1before, detect the frequency anomaly of the primary sinusoid of transmission, then by current abnormal square-wave pulse quantity i 1be marked.
Step 502, when power supply parameter is normal, with the Geo-synchronous time, obtains t lock in time 2, launch the primary sinusoid according to the cycle T preset, the primary sinusoid is converted to square wave, and at n 1basis on record the number of pulses of square wave.
Concrete, with the Geo-synchronous time, and after restarting timing, the counting of the first counter before power-off (i.e. n 1) basis is continued counting.
Step 503, when obtaining request when received, by t lock in time 2as the initialization time of the primary sinusoid, and will as the number of pulses of current square wave, calculate current time.
Concrete, at the initialization time t of the primary sinusoid 2to the time period that the time that receives obtains between request, if the transmission of the primary sinusoid is not subject to electromagnetic interference (EMI) (frequency of the primary sinusoid namely transmitted is normal), then current time t is according to following formulae discovery: t = t 2 + T * ( n - n 1 - t 2 - t 1 T ) .
At the initialization time t of the primary sinusoid 2to the time period that the time that receives obtains between request, if the transmission of the primary sinusoid is subject to electromagnetic interference (EMI) (frequency anomaly of the primary sinusoid namely transmitted), then current time t is according to following formulae discovery:
t = t 2 + t ′ + T * ( n - n 1 - t 2 - t 1 T - ( i - i 1 ) ) ;
Wherein, the alignment time t ′ = 1 f i 1 + 1 f i 1 + 1 + ... ... + 1 f i .
This shows, mode two is with the difference of mode one, mode one after a loss of power by the first counter and the second counter O reset, and after service restoration, reclocking.Mode two after a loss of power the first counter and the second counter does not reset, but record the value of the first counter and the second counter respectively, after service restoration, the first counter and the original numerical value basis of the second counter continue counting, after power-cut time, continues timing.Mode two compared to mode one, computation process relative complex, but because the first counter and the second counter do not reset, the data before power-off are all saved, and facilitate subsequent query.
Clocking scheme of the present invention can continue timing after service restoration, has the feature of durable.
It should be noted that, judge that whether power supply parameter is abnormal also to be realized by power supply unit 17, concrete, power supply unit 17 cycle self-inspection power supply parameter (i.e. output voltage), if output voltage is less than default alarm voltage, then send a warning message to processing unit 13.In step 401, when processing unit 13 receives the warning information of power supply unit 17 transmission, the number of pulses i of the number of pulses n of current square wave and abnormal square wave is reset, and stop launching the primary sinusoid.In step 501, when processing unit 13 receives the warning information of power supply unit 17 transmission, current time t is calculated 1, and record current square-wave pulse quantity n 1.Judge by power supply unit 17 scheme whether power supply parameter is abnormal, can power supply unit 17 be transferred to complete a part of data processing work, alleviate the data processing pressure of processing unit 13.
Based on identical technical conceive, the embodiment of the present invention also provides a kind of time set, and as shown in Figure 1, this time set can comprise: sinusoidal wave generating unit 11, converting unit 12, processing unit 13, computing unit 14, receiving element 15, transmitting element 16.
Sinusoidal wave generating unit 11 for, launch the primary sinusoid according to the cycle T preset; And, launch the second sine wave.
Converting unit 12 for, the primary sinusoid is converted to square wave.
Processing unit 13 for, record square wave number of pulses; And whether the frequency detecting the primary sinusoid of transmission is normal, when the frequency anomaly of the primary sinusoid transmitted, the frequency of the primary sinusoid of calibration transmission, and the number of pulses i of abnormal square wave and frequency f in recording frequency exception procedure i.
Computing unit 14 for, when receiving element receive the time obtain request time, according to number of pulses i and the frequency f of the abnormal square wave of described processing unit record i, the current number of pulses n of square wave and the initialization time t of the default primary sinusoid 0, calculate current time, and indicate transmitting element 16 to return the current time calculated.
Preferably, computing unit 14 specifically for, according to number of pulses i and the frequency f of abnormal square wave icalculate alignment time t ', and according to the number of pulses i of alignment time t ', abnormal square wave and the initialization time t of the default primary sinusoid 0and cycle T, calculate current time t, t=t 0+ t '+T* (n-i).
Preferably, processing unit 13 specifically for, determine to disturb electromagnetic phase place and cycle, and it is second sinusoidal wave to indicate sinusoidal wave generating unit to launch, with make the second sinusoidal wave primary sinusoid with transmitting to superpose wave frequency normal; Wherein, the described second sinusoidal wave period is identical with the described interference electromagnetic cycle, and the phase place of described second sine wave and the electromagnetic phase of described interference 180 °.
Further, described time set also comprises the power supply unit 17 for powering for computing unit 14, processing unit 13, sinusoidal wave generating unit 11 and converting unit 12.
Processing unit 13 also for, obtain and detect the power supply parameter of power supply unit 17, when described power supply parameter is abnormal, the number of pulses i of the number of pulses n of current square wave and abnormal square wave is reset, and indicate described sinusoidal wave generating unit 11 to stop launching the primary sinusoid; And, when power supply parameter is normal, with the Geo-synchronous time, obtain t lock in time 2, and indicate described sinusoidal wave generating unit 11 to launch the primary sinusoid according to the cycle T preset.
Computing unit 14 also for, when receiving element 15 receive the time obtain request time, t lock in time that processing unit 13 is obtained 2as the initialization time of the primary sinusoid, calculate current time.
Further, described time set also comprises the power supply unit 17 for powering for computing unit 14, processing unit 13, sinusoidal wave generating unit 11 and converting unit 12.
Processing unit 13 also for, obtain and detect the power supply parameter of power supply unit, when described power supply parameter is abnormal, calculating current time t 1, and record current square-wave pulse quantity n 1; And, when power supply parameter is normal, with the Geo-synchronous time, obtain t lock in time 2, indicate described sinusoidal wave generating unit 11 to launch the primary sinusoid according to the cycle T preset, and at n 1basis on record the number of pulses of square wave.
Computing unit 14 also for, when receiving element 15 receive the time obtain request time, t lock in time that processing unit 13 is obtained 2as the initialization time of the primary sinusoid, and will as the number of pulses of current square wave, calculate current time.
Be understandable that, the illustrative embodiments that above embodiment is only used to principle of the present invention is described and adopts, but the present invention is not limited thereto.For those skilled in the art, without departing from the spirit and substance in the present invention, can make various modification and improvement, these modification and improvement are also considered as protection scope of the present invention.

Claims (10)

1. a clocking method, is characterized in that, comprising:
Launch the primary sinusoid according to the cycle T preset, the primary sinusoid is converted to square wave, and records the number of pulses of square wave;
Whether the frequency detecting the primary sinusoid of transmission is normal, if abnormal, then calibrates the frequency of the primary sinusoid of transmission, and the number of pulses i of abnormal square wave and frequency f in recording frequency exception procedure i;
When obtaining request when received, according to number of pulses i and the frequency f of described abnormal square wave i, the current number of pulses n of square wave and the initialization time t of the default primary sinusoid 0, calculate and return current time.
2. the method for claim 1, is characterized in that, the described number of pulses i according to described abnormal square wave and frequency f i, the current number of pulses n of square wave and the initialization time t of the default primary sinusoid 0, calculate current time, specifically comprise:
According to number of pulses i and the frequency f of abnormal square wave icalculate alignment time t ', t ′ = 1 f 1 + 1 f 2 + ... ... + 1 f i ;
According to the number of pulses i of alignment time t ', abnormal square wave and the initialization time t of the default primary sinusoid 0and cycle T, calculate current time t, t=t 0+ t '+T* (n-i).
3. the method for claim 1, is characterized in that, the frequency of the primary sinusoid of described calibration transmission, specifically comprises:
Determine to disturb electromagnetic phase place and cycle;
Launch second sinusoidal wave, with make the second sinusoidal wave primary sinusoid with transmitting to superpose wave frequency normal; Wherein, the described second sinusoidal wave period is identical with the described interference electromagnetic cycle, and the phase place of described second sine wave and the electromagnetic phase of described interference 180 °.
4. the method as described in any one of claim 1-3, is characterized in that, described method also comprises:
Obtain and detect the power supply parameter of power supply unit, if described power supply parameter is abnormal, then the number of pulses i of the number of pulses n of current square wave and abnormal square wave being reset, and stop launching the primary sinusoid;
When power supply parameter is normal, with the Geo-synchronous time, obtain t lock in time 2, launch the primary sinusoid according to the cycle T preset;
When obtaining request when received, by t lock in time 2as the initialization time of the primary sinusoid, calculate current time.
5. the method as described in any one of claim 1-3, is characterized in that, described method also comprises:
Obtain and detect the power supply parameter of power supply unit, if described power supply parameter is abnormal, then calculating current time t 1, and record current square-wave pulse quantity n 1;
When power supply parameter is normal, with the Geo-synchronous time, obtain t lock in time 2, launch the primary sinusoid according to the cycle T preset, the primary sinusoid is converted to square wave, and at n 1basis on record the number of pulses of square wave;
When obtaining request when received, by t lock in time 2as the initialization time of the primary sinusoid, and will as the number of pulses of current square wave, calculate current time.
6. a time set, is characterized in that, comprising: sinusoidal wave generating unit, converting unit, processing unit, computing unit, receiving element, transmitting element;
Sinusoidal wave generating unit is used for, and launches the primary sinusoid according to the cycle T preset; And, launch the second sine wave;
Converting unit is used for, and the primary sinusoid is converted to square wave;
Processing unit is used for, the number of pulses of record square wave; And whether the frequency detecting the primary sinusoid of transmission is normal, when the frequency anomaly of the primary sinusoid transmitted, the frequency of the primary sinusoid of calibration transmission, and the number of pulses i of abnormal square wave and frequency f in recording frequency exception procedure i;
Computing unit is used for, when receiving element receives time acquisition request, according to number of pulses i and the frequency f of the abnormal square wave of described processing unit record i, the current number of pulses n of square wave and the initialization time t of the default primary sinusoid 0, calculate current time, and the current time indicating transmitting element to return to calculate.
7. device as claimed in claim 6, is characterized in that, described computing unit specifically for, according to number of pulses i and the frequency f of abnormal square wave icalculate alignment time t ', and according to the number of pulses i of alignment time t ', abnormal square wave and the initialization time t of the default primary sinusoid 0and cycle T, calculate current time t, t=t 0+ t '+T* (n-i).
8. device as claimed in claim 6, it is characterized in that, described processing unit specifically for, determine to disturb electromagnetic phase place and cycle, and it is second sinusoidal wave to indicate sinusoidal wave generating unit to launch, with make the second sinusoidal wave primary sinusoid with transmitting to superpose wave frequency normal; Wherein, the described second sinusoidal wave period is identical with the described interference electromagnetic cycle, and the phase place of described second sine wave and the electromagnetic phase of described interference 180 °.
9. the device as described in any one of claim 6-8, is characterized in that, also comprises the power supply unit for powering for described computing unit, processing unit, sinusoidal wave generating unit and converting unit;
Described processing unit also for, obtain and detect the power supply parameter of power supply unit, when described power supply parameter is abnormal, the number of pulses i of the number of pulses n of current square wave and abnormal square wave is reset, and indicate described sinusoidal wave generating unit to stop launching the primary sinusoid; And, when power supply parameter is normal, with the Geo-synchronous time, obtain t lock in time 2, and indicate described sinusoidal wave generating unit to launch the primary sinusoid according to the cycle T preset;
Described computing unit also for, when described receiving element receive the time obtain request time, t lock in time that described processing unit is obtained 2as the initialization time of the primary sinusoid, calculate current time.
10. the device as described in any one of claim 6-8, is characterized in that, also comprises the power supply unit for powering for described computing unit, processing unit, sinusoidal wave generating unit and converting unit;
Described processing unit also for, obtain and detect the power supply parameter of power supply unit, when described power supply parameter is abnormal, calculating current time t 1, and record current square-wave pulse quantity n 1; And, when power supply parameter is normal, with the Geo-synchronous time, obtain t lock in time 2, indicate described sinusoidal wave generating unit to launch the primary sinusoid according to the cycle T preset, and at n 1basis on record the number of pulses of square wave;
Described computing unit also for, when described receiving element receive the time obtain request time, t lock in time that described processing unit is obtained 2as the initialization time of the primary sinusoid, and will as the number of pulses of current square wave, calculate current time.
CN201510789766.7A 2015-11-17 2015-11-17 A kind of clocking method and time set Active CN105301947B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510789766.7A CN105301947B (en) 2015-11-17 2015-11-17 A kind of clocking method and time set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510789766.7A CN105301947B (en) 2015-11-17 2015-11-17 A kind of clocking method and time set

Publications (2)

Publication Number Publication Date
CN105301947A true CN105301947A (en) 2016-02-03
CN105301947B CN105301947B (en) 2017-09-26

Family

ID=55199346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510789766.7A Active CN105301947B (en) 2015-11-17 2015-11-17 A kind of clocking method and time set

Country Status (1)

Country Link
CN (1) CN105301947B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111830816A (en) * 2020-06-28 2020-10-27 南京天朗防务科技有限公司 Self-adaptive timing method and device
CN114047683A (en) * 2021-11-15 2022-02-15 星汉时空科技(长沙)有限公司 Time interval measuring method and device based on orthogonal sampling interpolation

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2038301U (en) * 1988-10-21 1989-05-24 钟德浙 State standard time frequency receiver
JPH08170988A (en) * 1994-12-16 1996-07-02 Mitsumi Electric Co Ltd Automatic time correcting circuit
CN1336727A (en) * 2001-07-06 2002-02-20 中国科学院上海冶金研究所 Pulse type counting method
CN1351331A (en) * 2000-10-27 2002-05-29 松下电器产业株式会社 Recording time generating device and method
CN201569873U (en) * 2009-12-10 2010-09-01 西安理工大学 LED digital electronic clock
CN102289194A (en) * 2011-08-19 2011-12-21 深圳和而泰智能控制股份有限公司 Method and device for operating clock
CN103913211A (en) * 2014-04-14 2014-07-09 姜跃炜 Time coefficient calibration method of ultrasonic water meter
CN104969472A (en) * 2011-09-01 2015-10-07 华为技术有限公司 Generation of digital clock for system having RF circuitry

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2038301U (en) * 1988-10-21 1989-05-24 钟德浙 State standard time frequency receiver
JPH08170988A (en) * 1994-12-16 1996-07-02 Mitsumi Electric Co Ltd Automatic time correcting circuit
CN1351331A (en) * 2000-10-27 2002-05-29 松下电器产业株式会社 Recording time generating device and method
CN1336727A (en) * 2001-07-06 2002-02-20 中国科学院上海冶金研究所 Pulse type counting method
CN201569873U (en) * 2009-12-10 2010-09-01 西安理工大学 LED digital electronic clock
CN102289194A (en) * 2011-08-19 2011-12-21 深圳和而泰智能控制股份有限公司 Method and device for operating clock
CN104969472A (en) * 2011-09-01 2015-10-07 华为技术有限公司 Generation of digital clock for system having RF circuitry
CN103913211A (en) * 2014-04-14 2014-07-09 姜跃炜 Time coefficient calibration method of ultrasonic water meter

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111830816A (en) * 2020-06-28 2020-10-27 南京天朗防务科技有限公司 Self-adaptive timing method and device
CN114047683A (en) * 2021-11-15 2022-02-15 星汉时空科技(长沙)有限公司 Time interval measuring method and device based on orthogonal sampling interpolation
CN114047683B (en) * 2021-11-15 2022-05-24 星汉时空科技(长沙)有限公司 Time interval measuring method and device based on orthogonal sampling interpolation

Also Published As

Publication number Publication date
CN105301947B (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN105573106B (en) To the amendment circuit and its method of RTC accuracy of timekeeping in a kind of intelligent electric meter
CN202443082U (en) Merging unit test system with analog input and university
CN204228833U (en) A kind of based on GPS very-long-range nuclear phase detection device
CN203133163U (en) Bidirectional-metering intelligent electric energy meter
CN103389397B (en) Anti-cheating system for photovoltaic power generation
CN104199278A (en) Multi-navigation-system based anti-occlusion high-accuracy synchronous clock system and synchronous method thereof
CN105301947A (en) Timing method and timing device
CN102063070B (en) DSP-based laser pulse code controller
CN105403751A (en) Power grid state monitoring device based on Beidou
CN104316950A (en) Method and device for low-power radiation dose rate detection and wide-range scaling graduation
CN103151835B (en) Sampling synchronization method and device of distributed DTU (Distribution Terminal Unit)
CN103335800A (en) Vibration fault detection method and device for wind turbine
CN206892220U (en) A kind of equipment for monitoring power quality
CN105958510B (en) SOC chip for power grid monitoring and control equipment
CN204964593U (en) Settlement electric quantity collection system of new forms of energy power plant
Luo et al. Design and implementation of dual time synchronization signal for Micro Phasor Measurement Unit (μPMU)
CN103886690A (en) Prepayment multi-rate detection device and use method thereof
CN204575780U (en) A kind of photovoltaic generation electrical quantity acquisition and analysis device
CN109888876B (en) Solar intelligent power supply system and readable storage medium
CN212159931U (en) Direct current electric energy meter based on clock synchronization metering function
CN103869095B (en) For the TDC-GP1 chip method to set up of wind energy turbine set ultrasonic wind speed monitoring
CN104316047A (en) Method for automatically improving time mark precision of sensor data by utilizing GPS (global positioning system)
CN104198814A (en) Digital phase position checking device by using identical clock source for calibrating sampling time
Duan et al. Research of distributed photovoltaic power supply access simultaneous power quality monitoring system
CN204068992U (en) A kind of gps time synchronizer for large power, electrically magnetic transmitter

Legal Events

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