CN102752843A - Time synchronization method - Google Patents

Time synchronization method Download PDF

Info

Publication number
CN102752843A
CN102752843A CN2012102099402A CN201210209940A CN102752843A CN 102752843 A CN102752843 A CN 102752843A CN 2012102099402 A CN2012102099402 A CN 2012102099402A CN 201210209940 A CN201210209940 A CN 201210209940A CN 102752843 A CN102752843 A CN 102752843A
Authority
CN
China
Prior art keywords
node
time
synchronizing
synchronization
synchronous
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.)
Granted
Application number
CN2012102099402A
Other languages
Chinese (zh)
Other versions
CN102752843B (en
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.)
Institute of Information Engineering of CAS
Original Assignee
Institute of Information Engineering of CAS
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 Institute of Information Engineering of CAS filed Critical Institute of Information Engineering of CAS
Priority to CN201210209940.2A priority Critical patent/CN102752843B/en
Publication of CN102752843A publication Critical patent/CN102752843A/en
Application granted granted Critical
Publication of CN102752843B publication Critical patent/CN102752843B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a time synchronization method. The time synchronization method is applied to a wireless sensor network with discontinuous communication, and comprises the steps of carrying out opportunity synchronization on sensor nodes in the wireless sensor network during each synchronous cycle, and carrying out prediction calibration on the sensor node without being synchronized to correct time after the opportunity synchronization is finished, thus achieving the synchronization. According to the time synchronization method, the nodes of the whole wireless sensor network are synchronized in a mode combining the opportunity synchronization and the prediction calibration without dependence on a specified network topology structure, thereby well adapting to network topology change caused by the moving of the nodes or sleeping schedule, reducing the energy consumption of the nodes, and saving the resources of wireless channels.

Description

