CN105515750A - Time synchronization method and apparatus based on Bluetooth communication - Google Patents

Time synchronization method and apparatus based on Bluetooth communication Download PDF

Info

Publication number
CN105515750A
CN105515750A CN201410556950.2A CN201410556950A CN105515750A CN 105515750 A CN105515750 A CN 105515750A CN 201410556950 A CN201410556950 A CN 201410556950A CN 105515750 A CN105515750 A CN 105515750A
Authority
CN
China
Prior art keywords
time
synchronized
terminal
fiducial
reference terminal
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.)
Withdrawn
Application number
CN201410556950.2A
Other languages
Chinese (zh)
Inventor
么文琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410556950.2A priority Critical patent/CN105515750A/en
Priority to PCT/CN2015/078208 priority patent/WO2016062058A1/en
Publication of CN105515750A publication Critical patent/CN105515750A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a time synchronization method and apparatus based on Bluetooth communication, and relates to the technical field of mobile communications. The method comprises that a plurality of terminal having a Bluetooth communication function establish a time synchronization group through Bluetooth communication; a time reference terminal and a terminal to be synchronized in the time synchronization group determine a communication mode collaboratively; the terminal to be synchronized performs communication for time synchronization with the time reference terminal according to the determined communication mode, and obtains reference time of the time reference terminal and transmission delay; and the terminal to be synchronized performs time synchronization according to the reference time and transmission delay. The time synchronization method for the mobile terminals based on the Bluetooth communication provides time services for the mobile terminals accurately and effectively, without relying on services of the existing network, GPS and CDMA/GSM, achieves the purposes of more accurate synchronization and larger time service range, and meanwhile meets a high demand of confidentiality.

Description

