CN108243396A - A kind of time synchronizing method and device - Google Patents

A kind of time synchronizing method and device Download PDF

Info

Publication number
CN108243396A
CN108243396A CN201611228604.7A CN201611228604A CN108243396A CN 108243396 A CN108243396 A CN 108243396A CN 201611228604 A CN201611228604 A CN 201611228604A CN 108243396 A CN108243396 A CN 108243396A
Authority
CN
China
Prior art keywords
time
stage
broadcast message
node
message
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
CN201611228604.7A
Other languages
Chinese (zh)
Other versions
CN108243396B (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.)
Putian Information Technology Co Ltd
Original Assignee
Putian Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Putian Information Technology Co Ltd filed Critical Putian Information Technology Co Ltd
Priority to CN201611228604.7A priority Critical patent/CN108243396B/en
Publication of CN108243396A publication Critical patent/CN108243396A/en
Application granted granted Critical
Publication of CN108243396B publication Critical patent/CN108243396B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/004Synchronisation arrangements compensating for timing error of reception due to propagation delay

Abstract

The embodiment of the present invention provides a kind of time synchronizing method and device.The method includes:Multiple first stage broadcast messages are received, each first stage broadcast message carries first time, the first hierarchical information and the first identification information;According to the second time and first time for receiving each first stage broadcast message, obtained for first time difference;Multiple second stage broadcast messages are returned to, each second stage broadcast message carries third time, first time difference, the second hierarchical information, the first identification information and the second identification information;Phase III broadcast message is connect, phase III broadcast message carries the first hierarchical information, the first identification information, the second identification information and second time difference;The standard time difference progress time synchronization obtained is calculated according to first time difference and second time difference.Described device is used to perform the above method.Method and device provided in an embodiment of the present invention reduces the cost of time synchronization.

Description

