CN103516454B - Clock synchronizing method, device and communication equipment - Google Patents
Clock synchronizing method, device and communication equipment Download PDFInfo
- Publication number
- CN103516454B CN103516454B CN201210204698.XA CN201210204698A CN103516454B CN 103516454 B CN103516454 B CN 103516454B CN 201210204698 A CN201210204698 A CN 201210204698A CN 103516454 B CN103516454 B CN 103516454B
- Authority
- CN
- China
- Prior art keywords
- frame
- time
- nanosecond
- clock synchronization
- 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
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention provides a kind of clock synchronizing method, device and communication equipment, wherein, this method includes:The interception time information from the data time stamp in time synchronization protocol message;By temporal information component frame;Frame is sent, wherein, frame enters row clock synchronization for treating clock synchronization device.The present invention solves part communication equipment in correlation technique can not directly realize the problem of clock is synchronous by 1588 protocol massages, so as to extend the use scope of time synchronization protocol, reduce the usage amount of resource.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of clock synchronizing method, device and communication equipment.
Background technology
Time synchronized be in a communications system be related to system can normal work key factor.Various radio communication systems
System, such as global mobile communication(Global system for Mobile Communication, referred to as GSM), General Mobile
Communication system(Universal Mobile Telecommunications System, referred to as UMTS), CDMA(Code
Division Multiple Access, referred to as CDMA), time switching-CDMA(Time Division
Switching-Code Division Multiple Access, referred to as TDS-CDMA)And WCDMA
(Wideband Code Division Multiple Access, referred to as WCDMA)There is correlation Deng the synchronization all to clock
It is required that, microwave radio commu carries related cross system as with tradition, synchronously also has specific requirement to clock.Entering
Row PDH(Plesiochronous Digital Hierarchy, referred to as PDH)And Synchronous Digital Hierarchy
(Synchronous Digital Hierarchy, referred to as SDH), it is necessary to meet the clock standard of correlation when business is transmitted;And
When carrying out synchronous ethernet progress networking, time synchronized is also required to meet G.8261/G.8262 middle related standard requirement.
The synchronous implementation of clock has a variety of, removes HA Global Positioning Satellite(Global Positioning
Satellite, referred to as GPS)Outside time service, the Precision Time Protocol grown up from field of industrial automation control
(Precision Time Protocol, referred to as PTP)(1588)Agreement has started to be applied to telecommunication system by improvement
In.1588 agreements use the mode of Message processing, to supporting the network node of 1588 agreements carries out the time same more than physical layer
Step, can reach the precision of microsecond/submicrosecond level, and the error by correcting process can be less than 1ns.
The numerous contents that 1588 messages are included, deal with complexity height, and its specifically used mode can directly affect networking
Constitute.When needing time synchronized in single communication system equipment, if some parts are not supported(Such as microwave indoor unit
(InDoor Unit, referred to as IDU)In other business unit in addition to master control borad), or without enough resources realize message
Processing, then these units cannot directly using 1588 agreements complete relevant treatment, time synchronized just must be by other
Mode is realized.
For it is at least one above-mentioned in correlation technique the problem of, effective solution is not yet proposed at present.
The content of the invention
The invention provides a kind of clock synchronizing method, device and communication equipment, at least to solve part in correlation technique
Communication equipment can not directly realize the problem of clock is synchronous by 1588 protocol massages.
According to an aspect of the invention, there is provided a kind of clock synchronizing method, it includes:From time synchronization protocol message
In data time stamp in interception time information;By temporal information component frame;Frame is sent, wherein, frame is used to treat clock synchronization
It is synchronous that equipment enters row clock.
Preferably, time synchronization protocol message includes:1588 protocol massages.
Preferably, temporal information includes second position and nanosecond position.
Preferably, by before temporal information component frame, above-mentioned clock synchronizing method also includes:In the nanosecond position of local zone time
It is zero or in the case that the nanosecond of local zone time position is the one of the integer point of whole second, selection sends the set frequency of frame, and this is set
The corresponding frequency of frequency is both fixed cycles.
Preferably, temporal information component frame is included:Second position is deposited in the predeterminated position of frame, frame is deposited in into nanosecond position
Frame head, wherein, when send frame both fixed cycles end time nanosecond position be zero in the case of, according to the first coded system
Nanosecond position is encoded to the first byte;Or when the nanosecond position of the end time for the both fixed cycles for sending frame is divided for the integer of whole second
One of in the case of, according to the second coded system by nanosecond position be encoded to the second byte.
Preferably, sending frame includes:In the case where the cycle of counting reaches, frame is sent, wherein, the cycle is counted than set week
Phase small preset time difference.
Preferably, after transmitting the frames, above-mentioned clock synchronizing method also includes:Treat that clock synchronization device receives rising for frame
In the case of beginning position, receiving frame, wherein, the frequency for receiving frame is the integral multiple of set frequency;Treat clock synchronization device solution
Analysis frame obtains second position and nanosecond position, treats clock synchronization device and enters row clock synchronization.
Preferably, parsing frame obtains second position and nanosecond position, treats clock synchronization device and enter row clock synchronous package including:Treat clock
The encoded byte type of synchronizer judgment frame frame head;Frame head be encoded to the first byte in the case of, parsing acquisition will treat
Clock synchronization device the local second position be revised as the second position Jia 1, treat clock synchronization device local nanosecond position clearing information;Or
Frame head be encoded to the second byte in the case of, parsing obtain by treat clock synchronization device the local second position is revised as the second position,
Treat that the position of local nanosecond of clock synchronization device is not corrected, the information normally counted.
According to another aspect of the present invention there is provided a kind of clock synchronization apparatus, it includes:Interception module, for from when
Between interception time information in data time stamp in synchronous protocol message;Processing module, for by temporal information component frame;Send
Module, for sending frame, wherein, frame enters row clock synchronization for treating clock synchronization device.
Preferably, above-mentioned clock synchronization apparatus also includes:Selecting module, is zero or sheet for the nanosecond position in local zone time
In the case that the nanosecond position of ground time is the one of the integer point of whole second, selection sends the set frequency of frame, the set frequency correspondence
Frequency be both fixed cycles.
According to another aspect of the invention there is provided a kind of communication equipment, it includes:Receiving module, for receiving
In the case of the start bit of frame, receiving frame, wherein, the frequency for receiving frame is the integral multiple for the set frequency for sending frame;Solution
Analysis module, second position and nanosecond position are obtained for parsing frame, are treated clock synchronization device and are entered row clock synchronization.
In the present invention, the interception time information from the data time stamp in time synchronization protocol message, and by the time
Information component frame, transmission time information, synchronous with the clock for completing to treat clock synchronization device in the form of frames, it is possible to achieve will
Support the time synchronization information in the communication equipment of time synchronization protocol and do not support the communication equipment of time synchronization protocol(Or set
Standby unit)Shared so that do not support time synchronization protocol communication equipment can by the form of frame indirectly according to when
Between the temporal information of synchronous protocol to enter row clock synchronous, so as to extend the use scope of time synchronization protocol;Meanwhile, with frame
Form transmission time information, implementation is simple, reduces the usage amount of resource.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of clock synchronizing method according to embodiments of the present invention;
Fig. 2 is the structured flowchart of clock synchronization apparatus according to embodiments of the present invention;
Fig. 3 is the structured flowchart of another clock synchronization apparatus according to embodiments of the present invention;
Fig. 4 is the structured flowchart of communication equipment according to embodiments of the present invention;
Fig. 5 is the schematic diagram of Time Transmission system according to embodiments of the present invention;
Fig. 6 is the schematic diagram of tranmitting data register according to embodiments of the present invention with receiving clock physical interconnection;
Fig. 7 is the structural representation for the time according to embodiments of the present invention sending special frames;
Fig. 8 is the structural representation for the time according to embodiments of the present invention sending basic frame;
Fig. 9 is the relation schematic diagram that time data frame according to embodiments of the present invention sent and received the time;And
Figure 10 is jump second reception time according to embodiments of the present invention and the schematic diagram of transmitting terminal instant time contrast.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
A kind of clock synchronizing method is present embodiments provided, as shown in figure 1, the clock synchronizing method includes step S102 extremely
Step S106.
Step S102:The interception time information from the data time stamp in time synchronization protocol message.
Step S104:By temporal information component frame.
Step S106:Frame is sent, wherein, frame enters row clock synchronization for treating clock synchronization device.
By above-mentioned steps, the interception time information from the data time stamp in time synchronization protocol message, and during by this
Between information component frame, transmission time information in the form of frames is synchronous with the clock for completing to treat clock synchronization device, it is possible to achieve
By the time synchronization information in the communication equipment for supporting time synchronization protocol and do not support the communication equipment of time synchronization protocol(Or
Unit)Shared so that do not support that the communication equipment of time synchronization protocol can be by the form of frame basis indirectly
The temporal information of time synchronization protocol enters row clock synchronization, so as to extend the use scope of time synchronization protocol;Meanwhile, with frame
Form transmission time information, implementation is simple, reduces the usage amount of resource.
Preferably, above-mentioned time synchronization protocol message can include:1588 protocol massages, in the form of frames by 1588 agreements
The temporal information of message is transferred to the communication equipment or unit for not supporting 1588 agreements, to extend the use scope of 1588 agreements.
In order to improve the accuracy that clock is synchronous, in the preferred embodiment, above-mentioned temporal information includes:Second position and nanosecond
Position.Above-mentioned temporal information includes but is not limited to second position and nanosecond position, can be selected according to the demand of different application scene.
In order to ensure the time that clock synchronization device was treated within one second time carries out sufficient number of amendment, at this preferably
In embodiment, before above-mentioned temporal information component frame, in the nanosecond position of local zone time be zero or the nanosecond of local zone time position is
In the case of the one of the integer of whole second point, selection sends the set frequency of frame, and the corresponding frequency of the set frequency is both fixed cycles.
Preferably, the set frequency can be adjusted according to different application needs, treat clock synchronization device to the accurate of clock for example, working as
Property require it is higher when, set frequency can be tuned up a bit, to meet demand, set frequency can also conversely be turned down a bit.
In order to improve the accuracy that clock is synchronous, the default of frame in the preferred embodiment, is deposited in second position by accuracy
Position, nanosecond position is deposited in the frame head of frame, wherein, the feelings for being zero when the nanosecond position of the end time for the both fixed cycles for sending frame
Under condition, nanosecond position is encoded to the first byte according to the first coded system;Or when the end time for the both fixed cycles for sending frame
Nanosecond position for the integer point of whole second one in the case of, nanosecond position is encoded to the second byte according to the second coded system.
In above preferred embodiment, in the same time, different coded systems not being used to nanosecond position, nanosecond position is compiled
Code is different types of byte, in order to which when clock synchronization device parses frame, second position information and nanosecond position are obtained exactly
Information, so as to improve the synchronous accuracy of clock, accuracy;Furthermore it is possible to second position be deposited in the predeterminated position of frame, in parsing
Second position information can exactly, be easily obtained during frame, to improve the efficiency of parsing.
In order to ensure to treat that the temporal information that clock synchronization device is obtained is consistent with transmitting terminal temporal information when there is jump second,
In the preferred embodiment, sending above-mentioned frame includes:In the case where the cycle of counting reaches, frame is sent, wherein, count cycle ratio
Both the small preset time difference of fixed cycle.I.e. after both fixed cycles that selection sends above-mentioned frame, start timing, it is for instance possible to use
The mode of counter, when reaching the counting cycle, transmission frame, counting cycle preset time difference smaller than both fixed cycles, this is pre-
If the fixation lead of time difference standard both fixed cycle, for example, the preset time difference(Send lead)For △ t1, frame
Propagation delay △ t2, frame reception processing delay △ t3, △ t1=△ t2+ △ t3.
Treated in realization during clock synchronization device enters row clock synchronization, in the preferred embodiment, sending frame
Afterwards, in the case for the treatment of the start bit that clock synchronization device receives frame, receiving frame, wherein, the frequency for receiving frame is both
Determine the integral multiple of frequency;Treat that clock synchronization device parsing frame obtains second position and nanosecond position, treat clock synchronization device and enter row clock
It is synchronous.Clock synchronization device receiving frame is treated, and second position and nanosecond position are obtained to frame parsing, it is synchronous to complete clock.
Preferably, it is above-mentioned to treat that clock synchronization device parsing frame obtains second position and nanosecond position, treat clock synchronization device progress
Clock can synchronously be realized by following steps, for example, treating the encoded byte type of clock synchronization device judgment frame frame head;
Frame head be encoded to the first byte in the case of, parsing obtain by treat clock synchronization device the local second position be revised as the second position Jia 1,
Treat the information that the position of local nanosecond of clock synchronization device is reset;Or frame head be encoded to the second byte in the case of, parsing
Obtain and second position be revised as in the position of local second for treating clock synchronization device, treat that the position of local nanosecond of clock synchronization device is not corrected,
The information normally counted.Treat that clock synchronization device obtains the temporal information of synchronised clock according to the encoded byte type of frame head,
And then it is synchronous to complete to treat the clock of clock synchronization device.
In the preferred embodiment there is provided a kind of clock synchronization apparatus, as shown in Fig. 2 the clock synchronization apparatus includes:
Interception module 202, for the interception time information from the data time stamp in time synchronization protocol message;Processing module 204, even
Interception module 202 is connected to, for by the temporal information component frame;Sending module 206, is connected to processing module 204, for sending out
The frame is sent, wherein, the frame enters row clock synchronization for treating clock synchronization device.
In above preferred embodiment, interception module 202 is intercepted from the data time stamp in time synchronization protocol message
Temporal information, processing module 204 is by the temporal information component frame, the transmission time information in the form of frames of sending module 206, with complete
It is synchronous into the clock for treating clock synchronization device, it is possible to achieve by the time synchronized in the communication equipment for supporting time synchronization protocol
Information and the communication equipment for not supporting time synchronization protocol(Or unit)Shared so that do not support time synchronization protocol
Communication equipment can to enter row clock according to the temporal information of time synchronization protocol indirectly by the form of frame synchronous, so as to expand
The use scope of time synchronization protocol is opened up;Meanwhile, transmission time information in the form of frames, implementation is simple, reduces money
The usage amount in source.
In order to ensure the time that clock synchronization device was treated within one second time carries out sufficient number of amendment, at this preferably
In embodiment, as shown in figure 3, above-mentioned clock synchronization apparatus also includes:Selecting module 208, is connected to interception module 202, is used for
In the case of the one of the integer point that the nanosecond position of local zone time is zero or the nanosecond of local zone time position is the whole second, selection sends institute
The set frequency of frame is stated, the corresponding frequency of the set frequency is both fixed cycles.
In order to improve the accuracy that clock is synchronous, accuracy, in the preferred embodiment, above-mentioned processing module 204 are also used
In the predeterminated position that second position is deposited in frame, nanosecond position is deposited in the frame head of frame, wherein, when the knot for the both fixed cycles for sending frame
In the case that the nanosecond position of beam time is zero, nanosecond position is encoded to the first byte according to the first coded system;Or when transmission
In the case that the nanosecond position of the end time of both fixed cycles of frame is the one of the integer point of whole second, it will be received according to the second coded system
Second position is encoded to the second byte.
In order to ensure to treat that the temporal information that clock synchronization device is obtained is consistent with transmitting terminal temporal information when there is jump second,
In the preferred embodiment, above-mentioned sending module 206, is additionally operable to, in the case where the counting cycle reaches, send frame, wherein, meter
One number time preset time difference smaller than both fixed cycles.
In the preferred embodiment there is provided a kind of communication equipment, as shown in figure 4, communication equipment includes:Receiving module
402, in the case where receiving the start bit of frame, receiving frame, wherein, frequency for receiving frame is sends the set of frame
The integral multiple of frequency;Parsing module 404, is connected to receiving module 402, second position and nanosecond position is obtained for parsing frame, when treating
It is synchronous that clock synchronizer enters row clock.
Preferably example is applied above-mentioned, and receiving module 402 receives above-mentioned frame, solution in the case where receiving the start bit of frame
Analyse module 404 and second position and nanosecond position are obtained to frame progress parsing, row clock synchronization is entered to treat clock synchronization device.
Preferably, above-mentioned communication equipment can be the communication equipment for supporting time synchronization protocol(Or unit), also may be used
Can be that the communication for supporting time synchronization protocol is set in above-mentioned communication equipment to be the communication equipment for not supporting time synchronization protocol
It is standby(Or unit), can realize that clock is synchronous by the form of above-mentioned frame, to reduce the use of resource;In above-mentioned communication
Equipment is not support the communication equipment of time synchronization protocol, can pass through communication in the form of frames with support time synchronization protocol
Equipment(Or unit)Temporal information in shared time synchronization protocol message, it is synchronous to complete clock, so that with simple
Mode realizes the synchronization of clock, meanwhile, extend the use scope of agreement.
Preferably, it is the communication equipment of support time synchronization protocol in above-mentioned communication equipment(Or unit)When, this leads to
Believe equipment(Or unit)Above-mentioned clock synchronization apparatus can be included, sent in the form of frames in time synchronization protocol message
Temporal information gives other communication equipments or unit.
Preferably, above-mentioned parsing module 404, is additionally operable to judge the encoded byte type of the frame head of above-mentioned frame;In frame head
In the case of being encoded to the first byte, second position is revised as in the position of local second for treating clock synchronization device by parsing acquisition Jia 1, treats clock
The information that the position of local nanosecond of synchronizer is reset;Or frame head be encoded to the second byte in the case of, parsing incited somebody to action
Treat that second position is revised as in the position of local second of clock synchronization device, treat that the position of local nanosecond of clock synchronization device is not corrected, normal meter
Several information.Treat that clock synchronization device obtains the temporal information of synchronised clock according to the encoded byte type of frame head, so it is complete
It is synchronous into the clock for treating clock synchronization device.
Each above-mentioned preferred embodiment is described in detail below in conjunction with accompanying drawing.
In the present embodiment, to realize that clock is same by simplifying clock synchronization compliant with precision time protocol information transmission in microwave telecommunication system equipment
Exemplified by step, to describe above-mentioned clock synchronizing method, to realize 80 data time stamps in agreement(Second counts 48, and nanosecond counts
32)In the transmission of internal system.Using internal system interconnection line, and the appropriate processing unit that transmits/receives reaches the accurate time
The purpose of information transmission.
Above-mentioned clock synchronizing method comprises the following steps:
Step A, in clock transmitting portion, dispensing device by being standard second position and nanosecond position by the interception of 1588 timestamps,
The related second temporal information to be sent of generation, and carry the pulse of nanosecond information.The second temporal information to be sent passes through specific
Coded system, is transmitted with constant rate of speed on the proprietary signal wire of internal system clock.Nanosecond, digit pulse changed by proprietary protocol
For correlative coding, sent together with second, start bit and check bit composition related data frame.
Step B, in clock receiving portion, reception device receives the data frame to receive clock, solves the second of internal correlation
Position information and nanosecond pulse coding, corresponding nanosecond position is gone out according to the nanosecond pulse code restoration, is turned into second position information combination
Complete temporal information.
The detailed process that dispensing device described in step A sends 1588 timestamps (80) composition data frame is as follows:
A1, by 80 data second position and nanosecond position take out, nanosecond position be zero(Jump second) when or have other cycles hair
Send requirement(The cycle one is set to the one of the integer point of whole second)When, local tranmitting data register is selected, frequency is f1, open local count
Device.
A2, second position deposited in into the predeterminated position of data frame, in order to when parsing data frame directly on predeterminated position
Parsing obtains second position, improves the efficiency of parsing data frame, and data frame head represents nanosecond position coding, when data frame correspondence jump second week
During the phase, nanosecond position is encoded to by a special byte by the first pre-arranged code mode(Equivalent to above-mentioned first byte), when this
When data frame corresponds to common cycle transmission frame, nanosecond position is encoded to by a common byte by the second pre-arranged code mode
(Equivalent to above-mentioned second byte).
In order to ensure the temporal information recovered when there is jump second is consistent with transmitting terminal temporal information, in this preferred embodiment
In, when local counter counts count to a fixed numbers T1, log-on data frame is sent.The local count value is less than set send
Cycle, the difference with the set transmission cycle is △ t1, and the difference is the fixation lead that standard sends the cycle.
A4, data send baud rate and individual bit duration and can determined as needed, single when data frame length is L
During the individual m transmission cycle of bit duration, duration TL=L*m is sent.
Reception device receives the data frame to receive clock in step B, solves the second position information and nanosecond arteries and veins of internal correlation
Punching coding, corresponding nanosecond position is gone out according to the nanosecond pulse code restoration, and complete temporal information is turned into second position information combination
Comprise the following steps:
B1, whne the receiving link status machine of clock synchronization device be not detected by data wire have startup send signal when, maintain
It is idle.
B2, when when the receives link of clock synchronization device receives data start bit, into data receiving state, data
Receive integral multiple of the clock frequency f2 requirements for data tranmitting data register frequency f1, it is preferable that multiple can be selected as needed, can
Select frequency f1 equal with frequency f2.
B3, when after clock synchronization device has received data, in detection data frame with time correlation nanosecond position coding and
Second position information.
B4, comparison nanosecond position coding, if the special byte in jump second cycle(Equivalent to above-mentioned first byte), receiving
The signal of second+1 is sent out in end when providing second position information, the local timing module of recipient resets local timing according to the signal of second+1 and received
Second position, while the second result+1 that local timing second position is revised as receiving.If nanosecond position is encoded to common byte(Equivalent to upper
State the second byte), a second count results are only provided during reception, the local timing module nsec portion of recipient is normally counted and do not repaiied
Change, only second position is modified, local timing second position is modified to the second count results of reception.
In above-mentioned clock synchronizing method, with the use of phaselocked loop, transmit/receive and microwave can be achieved under conditions of unit set
The accurate transfer of standby inside PTP temporal informations, extends the synchronous scope of single PTP units.For example, using phaselocked loop
Under the conditions of, it is possible to achieve it is synchronous without difference with the transmission time to receive the time, without using under phase lock loop condition, producing and send/
The related sampling error of receives frequency, therefore, it can, according to specifically used scene, according to specifically used frequency be determined whether
Use phaselocked loop.
In the present embodiment, it is necessary to be from support 1588 agreements in the way of data frame by 80 complete temporal informations
System unit is sent to the synchronous unit of the other needs of system, and occupation mode is simple, and resource usage amount is few, and accuracy is controllable.Fig. 5 is
The schematic diagram of Time Transmission system according to embodiments of the present invention, as shown in figure 5, the clock synchronization system includes:Time block
502(Equivalent to above-mentioned interception module 202), second coding/sending module 504(Equivalent to above-mentioned processing module 204 and sending module
206), send time block 506, receiving module 508(Equivalent to above-mentioned receiving module 402 and parsing module 404)And timing
Module 510.Fig. 6 is the schematic diagram of tranmitting data register according to embodiments of the present invention with receiving clock physical interconnection, as shown in fig. 6,
Frame is sent to receiving module 508 by sending module 504 with set frequency f1, and receiving module 508 is with frequency f2 receiving frames, to obtain
Temporal information, second and nanosecond position, it is synchronous to complete clock.
The time synchronization process realized based on above-mentioned clock synchronization system is comprised the following steps:
S1 clock transmitting portions, time block 502 is by being standard by the data time stamp interception in 1588 protocol massages
Second position and nanosecond position, encoded by the second/sending module 504 generates related second temporal information to be sent, and carries nanosecond information
Pulse.The second temporal information to be sent is by specific coding mode, with constant rate of speed in the proprietary signal of internal system clock
Transmitted on line.Nanosecond, digit pulse was converted to correlative coding by proprietary protocol, with second position, start bit and check bit composition dependency number
Sent together according to frame.
In above-mentioned steps S1, it may comprise steps of:1)Second, coding/sending module 504 was it needs to be determined that time data
The transmission cycle of frame, transmission cycle selection is the one of the integer point of whole second, to ensure within one second time to reception system(Phase
When in time block 510)Time carries out sufficient number of amendment.Times of revision is that N sends cycle T with data frame(Second)Need full
It is enough lower relation:N*T=1.
2)Second coding/sending module 504 generates two kinds of data frames for having different nanoseconds positions coding.When the frame has been sent, under
When occurring whole second saltus step before once sending, the frame is special data frame, as shown in fig. 7, nanosecond position is encoded to special byte(Quite
In above-mentioned first byte);Do not occur whole second saltus step before the frame has sent to next frame and sent, the frame is normal data frame, such as
Shown in Fig. 8, nanosecond is encoded to common byte(Equivalent to above-mentioned second byte).
3)Sending time block 506 needs to determine the transmission time point of data frame according to local count value T1.Assuming that the cycle
Property to send the desired cycle be T, transmissions lead is △ t1, data frame propagation delay △ t2, and reception processing is delayed △ t3.It is required that
△ t1=△ t2+ △ t3 (design is met)
T=T1+ △ t1 (are met) naturally
To ensure that the temporal information recovered when there is jump second is consistent with transmitting terminal temporal information.
Data frame propagation delay △ t2 are defined as arbitrary data and sent from transmitting terminal, and receiving terminal is reached through system interconnection line
Delay;Since reception processing delay △ t3 be defined as receiving terminal receiving initial signal, until sending out full time information institute
The time interval of experience.Each time relationship is referring to accompanying drawing 9.
4)Required time is sent, it is necessary to meet available for time data frame is calculated
△ t1 >=TL (design is met)
To ensure that data frame is sent completely within this transmission cycle.
S2:In clock receiving portion.Receiving module 508 receives the data frame to receive clock, solves phase inside data frame
The second position information and nanosecond pulse coding of pass, corresponding nanosecond position is gone out according to the nanosecond pulse code restoration, with second position information group
Synthesize complete temporal information.
Comprise the following steps in above-mentioned steps S2:
1)Under the control non-receptive state of receiving module 508, i.e., when without simultaneously operating, receiving terminal maintains former output, no
Recipient's local zone time is corrected.
2)The data receiving state machine of receiving module 508 starts, and starts data receiver.Clock frequency f2 is received to send out for data frame
Send frequency f1 integral multiple, it is ensured that receive data complete sample.
3)After the completion of data frame receipt, receiving module 508 disassembles data frame according to transmission frame format, by the second position information with
Nanosecond position frame head coding separation.
4)Receiving module 508 determines that the data frame is common time data frame still special data corresponding with jump second event
Frame.When data frame is special data frame, the corresponding signal of second+1 is provided, time block 510 resets local zone time nanosecond position, the second
Information is modified using the numerical value after second signal adds 1 is received, and realizes the local zone time of time block 510 and transmitting terminal instant time
Synchronization.Data frame corresponds to the transmission of jump second special data frame, receives process refer to the attached drawing 10.
As can be seen from the above description, the present invention realizes following technique effect:From time synchronization protocol message
Data time stamp in interception time information, and by the temporal information component frame, transmission time information in the form of frames, to complete
The clock for treating clock synchronization device is synchronous, it is possible to achieve believe the time synchronized in the communication equipment for supporting time synchronization protocol
Breath and the communication equipment for not supporting time synchronization protocol(Or unit)Shared so that do not support time synchronization protocol
Communication equipment can enter row clock synchronization according to the temporal information of time synchronization protocol indirectly by the form of frame, so as to extend
The use scope of time synchronization protocol;Meanwhile, transmission time information in the form of frames, implementation is simple, reduces resource
Usage amount.In addition, nanosecond position is encoded to different types of byte, it is accurate in order to when whne clock synchronization device parsing frame
Second position information and nanosecond position information really are obtained, so as to improve the synchronous accuracy of clock, accuracy;In order to ensure at one second
The interior time for treating clock synchronization device carries out sufficient number of amendment, is zero or local zone time in the nanosecond position of local zone time
Nanosecond position for the integer point of whole second one in the case of, selection sends the set frequency of frame, and the feelings reached in the cycle of counting
Under condition, frame is sent, wherein, cycle preset time difference smaller than both fixed cycles is counted, to ensure to treat that clock is same when there is jump second
The temporal information for walking equipment acquisition is consistent with transmitting terminal temporal information.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and constituted
Network on, alternatively, the program code that they can be can perform with computing device be realized, it is thus possible to they are stored
Performed in the storage device by computing device, and in some cases, can be shown to be performed different from order herein
The step of going out or describe, 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 and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (9)
1. a kind of clock synchronizing method, it is characterised in that including:
The interception time information from the data time stamp in time synchronization protocol message;
By the temporal information component frame;
The frame is sent, wherein, the frame enters row clock synchronization for treating clock synchronization device;
Wherein, by before the temporal information component frame, in addition to:In the nanosecond position of local zone time be zero or local zone time is received
Second position for the integer point of whole second one in the case of, selection sends the set frequency of the frame, the corresponding frequency of the set frequency
For both fixed cycles.
2. according to the method described in claim 1, it is characterised in that the time synchronization protocol message includes:1588 agreement reports
Text.
3. according to the method described in claim 1, it is characterised in that the temporal information includes second position and nanosecond position.
4. method as claimed in any of claims 1 to 3, it is characterised in that temporal information is constituted into the frame bag
Include:
Second position is deposited in the predeterminated position of the frame, nanosecond position is deposited in the frame head of the frame, wherein, work as hair
Send both fixed cycles of the frame end time nanosecond position be zero in the case of, according to the first coded system by the nanosecond position
It is encoded to the first byte;Or
When the both fixed cycles for sending the frame end time nanosecond position for the integer point of whole second one in the case of, according to the
Nanosecond position is encoded to the second byte by two coded systems.
5. method according to claim 4, it is characterised in that sending the frame includes:
In the case where the cycle of counting reaches, the frame is sent, wherein, when the counting cycle, both fixed cycle was small default than described in
Between difference.
6. method according to claim 4, it is characterised in that after the frame is sent, in addition to:
It is described treat the start bit that clock synchronization device receives the frame in the case of, receive the frame, wherein, for receiving
The frequency for stating frame is the integral multiple of the set frequency;
It is described to treat that clock synchronization device parses the frame and obtains the second position and nanosecond position, treat clock synchronization device to described
Enter row clock synchronous.
7. method according to claim 6, it is characterised in that the parsing frame obtains the second position and nanosecond position,
Treat that clock synchronization device enters row clock synchronous package and included to described:
It is described to treat that clock synchronization device judges the encoded byte type of the frame frame head;
The frame head be encoded to first byte in the case of, parsing obtain treat the local of clock synchronization device by described
Second position is revised as the second position and Jia 1, the information of the position clearing of local nanosecond for treating clock synchronization device;Or
The frame head be encoded to second byte in the case of, parsing obtain treat the local of clock synchronization device by described
Second, the second position was revised as in position, and the position of local nanosecond for treating clock synchronization device is not corrected, the information normally counted.
8. a kind of clock synchronization apparatus, it is characterised in that including:
Interception module, for the interception time information from the data time stamp in time synchronization protocol message;
Processing module, for by the temporal information component frame;
Sending module, for sending the frame, wherein, the frame enters row clock synchronization for treating clock synchronization device;
Wherein, in addition to:Selecting module, for the nanosecond position in local zone time be zero or the nanosecond of local zone time position is the whole second
In the case of the one of integer point, selection sends the set frequency of the frame, and the corresponding frequency of the set frequency is both fixed cycles.
9. a kind of communication equipment, it is characterised in that including:
Receiving module, in the case where receiving the start bit of frame, receiving the frame, wherein, for receiving the frame
Frequency is the integral multiple for the set frequency for sending the frame, wherein, when the frame is from the data in time synchronization protocol message
Between stab in intercept temporal information composition;
Parsing module, second position and nanosecond position are obtained for parsing the frame, are treated clock synchronization device and are entered row clock synchronization.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210204698.XA CN103516454B (en) | 2012-06-20 | 2012-06-20 | Clock synchronizing method, device and communication equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210204698.XA CN103516454B (en) | 2012-06-20 | 2012-06-20 | Clock synchronizing method, device and communication equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103516454A CN103516454A (en) | 2014-01-15 |
CN103516454B true CN103516454B (en) | 2017-11-03 |
Family
ID=49898564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210204698.XA Active CN103516454B (en) | 2012-06-20 | 2012-06-20 | Clock synchronizing method, device and communication equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103516454B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104320216B (en) * | 2014-10-10 | 2018-04-17 | 宁波三星智能电气有限公司 | A kind of pulse per second (PPS) code compression method |
CN105846937B (en) * | 2015-01-12 | 2019-07-23 | 中兴通讯股份有限公司 | Time processing method and device |
US10194185B2 (en) * | 2015-08-14 | 2019-01-29 | Sharp Kabushiki Kaisha | Systems and methods for communicating time representations |
CN107547188B (en) * | 2017-08-02 | 2020-04-24 | 北京东土军悦科技有限公司 | Clock recovery method and device |
CN109426911B (en) | 2017-08-31 | 2022-04-05 | 华为技术有限公司 | Method and device for evaluating software running environment quality of equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1819579A (en) * | 2005-12-15 | 2006-08-16 | 中国人民解放军国防科学技术大学 | Open loop time delivering method |
CN100479361C (en) * | 2005-12-15 | 2009-04-15 | 中国人民解放军国防科学技术大学 | Synchronous medium access controller |
CN101867452A (en) * | 2010-06-10 | 2010-10-20 | 国网电力科学研究院 | Communication method of serial real-time bus special in electricity |
CN102215100A (en) * | 2011-04-27 | 2011-10-12 | 盛科网络有限公司 | Virtual analog-to-digital conversion core device based on IEEE (Institute of Electrical and Electronic Engineers) 1588 Ethernet |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902291B (en) * | 2009-05-27 | 2014-11-05 | 华为技术有限公司 | Method, equipment and system for precise time synchronization |
JP5458719B2 (en) * | 2009-07-24 | 2014-04-02 | 日本電気株式会社 | Clock synchronization system, communication apparatus, method and program |
-
2012
- 2012-06-20 CN CN201210204698.XA patent/CN103516454B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1819579A (en) * | 2005-12-15 | 2006-08-16 | 中国人民解放军国防科学技术大学 | Open loop time delivering method |
CN100479361C (en) * | 2005-12-15 | 2009-04-15 | 中国人民解放军国防科学技术大学 | Synchronous medium access controller |
CN101867452A (en) * | 2010-06-10 | 2010-10-20 | 国网电力科学研究院 | Communication method of serial real-time bus special in electricity |
CN102215100A (en) * | 2011-04-27 | 2011-10-12 | 盛科网络有限公司 | Virtual analog-to-digital conversion core device based on IEEE (Institute of Electrical and Electronic Engineers) 1588 Ethernet |
Also Published As
Publication number | Publication date |
---|---|
CN103516454A (en) | 2014-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103516454B (en) | Clock synchronizing method, device and communication equipment | |
US8599827B2 (en) | Methods and apparatuses for maintaining synchronization between a radio equipment controller and an item of radio equipment | |
CN101741701B (en) | Synchronous dispatching method and synchronous dispatching device | |
CN102598556B (en) | For the method and apparatus of optimizing packet timing transport | |
CN1212715C (en) | Method for generating clock signal using for up-information channel | |
CN101931884B (en) | A kind of method of data synchronization and system | |
CN102244603B (en) | Method, equipment and system for transmitting message bearing time | |
CN101741853B (en) | Method for synchronizing clock time, line card veneer and network equipment | |
EP2847921A1 (en) | Timing synchronization for networks with radio links | |
WO2017144082A1 (en) | Time synchronization between nodes connected by a wireless network | |
CN108809356A (en) | A kind of implementation method based on TDMA technology hopped-frequency pulses | |
CN109996325B (en) | Clock synchronization system and method of wireless sensor network | |
CN103404226A (en) | Method and device for data transmission | |
CN104581923A (en) | Method for transmitting precise time information through wireless link | |
CN107925559A (en) | Support the apparatus and method of multi-clock zone clock transmission | |
CN102356603A (en) | Apparatus and method of scheduling timing packets to enhance time distribution in telecommunication networks | |
CN103152118A (en) | Base band unit and remote radio unit data service synchronization method, device and system | |
CN100581094C (en) | Network clock synchronizing method for short distance radio communication network | |
CN105610727A (en) | Network data transmission method and device | |
KR100752409B1 (en) | Apparatus and method for distributing frame synchronization information at a base station | |
Liang et al. | Design and implementation of time-sensitive wireless IoT networks on software-defined radio | |
CN102342051B (en) | For coming the method for synchronised clock and relevant system and module by separating transmission first and second data via at least one time distribution protocol | |
CN107959537B (en) | State synchronization method and device | |
CN107508648A (en) | Time triggered Ethernet substep time synchronized strategy based on functions of the equipments classification | |
CN100401657C (en) | Apparatus for realizing network synchronization in personal cell phone based on IP |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |