CN109699068A - A kind of base station synchronization method and device - Google Patents

A kind of base station synchronization method and device Download PDF

Info

Publication number
CN109699068A
CN109699068A CN201710985486.2A CN201710985486A CN109699068A CN 109699068 A CN109699068 A CN 109699068A CN 201710985486 A CN201710985486 A CN 201710985486A CN 109699068 A CN109699068 A CN 109699068A
Authority
CN
China
Prior art keywords
base station
time difference
time
system time
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710985486.2A
Other languages
Chinese (zh)
Other versions
CN109699068B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710985486.2A priority Critical patent/CN109699068B/en
Priority to TW107128739A priority patent/TW201918100A/en
Priority to PCT/CN2018/109549 priority patent/WO2019076214A1/en
Publication of CN109699068A publication Critical patent/CN109699068A/en
Application granted granted Critical
Publication of CN109699068B publication Critical patent/CN109699068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • 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
    • 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
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/003Arrangements to increase tolerance to errors in transmission or reception timing

Landscapes

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

Abstract

The embodiment of the present application provides a kind of base station synchronization method and device, which comprises server determines first base station;Server receives the synchronous response frame that the second base station is sent;Synchronous response frame includes that the receiving time that first base station sends the sending time stamp of sync-request frame and the second base station receives sync-request frame is stabbed;Server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates the first system time difference of first base station and fiducial time, and calculate the second system time difference of the second base station and the fiducial time;The first system time difference is sent to corresponding first base station by server, and the second system time difference is sent to corresponding second base station;First base station is used to carry out time adjustment according to the corresponding the first system time difference;Second base station is used to carry out time adjustment according to the corresponding second system time difference.In the embodiment of the present application, each base station in the whole network can be realized synchronous with fiducial time according to the corresponding system time difference.

Description

