CN107181551A - A kind of time source system of selection and device - Google Patents
A kind of time source system of selection and device Download PDFInfo
- Publication number
- CN107181551A CN107181551A CN201610134258.XA CN201610134258A CN107181551A CN 107181551 A CN107181551 A CN 107181551A CN 201610134258 A CN201610134258 A CN 201610134258A CN 107181551 A CN107181551 A CN 107181551A
- Authority
- CN
- China
- Prior art keywords
- time
- source signal
- time source
- pps
- pulse per
- 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.)
- Pending
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
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Electric Clocks (AREA)
Abstract
The present invention discloses a kind of time source method for optimizing and device, the invention provides a kind of time source system of selection, including:Receive the time source signal or the time source signal of Precision Time Protocol and the time source signal of pulse per second (PPS)+Time of Day agreement for including Precision Time Protocol at least two-way time source signal, the time source signal;The time source signal of the Precision Time Protocol of reception is converted into the time source signal of pulse per second (PPS)+Time of Day agreement, and selected all the way as system optimal time source signal from the time source signal of obtained each road pulse per second (PPS)+Time of Day agreement, then by the system optimal time source signal output, so that equipment can automatically select an optimal time source signal in the case where polytype interface works simultaneously carries out Time Transmission, so as to improve time synchronized efficiency and precision.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of time source system of selection and device.
Background technology
With the development of mobile communication technology, 3G (TD-SCDMA and CDMA2000) base stations and 4G base stations are required
Realize time synchronized.Under normal circumstances, when prioritizing selection DVB progress aerial school is answered in base station, but it is right
Ground time service mode can be used in the base station that can not realize aerial time service, ground time service can also be as aerial
The redundancy backup of time service, once satellite time transfer is unavailable, base station is immediately switched to ground time service.Ground time service
It is required that setting up time synchronization network, all node requirements between time source to base station possess time synchronized function.
Standard in terms of internal and international time synchronized gradually tends to be perfect, and operator also gradually requires that log equipment has
Standby precise synchronization function.
Time synchronized interface includes at least two time protocol interfaces, to meet operator's several scenes deployment,
Time synchronism equipment generally supports at least two interfaces.In the case of it there are multiple time sources in equipment input,
Existing way is to select optimal time source from every kind of time protocol interface respectively, from the optimal time of selection
A time source is determined by configuring in source, causes equipment can not automatically select out an optimal time source, from
And influence time synchronous accuracy and reliability.A kind of multi-protocol interface schematic diagram of a scenario as shown in Figure 1,
There are 3 time sources in equipment D, A passes through PTP (Precision Time Protocol, precise time association
View) interface provides time synchronized, B and C by 1PPS+TOD (l pulse per second&Time of Day,
Pulse per second (PPS)+Time of Day) interface offer time synchronized.Wherein, PTP interfaces are synchronous using ether network packet is transmitted
Time, it is adapted to far and near distance transmission, interoffice and the distribution of intra-office time can be used for simultaneously;1PPS+TOD interfaces
It is adapted to short range transmission, can be only used for the distribution of intra-office time, 1PPS pulse per second (PPS)s is 1HZ clock signal,
Using rising edge as punctual edge, TOD message indicates current 1PPS rising times, ToD protocol massages hair
It is 1 time per second to send frequency.Multiple time sources of PTP interfaces can pass through BMC algorithms (Best Master Clock
Algorithm, best master clock algorithm) selection optimal time source, multiple time sources of 1PPS+TOD interfaces can
To select optimal time source by information such as pulse per second (PPS) state, default priorities, but for 1PPS+TOD interfaces
With the optimal time source of PTP interfaces because the not equal reason of parameter definition mode in information and can not be automatic
A system optimal time source is selected, so that without normal direction other times synchronizer transmission optimal time source.
The content of the invention
The main technical problem to be solved in the present invention is to provide a kind of time source system of selection and device, to solve
Certainly polytype interface can not automatically select an optimal time source letter in the prior art work simultaneously in the case of
Number carry out Time Transmission so that the technical problem of influence time synchronous efficiency and precision.
In order to solve the above technical problems, the present invention provides a kind of time source system of selection, including:
Receive the time source for including Precision Time Protocol at least two-way time source signal, the time source signal
The time source signal of the time source signal and pulse per second (PPS) of signal or Precision Time Protocol+Time of Day agreement;
The time source signal of the Precision Time Protocol is converted into the time source letter of pulse per second (PPS)+Time of Day agreement
Number;
Selected all the way as system optimal from the time source signal of obtained each road pulse per second (PPS)+Time of Day agreement
Time source signal;
Exported the system optimal time source signal as lock in time source signal.
In an embodiment of the present invention, by the time source signal of the Precision Time Protocol be converted into pulse per second (PPS)+
The time source signal of Time of Day agreement is specially:
Optimal time source signal is selected from the time source signal of at least two-way Precision Time Protocol of reception;
The optimal time source signal is converted into the time source signal of the pulse per second (PPS)+Time of Day agreement.At this
Invent in a kind of embodiment, the object time agreement is one kind in a variety of time protocols, Huo Zhesuo
State one kind beyond a variety of time protocols.
In an embodiment of the present invention, by the time source signal of the Precision Time Protocol be converted into pulse per second (PPS)+
The time source signal of Time of Day agreement is specially:
By reception at least the time source signal of Precision Time Protocol is directly changed into pulse per second (PPS)+Time of Day all the way
The time source signal of agreement.
In an embodiment of the present invention, the time source from obtained each road pulse per second (PPS)+Time of Day agreement is believed
Select as system optimal time source signal to include all the way in number:
Detect the validity of the time source signal of obtained each road pulse per second (PPS)+Time of Day agreement;
Selected all the way as the system from the time source signal of effective each road pulse per second (PPS)+Time of Day agreement
Optimal time source signal.
In an embodiment of the present invention, in the time source signal from obtained each road pulse per second (PPS)+Time of Day agreement
It is middle selection all the way as system optimal time source signal after, and by the system optimal time source signal make
Before the output of lock in time source signal, in addition to:
Compensation of delay processing is carried out to the system optimal time source signal.
Further, present invention also offers a kind of time source selection device, including:
Receiving module, when including accurate at least two-way time source signal, the time source signal for receiving
Between the time source signal of agreement or the time source signal of Precision Time Protocol and pulse per second (PPS)+Time of Day agreement
Time source signal;
Modular converter, is assisted for the time source signal of the Precision Time Protocol to be converted into pulse per second (PPS)+Time of Day
The time source signal of view;
Selecting module, for being selected all the way from the time source signal of obtained each road pulse per second (PPS)+Time of Day agreement
It is used as system optimal time source signal;
Output module, for being exported the system optimal time source signal as lock in time source signal.
In an embodiment of the present invention, the modular converter includes:
First choice submodule, for being selected from the time source signal of at least two-way Precision Time Protocol of reception
Select optimal time source signal;
First transform subblock, is assisted for the optimal time source signal to be converted into the pulse per second (PPS)+Time of Day
The time source signal of view.
In an embodiment of the present invention, the modular converter includes:
Second transform subblock, for by reception at least the time source signal of Precision Time Protocol is direct all the way
It is converted into the time source signal of pulse per second (PPS)+Time of Day agreement.
In an embodiment of the present invention, the selecting module includes:
Detection sub-module, for detecting the effective of the obtained time source signal of each road pulse per second (PPS)+Time of Day agreement
Property;
Second selection submodule, for being selected from the time source signal of effective each road pulse per second (PPS)+Time of Day agreement
Select all the way as the system optimal time source signal.
In an embodiment of the present invention, between the selecting module and the output module, in addition to:
Delay compensation module, for carrying out compensation of delay processing to the system optimal time source signal.
The beneficial effects of the invention are as follows:
The invention provides a kind of time source system of selection, including:At least two-way time source signal is received, should
Time source signal comprising PTP protocol or the time source signal and 1PPS+TOD of PTP protocol in time source signal
The time source signal of agreement;By the time source signal of the PTP protocol of reception be converted into 1PPS+TOD agreements when
Between source signal, and select from the time source signal of obtained each road 1PPS+TOD agreements all the way as system most
Excellent time source signal, then by the system optimal time source signal output so that equipment is in polytype interface
An optimal time source signal can be automatically selected work simultaneously in the case of and carries out Time Transmission.And prior art
In, optimal time source can only be selected from the time source signal of every kind of time protocol, for it is different types of when
Between source can not but be automatically selected, so as to reduce the efficiency and reliability of time synchronized.By contrast,
The time source system of selection that the present invention is provided, for there is the time source signal of different time agreement, Neng Gouxuan
Optimal time source signal is selected to be transmitted, when the optimal time source signal quality for finding selection is reduced, meeting
Automatically reselect a signal quality preferably time source and switch over, further lift time synchronized
Accuracy.
Brief description of the drawings
A kind of multi-protocol interface schematic diagram of a scenario that Fig. 1 provides for the present invention;
Fig. 2 is a kind of time source system of selection flow chart that the embodiment of the present invention one is provided;
Fig. 3 is a kind of time source system of selection stream based on 1PPS+TOD interfaces that the embodiment of the present invention one is provided
Cheng Tu;
Fig. 4 is a kind of time source selection device schematic diagram that the embodiment of the present invention two is provided;
Fig. 5 is that a kind of time source selection device based on 1PPS+TOD interfaces that the embodiment of the present invention two is provided shows
It is intended to.
Embodiment
The present invention is described in further detail below by embodiment combination accompanying drawing.
Embodiment one:
The invention provides a kind of time source system of selection, time source system of selection stream shown in Figure 2
Cheng Tu.In Fig. 2, the idiographic flow of time source system of selection is as follows:
S201, receives the time for including PTP protocol at least two-way time source signal, the time source signal
The time source signal of the time source signal and 1PPS+TOD agreements of source signal or PTP protocol;
S202, the time source signal of the PTP protocol is converted into the time source signal of 1PPS+TOD agreements;
S203, is selected all the way as system optimal from the time source signal of obtained each road 1PPS+TOD agreements
Time source signal;
S204, is exported system optimal time source signal as lock in time source signal.
It is to be understood that above-mentioned time source signal include but is not limited to PTP protocol time source signal and
The time source signal of 1PPS+TOD agreements, for other kinds of time source signal, can equally use above-mentioned stream
Various types of time source signals are unified into a type, and then select optimal time source signal to complete by journey
Time synchronized.By above-mentioned flow, the time source signal of a variety of time protocol types is subjected to type unification,
Most accurate time source signal deadline synchronization is automatically selected out, so as to avoid equipment from entering for distinct interface
Row configuration.Simultaneously when synchronous time source signal quality declines, and precision is reduced, one can be reselected automatically
Individual signal quality preferably time source is synchronized, so as to transmit the optimal time for other times synchronizer
Source.
Further, in S202 steps, the interface of different time agreement is supported to receive multi-channel Time source letter
After number, there are two kinds of processing modes:A kind of is that optimal time source is selected from the time source signal of PTP protocol
Optimal time source signal, is then converted into the time source signal of pulse per second (PPS)+Time of Day agreement by signal, and then subtracts
The process of few signal conversion;It is another be directly by reception at least all the way Precision Time Protocol time source believe
Number it is directly changed into the time source signal of pulse per second (PPS)+Time of Day agreement, the choosing without carrying out optimal time source signal
Select, and then ensure more accurately to select system optimal time source signal.For above two processing mode,
Reasonable selection can be carried out according to the actual requirements.
Further, in S203 steps, from the time source signal of obtained each road 1PPS+TOD agreements
It is middle selection all the way as before system optimal time source signal, it is necessary to which the validity to each road time source signal is entered
Row detection, when detect certain all the way time source signal be not present or abnormal, this road time source signal will not
As the candidate time source of optimal system time source signal, conversely, this road time source signal can be used as most major clique
System time source signal.After the validity for detecting Wan Ge road time source signals, carried according to 1PPS+TOD agreements
Parameter information periodically selects system time source letter optimal all the way from the effective time source signal of multichannel
Number.
Include but is not limited to pulse per second (PPS) state, default priorities for selection standard as defined in 1PPS+TOD agreements
Deng comprehensive consideration selects optimal time source signal all the way.When pulse per second (PPS) state phase, according to scarce
Save priority and decide optimal source.Such as:When carrying out optimal 1PPS+TOD time sources signal behavior, pulse per second (PPS) shape
State is according to 0x00>0x01>0x05>0x03>0x04>Order is arranged 0x02 from high to low, highest
For optimal candidate source, if there is the equal candidate source of pulse per second (PPS) state, decide optimal according to default priorities
1PPS+TOD time source signals.Therefore, the specifically chosen process of system optimal time source signal is:
Default priorities highest time source signal is selected from the effective time source signal of multichannel, if at least two
The default priorities of individual time source signal are identical and for highest, then identical and during for highest from default priorities
Between select pulse per second (PPS) time source signal in the best state as system optimal time source signal in source signal.On
State selection course not unique, also can first judge pulse per second (PPS) state, then judge default priorities, can also enter simultaneously
Row judges, for other specification, can equally use above-mentioned selection course.
If in addition, the system optimal time source signal quality reduction that has selected or failing, reselecting and being
System optimal time source signal, is automatically switched in the system optimal time source signal newly selected;Similarly, if
The system optimal time source signal quality selected is improved, then reselects system optimal time source signal and go forward side by side
Row automatically switches.If in addition, input all time source signals it is invalid, select not output time or
Person's output time is unavailable.
Further, after optimal system time source signal is selected, and optimal system time source is believed
Before number being exported as lock in time source signal, in addition to line delay is entered to the optimal time source signal selected
Compensation deals.Because the fixed error of introducing inside processing equipment (typically by chip internal or walk by the error
Line causes), so needing to carry out the system time source signal compensation of delay processing to reduce fixed error.
It is first when the system optimal time source signal after compensation of delay is handled is exported in S204 steps
First judge that the system optimal time source signal is exported by the interface of which kind of time protocol type, if the system is most
The time protocol type of excellent time source signal and the time protocol type of output interface are mismatched, then when by target
Between the system optimal time source signal of agreement be converted to the time protocol of output interface support, and as it is synchronous when
Between source signal export.
Specifically, the present embodiment combination Fig. 3 is carried out in detail to the time source system of selection based on 1PPS+TOD agreements
Describe in detail bright.
First, PTP input interfaces and PTP output interfaces are software interface, and the two possesses following characteristic:
PTP input interfaces:1) realize that PTP, from status function, periodically enters with upper level time synchronism equipment
Row PTP protocol message interaction, calculates path delay, lock in time, if there is multiple major states, according to
The optimal major state of BMC algorithms selections;Wherein, optimal time source priority, time are carried in PTP protocol message
The information such as grade and time precision, the information carried by its message selects one from multi-channel Time source signal
Individual optimal time source signal;2) the time source signal of output 1PPS+TOD agreements is realized;3) Slave when
Between under lock condition, according to the clock grade received in optimal major state Announce messages, be mapped as TOD
The pulse per second (PPS) state in temporal information message in message;Kept or free-running operation in time losing lock from state
In the case of, according to current maintenance time run clock grade and clock status be mapped as in TOD messages when
Between pulse per second (PPS) state in informational message.
PTP output interfaces:The optimal 1PPS+TOD of input is received, output time counter is updated, for meter
Selection the present embodiment of number device clock source is not introduced;PTP major state functions are realized, it is same with the next stage time
Walk device periodically and carry out PTP protocol message interaction, carry out time synchronized.
Further, the time source system of selection based on 1PPS+TOD is comprised the following steps that:
After S301, multiple PTP input interfaces and multiple 1PPS+TOD input interfaces and upper level time synchronized,
Be respectively received the time source signal of the PTP protocol of respective amount and the 1PPS+TOD agreements of respective amount when
Between source signal;
S302, selects optimal all the way by BMC algorithms from the time source signal of the PTP protocol of respective amount
The time source signal of PTP protocol;
S303, pulse per second (PPS) state is mapped as by the clock grade in the time source signal of optimal PTP protocol, and
Export the time source signal of 1PPS+TOD agreements all the way;
S304, distinguishes the 1PPS signals in the time source signal of all 1PPS+TOD agreements and TOD signals
Effective judgement is carried out, when the 1PPS signals in the time source signal of 1PPS+TOD agreements all the way and TOD letters
When number effective, could as the time source signal of optimal 1PPS+TOD agreements candidate time source;
S305, according to 1PPS and TOD validity, TOD in the time source signal of every road 1PPS+TOD agreements
Property information cycle such as pulse per second (PPS) state, every road default priorities in message are decided, select optimal
The time source signal of 1PPS+TOD agreements;
S306, compensation of delay processing is carried out by the time source signal for the optimal 1PPS+TOD agreements selected;
Whether S307, judge the time source signal after compensation of delay is handled by PTP output interfaces, if so,
Then perform S308;Conversely, then directly by the time source signal output;
S308, by the time source signal by 1PPS+TOD protocol conversions are into PTP protocol and export.
Specifically, carrying out carrying out in the state of time lock during state mapping in S303, when from shape
State is in the case of the holding of time losing lock or free-running operation, and according to current maintenance time, (i.e. local device is run
Time) operation clock grade and clock status be mapped as second in the temporal information message in TOD messages
Pulse condition.Wherein, locking refer to PTP from state by with upper level major state PTP message interactions,
The parameters such as outbound path delay, deadline synchronizing process are computed, and time jitter error can be in reception
Within the scope of;Holding refers to that PTP loses from state after lock-out state and communicated between the major state of opposite end, or
The no longer time service of person opposite end major state, uses clock to keep time by local device, reacquires and arrives under hold mode
External time source and locking time source, then state switch to locking;Free-running operation refers to the normal operation of electricity on chip
Afterwards, the run time safeguarded by clock, clock source is selected according to designer, can use local crystal oscillator,
Or external clock reference access;Time starting point is generally UTC (Coordinated Universal Time(UTC), Coordinated
Universal Time) markers starting point or user definition,
For free-run state, due to UTC markers starting point and GPS (global positioning system, Global
Positioning System) markers starting point is inconsistent, and middle mobile TOD exports GPS week number and interior second in week,
If therefore the time of free-running operation is later than GPS time stamp starting point, it may be selected not exporting 1PPS+TOD time sources letter
Number, or one of them, it can decide that this time source is invalid in source procedure is selected.In addition, free-run state
The TOD pulse per second (PPS)s state of lower output is 0x02 (i.e. unavailable).
Further, in the case of time lock, by the clock in the time source signal of optimal PTP protocol
Grade is mapped as pulse per second (PPS) state, and its mapping relations may be referred to table 1:
Table 1
Clock grade | Pulse per second (PPS) state | Remarks |
6 | 0x00 | Normally |
7 | 0x01 | Satellite-signal is lost, and one level temporal synchronizer is kept |
8 | 0x05 | Satellite-signal is lost, and two grades of time synchronism equipments are kept |
52 | 0x03 | Satellite-signal is lost, and three-level time synchronism equipment is kept |
187 | 0x04 | Load bearing equipment is transmitted to keep |
255 | 0x02 | It is unavailable |
In the case of time free-running operation or keeping, the pulse per second (PPS) state of output is reflected according to punctual clock grade
Penetrate, introduced by taking the clock grade that G.781Option I is defined as an example, clock grade is respectively from high to low
QL-PRC、QL-SSU-A、QL-SSU-B、QL-SEC、QL-DNU.Therefore, by optimal PTP protocol when
Between clock grade in source signal be mapped as pulse per second (PPS) state, its mapping relations may be referred to table 2:
Table 2
Clock grade | Pulse per second (PPS) state |
QL_PRC | 0x01 |
QL_SSU-A | 0x05 |
QL_SSU-B | 0x03 |
QL_SEC/EEC | 0x04 |
QL_DNU | 0x02 |
It should be noted that above-mentioned clock grade is from top to bottom sequentially reduced.
Further, in S305, default priorities are 1,2 ... N numerals, and digital value is higher, represents
Lower grade, different per default priorities all the way, it is therefore intended that when pulse per second (PPS) state phase, according to
Default priorities decide optimal 1PPS+TOD times source signal.
Embodiment two:
A kind of time source selection device is present embodiments provided, Fig. 4 is referred to, Fig. 4 provides for the present embodiment
A kind of time source selection device schematic diagram, the time source selection device is specifically included:
Receiving module 401, PTP is included for receiving at least two-way time source signal, the time source signal
The time source signal of agreement or the time source signal of PTP protocol and the time source signal of 1PPS+TOD agreements;
Modular converter 402, for the time source signal of the PTP protocol to be converted into 1PPS+TOD agreements
Time source signal;
Selecting module 403, for being selected all the way from the time source signal of obtained each road 1PPS+TOD agreements
It is used as system optimal time source signal;
Output module 404, for being exported the system optimal time source signal as lock in time source signal.
Further, include in modular converter 402:
First choice submodule 4021, for being selected from the time source signal of at least two-way PTP protocol of reception
Select optimal time source signal;
First transform subblock 4022, is assisted for the optimal time source signal to be converted into the 1PPS+TOD
The time source signal of view.
In addition, modular converter 402 also has another structure, it includes the second transform subblock, and this second
Transform subblock be directly by reception at least all the way the time source signal of PTP protocol be converted into 1PPS+TOD association
The time source signal of view, the selection without carrying out optimal time source signal, and then ensure more accurately to select
System optimal time source signal.For above two modular converter, reasonable selection can be carried out according to the actual requirements.
Further, selecting module 403 includes:
Detection sub-module 4031, for detecting the effective of the obtained time source signal of each road 1PPS+TOD agreements
Property;
Submodule 4032 is selected, for selecting one from the time source signal of effective each road 1PPS+TOD agreements
Road is used as the system optimal time source signal.
Specifically, filtering out effective time source signal from each road optimal time source signal after reunification, arrange
Except signal is not present or abnormal situation, the cycles such as parameter information are then carried according to object time agreement
Property system optimal time source signal is selected from effective each road optimal time source signal.
In addition, between selecting module 403 and output module 404, delay compensation module 405 is additionally provided with, should
Delay compensation module 405 is used to carry out compensation of delay processing to system optimal time source signal.To what is received
System optimal time source signal carry out compensation of delay processing the reason for be:Because what is introduced inside processing equipment consolidates
Error (error is typically caused by chip internal or cabling) is determined, so needing to the system time source signal
Compensation of delay processing is carried out to reduce fixed error.
Further, Fig. 5 is referred to, another time source selection device that Fig. 5 provides for the present embodiment,
In the selection device, including receiving module 501, modular converter 502, selecting module 503, output module 504
With delay compensation module 505.Wherein, receiving module 501 includes PTP input interfaces 5011 and 1PPS+TOD
Input interface 5012, PTP input interfaces 5011 are used for the time source signal for receiving PTP protocol, 1PPS+TOD
Input interface 5012 is used for the time source signal for receiving 1PPS+TOD agreements;Output module 504 includes PTP
Output interface 5041 and 1PPS+TOD output interfaces 5042, PTP output interfaces 5041 are used to export PTP associations
The time source signal of view, 1PPS+TOD output interfaces 5042 are used for the time source letter for exporting 1PPS+TOD agreements
Number.Modular converter 502, selecting module 503 and delay compensation module 505 structurally and functionally with Fig. 4
Modular converter 402, selecting module 403 are structurally and functionally similar with delay compensation module 405, here no longer
Repeat.
More specifically, PTP input interfaces 5011 and 1PPS+TOD input interfaces 5012 are respectively received correspondence
PTP protocol time source signal and the time source signal of 1PPS+TOD agreements, pass through modular converter 502 will
The time source signal of PTP protocol is converted into the time source signal of 1PPS+TOD agreements, then passes through selecting module
503 select the time source signal of optimal 1PPS+TOD agreements, if being exported by 1PPS+TOD output interfaces,
Then directly exported, without carrying out protocol conversion;If being exported by PTP output interfaces, need by
The time source signal of 1PPS+TOD agreements is converted into the time source signal of PTP protocol, is then exported.
In addition, the part of module in the time source selection device of the present embodiment protection can not only pass through software
Form is realized, can also equally be realized by the form of hardware, or even is realized in the way of soft or hard combination,
As the selecting module 403 in Fig. 4 and delay compensation module 405 (or the selecting module 503 in Fig. 5 and are prolonged
When compensating module 505).Specifically, selecting module 403 includes signal detector and input decision device, its
In, signal detector is used to detect the validity of time source signal, can be by CPLD (Complex
Programmable Logic Device, CPLD) or the hardware such as digital phase-locked loop realize;
When input decision device is used to select the optimal source signal of time all the way progress from effective multi-channel Time source signal
Between it is synchronous, can jointly be completed by CPU (Central Processing Unit, central processing unit) and software,
CPU usually requires to support a variety of serial ports simultaneously;Delay compensation module 405 can by support 1588 PHY
(Physical Layer, physical layer) chip or professional chip etc. are realized.
Obviously, those skilled in the art should be understood that each module or each step of the invention described above can be used
General computing device realizes that they can be concentrated on single computing device, or be distributed in multiple
On the network that computing device is constituted, alternatively, they can with computing device can perform program code come
Realize, it is thus possible to be stored in storage medium (ROM/RAM, magnetic disc, CD) by calculating dress
Put to perform, and in some cases, can be shown or described to be performed different from order herein
Step, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or
Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware
Combined with software.
Above content is to combine specific embodiment further description made for the present invention, it is impossible to recognized
The specific implementation of the fixed present invention is confined to these explanations.For the ordinary skill of the technical field of the invention
For personnel, without departing from the inventive concept of the premise, some simple deduction or replace can also be made,
Protection scope of the present invention should be all considered as belonging to.
Claims (10)
1. a kind of time source system of selection, it is characterised in that including:
Receive the time source for including Precision Time Protocol at least two-way time source signal, the time source signal
The time source signal of the time source signal and pulse per second (PPS) of signal or Precision Time Protocol+Time of Day agreement;
The time source signal of the Precision Time Protocol is converted into the time source letter of pulse per second (PPS)+Time of Day agreement
Number;
Selected all the way as system optimal from the time source signal of obtained each road pulse per second (PPS)+Time of Day agreement
Time source signal;
Exported the system optimal time source signal as lock in time source signal.
2. time source system of selection as claimed in claim 1, it is characterised in that by the precise time
The time source signal that the time source signal of agreement is converted into pulse per second (PPS)+Time of Day agreement is specially:
Optimal time source signal is selected from the time source signal of at least two-way Precision Time Protocol of reception;
The optimal time source signal is converted into the time source signal of the pulse per second (PPS)+Time of Day agreement.
3. time source system of selection as claimed in claim 1, it is characterised in that by the precise time
The time source signal that the time source signal of agreement is converted into pulse per second (PPS)+Time of Day agreement is specially:
By reception at least the time source signal of Precision Time Protocol is directly changed into pulse per second (PPS)+Time of Day all the way
The time source signal of agreement.
4. the time source system of selection as described in claim any one of 1-3, it is characterised in that it is described from
Selected all the way as system optimal time source in the time source signal of obtained each road pulse per second (PPS)+Time of Day agreement
Signal includes:
Detect the validity of the time source signal of obtained each road pulse per second (PPS)+Time of Day agreement;
Selected all the way as the system from the time source signal of effective each road pulse per second (PPS)+Time of Day agreement
Optimal time source signal.
5. the time source system of selection as described in claim any one of 1-3, it is characterised in that from
To each road pulse per second (PPS)+Time of Day agreement time source signal in select all the way as system optimal time source believe
After number, and before the system optimal time source signal is exported as lock in time source signal, also wrap
Include:
Compensation of delay processing is carried out to the system optimal time source signal.
6. a kind of time source selection device, it is characterised in that including:
Receiving module, when including accurate at least two-way time source signal, the time source signal for receiving
Between the time source signal of agreement or the time source signal of Precision Time Protocol and pulse per second (PPS)+Time of Day agreement
Time source signal;
Modular converter, is assisted for the time source signal of the Precision Time Protocol to be converted into pulse per second (PPS)+Time of Day
The time source signal of view;
Selecting module, for being selected all the way from the time source signal of obtained each road pulse per second (PPS)+Time of Day agreement
It is used as system optimal time source signal;
Output module, for being exported the system optimal time source signal as lock in time source signal.
7. time source selection device as claimed in claim 6, it is characterised in that the modular converter bag
Include:
First choice submodule, for being selected from the time source signal of at least two-way Precision Time Protocol of reception
Select optimal time source signal;
First transform subblock, is assisted for the optimal time source signal to be converted into the pulse per second (PPS)+Time of Day
The time source signal of view.
8. time source selection device as claimed in claim 6, it is characterised in that the modular converter bag
Include:
Second transform subblock, for by reception at least the time source signal of Precision Time Protocol is direct all the way
It is converted into the time source signal of pulse per second (PPS)+Time of Day agreement.
9. the time source system of selection as described in claim any one of 6-8, it is characterised in that the choosing
Selecting module includes:
Detection sub-module, for detecting the effective of the obtained time source signal of each road pulse per second (PPS)+Time of Day agreement
Property;
Second selection submodule, for being selected from the time source signal of effective each road pulse per second (PPS)+Time of Day agreement
Select all the way as the system optimal time source signal.
10. the time source selection device as described in claim any one of 6-8, it is characterised in that described
Between selecting module and the output module, in addition to:
Delay compensation module, for carrying out compensation of delay processing to the system optimal time source signal.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610134258.XA CN107181551A (en) | 2016-03-10 | 2016-03-10 | A kind of time source system of selection and device |
PCT/CN2016/086911 WO2017152540A1 (en) | 2016-03-10 | 2016-06-23 | Time source selection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610134258.XA CN107181551A (en) | 2016-03-10 | 2016-03-10 | A kind of time source system of selection and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107181551A true CN107181551A (en) | 2017-09-19 |
Family
ID=59788865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610134258.XA Pending CN107181551A (en) | 2016-03-10 | 2016-03-10 | A kind of time source system of selection and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107181551A (en) |
WO (1) | WO2017152540A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107655475A (en) * | 2017-11-03 | 2018-02-02 | 河南思维轨道交通技术研究院有限公司 | Synchronization pulse acquisition methods, navigation data synchronization processing method and system |
CN112688752A (en) * | 2019-10-18 | 2021-04-20 | 华为技术有限公司 | Time synchronization method, message processing method and device for time synchronization |
CN113271121A (en) * | 2021-04-06 | 2021-08-17 | 北京大学 | Cable transmission method, device and system |
CN113641548A (en) * | 2020-04-27 | 2021-11-12 | 北京小马智行科技有限公司 | Control method and device for automatic driving vehicle and automatic driving vehicle |
WO2022253348A1 (en) * | 2021-06-03 | 2022-12-08 | 中国移动通信有限公司研究院 | Time source signal determination method and apparatus, network device, and storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515109B (en) * | 2019-08-16 | 2023-05-23 | 中国航空工业集团公司西安飞行自动控制研究所 | Method and device for fusing autonomous PNT time based on multiple information sources |
CN112653533B (en) * | 2020-12-17 | 2022-09-20 | 中国航空工业集团公司西安航空计算技术研究所 | Intelligent time service management method for complex system |
CN115499082B (en) * | 2022-11-08 | 2023-03-10 | 电信科学技术第五研究所有限公司 | Comprehensive source selection method based on multi-time source fusion |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873187A (en) * | 2010-05-25 | 2010-10-27 | 中兴通讯股份有限公司 | Method and system of clock synchronization |
CN101923315A (en) * | 2009-06-17 | 2010-12-22 | 华东电力试验研究院有限公司 | Time synchronization method of electric power system and device thereof |
CN202008583U (en) * | 2010-12-30 | 2011-10-12 | 安徽工程大学 | Clock source of synchronous phasor measuring device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070064851A1 (en) * | 2005-09-02 | 2007-03-22 | Sbc Knowledge Ventures Lp | Method for synchronizing a customer edge router or customer premise equipment associated therewith |
CN102036361B (en) * | 2009-09-25 | 2013-08-28 | 华为技术有限公司 | Processing method, device and system for clock source selection |
CN102469569B (en) * | 2010-11-08 | 2014-09-10 | 中国移动通信集团公司 | Time synchronization method of mobile communication system and synchronization device thereof |
CN102006135A (en) * | 2010-12-03 | 2011-04-06 | 北京华环电子股份有限公司 | Method and device for selecting synchronous clock source |
-
2016
- 2016-03-10 CN CN201610134258.XA patent/CN107181551A/en active Pending
- 2016-06-23 WO PCT/CN2016/086911 patent/WO2017152540A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101923315A (en) * | 2009-06-17 | 2010-12-22 | 华东电力试验研究院有限公司 | Time synchronization method of electric power system and device thereof |
CN101873187A (en) * | 2010-05-25 | 2010-10-27 | 中兴通讯股份有限公司 | Method and system of clock synchronization |
CN202008583U (en) * | 2010-12-30 | 2011-10-12 | 安徽工程大学 | Clock source of synchronous phasor measuring device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107655475A (en) * | 2017-11-03 | 2018-02-02 | 河南思维轨道交通技术研究院有限公司 | Synchronization pulse acquisition methods, navigation data synchronization processing method and system |
CN107655475B (en) * | 2017-11-03 | 2024-03-26 | 河南思维轨道交通技术研究院有限公司 | Synchronous pulse signal acquisition method, navigation data synchronous processing method and system |
CN112688752A (en) * | 2019-10-18 | 2021-04-20 | 华为技术有限公司 | Time synchronization method, message processing method and device for time synchronization |
CN113641548A (en) * | 2020-04-27 | 2021-11-12 | 北京小马智行科技有限公司 | Control method and device for automatic driving vehicle and automatic driving vehicle |
CN113641548B (en) * | 2020-04-27 | 2024-05-31 | 北京小马智行科技有限公司 | Control method and device for automatic driving vehicle and automatic driving vehicle |
CN113271121A (en) * | 2021-04-06 | 2021-08-17 | 北京大学 | Cable transmission method, device and system |
WO2022253348A1 (en) * | 2021-06-03 | 2022-12-08 | 中国移动通信有限公司研究院 | Time source signal determination method and apparatus, network device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2017152540A1 (en) | 2017-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107181551A (en) | A kind of time source system of selection and device | |
CN103442312B (en) | Intelligent distribution network clock synchronization system based on PTN+EPON communication system and method | |
CN101789627B (en) | High-precision Ethernet timing device | |
CN103001720B (en) | Time synchronization method and device | |
CN101594673B (en) | Method and system for processing 1588 time stamp in distribution mode | |
CN110069011B (en) | BD and GPS-based optical fiber remote centralized time service system and time service method | |
CN102833025B (en) | E1/Ethernet protocol conversion precise delay computational methods, module and transducer | |
US20020054611A1 (en) | Time synchronization method in cdma system | |
CN207650573U (en) | A kind of precise synchronization system based on multi-source time service | |
CN102237996B (en) | Clock synchronization method and clock synchronization device | |
CN102378350B (en) | Time synchronization method, server and system | |
CN103513569A (en) | Method for synchronizing redundant time of intelligent substation | |
CN102237941A (en) | Time synchronization system and method | |
CN105228240A (en) | A kind of time synchronization method, equipment and base station | |
CN101741853A (en) | Method for synchronizing clock time, line card veneer and network equipment | |
CN102013920A (en) | Clock backup method and system for time division duplex base station | |
CN102664699A (en) | Method and device for selecting clock sources of microwave network elements | |
CN110875818A (en) | Clock synchronization method, device, system, storage medium and electronic device | |
CN103686982B (en) | A kind of method for synchronizing time and node device based on clock information | |
CN110798276A (en) | Time synchronization method and system for SDN (software defined network) of intelligent substation | |
CN104683088B (en) | Multi-reference synchronization method, device and system | |
CN103338102A (en) | Time synchronization system in nuclear power plant | |
WO2019020170A1 (en) | Methods, apparatus and computer-readable media for synchronization over an optical network | |
CN107959537B (en) | State synchronization method and device | |
CN102497245B (en) | Clock synchronization method and clock management interface board |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170919 |