A kind of method for synchronizing time based on Bluetooth communication and device
Technical field
The present invention relates to mobile communication technology field, particularly mobile phone, palmtop PC (PDA:PersonalDigitalAssistant), the mobile terminals such as panel computer and handheld electronic instrument are based on the method for synchronizing time of Bluetooth communication and device.
Background technology
By the temporal information (date Hour Minute Second) of communication equipment various in communication network or computer equipment based on Coordinated Universal Time(UTC) (CUT:CoordinatedUniversalTime) time deviation to be limited in enough little scope (as, 100ms), this synchronizing process is called time synchronized, and along with the development of the communication technology, the time synchronized service of the portable mobile termianls such as mobile phone also becomes more and more important.Time synchronized not only acts on all kinds of calculating, communication, video, and game etc., also to the navigation of mobile phone, the functions such as location have significant impact.Because every activity in production of the mankind more and more depends on accurate time service now, if do not have correct time synchronous, various types of communication application will become has difficulty in taking a step.
In present investigation, scientific investigation, in the activities such as criminal investigation, the time synchronization problem between team collaboration is puzzlement people difficult problems for a long time always.The time synchronized that Team Coordination Needs in these activities is strict, time error may need to be accurate to Millisecond simultaneously, even higher.As realized inertial navigation in water, the error of several milliseconds is enough to make coordinate generation greatest differences.And for example probings etc., the difference of Millisecond also can have an immense impact on.But these activities have individual outstanding feature, be exactly only need the time accuracy of subrange synchronous, and do not need with extraneous time accuracy synchronous, or the time in " external world " does not produce strict dependence to the time of " locally ".
Criminal investigation, scientific investigation, the field time services such as probing not only require that error is little as far as possible, and have certain privacy requirements.Time service service in existing civil area is generally based on network signals such as global positioning system (GPS:GlobalPositioningSystem) and code division multiple access (CDMA:CodeDivisionMultipleAccess)/global system for mobile communicationss (GSM:GlobalSystemforMobileCommunication), and these signals are very large by regional impact, in water, underground all can be subject to serious interference, even completely loss signal.Meanwhile, the equipment such as mobile phone belong to again individual secret article, rely on the network signals such as GPS and CDMA/GSM and do time synchronized demand, also can expose the positional information of individual.
Therefore, be directed to team collaboration's time synchronized within the specific limits, these team collaboration's tasks generally occur in field, in water, ground is inferior, and the possibility not possessing network happens occasionally, such as hostile takedown, high accuracy mineral are sampled, and search in high-altitude/underground/water.Due to the geographic restrictions of the network signals such as GPS, CDMA/GSM, can not GPS be used, the time calibration in network service that CDMA/GSM etc. are common, the demand of team collaboration's task can not be met.In addition, for the confidentiality of task, there is the hidden danger that personnel location information exposes, more need to possess time synchronized accurately between a team.
Summary of the invention
The object of the present invention is to provide a kind of method for synchronizing time based on Bluetooth communication and device, can solve in national defence, criminal investigation, scientific investigation, between the field team collaborations such as probing, time synchronized is subject to the problem of regional impact and confidentiality difference.
According to an aspect of the present invention, provide a kind of method for synchronizing time based on Bluetooth communication, comprising:
Multiple terminal with function of Bluetooth communication sets up a time synchronized group by carrying out Bluetooth communication;
Time reference terminal in described time synchronized group and the terminal to be synchronized in group are worked in coordination with and are determined communication pattern;
Described terminal to be synchronized carries out the communication for time synchronized according to determined communication pattern and described time reference terminal, obtains fiducial time and the propagation delay time of time reference terminal;
Described terminal to be synchronized carries out time synchronized according to described fiducial time and propagation delay time.
Preferably, the time reference terminal in described time synchronized group and the terminal to be synchronized in group are worked in coordination with and are determined that the step of communication pattern comprises:
Time reference terminal in described time synchronized group sends communication request to the terminal to be synchronized in group;
If described terminal to be synchronized directly receives the communication request from described time reference terminal, then described terminal determination communication pattern to be synchronized is non-trunking traffic pattern;
If described terminal to be synchronized receives the communication request from described time reference terminal indirectly, then described terminal determination communication pattern to be synchronized is trunking traffic pattern.
Preferably, described terminal to be synchronized carries out the communication for time synchronized according to determined communication pattern and described time reference terminal, and the step of the fiducial time and propagation delay time that obtain time reference terminal comprises:
Described terminal to be synchronized sends synchronization request to time reference terminal;
Described terminal to be synchronized receives the fiducial time that described time reference terminal obtains according to described synchronization request;
Described terminal to be synchronized, according to the fiducial time received, calculates the propagation delay time between described terminal to be synchronized and time reference terminal;
Wherein, the first time to be synchronized of described terminal to be synchronized is comprised in described synchronization request.
Preferably, if when single terminal to be synchronized carries out time synchronized, then the step of fiducial time that described time reference terminal obtains according to described synchronization request comprises:
Described time reference terminal, according to the synchronization request received, obtains the first fiducial time of described time reference terminal self;
After preset time, described time reference terminal obtains the second fiducial time of self again, and itself and the first fiducial time is packed, and obtains time data bag.
Preferably, described terminal to be synchronized is according to the fiducial time received, and the step calculating the propagation delay time between described terminal to be synchronized and time reference terminal comprises:
After described single terminal to be synchronized receives time data bag, obtain the second time to be synchronized of described single terminal to be synchronized self;
According to the first fiducial time in described time data bag, the second fiducial time, and described single terminal to be synchronized self first time to be synchronized and the second time to be synchronized, calculate the propagation delay time between described single terminal to be synchronized and time reference terminal.
Preferably, if when multiple terminal to be synchronized carries out time synchronized, the step of fiducial time that then described time reference terminal obtains according to described synchronization request refers to, after the synchronization request that described time reference terminal receives, obtain the 3rd fiducial time of described time reference terminal self, and the response message comprising described 3rd fiducial time is sent to described multiple terminal each to be synchronized respectively.
Preferably, described terminal to be synchronized is according to the fiducial time received, and the step calculating the propagation delay time between described terminal to be synchronized and time reference terminal comprises:
After described each terminal to be synchronized receives response message, wait for that preset time obtains the second time to be synchronized of described each terminal to be synchronized self again;
According to described 3rd fiducial time received, and described each terminal to be synchronized self first time to be synchronized and the second time to be synchronized, calculate the propagation delay time between described each terminal to be synchronized and time reference terminal.
Preferably, described terminal to be synchronized also comprises after described fiducial time and propagation delay time carrying out the step of time synchronized, described time reference terminal sent for the 4th fiducial time to described each terminal to be synchronized respectively according to during cycle, so that described each terminal to be synchronized carries out time synchronized again according to described 4th fiducial time.
According to a further aspect in the invention, provide a kind of time synchronism apparatus based on Bluetooth communication, comprising:
Setting up module, setting up a time synchronized group for multiple terminal with function of Bluetooth communication by carrying out Bluetooth communication;
Cooperative module, works in coordination with for the time reference terminal in described time synchronized group and the terminal to be synchronized in group and determines communication pattern;
Computing module, for the communication that described terminal to be synchronized is carried out for time synchronized according to determined communication pattern and described time reference terminal, obtains fiducial time and the propagation delay time of time reference terminal;
Synchronization module, carries out time synchronized for described terminal to be synchronized according to described fiducial time and propagation delay time.
Preferably, described cooperative module comprises further:
Send submodule, send communication request to the terminal to be synchronized in group for the time reference terminal in described time synchronized group;
Relaying submodule, if directly receive the communication request from described time reference terminal for described terminal to be synchronized, then described terminal determination communication pattern to be synchronized is non-trunking traffic pattern;
Non-relaying submodule, if indirectly receive the communication request from described time reference terminal for described terminal to be synchronized, then described terminal determination communication pattern to be synchronized is trunking traffic pattern.
Compared with prior art, beneficial effect of the present invention is: for team collaboration's time synchronized within the specific limits, can by providing a kind of method of the mobile terminal time synchronized based on Bluetooth communication, accurately and effectively for mobile terminal provides time service service, and do not rely on existing network, GPS, the services such as CDMA/GSM, realize synchronous more accurate, the object that time service face is larger, meet the very big demand of maintaining secrecy simultaneously.In addition, also support end-to-end, broadcast isotype is synchronous, effectively can be applied to various team collaborations field.
Accompanying drawing explanation
Fig. 1 is the Method And Principle figure of the time synchronized based on Bluetooth communication that the embodiment of the present invention provides;
Fig. 2 is the structure drawing of device of the time synchronized based on Bluetooth communication that the embodiment of the present invention provides;
Fig. 3 is the 1:1 logic process flow figure of the time synchronized based on Bluetooth communication that the embodiment of the present invention provides;
Fig. 4 is the 1:n logic process flow figure of the time synchronized based on Bluetooth communication that the embodiment of the present invention provides.
Embodiment
Below in conjunction with accompanying drawing to a preferred embodiment of the present invention will be described in detail, should be appreciated that following illustrated preferred embodiment is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Fig. 1 is the Method And Principle figure of the time synchronized based on Bluetooth communication that the embodiment of the present invention provides, and as shown in Figure 1, concrete steps are as follows:
Step S1: multiple terminal with function of Bluetooth communication sets up a time synchronized group by carrying out Bluetooth communication.
Step S2: the time reference terminal in described time synchronized group and the terminal to be synchronized in group are worked in coordination with and determined communication pattern.
In step s 2, the time reference terminal in described time synchronized group sends communication request to the terminal to be synchronized in group;
If described terminal to be synchronized directly receives the communication request from described time reference terminal, then described terminal determination communication pattern to be synchronized is non-trunking traffic pattern;
If described terminal to be synchronized receives the communication request from described time reference terminal indirectly, then described terminal determination communication pattern to be synchronized is trunking traffic pattern.
Step S3: described terminal to be synchronized carries out the communication for time synchronized according to determined communication pattern and described time reference terminal, obtains fiducial time and the propagation delay time of time reference terminal.
In step s3, described terminal to be synchronized sends synchronization request to time reference terminal;
Described terminal to be synchronized receives the fiducial time that described time reference terminal obtains according to described synchronization request;
Described terminal to be synchronized, according to the fiducial time received, calculates the propagation delay time between described terminal to be synchronized and time reference terminal;
Wherein, the first time to be synchronized of described terminal to be synchronized is comprised in described synchronization request.
Further, if when single terminal to be synchronized carries out time synchronized, then the step of fiducial time that described time reference terminal obtains according to described synchronization request comprises:
Described time reference terminal, according to the synchronization request received, obtains the first fiducial time of described time reference terminal self;
After preset time, described time reference terminal obtains the second fiducial time of self again, and itself and the first fiducial time is packed, and obtains time data bag.
Further, described terminal to be synchronized is according to the fiducial time received, and the step calculating the propagation delay time between described terminal to be synchronized and time reference terminal comprises:
After described single terminal to be synchronized receives time data bag, obtain the second time to be synchronized of described single terminal to be synchronized self;
According to the first fiducial time in described time data bag, the second fiducial time, and described single terminal to be synchronized self first time to be synchronized and the second time to be synchronized, calculate the propagation delay time between described single terminal to be synchronized and time reference terminal.
Further, if when multiple terminal to be synchronized carries out time synchronized, the step of fiducial time that then described time reference terminal obtains according to described synchronization request refers to, after the synchronization request that described time reference terminal receives, obtain the 3rd fiducial time of described time reference terminal self, and the response message comprising described 3rd fiducial time is sent to described multiple terminal each to be synchronized respectively.
Further, described terminal to be synchronized is according to the fiducial time received, and the step calculating the propagation delay time between described terminal to be synchronized and time reference terminal comprises:
After described each terminal to be synchronized receives response message, wait for that preset time obtains the second time to be synchronized of described each terminal to be synchronized self again;
According to described 3rd fiducial time received, and described each terminal to be synchronized self first time to be synchronized and the second time to be synchronized, calculate the propagation delay time between described each terminal to be synchronized and time reference terminal.
Step S4: described terminal to be synchronized carries out time synchronized according to described fiducial time and propagation delay time.
In step s 4 which, if when multiple terminal to be synchronized carries out time synchronized, described terminal to be synchronized also comprises after described fiducial time and propagation delay time carrying out the step of time synchronized, described time reference terminal sent for the 4th fiducial time to described each terminal to be synchronized respectively according to during cycle, so that described each terminal to be synchronized carries out time synchronized again according to described 4th fiducial time.
Fig. 2 is the structure drawing of device of the time synchronized based on Bluetooth communication that the embodiment of the present invention provides, and as shown in Figure 2, comprising: set up module, cooperative module, computing module and synchronization module.
Described module of setting up sets up a time synchronized group for multiple terminal with function of Bluetooth communication by carrying out Bluetooth communication.
Described cooperative module is worked in coordination with for the time reference terminal in described time synchronized group and the terminal to be synchronized in group and is determined communication pattern.Wherein, the transmission submodule of the described cooperative module time reference terminal be used in described time synchronized group sends communication request to the terminal to be synchronized in group.If the relaying submodule of described cooperative module directly receives the communication request from described time reference terminal for described terminal to be synchronized, then described terminal determination communication pattern to be synchronized is non-trunking traffic pattern.If the non-relaying submodule of described cooperative module receives the communication request from described time reference terminal indirectly for described terminal to be synchronized, then described terminal determination communication pattern to be synchronized is trunking traffic pattern.
Described computing module is used for the communication that described terminal to be synchronized is carried out for time synchronized according to determined communication pattern and described time reference terminal, obtains fiducial time and the propagation delay time of time reference terminal.
Described synchronization module is used for described terminal to be synchronized and carries out time synchronized according to described fiducial time and propagation delay time.
Each terminal for time synchronized utilizes bluetooth module to carry out Bluetooth communication, and carry out time synchronized by way module, realize one to one, and the synchronizing function of one-to-many, the method module no longer relies on the existing synchronization rules between various agreement, adopts Bluetooth protocol to realize time synchronized.In view of Bluetooth communication exists distance limit, therefore time synchronized can take repeater mode and non-repeater mode.No matter adopt which kind of pattern, the time synchronized principle of the method module is all identical.Concrete communication pattern is:
(1) remote distance relay pattern: when time reference termination and terminal to be synchronized carry out remote time synchronized, adopts repeater mode.Because there is distance limit in Bluetooth communication, when exceeding/reaching maximum communication distance, the reliability of Bluetooth communication greatly reduces, therefore when doing time synchronized in a big way, the larger relay repeater of a power can be set at the center of Team Member's cooperation, make each terminal can connect this relay repeater when being necessary, realize the expansion of communication.
(2) closely non-repeater mode: when time reference termination and terminal to be synchronized carry out closely time synchronized time, adopt non-repeater mode, namely direct-connected end to end.
(3) remote self-organizing mode: when time reference termination and terminal to be synchronized carry out remote time synchronized, adopt the connection being similar to ad hoc mode Ad-Hoc, or cascade connects.Using terminal as node, each node can as terminal to be synchronized, also can as relaying.
For making the object, technical solutions and advantages of the present invention clearly understand, in conjunction with Figure of description, the specific embodiment of the present invention is described in detail.Should be appreciated that embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.It should be noted that, when not conflicting, the embodiment in the present invention and the feature in embodiment can combination in any mutually.Below be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.According to summary of the invention of the present invention; also can there be other multiple embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention; within the spirit and principles in the present invention all; any amendment of doing, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Fig. 3 is the 1:1 logic process flow figure of the time synchronized based on Bluetooth communication that the embodiment of the present invention provides, as shown in Figure 3, for time synchronized occur in one to one 1:1 when, using Bluetooth protocol as communication infrastructure, to communicate and the terminal to be synchronized with clockwork carries out time synchronized.Two need device A and the equipment B of carrying out time synchronized, and device A is the time reference terminal as time reference, and equipment B take device A as the terminal to be synchronized that time reference carries out time synchronized.Concrete methods of realizing is:
(1) equipment B sends synchronization request R1 to device A, and carries the instant timestamp B1 of the machine;
(2), after the synchronization request R1 of device A receiving equipment B, obtain instant timestamp B1, add in the packet of self, and add an instant timestamp A1 of the machine, by instant timestamp B1, A1 adds packet;
After (3) one fixed response time p, new instant timestamp A2 packs together with B1, A1 by device A again, namely sends to equipment B after A2, B1, A1 packing;
(4) after equipment B receives the packet of device A transmission, the instant timestamp B2 of record the machine.
Propagation delay time offset=[(A1-B1)+(A2-B2)]/2 then between equipment B and device A.Wherein, A1-B1, A2-B2, be the single time difference, and suing for peace must mean value divided by 2.
Like this, equipment B can be just A2-offset according to the instant timestamp setting Local clock of propagation delay time and device A, makes it the clock synchronous with device A.
When equipment B sends synchronization request to device A, idiographic flow is:
(1) instant for the machine timestamp B1 is issued device A by equipment B;
(2) device A is packed from the instant timestamp B1 of equipment B and the instant timestamp A1 of the machine, and more new state;
After (3) one fixed response time p, device A is again by new instant timestamp A2 and B1, A1 packing, and more new state;
(4) device A sends respond packet to equipment B;
(5) equipment B calculates propagation delay time according to respond packet.
Like this, equipment B just according to the instant timestamp setting Local clock in propagation delay time and device A respond packet, can make it the clock synchronous with device A.
Fig. 4 is the 1:n logic process flow figure of the time synchronized based on Bluetooth communication that the embodiment of the present invention provides, as shown in Figure 4, for time synchronized occur in one-to-many 1:n when, using Bluetooth protocol as communication infrastructure in certain limit.Four need the device A of carrying out time synchronized, B, C, D, and device A is the time reference terminal as time reference, equipment B, and C, D are all take device A as the terminal to be synchronized that time reference carries out time synchronized.Concrete methods of realizing is:
(1) connect.Equipment B, C, D send handshake to device A, and this handshake comprises equipment B, instant time stamp T b, Tc, the Td of C, D;
(2) after device A receives the handshake of First equipment, confirmation signal is not returned, after waiting for that whole handshake all receives, for equipment B, the response order of C, D carries out priority queueing, as B->C->D.
(3) device A returns confirmation signal Rb, Rc, Rd, and the instant timestamp RTa of the machine of Portable device A;
(4) equipment B, C, D after waiting for a fixed response time x, record respective instant time stamp T Tb, TTc, TTd after receiving the instant timestamp RTa of the machine of device A;
(5) equipment B is by instant time stamp T b, Tc, Td, and TTb, TTc, TTd, computing is done with the instant timestamp RTa of the machine of device A, device A and equipment B can be calculated, the propagation delay time of C, D, as, propagation delay time between device A and equipment B: Bt=[(RTa-Tb)+(TTb-RTa-x)]/2, the propagation delay time between device A and equipment C: Ct=[(RTa-Tc)+(TTc-RTa-x)]/2, the propagation delay time between device A and equipment D: Dt=[(RTa-Td)+(TTd-RTa-x)]/2;
(6), after determining propagation delay time, equipment B, C, D are RTa-Bt-x, RTa-Ct-x, RTa-Ct-x according to the instant timestamp setting Local clock of propagation delay time and device A respectively, make it the clock synchronous with device A.
(7) device A is with the fixed cycle to equipment B, and C, D send alignment time TO, equipment B, and C, D set Local clock according to the difference of TO and propagation delay time respectively.
Idiographic flow is:
(1) equipment B, C, D all send synchronization request to device A;
(2) device A is equipment B, and C, D do prioritization;
(3) device A more new state, and response apparatus B, C, D;
(4) equipment B, C, D acceptance response, calculates propagation delay time;
(5) device A is periodically to equipment B, and C, D send update request.
In addition, concrete methods of realizing can also be realized by following steps after step (3):
(4) equipment B, after C, D receive the instant timestamp RTa of the machine of device A, after waiting for a fixed response time x, sends respective instant time stamp T Tb, TTc, TTd to device A;
(5) device A is by instant time stamp T b, Tc, Td, and TTb, TTc, TTd, computing is done with the instant timestamp RTa of the machine of device A, device A and equipment B can be calculated, the propagation delay time of C, D, as, propagation delay time between device A and equipment B: Bt=[(RTa-Tb)+(TTb-RTa-x)]/2, the propagation delay time between device A and equipment C: Ct=[(RTa-Tc)+(TTc-RTa-x)]/2, the propagation delay time between device A and equipment D: Dt=[(RTa-Td)+(TTd-RTa-x)]/2;
(6) after determining propagation delay time, propagation delay time is sent to equipment B by device A respectively respectively, C, D, and according to the fixed cycle to equipment B, C, D send alignment time TO;
(7) equipment B, C, D are TO-Bt, TO-Ct, TO-Dt according to the difference setting Local clock of the propagation delay time received and alignment time TO, make it the clock synchronous with device A.
Idiographic flow shows as after step (3):
(4) equipment B, C, D acceptance response, more new state, resend request;
(5) device A response apparatus B, C, D, and more new state;
(6) device A is periodically to equipment B, and C, D send update request.
In sum, the present invention has following technique effect: for team collaboration's time synchronized within the specific limits, can by providing a kind of method of the mobile terminal time synchronized based on Bluetooth communication, accurately and effectively for mobile terminal provides time service service, and do not rely on existing network, GPS, the services such as CDMA/GSM, realize synchronous more accurate, the object that time service face is larger, meet the very big demand of maintaining secrecy simultaneously.In addition, also support end-to-end, broadcast isotype is synchronous, effectively can be applied to various team collaborations field.
Although above to invention has been detailed description, the present invention is not limited thereto, those skilled in the art of the present technique can carry out various amendment according to principle of the present invention.Therefore, all amendments done according to the principle of the invention, all should be understood to fall into protection scope of the present invention.