A kind of base station synchronization method and device
Technical field
This application involves fields of communication technology, more particularly to a kind of base station synchronization method and a kind of base station synchronization device.
Background technique
Technology of Internet of things is the third time information technology revolution after computer and internet, has real-time and interaction The advantages that property, multiple necks such as city management, digital home, location navigation, logistics management, security system have been widely used in it Domain.Wherein, LoRa is a kind of overlength distance transmission plan based on spread spectrum in Internet of Things, has long transmission distance, low function The characteristics such as consumption, multinode and low cost.
In existing data transmission method, terminal, base station and server are generally included in LoRa network.
For the terminal under Class B-mode, base station can timed periodic ground downlink broadcast beacon wireless frame beacon Frame, terminal are calibrated the time of oneself using beacon wireless frame, and calculate the time slot for oneself receiving downstream message with this time. But due to crystal oscillator offset etc. factors, the time error of base station can add up with the time, cause the system time of each base station without Method keeps synchronizing.It cannot be guaranteed that the synchronization that the downlink beacon wireless frame of each base station is sent.
In order to guarantee that the system time of each base station keeps synchronizing, in the prior art, base station needs the additional setting whole world Positioning system (Global Positioning System, GPS), by using the time of the ball positioning system as the base station System time, to realize the time synchronization of each base station.But this mode, base station need to configure additional global positioning system, The cost of meeting improve data transfer;And the signal of global positioning system is also easy to be limited by local environment, for example is built or set Wood stops, weather interferes etc., to influence the system time synchronization between each base station.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present application and overcomes the above problem or at least partly in order to provide one kind A kind of base station synchronization method and a kind of corresponding base station synchronization device to solve the above problems.
To solve the above-mentioned problems, the embodiment of the present application discloses a kind of base station synchronization method, comprising:
Server determines first base station;
The server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by second base station root It is generated according to the sync-request frame that first base station is sent;The synchronous response frame includes that the first base station sends the synchronization request The sending time stamp of frame and second base station receive the receiving time stamp of the sync-request frame;
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates the first base station and base The first system time difference between punctual, and calculate the second system time difference of second base station and the fiducial time;
The first system time difference is sent to corresponding first base station by the server, and the second system time difference is sent out It send to corresponding second base station;The first base station is used to carry out time adjustment according to the corresponding the first system time difference;Institute The second base station is stated for carrying out time adjustment according to the corresponding second system time difference.
Preferably, the server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates described first The first system time difference of base station and fiducial time, and calculate the second system time difference of second base station and the fiducial time The step of include:
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, determines measurement transmission duration;
The server calculates the measurement difference of the real transmission duration of the measurement transmission duration and preset radio frames, Using the measurement difference as the system time difference of the first base station and second base station;
The server calculates institute according to fiducial time and the system time difference of the first base station and second base station It states the first system time difference of first base station Yu the fiducial time, and calculates the of second base station and the fiducial time The two system time difference.
Preferably, when the server is according to fiducial time and the first base station and the system of second base station Difference calculates the first system time difference of the first base station Yu the fiducial time, and calculates second base station and the base The step of second system time difference between punctual includes:
The server chooses the system time of first base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as second base station and institute State the second system time difference of fiducial time.
Preferably, when the server is according to fiducial time and the first base station and the system of second base station Difference calculates the first system time difference of the first base station Yu the fiducial time, and calculates second base station and the base The step of second system time difference between punctual includes:
The server chooses the system time of the second base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as the first base station and institute State the first system time difference of fiducial time.
Preferably, when the server is according to fiducial time and the first base station and the system of second base station Difference calculates the first system time difference of the first base station Yu the fiducial time, and calculates second base station and the base The step of second system time difference between punctual includes:
The server chooses the time of clock reference equipment as fiducial time;
The server calculates the first system time difference of the first base station Yu the fiducial time;
When the server is according to the first base station and the system time difference and the first system of second base station Difference calculates the second system time difference of second base station and the fiducial time.
Preferably, when the server is according to fiducial time and the first base station and the system of second base station Difference calculates the first system time difference of the first base station Yu the fiducial time, and calculates second base station and the base The step of second system time difference between punctual includes:
The server chooses the time of clock reference equipment as fiducial time;
The server calculates the second system time difference of second base station Yu the fiducial time;
When the server is according to the first base station and the system time difference and the second system of second base station Difference calculates the first system time difference of the first base station and the fiducial time.
Preferably, further includes:
The server sends enabled instruction to first base station;The first base station is used for according to the enabled instruction, to Second base station sends sync-request frame.
Preferably, the step of server determines first base station include:
In first time synchronizing, all basic station over network is determined as first base station by the server.
Preferably, the step of server determines first base station further include:
Between at twice in synchronization process, the server from all basic station over network selected part base station as the first base It stands.
Preferably, the step of server determines first base station further include:
In time synchronizing between at twice after synchronization process, the server will be at last time synchronization The second base station during reason, is determined as third base station;
The server will receive the sync-request frame that the third base station is sent during first synchronization process Base station is determined as first base station.
The embodiment of the present application also discloses a kind of base station synchronization method, comprising:
Server determines first base station;
The server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by second base station root It is generated according to the sync-request frame that first base station is sent;
The server uses the synchronous response frame, determine the first base station system time and fiducial time the The one system time difference, and determine the system time of second base station and the second system time difference of the fiducial time;
The first system time difference is sent to corresponding first base station by the server, and the second system time difference is sent out It send to corresponding second base station;The first base station is used to carry out time adjustment according to the corresponding the first system time difference;Institute The second base station is stated for carrying out time adjustment according to the corresponding second system time difference.
Preferably, the synchronous response frame includes the sending time stamp that the first base station sends the sync-request frame, And second base station receives the receiving time stamp of the sync-request frame;The server uses the synchronous response frame, Determine the system time of the first base station and the first system time difference of fiducial time, and the system for determining second base station The step of second system time difference of time and fiducial time includes:
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, determines measurement transmission duration;
The server calculates the measurement difference of the real transmission duration of the measurement transmission duration and preset radio frames, Using the measurement difference as the system time difference of the first base station and second base station;
The server calculates institute according to fiducial time and the system time difference of the first base station and second base station It states the first system time difference of first base station Yu the fiducial time, and calculates the of second base station and the fiducial time The two system time difference.
Preferably, when the server is according to fiducial time and the first base station and the system of second base station Difference calculates the first system time difference of the first base station Yu the fiducial time, and calculates second base station and the base The step of second system time difference between punctual includes:
The server chooses the system time of first base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as second base station and institute State the second system time difference of fiducial time.
Preferably, when the server is according to fiducial time and the first base station and the system of second base station Difference calculates the first system time difference of the first base station Yu the fiducial time, and calculates second base station and the base The step of second system time difference between punctual includes:
The server chooses the system time of the second base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as the first base station and institute State the first system time difference of fiducial time.
Preferably, when the server is according to fiducial time and the first base station and the system of second base station Difference calculates the first system time difference of the first base station Yu the fiducial time, and calculates second base station and the base The step of second system time difference between punctual includes:
The server chooses the time of clock reference equipment as fiducial time;
The server calculates the first system time difference of the first base station Yu the fiducial time;
When the server is according to the first base station and the system time difference and the first system of second base station Difference calculates the second system time difference of second base station and the fiducial time.
Preferably, when the server is according to fiducial time and the first base station and the system of second base station Difference calculates the first system time difference of the first base station Yu the fiducial time, and calculates second base station and the base The step of second system time difference between punctual includes:
The server chooses the time of clock reference equipment as fiducial time;
The server calculates the second system time difference of second base station Yu the fiducial time;
When the server is according to the first base station and the system time difference and the second system of second base station Difference calculates the first system time difference of the first base station and the fiducial time.
Preferably, further includes:
The server sends enabled instruction to first base station;The first base station is used for according to the enabled instruction, to Second base station sends sync-request frame.
Preferably, the step of server determines first base station include:
In first time synchronizing, all basic station over network is determined as first base station by the server.
Preferably, the step of server determines first base station further include:
Between at twice in synchronization process, the server from all basic station over network selected part base station as the first base It stands.
Preferably, the step of server determines first base station further include:
In time synchronizing between at twice after synchronization process, the server will be at last time synchronization The second base station during reason, is determined as third base station;
The server will receive the sync-request frame that the third base station is sent during first synchronization process Base station is determined as first base station.
The embodiment of the present application also discloses a kind of base station synchronization method, comprising:
Server determines first base station;
The server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by second base station root It is generated according to the sync-request frame that first base station is sent;The synchronous response frame includes that the first base station sends the synchronization request The sending time stamp of frame and second base station receive the receiving time stamp of the sync-request frame;
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates the first base station and base The first system time difference between punctual;
The first system time difference is sent to corresponding first base station by the server;The first base station is used for basis The corresponding the first system time difference carries out time adjustment.
Preferably, the server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates described first The step of the first system time difference of base station and fiducial time includes:
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, determines measurement transmission duration;
The server calculates the measurement difference of the real transmission duration of the measurement transmission duration and preset radio frames, Using the measurement difference as the system time difference of the first base station and second base station;
The server calculates institute according to fiducial time and the system time difference of the first base station and second base station State the first system time difference of first base station Yu the fiducial time.
Preferably, when the server is according to fiducial time and the first base station and the system of second base station Difference, the step of calculating the first system time difference of the first base station with the fiducial time include:
The server chooses the system time of the second base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as the first base station and institute State the first system time difference of fiducial time.
The embodiment of the present application also discloses a kind of base station synchronization method, comprising:
Server determines first base station;
The server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by second base station root It is generated according to the sync-request frame that first base station is sent;The synchronous response frame includes that the first base station sends the synchronization request The sending time stamp of frame and second base station receive the receiving time stamp of the sync-request frame;
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates second base station and institute State the second system time difference of fiducial time;
The second system time difference is sent to corresponding second base station by the server;Second base station is used for basis The corresponding second system time difference carries out time adjustment.
Preferably, the server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates described second The step of base station and the second system time difference of the fiducial time includes:
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, determines measurement transmission duration;
The server calculates the measurement difference of the real transmission duration of the measurement transmission duration and preset radio frames, Using the measurement difference as the system time difference of the first base station and second base station;
The server calculates institute according to fiducial time and the system time difference of the first base station and second base station State the second system time difference of the second base station Yu the fiducial time.
Preferably, when the server is according to fiducial time and the first base station and the system of second base station Difference, the step of calculating second base station and the second system time difference of the fiducial time include:
The server chooses the system time of first base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as second base station and institute State the second system time difference of fiducial time.
The embodiment of the present application also discloses a kind of base station synchronization method, comprising:
First base station sends sync-request frame to the second base station;Second base station be used for according to the sync-request frame to The server sends synchronous response frame;The server is used to determine the first base station according to the synchronous response frame The first system time difference of system time and fiducial time;
The first base station receives the first system time difference that the server is sent;
The first base station uses the first system time difference, carries out time adjustment.
Preferably, the first base station to the second base station send sync-request frame the step of include:
First base station receives the enabled instruction that server is sent,
The first base station sends sync-request frame according to the enabled instruction, to the second base station.
Preferably, the first base station use the first system time difference, carry out time adjustment the step of include:
The first base station use the first system time difference, adjust local system time, or, adjustment send beacon without The time of line frame beacon.
The embodiment of the present application also discloses a kind of base station synchronization method, comprising:
Second base station receives the sync-request frame that first base station is sent;
Second base station sends synchronous response frame to server according to the sync-request frame;The server is used for root According to the synchronous response frame, the system time of second base station and the second system time difference of fiducial time are determined;
Second base station receives the second system time difference that the server is sent;
Second base station uses the second system time difference, carries out time adjustment.
Preferably, second base station uses the second system time difference, carries out the step of time adjustment is handled and includes:
Second base station use the second system time difference, adjust local system time, or, adjustment send beacon without The time of line frame beacon.
The embodiment of the present application also discloses a kind of base station synchronization device, comprising:
Positioned at the first base station determining module of server, for determining first base station;
Positioned at the server sync acknowledgement frame receiving module, for receiving the synchronous response frame of the second base station transmission;Institute It states synchronous response frame and is generated by second base station according to the sync-request frame that first base station is sent;The synchronous response frame includes The first base station sends the sending time stamp of the sync-request frame and second base station receives the sync-request frame Receiving time stamp;
Positioned at the system time difference computing module of the server, for being stabbed and being received according to the sending time of sync-request frame Timestamp calculates the first system time difference of the first base station and fiducial time, and calculates second base station and the base The second system time difference between punctual;
Positioned at the system time difference sending module of the server, for the first system time difference to be sent to corresponding The second system time difference is sent to corresponding second base station by one base station;The first base station is used for according to corresponding The first system time difference carries out time adjustment;Second base station is used to carry out time tune according to the corresponding second system time difference It is whole.
Preferably, the system time difference computing module includes:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, really Fixed measurement transmission duration;
The time difference determines submodule between standing, when for calculating the real transmission of the measurement transmission duration and preset radio frames Long measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, for being according to fiducial time and the first base station and second base station It unites the time difference, calculates the first system time difference of the first base station Yu the fiducial time, and calculate second base station and institute State the second system time difference of fiducial time.
Preferably, the reference time difference determines that submodule includes:
First fiducial time selection unit, for choosing the system time of first base station as fiducial time;
First reference time difference determination unit, for by the system time difference of the first base station and second base station, as The second system time difference of second base station and the fiducial time.
Preferably, the reference time difference determines that submodule includes:
Second fiducial time selection unit, for choosing the system time of the second base station as fiducial time;
Second reference time difference determination unit, for by the system time difference of the first base station and second base station, as The first system time difference of the first base station and the fiducial time.
Preferably, the reference time difference determines that submodule includes:
Third fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
Third reference time difference determination unit, when for calculating the first system of the first base station and the fiducial time Difference;
4th reference time difference determination unit, for the system time difference according to the first base station and second base station, with And the first system time difference calculates the second system time difference of second base station Yu the fiducial time.
Preferably, the reference time difference determines that submodule includes:
4th fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
5th reference time difference determination unit, when for calculating the second system of second base station and the fiducial time Difference;
6th reference time difference determination unit, for the system time difference according to the first base station and second base station, with And the second system time difference calculates the first system time difference of the first base station Yu the fiducial time.
Preferably, further includes:
Positioned at the enabled instruction sending module of the server, for sending enabled instruction to first base station;Described first Base station is used for according to the enabled instruction, sends sync-request frame to the second base station.
Preferably, the first base station determining module includes:
First determines submodule, and in first time synchronizing, all basic station over network is determined as the by the server One base station.
Preferably, the first base station determining module further include:
Second determines submodule, and between being used at twice in synchronization process, selected part base station is made from all basic station over network For first base station.
Preferably, the first base station determining module further include:
Third base station determines submodule, will be upper in the time synchronizing after synchronization process between at twice The second base station during time synchronizing, is determined as third base station;
Third determines submodule, for that will receive the same of the third base station transmission during first synchronization process The base station for walking claim frame, is determined as first base station.
The embodiment of the present application also discloses a kind of base station synchronization device, comprising:
Positioned at the first base station determining module of server, for determining first base station;
Positioned at the synchronous response frame receiving module of the server, for receiving the synchronous response frame of the second base station transmission; The synchronous response frame is generated by second base station according to the sync-request frame that first base station is sent;
Described first is determined for using the synchronous response frame positioned at the system time difference computing module of the server The system time of base station and the first system time difference of fiducial time, and determine the system time and the base of second base station The second system time difference between punctual;
Positioned at the system time difference sending module of the server, for the first system time difference to be sent to corresponding The second system time difference is sent to corresponding second base station by one base station;The first base station is used for according to corresponding The first system time difference carries out time adjustment;Second base station is used to carry out time tune according to the corresponding second system time difference It is whole.
Preferably, the synchronous response frame includes the sending time stamp that the first base station sends the sync-request frame, And second base station receives the receiving time stamp of the sync-request frame;The system time difference computing module includes:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, really Fixed measurement transmission duration;
The time difference determines submodule between standing, when for calculating the real transmission of the measurement transmission duration and preset radio frames Long measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, for being according to fiducial time and the first base station and second base station It unites the time difference, calculates the first system time difference of the first base station Yu the fiducial time, and calculate second base station and institute State the second system time difference of fiducial time.
Preferably, the reference time difference determines that submodule includes:
First fiducial time selection unit, for choosing the system time of first base station as fiducial time;
First reference time difference determination unit, for by the system time difference of the first base station and second base station, as The second system time difference of second base station and the fiducial time.
Preferably, the reference time difference determines that submodule includes:
Second fiducial time selection unit, for choosing the system time of the second base station as fiducial time;
Second reference time difference determination unit, for by the system time difference of the first base station and second base station, as The first system time difference of the first base station and the fiducial time.
Preferably, the reference time difference determines that submodule includes:
Third fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
Third reference time difference determination unit, when for calculating the first system of the first base station and the fiducial time Difference;
4th reference time difference determination unit, for the system time difference according to the first base station and second base station, with And the first system time difference calculates the second system time difference of second base station Yu the fiducial time.
Preferably, the reference time difference determines that submodule includes:
4th fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
5th reference time difference determination unit, when for calculating the second system of second base station and the fiducial time Difference;
6th reference time difference determination unit, for the system time difference according to the first base station and second base station, with And the second system time difference calculates the first system time difference of the first base station Yu the fiducial time.
Preferably, further includes:
Positioned at the enabled instruction sending module of the server, for sending enabled instruction to first base station;Described first Base station is used for according to the enabled instruction, sends sync-request frame to the second base station.
Preferably, the first base station determining module includes:
First determines submodule, in first time synchronizing, all basic station over network to be determined as first base station.
Preferably, the first base station determining module further include:
Second determines submodule, and between being used at twice in synchronization process, selected part base station is made from all basic station over network For first base station.
Preferably, the first base station determining module further include:
Third base station determines submodule, will be upper in the time synchronizing after synchronization process between at twice The second base station during time synchronizing, is determined as third base station;
Third determines submodule, for that will receive the same of the third base station transmission during first synchronization process The base station for walking claim frame, is determined as first base station.
The embodiment of the present application also discloses a kind of base station synchronization device, comprising:
Positioned at the first base station determining module of server, for determining first base station;
Positioned at the server sync acknowledgement frame receiving module, for receiving the synchronous response frame of the second base station transmission;Institute It states synchronous response frame and is generated by second base station according to the sync-request frame that first base station is sent;The synchronous response frame includes The first base station sends the sending time stamp of the sync-request frame and second base station receives the sync-request frame Receiving time stamp;
Positioned at the system time difference computing module of the server, for being stabbed and being received according to the sending time of sync-request frame Timestamp calculates the first system time difference of the first base station and fiducial time;
Positioned at the system time difference sending module of the server, for the first system time difference to be sent to corresponding One base station;The first base station is used to carry out time adjustment according to the corresponding the first system time difference.
Preferably, the system time difference computing module includes:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, really Fixed measurement transmission duration;
The time difference determines submodule between standing, when for calculating the real transmission of the measurement transmission duration and preset radio frames Long measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, for being according to fiducial time and the first base station and second base station It unites the time difference, calculates the first system time difference of the first base station Yu the fiducial time.
Preferably, the reference time difference determines that submodule includes:
Fiducial time selection unit, for choosing the system time of the second base station as fiducial time;
Reference time difference determination unit, for by the system time difference of the first base station and second base station, as described The first system time difference of first base station and the fiducial time.
The embodiment of the present application also discloses a kind of base station synchronization device, comprising:
Positioned at the first base station determining module of server, for determining first base station;
Positioned at the server sync acknowledgement frame receiving module, for receiving the synchronous response frame of the second base station transmission;Institute It states synchronous response frame and is generated by second base station according to the sync-request frame that first base station is sent;The synchronous response frame includes The first base station sends the sending time stamp of the sync-request frame and second base station receives the sync-request frame Receiving time stamp;
Positioned at the system time difference computing module of the server, for being stabbed and being received according to the sending time of sync-request frame Timestamp calculates the second system time difference of second base station and the fiducial time;
Positioned at the system time difference sending module of the server, for the second system time difference to be sent to corresponding Two base stations;Second base station is used to carry out time adjustment according to the corresponding second system time difference.
Preferably, the system time difference computing module includes:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, really Fixed measurement transmission duration;
The time difference determines submodule between standing, when for calculating the real transmission of the measurement transmission duration and preset radio frames Long measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, for being according to fiducial time and the first base station and second base station It unites the time difference, calculates the second system time difference of second base station and the fiducial time.
Preferably, the reference time difference determines that submodule includes:
Fiducial time selection unit, for choosing the system time of first base station as fiducial time;
Reference time difference determination unit, for by the system time difference of the first base station and second base station, as described The second system time difference of second base station and the fiducial time.
The embodiment of the present application also discloses a kind of base station synchronization device, comprising:
Positioned at the sync-request frame sending module of first base station, for sending sync-request frame to the second base station;Described Two base stations are used to send synchronous response frame to the server according to the sync-request frame;The server is used for according to Synchronous response frame determines the system time of the first base station and the first system time difference of fiducial time;
Positioned at the system time difference receiving module of the first base station, for receiving first system of the server transmission It unites the time difference;
First time positioned at the first base station adjusts module, for using the first system time difference, carries out the time Adjustment.
Preferably, the sync-request frame sending module includes:
Enabled instruction receiving submodule, for receiving the enabled instruction of server transmission,
Sync-request frame sending submodule, for sending sync-request frame to the second base station according to the enabled instruction.
Preferably, the first time adjustment module includes:
First time adjusting submodule adjusts local system time, or, adjusting for using the first system time difference It haircuts to deliver letters and marks the time of radio frames beacon.
The embodiment of the present application also discloses a kind of base station synchronization device, comprising:
Sync-request frame receiving module positioned at the second base station, for receiving the sync-request frame of first base station transmission;
Synchronous response frame sending module positioned at second base station, for being sent out according to the sync-request frame to server Send synchronous response frame;The server is used to determine the system time and base of second base station according to the synchronous response frame The second system time difference between punctual;
Second system time difference receiving module positioned at second base station, described for receiving that the server sends The two system time difference;
The second time regulating module positioned at second base station carries out the time for using the second system time difference Adjustment.
Preferably, second time regulating module includes:
Second time adjusting submodule adjusts local system time, or, adjusting for using the second system time difference It haircuts to deliver letters and marks the time of radio frames beacon.
The embodiment of the present application also discloses a kind of device, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that described device executes one or more method as described above.
The embodiment of the present application also discloses one or more machine readable medias, is stored thereon with instruction, when by one or When multiple processors execute, so that device executes one or more method as described above.
The embodiment of the present application includes the following advantages:
In the embodiment of the present application, each base station in the whole network can be according to the corresponding system time difference, realization and benchmark The synchronization of time.And the synchronous method of the embodiment of the present application does not depend on the time service of global positioning system, therefore, has both avoided each The problem of possible data transmission cost of global positioning system increases is arranged in base station, decreases because each base station can not be accurate It receives and is difficult to the problem of reliably carrying out data transmission caused by positioning signal, that is to say, reduce data transmission cost, improve The reliability of data transmission.
Each base station can adjust local system time according to the corresponding system time difference, to guarantee the time of each base station It is synchronous.Or each base station can adjust the time for sending beacon wireless frame beacon, to guarantee according to the corresponding system time difference The synchronization of beacon wireless frame beacon is sent between each base station.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of base station synchronization method embodiment 1 of the application;
Fig. 2 is a kind of step flow chart of base station synchronization method embodiment 2 of the application;
Fig. 3 is the schematic diagram of first time synchronizing in the embodiment of the present application;
Fig. 4 is the time synchronizing schematic diagram in the embodiment of the present application after first time synchronizing;
Fig. 5 is a kind of step flow chart of base station synchronization method embodiment 3 of the application;
Fig. 6 is a kind of step flow chart of base station synchronization method embodiment 4 of the application;
Fig. 7 is a kind of step flow chart of base station synchronization method embodiment 5 of the application;
Fig. 8 is a kind of step flow chart of base station synchronization method embodiment 6 of the application;
Fig. 9 is a kind of step flow chart of base station synchronization method embodiment 7 of the application;
Figure 10 is a kind of step flow chart of base station synchronization method embodiment 8 of the application;
Figure 11 is a kind of structural block diagram of base station synchronization Installation practice 1 of the application;
Figure 12 is a kind of structural block diagram of base station synchronization Installation practice 2 of the application;
Figure 13 is a kind of structural block diagram of base station synchronization Installation practice 3 of the application;
Figure 14 is a kind of structural block diagram of base station synchronization Installation practice 4 of the application;
Figure 15 is a kind of structural block diagram of base station synchronization Installation practice 5 of the application;
Figure 16 is a kind of structural block diagram of base station synchronization Installation practice 6 of the application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.
LoRa network is made of terminal node, base-station node and server.Terminal has LoRa network-connectivity, and connects Enter the LoRa network.According to the difference for the application scenarios that the LoRa network is disposed, which may include that different electronics is set It is standby, for example, the terminal may include intelligent electric meter when the LoRa network application is in city management;It is answered in the LoRa network When in digital home, which may include various intelligent appliances etc..
Base station is also known as gateway or concentrator in LoRa network, has and is wirelessly connected aggregation feature, including terminal mentions For accessing the entrance of LoRa network, the data from server or terminal are forwarded, realize the terminal and the server it Between data interaction.Certainly, base station also can pass through transmission nothing with other base stations in the signal cover in the base station The mode of line frame carries out data interaction.
Server may include a server or server cluster, for according to the number got from base station or terminal According to progress business processing, and the operating mode and working condition of the base station or the terminal are controlled.
Referring to Fig.1, a kind of step flow chart of base station synchronization method embodiment 1 of the application is shown, specifically can wrap Include following steps:
Step 101, server determines first base station;
In LoRa network, all basic station over network is all connect with server.
In the embodiment of the present application, when server needs to carry out time synchronizing to base station, server is first from complete Net selected section or using whole base stations as first base station in base station.
Step 102, the server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by described Two base stations are generated according to the sync-request frame that first base station is sent;
First base station sends sync-request frame to the second base station by LoRa channel.Second base station is receiving synchronization request After frame, synchronous response frame is generated, and send the synchronous response frame to server.
In the embodiment of the present application, the sync-request frame is radio frames.The synchronous response frame can be radio frames, It can be wired frame.
In the embodiment of the present application, same second base station can receive the synchronization request that multiple first base stations are sent Frame.Second base station is directed to each sync-request frame, generates a synchronous response frame, and the synchronous response frame is sent to service Device.
Step 103, the server uses the synchronous response frame, determines the system time and benchmark of the first base station The first system time difference of time, and determine system time and the second system time difference of fiducial time of second base station;
In the embodiment of the present application, server can receive the synchronous response frame that multiple second base stations are sent.Server For each synchronous response frame, the system time of corresponding first base station and the first system time difference of fiducial time are determined, with And determine system time and the second system time difference of fiducial time of corresponding second base station.
Fiducial time can be the system time of multiple first base stations and one of base station in multiple second base stations.When After the system time difference for determining one of base station and fiducial time, so that it may according to the system time difference between each base station, calculate To the system time difference of each base station and fiducial time.
For example, LoRa network includes: base station 1, base station 2, base station 3 and server.Base station 1 and base station 2 are all sent out to base station 3 Sync-request frame is sent.
Base station 3 generates the synchronous response frame of a sync-request frame for base station 1 and one is directed to the same of base station 2 Walk the synchronous response frame of claim frame.
Server can be chosen from the system time of the system time of the system time of base station 1 or base station 2 or base station 3 One system time is as fiducial time.
If server selects the system time of base station 1 that can be sent according to base station 3 as fiducial time, server For the synchronous response frame of the sync-request frame of base station 1, when the system time and the second system of fiducial time of calculation base station 3 Difference.Since the system time of base station 1 is fiducial time, i.e. the first system time difference of the system time of base station 1 and fiducial time It is 0.
The synchronous response frame for the sync-request frame for base station 2 that server can be sent according to base station 3, calculation base station 2 With the system time difference of base station 3, then according to the system time difference of base station 3 and fiducial time, the first of calculation base station 2 and fiducial time The system time difference.
Step 104, the first system time difference is sent to corresponding first base station by the server, by second system The system time difference is sent to corresponding second base station;The first base station is used to carry out the time according to the corresponding the first system time difference Adjustment;Second base station is used to carry out time adjustment according to the corresponding second system time difference.
In the embodiment of the present application, server sends the system time difference of each base station and fiducial time to corresponding each A base station.Each base station can carry out time adjustment according to the corresponding system time difference.Time adjustment may include: that adjustment is local System time, alternatively, adjusting the time for sending beacon wireless frame beacon to the terminal of Class B-mode.
For example, when base station 1 is aware of the system time difference of it and fiducial time, base station 1 can choose the local system of adjustment Time then with revised system time come the sending time of mouse beacon radio frames beacon, or does not modify local System time, but directly with the system time of oneself plus the system time difference come mouse beacon radio frames beacon transmission when Between.
In the embodiment of the present application, each base station in the whole network can be according to the corresponding system time difference, realization and benchmark The synchronization of time.And the synchronous method of the embodiment of the present application does not depend on the time service of global positioning system, therefore, has both avoided each The problem of possible data transmission cost of global positioning system increases is arranged in base station, decreases because each base station can not be accurate It receives and is difficult to the problem of reliably carrying out data transmission caused by positioning signal, that is to say, reduce data transmission cost, improve The reliability of data transmission.
Each base station can adjust local system time according to the corresponding system time difference, to guarantee the time of each base station It is synchronous.Or each base station can adjust the time for sending beacon wireless frame beacon, to guarantee according to the corresponding system time difference The synchronization of beacon wireless frame beacon is sent between each base station.
Referring to Fig. 2, a kind of step flow chart of base station synchronization method embodiment 2 of the application is shown, specifically can wrap Include following steps:
Step 201, server determines first base station;
In a kind of example of the embodiment of the present application, if server is serviced carrying out first time synchronizing All basic station over network is determined as first base station by device.That is all base stations all can be to transmission sync-request frame.
In LoRa network, first base station can send sync-request frame by way of broadcast.In some first base station Other base stations on periphery can receive the sync-request frame of first base station broadcast.In the embodiment of the present application, it will receive same The base station of step claim frame is known as the second base station, and therefore, some base station is the first base station for sending sync-request frame, and is received Second base station of sync-request frame.
Due in first time synchronizing, all base stations of the whole network all can other synchronize the interaction of claim frame with other Process.Therefore, all base stations of the whole network can be synchronous with fiducial time.
In another example of the embodiment of the present application, if server is to carry out second of time synchronizing, Server from all basic station over network selected part base station as first base station.
Between at twice in synchronization process, server can only from all basic station over network selected part base station as the first base It stands.
For example, server can choose the base station conduct for having global positioning system time service ability only from all basic station over network First base station.
In another example of the embodiment of the present application, if server is after carrying out second of time synchronizing Time synchronizing, then the second base station during last time synchronizing is determined as third base station by server;Clothes Business device during first synchronization process, will receive the base station of the sync-request frame of third base station transmission, be determined as the first base It stands.
For example, server is searched according to the record of time synchronizing in third in the 4th time synchronizing In secondary time synchronizing, the second base station of sync-request frame is received.
If base station 4 is the second base for receiving the sync-request frame of the transmission of base station 3 in third time time synchronizing It stands, then base station 4 is determined as third base station by server.
Server is searched in first time synchronizing according to the record of time synchronizing, receives the transmission of base station 4 Sync-request frame base station.
If base station 5 and base station 6 are the bases for receiving the sync-request frame of the transmission of base station 4 in first time synchronizing It stands, then server is by base station 5 and base station 6 as the first base station in the 4th time synchronizing.
Step 202, the server sends enabled instruction to first base station;The first base station is used for according to the starting Instruction sends sync-request frame to the second base station;
Server sends enabled instruction after selected first base station, while to each first base station.First base station is according to opening Dynamic instruction, generates sync-request frame.Then sync-request frame is sent to the second base station in LoRa channel.
Step 203, the server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by described Two base stations are generated according to the sync-request frame that first base station is sent;
Second base station generates synchronous response frame after receiving sync-request frame, and sends the synchronous response to server Frame.
In the embodiment of the present application, the sync-request frame is radio frames.The synchronous response frame can be radio frames, It can be wired frame.
Step 204, the server uses the synchronous response frame, determines the system time and benchmark of the first base station The first system time difference of time, and determine system time and the second system time difference of fiducial time of second base station;
In the embodiment of the present application, when server can choose the system of a base station in first base station and the second base station Between be used as fiducial time.
Step 205, the first system time difference is sent to corresponding first base station by the server, by second system The system time difference is sent to corresponding second base station;The first base station is used to carry out the time according to the corresponding the first system time difference Adjustment;Second base station is used to carry out time adjustment according to the corresponding second system time difference.
In the embodiment of the present application, the synchronous response frame may include that the first base station sends the sync-request frame Sending time stamp and second base station receive the sync-request frame receiving time stamp;The step 205 can wrap Include following sub-step:
Sub-step S11, the server are stabbed according to the sending time of sync-request frame stamp and receiving time, determine that measurement passes Defeated duration, a length of sync-request frame is sent to second base station since the first base station and connects when the measurement is transmitted Harvest into duration used;
The sending time stamp of sync-request frame can be added to synchronization request when sending sync-request frame by first base station In frame.
Second base station receives the time recorded after sync-request frame at that time and stabs as receiving time.Second base station can incite somebody to action The sending time stamp and receiving time stamp of sync-request frame are added in synchronous response frame.
In the embodiment of the present application, the difference that the sending time stamp of sync-request frame and the receiving time of the sync-request frame are stabbed Value, when can be used as the sync-request frame and being sent to the second base station since first base station and finish receiving measurement transmission used It is long.
It is stabbed for example, the second base station carries sending time according to radio frames 1, determines that the sending time of radio frames 1 is 1444440000000 microseconds, the second base station determine the receiving time stamp of radio frames 1 when receiving radio frames 1, radio frames 1 Receiving time is 1444448000000 microseconds, then a length of 1444448000000- when the measurement transmission of radio frames 1 1444440000000=8000000 microsecond.
Sub-step S12, the server calculate the real transmission duration of measurement the transmission duration and preset radio frames Measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
When the real transmission of radio frames a length of radio frames base station send when processing the time, send radio frames it is lasting when Between and processing time of the radio frames when another base station receives.Since in LoRa network, the transmission precision of radio frames is very It is high, it is generally the case that real transmission duration used in transmission radio frames is only related with the frame format of the radio frames between base station, because This, for the radio frames of same frame format, the real transmission duration of the radio frames is fixed.
In the embodiment of the present application, it can be determined corresponding with the radio frames true in advance according to the frame format of radio frames Duration is transmitted, for example, obtaining corresponding with the frame format of the radio frames from the corresponding relationship of frame format and real transmission duration Real transmission duration.
Wherein, the corresponding relationship of frame format and real transmission duration, can be by advance to the radio frames of different frame formats Transmission process tested, and the obtained real transmission duration of test is stored to obtain with corresponding frame format.
In the embodiment of the present application, it is preferred that in order to improve the accuracy for determining the real transmission duration, improve raising The accuracy for determining the system time difference of first base station and the second base station, can determine the radio frames in the first base station and institute The half of the round-trip duration is determined as the real transmission duration by the round-trip duration for stating round trip between the second base station.
In LoRa network, timestamp precision determined by base station is very high, can generally achieve microsecond rank, so, it can To accurately determine the sending time and receiving time of radio frames, the difference between sending time and receiving time by timestamp Value is that duration is transmitted in the measurement of radio frames.If it is identical as the real transmission duration that duration is transmitted in the measurement, illustrate first The system time difference of base station and the second base station is 0, the i.e. system time synchronization of the system time of first base station and the second base station;If Measurement transmission duration is different from the real transmission duration, then illustrates that the system time difference of first base station and the second base station is not 0, The difference that the measurement is transmitted between duration and the real transmission duration is the system time difference.
Sub-step S13, the server is according to fiducial time and the system of the first base station and second base station The time difference, calculate the first system time difference of the first base station Yu the fiducial time, and calculate second base station with it is described The second system time difference of fiducial time.
In the embodiment of the present application, server can receive the synchronous response frame that multiple second base stations are sent.Server needle To each synchronous response frame, the system time of corresponding first base station and the first system time difference of fiducial time are determined, and Determine the system time of corresponding second base station and the second system time difference of fiducial time.
Fiducial time can be the system time of multiple first base stations and one of base station in multiple second base stations.When After the system time difference for determining one of base station and fiducial time, so that it may according to the system time difference between each base station, calculate To the system time difference of each base station and fiducial time.
In a kind of example of the embodiment of the present application, the sub-step S13 may further include following sub-step:
Sub-step S1301, the server choose the system time of first base station as fiducial time;
Sub-step S1302, the server is by the system time difference of the first base station and second base station, as described The second system time difference of second base station and the fiducial time.
In another example of the embodiment of the present application, the sub-step S13 may further include following sub-step:
Sub-step S1303, the server choose the system time of the second base station as fiducial time;
Sub-step S1304, the server is by the system time difference of the first base station and second base station, as described The first system time difference of first base station and the fiducial time.
In the embodiment of the present application, fiducial time can be the system time of the server, be also possible to other precision The time, such as cesium-beam atomic clock etc. of higher clock reference equipment.
Server can calculate the system time difference of a base station and fiducial time in first base station and the second base station.Then According to the system time difference between this base station and the system time difference and each base station of fiducial time, each base station and base station are calculated The system time difference of time.
In another example of the embodiment of the present application, the sub-step S13 may further include following sub-step:
Sub-step S1305, the server choose the time of clock reference equipment as fiducial time;
Sub-step S1306, the server calculate the first system time difference of the first base station Yu the fiducial time;
Sub-step S1307, the system time difference of the server according to the first base station and second base station, Yi Jisuo State the second system time difference that the first system time difference calculates second base station Yu the fiducial time.
In another example of the embodiment of the present application, the sub-step S13 may further include following sub-step:
Sub-step S1308, the server choose the time of clock reference equipment as fiducial time;
Sub-step S1309, the server calculate the second system time difference of second base station Yu the fiducial time;
Sub-step S1310, the system time difference of the server according to the first base station and second base station, Yi Jisuo State the first system time difference that the second system time difference calculates the first base station Yu the fiducial time.
In order to make those skilled in the art can better understand that the embodiment of the present application, below by an example to this Shen Please embodiment be illustrated: the schematic diagram of first time synchronizing in the embodiment of the present application is shown referring to Fig. 3.Wherein LoRa Network includes: base station 1, base station 2, base station 3, base station 4 and server.
In first time synchronizing, server all regard all base stations of the whole network as first base station.Server first to Base station 1, base station 2, base station 3, base station 4 send enabled instruction.
After each base station receives enabled instruction, peritropous base station broadcast sync-request frame.The synchronization that base station 1 is broadcasted is asked Ask frame that can be received by base station 2;The sync-request frame that base station 2 is broadcasted can be received by base station 1 and base station 3;The synchronization that base station 3 is broadcasted Claim frame can be received by base station 2 and base station 4;The sync-request frame that base station 4 is broadcasted can be received by base station 3.
Base station is after receiving sync-request frame, for the corresponding synchronous response frame of each sync-request frame generation, and to Server sends synchronous response frame.
Such as, base station 2 generates one for base station 1 after receiving the sync-request frame that base station 1 and base station 3 are sent respectively The synchronous response frame of the synchronous response frame of sync-request frame and a sync-request frame for base station 3.Base station 2 is same by the two Step acknowledgement frame is sent to server.
Server calculates the system time difference between corresponding first base station and the second base station according to each synchronous response frame.
Server can send the sending time stamp of sync-request frame according to base station and another base station receives synchronization request The receiving time of frame is stabbed, and duration is transmitted in the measurement between calculation base station.Then according to measurement transmission duration and measured in advance it is true It is real to transmit duration, the system time difference between calculation base station.
Specifically, the synchronous response frame for being directed to the sync-request frame of base station 1 includes: the hair that base station 1 sends sync-request frame The receiving time stamp for sending timestamp and base station 2 to receive the sync-request frame.
Server sends the sending time stamp of sync-request frame according to base station 1 and base station 2 receives the sync-request frame Receiving time stamp, the system time difference between calculation base station 1 and base station 2.
Synchronous response frame for the sync-request frame of base station 3 includes: the sending time that base station 3 sends sync-request frame Stamp and base station 2 receive the receiving time stamp of the sync-request frame.
Server sends the sending time stamp of sync-request frame according to base station 3 and base station 2 receives the sync-request frame Receiving time stamp, the system time difference between calculation base station 3 and base station 2.
It is calculating to after the system time difference between each base station, one of them can chosen from the system time of each base station As fiducial time.Then according to the system time difference between each base station, the system time difference of each base station and fiducial time are calculated.
The system time difference of each base station and fiducial time is sent to corresponding base station by server.Each base station is according to phase The system time difference answered carries out time adjustment.
Such as, server was calculated to the system time difference of base station 1 and base station 2, the system time difference of base station 2 and base station 3, base station 3 After the system time difference of base station 4.
Server chooses the system time of base station 3 as fiducial time, then the system time difference of base station 2 and base station 3, as base Stand 2 with system time difference of fiducial time.Server is according to base station 1 and the system time difference of base station 2 and the system of base station 2 and base station 3 The system time difference of base station 1 Yu base station 3, i.e. the system time difference of base station 1 and fiducial time can be calculated in the time difference.
In the time synchronizing after first time synchronizing, server can only from all basic station over network selector Divide base station as first base station.The time synchronization in the embodiment of the present application after first time synchronizing is shown referring to Fig. 4 Processing schematic.Wherein, server selects base station 1 and base station 3 as first base station.
Server sends enabled instruction to base station 1, base station 3 first.
After base station 1, base station 3 receive enabled instruction, peritropous base station broadcast sync-request frame.
The sync-request frame that base station 1 is broadcasted can be received by base station 2;The sync-request frame that base station 3 is broadcasted can be by base station 2 and base Stand 4 receive.
Base station is after receiving sync-request frame, for the corresponding synchronous response frame of each sync-request frame generation, and to Server sends synchronous response frame.
Server calculates the system time difference between corresponding first base station and the second base station according to each synchronous response frame. Specifically, the timestamp of sync-request frame and the timestamp of another base station reception sync-request frame can be sent according to base station, Duration is transmitted in measurement between calculation base station.Then it according to the real transmission duration of measurement transmission duration and measured in advance, calculates The system time difference between base station.
It is calculating to after the system time difference between each base station, one of them can chosen from the system time of each base station As fiducial time.Then according to the system time difference between each base station, the system time difference of each base station and fiducial time are calculated.
The system time difference of each base station and fiducial time is sent to corresponding base station by server.Each base station is according to phase The system time difference answered carries out time adjustment.
In the embodiment of the present application, first time synchronizing and time synchronizing later differ only in selection The mode of first base station is different.
In first time synchronizing, all basic station over network is chosen for first base station by server.
In time synchronizing later, server from all basic station over network selected part base station as first base station.
Preferably, in carrying out the time synchronizing after second of time synchronizing, when server is by the last time Between the second base station during synchronization process, be determined as third base station;Server will receive during first synchronization process The base station for the sync-request frame that third base station is sent, is determined as first base station.
A kind of step flow chart of base station synchronization method embodiment 3 of the application is shown referring to Fig. 5, can specifically include Following steps:
Step 301, first base station sends sync-request frame to the second base station;Second base station is used for according to the synchronization Claim frame sends synchronous response frame to the server;The server is used for according to the synchronous response frame, determines described the The system time of one base station and the first system time difference of fiducial time;
In the embodiment of the present application, the sync-request frame is radio frames.The synchronous response frame can be radio frames, It can be wired frame.
In the embodiment of the present application, the step 301 may include following sub-step:
Sub-step S21, first base station receive the enabled instruction that server is sent,
Sub-step S22, the first base station send sync-request frame according to the enabled instruction, to the second base station.
In the embodiment of the present application, first base station can send sync-request frame by way of broadcast.Receive synchronization Second base station of claim frame sends synchronous response frame to server according to sync-request frame.
Server determines system time and the system time difference of fiducial time of first base station according to synchronous response frame.
Wherein, server determines the system time of first base station and the system time difference of fiducial time according to synchronous response frame Mode may refer to the associated description in aforementioned, no longer repeat one by one herein.
Step 302, the first base station receives the first system time difference that the server is sent;
Step 303, the first base station uses the first system time difference, carries out time adjustment.
In the embodiment of the present application, the step 303 may include:
The first base station use the first system time difference, adjust local system time, or, adjustment send beacon without The time of line frame beacon.
In the embodiment of the present application, each first base station sends sync-request frame, the second base station to corresponding second base station Synchronous response frame is sent to server according to sync-request frame.Server calculates corresponding first base station according to synchronous response frame With the system time difference of fiducial time.Each first base station can adjust local system time according to the corresponding system time difference, thus Guarantee the time synchronization of each first base station.Or each first base station can adjust according to the corresponding system time difference and send beacon The time of radio frames beacon, to guarantee the synchronization for sending beacon wireless frame beacon between each first base station.
A kind of step flow chart of base station synchronization method embodiment 4 of the application is shown referring to Fig. 6, can specifically include Following steps:
Step 401, the second base station receives the sync-request frame that first base station is sent;
In the embodiment of the present application, the second base station can receive the sync-request frame of first base station broadcast.
Step 402, second base station sends synchronous response frame to server according to the sync-request frame;The service Device is used to determine the system time of second base station and the second system time difference of fiducial time according to the synchronous response frame;
In the embodiment of the present application, the sync-request frame is radio frames.The synchronous response frame can be radio frames, It can be wired frame.
In the embodiment of the present application, the second base station for receiving sync-request frame is sent out according to sync-request frame to server Send synchronous response frame.
Server determines system time and the system time difference of fiducial time of the second base station according to synchronous response frame.
Wherein, server determines the system time of first base station and the system time difference of fiducial time according to synchronous response frame Mode may refer to the associated description in aforementioned, no longer repeat one by one herein.
Step 403, second base station receives the server and sends the second system time difference;
Step 404, second base station uses the second system time difference, carries out time adjustment.
In the embodiment of the present application, the step 404 may include:
Second base station use the second system time difference, adjust local system time, or, adjustment send beacon without The time of line frame beacon.
In the embodiment of the present application, each first base station sends sync-request frame, the second base station to corresponding second base station Synchronous response frame is sent to server according to sync-request frame.Server calculates corresponding second base station according to synchronous response frame With the system time difference of fiducial time.Each second base station can adjust local system time according to the corresponding system time difference, thus Guarantee the time synchronization of each second base station.Or each second base station can adjust according to the corresponding system time difference and send beacon The time of radio frames beacon, to guarantee the synchronization for sending beacon wireless frame beacon between each second base station.
A kind of step flow chart of base station synchronization method embodiment 5 of the application is shown referring to Fig. 7, can specifically include Following steps:
Step 501, server determines first base station;
Step 502, the server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by described Two base stations are generated according to the sync-request frame that first base station is sent;The synchronous response frame includes described in the first base station is sent The sending time stamp of sync-request frame and second base station receive the receiving time stamp of the sync-request frame;
Step 503, the server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates described first The first system time difference of base station and fiducial time, and when calculating second base station and the second system of the fiducial time Difference;
Step 504, the first system time difference is sent to corresponding first base station by the server, by second system The system time difference is sent to corresponding second base station;The first base station is used to carry out the time according to the corresponding the first system time difference Adjustment;Second base station is used to carry out time adjustment according to the corresponding second system time difference.
Time adjustment may include: the local system time of adjustment, send alternatively, adjusting to the terminal of Class B-mode The time of beacon wireless frame beacon.
In the embodiment of the present application, each base station in the whole network can be according to the corresponding system time difference, realization and benchmark The synchronization of time.And the synchronous method of the embodiment of the present application does not depend on the time service of global positioning system, therefore, has both avoided each The problem of possible data transmission cost of global positioning system increases is arranged in base station, decreases because each base station can not be accurate It receives and is difficult to the problem of reliably carrying out data transmission caused by positioning signal, that is to say, reduce data transmission cost, improve The reliability of data transmission.
Each base station can adjust local system time according to the corresponding system time difference, to guarantee the time of each base station It is synchronous.Or each base station can adjust the time for sending beacon wireless frame beacon, to guarantee according to the corresponding system time difference The synchronization of beacon wireless frame beacon is sent between each base station.
A kind of step flow chart of base station synchronization method embodiment 6 of the application is shown referring to Fig. 8, can specifically include Following steps:
Step 601, server determines first base station;
In a kind of example in the embodiment of the present application, if server is taken carrying out first time synchronizing All basic station over network is determined as first base station by business device.
In another example in the embodiment of the present application, if server is to carry out second of time synchronizing, Then state server from all basic station over network selected part base station as first base station.
In another example in the embodiment of the present application, if server be carry out second time synchronizing it Time synchronizing afterwards, then the second base station during last time synchronizing is determined as third base station by server; Server during first synchronization process, will receive the base station of the sync-request frame of third base station transmission, be determined as first Base station.
Step 602, the server sends enabled instruction to first base station;The first base station is used for according to the starting Instruction sends sync-request frame to the second base station.
Step 603, the server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by described Two base stations are generated according to the sync-request frame that first base station is sent;The synchronous response frame includes described in the first base station is sent The sending time stamp of sync-request frame and second base station receive the receiving time stamp of the sync-request frame;
Step 604, the server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates described first The first system time difference of base station and fiducial time, and when calculating second base station and the second system of the fiducial time Difference;
In the embodiment of the present application, the step 604 may include following sub-step:
Sub-step S31, the server are stabbed according to the sending time of sync-request frame stamp and receiving time, determine that measurement passes Defeated duration;
Sub-step S32, the server calculate the real transmission duration of measurement the transmission duration and preset radio frames Measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
Sub-step S33, the server is according to fiducial time and the system of the first base station and second base station The time difference, calculate the first system time difference of the first base station Yu the fiducial time, and calculate second base station with it is described The second system time difference of fiducial time.
In a kind of example in the embodiment of the present application, the sub-step S33 may further include following sub-step:
Sub-step S3301, the server choose the system time of first base station as fiducial time;
Sub-step S3302, the server is by the system time difference of the first base station and second base station, as described The second system time difference of second base station and the fiducial time.
In another example in the embodiment of the present application, the sub-step S33 may further include following sub-step:
Sub-step S3303, the server choose the system time of the second base station as fiducial time;
Sub-step S3304, the server is by the system time difference of the first base station and second base station, as described The first system time difference of first base station and the fiducial time.
In another example in the embodiment of the present application, the sub-step S33 may further include following sub-step:
Sub-step S3305, the server choose the time of clock reference equipment as fiducial time;
Sub-step S3306, the server calculate the first system time difference of the first base station Yu the fiducial time;
Sub-step S3307, the system time difference of the server according to the first base station and second base station, Yi Jisuo State the second system time difference that the first system time difference calculates second base station Yu the fiducial time.
In another example in the embodiment of the present application, the sub-step S33 may further include following sub-step:
Sub-step S3308, the server choose the time of clock reference equipment as fiducial time;
Sub-step S3309, the server calculate the second system time difference of second base station Yu the fiducial time;
Sub-step S3310, the system time difference of the server according to the first base station and second base station, Yi Jisuo State the first system time difference that the second system time difference calculates the first base station Yu the fiducial time.
Step 605, the first system time difference is sent to corresponding first base station by the server, by second system The system time difference is sent to corresponding second base station;The first base station is used to carry out the time according to the corresponding the first system time difference Adjustment;Second base station is used to carry out time adjustment according to the corresponding second system time difference.
A kind of step flow chart of base station synchronization method embodiment 7 of the application is shown referring to Fig. 9, can specifically include Following steps:
Step 701, server determines first base station;
Step 702, the server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by described Two base stations are generated according to the sync-request frame that first base station is sent;The synchronous response frame includes described in the first base station is sent The sending time stamp of sync-request frame and second base station receive the receiving time stamp of the sync-request frame;
Step 703, the server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates described first The first system time difference of base station and fiducial time;
In the embodiment of the present application, the step 703 may include following sub-step:
Sub-step S41, the server are stabbed according to the sending time of sync-request frame stamp and receiving time, determine that measurement passes Defeated duration;
Sub-step S42, the server calculate the real transmission duration of measurement the transmission duration and preset radio frames Measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
Sub-step S43, the server is according to fiducial time and the system of the first base station and second base station The time difference calculates the first system time difference of the first base station Yu the fiducial time.
In the embodiment of the present application, the sub-step S43 may include following sub-step:
Sub-step S4301, the server choose the system time of the second base station as fiducial time;
Sub-step S4302, the server is by the system time difference of the first base station and second base station, as described The first system time difference of first base station and the fiducial time.
Step 704, the first system time difference is sent to corresponding first base station by the server;The first base station For carrying out time adjustment according to the corresponding the first system time difference.
Referring to Fig.1 0 show the application a kind of base station synchronization method embodiment 8 step flow chart, specifically can wrap Include following steps:
Step 801, server determines first base station;
Step 802, the server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by described Two base stations are generated according to the sync-request frame that first base station is sent;The synchronous response frame includes described in the first base station is sent The sending time stamp of sync-request frame and second base station receive the receiving time stamp of the sync-request frame;
Step 803, the server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates described second The second system time difference of base station and the fiducial time;
In the embodiment of the present application, the step 803 may include following sub-step:
Sub-step S51, the server are stabbed according to the sending time of sync-request frame stamp and receiving time, determine that measurement passes Defeated duration;
Sub-step S52, the server calculate the real transmission duration of measurement the transmission duration and preset radio frames Measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
Sub-step S53, the server is according to fiducial time and the system of the first base station and second base station The time difference calculates the second system time difference of second base station and the fiducial time.
In the embodiment of the present application, the sub-step S53 may include following sub-step:
Sub-step S5301, the server choose the system time of first base station as fiducial time;
Sub-step S5302, the server is by the system time difference of the first base station and second base station, as described The second system time difference of second base station and the fiducial time.
Step 804, the second system time difference is sent to corresponding second base station by the server;Second base station For carrying out time adjustment according to the corresponding second system time difference.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, the embodiment of the present application is not limited by the described action sequence, because of root According to the embodiment of the present application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and related movement not necessarily the application is implemented Necessary to example.
Referring to Fig.1 1, a kind of structural block diagram of base station synchronization Installation practice 1 of the application is shown, can specifically include Following module:
Positioned at the first base station determining module 901 of server, for determining first base station;
Positioned at the synchronous response frame receiving module 902 of the server, for receiving the synchronous response of the second base station transmission Frame;The synchronous response frame is generated by second base station according to the sync-request frame that first base station is sent;
Positioned at the system time difference computing module 903 of the server, for using the synchronous response frame, described the is determined The system time of one base station and the first system time difference of fiducial time, and determine the system time of second base station with it is described The second system time difference of fiducial time;
Positioned at the system time difference sending module 904 of the server, for the first system time difference to be sent to accordingly First base station, the second system time difference is sent to corresponding second base station;The first base station is used for according to the phase The first system time difference answered carries out time adjustment;When second base station is used to be carried out according to the corresponding second system time difference Between adjust.
In the embodiment of the present application, the synchronous response frame includes the hair that the first base station sends the sync-request frame The receiving time stamp for sending timestamp and second base station to receive the sync-request frame;The system time difference computing module 903 may include:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, really Fixed measurement transmission duration;
The time difference determines submodule between standing, when for calculating the real transmission of the measurement transmission duration and preset radio frames Long measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, for being according to fiducial time and the first base station and second base station It unites the time difference, calculates the first system time difference of the first base station Yu the fiducial time, and calculate second base station and institute State the second system time difference of fiducial time.
In the embodiment of the present application, the reference time difference determines that submodule may include:
First fiducial time selection unit, for choosing the system time of first base station as fiducial time;
First reference time difference determination unit, for by the system time difference of the first base station and second base station, as The second system time difference of second base station and the fiducial time.
In the embodiment of the present application, the reference time difference determines that submodule may include:
Second fiducial time selection unit, for choosing the system time of the second base station as fiducial time;
Second reference time difference determination unit, for by the system time difference of the first base station and second base station, as The first system time difference of the first base station and the fiducial time.
In the embodiment of the present application, the reference time difference determines that submodule may include:
Third fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
Third reference time difference determination unit, when for calculating the first system of the first base station and the fiducial time Difference;
4th reference time difference determination unit, for the system time difference according to the first base station and second base station, with And the first system time difference calculates the second system time difference of second base station Yu the fiducial time.
In the embodiment of the present application, the reference time difference determines that submodule may include:
4th fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
5th reference time difference determination unit, when for calculating the second system of second base station and the fiducial time Difference;
6th reference time difference determination unit, for the system time difference according to the first base station and second base station, with And the second system time difference calculates the first system time difference of the first base station Yu the fiducial time.
In the embodiment of the present application, described device can also include:
Positioned at the enabled instruction sending module of the server, for sending enabled instruction to first base station;Described first Base station is used for according to the enabled instruction, sends sync-request frame to the second base station.
In the embodiment of the present application, the first base station determining module 901 may include:
First determines submodule, in first time synchronizing, all basic station over network to be determined as first base station.
In the embodiment of the present application, the first base station determining module 901 can also include:
Second determines submodule, and between being used at twice in synchronization process, selected part base station is made from all basic station over network For first base station.
In the embodiment of the present application, the first base station determining module 901 can also include:
Third base station determines submodule, will be upper in the time synchronizing after synchronization process between at twice The second base station during time synchronizing, is determined as third base station;
Third determines submodule, for that will receive the same of the third base station transmission during first synchronization process The base station for walking claim frame, is determined as first base station.
In the embodiment of the present application, each base station in the whole network can be according to the corresponding system time difference, realization and benchmark The synchronization of time.And the synchronous method of the embodiment of the present application does not depend on the time service of global positioning system, therefore, has both avoided each The problem of possible data transmission cost of global positioning system increases is arranged in base station, decreases because each base station can not be accurate It receives and is difficult to the problem of reliably carrying out data transmission caused by positioning signal, that is to say, reduce data transmission cost, improve The reliability of data transmission.
Each base station can adjust local system time according to the corresponding system time difference, to guarantee the time of each base station It is synchronous.Or each base station can adjust the time for sending beacon wireless frame beacon, to guarantee according to the corresponding system time difference The synchronization of beacon wireless frame beacon is sent between each base station.
Referring to Fig.1 2, a kind of structural block diagram of base station synchronization Installation practice 2 of the application is shown, can specifically include Following module:
Positioned at the sync-request frame sending module 1001 of first base station, for sending sync-request frame to the second base station;Institute The second base station is stated for sending synchronous response frame to the server according to the sync-request frame;The server is used for basis The synchronous response frame determines the system time of the first base station and the first system time difference of fiducial time;
Positioned at the system time difference receiving module 1002 of the first base station, for receiving that the server sends described the The one system time difference;
First time positioned at the first base station adjusts module 1003, for using the first system time difference, carries out Time adjustment.
In the embodiment of the present application, the sync-request frame sending module 1001 may include:
Enabled instruction receiving submodule, for receiving the enabled instruction of server transmission,
Sync-request frame sending submodule, for sending sync-request frame to the second base station according to the enabled instruction.
In the embodiment of the present application, the first time adjustment module 1003 may include:
First time adjusting submodule adjusts local system time, or, adjusting for using the first system time difference It haircuts to deliver letters and marks the time of radio frames beacon.
In the embodiment of the present application, each first base station sends sync-request frame, the second base station to corresponding second base station Synchronous response frame is sent to server according to sync-request frame.Server calculates corresponding first base station according to synchronous response frame With the system time difference of fiducial time.Each first base station can adjust local system time according to the corresponding system time difference, thus Guarantee the time synchronization of each first base station.Or each first base station can adjust according to the corresponding system time difference and send beacon The time of radio frames beacon, to guarantee the synchronization for sending beacon wireless frame beacon between each first base station.
Referring to Fig.1 3, a kind of structural block diagram of base station synchronization Installation practice 3 of the application is shown, can specifically include Following module:
Sync-request frame receiving module 1101 positioned at the second base station, for receiving the synchronization request of first base station transmission Frame;
Synchronous response frame sending module 1102 positioned at second base station, for according to the sync-request frame to service Device sends synchronous response frame;The server is used to determine the system time of second base station according to the synchronous response frame With the second system time difference of fiducial time;
Second system time difference receiving module 1103 positioned at second base station, the institute sent for receiving the server State the second system time difference;
The second time regulating module 1104 positioned at second base station is carried out for using the second system time difference Time adjustment.
In the embodiment of the present application, second time regulating module 1104 may include:
Second time adjusting submodule adjusts local system time, or, adjusting for using the second system time difference It haircuts to deliver letters and marks the time of radio frames beacon.
In the embodiment of the present application, each first base station sends sync-request frame, the second base station to corresponding second base station Synchronous response frame is sent to server according to sync-request frame.Server calculates corresponding second base station according to synchronous response frame With the system time difference of fiducial time.Each second base station can adjust local system time according to the corresponding system time difference, thus Guarantee the time synchronization of each second base station.Or each second base station can adjust according to the corresponding system time difference and send beacon The time of radio frames beacon, to guarantee the synchronization for sending beacon wireless frame beacon between each second base station.
Referring to Fig.1 4, a kind of structural block diagram of base station synchronization Installation practice 4 of the application is shown, can specifically include Following module:
Positioned at the first base station determining module 1201 of server, for determining first base station;
Positioned at the server sync acknowledgement frame receiving module 1202, for receiving the synchronous response of the second base station transmission Frame;The synchronous response frame is generated by second base station according to the sync-request frame that first base station is sent;The synchronous response Frame includes sending time stamp and second base station reception synchronization that the first base station sends the sync-request frame The receiving time of claim frame is stabbed;
Positioned at the system time difference computing module 1203 of the server, for according to the sending time of sync-request frame stamp and Receiving time stamp calculates the first system time difference of the first base station and fiducial time, and calculates second base station and institute State the second system time difference of fiducial time;
Positioned at the system time difference sending module 1204 of the server, for the first system time difference to be sent to accordingly First base station, the second system time difference is sent to corresponding second base station;The first base station is used for according to the phase The first system time difference answered carries out time adjustment;When second base station is used to be carried out according to the corresponding second system time difference Between adjust.
In the embodiment of the present application, the system time difference computing module 1203 may include:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, really Fixed measurement transmission duration;
The time difference determines submodule between standing, when for calculating the real transmission of the measurement transmission duration and preset radio frames Long measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, for being according to fiducial time and the first base station and second base station It unites the time difference, calculates the first system time difference of the first base station Yu the fiducial time, and calculate second base station and institute State the second system time difference of fiducial time.
In the embodiment of the present application, the reference time difference determines that submodule may include:
First fiducial time selection unit, for choosing the system time of first base station as fiducial time;
First reference time difference determination unit, for by the system time difference of the first base station and second base station, as The second system time difference of second base station and the fiducial time.
In the embodiment of the present application, the reference time difference determines that submodule may include:
Second fiducial time selection unit, for choosing the system time of the second base station as fiducial time;
Second reference time difference determination unit, for by the system time difference of the first base station and second base station, as The first system time difference of the first base station and the fiducial time.
In the embodiment of the present application, the reference time difference determines that submodule may include:
Third fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
Third reference time difference determination unit, when for calculating the first system of the first base station and the fiducial time Difference;
4th reference time difference determination unit, for the system time difference according to the first base station and second base station, with And the first system time difference calculates the second system time difference of second base station Yu the fiducial time.
In the embodiment of the present application, the reference time difference determines that submodule may include:
4th fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
5th reference time difference determination unit, when for calculating the second system of second base station and the fiducial time Difference;
6th reference time difference determination unit, for the system time difference according to the first base station and second base station, with And the second system time difference calculates the first system time difference of the first base station Yu the fiducial time.
In the embodiment of the present application, the device can also include:
Positioned at the enabled instruction sending module of the server, for sending enabled instruction to first base station;Described first Base station is used for according to the enabled instruction, sends sync-request frame to the second base station.
In the embodiment of the present application, the first base station determining module 1201 may include:
First determines submodule, and in first time synchronizing, all basic station over network is determined as the by the server One base station.
In the embodiment of the present application, the first base station determining module 1201 can also include:
Second determines submodule, and between being used at twice in synchronization process, selected part base station is made from all basic station over network For first base station.
In the embodiment of the present application, the first base station determining module 1201 can also include:
Third base station determines submodule, will be upper in the time synchronizing after synchronization process between at twice The second base station during time synchronizing, is determined as third base station;
Third determines submodule, for that will receive the same of the third base station transmission during first synchronization process The base station for walking claim frame, is determined as first base station.
Referring to Fig.1 5, a kind of structural block diagram of base station synchronization Installation practice 5 of the application is shown, can specifically include Following module:
Positioned at the first base station determining module 1301 of server, for determining first base station;
Positioned at the server sync acknowledgement frame receiving module 1302, for receiving the synchronous response of the second base station transmission Frame;The synchronous response frame is generated by second base station according to the sync-request frame that first base station is sent;The synchronous response Frame includes sending time stamp and second base station reception synchronization that the first base station sends the sync-request frame The receiving time of claim frame is stabbed;
Positioned at the system time difference computing module 1303 of the server, for according to the sending time of sync-request frame stamp and Receiving time stamp, calculates the first system time difference of the first base station and fiducial time;
Positioned at the system time difference sending module 1304 of the server, for the first system time difference to be sent to accordingly First base station;The first base station is used to carry out time adjustment according to the corresponding the first system time difference.
In the embodiment of the present application, the system time difference computing module 1303 may include:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, really Fixed measurement transmission duration;
The time difference determines submodule between standing, when for calculating the real transmission of the measurement transmission duration and preset radio frames Long measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, for being according to fiducial time and the first base station and second base station It unites the time difference, calculates the first system time difference of the first base station Yu the fiducial time.
In the embodiment of the present application, the reference time difference determines that submodule may include:
Fiducial time selection unit, for choosing the system time of the second base station as fiducial time;
Reference time difference determination unit, for by the system time difference of the first base station and second base station, as described The first system time difference of first base station and the fiducial time.
Referring to Fig.1 6, a kind of structural block diagram of base station synchronization Installation practice 6 of the application is shown, can specifically include Following module:
Positioned at the first base station determining module 1401 of server, for determining first base station;
Positioned at the server sync acknowledgement frame receiving module 1402, for receiving the synchronous response of the second base station transmission Frame;The synchronous response frame is generated by second base station according to the sync-request frame that first base station is sent;The synchronous response Frame includes sending time stamp and second base station reception synchronization that the first base station sends the sync-request frame The receiving time of claim frame is stabbed;
Positioned at the system time difference computing module 1403 of the server, for according to the sending time of sync-request frame stamp and Receiving time stamp, calculates the second system time difference of second base station and the fiducial time;
Positioned at the system time difference sending module 1404 of the server, for the second system time difference to be sent to accordingly The second base station;Second base station is used to carry out time adjustment according to the corresponding second system time difference.
In the embodiment of the present application, the system time difference computing module 1403 may include:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, really Fixed measurement transmission duration;
The time difference determines submodule between standing, when for calculating the real transmission of the measurement transmission duration and preset radio frames Long measurement difference, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, for being according to fiducial time and the first base station and second base station It unites the time difference, calculates the second system time difference of second base station and the fiducial time.
In the embodiment of the present application, the reference time difference determines that submodule may include:
Fiducial time selection unit, for choosing the system time of first base station as fiducial time;
Reference time difference determination unit, for by the system time difference of the first base station and second base station, as described The second system time difference of second base station and the fiducial time.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
The embodiment of the present application also provides a kind of devices, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that described device executes method described in the embodiment of the present application.
The embodiment of the present application also provides one or more machine readable medias, are stored thereon with instruction, when by one or When multiple processors execute, so that device executes method described in the embodiment of the present application.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiments of the present application may be provided as method, apparatus or calculating Machine program product.Therefore, the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present application is referring to according to the method for the embodiment of the present application, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although preferred embodiments of the embodiments of the present application have been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and all change and modification within the scope of the embodiments of the present application.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of base station synchronization method provided herein and a kind of base station synchronization device, detailed Jie has been carried out It continues, specific examples are used herein to illustrate the principle and implementation manner of the present application, and the explanation of above embodiments is only It is to be used to help understand the method for this application and its core ideas;At the same time, for those skilled in the art, according to this Shen Thought please, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is the limitation to the application.