A kind of time synchronizing method and device
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of time synchronizing method and devices.
Background technology
A basic physical reference amount of the time as the motion of matter, has a wide range of applications in social every field, In, satellite navigation, electric power synchronous sampling system and needs coordinate operation cluster device, often all have one to the precision of time Fixed requirement.
Under the conditions of the prior art, time synchronizing method is usually used GPS satellite navigation and provides standard time code information, leads to It crosses embedded scm and solves temporal information and pass through Asynchronous Serial Interface and be sent to computer host computer, reach precision time service and real The purpose that existing various discrete subsystem synchronizes;Common another kind time synchronizing method is Ethernet time synchronization, is to pass through net The Network Time Protocol of network carries out time calibration with time source.Operation is coordinated for needs and geographical location is although not far from one another, but compared with For the cluster device of dispersion, for example, there is fast and flexible to build the light under the scenes such as the arenas of demand, stage, fountain, pyrotechnics, Explosion etc. has the equipment of synchronisation requirement or the traffic control equipment at crossing and security device etc., if set by GPS It is standby to synchronize, then big with power consumption, the shortcomings that module volume is big, expense is relatively high;And it is synchronized and carried out by Ethernet Time service synchronization then needs connected with network cable to transmit, and volume is larger, builds dumb the problem of causing cost higher.
Therefore, reduce time service synchronize cost problem be current industry it is urgently to be resolved hurrily need subject.
Invention content
For the defects in the prior art, the embodiment of the present invention provides a kind of time synchronizing method and device.
On the one hand, the embodiment of the present invention provides a kind of time synchronizing method, including:
Present node receives the broadcast message of multiple first stage that upper strata destination node is sent, each first stage broadcast message First time, the first hierarchical information and the first identification information are carried, the first time is that the upper strata destination node is sent out The time of the first stage broadcast message is sent, the hierarchical information is used to identify the layer that the upper strata destination node is located at Grade, first identification information are used to identify the upper strata destination node;
The present node is broadcasted according to the second time and each first stage that receive each first stage broadcast message The first time entrained by message obtained for first time difference;
The present node returns to multiple second stage to the upper strata destination node and broadcasts the message, each second stage broadcast Message carries third time, first time difference, the second hierarchical information, first identification information and the second identity Information, so that the upper strata destination node is according to the 4th time and each second stage for receiving each second stage broadcast message The broadcast message entrained third time obtained for second time difference;Wherein, the third time sends for the present node The time of each second stage broadcast message, second hierarchical information is for identifying the level that the present node is located at, institute The second identification information is stated for identifying the present node;
The present node receives the phase III broadcast message that the upper strata destination node is sent, and the phase III is wide It broadcasts message and carries first hierarchical information, first identification information, second identification information and described the Two time differences;
The present node calculates the standard time difference according to first time difference and second time difference, and according to the standard The time difference carries out the time synchronization with the upper strata destination node.
On the other hand, the embodiment of the present invention provides a kind of time synchronizing device, including:
First receiving unit, for receiving the broadcast message of multiple first stage that upper strata destination node is sent, each first rank Section broadcast message carries first time, the first hierarchical information and the first identification information, and the first time is the upper strata Destination node sends the time of the first stage broadcast message, and the hierarchical information is used to identify the upper strata destination node institute The level being located at, first identification information are used to identify the upper strata destination node;
Acquiring unit, for being broadcasted according to the second time and each first stage that receive each first stage broadcast message The first time entrained by message obtained for first time difference;
First transmitting element broadcasts the message for returning to multiple second stage to the upper strata destination node, each second-order Section broadcast message carries third time, first time difference, the second hierarchical information, first identification information and the second body Part identification information, so that the upper strata destination node is according to the 4th time for receiving each second stage broadcast message and each the The two-stage broadcast message entrained third time obtained for second time difference;Wherein, the third time works as prosthomere to be described Point sends the time of each second stage broadcast message, and second hierarchical information is used to identify the level that described device is located at, Second identification information is used to identify described device;
Second receiving unit, for receiving the phase III broadcast message that the upper strata destination node is sent, the third Multi-stage broadcast message carry first hierarchical information, first identification information, second identification information and Second time difference;
Synchronization unit, for calculating the standard time difference, and according to the mark according to first time difference and second time difference Punctual poor progress and the time synchronization of the upper strata destination node.
Time synchronizing method and device provided in an embodiment of the present invention, by need the cluster device that cooperates it Between successively transmit it is non-link broadcast message, and according to it is described it is non-link the temporal information that is carried in broadcast message calculate it is each It is the standard time difference between level equipment and last layer grade equipment, same according to the standard time difference and last layer grade equipment progress time Step reduces the cost of time synchronization.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments, for those of ordinary skill in the art, without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram of time synchronizing method provided in an embodiment of the present invention;
Fig. 2 is node layer grade distribution schematic diagram provided in an embodiment of the present invention;
Fig. 3 is the signaling interaction diagram of time synchronizing method provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of time synchronizing device that one embodiment of the invention provides;
Fig. 5 is the structure diagram of time synchronizing device that another embodiment of the present invention provides;
Fig. 6 is electronic equipment entity apparatus structure diagram provided in an embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is explicitly described, it is clear that described embodiment be the present invention Part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having All other embodiments obtained under the premise of creative work are made, shall fall within the protection scope of the present invention.
Fig. 1 is the flow diagram of time synchronizing method provided in an embodiment of the present invention, as shown in Figure 1, this implementation Example provides a kind of time synchronizing method, including:
S1, present node receive the broadcast message of multiple first stage that upper strata destination node is sent, each first stage broadcast Message carries first time, the first hierarchical information and the first identification information, and the first time is the upper strata target section Point sends the time of the first stage broadcast message, and the hierarchical information is used to identify what the upper strata destination node was located at Level, first identification information are used to identify the upper strata destination node;
Specifically, the present node is located within the signal cover of the upper strata destination node, the upper strata mesh Mark node sends multiple first stage broadcast messages in a broadcast manner, and the first stage broadcast message carries the upper strata mesh The first level that mark node sends the first time of each first stage broadcast message, the upper strata destination node is located at Information, the first flag information for identifying the upper strata destination node, the present node receive the upper strata destination node The multiple first stage broadcast message sent.It is understood that the transmission frequency of the first stage broadcast message is It is preset, can be specifically adjusted according to actual conditions, the upper strata destination node can be standard nodes, it is described on Layer destination node can adjust temporal by the GPS device of inside setting and be adjusted to the standard time, can not also include institute GPS device is stated, can be adjusted according to actual conditions, be not specifically limited herein.
S2, the present node are wide according to the second time and each first stage for receiving each first stage broadcast message The first time entrained by message is broadcast, obtained for first time difference;
Specifically, the present node acquisition receives the broadcast message of each first stage that the upper strata destination node is sent The second time, and first time entrained according to second time and each first stage broadcast message, meter The difference of each first stage broadcast message corresponding second time and first time are calculated, by each first rank The average value of the difference of section broadcast message corresponding first time and the second time is as first time difference.
S3, the present node return to multiple second stage to the upper strata destination node and broadcast the message, each second stage Broadcast message carries third time, first time difference, the second hierarchical information, first identification information and the second identity Identification information, the 4th time and each second to broadcast the message for the upper strata destination node according to each second stage is received The third time entrained by multi-stage broadcast message obtained for second time difference;Wherein, the third time is the present node The time of each second stage broadcast message is sent, second hierarchical information is used to identify the layer that the present node is located at Grade, second identification information are used to identify the present node;
Specifically, it after the present node calculates acquisition second time difference, is returned to the upper strata destination node multiple Second stage broadcasts the message, and the multiple second stage broadcast message carries the present node and sends each second stage The third time of broadcast message calculates first time difference obtained, the second hierarchical information that the present node is located at, uses In second identification information for identifying the present node and the first body for identifying the upper strata destination node Part information.The upper strata destination node receives the multiple second stage broadcast message, and obtains that receive the basis more 4th time of a second stage broadcast message, according to entrained by the 4th time and each second stage broadcast message The third time calculates the difference of each second stage broadcast message corresponding 4th time and third time, will be each A second stage broadcast the message corresponding 4th time and third time difference average value as described second The time difference.It is understood that the transmission frequency of the second stage broadcast message is also preset;Work as prosthomere due to described Point is to send the second stage broadcast message in a broadcast manner, next in the present node signal cover The node of level can also receive second stage broadcast message, therefore second stage broadcast message carries described the One identification information, so that the upper strata destination node is wide to the second stage according to first identification information Message is broadcast to be handled accordingly, and the node of next level ignores second stage broadcast message.
S4, the present node receive the phase III broadcast message that the upper strata destination node is sent, the third rank Section broadcast message carries first hierarchical information, first identification information, second identification information and institute Stated for second time difference;
Specifically, the upper strata destination node calculates according to the third time and the 4th time and obtains described second After the time difference, multiple phase IIIs broadcast messages are sent to the present node, the phase III broadcast message is carried on described The first hierarchical information for being located at of layer destination node, by identify the present node second identification information and based on It calculates second time difference obtained, the present node receives the phase III broadcast message.The phase III broadcast disappears The transmission frequency of breath is also preset, can be specifically adjusted according to actual conditions, is not specifically limited herein.
S5, the present node calculate the standard time difference, and according to described according to first time difference and second time difference The standard time difference carries out the time synchronization with the upper strata destination node.
Specifically, after the present node receives the phase III broadcast message, the phase III broadcast is obtained Second time difference carried in message, by the difference of second time difference and first time difference for calculating acquisition in step sl again Product with 1/2 as the standard time difference, and pass through according to the standard time difference to the present node corresponding time into Row adjusts to realize the time synchronization with the upper strata destination node.
Time synchronizing method provided in an embodiment of the present invention, by needing between the cluster device that cooperates successively Transmit it is non-link broadcast message, and according to it is described it is non-link the temporal information that is carried in broadcast message and calculate each level set The standard time difference between the standby grade equipment with last layer carries out time synchronization, drop according to the standard time difference and last layer grade equipment The low cost of time synchronization.
On the basis of above-described embodiment, further, the phase III broadcast message further includes broadcast scheduling information, The broadcast scheduling information is used to indicate the present node and sends multiple first stage to next hierarchy node of place level The initial time of broadcast message and termination time;Correspondingly, the method further includes:
The present node is wide to next hierarchy node transmission multiple first stage according to the broadcast scheduling information Broadcast message.
Specifically, the upper strata destination node is further included to the phase III broadcast message that the present node is sent Broadcast scheduling information, the broadcast scheduling information are used to indicate the present node and are sent to next hierarchy node of place level The initial time of multiple first stage broadcast messages and termination time, the present node are completed and the upper strata destination node Time synchronization after, start according to the initial time in the broadcast scheduling information according to the frequency to next level Node sends multiple first stage broadcast messages.It is understood that the broadcast scheduling information is the upper strata destination node What the second stage broadcast message according to receiving determined.
Time synchronizing method provided in an embodiment of the present invention, by needing between the cluster device that cooperates successively Transmit it is non-link broadcast message, and according to it is described it is non-link the temporal information that is carried in broadcast message and calculate each level set The standard time difference between the standby grade equipment with last layer carries out time synchronization, drop according to the standard time difference and last layer grade equipment The low cost of time synchronization.
On the basis of above-described embodiment, further, it is poor that first stage broadcast message further includes time standard, institute When to state time standard difference be the message sink that the upper strata destination node broadcasts the message according to local reception to the first stage Between and the first stage broadcast message that receives in the message sending time that carries obtain;Correspondingly, the method It further includes:
If what multiple last layer grade nodes of level were sent where the present node receives the present node is described First stage broadcasts the message, then the time standard difference carried in being broadcast the message according to the first stage determines the target Upper layer node;Wherein, the time standard difference that the target upper layer node is sent is minimum.
Specifically, if multiple last layer grade nodes that the present node receives present node place level are sent First stage broadcast message, carry the multiple last layer grade node according to local in first stage broadcast message It receives and is taken in the first stage message receipt times to broadcast the message and the first stage received broadcast message The time standard that the message sending time of band obtains is poor, then the present node carries in being broadcast the message according to the first stage The time standard difference obtain the corresponding last layer grade node of the time standard difference minimum value and saved as the target upper strata Point.If it is understood that the standard time difference of the present node and the upper strata destination node is t, the last layer grade section The message receipt times of i-th of first stage broadcast message that point local reception is arrived are T1,i, the last layer grade node sheet The message sending time carried in i-th of first stage broadcast message that ground receives is T2,i, d is processing delay, then Δ T21, i=T2,i-T1,i=ti+ d, time standard are poorFor Δ T21Standard deviation, SdFor the standard deviation of d, and 2 in the of short duration time Standard time difference t between nodeiIt may be considered constant, then ti=t, due to:
And due to the standard deviation S of processing delay ddThe stability of synchronization link can be characterized, simultaneouslyTherefore originally Inventive embodiments can be poor by the time standardCharacterize the stability of corresponding synchronization link, the present node choosing The corresponding last layer grade node of the time standard difference minimum value is selected as the target upper layer node, that is, selects synchronization link most Stable last layer node is as the target upper layer node, described first that other last layer grade nodes received are sent Multi-stage broadcast message abandons.
In the above embodiments, the transmission frequency of the second stage broadcast message is less than first stage broadcast and disappears The transmission frequency of breath.
Specifically, the transmission frequency of the transmission frequency of the first stage broadcast message and second stage broadcast message It is pre-set, and the transmission frequency of second stage broadcast message is less than the hair of first stage broadcast message Send frequency.
In the above embodiments, the first stage broadcast message, second stage broadcast message and the third Multi-stage broadcast message is non-to link broadcast message.
Specifically, the first stage broadcast message, second stage broadcast message and phase III broadcast disappear Breath be it is non-link broadcast message, i.e. first stage broadcast message, second stage broadcast message and the third Multi-stage broadcast message carries out message transmission using the non-broadcast mode that links, non-to link broadcast and initiate the connection, to subtract Few expense.MANUFACTURER SPECIFIC DATA are used in the non-PDU for linking broadcast, it is net that content maximum includes 26byte Lotus.
The method flow is carried out below by a specific embodiment of the time synchronizing method further Explanation:
Fig. 2 is node layer grade distribution schematic diagram provided in an embodiment of the present invention, as shown in Fig. 2, in 0 standard time of layer node Be provided with GPS module, can precision time service, 1 node A of layer, 1 node B of layer, 1 node C of layer, 1 node D of layer are in the low of 0 node of layer Within power consumption bluetooth devices coverage area, the broadcast message that 0 node of layer is sent can be received, broadcast can also be sent Message is to 0 node of layer;2 node e of layer are within the low-power consumption bluetooth equipment communication coverage of 1 node A of layer, 2 node f of layer Within the low-power consumption bluetooth equipment communication coverage of 1 node B of layer, low-power consumption bluetooths of the 2 node g of layer in 1 node C of layer communicates Within equipment coverage area, 2 node g of layer and 2 node h of layer 1 node D of layer low-power consumption bluetooth equipment communication coverage with Interior, 2 node of layer can receive the broadcast message that its corresponding 1 node of the layer is sent, can also send broadcast message to Its corresponding described 1 node of layer, still, all 2 nodes of layer cannot directly by low-power consumption bluetooth is non-can linking communications mode Receive the broadcast singal of 0 standard time of the layer node;The relationship between node in follow-up each level and so on, herein It repeats no more.It should be noted that it is provided according to low-power consumption bluetooth agreement, between the low-power consumption bluetooth equipment of each node Message transmission is carried out by the non-broadcast mode that links, each low-power consumption bluetooth equipment is divided into main equipment and slave device, The low-power consumption bluetooth equipment for sending broadcast message is preset as main equipment, the low-power consumption bluetooth equipment for receiving broadcast message be from Equipment;In original state, standard device is slave device, that is, the low-power consumption bluetooth equipment of 0 node of layer is slave device, remaining The low-power consumption bluetooth equipment of each level is main equipment, and therefore, the low-power consumption bluetooth equipment of each node needs to carry out Principal and subordinate converts, and the change-over period can be preset, and each main equipment starts master after the broadcast message for receiving slave device From transition timer, each equipment carries out principal and subordinate's conversion according to the preset change-over period;It can also be 0 node of the layer hair It carries in the broadcast message sent and is successively configured successively, can specifically be set according to actual conditions, do not done herein specific It limits.
Fig. 3 is the signaling interaction diagram of time synchronizing method provided in an embodiment of the present invention, as shown in figure 3, when described Between synchronization processing method specifically include:
S101,0 node of layer send first stage broadcast message;0 node of layer is as slave device in first predetermined period T0 Interior to send N number of first stage broadcast message with every 1 second frequency of one, each first stage broadcast message carries “ID0, 0 layer, T1,i", wherein, ID0By 0 node of layer identification information, 0 layer be level that 0 node of layer is located at Information, T1,iThe time of i-th of first stage broadcast message, 1≤i≤N are sent for 0 node of layer.The first stage broadcast After the completion of message, 0 node of layer is converted to main equipment by slave device.It is understood that the first stage broadcast message Transmission frequency be preset.
S102,1 node of layer calculated for first time difference according to the first stage broadcast message received and time standard is poor; The 1 node A of layer is as main equipment in first predetermined period T0N is inside had successfully received altogetherAWhat a 0 node of the layer was sent First stage broadcasts the message, 1≤nA≤N;The time that acquisition receives i-th of first stage broadcast message is T2,i, calculate ΔT21,i=T2,i-T1,i, and calculate the Δ T21,iAverage value as first time differenceAnd The time standard is poorThen, 1 node A of layer is converted to slave device by main equipment.It can manage Solution, the 1 node B of layer, 1 node C of layer, 1 node D of layer also calculate corresponding first time difference according to the method described above Poor with the time standard, details are not described herein again for detailed process.
S103,1 node of layer return to second stage broadcast message to 0 node of layer;1 node A of layer is second default week Phase T0The interior frequency with every five seconds for example one sends the M second stage and broadcasts the message, wherein M=N/5;The second stage is wide It broadcasts message and carries " ID0、IDA, 1 layer, T3,i", wherein, ID0Identification information, ID for 0 node of layerAIt is described Identification information, the 1 layer of hierarchical information being located at by 1 node of layer of 1 node A of layer,To calculate described in acquisition First time difference, T3,iThe time of i-th of second stage broadcast message is sent for the 1 node A of layer;Then, 1 node A of layer is by from setting It is standby to be converted to main equipment.It is understood that the 1 node B of layer, 1 node C of layer, 1 node D of layer are also according to the method described above to institute It states 0 node of layer and returns to the second stage broadcast message, details are not described herein again for detailed process.It should be noted that just because of The 1 node A of layer, 1 node B of the layer, 1 node C of layer, 1 node D of layer return to the second stage to 0 node of layer simultaneously Broadcast message can increase by 0 node of layer and receive load, therefore the transmission frequency of second broadcast message is set to be less than described first The transmission frequency of multi-stage broadcast message, with the processing time for giving 0 node of layer relatively long, in order to avoid interfere.
S104,0 node of layer obtained for second time difference according to the second stage broadcast message received and broadcast scheduling is believed Breath;0 node of layer is as main equipment in second predetermined period T0M is inside had successfully received altogetherAA 1 node A of the layer is returned The second stage broadcast message, 1≤mA≤M;It obtains and receives time of i-th of second stage broadcast message and be T4,i, calculate Δ T43,i=T4i,-T3i,, and calculate the Δ T21,iAverage value as second time differenceAnd calculate the standard time difference of the 1 node A of layer and 0 node of layerAccording to each A 1 node of the layer corresponding standard time difference obtains the broadcast scheduling information, then, 0 node of layer by main equipment be converted to from Equipment.It is understood that the 1 node B of layer, 1 node C of layer, 1 node D of layer also calculate according to the method described above respectively with it is described The standard time difference of 0 node of layer is respectively tB、tC、tD, details are not described herein again for detailed process.0 node of layer is according to the tA、tB、 tC、tDIt is ranked up from small to large as tA≤tB≤tC≤tD, then 1 node of layer is sent described the to the node of next level The corresponding first predetermined period T of one stage broadcast message0It is divided into T01-T02、T02-T03、T03-T04And T04-T05Totally four A period, the broadcast scheduling information is generated, the broadcast scheduling information includes:1 node of layer is sent out to 1 node of layer It is the 1 node A of layer from T to send the sequence of first stage when broadcasting the message01Start to send the first stage broadcast message, In T02Stop sending the first stage broadcast message;The 1 node B of layer is from T02Start to send the first stage broadcast to disappear Breath, in T03Stop sending the first stage broadcast message;The 1 node C of layer is from T03Start to send the first stage broadcast Message, in T04Stop sending first stage broadcast message, 1 node D of the layer from T04Start to send the first stage wide Message is broadcast, in T05Stop sending the first stage broadcast message.
S105,0 node of layer send phase III broadcast message to 1 node of layer;0 node of layer is as slave device in third A predetermined period T0It is interior that N number of phase III broadcast message is sent with every 1 second frequency of one, wherein, there is N/4 institute " ID can be carried by stating phase III broadcast message0, IDA, 0 layer,Broadcast scheduling information " can also carry " ID0, IDA, 0 Layer, tA, broadcast scheduling information ", wherein, ID0Identification information, ID for 0 node of layerABody for the 1 node A of layer Part identification information, 0 layer of hierarchical information being located at by 0 node of layer,To calculate second time difference obtained, tAFor The standard time difference of the 1 node A of layer and 0 node of layer;Then, 0 node of layer is converted to main equipment by slave device.It can be with Understand, the 1 node B of layer of the transmission N/4 corresponding phase IIIs are wide respectively according to the method described above for 0 node of layer The corresponding phase III broadcast message of message, 1 node C of layer, the corresponding phase III broadcast messages of 1 node D of layer are broadcast, Details are not described herein again for detailed process.It should be noted that each 1 node of layer of 0 node of the layer transmission corresponding phase III is wide The number broadcast the sequencing of message and sent can be adjusted according to actual conditions, be not specifically limited herein.
S106,1 node of layer carry out time synchronization according to the standard time difference;The 1 node A of layer is described default in the third Cycle T0Inside receive a phase III broadcast message, 1≤pA≤N;If the phase III broadcast message carries " ID0, IDA, 0 layer,Broadcast scheduling information ", then 1 node A of layer according toWithCalculate standard deviation If the phase III broadcast message carries " ID0, IDA, 0 layer, tA, broadcast scheduling information ", then 1 node A of layer directly acquires described Standard deviation tA;1 node of layer is according to standard deviation tAIts own clock is adjusted, completes the time synchronization with 0 node of layer;So Afterwards, the 1 node A of layer is converted to slave device by main equipment.It is understood that the 1 node B of layer, 1 node C of layer, layer 1 save Point D also carries out time synchronization according to corresponding standard time difference according to the method described above, and details are not described herein again for detailed process.
S107,1 node of layer send first stage broadcast message according to the broadcast scheduling information;The 1 node A of layer is at it Corresponding first predetermined period T0Interior T01-T02In period N/4 described first is sent with every 1 second frequency of one Multi-stage broadcast message, the first stage broadcast message carry " IDA, 1 layer,", wherein, IDAFor 1 node of layer The identification information of A, 1 layer of hierarchical information being located at by the 1 node A of layer,It is sent j-th for the 1 node A of layer The time of first stage broadcast message, 1≤j≤N,It is poor for the corresponding time standards of the 1 node A of layer;Then, the layer 1 Node B is in T02-T03It is broadcast the message in period with the N/4 first stage of every 1 second frequency of one transmission, described first Multi-stage broadcast message carries " IDB, 1 layer,”;The 1 node C of layer is in T03-T04In period with every 1 second one Frequency sends the N/4 first stage broadcast messages, and the first stage broadcast message carries " IDC, 1 layer, ”;Institute 1 node D of layer is stated in T03-T04The N/4 first stage broadcast messages are sent with every 1 second frequency of one in period, it is described First stage broadcast message carries " IDD, 1 layer,", after all N number of first stage broadcast message is sent completely, The 1 node A of layer, 1 node B of the layer, 1 node C of layer, 1 node D of layer are converted to main equipment by slave device simultaneously.It should illustrate , 0 node of layer also be located in the Bluetooth communication coverage area of 1 node of layer, at this point, 0 node of layer receive it is described The first stage broadcast message that 1 node of layer is sent judges level of the level of 1 node of layer residing for less than it, Ke Yixuan End synchronous mode is selected, into normal communication mode, then the first stage broadcasts the message and abandons.Similarly, other are each It is wide that the node of level receives the first stage that the node less than its level being located at or the node positioned at same level-one layer are sent After broadcasting message, the first stage is broadcast the message and is abandoned.
The first stage broadcast message that S108,2 node receiving layer of layer, 1 node are sent;As shown in Figure 2,2 node g of layer Simultaneously in the Bluetooth communication coverage area in 1 node D of 1 node C of layer and layer, then 2 node g of layer can be received saves respectively from layer 1 The first stage broadcast message that point C and 1 node D of layer is sent, at this point, 2 node g of the layer is according to described first received It is carried respectively in multi-stage broadcast messageWithJudgement is knownIt is the mesh then to determine the 1 node C of layer Node layer is put on, the first stage that the 1 node D of layer is sent, which broadcasts the message, to be abandoned.It is understood that 2 node e of layer The first stage that the first stage that 1 node A of receiving layer is sent broadcasts the message, 2 node f receiving layers of layer, 1 node B is sent The first stage broadcast message that broadcast message, 2 node h receiving layers of layer, 1 node D are sent.
S109,2 node of layer calculate 2 node of layer and corresponding institute according to the first stage broadcast message received First time difference and the time standard for stating 1 node of layer are poor;
S1010,2 node of layer return to second stage broadcast message to corresponding 1 node of layer;
S1011,2 node of layer according to the second stage broadcast message received obtain 2 node of layer with it is corresponding 1 second time difference of node of layer and broadcast scheduling information;
S1012,1 node of layer send phase III broadcast message to 2 node of layer;
S1013,2 node of layer carry out time synchronization according to the standard time difference;
S1014,2 node of layer send first stage broadcast message according to the broadcast scheduling information to 3 node of layer.
Wherein, the method flow of step S109-S1014 is similar with the method flow of the step S101-S107, herein not It repeats one by one again, the time synchronizing flow of follow-up each level and so on.
Fig. 4 is the structure diagram of time synchronizing device that one embodiment of the invention provides, as shown in figure 4, this hair Bright embodiment provides a kind of time synchronizing device, including:First receiving unit 401, acquiring unit 402, first send single First 403, second receiving unit 404 and synchronization unit 405, wherein:
Multiple first stage that first receiving unit 401 is used to receive upper strata destination node transmission broadcast the message, and each first Multi-stage broadcast message carries first time, the first hierarchical information and the first identification information, and the first time is on described Layer destination node sends the time of the first stage broadcast message, and the hierarchical information is used to identify the upper strata destination node The level being located at, first identification information are used to identify the upper strata destination node;Acquiring unit 402 is used for basis The second time of each first stage broadcast message and the first time that broadcast message of each first stage is entrained are received, Obtained for first time difference;First transmitting element 403 is used to return to multiple second stage broadcast messages to the upper strata destination node, respectively Second stage broadcast message carry the third time, first time difference, the second hierarchical information, first identification information and Second identification information, for the upper strata destination node according to receive the 4th time that each second stage broadcasts the message with And the third time entrained by each second stage broadcast message obtained for second time difference;Wherein, the third time is described Present node sends the time of each second stage broadcast message, and second hierarchical information is used to identify what described device was located at Level, second identification information are used to identify described device;Second receiving unit 404 is used to receive the upper strata target The phase III broadcast message that node is sent, the phase III broadcast message carry first hierarchical information, described first Identification information, second identification information and second time difference;When synchronization unit 405 is used for according to described first Poor and described second time difference calculates the standard time difference, and same with the time of the upper strata destination node according to standard time difference progress Step.
Specifically, time synchronizing device can be present node, and the present node is located at the upper strata target section Within the signal cover of point, the upper strata destination node sends multiple first stage broadcast messages, institute in a broadcast manner State first stage broadcast message carry the upper strata destination node send each first stage broadcast message first time, The first hierarchical information that the upper strata destination node is located at, the first flag information for identifying the upper strata destination node, First receiving unit 401 receives the multiple first stage broadcast message that the upper strata destination node is sent.Acquiring unit 402 It obtains and receives the second time of broadcast message of each first stage that the upper strata destination node is sent, and during according to described second Between and each first stage broadcast message entrained first time, calculate each first stage broadcast message pair The second time answered and the difference of first time broadcast the message each first stage corresponding first time and the The average value of the difference of two times is as first time difference.After acquiring unit 402 calculates acquisition second time difference, the first hair Unit 403 is sent to return to multiple second stage to the upper strata destination node to broadcast the message, the multiple second stage broadcast message When carrying the third time of the present node transmission each second stage broadcast message, calculating described first obtained The second hierarchical information that poor, described present node is located at, for identifying second identity of present node letter Breath and the first identity information for identifying the upper strata destination node.The upper strata destination node receives the multiple Second stage broadcasts the message, and obtains and receive the 4th time to broadcast the message according to multiple second stage, according to described The third time entrained by 4th time and each second stage broadcast message calculates each second stage broadcast message Corresponding 4th time and the difference of third time, by each second stage broadcast the message corresponding 4th time and The average value of the difference of third time is as second time difference.The upper strata destination node is according to third time and described 4th time calculated obtain second time difference after, send multiple phase IIIs to the present node and broadcast the message, described the Three multi-stage broadcast message carry the first hierarchical information that the upper strata destination node is located at, for identifying the present node Second identification information and second time difference for calculating acquisition, the second receiving unit 404 receive the phase III Broadcast message.After synchronization unit 405 receives the phase III broadcast message, obtain and taken in the phase III broadcast message Second time difference of band, using second time difference and calculate obtain first time difference difference again the product with 1/2 as institute State the standard time difference, and pass through according to the standard time difference to the present node corresponding time could be adjusted to realize with it is described The time synchronization of upper strata destination node.
It is understood that the transmission frequency of the first stage broadcast message is preset, it specifically can basis Actual conditions are adjusted, and the upper strata destination node can be standard nodes, and the upper strata destination node can pass through inside The GPS device of setting adjusts temporal and is adjusted to the standard time, can not also include the GPS device, can be according to reality Situation is adjusted, and is not specifically limited herein;The transmission frequency of the second stage broadcast message is also preset;By It is to send the second stage broadcast message in a broadcast manner in the present node, is covered in the present node signal In the range of the node of next level can also receive second stage broadcast message, therefore second stage broadcast disappears Breath carries first identification information so that the upper strata destination node according to first identification information to institute Second stage broadcast message is stated to be handled accordingly, and the node of next level broadcasts the message for the second stage It ignores;The transmission frequency of phase III broadcast message be also it is preset, specifically can according to actual conditions into Row adjustment, is not specifically limited herein.
Time synchronizing device provided in an embodiment of the present invention, by needing between the cluster device that cooperates successively Transmit it is non-link broadcast message, and according to it is described it is non-link the temporal information that is carried in broadcast message and calculate each level set The standard time difference between the standby grade equipment with last layer carries out time synchronization, drop according to the standard time difference and last layer grade equipment The low cost of time synchronization.
On the basis of above-described embodiment, further, the phase III broadcast message further includes broadcast scheduling information, The broadcast scheduling information is used to indicate described device and sends multiple first stage broadcast to next hierarchy node of place level The initial time of message and termination time;Correspondingly, Fig. 5 is the time synchronizing device that another embodiment of the present invention provides Structure diagram, as shown in figure 5, time synchronizing device provided in an embodiment of the present invention, in the first receiving unit 501, is obtained On the basis of taking unit 502, the first transmitting element 503, the second receiving unit 504 and synchronization unit 505, described device further includes Second transmitting element 506, first receiving unit 501, acquiring unit 502, the first transmitting element 503, the second receiving unit 504 and the first receiving unit 401 in synchronization unit 505 and above-described embodiment, acquiring unit 402, the first transmitting element 403, Second receiving unit 404 is consistent with synchronization unit 405, wherein:
Second transmitting element 506 is used to send multiple first to next hierarchy node according to the broadcast scheduling information Multi-stage broadcast message.
Specifically, the upper strata destination node is gone back to the phase III broadcast message that the second receiving unit 504 is sent Including broadcast scheduling information, the broadcast scheduling information is used to indicate next level of second transmitting element 506 to place level Node sends the initial time of multiple first stage broadcast messages and terminates the time, and synchronization unit 505 is completed and the upper strata After the time synchronization of destination node, the second transmitting element 506 according to the initial time in the broadcast scheduling information start by According to the frequency multiple first stage broadcast messages are sent to next hierarchy node.It is understood that the broadcast is adjusted Degree information is that the upper strata destination node is determined according to the second stage broadcast message received..
Time synchronizing device provided in an embodiment of the present invention, by needing between the cluster device that cooperates successively Transmit it is non-link broadcast message, and according to it is described it is non-link the temporal information that is carried in broadcast message and calculate each level set The standard time difference between the standby grade equipment with last layer carries out time synchronization, drop according to the standard time difference and last layer grade equipment The low cost of time synchronization.
On the basis of above-described embodiment, further, it is poor that first stage broadcast message further includes time standard, institute When to state time standard difference be the message sink that the upper strata destination node broadcasts the message according to local reception to the first stage Between and the first stage broadcast message that receives in the message sending time that carries obtain;Correspondingly, it first receives Unit 401 is additionally operable to:
Described the first of multiple last layer grade nodes transmission of level where if described device receives the present node Multi-stage broadcast message, then the time standard difference carried in being broadcast the message according to the first stage determine the target upper strata Node;Wherein, the time standard difference that the target upper layer node is sent is minimum.
Specifically, if the first receiving unit 401 receives multiple last layer grade nodes of present node place level The first stage broadcast message sent, carry in first stage broadcast message the multiple last layer grade node according to The message receipt times and the first stage broadcast message received that local reception broadcast the message to the first stage The time standard that the message sending time of middle carrying obtains is poor, then during the present node broadcasts the message according to the first stage The time standard difference carried obtains the corresponding last layer grade node of the time standard difference minimum value as in the target Node layer.
In the above embodiments, the transmission frequency of the second stage broadcast message is less than first stage broadcast and disappears The transmission frequency of breath.
Specifically, the transmission frequency of the transmission frequency of the first stage broadcast message and second stage broadcast message It is pre-set, and the transmission frequency of second stage broadcast message is less than the hair of first stage broadcast message Send frequency.
In the above embodiments, the first stage broadcast message, second stage broadcast message and the third Multi-stage broadcast message is non-to link broadcast message.
Specifically, the first stage broadcast message, second stage broadcast message and phase III broadcast disappear Breath be it is non-link broadcast message, i.e. first stage broadcast message, second stage broadcast message and the third Multi-stage broadcast message carries out message transmission using the non-broadcast mode that links, non-to link broadcast and initiate the connection, to subtract Few expense.MANUFACTURER SPECIFIC DATA are used in the non-PDU for linking broadcast, it is net that content maximum includes 26byte Lotus.
The embodiment of device provided by the invention specifically can be used for performing the process flow of above-mentioned each method embodiment, Details are not described herein for function, is referred to the detailed description of above method embodiment.
Fig. 6 is the structure diagram of electronic equipment entity apparatus provided in an embodiment of the present invention, as shown in fig. 6, the electronics Equipment can include:Processor (processor) 601, memory (memory) 602 and bus 603, wherein, processor 601, Memory 602 completes mutual communication by bus 603.Processor 601 can call the logical order in memory 602, To perform following method:Receive the broadcast message of multiple first stage that upper strata destination node is sent, each first stage broadcast message First time, the first hierarchical information and the first identification information are carried, the first time is that the upper strata destination node is sent out The time of the first stage broadcast message is sent, the hierarchical information is used to identify the layer that the upper strata destination node is located at Grade, first identification information are used to identify the upper strata destination node;It broadcasts the message according to each first stage is received The second time and broadcast message of each first stage entrained first time, obtained for first time difference;To the upper strata Destination node returns to multiple second stage broadcast message, each second stage broadcast message carry the third time, first time difference, Second hierarchical information, first identification information and the second identification information, for the upper strata destination node according to Receive the 4th time of each second stage broadcast message and the third time that each second stage broadcast message is entrained Obtained for second time difference;Wherein, the third time sends the time of each second stage broadcast message for the present node, described For second hierarchical information for identifying the level that the present node is located at, second identification information is described for identifying Present node;The present node receives the phase III broadcast message that the upper strata destination node is sent, the phase III Broadcast message carries first hierarchical information, first identification information, second identification information and described Second time difference;The standard time difference is calculated according to first time difference and second time difference, and according to the standard time difference carry out with The time synchronization of the upper strata destination node.
The embodiment of the present invention discloses a kind of computer program product, and the computer program product includes being stored in non-transient Computer program on computer readable storage medium, the computer program include program instruction, when described program instructs quilt When computer performs, computer is able to carry out the method that above-mentioned each method embodiment is provided, such as including:
The broadcast message of multiple first stage that upper strata destination node is sent is received, each first stage broadcast message carries first Time, the first hierarchical information and the first identification information, the first time send described for the upper strata destination node The time of one stage broadcast message, the hierarchical information is for identifying the level that the upper strata destination node is located at, and described the One identification information is used to identify the upper strata destination node;According to the second time for receiving each first stage broadcast message And the first time entrained by each first stage broadcast message, obtained for first time difference;It is returned to the upper strata destination node Multiple second stage broadcast messages are returned, each second stage broadcast message carries third time, first time difference, the second level letter Breath, first identification information and the second identification information, so that the upper strata destination node is according to receiving each the When the third time entrained by 4th time of two-stage broadcast message and each second stage broadcast message obtains second Difference;Wherein, the third time sends the time of each second stage broadcast message, the second level letter for the present node For identifying the level that the present node is located at, second identification information is used to identify the present node breath; The present node receives the phase III broadcast message that the upper strata destination node is sent, and the phase III broadcast message is taken With first hierarchical information, first identification information, second identification information and second time difference;Root The standard time difference is calculated, and carry out and the upper strata target according to the standard time difference according to first time difference and second time difference The time synchronization of node.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium storing program for executing, the non-transient computer readable storage Medium storing computer instructs, and the computer instruction makes the computer perform the side that above-mentioned each method embodiment is provided Method, such as including:
The broadcast message of multiple first stage that upper strata destination node is sent is received, each first stage broadcast message carries first Time, the first hierarchical information and the first identification information, the first time send described for the upper strata destination node The time of one stage broadcast message, the hierarchical information is for identifying the level that the upper strata destination node is located at, and described the One identification information is used to identify the upper strata destination node;According to the second time for receiving each first stage broadcast message And the first time entrained by each first stage broadcast message, obtained for first time difference;It is returned to the upper strata destination node Multiple second stage broadcast messages are returned, each second stage broadcast message carries third time, first time difference, the second level letter Breath, first identification information and the second identification information, so that the upper strata destination node is according to receiving each the When the third time entrained by 4th time of two-stage broadcast message and each second stage broadcast message obtains second Difference;Wherein, the third time sends the time of each second stage broadcast message, the second level letter for the present node For identifying the level that the present node is located at, second identification information is used to identify the present node breath; The present node receives the phase III broadcast message that the upper strata destination node is sent, and the phase III broadcast message is taken With first hierarchical information, first identification information, second identification information and second time difference;Root The standard time difference is calculated, and carry out and the upper strata target according to the standard time difference according to first time difference and second time difference The time synchronization of node.
In addition, the logical order in above-mentioned memory 603 can be realized and be used as by the form of SFU software functional unit Independent product is sold or in use, can be stored in a computer read/write memory medium.Based on such understanding, sheet The part or the part of the technical solution that the technical solution of invention substantially in other words contributes to the prior art can be with The form of software product embodies, which is stored in a storage medium, including some instructions to (can be personal computer, server or the network equipment etc.) performs each implementation of the present invention so that computer equipment The all or part of step of example the method.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. it is various The medium of program code can be stored.
The apparatus embodiments described above are merely exemplary, wherein the unit illustrated as separating component can To be or may not be physically separate, the component shown as unit may or may not be physics list Member, you can be located at a place or can also be distributed in multiple network element.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Labour in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on Technical solution is stated substantially in other words to embody the part that the prior art contributes in the form of software product, it should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including several fingers It enables and (can be personal computer, server or the network equipment etc.) so that computer equipment is used to perform each implementation Method described in certain parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used To modify to the technical solution recorded in foregoing embodiments or carry out equivalent replacement to which part technical characteristic; And these modification or replace, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

  1. A kind of 1. time synchronizing method, which is characterized in that including:
    Present node receives the broadcast message of multiple first stage that upper strata destination node is sent, and each first stage broadcast message carries At the first time, the first hierarchical information and the first identification information, the first time send institute for the upper strata destination node The time of first stage broadcast message is stated, the hierarchical information is used to identify the level that the upper strata destination node is located at, institute The first identification information is stated for identifying the upper strata destination node;
    The present node broadcasts the message according to the second time and each first stage that receive each first stage broadcast message The entrained first time obtained for first time difference;
    The present node returns to multiple second stage to the upper strata destination node and broadcasts the message, each second stage broadcast message Carry third time, first time difference, the second hierarchical information, first identification information and the second identity letter Breath, so that the upper strata destination node is wide according to the 4th time and each second stage for receiving each second stage broadcast message Broadcast second time difference of the acquisition third time entrained by message;Wherein, the third time sends each for the present node The time of second stage broadcast message, second hierarchical information are described for identifying the level that the present node is located at Second identification information is used to identify the present node;
    The present node receives the phase III broadcast message that the upper strata destination node is sent, and the phase III broadcast disappears Breath carry first hierarchical information, first identification information, second identification information and it is described second when Difference;
    The present node calculates the standard time difference according to first time difference and second time difference, and according to the standard time difference Carry out the time synchronization with the upper strata destination node.
  2. 2. according to the method described in claim 1, it is characterized in that, phase III broadcast message further includes broadcast scheduling letter Breath, the broadcast scheduling information are used to indicate the present node and send multiple first ranks to next hierarchy node of place level The initial time of section broadcast message and termination time;Correspondingly, the method further includes:
    The present node sends multiple first stage broadcast to next hierarchy node according to the broadcast scheduling information and disappears Breath.
  3. 3. according to the method described in claim 1, it is characterized in that, first stage broadcast message further includes time standard Difference, the time standard difference are that the upper strata destination node connects according to the message that local reception broadcasts the message to the first stage The message sending time that carries obtains between time receiving and in the first stage broadcast message that receives;Correspondingly, it is described Method further includes:
    If described the first of multiple last layer grade nodes transmission of level where the present node receives the present node Multi-stage broadcast message, then the time standard difference carried in being broadcast the message according to the first stage determine the target upper strata Node;Wherein, the time standard difference that the target upper layer node is sent is minimum.
  4. 4. according to the method described in claims 1 or 2 or 3, which is characterized in that the transmission frequency of the second stage broadcast message Less than the transmission frequency of first stage broadcast message.
  5. 5. according to the method described in claims 1 or 2 or 3, which is characterized in that the first stage broadcast message, described second Multi-stage broadcast message and phase III broadcast message are non-to link broadcast message.
  6. 6. a kind of time synchronizing device, which is characterized in that including:
    First receiving unit, for receiving the broadcast message of multiple first stage that upper strata destination node is sent, each first stage is wide It broadcasts message and carries first time, the first hierarchical information and the first identification information, the first time is the upper strata target Node sends the time of the first stage broadcast message, and the hierarchical information is located at for identifying the upper strata destination node Level, first identification information is for identifying the upper strata destination node;
    Acquiring unit, for being broadcast the message according to the second time and each first stage that receive each first stage broadcast message The entrained first time obtained for first time difference;
    First transmitting element broadcasts the message for returning to multiple second stage to the upper strata destination node, and each second stage is wide It broadcasts message and carries third time, first time difference, the second hierarchical information, first identification information and the second identity mark Information is known, so that the upper strata destination node is according to the 4th time and each second-order for receiving each second stage broadcast message The section broadcast message entrained third time obtained for second time difference;Wherein, the third time is sent out for the present node The time of each second stage broadcast message is sent, second hierarchical information is described for identifying the level that described device is located at Second identification information is used to identify described device;
    Second receiving unit, for receiving the phase III broadcast message that the upper strata destination node is sent, the phase III Broadcast message carries first hierarchical information, first identification information, second identification information and described Second time difference;
    Synchronization unit, for calculating the standard time difference according to first time difference and second time difference, and during according to the standard Difference carries out the time synchronization with the upper strata destination node.
  7. 7. device according to claim 6, which is characterized in that the phase III broadcast message further includes broadcast scheduling letter Breath, next hierarchy node transmission multiple first stage that the broadcast scheduling information is used to indicate described device to place level are wide It broadcasts the initial time of message and terminates the time;Correspondingly, described device further includes:
    Second transmitting element, it is wide for sending multiple first stage to next hierarchy node according to the broadcast scheduling information Broadcast message.
  8. 8. device according to claim 6, which is characterized in that the first stage broadcast message further includes time standard Difference, the time standard difference are that the upper strata destination node connects according to the message that local reception broadcasts the message to the first stage The message sending time that carries obtains between time receiving and in the first stage broadcast message that receives;Correspondingly, it is described Device further includes:
    Processing unit, if what multiple last layer grade nodes of level where receiving the present node for described device were sent The first stage broadcast message, then according to determining the time standard difference carried in first stage broadcast message Target upper layer node;Wherein, the time standard difference that the target upper layer node is sent is minimum.
  9. 9. the device described according to claim 6 or 7 or 8, which is characterized in that the transmission frequency of the second stage broadcast message Less than the transmission frequency of first stage broadcast message.
  10. 10. the device described according to claim 6 or 7 or 8, which is characterized in that the first stage broadcast message, described second Multi-stage broadcast message and phase III broadcast message are non-to link broadcast message.
