[go: up one dir, main page]

CN109842603A - A kind of method for synchronizing time and device - Google Patents

A kind of method for synchronizing time and device Download PDF

Info

Publication number
CN109842603A
CN109842603A CN201711230733.4A CN201711230733A CN109842603A CN 109842603 A CN109842603 A CN 109842603A CN 201711230733 A CN201711230733 A CN 201711230733A CN 109842603 A CN109842603 A CN 109842603A
Authority
CN
China
Prior art keywords
timestamp
time
clock
message
master
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
Application number
CN201711230733.4A
Other languages
Chinese (zh)
Inventor
郭晓明
焦凤霞
张晨
朱波
彭朝阳
赵安安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRSC Beijing Urban Transit Technology Co Ltd
Original Assignee
CRSC Beijing Urban Transit Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Beijing Urban Transit Technology Co Ltd filed Critical CRSC Beijing Urban Transit Technology Co Ltd
Priority to CN201711230733.4A priority Critical patent/CN109842603A/en
Publication of CN109842603A publication Critical patent/CN109842603A/en
Pending legal-status Critical Current

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

It includes master clock broadcast time sync message that the present invention, which provides a kind of method for synchronizing time and device, method, obtains the first time stamp for broadcasting the message, broadcast follows message after the preset time period of broadcast;Above-mentioned two message is received from clock, it obtains second and stabs at the first time, according to the mark and port numbers of the master clock in time synchronization message to master clock forward delay interval request message, obtain the third timestamp sent, reception delay request message, it obtains and receives the 4th timestamp of the message, according to the mark of the slave clock in message and port numbers to from clock forward delay interval request response message after the preset time period for receiving latency request message;The 4th timestamp that the message is obtained from clock calculates the time deviation between master-salve clock according to aforementioned four timestamp, and adjusts according to time deviation from the time of clock, so that it is synchronous with master clock time.It is high using timing tracking accuracy of the present invention;Original Ethernet data line can be used, at low cost, configuration is convenient.

Description