Claims (10)

1. based on a method for synchronizing time for Bluetooth communication, it is characterized in that, comprising:
Multiple terminal with function of Bluetooth communication sets up a time synchronized group by carrying out Bluetooth communication;
Time reference terminal in described time synchronized group and the terminal to be synchronized in group are worked in coordination with and are determined communication pattern;
Described terminal to be synchronized carries out the communication for time synchronized according to determined communication pattern and described time reference terminal, obtains fiducial time and the propagation delay time of time reference terminal;
Described terminal to be synchronized carries out time synchronized according to described fiducial time and propagation delay time.
2. method according to claim 1, is characterized in that, the time reference terminal in described time synchronized group and the terminal to be synchronized in group are worked in coordination with and determined that the step of communication pattern comprises:
Time reference terminal in described time synchronized group sends communication request to the terminal to be synchronized in group;
If described terminal to be synchronized directly receives the communication request from described time reference terminal, then described terminal determination communication pattern to be synchronized is non-trunking traffic pattern;
If described terminal to be synchronized receives the communication request from described time reference terminal indirectly, then described terminal determination communication pattern to be synchronized is trunking traffic pattern.
3. method according to claim 1 and 2, it is characterized in that, described terminal to be synchronized carries out the communication for time synchronized according to determined communication pattern and described time reference terminal, and the step of the fiducial time and propagation delay time that obtain time reference terminal comprises:
Described terminal to be synchronized sends synchronization request to time reference terminal;
Described terminal to be synchronized receives the fiducial time that described time reference terminal obtains according to described synchronization request;
Described terminal to be synchronized, according to the fiducial time received, calculates the propagation delay time between described terminal to be synchronized and time reference terminal;
Wherein, the first time to be synchronized of described terminal to be synchronized is comprised in described synchronization request.
4. method according to claim 3, is characterized in that, if when single terminal to be synchronized carries out time synchronized, then the step of fiducial time that described time reference terminal obtains according to described synchronization request comprises:
Described time reference terminal, according to the synchronization request received, obtains the first fiducial time of described time reference terminal self;
After preset time, described time reference terminal obtains the second fiducial time of self again, and itself and the first fiducial time is packed, and obtains time data bag.
5. method according to claim 4, is characterized in that, described terminal to be synchronized is according to the fiducial time received, and the step calculating the propagation delay time between described terminal to be synchronized and time reference terminal comprises:
After described single terminal to be synchronized receives time data bag, obtain the second time to be synchronized of described single terminal to be synchronized self;
According to the first fiducial time in described time data bag, the second fiducial time, and described single terminal to be synchronized self first time to be synchronized and the second time to be synchronized, calculate the propagation delay time between described single terminal to be synchronized and time reference terminal.
6. method according to claim 3, it is characterized in that, if when multiple terminal to be synchronized carries out time synchronized, the step of fiducial time that then described time reference terminal obtains according to described synchronization request refers to, after the synchronization request that described time reference terminal receives, obtain the 3rd fiducial time of described time reference terminal self, and the response message comprising described 3rd fiducial time is sent to described multiple terminal each to be synchronized respectively.
7. method according to claim 6, is characterized in that, described terminal to be synchronized is according to the fiducial time received, and the step calculating the propagation delay time between described terminal to be synchronized and time reference terminal comprises:
After described each terminal to be synchronized receives response message, wait for that preset time obtains the second time to be synchronized of described each terminal to be synchronized self again;
According to described 3rd fiducial time received, and described each terminal to be synchronized self first time to be synchronized and the second time to be synchronized, calculate the propagation delay time between described each terminal to be synchronized and time reference terminal.
8. the method according to claim 6 or 7, it is characterized in that, described terminal to be synchronized also comprises after described fiducial time and propagation delay time carrying out the step of time synchronized, described time reference terminal sent for the 4th fiducial time to described each terminal to be synchronized respectively according to during cycle, so that described each terminal to be synchronized carries out time synchronized again according to described 4th fiducial time.
9. based on a time synchronism apparatus for Bluetooth communication, it is characterized in that, comprising:
Setting up module, setting up a time synchronized group for multiple terminal with function of Bluetooth communication by carrying out Bluetooth communication;
Cooperative module, works in coordination with for the time reference terminal in described time synchronized group and the terminal to be synchronized in group and determines communication pattern;
Computing module, for the communication that described terminal to be synchronized is carried out for time synchronized according to determined communication pattern and described time reference terminal, obtains fiducial time and the propagation delay time of time reference terminal;
Synchronization module, carries out time synchronized for described terminal to be synchronized according to described fiducial time and propagation delay time.
10. device according to claim 9, is characterized in that, described cooperative module comprises further:
Send submodule, send communication request to the terminal to be synchronized in group for the time reference terminal in described time synchronized group;
Relaying submodule, if directly receive the communication request from described time reference terminal for described terminal to be synchronized, then described terminal determination communication pattern to be synchronized is non-trunking traffic pattern;
Non-relaying submodule, if indirectly receive the communication request from described time reference terminal for described terminal to be synchronized, then described terminal determination communication pattern to be synchronized is trunking traffic pattern.
CN201410556950.2A 2014-10-20 2014-10-20 Time synchronization method and apparatus based on Bluetooth communication Withdrawn CN105515750A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410556950.2A CN105515750A (en) 2014-10-20 2014-10-20 Time synchronization method and apparatus based on Bluetooth communication
PCT/CN2015/078208 WO2016062058A1 (en) 2014-10-20 2015-05-04 Time synchronization method and device based on bluetooth communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410556950.2A CN105515750A (en) 2014-10-20 2014-10-20 Time synchronization method and apparatus based on Bluetooth communication

