CN106788846B - A kind of multi-source logic switch time service module and switching method based on ARM - Google Patents
A kind of multi-source logic switch time service module and switching method based on ARM Download PDFInfo
- Publication number
- CN106788846B CN106788846B CN201611228286.4A CN201611228286A CN106788846B CN 106788846 B CN106788846 B CN 106788846B CN 201611228286 A CN201611228286 A CN 201611228286A CN 106788846 B CN106788846 B CN 106788846B
- Authority
- CN
- China
- Prior art keywords
- source
- independent
- time
- local
- 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.)
- Active
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 and switching method based on ARM, including the punctual module of MCU, PPS, selection circuit 1, selection circuit 2, switching method is, the priority in source and local clock when first determining whether independent, source and local punctual clock 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 not available ratio and it is each independent when source priority judge that precision is highest independent when source, source when as output, judge whether using source when association, source and local clock carry out clock correction calculating when will be associated with, if clock correction < 5us, source when then using source when being associated with as output, if source is unavailable when association, source when using source when local as output.Multi-channel Time source is had the technical effect that while being monitored, suitable time source can be selected automatically when currently used time source precision reduces, 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 by system time, and system is made to reach harmonious.Military affairs, are led to electric power
The industries such as letter, traffic, radio and television, finance are required to accurate time synchronization.Such as in dispatching of power netwoks, if when each point
Between there is error, it will cause to adjust inaccurate, directly burn machine;During heavy construction such as Hangzhou Wan grand bridge are built, each measurement point
It is measured using the standard time that time dissemination system provides, just can guarantee that each point uses unified time, if some point deviation reaches
It will cause the error that bridge floor moves towards several meters within 0.01 second, there is unthinkable loss.Militarily and in this way, such as in CEC
In operation, there is difference in the timing of forward observation radar and guided missile itself, also guided missile will be made to have hundreds of meters of error to lead 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 and network center station foundation stone, time dissemination system will all play huge effect in military civil field.
In previous time service equipment, instant equipment has more time sources to input, but equipment always work at it is set by user
Under pattern, need according to it is current when source precision variation, manually change when source.It cannot when currently used time source precision reduces
Adjustment in time causes external time service precision to reduce, or even invalid.
Invention content
In view of the problems existing in the prior art, the present invention provide a kind of multi-source logic switch time service module based on ARM and
Switching method, specific technical solution are a kind of multi-source logic switch time service modules 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 connect with MCU, MCU connections selection circuit 1, choosing
Circuit 2 is selected, selection circuit 1 is connect with selection circuit 2, and selection circuit 2 is connect with external equipment, MCU portion's units, outer respectively inwards
Portion's equipment transmission time information, MCU receive BD receivers, GPS receiver, independent B codes, association B code information inputs respectively;
PPS keeps time module for receiving the time information data of No. 2 receivers and 2 road B codes to local clock offer high-precision PPS, MCU
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.
Switching method includes the following steps, one), when first determining whether independent source and local clock priority, by each independence
Shi Yuan and local punctual clock 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 not available ratio in source and it is each independent when source priority judge precision
Source when highest independent, source when as output, if the quantity available in source and unavailable quantitative proportion are less than etc. when independent
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 into
Row clock correction calculates, if clock correction < 5us, source uses if source is unavailable when association when using source when association as output
Source when source is as output when local.
The solution have the advantages that multi-channel Time source can be monitored simultaneously, when currently used time source precision reduces
Suitable time source can be selected automatically according to special algorithm, to improve whole aircraft reliability, time service precision.
Description of the drawings
Fig. 1 is the functional block diagram of the present invention;
Fig. 2 is that the embodiment of the present invention judges output one figure of situation;
Fig. 3 is that the embodiment of the present invention judges output two figure of situation;
Fig. 4 is that the embodiment of the present invention judges output three figure of situation;
Fig. 5 is that the embodiment of the present invention judges output four figure of situation;
Fig. 6 is that the embodiment of the present invention judges output five figure of situation;
Fig. 7 is that the embodiment of the present invention judges output six figure of situation;
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 change of equipment output time quality and precision against the time in the case of source when the automatic switchover of the present invention is more
Change figure.
Specific implementation mode
It is further illustrated below according to embodiment and attached 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 connect with MCU, MCU connections selection circuit 1, selection circuit
2, selection circuit 1 is connect with selection circuit 2, and selection circuit 2 is connect with external equipment, MCU portion's unit, external equipment respectively inwards
Transmission time information, MCU receive BD receivers, GPS receiver, independent B codes, association B code information inputs respectively;PPS is punctual
Module, which is used to provide high-precision PPS, MCU to local clock, receives the time information data and PPS of No. 2 receivers and 2 road B codes,
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 relationship it is as follows, BD receivers, GPS receiver, independent B codes, association B codes
External time source can be divided into independent time source and source when being associated with, wherein for independent time source, association B codes are correlation time source.
When each in source, priority relationship is:BD > GPS >Independent B codes>It is associated with B codes.
Switching method includes the following steps,
One), when first determining whether independent source and local clock priority, source and local punctual clock carry out when will be each independent
Clock correction calculates, 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 not available ratio in source and it is each independent when source priority judge precision
Source when highest independent, source when as output, if the quantity available in source and unavailable quantitative proportion are less than etc. when independent
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 carry out clock correction calculating, if clock correction <
5us, then source when using source when being associated with as output, if source is unavailable when association, source when using source when local as output.
Embodiment 1,
As shown in Fig. 2,3,4,5,6,7, the priority in source and local clock when first determining whether independent, in equipment running process
In, the source clock correction with source when local respectively when 4 kinds of monitoring is external in real time, source and when local punctual module when MCU calculates each at this time
Between clock correction, judgement is source or source when association when selection is independent, according to the logic of setting, the output sieve of MCU control selections circuit 1
Pps after choosing, control circuit 2 is using the pps after screening as the final pps externally exported.If according to the logic of setting, do not have
Source when available external, then MCU control selections circuit 1 do not export pps externally, control selections circuit 2 selects local punctual module
Local PPS as the final PPS externally exported.
Under different situations, the when source for being selected as output is as follows:
Situation one:Source is unavailable when BD, GPS, independent B codes, association B codes when source can be used, it is current that equipment, which selects GPS, at this time
Shi Yuan;
Situation two:Source is unavailable when GPS, and source can be used when BD, independent B codes, association B codes, and equipment selects BD as working as at this time
Source when preceding;
Situation three:Source is unavailable when BD, GPS, and source is available when independent B codes, association B codes, the association B codes work of equipment selection at this time
Source when being current;
Situation four:Source is unavailable when BD, independent B codes, and source is available when GPS, association B codes, the association B codes work of equipment selection at this time
Source when being current;
Situation five:Source is unavailable when BD, GPS, association B codes, and source is available when GPS, and equipment enters the stage of keeping time, use at this time
Local clock as when source;
Situation six:4 kinds it is external when source it is unavailable, at this time equipment enter keep time the stage, source when being used as using local clock;
Since the locking and frequency convergence of module crystal oscillator of keeping time need to use accurate PPS inputs, powered in booting
When, MCU receives BD, GPS, independent B codes and the time information data and temporal quality that are associated with B codes, source time information when judging each
In time service precision, by control selections circuit 1 selection time service precision is highest all the way when source PPS, output it to punctual mould
Frequency of the block for crystal oscillator restrains;After its convergence, time service module is in punctual lock-out state, i.e., the pps of time service module at this time
Output is inputted independent of the external world.
MCU determine finally externally export when behind source, the temporal information and temporal quality in source when extracting this are packaged established practice
Fix formula, is sent respectively to external device and internal element plate.
Embodiment 2
As shown in Figure 8,9, 10, be time service equipment in it is several when source switching precision and temporal quality comparison, temporal quality
Numerical value is lower, and time precision is higher, and when temporal quality is 0, time precision highest, when temporal quality is 15, time precision is most
Low, the temporal information exported at this time is unavailable.
1, the variation 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 19
After hour, temporal quality reaches 15, final unavailable.Source when due to being single, thus equipment output time quality and when source
Temporal quality variation is consistent;
2, the variation 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 small 19
Shi Hou, temporal quality reach 15.When being manually switched to another at this time on source, the temporal quality that externally exports is restored to best
State;
The variation of equipment output time quality and precision against the time in the case of source when 3, automatically switching more
In automatic mode, equipment is monitored signal source quality, can be with the high signal source of real-time selection signal quality
As currently used signal source.Therefore it when equipment selects to export, source signal is unsatisfactory for the standard of setting, is patrolled according to setting
Source externally exports when collecting selection all the way.
In the case of three kinds, the comparison 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 electricity
Road 2, it is characterised in that:PPS keep time module connect with MCU, MCU connections selection circuit 1, selection circuit 2, selection circuit 1 and
Selection circuit 2 connects, and selection circuit 2 connect with external equipment, MCU portion's unit, external equipment transmission time information respectively inwards,
MCU receives BD receivers, GPS receiver, independent B codes, association B code information inputs respectively;PPS keeps time module for local
Clock provides high-precision PPS, MCU and receives the time information data and PPS of No. 2 receivers and 2 road B codes, analysis 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 when by this
The temporal information that source carries is sent to external equipment and internal element.
2. using a kind of switching method of the multi-source logic switch time service module based on ARM described in claim 1, feature exists
In:Switching method includes the following steps,
One), when first determining whether independent source and local clock priority, source and local punctual clock carry out clock correction when will be each independent
It calculates, 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 not available ratio in source and it is each independent when source priority judge precision highest
It is independent when source, source when 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 then using source when being associated with as output, if source is unavailable when association, source when using source when local as output.
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 CN106788846A (en) | 2017-05-31 |
CN106788846B true 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 (4)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202008583U (en) * | 2010-12-30 | 2011-10-12 | 安徽工程大学 | Clock source of synchronous phasor measuring device |
-
2016
- 2016-12-27 CN CN201611228286.4A patent/CN106788846B/en active Active
Patent Citations (4)
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 |
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 |
---|---|
CN106788846A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102073056B (en) | Beidou/GPS dual-system timing receiver | |
CN102291169B (en) | Onboard high-accuracy time synchronization method for satellite | |
CN103618588B (en) | A kind of auto-baud-detect method and detection module | |
CN103605023A (en) | Method and device for measuring merging unit time characteristics | |
CN201425704Y (en) | Satellite synchronous main clock device | |
CN103117742B (en) | System tamed by GPS/ Big Dipper dual mode satellite clock crystal oscillator | |
CN108683437A (en) | Taiwan area recognition methods based on bandwidth carrier | |
CN101881938A (en) | Satellite synchronous master clock device | |
CN113014345B (en) | Clock synchronization early warning method, device and system thereof | |
CN105511255A (en) | Lossless switching clock source equipment | |
CN110501667B (en) | Test system and ground test method of ultrashort wave orientation instrument | |
CN201425705Y (en) | Electric power system time synchronizer | |
CN206389373U (en) | A kind of multi-source logic switch time service module based on ARM | |
CN110097275A (en) | A kind of family change relational checking method and device based on platform area power failure data | |
CN106788838A (en) | A kind of system and method for Power time synchronization system robust control | |
CN113126478A (en) | 5G network clock synchronization method based on multiple time service systems | |
CN102608910B (en) | Time reference redundancy signal intelligent testing system and method of time synchronization device | |
CN102593955B (en) | Comprehensive intelligent time frequency testing system and testing method | |
CN106788846B (en) | A kind of multi-source logic switch time service module and switching method based on ARM | |
CN112882069B (en) | Single-flow multi-index test evaluation method and system for satellite navigation terminal | |
CN104349331A (en) | Method and system for evaluating cell coverage deviation | |
CN111338204B (en) | Decentralized integrated atomic time system and establishing method thereof | |
CN207731092U (en) | A kind of Big Dipper timing type terminal | |
CN201812155U (en) | Satellite synchronous slave clock device | |
CN101881939A (en) | Time synchronization device for electrical power system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |