CN109067496B - Wireless clock synchronization method, system and medium for centerless base station - Google Patents

Wireless clock synchronization method, system and medium for centerless base station Download PDF

Info

Publication number
CN109067496B
CN109067496B CN201811260538.0A CN201811260538A CN109067496B CN 109067496 B CN109067496 B CN 109067496B CN 201811260538 A CN201811260538 A CN 201811260538A CN 109067496 B CN109067496 B CN 109067496B
Authority
CN
China
Prior art keywords
base station
clock
clock synchronization
beacon
tsync
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
Application number
CN201811260538.0A
Other languages
Chinese (zh)
Other versions
CN109067496A (en
Inventor
孙东辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ocamar Information Technology Shanghai Co ltd
Original Assignee
Ocamar Information Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ocamar Information Technology Shanghai Co ltd filed Critical Ocamar Information Technology Shanghai Co ltd
Priority to CN201811260538.0A priority Critical patent/CN109067496B/en
Publication of CN109067496A publication Critical patent/CN109067496A/en
Application granted granted Critical
Publication of CN109067496B publication Critical patent/CN109067496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes

Abstract

The invention provides a wireless clock synchronization method, a system and a medium of a centerless base station, comprising the following steps: base station domain division: dividing each base station to obtain divided base station domains; and a base station domain clock synchronization step: and distributing clock synchronization parameters corresponding to each base station in the base station domain according to the divided base station domain, and synchronizing the clock information of each base station in the base station domain. The invention can realize the accurate synchronization of the clocks between the base stations in the Tsync time period. The invention can solve the problems of low synchronization precision, easy occurrence of clock desynchronization after synchronization and the like in the prior art. The invention can realize the dynamic division of the base station domain, and solves the problems of dynamic judgment, decomposition and combination of the minimum base station domain when the base station is dynamically increased, decreased or moved.

Description

Wireless clock synchronization method, system and medium for centerless base station
Technical Field
The present invention relates to the field of communications, and in particular, to a method, system, and medium for synchronizing a wireless clock of a centerless base station.
Background
In the prior art, the base station synchronization mostly adopts a GPS synchronization mode, and each base station is connected with a GPS signal, so that the clock synchronization among the base stations is realized.
The currently adopted synchronization modes include a Global Positioning System (GPS)/Beidou synchronization mode, an IEEE1588 network clock synchronization mode, a wireless interface synchronization mode, or different combinations of several modes, but due to the influence of a site installation position, there is a problem of unstable clock source signals, which causes loss of synchronization signals, synchronization abnormality, and frequency deviation, thereby causing problems of frequency interference, time slot cross interference, and the like. Therefore, in the prior art, when the clock synchronization is performed on the base station to be calibrated, the problems of low synchronization precision, easy occurrence of clock desynchronization after synchronization and the like exist, and the user experience is seriously influenced.
Patent document CN102960050B (application number: 201180028265.7) discloses a wireless base station and a wireless base station clock synchronization method. Wherein, a wireless base station can comprise: a base station indoor device and a base station outdoor device; the base station outdoor unit includes: an adapter, a ground service antenna and a satellite antenna; the ground service antenna is a microwave transmission antenna or a wireless access antenna; the base station indoor unit includes: the satellite signal processing module is used for decoding satellite radio-frequency signals received by the satellite antenna to obtain satellite service signals; the satellite antenna and the ground service antenna are connected to the adapter, and the adapter is used for coupling signals received by the satellite antenna and the ground service antenna and conducting the coupled signals to the base station indoor device through the first data line.
Disclosure of Invention
In view of the defects in the prior art, an object of the present invention is to provide a method, a system and a medium for synchronizing wireless clocks of a centerless base station.
The invention provides a wireless clock synchronization method of a centerless base station, which comprises the following steps:
base station domain division: dividing each base station to obtain divided base station domains;
and a base station domain clock synchronization step: and according to the divided base station domains, respectively distributing a base station ID and a clock synchronization parameter corresponding to each base station in the base station domains, and synchronizing the clock information of each base station in the base station domains.
Preferably, the base station domain partitioning step comprises any one or more of:
single base station domain division: dividing all base stations into a base station domain, and outputting the divided base station domains;
and an adjacent base station information acquisition step: acquiring adjacent base station list information uploaded by each base station;
base station domain dynamic partitioning: and dividing the base station domain according to the acquired adjacent base station list information of each base station, and outputting the divided base station domains.
Preferably, the clock synchronization parameters include: the method comprises the steps that the emitting period Tsync of a clock synchronization beacon, the unit time interval Tclk of the emitting of the clock synchronization beacon, the total time Tsignal required for emitting 1 complete clock synchronization beacon and being received and interpreted by another base station, and the number X of the Tsync periods which lasts for preset;
the Tsync is greater than N × Tclk, and the Tclk is Tsignal + a preset time protection interval;
the N is the number of the maximum available time slices of the time-sharing communication of the clock synchronization beacon on a communication channel;
preferably, the base station domain clock synchronization step includes:
a base station parameter obtaining step: respectively allocating a base station ID from the base station ID pool to each base station in the base station domain, and allocating corresponding clock synchronization parameters and communication channels of clock synchronization beacons to each base station;
synchronous beacon transmitting and receiving: according to the base station ID, the clock synchronization parameters and the communication channel of the clock synchronization beacon of each base station, in the transmission period Tsync of the clock synchronization beacon, enabling each base station to transmit the clock synchronization beacon with the base station ID at the interruption point of the clock beacon on the communication channel of the clock synchronization beacon, then continuously receiving the clock synchronization beacon transmitted by the adjacent base stations, and acquiring all the clock synchronization beacons received in the transmission period Tsync of the clock synchronization beacon;
a clock updating step: each base station acquires the clock and accumulated clock number of the base station corresponding to each clock beacon according to the current clock of each base station and all clock synchronization beacons received in the acquired transmission period Tsync of the clock synchronization beacon, calculates the new clock of each base station, sets the clock beacon interruption point of each base station according to the new clock of each base station, enters the transmission period Tsync of the next clock synchronization beacon, adds 1 to the number of the continuous Tsync periods, and judges whether the number of the continuous Tsync periods of each base station is greater than the preset number X of the continuous Tsync periods: if yes, entering a base station ID dynamic updating step to continue execution; otherwise, returning to the synchronous beacon transmitting and receiving step for continuous execution;
dynamic updating of base station ID: each base station sends the ID number of the base station to the central server, and the steps of transmitting and receiving the synchronous beacon are returned to be continuously executed;
the central server updates the base station ID: enabling the central server to judge whether the ID number of the base station is equal to 0 or not according to the received ID number of the base station: if the number is equal to 0, the central server randomly extracts an unallocated ID number from the ID pool of the base station and returns the ID number to the base station, and the step of returning data receiving interruption is carried out continuously; if not, the central server randomly extracts an unallocated ID number from the base station ID pool and returns the unallocated ID number to the base station, and the original base station ID number is put back to the base station ID pool, and the step of returning data receiving interruption is carried out continuously;
returning data receiving interruption step: and enabling each base station to update the ID number of the base station according to the new ID number of the base station returned from the central server, exiting the interruption after the updating is finished, and returning to the synchronous beacon transmitting and receiving step for continuous execution.
Preferably, the base station ID is an ID number with a value between 1 and N, all ID numbers with values between 1 and N form a base station ID pool, and the IDs of all base stations in the same base station domain are different;
the clock of the base station corresponding to the clock beacon is an ID number × Tclk-Tsignal in the time-clock synchronization beacon data received by the clock synchronization beacon;
the new clock of each base station is (the current clock of each base station + the accumulated clock)/(the accumulated clock number + 1);
the accumulated clock is equal to the accumulated sum of the received clocks of the base stations corresponding to the clock beacons;
the accumulated clock number is equal to the received clock beacon number;
the tick break point is the clock of each base station + each base station ID × Tclk.
The invention provides a wireless clock synchronization system of a centerless base station, which comprises:
a base station domain division module: dividing each base station to obtain divided base station domains;
a base station domain clock synchronization module: and according to the divided base station domains, respectively distributing a base station ID and a clock synchronization parameter corresponding to each base station in the base station domains, and synchronizing the clock information of each base station in the base station domains.
Preferably, the base station domain partitioning module comprises any one or more of:
a single base station domain division module: dividing all base stations into a base station domain, and outputting the divided base station domains;
an adjacent base station information acquisition module: acquiring adjacent base station list information uploaded by each base station;
a base station domain dynamic division module: and dividing the base station domain according to the acquired adjacent base station list information of each base station, and outputting the divided base station domains.
Preferably, the clock synchronization parameters include: the method comprises the steps that the emitting period Tsync of a clock synchronization beacon, the unit time interval Tclk of the emitting of the clock synchronization beacon, the total time Tsignal required for emitting 1 complete clock synchronization beacon and being received and interpreted by another base station, and the number X of the Tsync periods which lasts for preset;
the Tsync is greater than N × Tclk, and the Tclk is Tsignal + a preset time protection interval;
and N is the number of the maximum available time slices of time-sharing communication of the clock synchronization beacon on a communication channel.
Preferably, the base station domain clock synchronization module includes:
a base station parameter acquisition module: respectively allocating a base station ID from the base station ID pool to each base station in the base station domain, and allocating corresponding clock synchronization parameters and communication channels of clock synchronization beacons to each base station;
the synchronous beacon transmitting and receiving module: according to the distributed ID of each base station, clock synchronization parameters and communication channels of the clock synchronization beacons, in the transmission period Tsync of the clock synchronization beacons, enabling each base station to transmit the clock synchronization beacons with the ID of the base station at the interruption points of the clock beacons on the communication channels of the clock synchronization beacons, then continuously receiving the clock synchronization beacons transmitted by adjacent base stations, and acquiring all the clock synchronization beacons received in the transmission period Tsync of the clock synchronization beacons;
a clock update module: each base station acquires the clock and accumulated clock number of the base station corresponding to each clock beacon according to the current clock of each base station and all clock synchronization beacons received in the acquired transmission period Tsync of the clock synchronization beacon, calculates the new clock of each base station, sets the clock beacon interruption point of each base station according to the new clock of each base station, enters the transmission period Tsync of the next clock synchronization beacon, adds 1 to the number of the continuous Tsync periods, and judges whether the number of the continuous Tsync periods is greater than the preset number X of the continuous Tsync periods: if yes, triggering a base station ID dynamic updating module; otherwise, triggering the synchronous beacon transmitting and receiving module;
a base station ID dynamic updating module: each base station sends an ID number of the base station to a central server to trigger a synchronous beacon transmitting and receiving module;
the central server updates the base station ID module: enabling the central server to judge whether the ID number of the base station is equal to 0 or not according to the received ID number of the base station: if the number is equal to 0, the central server randomly extracts an unallocated ID number from the ID pool of the base station and returns the ID number to the base station, and a return data receiving interruption module is triggered; if not, the central server randomly extracts an unallocated ID number from the base station ID pool and returns the unallocated ID number to the base station, and the original base station ID number is put back to the base station ID pool, and a return data receiving interruption module is triggered;
a return data reception interrupt module: each base station updates the ID number of the base station according to the new ID number of the base station returned from the central server, exits from the interrupt after the updating is finished and triggers a synchronous beacon transmitting and receiving module;
the base station ID is an ID number with a numerical value between 1 and N, all the ID numbers with the numerical values between 1 and N form a base station ID pool, and the IDs of all the base stations in the same base station domain are different;
the clock of the base station corresponding to the clock beacon is an ID number × Tclk-Tsignal in the time-clock synchronization beacon data received by the clock synchronization beacon;
the new clock of each base station is (the current clock of each base station + the accumulated clock)/(the accumulated clock number + 1);
the accumulated clock is equal to the accumulated sum of the received clocks of the base stations corresponding to the clock beacons;
the accumulated clock number is equal to the received clock beacon number;
the tick break point is the clock of each base station + each base station ID × Tclk.
According to the present invention, there is provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method for wireless clock synchronization of a centerless base station as described in any one of the above.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention can realize the accurate synchronization of the clocks between the base stations in the Tsync time period.
2. The invention can solve the problems of low synchronization precision, easy occurrence of clock desynchronization after synchronization and the like in the prior art.
3. The invention can realize the dynamic division of the base station domain, and solves the problems of dynamic judgment, decomposition and combination of the minimum base station domain when the base station is dynamically increased, decreased or moved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
fig. 1 is a schematic diagram of a base station domain structure provided in embodiment 1 of the present invention.
Fig. 2 is a schematic diagram of a parameter relationship provided in embodiment 1 of the present invention.
Fig. 3 is a schematic flowchart of a clock beacon acquisition and synchronization logic according to embodiment 1 of the present invention.
Fig. 4 is a schematic diagram of a clock beacon transmission flow provided in embodiment 1 of the present invention.
Fig. 5 is a schematic logic flow diagram of the central server according to embodiment 1 of the present invention.
Fig. 6 is a schematic flow chart of the return data reception interrupt logic provided in embodiment 1 of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
The invention provides a wireless clock synchronization method of a centerless base station, which comprises the following steps:
base station domain division: dividing each base station to obtain divided base station domains;
and a base station domain clock synchronization step: and according to the divided base station domains, respectively distributing a base station ID and a clock synchronization parameter corresponding to each base station in the base station domains, and synchronizing the clock information of each base station in the base station domains.
Specifically, the base station domain dividing step includes any one or more of the following:
single base station domain division: dividing all base stations into a base station domain, and outputting the divided base station domains;
and an adjacent base station information acquisition step: acquiring adjacent base station list information uploaded by each base station;
base station domain dynamic partitioning: and dividing the base station domain according to the acquired adjacent base station list information of each base station, and outputting the divided base station domains.
Specifically, the clock synchronization parameters include: the method comprises the steps that the emitting period Tsync of a clock synchronization beacon, the unit time interval Tclk of the emitting of the clock synchronization beacon, the total time Tsignal required for emitting 1 complete clock synchronization beacon and being received and interpreted by another base station, and the number X of the Tsync periods which lasts for preset;
the Tsync is greater than N × Tclk, and the Tclk is Tsignal + a preset time protection interval;
the N is the number of the maximum available time slices of the time-sharing communication of the clock synchronization beacon on a communication channel;
specifically, the base station domain clock synchronization step includes:
a base station parameter obtaining step: respectively allocating a base station ID from the base station ID pool to each base station in the base station domain, and allocating corresponding clock synchronization parameters and communication channels of clock synchronization beacons to each base station;
synchronous beacon transmitting and receiving: according to the base station ID, the clock synchronization parameters and the communication channel of the clock synchronization beacon of each base station, in the transmission period Tsync of the clock synchronization beacon, enabling each base station to transmit the clock synchronization beacon with the base station ID at the interruption point of the clock beacon on the communication channel of the clock synchronization beacon, then continuously receiving the clock synchronization beacon transmitted by the adjacent base stations, and acquiring all the clock synchronization beacons received in the transmission period Tsync of the clock synchronization beacon;
a clock updating step: each base station acquires the clock and accumulated clock number of the base station corresponding to each clock beacon according to the current clock of each base station and all clock synchronization beacons received in the acquired transmission period Tsync of the clock synchronization beacon, calculates the new clock of each base station, sets the clock beacon interruption point of each base station according to the new clock of each base station, enters the transmission period Tsync of the next clock synchronization beacon, adds 1 to the number of the continuous Tsync periods, and judges whether the number of the continuous Tsync periods of each base station is greater than the preset number X of the continuous Tsync periods: if yes, entering a base station ID dynamic updating step to continue execution; otherwise, returning to the synchronous beacon transmitting and receiving step for continuous execution;
dynamic updating of base station ID: each base station sends the ID number of the base station to the central server, and the steps of transmitting and receiving the synchronous beacon are returned to be continuously executed;
the central server updates the base station ID: enabling the central server to judge whether the ID number of the base station is equal to 0 or not according to the received ID number of the base station: if the number is equal to 0, the central server randomly extracts an unallocated ID number from the ID pool of the base station and returns the ID number to the base station, and the step of returning data receiving interruption is carried out continuously; if not, the central server randomly extracts an unallocated ID number from the base station ID pool and returns the unallocated ID number to the base station, and the original base station ID number is put back to the base station ID pool, and the step of returning data receiving interruption is carried out continuously;
returning data receiving interruption step: and enabling each base station to update the ID number of the base station according to the new ID number of the base station returned from the central server, exiting the interruption after the updating is finished, and returning to the synchronous beacon transmitting and receiving step for continuous execution.
Specifically, the base station ID is an ID number with a numerical value between 1 and N, all ID numbers with numerical values between 1 and N form a base station ID pool, and the IDs of all base stations in the same base station domain are different;
the clock of the base station corresponding to the clock beacon is an ID number × Tclk-Tsignal in the time-clock synchronization beacon data received by the clock synchronization beacon;
the new clock of each base station is (the current clock of each base station + the accumulated clock)/(the accumulated clock number + 1);
the accumulated clock is equal to the accumulated sum of the received clocks of the base stations corresponding to the clock beacons;
the accumulated clock number is equal to the received clock beacon number;
the tick break point is the clock of each base station + each base station ID × Tclk.
The wireless clock synchronization system of the centerless base station can be realized by the step flow of the wireless clock synchronization method of the centerless base station. The person skilled in the art can understand the wireless clock synchronization method of the centerless base station as a preferred example of the wireless clock synchronization system of the centerless base station.
The invention provides a wireless clock synchronization system of a centerless base station, which comprises:
a base station domain division module: dividing each base station to obtain divided base station domains;
a base station domain clock synchronization module: and according to the divided base station domains, respectively distributing a base station ID and a clock synchronization parameter corresponding to each base station in the base station domains, and synchronizing the clock information of each base station in the base station domains.
Specifically, the base station domain partitioning module includes any one or more of the following:
a single base station domain division module: dividing all base stations into a base station domain, and outputting the divided base station domains;
an adjacent base station information acquisition module: acquiring adjacent base station list information uploaded by each base station;
a base station domain dynamic division module: and dividing the base station domain according to the acquired adjacent base station list information of each base station, and outputting the divided base station domains.
Specifically, the clock synchronization parameters include: the method comprises the steps that the emitting period Tsync of a clock synchronization beacon, the unit time interval Tclk of the emitting of the clock synchronization beacon, the total time Tsignal required for emitting 1 complete clock synchronization beacon and being received and interpreted by another base station, and the number X of the Tsync periods which lasts for preset;
the Tsync is greater than N × Tclk, and the Tclk is Tsignal + a preset time protection interval;
and N is the number of the maximum available time slices of time-sharing communication of the clock synchronization beacon on a communication channel.
Specifically, the base station domain clock synchronization module includes:
a base station parameter acquisition module: respectively allocating a base station ID from the base station ID pool to each base station in the base station domain, and allocating corresponding clock synchronization parameters and communication channels of clock synchronization beacons to each base station;
the synchronous beacon transmitting and receiving module: according to the distributed ID of each base station, clock synchronization parameters and communication channels of the clock synchronization beacons, in the transmission period Tsync of the clock synchronization beacons, enabling each base station to transmit the clock synchronization beacons with the ID of the base station at the interruption points of the clock beacons on the communication channels of the clock synchronization beacons, then continuously receiving the clock synchronization beacons transmitted by adjacent base stations, and acquiring all the clock synchronization beacons received in the transmission period Tsync of the clock synchronization beacons;
a clock update module: each base station acquires the clock and accumulated clock number of the base station corresponding to each clock beacon according to the current clock of each base station and all clock synchronization beacons received in the acquired transmission period Tsync of the clock synchronization beacon, calculates the new clock of each base station, sets the clock beacon interruption point of each base station according to the new clock of each base station, enters the transmission period Tsync of the next clock synchronization beacon, adds 1 to the number of the continuous Tsync periods, and judges whether the number of the continuous Tsync periods is greater than the preset number X of the continuous Tsync periods: if yes, triggering a base station ID dynamic updating module; otherwise, triggering the synchronous beacon transmitting and receiving module;
a base station ID dynamic updating module: each base station sends an ID number of the base station to a central server to trigger a synchronous beacon transmitting and receiving module;
the central server updates the base station ID module: enabling the central server to judge whether the ID number of the base station is equal to 0 or not according to the received ID number of the base station: if the number is equal to 0, the central server randomly extracts an unallocated ID number from the ID pool of the base station and returns the ID number to the base station, and a return data receiving interruption module is triggered; if not, the central server randomly extracts an unallocated ID number from the base station ID pool and returns the unallocated ID number to the base station, and the original base station ID number is put back to the base station ID pool, and a return data receiving interruption module is triggered;
a return data reception interrupt module: each base station updates the ID number of the base station according to the new ID number of the base station returned from the central server, exits from the interrupt after the updating is finished and triggers a synchronous beacon transmitting and receiving module;
the base station ID is an ID number with a numerical value between 1 and N, all the ID numbers with the numerical values between 1 and N form a base station ID pool, and the IDs of all the base stations in the same base station domain are different;
the clock of the base station corresponding to the clock beacon is an ID number × Tclk-Tsignal in the time-clock synchronization beacon data received by the clock synchronization beacon;
the new clock of each base station is (the current clock of each base station + the accumulated clock)/(the accumulated clock number + 1);
the accumulated clock is equal to the accumulated sum of the received clocks of the base stations corresponding to the clock beacons;
the accumulated clock number is equal to the received clock beacon number;
the tick break point is the clock of each base station + each base station ID × Tclk.
According to the present invention, there is provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method for wireless clock synchronization of a centerless base station as described in any one of the above.
The present invention will be described more specifically below with reference to preferred examples.
Example 1:
a wireless network system can have a plurality of wireless network base station domains (hereinafter referred to as "base station domains") with synchronous clocks, one base station domain has N base stations, N is more than or equal to 1 and less than or equal to N, and N is the number of the maximum available time slices of time-sharing communication of a clock synchronous beacon on a communication channel. A base station in a base station domain may be composed of 1 independent base station or a plurality of base stations directly or indirectly adjacent to each other, as shown in fig. 1, either independently (when n is 1) or adjacent to other base stations (when n >1), and the adjacent base stations may be adjacent to other base stations.
The base station is adjacent to another base station, that is, the base station can receive the clock synchronization beacon of another base station and can correctly extract information in the clock synchronization beacon, therefore, communication protocols of the clock synchronization beacons of the adjacent base stations need to be intercommunicated, work on the same channel, transmit in a time-sharing mode without mutual interference, and signals of the received clock synchronization beacons need to meet certain requirements on signal-to-noise ratio and signal strength.
Each base station calibrates its own clock according to the algorithm rule of the present invention by receiving the clock synchronization beacon of the adjacent base station. All base stations in one base station domain calibrate their clocks according to the same algorithm rule, and after a certain period, the aim of clock synchronization of all base stations in the same base station domain is gradually achieved, and the synchronization state is always kept.
A wireless network system has a central server responsible for dividing base station domains and authorizing base station access. The central server may add all the base stations to one base station domain, or dynamically partition the base station domain according to the information of the neighboring base station list periodically reported by each base station, and a logic flow diagram of the central server is shown in fig. 5.
And the default ID of one base station is 0, and the default ID is restored after each power failure. A base station joins a base station domain and needs to be authorized by a central server, parameters such as an ID number with a numerical value between 1 and N, a working channel of a clock synchronization beacon, a transmission period Tsync of the clock synchronization beacon, a unit time interval Tclk transmitted by the clock synchronization beacon, and all time Tsignal required for transmitting 1 complete clock synchronization beacon and being received and interpreted by another base station are obtained from the central server, then, the clock synchronization beacon signal is received on the working channel of the specified clock synchronization beacon, wherein Tsync is greater than N x Tclk, Tclk is Tsignal plus a certain time protection interval, and Tsignal numerical values need to be measured according to a specific implementation circuit. The parameter relationship is shown in fig. 2.
If ID >0, one base station calibrates its clock every Tsync time, and transmits a clock synchronization beacon with its ID at the time point of new clock + base station ID Tclk, and then continues to receive the clock synchronization beacon transmitted by the neighboring base station until the Tsync period is over. Each base station deduces the ID number Tclk-Tsignal in the time-clock synchronization beacon data received by the corresponding base station at the moment from each clock synchronization beacon data received in the Tsync time period, averages all the received base station clocks in the Tsync period with the own clock, takes the average value as a new clock of the own base station, and repeats the steps until all the base station clocks gradually converge and keep synchronous. The specific logic flow is shown in fig. 3, 4 and 6.
Two base station ids 1 and id2, if the clock of id1 is n Tclk faster than id2, and n is id2-id1, then the clock synchronization beacons of id1 and id2 base stations overlap and the clocks cannot be calibrated. To avoid this, the algorithm requires each base station to apply for updating its own ID to the central server every X Tsync periods. Each time updating is carried out, the base station firstly sends the self ID, and a new ID is obtained from the central server and is used for updating the self base station ID.
The central server receives the ID number request of the base station, if the existing ID of the base station is 0, the central server belongs to the initial request, and randomly extracts an ID number from an unallocated ID pool of the base station and returns the ID number to the base station; if the base station existing ID >0, the central server also randomly extracts an ID number from the unassigned base station ID pool, places the existing base station ID number back into the unassigned base station ID pool, and returns the newly extracted ID number to the base station.
The value of Tsync is influenced by the requirement of clock synchronization precision and the precision of a base station MCU external crystal oscillator. If the clock synchronization precision requirement is less than 100us, and the precision of the MCU external crystal oscillator is 25PPM, the clock deviation value of the base station per second can reach 25us, so the Tsync can not be more than 4 seconds, otherwise, the deviation correction is not in time. The value of N is limited by Tsync > N × Tclk, and the value of Tclk is limited by Tsignal, so that Tsignal is smaller, that is, the communication rate is higher (depending on the operating frequency, environment, protocol, MCU master frequency, etc. of the clock synchronization beacon), the value of N can be larger, and accordingly the number of base stations in one base station domain that can maintain clock synchronization is larger.
Since the new clock is (current clock of each base station + accumulated clock)/(accumulated clock count +1), the accumulated clock is equal to the accumulated sum of the clocks of the base stations corresponding to the received clock beacons, and the clock of the base station corresponding to the clock beacon is equal to the ID number × Tclk-Tsignal in the time-clock synchronization beacon data received by the clock synchronization beacon, these involve floating point operation, and the shorter the operation time is, the more accurate the clock synchronization of the base station is, therefore, the MCU scheme with the hardware accelerator for floating point operation, which has a high dominant frequency, should be selected as much as possible.
The base station clock synchronization algorithm can ensure accurate synchronization among base stations in the Tsync time period, but does not represent the approximate absolute value of the base station clock, and if the absolute value of the base station clock is to be calibrated, each base station can request the central server for clock synchronization by using a periodic ID updating request, and the part of the clock drift amount of each base station, which exceeds the Tsync, is synchronized with the clock of the central server.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (9)

1. A method for synchronizing wireless clocks of a centerless base station, comprising:
base station domain division: dividing each base station to obtain divided base station domains;
and a base station domain clock synchronization step: according to the divided base station domains, respectively distributing a base station ID and clock synchronization parameters corresponding to each base station in the base station domains, and synchronizing the clock information of each base station in the base station domains;
the base station domain clock synchronization step comprises:
a base station parameter obtaining step: respectively allocating a base station ID from the base station ID pool to each base station in the base station domain, and allocating corresponding clock synchronization parameters and communication channels of clock synchronization beacons to each base station;
synchronous beacon transmitting and receiving: according to the base station ID, the clock synchronization parameters and the communication channel of the clock synchronization beacon of each base station, in the transmission period Tsync of the clock synchronization beacon, enabling each base station to transmit the clock synchronization beacon with the base station ID at the interruption point of the clock beacon on the communication channel of the clock synchronization beacon, then continuously receiving the clock synchronization beacon transmitted by the adjacent base stations, and acquiring all the clock synchronization beacons received in the transmission period Tsync of the clock synchronization beacon;
a clock updating step: each base station acquires the clock and accumulated clock number of the base station corresponding to each clock beacon according to the current clock of each base station and all clock synchronization beacons received in the acquired transmission period Tsync of the clock synchronization beacon, calculates the new clock of each base station, sets the clock beacon interruption point of each base station according to the new clock of each base station, enters the transmission period Tsync of the next clock synchronization beacon, adds 1 to the number of the continuous Tsync periods, and judges whether the number of the continuous Tsync periods of each base station is greater than the preset number X of the continuous Tsync periods: if yes, entering a base station ID dynamic updating step to continue execution; otherwise, returning to the synchronous beacon transmitting and receiving step for continuous execution;
dynamic updating of base station ID: each base station sends the ID number of the base station to the central server, and the steps of transmitting and receiving the synchronous beacon are returned to be continuously executed;
the central server updates the base station ID: enabling the central server to judge whether the ID number of the base station is equal to 0 or not according to the received ID number of the base station: if the number is equal to 0, the central server randomly extracts an unallocated ID number from the ID pool of the base station and returns the ID number to the base station, and the step of returning data receiving interruption is carried out continuously; if not, the central server randomly extracts an unallocated ID number from the base station ID pool and returns the unallocated ID number to the base station, and the original base station ID number is put back to the base station ID pool, and the step of returning data receiving interruption is carried out continuously;
returning data receiving interruption step: and enabling each base station to update the ID number of the base station according to the new ID number of the base station returned from the central server, exiting the interruption after the updating is finished, and returning to the synchronous beacon transmitting and receiving step for continuous execution.
2. The method of claim 1, wherein the base station domain partitioning step comprises any one or more of:
single base station domain division: dividing all base stations into a base station domain, and outputting the divided base station domains;
base station domain dynamic partitioning: acquiring adjacent base station list information uploaded by each base station, dividing base station domains according to the acquired adjacent base station list information of each base station, and outputting the divided base station domains.
3. The method of claim 2, wherein the clock synchronization parameters comprise: the method comprises the steps that the emitting period Tsync of a clock synchronization beacon, the unit time interval Tclk of the emitting of the clock synchronization beacon, the total time Tsignal required for emitting 1 complete clock synchronization beacon and being received and interpreted by another base station, and the number X of the Tsync periods which lasts for preset;
the Tsync is greater than N × Tclk, and the Tclk is Tsignal + a preset time protection interval;
and N is the number of the maximum available time slices of time-sharing communication of the clock synchronization beacon on a communication channel.
4. The method of claim 1, wherein the base station ID is an ID number with a value between 1 and N, all ID numbers with values between 1 and N form a base station ID pool, and the base station IDs in the same base station domain are different;
the clock of the base station corresponding to the clock beacon is an ID number × Tclk-Tsignal in the time-clock synchronization beacon data received by the clock synchronization beacon;
the new clock of each base station is (the current clock of each base station + the accumulated clock)/(the accumulated clock number + 1);
the accumulated clock is equal to the accumulated sum of the received clocks of the base stations corresponding to the clock beacons;
the accumulated clock number is equal to the received clock beacon number;
the tick break point is the clock of each base station + each base station ID × Tclk.
5. A wireless clock synchronization system for a centerless base station, comprising:
a base station domain division module: dividing each base station to obtain divided base station domains;
a base station domain clock synchronization module: according to the divided base station domains, respectively distributing a base station ID and clock synchronization parameters corresponding to each base station in the base station domains, and synchronizing the clock information of each base station in the base station domains;
the base station domain clock synchronization module comprises:
a base station parameter acquisition module: respectively allocating a base station ID from the base station ID pool to each base station in the base station domain, and allocating corresponding clock synchronization parameters and communication channels of clock synchronization beacons to each base station;
the synchronous beacon transmitting and receiving module: according to the distributed ID of each base station, clock synchronization parameters and communication channels of the clock synchronization beacons, in the transmission period Tsync of the clock synchronization beacons, enabling each base station to transmit the clock synchronization beacons with the ID of the base station at the interruption points of the clock beacons on the communication channels of the clock synchronization beacons, then continuously receiving the clock synchronization beacons transmitted by adjacent base stations, and acquiring all the clock synchronization beacons received in the transmission period Tsync of the clock synchronization beacons;
a clock update module: each base station acquires the clock and accumulated clock number of the base station corresponding to each clock beacon according to the current clock of each base station and all clock synchronization beacons received in the acquired transmission period Tsync of the clock synchronization beacon, calculates the new clock of each base station, sets the clock beacon interruption point of each base station according to the new clock of each base station, enters the transmission period Tsync of the next clock synchronization beacon, adds 1 to the number of the continuous Tsync periods, and judges whether the number of the continuous Tsync periods is greater than the preset number X of the continuous Tsync periods: if yes, triggering a base station ID dynamic updating module; otherwise, triggering the synchronous beacon transmitting and receiving module;
a base station ID dynamic updating module: each base station sends an ID number of the base station to a central server to trigger a synchronous beacon transmitting and receiving module;
the central server updates the base station ID module: enabling the central server to judge whether the ID number of the base station is equal to 0 or not according to the received ID number of the base station: if the number is equal to 0, the central server randomly extracts an unallocated ID number from the ID pool of the base station and returns the ID number to the base station, and a return data receiving interruption module is triggered; if not, the central server randomly extracts an unallocated ID number from the base station ID pool and returns the unallocated ID number to the base station, and the original base station ID number is put back to the base station ID pool, and a return data receiving interruption module is triggered;
a return data reception interrupt module: and enabling each base station to update the ID number of the base station according to the new ID number of the base station returned from the central server, exiting the interruption after the updating is finished, and triggering the synchronous beacon transmitting and receiving module.
6. The system of claim 5, wherein the base station domain partitioning module comprises any one or more of:
a single base station domain division module: dividing all base stations into a base station domain, and outputting the divided base station domains;
a base station domain dynamic division module: acquiring adjacent base station list information uploaded by each base station, dividing base station domains according to the acquired adjacent base station list information of each base station, and outputting the divided base station domains.
7. The system of claim 6, wherein the clock synchronization parameters comprise: the method comprises the steps that the emitting period Tsync of a clock synchronization beacon, the unit time interval Tclk of the emitting of the clock synchronization beacon, the total time Tsignal required for emitting 1 complete clock synchronization beacon and being received and interpreted by another base station, and the number X of the Tsync periods which lasts for preset;
the Tsync is greater than N × Tclk, and the Tclk is Tsignal + a preset time protection interval;
and N is the number of the maximum available time slices of time-sharing communication of the clock synchronization beacon on a communication channel.
8. The system for wireless clock synchronization of a centerless base station of claim 5,
the base station ID is an ID number with a numerical value between 1 and N, all the ID numbers with the numerical values between 1 and N form a base station ID pool, and the IDs of all the base stations in the same base station domain are different;
the clock of the base station corresponding to the clock beacon is an ID number × Tclk-Tsignal in the time-clock synchronization beacon data received by the clock synchronization beacon;
the new clock of each base station is (the current clock of each base station + the accumulated clock)/(the accumulated clock number + 1);
the accumulated clock is equal to the accumulated sum of the received clocks of the base stations corresponding to the clock beacons;
the accumulated clock number is equal to the received clock beacon number;
the tick break point is the clock of each base station + each base station ID × Tclk.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method for wireless clock synchronization of a centerless base station of any of claims 1 to 4.
CN201811260538.0A 2018-10-26 2018-10-26 Wireless clock synchronization method, system and medium for centerless base station Active CN109067496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811260538.0A CN109067496B (en) 2018-10-26 2018-10-26 Wireless clock synchronization method, system and medium for centerless base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811260538.0A CN109067496B (en) 2018-10-26 2018-10-26 Wireless clock synchronization method, system and medium for centerless base station

Publications (2)

Publication Number Publication Date
CN109067496A CN109067496A (en) 2018-12-21
CN109067496B true CN109067496B (en) 2020-06-26

Family

ID=64767791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811260538.0A Active CN109067496B (en) 2018-10-26 2018-10-26 Wireless clock synchronization method, system and medium for centerless base station

Country Status (1)

Country Link
CN (1) CN109067496B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116723496A (en) * 2019-05-24 2023-09-08 阿里巴巴集团控股有限公司 Base station synchronization method
CN113645683B (en) * 2021-10-14 2021-12-24 昂科信息技术(上海)股份有限公司 Crystal oscillator self-adaptive clock synchronization method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652520A (en) * 2004-02-02 2005-08-10 华为技术有限公司 Distributed substation network combining method
JP2007159040A (en) * 2005-12-08 2007-06-21 Fujitsu Ltd Received frame synchronization method and receiving apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007147437A1 (en) * 2006-06-20 2007-12-27 Freescale Semiconductor, Inc. Method and apparatus for transmitting data in a flexray node
CN101252512B (en) * 2008-03-05 2012-05-16 中国科学院嘉兴无线传感网工程中心 Wireless sensing network communication scheduling method combined by division cluster and Mesh
CN103595494B (en) * 2013-11-28 2016-03-23 西安烽火电子科技有限责任公司 A kind of non-stop layer time division multiple access synchronous method being applicable to wireless self-networking

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652520A (en) * 2004-02-02 2005-08-10 华为技术有限公司 Distributed substation network combining method
JP2007159040A (en) * 2005-12-08 2007-06-21 Fujitsu Ltd Received frame synchronization method and receiving apparatus

Also Published As

Publication number Publication date
CN109067496A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
US10608807B2 (en) Systems and methods of clock synchronization between devices on a network
CN106851696B (en) UWB multi-label multi-base station scheduling system based on wireless clock synchronization
US10582434B2 (en) Device and method for deriving alignment information
EP3182771B1 (en) Systems and methods to synchronize wireless devices in the presence of a fmcw radio altimeter
US9602270B2 (en) Clock drift compensation in a time synchronous channel hopping network
EP2200344A2 (en) Wireless network protocol for a hearing system
JP4952782B2 (en) Wireless communication apparatus, mobile wireless communication control method, and wireless station
CN109067496B (en) Wireless clock synchronization method, system and medium for centerless base station
CN111818614B (en) UWB-based dynamic distributed ad hoc network scheduling method and system
CN105323054A (en) Clock synchronization method and device
CN103999387A (en) Sync interval determination
CN100581094C (en) Network clock synchronizing method for short distance radio communication network
CN108039933A (en) A kind of local Internet of Things time precise synchronization method
CN106162856A (en) A kind of node synchronization method in wireless Ad Hoc network
US8934596B2 (en) Methods and apparatuses for synchronization of wireless devices in wireless networks
CN106797622A (en) Stochastic accessing passage is configured
CN104955146B (en) A kind of method for synchronizing time of LTE DMO terminals
CN110831144A (en) Communication method and device
CN109891968B (en) Resource allocation method, terminal equipment and base station
KR102328672B1 (en) Method And System for Providing Hybrid Synchronization
US10887856B2 (en) Adaptive mesh synchronized time network
KR101593822B1 (en) Apparatus for providing communication service, control method thereof, recording medium for recording program for executing the control method, application saved in the recording medium for executing the control method being combined with hardware
EP4329220A1 (en) Method and apparatus for controlling system to transmit signal, and storage medium and electronic apparatus
US8619754B2 (en) Robust channel allocation method for RF communication systems
CN107659368B (en) A kind of synchronizer and synchronous method of handheld communication devices

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