Summary of the invention
The technical problem to be solved by the invention is to provide a kind of method and apparatus of clock correction, with guarantee it is each from
Identical work clock is arranged in clock node, realizes and corresponds to the synchronization of the clock between equipment from node each.
In a first aspect, it is applied to master clock node the present invention provides a kind of method of clock correction, this method comprises:
Measuring signal in the master clock node and from being transmitted between clock node elapsed time, determine it is described from when
The corresponding signal transmission time of clock node;
From the clock node corresponding delay process time described in determining, so that prolonging described in each from clock node is corresponding
When processing the sum of time and signal transmission time it is all the same;
To it is described send from clock node it is described from the clock node corresponding delay process time;
Work clock setting information is sent from clock node to described, the work clock setting information is used to indicate described
Work clock is set from the clock node corresponding delay process time from clock node according to described, it is described to prolong from clock is corresponding
When the processing time be used to indicate the time from the first moment to the second moment, first moment indicates described and connects from clock node
At the time of receiving the work clock setting information, second moment indicates described and opens the work clock meter from clock node
When at the time of.
Optionally, described in the determination from the corresponding signal transmission time of clock node, specifically: statistical analysis is repeatedly surveyed
The signal measured obtains described from clock node in the master clock node and from elapsed time is transmitted between clock node
Corresponding signal transmission time.
Optionally, the measuring signal is in the master clock node and from transmitting elapsed time between clock node,
Specifically: according to it is described from clock node send synchronizing clock signals and it is described from clock node return feedback clock
Signal calculates the signal in the master clock node and from transmitting elapsed time between clock node.
Optionally, further includes:
It is sent described in synchronizing clock signals and reception from clock node from clock node according to the delay process to described
Time is directed to the feedback clock signal that the synchronizing clock signals return, described to be also used to from the clock corresponding delay process time
From the third moment to the time at the 4th moment, the third moment expression is described to receive the synchronised clock from clock node for instruction
At the time of signal, at the time of the 4th moment indicates the transmission feedback clock signal from clock node;
The difference from clock node corresponding signal feedback time and signal transmission time is calculated, as described from clock
The node corresponding verification time, wherein described to indicate from the corresponding signal feedback time of clock node from the 5th moment to the 6th
The time at moment, at the time of the 5th moment indicates that the master clock node sends the synchronizing clock signals, the described 6th
At the time of moment indicates that the master clock node receives the feedback clock signal;
If meeting verification condition from the clock node corresponding verification time described in each, execute described to described from clock section
Point sends work clock setting information;
If being unsatisfactory for verification condition from the clock node corresponding verification time described in each, returns and execute measuring signal in institute
State master clock node and from transmitting elapsed time between clock node;
Wherein, the verification condition are as follows: it is each described all the same from the clock node corresponding verification time, or, each institute
It states from the difference of clock node corresponding verification time and is no more than preset threshold value.
Optionally, it is each it is described there is different address information from clock node, it is described corresponding from clock node
Information is identified using described from the address information of clock node.
Optionally, each described to be led to from clock node using different communication link with the master clock node
Letter, it is described to be identified from the corresponding information of clock node using the communication link used from clock node.
Optionally, from the clock node corresponding delay process time described in the determination, comprising:
According to each sequence from the corresponding signal transmission time of clock node from big to small, to it is each it is described from when
Clock node is ranked up;
According to each sequence from clock node, when being followed successively by each setting delay process from clock node
Between.
Second aspect is applied to the present invention provides a kind of method of clock correction from clock node, comprising:
The described from the clock node corresponding delay process time of master clock node transmission is received, it is described from clock node pair
The delay process time answered is the master clock node according to the determination from clock node corresponding signal transmission time,
It is described from the corresponding signal transmission time of clock node be the master clock node by measuring signal in the master clock node
With from transmitting elapsed time and determination between clock node, wherein it is each described from corresponding delay place of clock node
It is all the same to manage the sum of time and signal transmission time;
Receive the described from the corresponding work clock setting information of clock node of the master clock node transmission;
Under the instruction of the work clock setting information, set according to described from the clock node corresponding delay process time
Work clock is set, it is described to be used to indicate the time from the first moment to the second moment, institute from the clock corresponding delay process time
At the time of stating for the first moment indicates the reception work clock setting information from clock node, second moment indicates institute
It states from the time of the clock node unlatching work clock timing.
Optionally, further includes:
Receive the synchronizing clock signals that the master clock node is sent;
Feedback clock signal is returned for the synchronizing clock signals;
The synchronizing clock signals and the feedback clock signal, for the master clock node measuring signal in the master
Clock node and from transmitting elapsed time between clock node.
Optionally, further includes:
Receive the synchronizing clock signals that the master clock node is sent;
Feedback clock signal is returned for the synchronizing clock signals according to the delay process time, it is described from clock pair
The delay process time answered is also used to indicate the time from the third moment to the 4th moment, the third moment indicate it is described from when
At the time of clock node receives the synchronizing clock signals, when the 4th moment indicates the transmission feedback from clock node
At the time of clock signal;
The synchronizing clock signals and the feedback clock signal calculate described from clock pair for the master clock node
It is the verification time answered, true so that whether the master clock node meets verification condition from the clock corresponding verification time according to
Whether determine to described from the clock node transmission work clock setting information;Wherein, described from the clock corresponding verification time
It is described from the corresponding signal of clock node for the difference from clock node corresponding signal feedback time and signal transmission time
Feedback time indicates that from the time at the 5th moment to the 6th moment, the 5th moment indicates described in the master clock node transmission
At the time of synchronizing clock signals, at the time of the 6th moment indicates that the master clock node receives the feedback clock signal;
The verification condition are as follows: it is each described all the same from the clock node corresponding verification time, or, each described from clock node pair
The difference for the verification time answered is no more than preset threshold value.
Optionally, it is each it is described there is different address information from clock node, it is described corresponding from clock node
Information is identified using described from the address information of clock node.
Optionally, each described to be led to from clock node using different communication link with the master clock node
Letter, it is described to be identified from the corresponding information of clock node using the communication link used from clock node.
The third aspect, the present invention provides a kind of devices of clock correction, are configured at master clock node, comprising:
Measuring unit, for measuring signal in the master clock node and from when transmitting passed through between clock node
Between;
First determination unit, it is described from the corresponding signal transmission time of clock node for determining;
Second determination unit, it is described from the clock node corresponding delay process time for determining, so that each described
It is all the same from clock node corresponding delay process time and the sum of signal transmission time;
First transmission unit, for it is described send the delay process corresponding from clock node from clock node when
Between;
Second transmission unit, for sending work clock setting information from clock node to described, the work clock is set
Confidence breath be used to indicate it is described work clock is set from the clock node corresponding delay process time according to described from clock node,
It is described to be used to indicate the time from the first moment to the second moment, first timetable from the clock corresponding delay process time
At the time of showing the reception work clock setting information from clock node, second moment indicates described from clock node
At the time of opening the work clock timing.
Fourth aspect is configured at the present invention provides a kind of device of clock correction from clock node, comprising:
First receiving unit, when for receiving delay process corresponding from clock node described in the transmission of master clock node
Between, described from the clock node corresponding delay process time is the master clock node according to described from the corresponding letter of clock node
Number transmission time and determination, described from the corresponding signal transmission time of clock node is that the master clock node passes through measurement letter
Number in the master clock node and from transmitting elapsed time and determination between clock node, wherein it is each it is described from when
Clock node corresponding delay process time and the sum of signal transmission time are all the same;
Second receiving unit, for receiving described in the master clock node transmission from the corresponding work clock of clock node
Setting information;
Setting unit, under the instruction of the work clock setting information, according to described corresponding from clock node
Work clock is arranged in the delay process time, described to be used to indicate from the clock corresponding delay process time from the first moment to second
It is the time at moment, described at the time of first moment indicates the reception work clock setting information from clock node
At the time of second moment indicated the unlatching work clock timing from clock node.
5th aspect, the present invention provides a kind of system of clock correction, including master clock node and from clock node, institute
It states master clock node and is configured with the device that any one embodiment of the aforementioned third aspect provides, it is described to be configured with from clock node
The very high device of any one embodiment of aforementioned fourth aspect.
Compared with prior art, the invention has the following advantages that
In embodiments of the present invention, master clock node is passed by measurement master clock node and from the signal between clock node
The defeated time can be that should determine the delay process time from clock node and refer to according to from the corresponding signal transmission time of clock node
Show that work clock is arranged from the clock corresponding delay process time according to this from clock node in this.Although it is each from clock node with
Between master clock node the situation difference of communication line cause it is each from the corresponding signal transmission time of clock node usually not
It is identical, still, due to each all the same, master clock from clock node corresponding delay process time and the sum of signal transmission time
Node sends work clock setting information from clock node to each in synchronization, each to receive work from clock node
It needs just to open respective work clock timing by corresponding delay process time again when clock setting information, it is seen then that each
A from clock node is to open respective work clock timing in synchronization, i.e., each same from clock is realized between clock node
Step.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this
Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
Inventor has found that conventionally, as different between clock node and master clock node
Communication line there may be the situations of the differences such as distance, temperature, device, therefore clock data is sent to not by master clock node
Difference can be generated when with from clock node, thus each obtained actually by the clock data is parsed from clock node
Clock information is different, and each work clock for corresponding to equipment from clock node according to the different clock information setting is practical
On also there is certain difference, it is seen then that it is actually each from clock node correspond to equipment still and not can guarantee clock it is synchronous.
To solve the above-mentioned problems, in embodiments of the present invention, master clock node by measurement master clock node with from when
Signal transmission time between clock node, can be true from clock node according to being somebody's turn to do from the corresponding signal transmission time of clock node
Determine the delay process time and indicates work clock should be arranged from the clock corresponding delay process time from clock node according to this.Though
The situation difference of right each communication line between clock node and master clock node causes each from the corresponding letter of clock node
Number transmission time is not usually identical, still, due to each from when transmitting clock node corresponding delay process time and signal
Between the sum of it is all the same, master clock node synchronization to it is each from clock node send work clock setting information, Ge Gecong
Clock node needs just to open by corresponding delay process time respectively when receiving work clock setting information again
Work clock timing, it is seen then that each from clock node is to open respective work clock timing in synchronization, i.e., each from clock
It is synchronous that clock is realized between node.
For example, one of the scene of the embodiment of the present invention, can be applied to scene as shown in Figure 1.In the scene
In, include in Positron emission computed tomography (English: PET, Positron Emission Tomograph) equipment
Master clock node 101 and photon detector equipment, photon detector equipment have multiple modules, and each module includes one from clock
Node 102, in order to ensure modules can synchronize under the work clock respectively since clock setting to light on photon detector
Son detection carries out timing, needs to correct that all from clock node 102 to reach clock synchronous by master clock node 101.Specifically
Ground, 101 measuring signal of master clock node is in the master clock node 101 and from when transmitting passed through between clock node 102
Between, it determines described from the corresponding signal transmission time of clock node 102.Master clock node 101 determines described from clock node 102
The corresponding delay process time, so that each described from when transmitting the corresponding delay process time of clock node 102 and signal
Between the sum of it is all the same.Master clock node 101 sends described from the corresponding delay of clock node 102 to correspondence from clock node 102
Handle the time.The master clock node 101 sends work clock setting information from clock node 102 to described, when the work
Clock setting information is set from clock node 102 according to described from the corresponding delay process time of clock node 102 described in being used to indicate
Work clock is set, it is described to be used to indicate from the first moment to the second moment from the corresponding delay process time of clock node 102
Time, first moment indicate described at the time of receive the work clock setting information from clock node 102, described second
At the time of opening the work clock timing from clock node 102 described in moment expression.The work is received from clock node 102
After making clock setting information, according to described from setting work clock of the corresponding delay process time of clock node 102 and by each
The self-corresponding delay process time just opens respective work clock timing, each same from clock is realized between clock node 102
Step.
It is understood that above-mentioned scene is only a Sample Scenario provided in an embodiment of the present invention, the embodiment of the present invention
It is not limited to this scene.
With reference to the accompanying drawing, by embodiment come the method and apparatus of clock correction in the present invention will be described in detail embodiment
Specific implementation.
Illustrative methods
Referring to fig. 2, a kind of flow diagram of the method for clock correction in the embodiment of the present invention is shown.In the present embodiment
In, the method for example may comprise steps of:
Step 201: master clock node measuring signal is passed through in the master clock node and from transmission between clock node
Time, determine described from the corresponding signal transmission time of clock node.
In some embodiments of the present embodiment, master clock node can be by from transmission measurement between clock node
The mode of signal measures the signal transmission time.Specifically, in the step 201, the measuring signal is in the master clock
Node and from transmitting elapsed time between clock node, can be with are as follows: master clock node is sent out according to described from clock node
The synchronizing clock signals sent and the feedback clock signal returned from clock node, calculate the signal in the master clock
Node and from transmitting elapsed time between clock node.The synchronous signal schematic representation of clock as shown in Figure 3, it is assumed that when main
Clock node is expressed as Tstart at the time of sending synchronizing clock signals, indicates at the time of receiving synchronizing clock signals from clock node
For T1, it is expressed as T2 at the time of from clock node to master clock node feeding back synchronizing clock signals, master clock node receives feedback
Tstop is expressed as at the time of clock signal, then the master clock node and between clock node transmit elapsed time Ti
It can be calculate by the following formula:
It is understood that there may be apart from not for the different communication lines between clock node and master clock node
Same, temperature difference, the dispar situation of device, therefore, the delay of cable, the inherent delay of device, variation of temperature etc. can be led
Cause the calculated signal the master clock node from it is different between clock node transmit elapsed time usual feelings
It is different under condition.
In some embodiments of the present embodiment, in order to enable the master clock node and from the letter between clock node
Number transmission time more accurately measures, in some embodiments, can be on the basis of multiple measurement by way of statistics
Determine master clock node and from the signal transmission time between clock node.Specifically, in step 201, described in the determination
From the corresponding signal transmission time of clock node, such as can be with are as follows: the signal that statistical analysis repeatedly measures is in the master clock
Node and from elapsed time is transmitted between clock node obtains described from the corresponding signal transmission time of clock node.Its
In, statistical analysis technique can be for example least-squares estimation, maximal possibility estimation etc..
Step 202: master clock node is determining described from the clock node corresponding delay process time, so that each described
It is all the same from clock node corresponding delay process time and the sum of signal transmission time.
It is understood that due to each different from the corresponding signal transmission time of clock node, in order to enable it is each from
Clock node reaches clock and synchronizes, can be to be described each from the clock node setting corresponding delay process time, so that each
When passing through corresponding delay process when receiving the work clock setting information that master clock node is sent from clock node
Between be then turned on work clock timing.Prolong due to each from the corresponding signal transmission time of clock node and the corresponding of the setting
When processing time time value after being added it is identical, master clock node simultaneously to it is each from clock node send work clock setting
It is each to reach consistent from clock node unlatching work clock timer time in the case where information.
In some embodiments of the present embodiment, it can be determined and each be prolonged from clock node is corresponding according to particular value
Processing time late, the particular value should be greater than being equal to maximum transmission time value, and the maximum transmission time value can pass through
It is more each to be determined from the corresponding signal transmission time of clock node.Such as can be first ranked up to each from clock node,
The delay process time is successively determined according to the sequence by above-mentioned maximum transmission time value again, master clock can be reduced in this way
Node corrects each used time from clock node.Specifically, step 202 for example may include: according to each described from clock section
The sequence of the corresponding signal transmission time of point from big to small described is ranked up to each from clock node;According to each described
From the sequence of clock node, it is followed successively by each described from the clock node setting delay process time.
It, can be by described each described from the corresponding signal biography of clock node in some embodiments of the present embodiment
The thick time value and thin time value of defeated time sorts, to reduce the used time of sequence, wherein the thick time value is with for a long time
Time of day such as microsecond carries out time of day, the thin time value using precise time unit such as picosecond as time of day, when thin
Between in unit accumulated number reach carry after thick chronomere, such as one is from the corresponding signal transmission time of clock node
39.000015 microseconds, then its thick time value can be 39 microseconds, and thin time value can be 15 picoseconds.Specifically, according to each
From the corresponding signal transmission time of clock node to each mode being ranked up from clock node, for example, may include: according to
The sequence of each thick time value from the corresponding signal transmission time of clock node from big to small, if thick time value is identical again
According to the sequence of each thin time value from the corresponding signal transmission time of clock node from big to small, to it is each it is described from
Clock node is ranked up.After sequence, for example, can be formed one comprising from clock node address, thick time value, thin time value,
The tables of data of delay process time, as shown in Figure 4.Wherein, the delay process time can be according to each described in tables of data
It is set gradually from the sequence of clock node determining.It is described can be from clock node address play to it is described from clock node into
The effect of line identifier.
Step 203: master clock node to it is described send the delay process corresponding from clock node from clock node when
Between.
It is understood that after step 202 determines each corresponding delay process time from clock node, Ge Gecong
Clock node needs to obtain the respective delay process time and is delayed according to the corresponding delay process time to adjust it and open
It is consistent to open work clock timing time, therefore executes step 203.For example, in some embodiments, master clock node can lead to
Cross CAN network, Ethernet etc. to it is described send from clock node it is described from the clock node corresponding delay process time, as long as
It sends successfully, sending method is not limited.
Step 204: Xiang Suoshu sends work clock setting information from clock node, and the work clock setting information is used for
Instruction is described to be arranged work clock from the clock node corresponding delay process time according to described from clock node, described from clock
The corresponding delay process time is used to indicate the time from the first moment to the second moment, first moment indicate it is described from when
At the time of clock node receives the work clock setting information, second moment indicates described and opens the work from clock node
At the time of making clock timing.
It is understood that due to the measurement of signal transmission time is not accurate enough etc., it is each from clock node according to
The work clock of corresponding delay process time setting does not ensure that enough synchronizations.In order to further such that from clock
The work clock synchronization extent of node setting is higher, in some embodiments of the present embodiment, in order to guarantee to execute step 204
It afterwards, when each unlatching work from clock node after executing above-mentioned steps 203, such as can also include as shown in Figure 5
Step:
Step 501: master clock node is sent described in synchronizing clock signals and reception from clock node from clock section to described
Point is directed to the feedback clock signal that the synchronizing clock signals return according to the delay process time, described corresponding from clock
The delay process time is also used to indicate that the time from the third moment to the 4th moment, the third moment indicate described from clock section
At the time of point receives the synchronizing clock signals, the 4th moment indicates described and sends the feedback clock letter from clock node
Number at the time of;
Step 502: master clock node calculates described from the corresponding signal feedback time of clock node and signal transmission time
Difference, as described from the clock node corresponding verification time, wherein described from the corresponding signal feedback time table of clock node
Show that the time from the 5th moment to the 6th moment, the 5th moment indicate that the master clock node sends the synchronised clock letter
Number at the time of, at the time of the 6th moment indicates that the master clock node receives the feedback clock signal;
After step 502, if meeting verification condition from the clock node corresponding verification time described in each, step is executed
204;If being unsatisfactory for verification condition from the clock node corresponding verification time described in each, 201 are returned to step;Wherein, institute
State verification condition are as follows: it is each described all the same from the clock node corresponding verification time, or, each described corresponding from clock node
Verification time difference be no more than preset threshold value.
It is understood that after the work clock setting information that clock node receives that the master clock node is sent,
According to the instruction of the work clock setting information, just opened after the corresponding delay process time from clock node
The work clock timing, it is each synchronous from the clock of clock node to realize.
It should be noted that master clock node from the network that forms from clock node can there are many different topologys to tie
Structure, wherein it is each in different topological structures to use different identification means from the corresponding information of clock node, in order to
It distinguishes.It is described from the corresponding information of clock node may include synchronizing clock signals above-mentioned, feedback clock signal, signal transmission
Time, delay process time and work clock setting information etc. master clock node with from the letter interacted between clock node
Breath.
For example, in some embodiments, master clock node and each communication link that can be used from clock node are each
Not identical, i.e., one from corresponding one of clock node from other from the different communication link of clock node.Specifically, such as Fig. 6 institute
The tree system structure shown, it is each described to be carried out from clock node using different communication link and the master clock node
Communication, it is described to be identified from the corresponding information of clock node using the communication link used from clock node.For one
It is a specifically for clock node, master clock node should be from the corresponding communication link of clock node by multi-channel gating device selection
Information corresponding from clock node is somebody's turn to do from clock node interaction with this.
For another example, in some embodiments, master clock node and each from the communication link that clock node may use
Comprising identical communication link, i.e., one includes identical logical from clock node with other from the corresponding communication link of clock node
Believe link.Specifically, chrysanthemum chain system structure as shown in Figure 7, each described have different ground from clock node
Location information, it is described to be identified from the corresponding information of clock node using described from the address information of clock node.For one
Specifically for clock node, master clock node interact this from clock node with this by the address information from clock node
It is each to match address information identical with oneself from clock node to be communicated from the corresponding information of clock node.
The various embodiments provided through this embodiment, master clock node by measurement master clock node with from clock section
Signal transmission time between point can be that should prolong from clock node determination according to from the corresponding signal transmission time of clock node
When the processing time and indicate work clock should be arranged from clock corresponding delay process time from clock node according to this.Although each
The situation difference of a communication line between clock node and master clock node causes each to pass from the corresponding signal of clock node
The defeated time is not usually identical, still, due to it is each from clock node corresponding delay process time and signal transmission time it
With it is all the same, master clock node synchronization to it is each from clock node send work clock setting information, it is each from clock
Node needs just to open by corresponding delay process time when receiving work clock setting information respective work again
Clock timing, it is seen then that each from clock node is to open respective work clock timing in synchronization, i.e., each from clock node
Between to realize clock synchronous.
Referring to Fig. 8, the flow diagram of the method for another clock correction in the embodiment of the present invention is shown.In this implementation
In example, the method for example be may comprise steps of:
Step 801: receive master clock node send it is described from the clock node corresponding delay process time, it is described from when
The clock node corresponding delay process time is the master clock node according to described from the corresponding signal transmission time of clock node
And determine, it is described from the corresponding signal transmission time of clock node be the master clock node by measuring signal in the master
Clock node and from transmitting elapsed time and determination between clock node, wherein each described corresponding from clock node
The delay process time and the sum of signal transmission time it is all the same;
Step 802: receiving the described from the corresponding work clock setting information of clock node of the master clock node transmission;
Step 803: under the instruction of the work clock setting information, according to described from corresponding delay place of clock node
Time setting work clock is managed, it is described to be used to indicate from the first moment to the second moment from the clock corresponding delay process time
Time, first moment indicate described at the time of receive the work clock setting information from clock node, when described second
It carves described in indicating from the time of the clock node unlatching work clock timing.
Optionally, the present embodiment for example can also include: the synchronizing clock signals for receiving the master clock node and sending;Needle
Feedback clock signal is returned to the synchronizing clock signals;The synchronizing clock signals and the feedback clock signal are used for institute
Master clock node measuring signal is stated in the master clock node and from transmitting elapsed time between clock node.
Optionally, the present embodiment for another example can also include: the synchronizing clock signals for receiving the master clock node and sending;It presses
Feedback clock signal is returned for the synchronizing clock signals according to the delay process time, it is described from corresponding delay place of clock
The reason time is also used to indicate that the time from the third moment to the 4th moment, the third moment indicate described and receives from clock node
At the time of the synchronizing clock signals, the 4th moment indicate it is described from clock node send the feedback clock signal when
It carves;The synchronizing clock signals and the feedback clock signal calculate described corresponding from clock for the master clock node
Verification time, so that whether the master clock node meets verification condition determination from the clock corresponding verification time and be according to described
It is no to send the work clock setting information from clock node to described;Wherein, described from the clock corresponding verification time is institute
The difference from clock node corresponding signal feedback time and signal transmission time is stated, it is described from the corresponding signal feedback of clock node
Time indicates that, from the time at the 5th moment to the 6th moment, the 5th moment indicates that the master clock node sends the synchronization
At the time of clock signal, at the time of the 6th moment indicates that the master clock node receives the feedback clock signal;It is described
Verification condition are as follows: it is each described all the same from the clock node corresponding verification time, or, each described corresponding from clock node
The difference of verification time is no more than preset threshold value.
It should be noted that master clock node from the network that forms from clock node can there are many different topologys to tie
Structure, wherein it is each in different topological structures to use different identification means from the corresponding information of clock node, in order to
It distinguishes.
For example, in some embodiments, master clock node and each communication link that can be used from clock node are each
Not identical, i.e., one from corresponding one of clock node from other from the different communication link of clock node.Specifically, such as Fig. 6 institute
The tree system structure shown, it is each described to be carried out from clock node using different communication link and the master clock node
Communication, it is described to be identified from the corresponding information of clock node using the communication link used from clock node.
For another example, in some embodiments, master clock node and each from the communication link that clock node may use
Comprising identical communication link, i.e., one includes identical logical from clock node with other from the corresponding communication link of clock node
Believe link.Specifically, chrysanthemum chain system structure as shown in Figure 7, each described have different ground from clock node
Location information, it is described to be identified from the corresponding information of clock node using described from the address information of clock node.
The various embodiments provided through this embodiment, master clock node by measurement master clock node with from clock section
Signal transmission time between point can be that should prolong from clock node determination according to from the corresponding signal transmission time of clock node
When the processing time and indicate work clock should be arranged from clock corresponding delay process time from clock node according to this.Although each
The situation difference of a communication line between clock node and master clock node causes each to pass from the corresponding signal of clock node
The defeated time is not usually identical, still, due to it is each from clock node corresponding delay process time and signal transmission time it
With it is all the same, master clock node synchronization to it is each from clock node send work clock setting information, it is each from clock
Node needs just to open by corresponding delay process time when receiving work clock setting information respective work again
Clock timing, it is seen then that each from clock node is to open respective work clock timing in synchronization, i.e., each from clock node
Between to realize clock synchronous.
Referring to Fig. 9, the flow diagram of the method for another clock correction in the embodiment of the present invention is shown.In this implementation
In example, the method for example be may comprise steps of:
Step 901: master clock node sends synchronizing clock signals to from clock node.
Step 902: the synchronizing clock signals sent from clock node in response to master clock node, by delay after to it is main when
Clock node sends feedback clock signal.
Step 903: master clock node measuring signal is passed through in the master clock node and from transmission between clock node
Time, determine described from the corresponding signal transmission time of clock node.
Wherein, the measuring signal has in the master clock node and from transmitting between clock node elapsed time
Body can be with are as follows: master clock node is according to described returning to the synchronizing clock signals sent from clock node and from clock node
The feedback clock signal returned calculates the signal in the master clock node and from when transmitting passed through between clock node
Between.
In addition, from the corresponding signal transmission time of clock node described in the determination, such as can be with are as follows: statistical analysis is multiple
The signal measured obtains described from clock section in the master clock node and from elapsed time is transmitted between clock node
The corresponding signal transmission time of point.
Step 904: master clock node is determining described from the clock node corresponding delay process time, so that each described
It is all the same from clock node corresponding delay process time and the sum of signal transmission time.
Step 905: master clock node to it is described send the delay process corresponding from clock node from clock node when
Between and synchronizing clock signals.
Step 907: the synchronizing clock signals that send from clock node in response to master clock node and described from clock
The node corresponding delay process time sends feedback clock signal to master clock node.
Step 907: master clock node calculates described from the corresponding signal feedback time of clock node and signal transmission time
Difference, as described from the clock node corresponding verification time.
If meeting verification condition from the clock node corresponding verification time described in each, step 908 is executed;If each described
It is unsatisfactory for verification condition from the clock node corresponding verification time, returns to step 903;Wherein, the verification condition are as follows: each
It is a described all the same from the clock node corresponding verification time, or, each difference from the clock node corresponding verification time
No more than preset threshold value.
Step 908: master clock node sends work clock setting information from clock node to described.
Step 909: the work clock setting information sent from clock node in response to master clock node, according to it is described from when
Work clock is arranged in the clock node corresponding delay process time.
In the present embodiment, equal from the sum of clock node corresponding delay process time and signal transmission time due to each
Identical, master clock node sends work clock setting information from clock node to each in synchronization, each from clock node
It needs just to open respective work clock by corresponding delay process time again when receiving work clock setting information
Timing, it is seen then that each from clock node is to open respective work clock timing in synchronization, i.e., each between clock node
It is synchronous to realize clock.
Exemplary means
Referring to Figure 10, a kind of structural schematic diagram of the device of clock correction in the embodiment of the present invention is shown.In this implementation
In example, described device for example be can specifically include:
Measuring unit 1001 is passed through for measuring signal in the master clock node and from transmission between clock node
Time;
First determination unit 1002, it is described from the corresponding signal transmission time of clock node for determining;
Second determination unit 1003, it is described from the clock node corresponding delay process time for determining, so that each
It is described all the same from clock node corresponding delay process time and the sum of signal transmission time;
First transmission unit 1004 is used to send to described from clock node described from the corresponding delay process of clock node
Time;
Second transmission unit 1005, for sending work clock setting information from clock node to described, when the work
Clock setting information, which is used to indicate, described is arranged work from the clock node corresponding delay process time according to described from clock node
Clock, it is described to be used to indicate the time from the first moment to the second moment from the clock corresponding delay process time, described first
Moment indicates described at the time of receive the work clock setting information from clock node, second moment indicate it is described from when
At the time of clock node opens the work clock timing.
Optionally, in some embodiments of the present embodiment, the measuring unit 1001, such as specifically can be used for:
According to the synchronizing clock signals sent from clock node and the feedback clock signal returned from clock node, count
The signal is calculated in the master clock node and from transmitting elapsed time between clock node.
Optionally, in some embodiments of the present embodiment, first determination unit 1002, such as can specifically use
In: the signal that repeatedly measures of statistical analysis in the master clock node and from transmitting elapsed time between clock node,
It obtains described from the corresponding signal transmission time of clock node.
Optionally, in some embodiments of the present embodiment, second determination unit 1003, such as can specifically use
In:
According to each sequence from the corresponding signal transmission time of clock node from big to small, to it is each it is described from when
Clock node is ranked up;
According to each sequence from clock node, when being followed successively by each setting delay process from clock node
Between.
Optionally, in some embodiments of the present embodiment, described device for example can also include:
Third transmission unit, for sending synchronizing clock signals from clock node to described;
Receiving unit, for receive it is described from clock node according to the delay process time for synchronised clock letter
Number feedback clock signal returned, it is described from when the clock corresponding delay process time being also used to indicate from the third moment to the 4th
The time at quarter, third moment indicate described at the time of receive the synchronizing clock signals from clock node, when the described 4th
At the time of indicating the transmission feedback clock signal from clock node quarter;
Computing unit, for calculating the difference from clock node corresponding signal feedback time and signal transmission time,
As described from the clock node corresponding verification time, wherein it is described from the corresponding signal feedback time of clock node indicate from
The time at the 5th moment to the 6th moment, the 5th moment indicate that the master clock node sends the synchronizing clock signals
Moment, at the time of the 6th moment indicates that the master clock node receives the feedback clock signal;
First trigger unit, if for it is each it is described meet verification condition from the clock node corresponding verification time, execute
It is described to send work clock setting information from clock node to described;
Second trigger unit, if for it is each it is described be unsatisfactory for verification condition from the clock node corresponding verification time, return
Receipt row measuring signal is in the master clock node and from transmitting elapsed time between clock node;
Wherein, the verification condition are as follows: it is each described all the same from the clock node corresponding verification time, or, each institute
It states from the difference of clock node corresponding verification time and is no more than preset threshold value.
Optionally, in some embodiments, it is each it is described there is different address information from clock node, it is described
It is identified from the corresponding information of clock node using described from the address information of clock node.
Optionally, in some embodiments, each described to use different communication link and institute from clock node
It states master clock node to be communicated, the communication link used described in from clock node from the corresponding information of clock node
It is identified.
The various embodiments provided through this embodiment, master clock node by measurement master clock node with from clock section
Signal transmission time between point can be that should prolong from clock node determination according to from the corresponding signal transmission time of clock node
When the processing time and indicate work clock should be arranged from clock corresponding delay process time from clock node according to this.Although each
The situation difference of a communication line between clock node and master clock node causes each to pass from the corresponding signal of clock node
The defeated time is not usually identical, still, due to it is each from clock node corresponding delay process time and signal transmission time it
With it is all the same, master clock node synchronization to it is each from clock node send work clock setting information, it is each from clock
Node needs just to open by corresponding delay process time when receiving work clock setting information respective work again
Clock timing, it is seen then that each from clock node is to open respective work clock timing in synchronization, i.e., each from clock node
Between to realize clock synchronous.
Referring to Figure 11, the structural schematic diagram of the device of another clock correction in the embodiment of the present invention is shown.In this reality
It applies in example, described device for example can specifically include:
First receiving unit 1101, for receiving described in the transmission of master clock node from the corresponding delay process of clock node
Time, described from the clock node corresponding delay process time is the master clock node according to described corresponding from clock node
Signal transmission time and determination, described from the corresponding signal transmission time of clock node is that the master clock node passes through measurement
Signal is in the master clock node and from transmitting elapsed time and determination between clock node, wherein it is each it is described from
Clock node corresponding delay process time and the sum of signal transmission time are all the same;
Second receiving unit 1102, for receiving described in the master clock node transmission from the corresponding work of clock node
Clock setting information;
Setting unit 1103, under the instruction of the work clock setting information, according to described from clock node pair
Answer the delay process time setting work clock, it is described from the clock corresponding delay process time be used to indicate from the first moment to
The time at the second moment, at the time of first moment indicates the reception work clock setting information from clock node,
At the time of second moment indicates the unlatching work clock timing from clock node.
Optionally, in some embodiments of the present embodiment, described device for example can also include:
Third receiving unit, the synchronizing clock signals sent for receiving the master clock node;
First return unit, for sending feedback clock signal for the synchronizing clock signals;
The synchronizing clock signals and the feedback clock signal, for the master clock node measuring signal in the master
Clock node and from transmitting elapsed time between clock node.
Optionally, in other embodiments of the present embodiment, described device for example can also include:
Third receiving unit, the synchronizing clock signals sent for receiving the master clock node;
Second return unit, for returning to feedback clock for the synchronizing clock signals according to the delay process time
Signal, it is described to be also used to indicate the time from the third moment to the 4th moment from the clock corresponding delay process time, described
At the time of three moment indicated the reception synchronizing clock signals from clock node, the 4th moment indicates described from clock
At the time of node sends the feedback clock signal;
The synchronizing clock signals and the feedback clock signal calculate described from clock pair for the master clock node
It is the verification time answered, true so that whether the master clock node meets verification condition from the clock corresponding verification time according to
Whether determine to described from the clock node transmission work clock setting information;Wherein, described from the clock corresponding verification time
It is described from the corresponding signal of clock node for the difference from clock node corresponding signal feedback time and signal transmission time
Feedback time indicates that from the time at the 5th moment to the 6th moment, the 5th moment indicates described in the master clock node transmission
At the time of synchronizing clock signals, at the time of the 6th moment indicates that the master clock node receives the feedback clock signal;
The verification condition are as follows: it is each described all the same from the clock node corresponding verification time, or, each described from clock node pair
The difference for the verification time answered is no more than preset threshold value.
Optionally, in some embodiments, it is each it is described there is different address information from clock node, it is described
It is identified from the corresponding information of clock node using described from the address information of clock node.
Optionally, in some embodiments, each described to use different communication link and institute from clock node
It states master clock node to be communicated, the communication link used described in from clock node from the corresponding information of clock node
It is identified.
The various embodiments provided through this embodiment, master clock node by measurement master clock node with from clock section
Signal transmission time between point can be that should prolong from clock node determination according to from the corresponding signal transmission time of clock node
When the processing time and indicate work clock should be arranged from clock corresponding delay process time from clock node according to this.Although each
The situation difference of a communication line between clock node and master clock node causes each to pass from the corresponding signal of clock node
The defeated time is not usually identical, still, due to it is each from clock node corresponding delay process time and signal transmission time it
With it is all the same, master clock node synchronization to it is each from clock node send work clock setting information, it is each from clock
Node needs just to open by corresponding delay process time when receiving work clock setting information respective work again
Clock timing, it is seen then that each from clock node is to open respective work clock timing in synchronization, i.e., each from clock node
Between to realize clock synchronous.
Referring to Figure 12, a kind of structural schematic diagram of the system of clock correction in the embodiment of the present invention is shown.In this implementation
In example, the system for example be can specifically include: including master clock node 1201 and from clock node 1202, the master clock section
Point 1201 is configured with above-mentioned exemplary means shown in Fig. 10, and described be configured with shown in above-mentioned Figure 11 from clock node 1202 is shown
Example property device.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.The terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or equipment for including a series of elements not only includes those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or equipment institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including institute
State in the process, method, article or equipment of element that there is also other identical elements.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.System embodiment described above is only schematical, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
The above is only the specific embodiment of the application, it is noted that for the ordinary skill people of the art
For member, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications are also answered
It is considered as the protection scope of the application.