A kind of method for synchronizing time and device
Technical field
The present invention relates to computer processing technical field, in particular to a kind of method for synchronizing time and device.
Background technique
CBTC system used generally in track traffic signal control system is that a kind of train based on communication is controlled automatically System processed.Advantage can be achieved on the two-way communication between vehicle ground, while can quickly transmit a large amount of information and data.It is pressed Five ATS, interlocking, ATP/ATO, DCS, maintenance subsystem component parts can be divided into according to subsystem.
Realize CBTC system safe and reliable operation premise be between system the time can precise synchronization, in this way, each other In communication and the transmission of signal, subsystems make corresponding Train Control and dimension according to the command standard of synchronization Shield.
Existing Internet time protocol NTP (Network Time Protocol) network transmission, TCP/IP layer network Delay causes uncertainty, and synchronization accuracy is low.
Summary of the invention
The present invention provides a kind of method for synchronizing time and device at least partly solving above-mentioned technical problem.
In a first aspect, the present invention provides a kind of method for synchronizing time, comprising:
Master clock broadcast time sync message obtains the first time stamp for broadcasting the time synchronization message, and is broadcasting Broadcast follows message after first preset time period of the time synchronization message, described to follow when carrying described first in message Between stab, in the time synchronization message include master clock mark and port numbers;
After the time synchronization message is received from clock, the second time for receiving the time synchronization message is obtained Stamp, and receive it is described follow message after, follow the first time in message to stab described in acquisition;
It is asked from clock according to the mark and port numbers of the master clock in the time synchronization message to master clock forward delay interval Message is sought, the third timestamp for sending the latency request message is obtained, includes the mark from clock in the latency request message Knowledge and port numbers;
Master clock receives the latency request message, obtains the 4th timestamp for receiving the latency request message, and After the second preset time period for receiving the latency request message, according to the mark from clock and port numbers to from when Clock forward delay interval request response message carries the 4th timestamp in the latency request response message;
It is described to receive the latency request response message from clock, when obtaining the 4th in the latency request response message Between stab, according to first time stamp, the second timestamp, third timestamp and the 4th timestamp, calculate between master-salve clock Time deviation, and it is described from the time of clock according to the time deviation adjustment between the master-salve clock, so that itself and master clock Time synchronization.
Preferably, according to first time stamp, the second timestamp, third timestamp and the 4th timestamp, principal and subordinate is calculated Time deviation between clock, comprising:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, calculates network transmission and prolong When;
According to the first time stamp, the second timestamp and the network transmission delay, calculate master-salve clock between when Between deviation.
Preferably, according to first time stamp, the second timestamp, third timestamp and the 4th timestamp, network is calculated Transmission delay, comprising:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, calculated by formula (one) Network transmission delay
tdelay=[(t4-t1)-(t3-t2)]/2 (one)
Wherein, tdelayFor network transmission delay, t1To stab at the first time, t2For the second timestamp, t3For third timestamp, t4For the 4th timestamp.
Preferably, be delayed according to first time stamp, the second timestamp and the network transmission, calculate master-salve clock it Between time deviation, comprising:
According to first time stamp, the second timestamp and network transmission delay, principal and subordinate is calculated by formula (two) Time deviation between clock
toffset=t2-t1-tdelay(2)
Wherein, toffsetTime deviation between master-salve clock, t1To stab at the first time, t2For the second timestamp, tdelay For network transmission delay.
Preferably, described from the time of clock according to the time deviation adjustment between the master-salve clock, so that itself and master Synchronizing clock time, comprising:
The time deviation between the master-salve clock will be subtracted from the current time of clock as adjusted from clock Current time.
Preferably, when the first time stamp of the broadcast time synchronization message is that the time synchronization message passes through main Timestamp when MII interface between the MAC layer and PHY of clock;Second timestamp for receiving the time synchronization message Timestamp when for the time synchronization message by from MII interface between the MAC layer and PHY of clock;Described in the transmission The third timestamp of latency request message is described in the latency request message passes through from the MII between the MAC layer and PHY of clock Timestamp when interface;The 4th timestamp for receiving the latency request message passes through institute for the latency request message State the timestamp when MII interface between the MAC layer of master clock and PHY.
Preferably, the master clock includes control centre's ATS equipment, main track station and the rolling stock section in CBTC system ATS equipment, ground ZC equipment clock and CI equipment, it is described from clock include main track station and rolling stock section in CBTC system ATS equipment, ground ZC equipment, CI equipment, vehicle-mounted ATP equipment and vehicle-mounted ATO equipment.
Second aspect, the present invention also provides a kind of time synchronism apparatus, comprising:
Radio unit is used for master clock broadcast time sync message, when obtaining broadcast the time synchronization message first Between stab, and broadcast follows message after the first preset time period for broadcasting the time synchronization message, and described follow in message is taken It is stabbed with the first time, includes the mark and port numbers of master clock in the time synchronization message;
First acquisition unit, after receiving the time synchronization message from clock, it is same that acquisition receives the time Walk the second timestamp of message, and receive it is described follow message after, follow the first time in message to stab described in acquisition;
Second acquisition unit, for from clock according to the mark of the master clock in the time synchronization message and port numbers to Master clock forward delay interval request message obtains the third timestamp for sending the latency request message, the latency request message In include mark and port numbers from clock;
Third acquiring unit receives the latency request message for master clock, and acquisition receives the latency request report 4th timestamp of text;
Transmission unit, for after the second preset time period for receiving the latency request message, according to it is described from when The mark and port numbers of clock are described to carrying from clock forward delay interval request response message, the latency request response message 4th timestamp;
4th acquiring unit receives the latency request response message from clock for described, obtains the latency request The 4th timestamp in response message;
Adjustment unit is calculated, for according to first time stamp, the second timestamp, third timestamp and the 4th time Stamp calculates the time deviation between master-salve clock, and described from clock according to the time deviation adjustment between the master-salve clock Time so that it is synchronous with master clock time.
Preferably, the calculating adjustment unit, is also used to:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, calculates network transmission and prolong When;
According to the first time stamp, the second timestamp and the network transmission delay, calculate master-salve clock between when Between deviation.
Preferably, the calculating adjustment unit, is also used to:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, calculated by formula (one) Network transmission delay
tdelay=[(t4-t1)-(t3-t2)]/2 (one)
Wherein, tdelayFor network transmission delay, t1To stab at the first time, t2For the second timestamp, t3For third timestamp, t4For the 4th timestamp.
As shown from the above technical solution, the time synchronization timing tracking accuracy for carrying out master-salve clock using the present invention is high, together Time precision is walked up to the wonderful grade of sub-micro;Original Ethernet data line can be used, at low cost, configuration is convenient;It simultaneously can be Protocol Design is carried out on the basis of original Ethernet data line, without carrying out the increase of communication line.
Detailed description of the invention
Fig. 1 is a kind of flow chart for method for synchronizing time that one embodiment of the invention provides;
Fig. 2 is the ATS grid topological diagram with boundary clock;
Fig. 3 is a kind of functional block diagram for time synchronism apparatus that another embodiment of the present invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow chart for method for synchronizing time that one embodiment of the invention provides.
A kind of method for synchronizing time as shown in Figure 1, comprising:
S101, master clock broadcast time sync message, the first time for obtaining the broadcast time synchronization message stab, and It broadcasts broadcast after the first preset time period of the time synchronization message and follows message, described follow carries described the in message One timestamp includes the mark and port numbers of master clock in the time synchronization message;
S102, after receiving the time synchronization message from clock, acquisition receives the second of the time synchronization message Timestamp, and receive it is described follow message after, follow the first time in message to stab described in acquisition;
S103, prolong from clock according to the mark and port numbers of the master clock in the time synchronization message to master clock transmission When request message, obtain the third timestamp for sending the latency request message, include from clock in the latency request message Mark and port numbers;
S104, master clock receive the latency request message, obtain the 4th time for receiving the latency request message Stamp, and after the second preset time period for receiving the latency request message, according to the mark and port numbers from clock To carrying the 4th timestamp from clock forward delay interval request response message, the latency request response message;
S105, it is described receive the latency request response message from clock, obtain in the latency request response message 4th timestamp calculates master-salve clock according to first time stamp, the second timestamp, third timestamp and the 4th timestamp Between time deviation, and it is described from the time of clock according to the time deviation adjustment between the master-salve clock so that itself and Master clock time is synchronous.
In a specific embodiment, the first time stamp of the broadcast time synchronization message is the time synchronization Message passes through the timestamp when MII interface between the MAC layer and PHY of master clock;It is described to receive the time synchronization message Timestamp of second timestamp when being the time synchronization message by from MII interface between the MAC layer and PHY of clock; The third timestamp for sending the latency request message be the latency request message by the MAC layer from clock with Timestamp when MII interface between PHY;The 4th timestamp for receiving the latency request message is that the delay is asked Timestamp when MII interface between the MAC layer and PHY for asking message to pass through the master clock.
The time synchronization timing tracking accuracy for carrying out master-salve clock using the present embodiment is high, and synchronization time, precision was up to sub-micro Wonderful grade;Original Ethernet data line can be used, at low cost, configuration is convenient;It simultaneously can be in original Ethernet data line On the basis of carry out Protocol Design, without carrying out the increase of communication line.
As a kind of preferred embodiment, in the step S105 according to the first time stamp, the second timestamp, third Timestamp and the 4th timestamp calculate the time deviation between master-salve clock, comprising:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, calculates network transmission and prolong When;
In a specific embodiment, according to first time stamp, the second timestamp, third timestamp and the 4th time Stamp calculates network transmission delay, comprising:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, calculated by formula (one) Network transmission delay
tdelay=[(t4-t1)-(t3-t2)]/2 (one)
Wherein, tdelayFor network transmission delay, t1To stab at the first time, t2For the second timestamp, t3For third timestamp, t4For the 4th timestamp.
According to the first time stamp, the second timestamp and the network transmission delay, calculate master-salve clock between when Between deviation.
In a specific embodiment, it is delayed according to first time stamp, the second timestamp and the network transmission, meter Calculate the time deviation between master-salve clock, comprising:
According to first time stamp, the second timestamp and network transmission delay, principal and subordinate is calculated by formula (two) Time deviation between clock
toffset=t2-t1-tdelay(2)
Wherein, toffsetTime deviation between master-salve clock, t1To stab at the first time, t2For the second timestamp, tdelay For network transmission delay.
As a kind of preferred embodiment, being adjusted according to the time deviation between the master-salve clock in the step S105 The time from clock, so that it is synchronous with master clock time, comprising:
The time deviation between the master-salve clock will be subtracted from the current time of clock as adjusted from clock Current time.
The master clock may include that control centre's ATS equipment, main track station and the ATS of rolling stock section in CBTC system are set Standby, ground ZC equipment clock and CI equipment, described may include the ATS at main track station and rolling stock section in CBTC system from clock Equipment, ground ZC equipment, CI equipment, vehicle-mounted ATP equipment and vehicle-mounted ATO equipment.
Three specific embodiments are provided below and illustrate the application of method for synchronizing time of the invention in CBTC system.
Example 1 is for realizing time synchronization between the ATS equipment of ground:
Network topology of the ATS system with boundary clock is as shown in Fig. 2, ATS equipment is distributed mainly on control centre, main track vehicle It stands and rolling stock section.Control centre's ATS equipment is the core equipment of signal system monitoring, based on the clock source configuration of this part Clock source.It carries out being communicated with the slave ATS equipment of main track station and rolling stock section by the interchanger with boundary clock.
Control centre's ATS equipment clock provides clock source for whole system, is called super master clock.
When carrying out time synchronization, time synchronization message is issued in the form of multicast by control centre's ATS equipment default, simultaneously When time synchronization message is by MII interface between the MAC layer and PHY layer of master clock, master clock will record the time at this time Stamp, and what is sent after this time stamp is put into follows in message, after the interchanger with boundary clock, with master clock institute In domain, the identical terminal device of section can receive time synchronization message, time synchronization message by MAC layer from clock with When MII interface between PHY layer, the timestamp followed in message that will record timestamp at this time from clock with receive later Time deviation can be calculated by doing operation.Simultaneously can according to from when clockwise master clock send latency request message and master The time that clock receives this message obtains timestamp to calculate network delay.Pass through periodicity between ground ATS equipment in this way Clock alignment obtain time synchronization.
Example 2 is by taking the communication of ground ZC device ground equipment as an example:
The ground communication facilities of ZC equipment connection mainly has: ground secure data net (including CI, adjacent ZC), ATS etc..With ATS equipment clock is as master clock, using ground ZC, CI as from clock.There is oneself one in the port of each clock node A clock ID and port numbers are used in corresponding message to identify and uniquely lead or from equipment.
Example 3 is by taking train-ground communication as an example:
Communication system between vehicle ground mainly passes through Radio Network System, predominantly vehicle-mounted ATP/ATO equipment and ground Communication system between ZC (zone controller).Vehicle-mounted ATO/ATP equipment is mainly to pass through the vehicle-mounted nothing of train head and parking stall Line unit is communicated with ground ZC wireless exchange board, based on the wireless router setting of trackside ZC equipment belt boundary clock Clock source is sent out time synchronization message, and vehicular mounted radio units remove receiving time sync message and carry out precision clock synchronization, The transmitting of information provides premise between vehicle ground.
Method for synchronizing time of the present invention is applied in track traffic signal control system, it is synchronous with more accurate clock Technology completes the time synchronization of track traffic signal control system, reaches the ability of lifting system control effect.With original track Traffic signal control system compares safety having the same;For different accuracy in track traffic signal control subsystem, point It is synchronous that clock can be carried out between resolution clock.
Fig. 3 is a kind of functional block diagram for time synchronism apparatus that another embodiment of the present invention provides.
A kind of time synchronism apparatus as shown in Figure 3, comprising:
Radio unit 301 is used for master clock broadcast time sync message, obtains and broadcasts the first of the time synchronization message Timestamp, and broadcast follows message after the first preset time period for broadcasting the time synchronization message, it is described to follow in message The first time stamp is carried, includes the mark and port numbers of master clock in the time synchronization message;
First acquisition unit 302, after receiving the time synchronization message from clock, acquisition receives the time Second timestamp of sync message, and receive it is described follow message after, follow the first time in message to stab described in acquisition;
Second acquisition unit 303, for from clock according to the master clock in the time synchronization message mark and port Number to master clock forward delay interval request message, the third timestamp for sending the latency request message, the latency request are obtained It include the mark and port numbers from clock in message;
Third acquiring unit 304 receives the latency request message for master clock, and acquisition receives the latency request 4th timestamp of message;
Transmission unit 305, for after the second preset time period for receiving the latency request message, according to it is described from The mark and port numbers of clock carry to from clock forward delay interval request response message, the latency request response message State the 4th timestamp;
4th acquiring unit 306 receives the latency request response message from clock for described, obtains the delay and ask Seek the 4th timestamp in response message;
Adjustment unit 307 is calculated, when for according to first time stamp, the second timestamp, third timestamp and the 4th Between stab, calculate the time deviation between master-salve clock, and according to the time deviation adjustment between the master-salve clock it is described from when The time of clock, so that it is synchronous with master clock time.
As a kind of preferred embodiment, the calculating adjustment unit 307 is also used to:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, calculates network transmission and prolong When;
According to the first time stamp, the second timestamp and the network transmission delay, calculate master-salve clock between when Between deviation.
As a kind of preferred embodiment, the calculating adjustment unit 307 is also used to:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, calculated by formula (one) Network transmission delay
tdelay=[(t4-t1)-(t3-t2)]/2 (one)
Wherein, tdelayFor network transmission delay, t1To stab at the first time, t2For the second timestamp, t3For third timestamp, t4For the 4th timestamp.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
It should be noted that in all parts of the device of the invention, according to the function that it to be realized to therein Component has carried out logical partitioning, and still, the present invention is not only restricted to this, can according to need all parts are repartitioned or Person's combination for example, can be single component by some component combinations, or some components can be further broken into more Subassembly.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize some or all portions in device according to an embodiment of the present invention The some or all functions of part.The present invention is also implemented as a part or complete for executing method as described herein The device or device program (for example, computer program and computer program product) in portion.It is such to realize program of the invention It can store on a computer-readable medium, or may be in the form of one or more signals.Such signal can be with It downloads from internet website, is perhaps provided on the carrier signal or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
Embodiment of above is only suitable for illustrating the present invention, and not limitation of the present invention, in relation to the common of technical field Technical staff can also make a variety of changes and modification without departing from the spirit and scope of the present invention, therefore all Equivalent technical solution also belongs to scope of the invention, and scope of patent protection of the invention should be defined by the claims.