Claims (64)

1. a kind of base station synchronization method characterized by comprising
Server determines first base station;
The server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by second base station according to The sync-request frame that one base station is sent generates;The synchronous response frame includes that the first base station sends the sync-request frame Sending time stamp and second base station receive the receiving time stamp of the sync-request frame;
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, when calculating the first base station and benchmark Between the first system time difference, and calculate the second system time difference of second base station and the fiducial time;
The first system time difference is sent to corresponding first base station by the server, and the second system time difference is sent to Corresponding second base station;The first base station is used to carry out time adjustment according to the corresponding the first system time difference;Described Two base stations are used to carry out time adjustment according to the corresponding second system time difference.
2. the method according to claim 1, wherein the server is stabbed according to the sending time of sync-request frame Stabbed with receiving time, calculate the first system time difference of the first base station and fiducial time, and calculate second base station with The step of second system time difference of the fiducial time includes:
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, determines measurement transmission duration;
The server calculates the measurement difference of the real transmission duration of the measurement transmission duration and preset radio frames, by institute State the system time difference of the measurement difference as the first base station and second base station;
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The first system time difference of one base station and the fiducial time, and calculate the second system of second base station and the fiducial time It unites the time difference.
3. according to the method described in claim 2, it is characterized in that,
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The first system time difference of one base station and the fiducial time, and calculate the second system of second base station and the fiducial time Unite the time difference the step of include:
The server chooses the system time of first base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as second base station and the base The second system time difference between punctual.
4. according to the method described in claim 2, it is characterized in that,
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The first system time difference of one base station and the fiducial time, and calculate the second system of second base station and the fiducial time Unite the time difference the step of include:
The server chooses the system time of the second base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as the first base station and the base The first system time difference between punctual.
5. according to the method described in claim 2, it is characterized in that,
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The first system time difference of one base station and the fiducial time, and calculate the second system of second base station and the fiducial time Unite the time difference the step of include:
The server chooses the time of clock reference equipment as fiducial time;
The server calculates the first system time difference of the first base station Yu the fiducial time;
The server is counted according to the system time difference and the first system time difference of the first base station and second base station Calculate the second system time difference of second base station Yu the fiducial time.
6. according to the method described in claim 2, it is characterized in that,
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The first system time difference of one base station and the fiducial time, and calculate the second system of second base station and the fiducial time Unite the time difference the step of include:
The server chooses the time of clock reference equipment as fiducial time;
The server calculates the second system time difference of second base station Yu the fiducial time;
The server is counted according to the system time difference and the second system time difference of the first base station and second base station Calculate the first system time difference of the first base station Yu the fiducial time.
7. the method according to claim 1, wherein further include:
The server sends enabled instruction to first base station;The first base station is used for according to the enabled instruction, to second Base station sends sync-request frame.
8. the method according to the description of claim 7 is characterized in that the server includes: the step of determining first base station
In first time synchronizing, all basic station over network is determined as first base station by the server.
9. according to the method described in claim 8, it is characterized in that, the step of server determines first base station further include:
Between at twice in synchronization process, the server from all basic station over network selected part base station as first base station.
10. method according to claim 8 or claim 9, which is characterized in that the step of server determines first base station is also wrapped It includes:
In time synchronizing between at twice after synchronization process, the server is by last time synchronizing mistake The second base station in journey, is determined as third base station;
The server will receive the base for the sync-request frame that the third base station is sent during first synchronization process It stands, is determined as first base station.
11. a kind of base station synchronization method characterized by comprising
Server determines first base station;
The server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by second base station according to The sync-request frame that one base station is sent generates;
The server uses the synchronous response frame, determines the system time of the first base station and the first system of fiducial time It unites the time difference, and determines the system time of second base station and the second system time difference of the fiducial time;
The first system time difference is sent to corresponding first base station by the server, and the second system time difference is sent to Corresponding second base station;The first base station is used to carry out time adjustment according to the corresponding the first system time difference;Described Two base stations are used to carry out time adjustment according to the corresponding second system time difference.
12. according to the method for claim 11, which is characterized in that the synchronous response frame includes that the first base station is sent The sending time stamp of the sync-request frame and second base station receive the receiving time stamp of the sync-request frame;Institute Server is stated using the synchronous response frame, when determining the system time and the first system of fiducial time of the first base station Difference, and the step of determining system time and the second system time difference of fiducial time of second base station include:
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, determines measurement transmission duration;
The server calculates the measurement difference of the real transmission duration of the measurement transmission duration and preset radio frames, by institute State the system time difference of the measurement difference as the first base station and second base station;
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The first system time difference of one base station and the fiducial time, and calculate the second system of second base station and the fiducial time It unites the time difference.
13. according to the method for claim 11, which is characterized in that
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The first system time difference of one base station and the fiducial time, and calculate the second system of second base station and the fiducial time Unite the time difference the step of include:
The server chooses the system time of first base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as second base station and the base The second system time difference between punctual.
14. according to the method for claim 11, which is characterized in that
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The first system time difference of one base station and the fiducial time, and calculate the second system of second base station and the fiducial time Unite the time difference the step of include:
The server chooses the system time of the second base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as the first base station and the base The first system time difference between punctual.
15. according to the method for claim 11, which is characterized in that
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The first system time difference of one base station and the fiducial time, and calculate the second system of second base station and the fiducial time Unite the time difference the step of include:
The server chooses the time of clock reference equipment as fiducial time;
The server calculates the first system time difference of the first base station Yu the fiducial time;
The server is counted according to the system time difference and the first system time difference of the first base station and second base station Calculate the second system time difference of second base station Yu the fiducial time.
16. according to the method for claim 11, which is characterized in that
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The first system time difference of one base station and the fiducial time, and calculate the second system of second base station and the fiducial time Unite the time difference the step of include:
The server chooses the time of clock reference equipment as fiducial time;
The server calculates the second system time difference of second base station Yu the fiducial time;
The server is counted according to the system time difference and the second system time difference of the first base station and second base station Calculate the first system time difference of the first base station Yu the fiducial time.
17. according to the method for claim 11, which is characterized in that further include:
The server sends enabled instruction to first base station;The first base station is used for according to the enabled instruction, to second Base station sends sync-request frame.
18. according to the method for claim 17, which is characterized in that the step of server determines first base station include:
In first time synchronizing, all basic station over network is determined as first base station by the server.
19. according to the method for claim 18, which is characterized in that the step of server determines first base station is also wrapped It includes:
Between at twice in synchronization process, the server from all basic station over network selected part base station as first base station.
20. method described in 8 or 19 according to claim 1, which is characterized in that the step of server determines first base station is also Include:
In time synchronizing between at twice after synchronization process, the server is by last time synchronizing mistake The second base station in journey, is determined as third base station;
The server will receive the base for the sync-request frame that the third base station is sent during first synchronization process It stands, is determined as first base station.
21. a kind of base station synchronization method characterized by comprising
Server determines first base station;
The server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by second base station according to The sync-request frame that one base station is sent generates;The synchronous response frame includes that the first base station sends the sync-request frame Sending time stamp and second base station receive the receiving time stamp of the sync-request frame;
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, when calculating the first base station and benchmark Between the first system time difference;
The first system time difference is sent to corresponding first base station by the server;The first base station is used for according to The corresponding the first system time difference carries out time adjustment.
22. according to the method for claim 21, which is characterized in that the server is according to the sending time of sync-request frame Stamp and receiving time stamp, the step of calculating the first base station and the first system time difference of fiducial time include:
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, determines measurement transmission duration;
The server calculates the measurement difference of the real transmission duration of the measurement transmission duration and preset radio frames, by institute State the system time difference of the measurement difference as the first base station and second base station;
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The first system time difference of one base station and the fiducial time.
23. according to the method for claim 22, which is characterized in that the server is according to fiducial time and described first The system time difference of base station and second base station calculates the step of the first system time difference of the first base station and the fiducial time Suddenly include:
The server chooses the system time of the second base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as the first base station and the base The first system time difference between punctual.
24. a kind of base station synchronization method characterized by comprising
Server determines first base station;
The server receives the synchronous response frame that the second base station is sent;The synchronous response frame is by second base station according to The sync-request frame that one base station is sent generates;The synchronous response frame includes that the first base station sends the sync-request frame Sending time stamp and second base station receive the receiving time stamp of the sync-request frame;
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, calculates second base station and the base The second system time difference between punctual;
The second system time difference is sent to corresponding second base station by the server;Second base station is used for according to The corresponding second system time difference carries out time adjustment.
25. according to the method for claim 24, which is characterized in that the server is according to the sending time of sync-request frame Stamp and receiving time stamp, the step of calculating second base station and the second system time difference of the fiducial time include:
The server is stabbed according to the sending time of sync-request frame stamp and receiving time, determines measurement transmission duration;
The server calculates the measurement difference of the real transmission duration of the measurement transmission duration and preset radio frames, by institute State the system time difference of the measurement difference as the first base station and second base station;
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The second system time difference of two base stations and the fiducial time.
26. according to the method for claim 25, which is characterized in that
The server calculates described the according to fiducial time and the system time difference of the first base station and second base station The step of two base stations and the second system time difference of the fiducial time includes:
The server chooses the system time of first base station as fiducial time;
The server is by the system time difference of the first base station and second base station, as second base station and the base The second system time difference between punctual.
27. a kind of base station synchronization method characterized by comprising
First base station sends sync-request frame to the second base station;Second base station is used for according to the sync-request frame to described Server sends synchronous response frame;The server is used for according to the synchronous response frame, the system for determining the first base station The first system time difference of time and fiducial time;
The first base station receives the first system time difference that the server is sent;
The first base station uses the first system time difference, carries out time adjustment.
28. according to the method for claim 27, which is characterized in that the first base station sends synchronization request to the second base station The step of frame includes:
First base station receives the enabled instruction that server is sent,
The first base station sends sync-request frame according to the enabled instruction, to the second base station.
29. the method according to claim 27 or 28, which is characterized in that when the first base station uses the first system Difference, carry out time adjustment the step of include:
The first base station uses the first system time difference, adjusts local system time, or, adjustment sends beacon wireless frame The time of beacon.
30. a kind of base station synchronization method characterized by comprising
Second base station receives the sync-request frame that first base station is sent;
Second base station sends synchronous response frame to server according to the sync-request frame;The server is used for according to institute Synchronous response frame is stated, determines the system time of second base station and the second system time difference of fiducial time;
Second base station receives the second system time difference that the server is sent;
Second base station uses the second system time difference, carries out time adjustment.
31. according to the method for claim 30, which is characterized in that second base station uses the second system time difference, Carrying out the step of time adjustment is handled includes:
Second base station uses the second system time difference, adjusts local system time, or, adjustment sends beacon wireless frame The time of beacon.
32. a kind of base station synchronization device characterized by comprising
Positioned at the first base station determining module of server, for determining first base station;
Positioned at the server sync acknowledgement frame receiving module, for receiving the synchronous response frame of the second base station transmission;It is described same Step acknowledgement frame is generated by second base station according to the sync-request frame that first base station is sent;The synchronous response frame includes described First base station sends the sending time stamp of the sync-request frame and second base station receives connecing for the sync-request frame Receive timestamp;
Positioned at the system time difference computing module of the server, for according to the sending time of sync-request frame stamp and receiving time Stamp calculates the first system time difference of the first base station and fiducial time, and when calculating second base station and the benchmark Between the second system time difference;
Positioned at the system time difference sending module of the server, for the first system time difference to be sent to corresponding first base It stands, the second system time difference is sent to corresponding second base station;The first base station is used for according to corresponding first The system time difference carries out time adjustment;Second base station is used to carry out time adjustment according to the corresponding second system time difference.
33. device according to claim 32, which is characterized in that the system time difference computing module includes:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, determines and surveys Amount transmission duration;
The time difference determines submodule between standing, for calculating the measurement transmission duration and the real transmission duration of preset radio frames Difference is measured, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, when for according to fiducial time and the first base station and the system of second base station Difference calculates the first system time difference of the first base station Yu the fiducial time, and calculates second base station and the base The second system time difference between punctual.
34. device according to claim 33, which is characterized in that the reference time difference determines that submodule includes:
First fiducial time selection unit, for choosing the system time of first base station as fiducial time;
First reference time difference determination unit, for by the system time difference of the first base station and second base station, as described The second system time difference of second base station and the fiducial time.
35. device according to claim 33, which is characterized in that the reference time difference determines that submodule includes:
Second fiducial time selection unit, for choosing the system time of the second base station as fiducial time;
Second reference time difference determination unit, for by the system time difference of the first base station and second base station, as described The first system time difference of first base station and the fiducial time.
36. device according to claim 33, which is characterized in that the reference time difference determines that submodule includes:
Third fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
Third reference time difference determination unit, for calculating the first system time difference of the first base station Yu the fiducial time;
4th reference time difference determination unit, for the system time difference according to the first base station and second base station, Yi Jisuo State the second system time difference that the first system time difference calculates second base station Yu the fiducial time.
37. device according to claim 33, which is characterized in that the reference time difference determines that submodule includes:
4th fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
5th reference time difference determination unit, for calculating the second system time difference of second base station Yu the fiducial time;
6th reference time difference determination unit, for the system time difference according to the first base station and second base station, Yi Jisuo State the first system time difference that the second system time difference calculates the first base station Yu the fiducial time.
38. device according to claim 32, which is characterized in that further include:
Positioned at the enabled instruction sending module of the server, for sending enabled instruction to first base station;The first base station For sending sync-request frame to the second base station according to the enabled instruction.
39. the device according to claim 38, which is characterized in that the first base station determining module includes:
First determines submodule, in first time synchronizing, all basic station over network to be determined as the first base by the server It stands.
40. device according to claim 39, which is characterized in that the first base station determining module further include:
Second determines submodule, and in synchronization process between at twice, selected part base station is as the from all basic station over network One base station.
41. the device according to claim 39 or 40, which is characterized in that the first base station determining module further include:
Third base station determines submodule, will be last in the time synchronizing after synchronization process between at twice The second base station during time synchronizing, is determined as third base station;
Third determines submodule, for that will receive the synchronization that the third base station is sent during first synchronization process and ask The base station for seeking frame, is determined as first base station.
42. a kind of base station synchronization device characterized by comprising
Positioned at the first base station determining module of server, for determining first base station;
Positioned at the synchronous response frame receiving module of the server, for receiving the synchronous response frame of the second base station transmission;It is described Synchronous response frame is generated by second base station according to the sync-request frame that first base station is sent;
The first base station is determined for using the synchronous response frame positioned at the system time difference computing module of the server System time and the first system time difference of fiducial time, and when determining the system time and the benchmark of second base station Between the second system time difference;
Positioned at the system time difference sending module of the server, for the first system time difference to be sent to corresponding first base It stands, the second system time difference is sent to corresponding second base station;The first base station is used for according to corresponding first The system time difference carries out time adjustment;Second base station is used to carry out time adjustment according to the corresponding second system time difference.
43. device according to claim 42, which is characterized in that the synchronous response frame includes that the first base station is sent The sending time stamp of the sync-request frame and second base station receive the receiving time stamp of the sync-request frame;Institute Stating system time difference computing module includes:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, determines and surveys Amount transmission duration;
The time difference determines submodule between standing, for calculating the measurement transmission duration and the real transmission duration of preset radio frames Difference is measured, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, when for according to fiducial time and the first base station and the system of second base station Difference calculates the first system time difference of the first base station Yu the fiducial time, and calculates second base station and the base The second system time difference between punctual.
44. device according to claim 43, which is characterized in that the reference time difference determines that submodule includes:
First fiducial time selection unit, for choosing the system time of first base station as fiducial time;
First reference time difference determination unit, for by the system time difference of the first base station and second base station, as described The second system time difference of second base station and the fiducial time.
45. device according to claim 43, which is characterized in that the reference time difference determines that submodule includes:
Second fiducial time selection unit, for choosing the system time of the second base station as fiducial time;
Second reference time difference determination unit, for by the system time difference of the first base station and second base station, as described The first system time difference of first base station and the fiducial time.
46. device according to claim 43, which is characterized in that the reference time difference determines that submodule includes:
Third fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
Third reference time difference determination unit, for calculating the first system time difference of the first base station Yu the fiducial time;
4th reference time difference determination unit, for the system time difference according to the first base station and second base station, Yi Jisuo State the second system time difference that the first system time difference calculates second base station Yu the fiducial time.
47. device according to claim 43, which is characterized in that the reference time difference determines that submodule includes:
4th fiducial time selection unit, for choosing the time of clock reference equipment as fiducial time;
5th reference time difference determination unit, for calculating the second system time difference of second base station Yu the fiducial time;
6th reference time difference determination unit, for the system time difference according to the first base station and second base station, Yi Jisuo State the first system time difference that the second system time difference calculates the first base station Yu the fiducial time.
48. device according to claim 42, which is characterized in that further include:
Positioned at the enabled instruction sending module of the server, for sending enabled instruction to first base station;The first base station For sending sync-request frame to the second base station according to the enabled instruction.
49. device according to claim 48, which is characterized in that the first base station determining module includes:
First determines submodule, in first time synchronizing, all basic station over network to be determined as first base station.
50. device according to claim 49, which is characterized in that the first base station determining module further include:
Second determines submodule, and in synchronization process between at twice, selected part base station is as the from all basic station over network One base station.
51. the device according to claim 49 or 50, which is characterized in that the first base station determining module further include:
Third base station determines submodule, will be last in the time synchronizing after synchronization process between at twice The second base station during time synchronizing, is determined as third base station;
Third determines submodule, for that will receive the synchronization that the third base station is sent during first synchronization process and ask The base station for seeking frame, is determined as first base station.
52. a kind of base station synchronization device characterized by comprising
Positioned at the first base station determining module of server, for determining first base station;
Positioned at the server sync acknowledgement frame receiving module, for receiving the synchronous response frame of the second base station transmission;It is described same Step acknowledgement frame is generated by second base station according to the sync-request frame that first base station is sent;The synchronous response frame includes described First base station sends the sending time stamp of the sync-request frame and second base station receives connecing for the sync-request frame Receive timestamp;
Positioned at the system time difference computing module of the server, for according to the sending time of sync-request frame stamp and receiving time Stamp, calculates the first system time difference of the first base station and fiducial time;
Positioned at the system time difference sending module of the server, for the first system time difference to be sent to corresponding first base It stands;The first base station is used to carry out time adjustment according to the corresponding the first system time difference.
53. device according to claim 52, which is characterized in that the system time difference computing module includes:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, determines and surveys Amount transmission duration;
The time difference determines submodule between standing, for calculating the measurement transmission duration and the real transmission duration of preset radio frames Difference is measured, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, when for according to fiducial time and the first base station and the system of second base station Difference calculates the first system time difference of the first base station Yu the fiducial time.
54. device according to claim 53, which is characterized in that the reference time difference determines that submodule includes:
Fiducial time selection unit, for choosing the system time of the second base station as fiducial time;
Reference time difference determination unit, for by the system time difference of the first base station and second base station, as described first The first system time difference of base station and the fiducial time.
55. a kind of base station synchronization device characterized by comprising
Positioned at the first base station determining module of server, for determining first base station;
Positioned at the server sync acknowledgement frame receiving module, for receiving the synchronous response frame of the second base station transmission;It is described same Step acknowledgement frame is generated by second base station according to the sync-request frame that first base station is sent;The synchronous response frame includes described First base station sends the sending time stamp of the sync-request frame and second base station receives connecing for the sync-request frame Receive timestamp;
Positioned at the system time difference computing module of the server, for according to the sending time of sync-request frame stamp and receiving time Stamp calculates the second system time difference of second base station and the fiducial time;
Positioned at the system time difference sending module of the server, for the second system time difference to be sent to corresponding second base It stands;Second base station is used to carry out time adjustment according to the corresponding second system time difference.
56. device according to claim 55, which is characterized in that the system time difference computing module includes:
Measurement transmission duration determines submodule, for being stabbed according to the sending time of sync-request frame stamp and receiving time, determines and surveys Amount transmission duration;
The time difference determines submodule between standing, for calculating the measurement transmission duration and the real transmission duration of preset radio frames Difference is measured, using the measurement difference as the system time difference of the first base station and second base station;
Reference time difference determines submodule, when for according to fiducial time and the first base station and the system of second base station Difference calculates the second system time difference of second base station and the fiducial time.
57. device according to claim 56, which is characterized in that the reference time difference determines that submodule includes:
Fiducial time selection unit, for choosing the system time of first base station as fiducial time;
Reference time difference determination unit, for by the system time difference of the first base station and second base station, as described second The second system time difference of base station and the fiducial time.
58. a kind of base station synchronization device characterized by comprising
Positioned at the sync-request frame sending module of first base station, for sending sync-request frame to the second base station;Second base It stands for sending synchronous response frame to the server according to the sync-request frame;The server is used for according to the synchronization Acknowledgement frame determines the system time of the first base station and the first system time difference of fiducial time;
Positioned at the system time difference receiving module of the first base station, when for receiving the first system of the server transmission Difference;
First time positioned at the first base station adjusts module, for using the first system time difference, carries out time adjustment.
59. device according to claim 58, which is characterized in that the sync-request frame sending module includes:
Enabled instruction receiving submodule, for receiving the enabled instruction of server transmission,
Sync-request frame sending submodule, for sending sync-request frame to the second base station according to the enabled instruction.
60. the device according to claim 58 or 59, which is characterized in that the first time adjusts module and includes:
First time adjusting submodule adjusts local system time, or, adjustment hair for using the first system time difference It delivers letters and marks the time of radio frames beacon.
61. a kind of base station synchronization device characterized by comprising
Sync-request frame receiving module positioned at the second base station, for receiving the sync-request frame of first base station transmission;
Synchronous response frame sending module positioned at second base station, it is same for being sent according to the sync-request frame to server Walk acknowledgement frame;The server is used for according to the synchronous response frame, when determining the system time and benchmark of second base station Between the second system time difference;
Second system time difference receiving module positioned at second base station, second system sent for receiving the server It unites the time difference;
The second time regulating module positioned at second base station carries out time adjustment for using the second system time difference.
62. device according to claim 61, which is characterized in that second time regulating module includes:
Second time adjusting submodule adjusts local system time, or, adjustment hair for using the second system time difference It delivers letters and marks the time of radio frames beacon.
63. a kind of device characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made Obtain one or more of described device execution as described in claim 1-10 or 11-20 or 21-23 or 24-26 or 27-29 or 30-31 A method.
64. one or more machine readable medias, are stored thereon with instruction, when executed by one or more processors, so that Device executes one or more sides as described in claim 1-10 or 11-20 or 21-23 or 24-26 or 27-29 or 30-31 Method.
CN201710985486.2A 2017-10-20 2017-10-20 Base station synchronization method and device Active CN109699068B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201710985486.2A CN109699068B (en) 2017-10-20 2017-10-20 Base station synchronization method and device
TW107128739A TW201918100A (en) 2017-10-20 2018-08-17 Base station synchronization method and device
PCT/CN2018/109549 WO2019076214A1 (en) 2017-10-20 2018-10-10 Base station synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710985486.2A CN109699068B (en) 2017-10-20 2017-10-20 Base station synchronization method and device

