CN106788846A - A kind of multi-source logic switch time service module and changing method based on ARM - Google Patents
A kind of multi-source logic switch time service module and changing method based on ARM Download PDFInfo
- Publication number
- CN106788846A CN106788846A CN201611228286.4A CN201611228286A CN106788846A CN 106788846 A CN106788846 A CN 106788846A CN 201611228286 A CN201611228286 A CN 201611228286A CN 106788846 A CN106788846 A CN 106788846A
- Authority
- CN
- China
- Prior art keywords
- source
- independent
- association
- time
- clock
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/0016—Arrangements for synchronising receiver with transmitter correction of synchronization errors
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Electric Clocks (AREA)
Abstract
The present invention relates to a kind of multi-source logic switch time service module based on ARM and changing method, including MCU, PPS punctual module, selection circuit 1, selection circuit 2, changing method is, the priority of source and local clock when first determining whether independent, source and clock of locally keeping time carry out clock correction calculating, clock correction when will be each independent<5us, using it is independent when source, if clock correction>5us, then source is unavailable when this is independent;According to it is each independent when source is available and disabled ratio and it is each independent when source priority judge precision highest independence when source, source during as output, judge whether source during using association, source and local clock carry out clock correction calculating during by association, if clock correction < 5us, source when source is as output when then using association, if source is unavailable during association, source when source is as output when using local.Have the technical effect that and monitor multi-channel Time source simultaneously, suitable time source can be automatically selected when currently used time source precision is reduced, so as to improve whole aircraft reliability, time service precision.
Description
Technical field
The present invention relates to a kind of time service module, more particularly to a kind of multi-source logic switch time service module based on ARM and cut
Change method.
Background technology
Time service is exactly proof time, can be unified system time, reaches system harmonious.It is military affairs, electric power, logical
The industries such as letter, traffic, radio and television, finance, are required to accurate time synchronized.In such as dispatching of power netwoks, if during each point
Between there is error, it will cause regulation inaccurate, directly burn machine;During heavy construction such as Hangzhou Wan grand bridge are built, each measurement point
The standard time provided using time dissemination system is measured, and just can guarantee that each point uses unified time, if certain point deviation reaches
The error that bridge floor moves towards several meters will be caused within 0.01 second, there is unthinkable loss.It is also militarily in this way, such as in CEC
In operation, there is difference in the timing in itself of forward observation radar and guided missile, and the error that also will make guided missile has hundreds of meters leads to not
Capture target.For network-centric warfare, accurate universal standard time is to coordinate each long distance several hundred kilometers platform operation
The only resource, be also the foundation stone of Hub, time dissemination system will all play huge effect in military civil area.
In conventional time service equipment, instant equipment has many time sources to be input into, but equipment always works at user's setting
Under pattern, it is necessary to according to it is current when source precision change, manually change when source.Can not when currently used time source precision is reduced
Adjustment in time, causes external time service precision reduction, or even invalid.
The content of the invention
In view of the problem that prior art is present, the present invention provide a kind of multi-source logic switch time service module based on ARM and
Changing method, concrete technical scheme is, a kind of multi-source logic switch time service module based on ARM, including the punctual mould of MCU, PPS
Block, selection circuit 1, selection circuit 2, it is characterised in that:The punctual modules of PPS are connected with MCU, MCU connections selection circuit 1, choosing
Circuit 2 is selected, selection circuit 1 is connected with selection circuit 2, and selection circuit 2 is connected with external equipment, MCU portion's units, outer respectively inwards
Portion's equipment transmission time information, MCU receives BD receivers, GPS, independent B yards, B yards of information input of association respectively;
The punctual modules of PPS are used to provide high accuracy PPS to local clock, and MCU receives No. 2 receivers and 2 road B yards of time information datas
And PPS, analysis and the clock correction of local clock, according to certain logic, when selecting 1 optimal tunnel source or it is local when source as base
Accurate externally output, and the temporal information that source when this carries is sent to external equipment and internal element.
Changing method is comprised the following steps, and one), when first determining whether independent source and local clock priority, by each independence
Shi Yuan and clock of locally keeping time carry out clock correction calculating, clock correction<5us, using it is independent when source, if clock correction>5us, then when this is independent
Source is unavailable;Two), according to it is each independent when the available and disabled ratio in source and it is each independent when source priority judge precision
Source during highest independence, source during as output, if when independent the quantity available in source and unavailable quantitative proportion less than etc.
In 2:1, then it is assumed that source is all unavailable when independent;Three), judge whether using association when source, by association when source and local clock enter
Row clock correction is calculated, if clock correction < 5us, source when source is as output during using association, if source is unavailable during association, uses
Source when source is as output when local.
The solution have the advantages that, multi-channel Time source can be simultaneously monitored, when currently used time source precision is reduced
Suitable time source can automatically be selected according to special algorithm, so as to improve whole aircraft reliability, time service precision.
Brief description of the drawings
Fig. 1 is functional block diagram of the invention;
Fig. 2 is that embodiments of the invention judge the figure of output situation one;
Fig. 3 is that embodiments of the invention judge the figure of output situation two;
Fig. 4 is that embodiments of the invention judge the figure of output situation three;
Fig. 5 is that embodiments of the invention judge the figure of output situation four;
Fig. 6 is that embodiments of the invention judge the figure of output situation five;
Fig. 7 is that embodiments of the invention judge the figure of output situation six;
The variation diagram of equipment output time quality and precision against the time in the case of source when Fig. 8 is single;
The variation diagram of equipment output time quality and precision against the time in the case of source when Fig. 9 manual switchings are more;
Figure 10 is the variation diagram of equipment output time quality and precision against the time in the case of source when automatically switching many of the invention.
Specific embodiment
Further illustrated below according to embodiment and accompanying drawing.
As shown in figure 1, a kind of multi-source logic switch time service module based on ARM, including the punctual module of MCU, PPS, selection
Circuit 1, selection circuit 2, it is characterised in that:The punctual modules of PPS are connected with MCU, MCU connection selection circuits 1, selection circuit
2, selection circuit 1 is connected with selection circuit 2, and selection circuit 2 is connected with external equipment, MCU portion's unit, external equipment respectively inwards
Transmission time information, MCU receives BD receivers, GPS, independent B yards, B yards of information input of association respectively;PPS keeps time
Module is used to provide high accuracy PPS to local clock, and MCU receives No. 2 receivers and 2 road B yards of time information datas and PPS,
Analysis and the clock correction of local clock, according to certain logic, when selecting 1 optimal tunnel source or it is local when source it is external as benchmark
Output, and the temporal information that source when this carries is sent to external equipment and internal element.
In this module to it is each when source logic switch relation it is as follows, BD receivers, GPS, it is independent B yards, association B yards
External time, source can be divided into independent time source and source when associating, wherein being independent time source, B yards of association is correlation time source.
When each in source, its priority relationship is:BD > GPS >It is independent B yards>B yards of association.
Changing method is comprised the following steps,
One), when first determining whether independent source and local clock priority, source and locally punctual clock carries out clock correction when will be each independent
Calculate, clock correction<5us, using it is independent when source, if clock correction>5us, then source is unavailable when this is independent;
Two), according to it is each independent when the available and disabled ratio in source and it is each independent when source priority judge precision highest
It is independent when source, source during as output, if the quantity available in source and unavailable quantitative proportion are less than or equal to 2 when independent:
1, then it is assumed that source is all unavailable when independent;
Three), judge whether using association when source, by association when source and local clock carry out clock correction calculating, if clock correction < 5us,
Source when source is as output when then using association, if source is unavailable during association, source when source is as output when using local.
Embodiment 1,
As shown in Fig. 2,3,4,5,6,7, the priority of source and local clock when first determining whether independent, in equipment running process,
When 4 kinds of real-time monitoring is outside source respectively with it is local when source clock correction, source and local punctual module time when now MCU calculates each
Clock correction, judgement be selection it is independent when source or association when source, according to setting logic, MCU control selections circuit 1 output screening after
Pps, control circuit 2 using the pps after screening as final externally output pps.If according to the logic of setting, without available
Outside when source, then MCU control selections circuit 1 do not export pps externally, control selections circuit 2 selects locally to keep time the sheet of module
Ground PPS is used as the final PPS for externally exporting.
Under different situations, the when source for being selected as output is as follows:
Situation one:Source is unavailable during BD, GPS, it is independent B yards, association B yard when source can use, now equipment choice GPS be it is current when
Source;
Situation two:Source is unavailable during GPS, and source is available when BD, B yard of independent B yards, association, now equipment choice BD as it is current when
Source;
Situation three:Source is unavailable when BD, GPS, it is independent B yards, association B yard when source can use, now equipment choice associate B yard conduct ought
Source when preceding;
Situation four:BD, it is independent B yards when source it is unavailable, GPS, association B yard when source can use, now equipment choice associate B yard conduct ought
Source when preceding;
Situation five:BD, GPS, association B yard when source it is unavailable, during GPS source can use, now equipment enter keep time the stage, using local
Clock as when source;
Situation six:4 kinds it is outside when source it is unavailable, now equipment enters the punctual stage, using local clock as when source;
Because the locking of module crystal oscillator of keeping time and frequency convergence needs use accurate PPS inputs, therefore in start during electricity,
MCU receptions BD, GPS, independent B yards and the time information data and temporal quality for associating B yards, when judging each in source time information
Time service precision, source PPS when selecting time service precision highest all the way by control selections circuit 1 outputs it to punctual module and uses
Restrained in the frequency of crystal oscillator;After its convergence, time service module is in punctual lock-out state, i.e. the now pps outputs of time service module
Extraneous input is not relied on.
MCU it is determined that final externally output when source after, the temporal information and temporal quality in source when extracting this, established practice of packing
Fix formula, is sent respectively to external device and internal element plate.
Embodiment 2
As shown in Figure 8,9, 10, the precision of source switching and temporal quality contrast, temporal quality numerical value when being several in time service equipment
Lower, time precision is higher, when temporal quality is 0, time precision highest, and when temporal quality is 15, time precision is minimum, this
When the temporal information that exports it is unavailable.
1st, the change of equipment output time quality and precision against the time in the case of source when single
In start time, when source temporal quality it is very high, but after 5h, temporal quality starts to reduce, finally at 19 hours
Afterwards, temporal quality reaches 15, final unavailable.Source during due to being single, thus equipment output time quality and when source time
Mass change is consistent;
2nd, the change of equipment output time quality and precision against the time in the case of source when manual switching is more
In start time, certain a period of time source time is of high quality, and after 5h, temporal quality starts to reduce, finally at 19 hours
Afterwards, temporal quality reaches 15.When being now manually switched to another on source, externally the temporal quality of output is restored to best shape
State;
The change of equipment output time quality and precision against the time in the case of source when the 3, automatically switching many
In automatic mode, equipment is monitored to signal source quality, can using real-time selection signal quality signal source high as
Currently used signal source.Therefore when when equipment choice is exported, source signal is unsatisfactory for the standard of setting, selected according to setting logic
Source externally exports when selecting all the way.
In the case of according to three kinds, the contrast of external output time quality and precision, it can be seen that multi-source logic switch time service
Module can greatly improve the external output time quality of equipment and precision.
Claims (2)
1. a kind of multi-source logic switch time service module based on ARM, including the punctual module of MCU, PPS, selection circuit 1, selection are electric
Road 2, it is characterised in that:The punctual modules of PPS be connecteds with MCU, and MCU connects selection circuit 1, selection circuit 2, selection circuit 1 and
Selection circuit 2 is connected, and selection circuit 2 is connected with external equipment, MCU portion's unit, external equipment transmission time information respectively inwards,
MCU receives BD receivers, GPS, independent B yards, B yards of information input of association respectively;The punctual modules of PPS are used for local
Clock provides high accuracy PPS, and MCU receives No. 2 receivers and 2 road B yard of time information datas and PPS, analyzes and local clock
Clock correction, according to certain logic, when selecting 1 optimal tunnel source or it is local when source externally exported as benchmark, and during by this
The temporal information that source carries is sent to external equipment and internal element.
2., using a kind of changing method of the multi-source logic switch time service module based on ARM described in claim 1, its feature exists
In:Changing method is comprised the following steps,
One), when first determining whether independent source and local clock priority, source and locally punctual clock carries out clock correction when will be each independent
Calculate, clock correction<5us, using it is independent when source, if clock correction>5us, then source is unavailable when this is independent;
Two), according to it is each independent when the available and disabled ratio in source and it is each independent when source priority judge precision highest
It is independent when source, source during as output, if the quantity available in source and unavailable quantitative proportion are less than or equal to 2 when independent:
1, then it is assumed that source is all unavailable when independent;
Three), judge whether using association when source, by association when source and local clock carry out clock correction calculating, if clock correction < 5us,
Source when source is as output when then using association, if source is unavailable during association, source when source is as output when using local.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611228286.4A CN106788846B (en) | 2016-12-27 | 2016-12-27 | A kind of multi-source logic switch time service module and switching method based on ARM |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611228286.4A CN106788846B (en) | 2016-12-27 | 2016-12-27 | A kind of multi-source logic switch time service module and switching method based on ARM |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106788846A true CN106788846A (en) | 2017-05-31 |
CN106788846B CN106788846B (en) | 2018-09-18 |
Family
ID=58921825
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611228286.4A Active CN106788846B (en) | 2016-12-27 | 2016-12-27 | A kind of multi-source logic switch time service module and switching method based on ARM |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106788846B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023567A (en) * | 2010-10-21 | 2011-04-20 | 国网电力科学研究院 | High-precision time service method for multi-time-source comprehensive calculation |
CN202008583U (en) * | 2010-12-30 | 2011-10-12 | 安徽工程大学 | Clock source of synchronous phasor measuring device |
CN105301951A (en) * | 2015-09-29 | 2016-02-03 | 国电南瑞科技股份有限公司 | Multi-source decision realization method of time synchronization system based on analytic hierarchy method |
CN105511255A (en) * | 2015-12-02 | 2016-04-20 | 北京七维航测科技股份有限公司 | Lossless switching clock source equipment |
CN206389373U (en) * | 2016-12-27 | 2017-08-08 | 天津七六四通信导航技术有限公司 | A kind of multi-source logic switch time service module based on ARM |
-
2016
- 2016-12-27 CN CN201611228286.4A patent/CN106788846B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023567A (en) * | 2010-10-21 | 2011-04-20 | 国网电力科学研究院 | High-precision time service method for multi-time-source comprehensive calculation |
CN202008583U (en) * | 2010-12-30 | 2011-10-12 | 安徽工程大学 | Clock source of synchronous phasor measuring device |
CN105301951A (en) * | 2015-09-29 | 2016-02-03 | 国电南瑞科技股份有限公司 | Multi-source decision realization method of time synchronization system based on analytic hierarchy method |
CN105511255A (en) * | 2015-12-02 | 2016-04-20 | 北京七维航测科技股份有限公司 | Lossless switching clock source equipment |
CN206389373U (en) * | 2016-12-27 | 2017-08-08 | 天津七六四通信导航技术有限公司 | A kind of multi-source logic switch time service module based on ARM |
Also Published As
Publication number | Publication date |
---|---|
CN106788846B (en) | 2018-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103605023B (en) | A kind of combining unit time response measuring method and measurement apparatus | |
CN108490382B (en) | Remote online verification method and system for high-voltage electric energy meter measuring plate | |
CN102540214B (en) | Smooth satellite selection method for signal source of navigational satellite system | |
CN105676627A (en) | Time keeping system primary and standby main clock seamless switching system and method | |
CN201425704Y (en) | Satellite synchronous main clock device | |
CN103117742B (en) | System tamed by GPS/ Big Dipper dual mode satellite clock crystal oscillator | |
CN102928803B (en) | Electronic transformer checking device based on synchronization pulse output power supply | |
CN108683437A (en) | Taiwan area recognition methods based on bandwidth carrier | |
CN102590784A (en) | Single-phase intelligent energy meter distributed correction method | |
CN206892309U (en) | A kind of high-voltage dc voltage mutual inductor on site check system | |
CN206389373U (en) | A kind of multi-source logic switch time service module based on ARM | |
CN101881938A (en) | Satellite synchronous master clock device | |
CN113465603B (en) | Takang navigation automatic channel selection method | |
CN103913987B (en) | GPS time dissemination systems and its method for obtaining accurate time reference | |
CN110501667B (en) | Test system and ground test method of ultrashort wave orientation instrument | |
CN102541054A (en) | Combination height control method and system for unmanned aerial vehicle | |
CN201425705Y (en) | Electric power system time synchronizer | |
CN106411295B (en) | A kind of IRIG-B keeps time clock drift compensation method and circuit | |
CN110097275A (en) | A kind of family change relational checking method and device based on platform area power failure data | |
CN201247324Y (en) | Detection device for analyzing whole characteristic of cable to be measured in long distance | |
CN106788846A (en) | A kind of multi-source logic switch time service module and changing method based on ARM | |
CN106597346A (en) | Electronic current transformer laser energy supply self-diagnosis method and system thereof | |
Li et al. | Intelligent traffic light control system based on real time traffic flows | |
CN202041578U (en) | Stray current sensor with automatic calibration function | |
CN202083956U (en) | Combined height control system for unmanned aerial vehicle |
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 |