Claims (10)

1. a kind of method for synchronizing time characterized by comprising
Master clock broadcast time sync message, obtains the first time stamp for broadcasting the time synchronization message, and described in the broadcast Broadcast follows message after first preset time period of time synchronization message, and described follow carries the first time in message It stabs, includes the mark and port numbers of master clock in the time synchronization message;
After the time synchronization message is received from clock, the second timestamp for receiving the time synchronization message is obtained, and Receive it is described follow message after, follow the first time in message to stab described in acquisition;
It requests to report to master clock forward delay interval from clock according to the mark and port numbers of the master clock in the time synchronization message Text, obtains the third timestamp for sending the latency request message, include in the latency request message from the mark of clock and Port numbers;
Master clock receives the latency request message, obtains the 4th timestamp for receiving the latency request message, and connecing After the second preset time period for receiving the latency request message, sent out according to the mark from clock and port numbers to from clock Latency request response message is sent, the 4th timestamp is carried in the latency request response message;
It is described to receive the latency request response message from clock, obtain the 4th time in the latency request response message Stamp, according to first time stamp, the second timestamp, third timestamp and the 4th timestamp, between calculating master-salve clock when Between deviation, and it is described from the time of clock according to the time deviation adjustment between the master-salve clock so that when itself and master clock Between it is synchronous.
2. the method according to claim 1, wherein when according to first time stamp, the second timestamp, third Between stamp and the 4th timestamp, calculate master-salve clock between time deviation, comprising:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, network transmission delay is calculated;
It is inclined according to first time stamp, the second timestamp and network transmission delay, the time calculated between master-salve clock Difference.
3. according to the method described in claim 2, it is characterized in that, when according to first time stamp, the second timestamp, third Between stamp and the 4th timestamp, calculate network transmission delay, comprising:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, network is calculated by formula (one) Transmission delay
tdelay=[(t4-t1)-(t3-t2)]/2 (one)
Wherein, tdelayFor network transmission delay, t1To stab at the first time, t2For the second timestamp, t3For third timestamp, t4For 4th timestamp.
4. according to the method described in claim 2, it is characterized in that, according to first time stamp, the second timestamp and described Network transmission delay, calculates the time deviation between master-salve clock, comprising:
According to first time stamp, the second timestamp and network transmission delay, master-salve clock is calculated by formula (two) Between time deviation
toffset=t2-t1-tdelay(2)
Wherein, toffsetTime deviation between master-salve clock, t1To stab at the first time, t2For the second timestamp, tdelayFor net Network transmission delay.
5. the method according to claim 1, wherein adjusting institute according to the time deviation between the master-salve clock The time from clock is stated, so that it is synchronous with master clock time, comprising:
The time deviation between the master-salve clock will be subtracted from the current time of clock as adjusted from the current of clock Time.
6. the method according to claim 1, wherein the first time stamp of the broadcast time synchronization message Pass through the timestamp when MII interface between the MAC layer and PHY of master clock for the time synchronization message;It is described to receive institute The second timestamp for stating time synchronization message is the time synchronization message by connecing from the MII between the MAC layer and PHY of clock Timestamp when mouth;The third timestamp for sending the latency request message be the latency request message by it is described from Timestamp when MII interface between the MAC layer and PHY of clock;The 4th time for receiving the latency request message Timestamp when stamp is the MII interface between MAC layer and PHY that the latency request message passes through the master clock.
7. method according to claim 1 to 6, which is characterized in that the master clock includes in CBTC system Control centre's ATS equipment, main track station and the ATS equipment of rolling stock section, ground ZC equipment clock and CI equipment, it is described from clock ATS equipment, ground ZC equipment, CI equipment, vehicle-mounted ATP equipment and vehicle including main track station and rolling stock section in CBTC system Carry ATO equipment.
8. a kind of time synchronism apparatus characterized by comprising
Radio unit is used for master clock broadcast time sync message, obtains the first time stamp for broadcasting the time synchronization message, And broadcast follows message after the first preset time period for broadcasting the time synchronization message, described follow in message carries It states and stabs at the first time, include the mark and port numbers of master clock in the time synchronization message;
First acquisition unit, after receiving the time synchronization message from clock, acquisition receives the time synchronization report Second timestamp of text, and receive it is described follow message after, follow the first time in message to stab described in acquisition;
Second acquisition unit, for from clock according to the mark of the master clock in the time synchronization message and port numbers to it is main when Clock forward delay interval request message obtains the third timestamp for sending the latency request message, wraps in the latency request message Include the mark and port numbers from clock;
Third acquiring unit receives the latency request message for master clock, and acquisition receives the latency request message 4th timestamp;
Transmission unit, for after the second preset time period for receiving the latency request message, according to described from clock Mark and port numbers carry the described 4th to from clock forward delay interval request response message, the latency request response message Timestamp;
4th acquiring unit receives the latency request response message from clock for described, obtains the latency request response The 4th timestamp in message;
Adjustment unit is calculated, for according to first time stamp, the second timestamp, third timestamp and the 4th timestamp, meter Calculate the time deviation between master-salve clock, and according to the time deviation adjustment between the master-salve clock it is described from clock when Between, so that it is synchronous with master clock time.
9. device according to claim 8, which is characterized in that the calculating adjustment unit is also used to:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, network transmission delay is calculated;
It is inclined according to first time stamp, the second timestamp and network transmission delay, the time calculated between master-salve clock Difference.
10. device according to claim 9, which is characterized in that the calculating adjustment unit is also used to:
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, network is calculated by formula (one) Transmission delay
tdelay=[(t4-t1)-(t3-t2)]/2 (one)
Wherein, tdelayFor network transmission delay, t1To stab at the first time, t2For the second timestamp, t3For third timestamp, t4For 4th timestamp.
CN201711230733.4A 2017-11-29 2017-11-29 A kind of method for synchronizing time and device Pending CN109842603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711230733.4A CN109842603A (en) 2017-11-29 2017-11-29 A kind of method for synchronizing time and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711230733.4A CN109842603A (en) 2017-11-29 2017-11-29 A kind of method for synchronizing time and device