Publications (2)

Publication Number Publication Date
CN109699068A true CN109699068A (en) 2019-04-30
CN109699068B CN109699068B (en) 2021-05-28

Family

ID=66174280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710985486.2A Active CN109699068B (en) 2017-10-20 2017-10-20 Base station synchronization method and device

Country Status (3)

Country Link
CN (1) CN109699068B (en)
TW (1) TW201918100A (en)
WO (1) WO2019076214A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107169A (en) * 2020-02-10 2020-05-05 中国人民解放军32021部队 Time management method based on WEB browser
CN113079562A (en) * 2020-01-06 2021-07-06 广东博智林机器人有限公司 Time synchronization method and device between base stations and electronic equipment
CN113395753A (en) * 2021-08-17 2021-09-14 汉朔科技股份有限公司 Method and system for synchronizing wireless terminal and base station and wireless terminal

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946002A (en) * 2006-09-30 2007-04-11 华为技术有限公司 Clock synchronizing method between base stations
CN102833685A (en) * 2005-03-25 2012-12-19 桥扬科技有限公司 Methods and apparatus for cellular broadcasting and communication system
US20130154877A1 (en) * 2011-12-14 2013-06-20 Samsung Electronics Co., Ltd. Wireless communication system and time synchronization method thereof
US20150016445A1 (en) * 2013-07-10 2015-01-15 Arvind Garg Wireless communication apparatus and method
CN104349450A (en) * 2013-07-30 2015-02-11 上海贝尔股份有限公司 A method and apparatus for clock synchronizing
CN105515710A (en) * 2011-01-26 2016-04-20 华为技术有限公司 Method and device for realizing time synchronization
CN105682215A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Clock synchronization method and device as well as cascaded base station system
CN105960820A (en) * 2014-10-31 2016-09-21 华为技术有限公司 Synchronization device and method
US20160352447A1 (en) * 2013-02-20 2016-12-01 Telefonaktiebolaget L M Ericsson (Publ) Systems and methods of triggering interference mitigation without resource partitioning
CN106358283A (en) * 2015-07-17 2017-01-25 ***通信集团公司 Time synchronizing method, base station, transmission equipment and system
US20170091726A1 (en) * 2015-09-07 2017-03-30 NXT-ID, Inc. Low bandwidth crypto currency transaction execution and synchronization method and system
CN106656385A (en) * 2015-10-29 2017-05-10 华为技术有限公司 Air interface time synchronization method and device for relay system
CN106899370A (en) * 2015-12-18 2017-06-27 中兴通讯股份有限公司 A kind of clock chain circuit changing method, device and base station
CN106911414A (en) * 2015-12-22 2017-06-30 中兴通讯股份有限公司 Clock synchronizing method and device
CN107113760A (en) * 2014-12-31 2017-08-29 高通股份有限公司 Determine Network Synchronization state
CN107231208A (en) * 2017-07-19 2017-10-03 京信通信***(中国)有限公司 A kind of clock synchronizing method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8427987B2 (en) * 2008-07-09 2013-04-23 Rockwell Automation Technologies, Inc. System and method for time synchronized beacon enabled wireless personal area network communication
CN103813382B (en) * 2012-11-14 2018-03-27 华为技术有限公司 Clock synchronizing method, equipment and system
CN105611621B (en) * 2016-01-14 2019-03-29 南京航空航天大学 A kind of master-slave synchronisation method suitable for multi-hop wireless sensor network
CN106961312B (en) * 2017-05-06 2018-08-17 西北工业大学 A kind of structure of network instrument clock synchronization system and method

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833685A (en) * 2005-03-25 2012-12-19 桥扬科技有限公司 Methods and apparatus for cellular broadcasting and communication system
CN1946002A (en) * 2006-09-30 2007-04-11 华为技术有限公司 Clock synchronizing method between base stations
CN105515710A (en) * 2011-01-26 2016-04-20 华为技术有限公司 Method and device for realizing time synchronization
US20130154877A1 (en) * 2011-12-14 2013-06-20 Samsung Electronics Co., Ltd. Wireless communication system and time synchronization method thereof
US20160352447A1 (en) * 2013-02-20 2016-12-01 Telefonaktiebolaget L M Ericsson (Publ) Systems and methods of triggering interference mitigation without resource partitioning
US20150016445A1 (en) * 2013-07-10 2015-01-15 Arvind Garg Wireless communication apparatus and method
CN104349450A (en) * 2013-07-30 2015-02-11 上海贝尔股份有限公司 A method and apparatus for clock synchronizing
CN105960820A (en) * 2014-10-31 2016-09-21 华为技术有限公司 Synchronization device and method
CN105682215A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Clock synchronization method and device as well as cascaded base station system
CN107113760A (en) * 2014-12-31 2017-08-29 高通股份有限公司 Determine Network Synchronization state
CN106358283A (en) * 2015-07-17 2017-01-25 ***通信集团公司 Time synchronizing method, base station, transmission equipment and system
US20170091726A1 (en) * 2015-09-07 2017-03-30 NXT-ID, Inc. Low bandwidth crypto currency transaction execution and synchronization method and system
CN106656385A (en) * 2015-10-29 2017-05-10 华为技术有限公司 Air interface time synchronization method and device for relay system
CN106899370A (en) * 2015-12-18 2017-06-27 中兴通讯股份有限公司 A kind of clock chain circuit changing method, device and base station
CN106911414A (en) * 2015-12-22 2017-06-30 中兴通讯股份有限公司 Clock synchronizing method and device
CN107231208A (en) * 2017-07-19 2017-10-03 京信通信***(中国)有限公司 A kind of clock synchronizing method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079562A (en) * 2020-01-06 2021-07-06 广东博智林机器人有限公司 Time synchronization method and device between base stations and electronic equipment
CN113079562B (en) * 2020-01-06 2022-06-03 广东博智林机器人有限公司 Time synchronization method and device between base stations and electronic equipment
CN111107169A (en) * 2020-02-10 2020-05-05 中国人民解放军32021部队 Time management method based on WEB browser
CN113395753A (en) * 2021-08-17 2021-09-14 汉朔科技股份有限公司 Method and system for synchronizing wireless terminal and base station and wireless terminal
CN113395753B (en) * 2021-08-17 2021-12-14 汉朔科技股份有限公司 Method and system for synchronizing wireless terminal and base station and wireless terminal

