CN113079562B - Time synchronization method and device between base stations and electronic equipment - Google Patents
Time synchronization method and device between base stations and electronic equipment Download PDFInfo
- Publication number
- CN113079562B CN113079562B CN202010010249.6A CN202010010249A CN113079562B CN 113079562 B CN113079562 B CN 113079562B CN 202010010249 A CN202010010249 A CN 202010010249A CN 113079562 B CN113079562 B CN 113079562B
- Authority
- CN
- China
- Prior art keywords
- base station
- tag device
- synchronization
- time
- station group
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0644—External master-clock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to a method and a device for time synchronization between base stations and electronic equipment. According to the method, the second base station group is locked through a strategy system, and the time difference is adjusted to carry out clock synchronization on the second base station group according to the synchronization information of the first base station group and the second base station group in the time period between the timestamp for synchronizing the tag device and the current time of the tag device and the execution of issuing on the second base station group according to the preset synchronization strategy, so that the synchronization between the first base station group and the second base station group is unrelated to the absolute time of the first base station group or the second base station group and is only related to the time difference of the tag device, and the time synchronization between the first base station group and the second base station group is prevented from being influenced by the time delay of wireless network transmission.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for time synchronization between base stations and electronic equipment.
Background
Because of the characteristics of high bandwidth and small delay of UWB (Ultra Wide Band) signals, the problem of time synchronization is easily solved without interference, and therefore, UWB signals are often used in the prior art to perform time synchronization between base stations. However, due to the unpredictable environment between base stations, it is difficult to ensure that UWB signals are stable and non-interfering, so that clock synchronization using UWB signals is only suitable for time synchronization within a small range. When the wireless network is too large, due to the influence of the delay of the wireless network transmission, the clock difference is enlarged by synchronizing the clock through the UWB signal, so that the difficulty that the time synchronization between the base stations cannot be consistent is caused, and the time difference between the base stations is large.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus and an electronic device for time synchronization between base stations to avoid delay of wireless network transmission from affecting time synchronization between base station groups.
A first aspect of the present application provides a method for time synchronization between base stations, where the method includes:
detecting whether a tag device is in communication connection with a first base station in a first base station group, and carrying out time synchronization on the tag device and the first base station when the tag device is determined to be in communication connection with the first base station, and recording a time stamp of the synchronization of the tag device;
when the movement of the tag device is detected and the communication connection between the tag device and a second base station in a second base station group is detected, recording the current time of the tag device, calculating the time difference between the tag device and the second base station, and uploading a timestamp synchronized with the tag device, the current time of the tag device and the time difference between the tag device and the second base station to a policy system; and
and controlling the strategy system to lock the second base station group, executing issuing adjustment on the second base station group according to a preset synchronization strategy to perform clock synchronization according to the synchronization information of the first base station group and the second base station group in a time period between a timestamp for synchronizing the tag device and the current time of the tag device, recording synchronization process information, and unlocking the second base station group after the synchronization of the second base station group is completed.
Preferably, the time synchronizing the tag device with the first base station when the tag device is determined to be communicatively connected with the first base station, and the recording the time stamp of the tag device synchronization includes:
acquiring the relative position of the tag device and the first base station and the signal quality between the tag device and the first base station through a positioning system;
judging whether a communication channel between the tag device and the first base station is a good communication channel or not according to the relative position of the tag device and the first base station and the signal quality between the tag device and the first base station; and
and when the communication channel between the tag device and the first base station is a good-quality communication channel, time synchronization is carried out between the tag device and the first base station, and the time stamp of the synchronization of the tag device is recorded.
Preferably, the acquiring, by the positioning system, the relative position of the tag device and the first base station includes:
acquiring the IP address and the MAC address of the label device and the IP address and the MAC address of the first base station through the positioning system according to an mDNS protocol; and
and acquiring distance information between the tag device and the first base station based on the IP address and the MAC address of the tag device and the IP address and the MAC address of the first base station.
Preferably, the acquiring the signal quality between the tag device and the first base station comprises:
and determining and acquiring the signal quality between the tag device and the first base station according to the signal strength indication of the signal sent by the first base station and received by the tag device.
Preferably, the acquiring, by the positioning system, the relative position of the tag device and the first base station includes:
and determining the relative position of the tag device and the first base station according to the signal strength of the signal which is received by the tag device and transmitted by the first base station.
Preferably, the preset synchronization policy includes: and performing time synchronization on the first base station and the second base station which are not in the same base station group and are not synchronized by other base stations in a time period between the timestamp of the tag device synchronization and the current time of the tag device.
Preferably, the method further comprises:
and when the clock of a third base station in the first base station group or the second base station group is determined not to be synchronously updated within the range exceeding the preset time, deleting the third base station from the first base station group or the second base station group.
Preferably, the tag device and the first base station adopt a high-precision clock source.
A second aspect of the present application provides a time synchronization apparatus, the apparatus comprising:
the system comprises a first synchronization module, a second synchronization module and a third synchronization module, wherein the first synchronization module is used for detecting whether a tag device is in communication connection with a first base station in a first base station group, carrying out time synchronization on the tag device and the first base station when the tag device is determined to be in communication connection with the first base station, and recording a time stamp of the synchronization of the tag device;
the computing module is used for recording the current time of the tag device when the tag device is detected to move and the communication connection between the tag device and a second base station in a second base station group is detected, computing the time difference between the tag device and the second base station, and uploading a timestamp synchronized with the tag device, the current time of the tag device and the time difference between the tag device and the second base station to a policy system; and
and the second synchronization module is used for controlling the strategy system to lock the second base station group, performing issuing adjustment on the second base station group according to a preset synchronization strategy to perform clock synchronization according to the synchronization information of the first base station group and the second base station group in a time period between a timestamp for synchronizing the tag device and the current time of the tag device, recording synchronization process information, and unlocking the second base station group after the second base station group is synchronized.
A third aspect of the present application provides an electronic device comprising a processor and a memory, the processor being configured to implement the inter-base station time synchronization method when executing a computer program stored in the memory.
According to the scheme, a second base station group is locked through a strategy system, and the time difference is adjusted to carry out clock synchronization on the second base station group according to the synchronization information of the first base station group and the second base station group in the time period between the timestamp for synchronizing the tag device and the current time of the tag device and the execution of issuing on the second base station group according to a preset synchronization strategy, so that the synchronization between the first base station group and the second base station group is unrelated to the absolute time of the first base station group or the second base station group and is only related to the time difference of the tag device, and the time synchronization between the first base station group and the second base station group is prevented from being influenced by the time delay of wireless network transmission.
Drawings
Fig. 1 is a flowchart illustrating a method for time synchronization between base stations according to an embodiment of the present invention.
Fig. 2 is a block diagram of an inter-base station time synchronization method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of an electronic device according to an embodiment of the invention.
Description of the main elements
|
30 |
|
301 |
|
302 |
|
303 |
|
6 |
|
61 |
Processor with a memory for storing a plurality of |
62 |
|
63 |
Step (ii) of | S11~S13 |
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Preferably, the inter-base-station time synchronization method of the present invention is applied to one or more electronic devices. The electronic device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may be a desktop computer, a notebook computer, a tablet computer, a cloud server, or other computing device. The device can be in man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or voice control equipment and the like.
Example 1
Fig. 1 is a flowchart of a method for time synchronization between base stations according to an embodiment of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
Referring to fig. 1, the method for time synchronization between base stations specifically includes the following steps:
step S11, detecting whether the tag device is communicatively connected to a first base station in a first base station group, and time-synchronizing the tag device with the first base station when determining that the tag device is communicatively connected to the first base station, and recording a timestamp of the tag device synchronization.
In a specific embodiment, the step S11 includes:
(S111) acquiring, by a positioning system, a relative position of the tag device and the first base station and a signal quality between the tag device and the first base station;
(S112) determining whether a communication channel between the tag device and the first base station is a good communication channel according to a relative position of the tag device and the first base station and a signal quality between the tag device and the first base station; and
(S113) time-synchronizing the tag device with the first base station when the communication channel between the tag device and the first base station is a good-quality communication channel, and recording a time stamp of the tag device synchronization.
In this embodiment, the tag device and the first base station use high-precision clock sources. In this embodiment, the positioning system is an ultra-wideband positioning system. The acquiring, by the positioning system, the relative position of the tag device and the first base station includes: acquiring the IP address and the MAC address of the label device and the IP address and the MAC address of the first base station through the positioning system according to an mDNS protocol; and acquiring distance information between the tag device and the first base station based on the IP address and the MAC address of the tag device and the IP address and the MAC address of the first base station. In a specific embodiment, the positioning system sends the IP address and the MAC address of the tag device and the IP address and the MAC address of the first base station to the terminal device, and the terminal device controls the tag device and the base station to perform pairwise ranging to obtain a ranging result, and feeds the ranging result back to the positioning system. In this embodiment, the tag device is a mobile device, for example, the tag device may be a mobile phone, a tablet computer, a wearable device, or a notebook computer.
In this embodiment, the obtaining the signal quality between the tag device and the first base station includes: and determining and acquiring the Signal quality between the tag device and the first base station according to a Received Signal Strength Indication (RSSI) of the Signal transmitted by the first base station and Received by the tag device. In one embodiment, the obtaining, by the positioning system, the relative position of the tag device and the first base station includes: and determining the relative position of the tag device and the first base station according to the signal strength of the signal which is received by the tag device and transmitted by the first base station.
Step S12, when it is detected that the tag device moves and it is detected that the tag device is in communication connection with a second base station in a second base station group, recording the current time of the tag device, calculating a time difference between the tag device and the second base station, and uploading a timestamp synchronized with the tag device, the current time of the tag device, and the time difference between the tag device and the second base station to a policy system.
In this embodiment, when it is detected that the tag device moves and it is detected that the tag device is in communication connection with the second base station, determining the signal quality between the tag device and the second base station according to the signal strength indication of the signal received by the tag device and transmitted by the second base station; determining whether a communication channel between the tag device and the second base station is a good communication channel according to the signal quality between the tag device and the second base station; and when the communication channel between the tag device and the second base station is a high-quality communication channel, recording the current time of the tag device, calculating the time difference between the tag device and the second base station, and uploading the timestamp synchronized with the tag device, the current time of the tag device and the time difference between the tag device and the second base station to a policy system. In this embodiment, the first base station group and the second base station group are different base station groups.
Step S13, controlling the policy system to lock the second base station group, performing issuing adjustment on the second base station group according to a preset synchronization policy to perform clock synchronization according to the synchronization information of the first base station group and the second base station group in a time period between a timestamp for synchronization of the tag device and the current time of the tag device, recording synchronization process information, and unlocking the second base station group after synchronization of the second base station group is completed.
In this embodiment, the preset synchronization policy includes: and performing time synchronization on the first base station and the second base station which are not in the same base station group and are not synchronized by other base stations in a time period between the timestamp of the tag device synchronization and the current time of the tag device.
The method further comprises the following steps: and when the clock of a third base station in the first base station group or the second base station group is determined not to be synchronously updated within the range exceeding the preset time, deleting the third base station from the first base station group or the second base station group.
According to the scheme, a second base station group is locked through a strategy system, and the time difference is adjusted to carry out clock synchronization on the second base station group according to the synchronization information of the first base station group and the second base station group in the time period between the timestamp for synchronizing the tag device and the current time of the tag device and the execution of issuing on the second base station group according to a preset synchronization strategy, so that the synchronization between the first base station group and the second base station group is unrelated to the absolute time of the first base station group or the second base station group and is only related to the time difference of the tag device, and the time synchronization between the first base station group and the second base station group is prevented from being influenced by the time delay of wireless network transmission.
Example 2
Fig. 2 is a block diagram of a time synchronization apparatus 30 according to an embodiment of the present invention.
In some embodiments, the time synchronizer 30 operates in an electronic device. The time synchronization apparatus 30 may comprise a plurality of functional modules composed of program code segments. The program code for the various program segments in the time synchronization apparatus 30 may be stored in a memory and executed by at least one processor to perform inter-base station time synchronization functions.
In this embodiment, the time synchronizer 30 may be divided into a plurality of functional modules according to the functions performed by the time synchronizer. Referring to fig. 2, the time synchronization apparatus 30 may include a first synchronization module 301, a calculation module 302, and a second synchronization module 303. The module referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory. In some embodiments, the functionality of the modules will be described in greater detail in subsequent embodiments.
The first synchronization module 301 is configured to detect whether the tag device is communicatively connected to a first base station in a first base station group, perform time synchronization between the tag device and the first base station when it is determined that the tag device is communicatively connected to the first base station, and record a timestamp of the time synchronization between the tag device and the first base station.
In a specific embodiment, the time synchronizing the tag device with the first base station when the first synchronization module 301 determines that the tag device is communicatively connected with the first base station, and recording the time stamp of the tag device synchronization includes:
(S111) acquiring, by a positioning system, a relative position of the tag device and the first base station and a signal quality between the tag device and the first base station;
(S112) determining whether a communication channel between the tag device and the first base station is a good communication channel according to a relative position of the tag device and the first base station and a signal quality between the tag device and the first base station; and
(S113) time-synchronizing the tag device with the first base station when the communication channel between the tag device and the first base station is a good-quality communication channel, and recording a time stamp of the tag device synchronization.
In this embodiment, the tag device and the first base station use high-precision clock sources. In this embodiment, the positioning system is an ultra-wideband positioning system. The obtaining the relative position of the tag device and the first base station through the positioning system comprises: acquiring the IP address and the MAC address of the label device and the IP address and the MAC address of the first base station through the positioning system according to an mDNS protocol; and acquiring distance information between the tag device and the first base station based on the IP address and the MAC address of the tag device and the IP address and the MAC address of the first base station. In a specific embodiment, the positioning system sends the IP address and the MAC address of the tag device and the IP address and the MAC address of the first base station to the terminal device, and the terminal device controls the tag device and the base station to perform pairwise ranging to obtain a ranging result, and feeds the ranging result back to the positioning system. In this embodiment, the tag device is a mobile device, for example, the tag device may be a mobile phone, a tablet computer, a wearable device, or a notebook computer.
In this embodiment, the obtaining the signal quality between the tag device and the first base station includes: and determining and acquiring the Signal quality between the tag device and the first base station according to a Received Signal Strength Indication (RSSI) of the Signal transmitted by the first base station and Received by the tag device. In one embodiment, the obtaining, by the positioning system, the relative position of the tag device and the first base station includes: and determining the relative position of the tag device and the first base station according to the signal strength of the signal which is received by the tag device and transmitted by the first base station.
The calculating module 302 is configured to record a current time of the tag device when it is detected that the tag device moves and a communication connection between the tag device and a second base station in a second base station group is detected, calculate a time difference between the tag device and the second base station, and upload a timestamp synchronized with the tag device, the current time of the tag device, and the time difference between the tag device and the second base station to a policy system.
In this embodiment, when the tag device is detected to move and the tag device is detected to be in communication with the second base station, the calculation module 302 determines the signal quality between the tag device and the second base station according to the signal strength indication of the signal received by the tag device and sent by the second base station; determining whether a communication channel between the tag device and the second base station is a good communication channel according to the signal quality between the tag device and the second base station; and when the communication channel between the tag device and the second base station is a high-quality communication channel, recording the current time of the tag device, calculating the time difference between the tag device and the second base station, and uploading the timestamp synchronized with the tag device, the current time of the tag device and the time difference between the tag device and the second base station to a policy system. In this embodiment, the first base station group and the second base station group are different base station groups.
The second synchronization module 303 is configured to control the policy system to the second group of base stationsTo lockAnd according to the synchronization information of the first base station group and the second base station group in the time period between the timestamp of the tag device synchronization and the current time of the tag device, issuing and adjusting the time difference to the second base station group according to a preset synchronization strategy to perform clock synchronization, recording synchronization process information, and unlocking the second base station group after the second base station group is synchronized.
In this embodiment, the preset synchronization policy includes: and performing time synchronization on the first base station and the second base station which are not in the same base station group and are not synchronized by other base stations in a time period between the timestamp of the tag device synchronization and the current time of the tag device.
The second synchronization module 303 is further configured to: and when the clock of a third base station in the first base station group or the second base station group is determined not to be synchronously updated within the range exceeding the preset time, deleting the third base station from the first base station group or the second base station group.
According to the scheme, a second base station group is locked through a strategy system, and the time difference is adjusted to carry out clock synchronization on the second base station group according to the synchronization information of the first base station group and the second base station group in the time period between the timestamp for synchronizing the tag device and the current time of the tag device and the execution of issuing on the second base station group according to a preset synchronization strategy, so that the synchronization between the first base station group and the second base station group is unrelated to the absolute time of the first base station group or the second base station group and is only related to the time difference of the tag device, and the time synchronization between the first base station group and the second base station group is prevented from being influenced by the time delay of wireless network transmission.
Example 3
Fig. 3 is a schematic diagram of an electronic device 6 according to an embodiment of the invention.
The electronic device 6 comprises a memory 61, a processor 62 and a computer program 63 stored in the memory 61 and executable on the processor 62. The processor 62, when executing the computer program 63, implements the steps in the above-mentioned embodiment of the inter-base-station time synchronization method, such as the steps S11-S13 shown in fig. 1. Alternatively, the processor 62 implements the functions of the modules/units in the time synchronizer embodiment described above when executing the computer program 63, such as the modules 301 to 303 in fig. 2.
Illustratively, the computer program 63 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 62 to carry out the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 63 in the electronic device 6. For example, the computer program 63 may be divided into a first synchronization module 301, a calculation module 302, and a second synchronization module 303 in fig. 2, and the specific functions of each module are described in embodiment 2.
In this embodiment, the electronic device 6 may be a single server, a server group, a cloud server, or other computing devices. It will be appreciated by those skilled in the art that the schematic diagram is merely an example of the electronic device 6, and does not constitute a limitation of the electronic device 6, and may include more or less components than those shown, or combine certain components, or different components, for example, the electronic device 6 may further include an input-output device, a network access device, a bus, etc.
The Processor 62 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor 62 may be any conventional processor or the like, the processor 62 being the control center for the electronic device 6, with various interfaces and lines connecting the various parts of the overall electronic device 6.
The memory 61 may be used for storing the computer programs 63 and/or modules/units, and the processor 62 may implement various functions of the electronic device 6 by running or executing the computer programs and/or modules/units stored in the memory 61 and calling data stored in the memory 61. The memory 61 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the stored data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device 6, and the like. In addition, the memory 61 may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The integrated modules/units of the electronic device 6, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and instructs related hardware to implement the steps of the above-described embodiments of the method when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
In the embodiments provided in the present invention, it should be understood that the disclosed electronic device and method can be implemented in other ways. For example, the above-described embodiments of the electronic device are merely illustrative, and for example, the division of the modules is only one logical functional division, and there may be other divisions when the actual implementation is performed.
In addition, each functional module in each embodiment of the present invention may be integrated into the same processing module, or each module may exist alone physically, or two or more modules may be integrated into the same module. The integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is to be understood that the word "comprising" does not exclude other modules or steps, and the singular does not exclude the plural. Several modules or electronic devices recited in the electronic device claims may also be implemented by one and the same module or electronic device by means of software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims (9)
1. A method for time synchronization between base stations, the method comprising:
detecting whether a tag device is in communication connection with a first base station in a first base station group, and carrying out time synchronization on the tag device and the first base station when the tag device is determined to be in communication connection with the first base station, and recording a time stamp of the synchronization of the tag device;
when the movement of the tag device is detected and the communication connection between the tag device and a second base station in a second base station group is detected, recording the current time of the tag device, calculating the time difference between the tag device and the second base station, and uploading a timestamp synchronized with the tag device, the current time of the tag device and the time difference between the tag device and the second base station to a policy system; and
controlling the strategy system to lock the second base station group, executing issuing adjustment on the second base station group according to a preset synchronization strategy to perform clock synchronization according to the synchronization information of the first base station group and the second base station group in a time period between a timestamp for synchronizing the tag device and the current time of the tag device, recording synchronization process information, and unlocking the second base station group after the synchronization of the second base station group is completed;
the preset synchronization strategy comprises the following steps: and performing time synchronization on the first base station and the second base station which are not in the same base station group and are not synchronized by other base stations in a time period between the timestamp of the tag device synchronization and the current time of the tag device.
2. The inter-base station time synchronization method of claim 1, wherein said time synchronizing the tag device with the first base station upon determining that the tag device is communicatively coupled with the first base station, and recording a timestamp of the tag device synchronization comprises:
acquiring the relative position of the tag device and the first base station and the signal quality between the tag device and the first base station through a positioning system;
judging whether a communication channel between the tag device and the first base station is a high-quality communication channel or not according to the relative position of the tag device and the first base station and the signal quality between the tag device and the first base station; and
and when the communication channel between the tag device and the first base station is a good-quality communication channel, time synchronization is carried out between the tag device and the first base station, and the time stamp of the synchronization of the tag device is recorded.
3. The inter-base station time synchronization method of claim 2, wherein said obtaining the relative position of the tag device and the first base station via a positioning system comprises:
acquiring the IP address and the MAC address of the label device and the IP address and the MAC address of the first base station through the positioning system according to an mDNS protocol; and
and acquiring distance information between the tag device and the first base station based on the IP address and the MAC address of the tag device and the IP address and the MAC address of the first base station.
4. The inter-base station time synchronization method of claim 2, wherein said obtaining signal quality between the tag device and the first base station comprises:
and determining and acquiring the signal quality between the tag device and the first base station according to the signal strength indication of the signal sent by the first base station and received by the tag device.
5. The inter-base station time synchronization method of claim 2, wherein said obtaining the relative position of the tag device and the first base station via a positioning system comprises:
and determining the relative position of the tag device and the first base station according to the signal strength of the signal which is received by the tag device and transmitted by the first base station.
6. The inter-base station time synchronization method of claim 1, wherein the method further comprises:
and when the clock of a third base station in the first base station group or the second base station group is determined not to be synchronously updated within the range exceeding the preset time, deleting the third base station from the first base station group or the second base station group.
7. The method of claim 1, wherein the tag device and the first base station use a high precision clock source.
8. A time synchronization apparatus, characterized in that the apparatus comprises:
the system comprises a first synchronization module, a second synchronization module and a third synchronization module, wherein the first synchronization module is used for detecting whether a tag device is in communication connection with a first base station in a first base station group, carrying out time synchronization on the tag device and the first base station when the tag device is determined to be in communication connection with the first base station, and recording a time stamp of the synchronization of the tag device;
the computing module is used for recording the current time of the tag device when the tag device is detected to move and the communication connection between the tag device and a second base station in a second base station group is detected, computing the time difference between the tag device and the second base station, and uploading the timestamp synchronized with the tag device, the current time of the tag device and the time difference between the tag device and the second base station to a policy system; and
the second synchronization module is used for controlling the strategy system to lock the second base station group, performing issuing adjustment on the time difference for clock synchronization on the second base station group according to a preset synchronization strategy according to the synchronization information of the first base station group and the second base station group in a time period between a timestamp for synchronizing the tag device and the current time of the tag device, recording synchronization process information, and unlocking the second base station group after the synchronization of the second base station group is completed;
the preset synchronization strategy comprises the following steps: and performing time synchronization on the first base station and the second base station which are not in the same base station group and are not synchronized by other base stations in a time period between the timestamp for synchronizing the tag device and the current time of the tag device.
9. An electronic device, characterized in that: the electronic device comprises a processor and a memory, the processor being configured to implement the inter-base station time synchronization method according to any of claims 1-7 when executing the computer program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010010249.6A CN113079562B (en) | 2020-01-06 | 2020-01-06 | Time synchronization method and device between base stations and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010010249.6A CN113079562B (en) | 2020-01-06 | 2020-01-06 | Time synchronization method and device between base stations and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113079562A CN113079562A (en) | 2021-07-06 |
CN113079562B true CN113079562B (en) | 2022-06-03 |
Family
ID=76609025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010010249.6A Active CN113079562B (en) | 2020-01-06 | 2020-01-06 | Time synchronization method and device between base stations and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113079562B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109699068A (en) * | 2017-10-20 | 2019-04-30 | 阿里巴巴集团控股有限公司 | A kind of base station synchronization method and device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101191215B1 (en) * | 2010-07-16 | 2012-10-15 | 엘지전자 주식회사 | Method and apparatus of positioning in a wireless communication system |
JP5668732B2 (en) * | 2012-09-14 | 2015-02-12 | 株式会社デンソー | Wireless communication system |
CN107567090A (en) * | 2016-07-01 | 2018-01-09 | 中兴通讯股份有限公司 | The method, apparatus of time delay and base station between a kind of acquisition base station |
CN106842175A (en) * | 2017-04-07 | 2017-06-13 | 深圳市普渡科技有限公司 | A kind of synchronous and TOA the range-measurement system of associated wireless clock based on UWB |
CN107257579B (en) * | 2017-07-11 | 2020-02-28 | 杭州品铂科技有限公司 | Time synchronization method of UWB high-precision positioning system |
CN110011748B (en) * | 2018-02-28 | 2020-12-08 | 深圳市天工测控技术有限公司 | Method, device and system for clock synchronization in ultra-wideband positioning system |
-
2020
- 2020-01-06 CN CN202010010249.6A patent/CN113079562B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109699068A (en) * | 2017-10-20 | 2019-04-30 | 阿里巴巴集团控股有限公司 | A kind of base station synchronization method and device |
Also Published As
Publication number | Publication date |
---|---|
CN113079562A (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104750740A (en) | Data renewing method and device | |
EP3225059B1 (en) | Clock synchronization using wifi beacons | |
CN112416289B (en) | Audio synchronization method, device, equipment and storage medium | |
CN112839377A (en) | High-precision positioning system and positioning method | |
CN113075617A (en) | Indoor positioning method and positioning device based on single base station and electronic equipment | |
CN110099439A (en) | Method for synchronizing time and device | |
US20070143478A1 (en) | Method and apparatus for managing floor control in a network | |
CN113079562B (en) | Time synchronization method and device between base stations and electronic equipment | |
CN112073972B (en) | Method and device for eliminating adjacent channel signal interference and small base station | |
US11856538B2 (en) | Method and apparatus for broadcasting configuration information of synchronizing signal block, and method and apparatus for receiving configuration information of synchronizing signal block | |
CN108848144B (en) | Method and device for accessing nodes in block chain and block chain link point | |
CN113541842B (en) | Multi-shooting range system time synchronization method and device | |
CN111405026B (en) | Method and device for synchronously controlling volumes of android mobile phone and cloud mobile phone | |
WO2021168654A1 (en) | Method and apparatus for detecting synchronized data, server, and data synchronization system | |
CN109714722B (en) | Management method and device of indoor antenna, electronic equipment and storage medium | |
CN106656361A (en) | Frequency synchronization method and device | |
CN109379704B (en) | Method, device and equipment for correcting regional information of short message and storage medium | |
CN109275133B (en) | Weather forecast sending method and device | |
CN113767696A (en) | Quasi co-location configuration method, quasi co-location QCL information determination method and device | |
CN113204516A (en) | Method and device for time synchronization of processors | |
CN113873344B (en) | Streaming media playing method, device and system | |
CN101931888A (en) | Service processing method and device and base station controller | |
CN113630867A (en) | Wireless frame communication method and system, and wireless positioning method and system | |
CN112543501B (en) | Time calibration method and device, storage medium and electronic device | |
CN112566235B (en) | Wireless synchronization method, device and system for monitoring station |
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 |