Publications (1)

Publication Number Publication Date
CN109842603A true CN109842603A (en) 2019-06-04

Family

ID=66882420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711230733.4A Pending CN109842603A (en) 2017-11-29 2017-11-29 A kind of method for synchronizing time and device

Country Status (1)

Country Link
CN (1) CN109842603A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401505A (en) * 2019-07-19 2019-11-01 深圳大学 A Method for Precise Time Synchronization in Wireless Networks
CN111447567A (en) * 2020-03-25 2020-07-24 浙江大华技术股份有限公司 Data broadcasting method and device, storage medium and electronic device
CN112214065A (en) * 2020-09-17 2021-01-12 北京普源精电科技有限公司 Equipment synchronization calibration method, device, equipment and storage medium
WO2021037049A1 (en) * 2019-08-30 2021-03-04 湖南中车时代通信信号有限公司 Method for interconnecting and intercommunicating chinese train operation monitoring system with europe train control system
CN112564842A (en) * 2020-12-21 2021-03-26 交控科技股份有限公司 Time correction method and device for control system of railway vehicle
CN113132041A (en) * 2019-12-31 2021-07-16 中移(成都)信息通信科技有限公司 Data transmission delay calculation method and device
CN113179441A (en) * 2021-03-26 2021-07-27 卡莱特云科技股份有限公司 Synchronous playing method, device, system and computer equipment
CN114598412A (en) * 2022-01-20 2022-06-07 山东浪潮科学研究院有限公司 Clock synchronization processing method and device, electronic equipment, storage medium and product
CN115361084A (en) * 2022-08-23 2022-11-18 歌尔科技有限公司 A method, device, equipment and medium for synchronizing clocks

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834712A (en) * 2010-04-19 2010-09-15 浙江大学 The Method of Using IEEE1588 Protocol to Realize Precise Time Synchronization
CN201592724U (en) * 2010-01-20 2010-09-29 中国铁道科学研究院通信信号研究所 Time synchronous system of train control vehicular device
US20130339755A1 (en) * 2012-06-19 2013-12-19 Alstom Transport Sa Method for Enhancing Data Reliability in a Computer
CN103684735A (en) * 2013-11-12 2014-03-26 航天科工深圳(集团)有限公司 Synchronous method of distributed device
CN104993978A (en) * 2015-07-10 2015-10-21 北京交通大学 Method for measuring train-ground communication transmission delay in track traffic system
CN105577349A (en) * 2014-10-31 2016-05-11 中国飞行试验研究院 Airborne network IEEE1588 protocol master-slave clock port synchronization method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201592724U (en) * 2010-01-20 2010-09-29 中国铁道科学研究院通信信号研究所 Time synchronous system of train control vehicular device
CN101834712A (en) * 2010-04-19 2010-09-15 浙江大学 The Method of Using IEEE1588 Protocol to Realize Precise Time Synchronization
US20130339755A1 (en) * 2012-06-19 2013-12-19 Alstom Transport Sa Method for Enhancing Data Reliability in a Computer
CN103684735A (en) * 2013-11-12 2014-03-26 航天科工深圳(集团)有限公司 Synchronous method of distributed device
CN105577349A (en) * 2014-10-31 2016-05-11 中国飞行试验研究院 Airborne network IEEE1588 protocol master-slave clock port synchronization method
CN104993978A (en) * 2015-07-10 2015-10-21 北京交通大学 Method for measuring train-ground communication transmission delay in track traffic system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401505A (en) * 2019-07-19 2019-11-01 深圳大学 A Method for Precise Time Synchronization in Wireless Networks
WO2021037049A1 (en) * 2019-08-30 2021-03-04 湖南中车时代通信信号有限公司 Method for interconnecting and intercommunicating chinese train operation monitoring system with europe train control system
CN113132041A (en) * 2019-12-31 2021-07-16 中移(成都)信息通信科技有限公司 Data transmission delay calculation method and device
CN113132041B (en) * 2019-12-31 2022-03-04 中移(成都)信息通信科技有限公司 Data transmission delay calculation method and device
CN111447567A (en) * 2020-03-25 2020-07-24 浙江大华技术股份有限公司 Data broadcasting method and device, storage medium and electronic device
CN112214065A (en) * 2020-09-17 2021-01-12 北京普源精电科技有限公司 Equipment synchronization calibration method, device, equipment and storage medium
US12085978B2 (en) 2020-09-17 2024-09-10 Rigol Technologies (Beijing), Inc. Device synchronous calibration method and apparatus, devices, and storage medium
CN112564842B (en) * 2020-12-21 2022-12-16 交控科技股份有限公司 Control system timing method and device for railway vehicle
CN112564842A (en) * 2020-12-21 2021-03-26 交控科技股份有限公司 Time correction method and device for control system of railway vehicle
CN113179441A (en) * 2021-03-26 2021-07-27 卡莱特云科技股份有限公司 Synchronous playing method, device, system and computer equipment
CN114598412B (en) * 2022-01-20 2023-06-02 山东浪潮科学研究院有限公司 Clock synchronization processing method and device, electronic equipment, storage medium and product
CN114598412A (en) * 2022-01-20 2022-06-07 山东浪潮科学研究院有限公司 Clock synchronization processing method and device, electronic equipment, storage medium and product
CN115361084A (en) * 2022-08-23 2022-11-18 歌尔科技有限公司 A method, device, equipment and medium for synchronizing clocks