Also Published As

Publication number Publication date
WO2019076214A1 (en) 2019-04-25
CN109699068B (en) 2021-05-28
TW201918100A (en) 2019-05-01

Similar Documents

Publication Publication Date Title
EP3047692B1 (en) Devices and methods for sending or receiving assistance data
US20220393820A1 (en) Accurate Sidelink Positioning Reference Signal Transmission Timing
US8837316B2 (en) RTT based ranging system and method
CN107182123B (en) A kind of synchronous method and synchronization system of UWB positioning system
CN105610534B (en) A kind of multistation method for synchronizing time and equipment
EP2621117A1 (en) Methods and apparatus for time synchronization and measurement of power distribution systems
AU2016204607B2 (en) Determining location of a user device
CN109699068A (en) A kind of base station synchronization method and device
WO2009129344A1 (en) Location services based on positioned wireless measurement reports
EP2765813A1 (en) High-precision time tagging for content synthesization
CN110168396A (en) Arrival time (TOA) measurement
US20200169345A1 (en) Methods and devices for synchronization in communication networks
CN109327899A (en) A kind of method, apparatus and system synchronization time of mobile unit synchronization time
CN108700666A (en) A kind of localization method, equipment and system
US11212766B2 (en) Data transmission methods, apparatuses, base stations and servers
WO2015154461A1 (en) Parameter configuration method and apparatus for wifi device, and terminal
CN110221243A (en) A kind of localization method and system of communication network
TWI577218B (en) Method and apparatus for access point location token
WO2018112693A1 (en) Terminal positioning method and device
CN108632979A (en) A kind of method, apparatus and equipment of optimization time synchronization error
CN114499816B (en) Clock synchronization method and device, terminal equipment and readable storage medium
JP2016057169A (en) Method for comparing time of clocks and method for correcting time of clock
CN114051276B (en) Serial time code time service method, system and electronic equipment
Palamà et al. Experimental assessment of SDR-based 5G positioning: methodologies and insights
CN110417501A (en) Communication means and communication device

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