Publications (1)

Publication Number Publication Date
CN105515750A true CN105515750A (en) 2016-04-20

Family

ID=55723430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410556950.2A Withdrawn CN105515750A (en) 2014-10-20 2014-10-20 Time synchronization method and apparatus based on Bluetooth communication

Country Status (2)

Country Link
CN (1) CN105515750A (en)
WO (1) WO2016062058A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110072278A (en) * 2019-04-30 2019-07-30 南京大学 A kind of wireless multinode physiological signal monitor system based on low-power consumption bluetooth
CN111865460A (en) * 2019-12-31 2020-10-30 北京骑胜科技有限公司 Time updating method and device, electronic equipment and storage medium
CN112105005A (en) * 2019-08-30 2020-12-18 炬力(珠海)微电子有限公司 Method and device for controlling Bluetooth equipment to play
CN115038162A (en) * 2022-08-12 2022-09-09 广州安凯微电子股份有限公司 Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock
TWI783872B (en) * 2021-12-07 2022-11-11 瑞昱半導體股份有限公司 Network and node synchronization method
WO2023201469A1 (en) * 2022-04-18 2023-10-26 华为技术有限公司 Communication methods and devices, storage medium and computer program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750434A (en) * 2004-09-13 2006-03-22 乐金电子(昆山)电脑有限公司 Time information share method using blue tooth
JP2009198245A (en) * 2008-02-20 2009-09-03 Nec Corp Time synchronous system, time synchronous method, time server, and positional information management server
CN102299789A (en) * 2011-09-22 2011-12-28 梁红 Novel method for synchronizing Intranet time and Internet time
CN102970125A (en) * 2012-10-25 2013-03-13 中兴通讯股份有限公司 Method and device for synchronizing time in close distance
CN103458496A (en) * 2012-06-04 2013-12-18 中兴通讯股份有限公司 Method and system for achieving time synchronization through WiFi-Direct
WO2014038902A1 (en) * 2012-09-10 2014-03-13 Samsung Electronics Co., Ltd. Method and device for executing application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312427B (en) * 2012-03-06 2017-07-28 马维尔国际有限公司 The system and method that the synchronous at least two sets times drive engine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750434A (en) * 2004-09-13 2006-03-22 乐金电子(昆山)电脑有限公司 Time information share method using blue tooth
JP2009198245A (en) * 2008-02-20 2009-09-03 Nec Corp Time synchronous system, time synchronous method, time server, and positional information management server
CN102299789A (en) * 2011-09-22 2011-12-28 梁红 Novel method for synchronizing Intranet time and Internet time
CN103458496A (en) * 2012-06-04 2013-12-18 中兴通讯股份有限公司 Method and system for achieving time synchronization through WiFi-Direct
WO2014038902A1 (en) * 2012-09-10 2014-03-13 Samsung Electronics Co., Ltd. Method and device for executing application
CN102970125A (en) * 2012-10-25 2013-03-13 中兴通讯股份有限公司 Method and device for synchronizing time in close distance

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110072278A (en) * 2019-04-30 2019-07-30 南京大学 A kind of wireless multinode physiological signal monitor system based on low-power consumption bluetooth
CN112105005A (en) * 2019-08-30 2020-12-18 炬力(珠海)微电子有限公司 Method and device for controlling Bluetooth equipment to play
CN112105005B (en) * 2019-08-30 2024-05-03 炬力(珠海)微电子有限公司 Method and device for controlling Bluetooth equipment to play
CN111865460A (en) * 2019-12-31 2020-10-30 北京骑胜科技有限公司 Time updating method and device, electronic equipment and storage medium
CN111865460B (en) * 2019-12-31 2022-08-09 北京骑胜科技有限公司 Time updating method and device, electronic equipment and storage medium
TWI783872B (en) * 2021-12-07 2022-11-11 瑞昱半導體股份有限公司 Network and node synchronization method
WO2023201469A1 (en) * 2022-04-18 2023-10-26 华为技术有限公司 Communication methods and devices, storage medium and computer program product
CN115038162A (en) * 2022-08-12 2022-09-09 广州安凯微电子股份有限公司 Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock
CN115038162B (en) * 2022-08-12 2022-11-18 广州安凯微电子股份有限公司 Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock

Also Published As

Publication number Publication date
WO2016062058A1 (en) 2016-04-28

Similar Documents

Publication Publication Date Title
CN105515750A (en) Time synchronization method and apparatus based on Bluetooth communication
US9606219B2 (en) Systems and methods for locating a target in a GPS-denied environment
EP3541126A1 (en) Positioning method, positioning base station, positioning server and positioning system
Banin et al. Scalable Wi-Fi client self-positioning using cooperative FTM-sensors
CN102711044B (en) Localization method, equipment and system
CN104244401A (en) Satellite timing service-based wireless communication method and satellite timing service-based wireless communication device
CN105228178B (en) A kind of aircraft environment parameter detecting system and detection method based on wireless communication
US20240049159A1 (en) Positioning method, device, apparatus and readable storage medium
US11729799B2 (en) Electronic device and method, performed by electronic device, of obtaining location information
CN105490798A (en) Synchronization method and synchronization system for standard time and fighting time of cross-platform terminals of multiple types
CN105188126A (en) Distributed multi-hop wireless network clock synchronization method based on mean field
CN104703274A (en) Method, system and device for wireless positioning of in-band pseudo satellite
CN111432467A (en) Bluetooth positioning method and system based on TOF
CN108259105B (en) time synchronization processing method and device and synchronization network
US20180152903A1 (en) Real-time wireless positioning system and method thereof
Zhu et al. Airsync: Time synchronization for large-scale iot networks using aircraft signals
Yan et al. Application-layer clock synchronization for wearables using skin electric potentials induced by powerline radiation
CN108093474B (en) Method and system for realizing indoor positioning by utilizing virtual time synchronization
Liu et al. The research of ranging with timing over packet network for the mine safety application
Powers et al. Wide area wireless network synchronization using Locata
CN105187150A (en) SDH network-based clock synchronizing system
Ikram et al. Towards a radio-controlled time synchronized wireless sensor network: A work in-progress paper
CN102647782A (en) Time delay determining method of physical circuit, clock synchronization method and devices of time delay determining method of physical circuit and clock synchronization method
CN103597887B (en) A kind of synchronous method, equipment and system
CN210347786U (en) Wireless high-voltage phase checking instrument

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20160420

WW01 Invention patent application withdrawn after publication