Similar Documents

Publication Publication Date Title
CN109842603A (en) A kind of method for synchronizing time and device
CN107294634B (en) The centralized approach of 1588 time synchronizations is realized in a kind of distributed system
DE60117522T2 (en) Method for synchronizing a base station for wireless communication systems
DE102006019475B4 (en) Method for synchronizing modules of a base station
SG11201902084QA (en) Wireless communication between wideband enb and narrowband ue
SG11201909116QA (en) Synchronization for wideband coverage enhancement
SG11201809495QA (en) Parallelism and n-tiering of knowledge inference and statistical correlation system
JP2019504533A5 (en)
CN103236896B (en) Clock adjustment method and system of vehicle-mounted control equipment
CN105323054A (en) Clock synchronization method and device
CN103873224A (en) Construction method for high-precision time synchronization system based on IP (internet protocol) network
WO2014195731A3 (en) Time synchronisation control apparatus and method
CN104486017A (en) Satellite time service multi-node synchronization monitoring method based on IP light transmission
CN106375076A (en) Method and system based on train data in frame structure transmission area
CN108494516B (en) Distributed time service method for communication iron tower fault monitoring system
CN112583508A (en) Clock synchronization communication system and method for rail train
CN103078728B (en) Clock synchronization system
WO2020173975A1 (en) Signalling a multicast message in non-coordinated networks
KR102328672B1 (en) Method And System for Providing Hybrid Synchronization
DE102019202742B3 (en) Support beacon (s) for synchronization to a multicast message in non-coordinated networks
TWI580219B (en) Method for measuring network bandwidth
CN111106891A (en) Relative time synchronization method, device and system
DE102013221321B4 (en) Method for synchronizing road users on a common timebase
DE102005044414A1 (en) Radio system and primary receiver for such a radio system
CN113676280B (en) Multi-device clock synchronization method based on Modbus protocol

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100070 12 / F, block a, yard 1, South Automobile Museum Road, Fengtai District, Beijing

Applicant after: Tonghao Urban Rail Transit Technology Co., Ltd.

Address before: 100073 11 Floor, Block D, No. 1 South Road, Fengtai Auto Museum, Beijing

Applicant before: Beijing Tonghao National Railway Urban Rail Technology Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190604