CN201611228604.7A 2016-12-27 2016-12-27 Time synchronization processing method and device Expired - Fee Related CN108243396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611228604.7A CN108243396B (en) 2016-12-27 2016-12-27 Time synchronization processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611228604.7A CN108243396B (en) 2016-12-27 2016-12-27 Time synchronization processing method and device

Publications (2)

Publication Number Publication Date
CN108243396A true CN108243396A (en) 2018-07-03
CN108243396B CN108243396B (en) 2021-03-23

Family

ID=62702876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611228604.7A Expired - Fee Related CN108243396B (en) 2016-12-27 2016-12-27 Time synchronization processing method and device

Country Status (1)

Country Link
CN (1) CN108243396B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110099439A (en) * 2019-04-16 2019-08-06 新华三技术有限公司 Method for synchronizing time and device
CN111954297A (en) * 2020-08-12 2020-11-17 赛特斯信息科技股份有限公司 Precise timing method of NG-RAN network architecture
CN112219412A (en) * 2020-08-07 2021-01-12 福州通安电子有限公司 Lamp synchronization method and terminal
CN114269011A (en) * 2020-09-15 2022-04-01 Oppo广东移动通信有限公司 Clock synchronization method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557255A (en) * 2009-05-11 2009-10-14 华为技术有限公司 Time synchronization method, system thereof and time synchronous communication equipment
CN101588628A (en) * 2009-06-19 2009-11-25 山东省计算中心 Clock synchronizing method for wireless sensor network
CN103945525A (en) * 2014-04-30 2014-07-23 国家电网公司 Hierarchical structure based wireless sensor network time synchronization method
CN104039006A (en) * 2014-05-30 2014-09-10 南京邮电大学 Clock synchronization method for wireless sensor network
CN104837197A (en) * 2015-04-14 2015-08-12 中山大学 Method for synchronizing two-way time of wireless sensor network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557255A (en) * 2009-05-11 2009-10-14 华为技术有限公司 Time synchronization method, system thereof and time synchronous communication equipment
CN101588628A (en) * 2009-06-19 2009-11-25 山东省计算中心 Clock synchronizing method for wireless sensor network
CN103945525A (en) * 2014-04-30 2014-07-23 国家电网公司 Hierarchical structure based wireless sensor network time synchronization method
CN104039006A (en) * 2014-05-30 2014-09-10 南京邮电大学 Clock synchronization method for wireless sensor network
CN104837197A (en) * 2015-04-14 2015-08-12 中山大学 Method for synchronizing two-way time of wireless sensor network

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110099439A (en) * 2019-04-16 2019-08-06 新华三技术有限公司 Method for synchronizing time and device
CN110099439B (en) * 2019-04-16 2021-06-22 新华三技术有限公司 Time synchronization method and device
CN112219412A (en) * 2020-08-07 2021-01-12 福州通安电子有限公司 Lamp synchronization method and terminal
CN111954297A (en) * 2020-08-12 2020-11-17 赛特斯信息科技股份有限公司 Precise timing method of NG-RAN network architecture
CN111954297B (en) * 2020-08-12 2022-06-10 赛特斯信息科技股份有限公司 Precise timing method of NG-RAN network architecture
CN114269011A (en) * 2020-09-15 2022-04-01 Oppo广东移动通信有限公司 Clock synchronization method and related device
CN114269011B (en) * 2020-09-15 2023-06-27 Oppo广东移动通信有限公司 Clock synchronization method and related device