A kind of method for synchronizing time
Technical field
The present invention relates to the communications field, relate in particular to a kind of method for synchronizing time.
Background technology
Wireless sensor network is a distributed system, because ardware feature and operational environment is different, the time of sensor node tends to depart from the standard time.Many functions in the wireless sensor network are closely related with the time with service, normally work in an orderly manner for guaranteeing wireless sensor network, need a kind of effective method for synchronizing time that the time of the whole network node is carried out synchronously.
In some wireless sensor network application scenarioss, need utilize the mobility of sensor node to increase the monitoring range and the ability of network.In addition, in order to improve the energy utilization efficiency of network, the operating state that needs employing dormancy dispatching mechanism to come management node usually is to reduce unnecessary energy expense.Yet node motion or dormancy meeting destroy the connectedness of network, cause part of nodes in some periods can't with node communication on every side, thereby make network present intermittently connected characteristics.Existing time synchronization protocol and method are primarily aimed at the stable sensor network of topological structure and design; RBS (Reference Broadcast Synchronization for example;) agreement, TPSN (Timing-sync Protocol for Sensor Networks;) agreement and FTPS (Flooding Time Synchronization Protocol) agreement etc., all do not consider the intermittently connected problem of network that node motion or dormancy cause.In intermittently connected sensor network, if adopt existing method for synchronizing time to carry out synchronously, part of nodes possibly can't receive the synchronizing information in the network and lose the synchronous motor meeting term of execution of synchronizing process.Though can deal with this problem through the execution frequency that increases synchronizing process in theory, carry out the energy that synchronizing process not only can the lot of consumption node continually, also can tie up the limited wireless channel resource, influence the operate as normal of sensor network.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method for synchronizing time, solves the time synchronization problem in the intermittently connected sensor network, and reduces node energy consumption, practices thrift radio channel resource.
For solving the problems of the technologies described above, the present invention proposes a kind of method for synchronizing time, be applied to intermittently connected wireless sensor network, comprising:
When arrived each synchronizing cycle, it is synchronous that the sensor node in the said wireless sensor network carries out chance;
After the synchronous process of said chance was ended, the synchronous sensor node of being unrealized was predicted and is calibrated the time of revising oneself, to realize synchronously.
Further, above-mentioned method for synchronizing time also can have following characteristics, and said chance comprises synchronously:
Aggregation node in the said wireless sensor network comprises the synchronizing information of self temporal information to said wireless sensor network broadcasting with the synchronizing cycle set;
The sensor node that directly or indirectly is communicated with said aggregation node; Receive and realize the time synchronized with said prime node according to the synchronizing information that the prime node of this sensor node sends; The synchronizing information that said prime node sends comprises the temporal information of said prime node; Send the synchronizing information comprise self temporal information then; It is synchronous until the afterbody node deadline to repeat this step, and the prime node of said sensor node is meant prior to said sensor node realizes synchronous sensor node.
Further; Above-mentioned method for synchronizing time also can have following characteristics; Said prime node is called sending node; With receiving and realizing being called receiving node with the synchronous back level node of this prime node time according to the synchronizing information that this prime node sends, the synchronizing process between then said sending node and the said receiving node comprises:
Said sending node when detecting channel idle outwards one of broadcasting only comprise the brief control messages of self identification number, and write down the local zone time tsend of this brief control messages delivery time;
Brief control messages and the recorder that said receiving node the receives said sending node local zone time t constantly that finishes Receive
Said sending node is with the time t of said brief control messages delivery time SendWrite in the synchronization message, send to said receiving node;
Said receiving node receives said synchronization message and according to the logical time of its temporal information correction that comprises oneself, correction formula is L (t)=L (t) '-(t Receive-t Send-n τ), wherein L (t) ' is the logical time before the said receiving node correction, and n is the bit number of said brief control messages, and τ is for sending the time of unit Bit data.
Further, above-mentioned method for synchronizing time also can have following characteristics, and said brief control messages comprises sequence number, node serial number; Said synchronization message comprises start-up time, the maximum duration of chance synchronizing process, the synchronizing cycle of transmitting time, the epicycle synchronizing cycle of sequence number, node serial number, brief control messages.
Further, above-mentioned method for synchronizing time also can have following characteristics, and in the said chance synchronizing process, said sending node is confirmed the quantity forwarded of said synchronization message according to following steps:
With the time slot that is divided into equal length each synchronizing cycle, said prime node judges whether the epicycle chance is overtime synchronously, if not overtime then with P (k)=1-β kProbability judgement current time slots in whether send synchronization message, wherein, β is for regulating parameter, k is the sequence number of current time slots;
If said prime node decision is not sent synchronization message in current time slots, then intercept of the arrival of the state of channel until next time slot;
If said prime node does not receive brief control messages and synchronization message that other node sends in intercepting the process of channel; Then in next time slot, repeat preceding two steps; Otherwise calculate the Duplication λ of two node communication scopes according to the node location information that synchronization message is carried, and adjudicate next time slot with the probability of P=1-λ and whether repeat preceding two steps.
Further, above-mentioned method for synchronizing time also can have following characteristics, and said prediction calibration comprises:
The synchronous not synchronization node of in said chance synchronizing process, being unrealized, according to record from the hardware time H (t when preceding n realizes that chance is synchronous in the synchronizing cycle 0), H (t 1) ..., H (t n) and revised logical time L (t 0), L (t 1) ..., L (t n), calculate certainly in the hardware time drift rate of preceding n in the synchronizing cycle ρ i = H ( t i ) - H ( t i - 1 ) L ( t i ) - L ( t i - 1 ) , (i=1,2 ..., n);
To the hardware time drift rate sequence { ρ in preceding n synchronizing cycle of said not synchronization node 1, ρ N-1..., ρ nCarry out prediction and calculation, and obtaining the hardware time drift rate of said not synchronization node in n+1 synchronizing cycle, the formula of prediction and calculation does ρ ^ n + 1 = ▿ 2 ρ ^ n + 1 + ▿ ρ n + ρ n ;
According to the hardware time drift rate of said not synchronization node in n+1 synchronizing cycle the logical time of said not synchronization node is revised, correction formula does L ( t ) = L ( t n ) + ρ ^ n + 1 [ H ( t ) - H ( t n ) ] , Wherein t representes the Current Standard time, and H (t) representes current hardware time of said not synchronization node, H (t n) and L (t n) represent last hardware time and the logical time of realizing when synchronous of said not synchronization node respectively.
Further, above-mentioned method for synchronizing time also can have following characteristics, and chance is synchronous if said not synchronization node was unrealized in i synchronizing cycle, then in prediction
Figure BDA00001791762800044
The time, said hardware time drift rate sequence { ρ 1, ρ N-1..., ρ nIn ρ iObtained by prediction in the last synchronizing cycle
Figure BDA00001791762800045
Replace.
The mode that method for synchronizing time employing chance of the present invention is synchronous and the prediction calibration combines is carried out synchronously the whole network node of wireless sensor network; Do not rely on the particular network topological structure; Can adapt to the network topology change that node motion or dormancy dispatching cause well; Reduce the consumption of node energy, practiced thrift radio channel resource.And method for synchronizing time of the present invention adopts the message mode of " send earlier, then write down, redispatch ", has eliminated the influence of sync message transmission lag to synchronization accuracy, has improved the precision of time synchronized.
Description of drawings
Fig. 1 is the sketch map of chance synchronizing process in the embodiment of the invention;
Fig. 2 is the sketch map of BTS message;
Fig. 3 is the sketch map of TSM message;
Fig. 4 confirms the flow chart of synchronization message quantity forwarded for node in the wireless sensor network;
Fig. 5 is the Duplication algorithm sketch map of two node communication scopes.
Embodiment
Main design of the present invention is: adopt chance to come the whole network node of intermittently connected wireless sensor network is carried out time synchronized with the mode that the prediction calibration combines synchronously.Wherein, chance is meant that synchronously synchronizing process does not rely on the particular network topological structure, and the communication opportunity that utilizes node motion or dormancy awakening to bring carries out synchronously; Prediction calibration is meant that node calibrates the time of oneself through predicting the hardware time drift of oneself, is consistent with the standard time as far as possible.
Method for synchronizing time of the present invention is a kind of method for synchronizing time towards intermittently connected sensor network (A Time Synchronization Method for Intermittently Connected Sensor Networks is called for short TSIC).
Sensor network of the present invention is a wireless network.
Below in conjunction with accompanying drawing principle of the present invention and characteristic are described, institute gives an actual example and only is used to explain the present invention, is not to be used to limit scope of the present invention.
In intermittently connected sensor network, network topology presents the characteristics of dynamic change, so the whole network synchronizing process can not depend on the particular network topological structure.
Method for synchronizing time of the present invention at first adopts the synchronous mode of chance to come the whole network is carried out synchronously, and this chance synchronizing process can comprise the steps:
Step 1, the synchronizing information that synchronizing cycle to wireless sensor network broadcasting comprise the temporal information of Sink node of Sink node (being aggregation node) to set;
Wherein, synchronizing information can be a sync message.
The Sink node can be with the synchronizing information of regular time interval △ t (being synchronizing cycle) broadcasting oneself.
Synchronizing process is initiated by the Sink node, because have only the time of Sink node and standard time to be consistent in the sensor network.
Step 2; With the back level node that the Sink node directly or indirectly is communicated with, receive and realize and the time synchronized of prime node, wherein according to the synchronizing information that the prime node of this back level node sends; The synchronizing information that the prime node sends comprises the temporal information of this prime node; Deadline synchronously after, back level node sends the synchronizing information that comprises self temporal information, it is only synchronous to the afterbody node deadline to repeat this step.
Need to prove that among this paper, the rank of sensor node is meant the time rank, realize that earlier synchronous sensor node is called the prime node, realize that according to this prime node synchronous sensor node is called the back level node of this prime node.Therefore; The fixedly hierarchical relationship that does not have the one-level one-level between the sensor node; The time rank of sensor node just is provided with at receiving synchronous information and after realizing synchronously; Its effect is as follows: if certain not synchronization node receive more than two the synchronizing information of synchronization node, this node that synchronization node is can the select time rank not low is as synchronization object, with the higher synchronization accuracy of acquisition so.
The node of receiving synchronous information is called receiving node; The node that sends synchronizing information is called sending node; Then first order node (being the Sink node) is a sending node; The afterbody node is a receiving node, other nodes except that first order node and afterbody node be sending node be again receiving node.Receiving node is at first synchronous with the sending node of synchronizing information, and the follow-up moment according to network and self state, dynamically the synchronizing information of broadcasting oneself to other not synchronization node carry out synchronously.
The synchronous process of chance is as shown in Figure 1.Among Fig. 1, the black round dot is represented working node, and white round dot is represented the dormancy node, and the dotted line of band arrow is represented the transmission direction of synchronizing information in the chance synchronizing process.
In the step 2,, receive step by step and realize to comprise the steps: with the time synchronized of prime node according to the synchronizing information that its prime node sends with the back level node that the Sink node directly or indirectly is communicated with
Prime node (here for sending node) when detecting channel idle outwards one of broadcasting only comprise the brief control messages BTS (Begin To Synchronization) of self identification number (ID number), and write down the local zone time t of this BTS message delivery time Send
BTS message and the recorder that back level node (being receiving node here) receives the prime node local zone time t constantly that finishes Receive
The prime node is with the time t of BTS message delivery time SendWrite among the synchronization message TSM (Time Sync Message), send to back level node;
Level node in back receives synchronization message and the logical time of the temporal information correction oneself that comprises according to this synchronization message is L (t)=L (t) '-(t Receive-t Send-n τ), wherein L (t) ' is the logical time before the level node correction of back, and n is the bit number of BTS message, and τ is for sending the time of unit Bit data.
The form of BTS message is as shown in Figure 2, and the form of TSM message is as shown in Figure 3.As shown in Figure 2, BTS message comprises sequence number (SEQ) and node serial number (Node ID).Wherein, sequence number accounts for 1byte (byte), and node serial number accounts for 2byte.As shown in Figure 3, TSM message comprises sequence number (SEQ), node serial number (Node ID), synchronous round (Sync Cycle), transmitting time (Sending Time), start-up time (Starting Time), duration (Duration), sync interval (Sync Interval) and node location (Node Location).Wherein, sequence number accounts for 1byte (byte), and node serial number accounts for 2byte, and round accounts for 2byte synchronously, and transmitting time accounts for 4byte, accounts for 4byte start-up time, and the duration accounts for 4byte, and sync interval accounts for 4byte, and node location accounts for 4byte.Wherein, transmitting time is meant the transmitting time t of BTS message Send, being meant epicycle start-up time of synchronizing cycle start-up time, the duration is meant the maximum duration t of chance synchronizing process Duration, sync interval is meant △ t blanking time of cycle synchronisation, just synchronizing cycle.
Whether do not set up any network topology structure in the chance synchronizing process, therefore, node is difficult to obtain the state information of other node in its communication range of current time, for example whether be in resting state, realized synchronously.In order to prevent that too much redundant synchronization message from appearring in node density when big; Avoid simultaneously node density hour to influence the convergence rate of synchronizing process again because of the synchronization message lazy weight; In the chance synchronizing process; The prime node is confirmed the quantity forwarded of synchronization message according to flow process shown in Figure 4, and this confirms that the strategy of synchronization message quantity forwarded is called probability and keeps out of the way strategy.
As shown in Figure 4, in the chance synchronizing process, the prime node is confirmed the quantity forwarded of synchronization message according to following steps:
Step 401, the realization of prime node is synchronous with other nodes;
Step 402 judges whether chance is overtime synchronously, if execution in step 412 then, otherwise execution in step 403;
With the time slot that is divided into equal length each synchronizing cycle, all carry out the judgement of step 402 at each time slot.
Step 403 is with P (k)=1-β kThe probabilistic determination current time slots whether send synchronizing information;
Wherein, β is for regulating parameter, and k is the sequence number of current time slots.
Step 404 judges whether that decision sends synchronizing information, if execution in step 407 then, otherwise execution in step 405;
Step 405 is sent BTS message and TSM message, execution in step 412;
Step 406 gets into next time slot, execution in step 402;
Step 407 is intercepted channel;
Step 408 judges whether to receive TSM message, if execution in step 409 then, otherwise execution in step 406;
Step 409, the Duplication λ of computing node scope;
The Duplication lambda definition of communication range is the overlapping area of two node communication scopes and the ratio of the area of individual node communication range between the node.As shown in Figure 5, establish node N iWith node N jDistance be d Ij, communication radius all is R, the Duplication of two node communication scopes calculates according to following formula (1) so:
λ = 1 πR 2 [ 2 R 2 arccos ( d ij 2 / R ) - 2 d ij R 2 - ( d ij 2 ) 2 ] - - - ( 1 )
Whether step 410 continues with the next time slot of the probabilistic determination of P=1-λ,
Step 411, if the judged result of step 410 is for continuing then execution in step 406, otherwise execution in step 412;
Step 412, shut-down operation.
Since node move or the dormancy meeting causes part of nodes can't receive synchronizing information, therefore, the chance synchronizing process does not guarantee that all nodes in the wireless sensor network can both realize synchronously.In the chance synchronizing process, this part owing to do not receive synchronizing information lose synchronous motor can node waiting for t in the preamble period DurationDo not receive BTS message and TSM message yet after (the maximum duration of chance synchronizing process) time, judge that then epicycle chance synchronizing process ends, and start the prediction alignment mechanism and revise own logical time, realize synchronous with the standard time.
The important prerequisite of prediction calibration is to estimate when the preamble period interior nodes drift rate of hardware time.Drift rate equals the ratio of hardware time and the timing length of standard time.If node in the synchronizing cycle, is t in the standard time at preceding n respectively 0, t 1..., t nThe time and other node realize synchronously, and note the hardware time H (t of oneself 0), H (t 1) ..., H (t n) and revised logical time L (t 0), L (t 1) ..., L (t n), node can use following formula (2) to represent in the hardware time drift rate of preceding n in the synchronizing cycle so:
ρ i H ( t i ) - H ( t i - 1 ) t i - t i - 1 , ( i = 1,2 , · · · , n ) - - - ( 2 )
Because node is difficult to obtain each standard time constantly, and very approaching through revised logical time and standard time, L (t is promptly arranged i) ≈ t i, (i=0,1 ..., n), if ignore small synchronous error, then formula (2) can change following formula (3) into:
ρ i = H ( t i ) - H ( t i - 1 ) L ( t i ) - L ( t i - 1 ) , ( i = 1,2 , · · · , n ) - - - ( 3 )
The drift of node hardware time is to cause that both deviations are big more because the actual operating frequency of crystal oscillator departs from nominal frequency, and the drift rate of hardware time is also just big more.The operating frequency of crystal oscillator mainly receives the influence of ambient temperature, and has the characteristics of nonlinear change.Because ambient temperature is a continually varying in time, this just means that the hardware time drift rate in each synchronizing cycle is a nonlinear time series.If the hardware time drift rate of preceding n in the synchronizing cycle is { ρ 1, ρ N-1..., ρ n, among the present invention, can adopt the second differnce exponential smoothing to come this time series is carried out prediction and calculation, obtain the hardware time drift rate in n+1 synchronizing cycle.The second differnce exponential smoothing is a kind of combination forecasting method towards Nonlinear Time Series, and its fundamental formular is following:
▿ ρ n = ρ n - ρ n - 1 ▿ 2 ρ n = ▿ ρ n - ▿ ρ n - 1 ▿ 2 ρ ^ n + 1 = α ▿ 2 ρ n + ( 1 - α ) ▿ 2 ρ ^ n - - - ( 4 )
In the formula (4); α ∈ (0; 1) is weight coefficient; The reaction speed of representing forecast model that time series data is changed, theoretical value is 2/ (n+1), is the difference mark.After obtaining the result of calculation of formula (4), the hardware time drift rate that just can predict n+1 synchronizing cycle by following formula (5):
ρ ^ n + 1 = ▿ 2 ρ ^ n + 1 + ▿ ρ n + ρ n - - - ( 5 )
After doping the hardware time drift rate of node in next synchronizing cycle, just can revise in real time the logical time of node, concrete formula is following:
L ( t ) = L ( t n ) + ρ ^ n + 1 [ H ( t ) - H ( t n ) ] - - - ( 6 )
In the formula (6), t representes the Current Standard time, and H (t) representes current hardware time of node, H (t n) and L (t n) represent last hardware time and the logical time of realizing when synchronous of node respectively.
Need to prove that node has several times at preceding n and fails to realize that chance is synchronous in the synchronizing cycle, following to the processing method of this situation: chance is synchronous if node was unrealized in i synchronizing cycle, causes ρ iBy formula calculate (6), so in prediction and calculation
Figure BDA00001791762800104
The time, sequence { ρ 1, ρ N-1..., ρ nIn the i item by having obtained
Figure BDA00001791762800105
Replace.
The mode that method for synchronizing time employing chance of the present invention is synchronous and the prediction calibration combines is carried out synchronously the whole network node of wireless sensor network; Do not rely on the particular network topological structure; Can adapt to the network topology change that node motion or dormancy dispatching cause well; Reduce the consumption of node energy, practiced thrift radio channel resource.
In addition, the message mode of the synchronous employing " send record, back earlier " in the existing method for synchronous between two nodes, promptly sending node is stamped timestamp earlier on sync message, and then sync message is sent to receiving node.Because there are certain deviation in the actual transmitting time of sync message and the time of timestamp mark, the message mode of " send record, back earlier " can make synchronization accuracy receive influence to a certain degree.And method for synchronizing time of the present invention adopts the message mode of " send earlier, then write down, redispatch ", and sending node can accurately write down the transmitting time of BTS message, and meanwhile, receiving node can accurately write down the concluding time of BTS message; Subsequently, sending node writes sync message with the transmitting time of BTS message, and sends to receiving node, has eliminated the influence of sync message transmission lag to synchronization accuracy.Therefore, method for synchronizing time of the present invention has improved the precision of time synchronized.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. a method for synchronizing time is applied to intermittently connected wireless sensor network, it is characterized in that, comprising:
When arrived each synchronizing cycle, it is synchronous that the sensor node in the said wireless sensor network carries out chance;
After the synchronous process of said chance was ended, the synchronous sensor node of being unrealized was predicted and is calibrated the time of revising oneself, to realize synchronously.
2. method for synchronizing time according to claim 1 is characterized in that, said chance comprises synchronously:
Aggregation node in the said wireless sensor network comprises the synchronizing information of self temporal information to said wireless sensor network broadcasting with the synchronizing cycle set;
The sensor node that directly or indirectly is communicated with said aggregation node; Receive and realize the time synchronized with said prime node according to the synchronizing information that the prime node of this sensor node sends; The synchronizing information that said prime node sends comprises the temporal information of said prime node; Send the synchronizing information comprise self temporal information then; It is synchronous until the afterbody node deadline to repeat this step, and the prime node of said sensor node is meant prior to said sensor node realizes synchronous sensor node.
3. method for synchronizing time according to claim 2; It is characterized in that; Said prime node is called sending node; With receiving and realizing being called receiving node with the synchronous back level node of this prime node time according to the synchronizing information that this prime node sends, the synchronizing process between then said sending node and the said receiving node comprises:
Said sending node when detecting channel idle outwards one of broadcasting only comprise the brief control messages of self identification number, and write down the local zone time t of this brief control messages delivery time Send
Brief control messages and the recorder that said receiving node the receives said sending node local zone time t constantly that finishes Receive
Said sending node is with the time t of said brief control messages delivery time SendWrite in the synchronization message, send to said receiving node;
Said receiving node receives said synchronization message and according to the logical time of its temporal information correction that comprises oneself, correction formula is L (t)=L (t) '-(t Receive-t Send-n τ), wherein L (t) ' is the logical time before the said receiving node correction, and n is the bit number of said brief control messages, and τ is for sending the time of unit Bit data.
4. method for synchronizing time according to claim 3 is characterized in that, said brief control messages comprises sequence number, node serial number; Said synchronization message comprises start-up time, the maximum duration of chance synchronizing process, the synchronizing cycle of transmitting time, the epicycle synchronizing cycle of sequence number, node serial number, brief control messages.
5. method for synchronizing time according to claim 3 is characterized in that, in the said chance synchronizing process, said sending node is confirmed the quantity forwarded of said synchronization message according to following steps:
With the time slot that is divided into equal length each synchronizing cycle, said prime node judges whether the epicycle chance is overtime synchronously, if not overtime then with P (k)=1-β kProbability judgement current time slots in whether send synchronization message, wherein, β is for regulating parameter, k is the sequence number of current time slots;
If said prime node decision is not sent synchronization message in current time slots, then intercept of the arrival of the state of channel until next time slot;
If said prime node does not receive brief control messages and synchronization message that other node sends in intercepting the process of channel; Then in next time slot, repeat preceding two steps; Otherwise calculate the Duplication λ of two node communication scopes according to the node location information that synchronization message is carried, and adjudicate next time slot with the probability of P=1-λ and whether repeat preceding two steps.
6. method for synchronizing time according to claim 1 is characterized in that, said prediction calibration comprises:
The synchronous not synchronization node of in said chance synchronizing process, being unrealized, according to record from the hardware time H (t when preceding n realizes that chance is synchronous in the synchronizing cycle 0), H (t 1) ..., H (t n) and revised logical time L (t 0), L (t 1) ..., L (t n), calculate certainly in the hardware time drift rate of preceding n in the synchronizing cycle ρ i = H ( t i ) - H ( t i - 1 ) L ( t i ) - L ( t i - 1 ) , (i=1,2 ..., n);
To the hardware time drift rate sequence { ρ in preceding n synchronizing cycle of said not synchronization node 1, ρ N-1..., ρ nCarry out prediction and calculation, and obtaining the hardware time drift rate of said not synchronization node in n+1 synchronizing cycle, the formula of prediction and calculation does ρ ^ n + 1 = ▿ 2 ρ ^ n + 1 + ▿ ρ n + ρ n ;
According to the hardware time drift rate of said not synchronization node in n+1 synchronizing cycle the logical time of said not synchronization node is revised, correction formula does L ( t ) = L ( t n ) + ρ ^ n + 1 [ H ( t ) - H ( t n ) ] , Wherein t representes the Current Standard time, and H (t) representes current hardware time of said not synchronization node, H (t n) and L (t n) represent last hardware time and the logical time of realizing when synchronous of said not synchronization node respectively.
7. method for synchronizing time according to claim 6 is characterized in that, chance is synchronous if said not synchronization node was unrealized in i synchronizing cycle, then in prediction
Figure FDA00001791762700034
The time, said hardware time drift rate sequence { ρ 1, ρ N-1..., ρ nIn ρ iObtained by prediction in the last synchronizing cycle
Figure FDA00001791762700035
Replace.
CN201210209940.2A 2012-06-20 2012-06-20 A kind of method for synchronizing time Expired - Fee Related CN102752843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210209940.2A CN102752843B (en) 2012-06-20 2012-06-20 A kind of method for synchronizing time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210209940.2A CN102752843B (en) 2012-06-20 2012-06-20 A kind of method for synchronizing time

Publications (2)

Publication Number Publication Date
CN102752843A true CN102752843A (en) 2012-10-24
CN102752843B CN102752843B (en) 2016-04-13

Family

ID=47032680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210209940.2A Expired - Fee Related CN102752843B (en) 2012-06-20 2012-06-20 A kind of method for synchronizing time

Country Status (1)

Country Link
CN (1) CN102752843B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716201A (en) * 2013-12-12 2014-04-09 中国科学院信息工程研究所 Open wireless sensing network performance test method and open wireless sensing network performance test system
CN105052181A (en) * 2013-03-27 2015-11-11 高通股份有限公司 Systems and methods for synchronization within a neighborhood aware network
CN105722211A (en) * 2016-03-22 2016-06-29 中国科学院电子学研究所 Data time synchronization method for magnetic field sensor based on terrestrial magnetism correlation
CN106488549A (en) * 2016-12-02 2017-03-08 中国船舶重工集团公司第七二四研究所 A kind of abnormal shape wireless communication system asynchronous time slot alignment methods
CN111314004A (en) * 2018-12-12 2020-06-19 深圳市云海物联科技有限公司 Time service method and device for smart home, terminal equipment and storage medium
CN111447673A (en) * 2020-04-03 2020-07-24 南京大鱼半导体有限公司 Synchronization method, device, storage medium and node of wireless ad hoc network
WO2021142828A1 (en) * 2020-01-19 2021-07-22 京东方科技集团股份有限公司 Time synchronization method and apparatus, and network node device
WO2021223102A1 (en) * 2020-05-06 2021-11-11 Telefonaktiebolaget Lm Ericsson (Publ) Method and time synchronization (ts) node for enabling extended holdover time

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040005020A1 (en) * 1999-01-25 2004-01-08 Dent Paul W. Multi-stage CDMA synchronization with parallel execution
CN101087219A (en) * 2006-06-09 2007-12-12 中国科学院软件研究所 Wireless sensor network time synchronization method and device based on error statistics
US20080153420A1 (en) * 2000-08-31 2008-06-26 Kitchin Duncan M Mitigating interference between wireless systems
CN101822103A (en) * 2007-08-14 2010-09-01 株式会社Ntt都科摩 Base station device, mobile station device, and synchronization channel transmission method
CN101883420A (en) * 2010-06-25 2010-11-10 中国科学院软件研究所 Method for synchronizing time of wireless sensor network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040005020A1 (en) * 1999-01-25 2004-01-08 Dent Paul W. Multi-stage CDMA synchronization with parallel execution
US20080153420A1 (en) * 2000-08-31 2008-06-26 Kitchin Duncan M Mitigating interference between wireless systems
CN101087219A (en) * 2006-06-09 2007-12-12 中国科学院软件研究所 Wireless sensor network time synchronization method and device based on error statistics
CN101822103A (en) * 2007-08-14 2010-09-01 株式会社Ntt都科摩 Base station device, mobile station device, and synchronization channel transmission method
CN101883420A (en) * 2010-06-25 2010-11-10 中国科学院软件研究所 Method for synchronizing time of wireless sensor network

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105052181A (en) * 2013-03-27 2015-11-11 高通股份有限公司 Systems and methods for synchronization within a neighborhood aware network
CN103716201B (en) * 2013-12-12 2017-01-18 中国科学院信息工程研究所 Open wireless sensing network performance test method and open wireless sensing network performance test system
CN103716201A (en) * 2013-12-12 2014-04-09 中国科学院信息工程研究所 Open wireless sensing network performance test method and open wireless sensing network performance test system
CN105722211B (en) * 2016-03-22 2019-03-12 中国科学院电子学研究所 Utilize the magnetic field sensor data method for synchronizing time of earth magnetism correlation
CN105722211A (en) * 2016-03-22 2016-06-29 中国科学院电子学研究所 Data time synchronization method for magnetic field sensor based on terrestrial magnetism correlation
CN106488549B (en) * 2016-12-02 2020-01-24 中国船舶重工集团公司第七二四研究所 Asynchronous time slot alignment method for special-shaped wireless communication system
CN106488549A (en) * 2016-12-02 2017-03-08 中国船舶重工集团公司第七二四研究所 A kind of abnormal shape wireless communication system asynchronous time slot alignment methods
CN111314004A (en) * 2018-12-12 2020-06-19 深圳市云海物联科技有限公司 Time service method and device for smart home, terminal equipment and storage medium
WO2021142828A1 (en) * 2020-01-19 2021-07-22 京东方科技集团股份有限公司 Time synchronization method and apparatus, and network node device
CN113498623A (en) * 2020-01-19 2021-10-12 京东方科技集团股份有限公司 Time synchronization method and device and network node equipment
US11799578B2 (en) 2020-01-19 2023-10-24 Beijing Boe Technology Development Co., Ltd. Time synchronization method and device, network node device
CN111447673A (en) * 2020-04-03 2020-07-24 南京大鱼半导体有限公司 Synchronization method, device, storage medium and node of wireless ad hoc network
CN111447673B (en) * 2020-04-03 2022-06-10 南京大鱼半导体有限公司 Synchronization method, device, storage medium and node of wireless ad hoc network
WO2021223102A1 (en) * 2020-05-06 2021-11-11 Telefonaktiebolaget Lm Ericsson (Publ) Method and time synchronization (ts) node for enabling extended holdover time

Also Published As

Publication number Publication date
CN102752843B (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN102752843A (en) Time synchronization method
Zhang et al. A low duty cycle efficient MAC protocol based on self-adaption and predictive strategy
CN101883420B (en) Method for synchronizing time of wireless sensor network
CN105474673B (en) Signaling is directly controlled in wireless communication system
CN101335587B (en) Accurate time synchronization method for industrial wireless network
KR20100081321A (en) Method for transmitting information packets within an asynchronous wireless communication network and network node implementing it
CN101471766B (en) Time synchronization method of wireless sensor network
CN102083183A (en) Low-energy consumption sleeping monitoring method synchronous relative to time of wireless sensor network
KR102356673B1 (en) Sleepy Device Operation in Asynchronous Channel Hopping Networks
CN104812030A (en) Mixed media access control method for chained wireless sensor network
CN102625427A (en) Wireless sensor network data acquisition method based on asynchronous awakening scheduling
CN103209473A (en) Information acquisition method for low-power-consumption wireless sensor network
CN110290579A (en) Wireless ad hoc network method for synchronizing time, node and wireless ad hoc network under a kind of narrowband condition
CN104202803A (en) Energy-saving MAC protocol communication method based on wireless sensor network
CN107197514B (en) Cognitive global clock synchronization method of wireless sensor network and method applied to multi-hop network
US20120134456A1 (en) Methods and apparatuses for synchronization of wireless devices in wireless networks
Qin et al. DIPS: Dual-interface dual-pipeline scheduling for energy-efficient multihop communications in IoT
CN102724741A (en) Micro-cycle-based sleep method adapted to routing nodes in wireless sensor network
CN109068385A (en) A kind of underwater wireless method for synchronizing network time with fault-tolerance
Mirabella et al. Dynamic continuous clock synchronization for IEEE 802.15. 4 based sensor networks
Watwe et al. A design for performance improvement of clock synchronization in WSNs using a TDMA-based MAC protocol
Venugopal et al. DQTSM: distributed Qos in time synchronized MAC protocol for WSNs
Khan et al. Issues towards Efficient Time Synchronization in Wireless Sensor Networks
Duan et al. A novel TDMA and multi-hop MAC protocol in cluster-based wireless sensor networks
Dalwadi et al. Cluster-based Improvised Time Synchronization Algorithm for Multihop IoT Networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160413

Termination date: 20190620

CF01 Termination of patent right due to non-payment of annual fee