Also Published As

Publication number Publication date
CN108243396B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
WO2018082711A1 (en) Base station deployment method, network server, and unmanned aerial vehicle
CN108243396A (en) A kind of time synchronizing method and device
CN106331613B (en) Communication method and system based on unmanned aerial vehicle
CN103188064A (en) Clock synchronization method and clock synchronization device
CN105376696A (en) Data transmission method and intelligent terminal
CN107105496A (en) A kind of method and device, system for obtaining, returning to uplink timing advance
CN110958681A (en) Service transmission method and device
CN104915855B (en) The predictor method and device of order competition for orders rate
CN101808167A (en) Method for procedure tracking, device and system
CN107479426B (en) A kind of synchronous performance control system of robot and method
CN107027166A (en) A kind of sending method, device and the node of the synchronizing information of node
CN205283611U (en) End and server end news information will be moved and synchronous device will be carried out
CN104038812A (en) Information push method and device
CN109068384A (en) A kind of method for synchronizing time and system
US9286365B2 (en) Data synchronizing system and method thereof
CN103702277A (en) Data transmission method and electronic equipment
EP4016396A1 (en) Ai processing method and device
CN104038518B (en) information processing method, server and terminal device
CN110535550A (en) Clock synchronous method, apparatus, equipment and storage medium
WO2015188481A1 (en) Unread message processing method, device and system
CN112154689A (en) Communication method
US10419939B2 (en) Resource partition aggregating method and device
CN109828977A (en) The method, apparatus and storage medium and client, server-side of synchronous form data
CN105379375A (en) Method and device for transmitting synchronisation signal
CN104411011B (en) Femto cell, clock server time service, synchronous method and system

Legal Events

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

Granted publication date: 20210323

Termination date: 20211227