[go: up one dir, main page]

CN109699068B - Base station synchronization method and device - Google Patents

Base station synchronization method and device Download PDF

Info

Publication number
CN109699068B
CN109699068B CN201710985486.2A CN201710985486A CN109699068B CN 109699068 B CN109699068 B CN 109699068B CN 201710985486 A CN201710985486 A CN 201710985486A CN 109699068 B CN109699068 B CN 109699068B
Authority
CN
China
Prior art keywords
base station
time difference
system time
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.)
Active
Application number
CN201710985486.2A
Other languages
Chinese (zh)
Other versions
CN109699068A (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

Images

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 application provides a base station synchronization method and a base station synchronization device, wherein the method comprises the following steps: the server determines a first base station; the server receives a synchronous response frame sent by the second base station; the synchronous response frame comprises a sending time stamp of the first base station sending the synchronous request frame and a receiving time stamp of the second base station receiving the synchronous request frame; the server calculates a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronization request frame; the server sends the first system time difference to a corresponding first base station and sends the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting the time according to the corresponding second system time difference. In the embodiment of the application, each base station in the whole network can realize the synchronization with the reference time according to the corresponding system time difference.

Description

Base station synchronization method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a base station synchronization method and a base station synchronization apparatus.
Background
The internet of things technology is the third information technology revolution after computers and the internet, has the advantages of real-time performance, interactivity and the like, and is widely applied to multiple fields of city management, digital families, positioning navigation, logistics management, security systems and the like. The LoRa is an ultra-long distance transmission scheme based on a spread spectrum technology in the Internet of things, and has the characteristics of long transmission distance, low power consumption, multiple nodes, low cost and the like.
In the existing data transmission method, the LoRa network generally includes a terminal, a base station, and a server.
For the terminal in the Class B mode, the base station periodically broadcasts the beacon radio frame beacon frame in a downlink mode at regular time, the terminal utilizes the beacon radio frame to calibrate the time of the terminal, and calculates the time slot for receiving the downlink message by the terminal according to the time. However, due to crystal oscillator offset and other factors, the time error of the base station will accumulate over time, so that the system time of each base station cannot be kept synchronous. The synchronization of the downlink beacon radio frame transmission of each base station cannot be guaranteed.
In order to ensure that the System time of each base station is kept synchronous, in the prior art, the base station needs to additionally provide a Global Positioning System (GPS), and the time of the GPS is used as the System time of the base station, so as to realize the time synchronization of each base station. However, in this way, the base station needs to be configured with an additional global positioning system, which increases the cost of data transmission; and signals of the global positioning system are also easily limited by the environment, such as being blocked by buildings or trees, weather interference and the like, so that the system time synchronization among the base stations is influenced.
Disclosure of Invention
In view of the above problems, embodiments of the present application are proposed to provide a base station synchronization method and a corresponding base station synchronization apparatus that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present application discloses a base station synchronization method, including:
the server determines a first base station;
the server receives a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
the server calculates a first system time difference between the first base station and a reference time and a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronization request frame;
the server sends the first system time difference to a corresponding first base station and sends the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
Preferably, the step of calculating, by the server, a first system time difference between the first base station and a reference time according to the transmission time stamp and the reception time stamp of the synchronization request frame, and calculating a second system time difference between the second base station and the reference time includes:
the server determines the measurement transmission time length according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server calculates a measurement difference value between the measurement transmission time length and a real transmission time length of a preset wireless frame, and the measurement difference value is used as a system time difference of the first base station and the second base station;
and the server calculates a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
Preferably, the step of calculating, by the server, a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station includes:
the server selects the system time of the first base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
Preferably, the step of calculating, by the server, a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station includes:
the server selects the system time of the second base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
Preferably, the step of calculating, by the server, a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station includes:
the server selects the time of the clock reference equipment as reference time;
the server calculates a first system time difference between the first base station and the reference time;
and the server calculates a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
Preferably, the step of calculating, by the server, a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station includes:
the server selects the time of the clock reference equipment as reference time;
the server calculates a second system time difference between the second base station and the reference time;
and the server calculates a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
Preferably, the method further comprises the following steps:
the server sends a starting instruction to the first base station; and the first base station is used for sending a synchronization request frame to the second base station according to the starting instruction.
Preferably, the step of the server determining the first base station includes:
in the initial time synchronization process, the server determines the whole network base station as a first base station.
Preferably, the step of the server determining the first base station further includes:
in the second time synchronization process, the server selects a part of base stations from the whole network base stations as the first base stations.
Preferably, the step of the server determining the first base station further includes:
in the time synchronization processing after the second time of time synchronization processing, the server determines the second base station in the last time of time synchronization processing as a third base station;
and the server determines the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization processing as the first base station.
The embodiment of the application also discloses a base station synchronization method, which comprises the following steps:
the server determines a first base station;
the server receives a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station;
the server determines a first system time difference between the system time of the first base station and a reference time and determines a second system time difference between the system time of the second base station and the reference time by using the synchronous response frame;
the server sends the first system time difference to a corresponding first base station and sends the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
Preferably, the synchronization response frame includes a transmission time stamp when the first base station transmits the synchronization request frame, and a reception time stamp when the second base station receives the synchronization request frame; the step of determining, by the server, a first system time difference between the system time of the first base station and the reference time and determining a second system time difference between the system time of the second base station and the reference time by using the synchronization response frame includes:
the server determines the measurement transmission time length according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server calculates a measurement difference value between the measurement transmission time length and a real transmission time length of a preset wireless frame, and the measurement difference value is used as a system time difference of the first base station and the second base station;
and the server calculates a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
Preferably, the step of calculating, by the server, a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station includes:
the server selects the system time of the first base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
Preferably, the step of calculating, by the server, a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station includes:
the server selects the system time of the second base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
Preferably, the step of calculating, by the server, a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station includes:
the server selects the time of the clock reference equipment as reference time;
the server calculates a first system time difference between the first base station and the reference time;
and the server calculates a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
Preferably, the step of calculating, by the server, a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station includes:
the server selects the time of the clock reference equipment as reference time;
the server calculates a second system time difference between the second base station and the reference time;
and the server calculates a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
Preferably, the method further comprises the following steps:
the server sends a starting instruction to the first base station; and the first base station is used for sending a synchronization request frame to the second base station according to the starting instruction.
Preferably, the step of the server determining the first base station includes:
in the initial time synchronization process, the server determines the whole network base station as a first base station.
Preferably, the step of the server determining the first base station further includes:
in the second time synchronization process, the server selects a part of base stations from the whole network base stations as the first base stations.
Preferably, the step of the server determining the first base station further includes:
in the time synchronization processing after the second time of time synchronization processing, the server determines the second base station in the last time of time synchronization processing as a third base station;
and the server determines the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization processing as the first base station.
The embodiment of the application also discloses a base station synchronization method, which comprises the following steps:
the server determines a first base station;
the server receives a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
the server calculates a first system time difference between the first base station and reference time according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server sends the first system time difference to a corresponding first base station; and the first base station is used for adjusting time according to the corresponding first system time difference.
Preferably, the step of calculating, by the server, the first system time difference between the first base station and the reference time according to the transmission time stamp and the reception time stamp of the synchronization request frame includes:
the server determines the measurement transmission time length according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server calculates a measurement difference value between the measurement transmission time length and a real transmission time length of a preset wireless frame, and the measurement difference value is used as a system time difference of the first base station and the second base station;
and the server calculates a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
Preferably, the step of calculating, by the server, a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station includes:
the server selects the system time of the second base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
The embodiment of the application also discloses a base station synchronization method, which comprises the following steps:
the server determines a first base station;
the server receives a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
the server calculates a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server sends the second system time difference to a corresponding second base station; and the second base station is used for adjusting time according to the corresponding second system time difference.
Preferably, the step of calculating, by the server, the second system time difference between the second base station and the reference time according to the transmission time stamp and the reception time stamp of the synchronization request frame includes:
the server determines the measurement transmission time length according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server calculates a measurement difference value between the measurement transmission time length and a real transmission time length of a preset wireless frame, and the measurement difference value is used as a system time difference of the first base station and the second base station;
and the server calculates a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
Preferably, the step of calculating, by the server, a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station includes:
the server selects the system time of the first base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
The embodiment of the application also discloses a base station synchronization method, which comprises the following steps:
a first base station sends a synchronization request frame to a second base station; the second base station is used for sending a synchronization response frame to the server according to the synchronization request frame; the server is used for determining a first system time difference between the system time of the first base station and the reference time according to the synchronous response frame;
the first base station receives the first system time difference sent by the server;
and the first base station adjusts the time by adopting the first system time difference.
Preferably, the step of the first base station sending the synchronization request frame to the second base station includes:
the first base station receives the starting instruction sent by the server,
and the first base station sends a synchronization request frame to the second base station according to the starting instruction.
Preferably, the step of adjusting the time by the first base station using the first system time difference includes:
and the first base station adjusts local system time or adjusts the time for sending the beacon wireless frame beacon by adopting the first system time difference.
The embodiment of the application also discloses a base station synchronization method, which comprises the following steps:
the second base station receives a synchronization request frame sent by the first base station;
the second base station sends a synchronous response frame to a server according to the synchronous request frame; the server is used for determining a second system time difference between the system time of the second base station and the reference time according to the synchronous response frame;
the second base station receives the second system time difference sent by the server;
and the second base station adjusts the time by adopting the second system time difference.
Preferably, the step of performing, by the second base station, time adjustment processing using the second system time difference includes:
and the second base station adjusts local system time or adjusts the time for sending the beacon wireless frame beacon by adopting the second system time difference.
The embodiment of the present application further discloses a base station synchronization apparatus, including:
a first base station determining module located in the server, configured to determine a first base station;
the synchronous response frame receiving module is positioned at the server and used for receiving a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
a system time difference calculation module located in the server, configured to calculate a first system time difference between the first base station and a reference time and calculate a second system time difference between the second base station and the reference time according to a sending time stamp and a receiving time stamp of a synchronization request frame;
a system time difference sending module located in the server, configured to send the first system time difference to a corresponding first base station, and send the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
Preferably, the system time difference calculation module includes:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a first system time difference between the first base station and the reference time and calculating a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
Preferably, the reference time difference determination submodule includes:
a first reference time selecting unit, configured to select a system time of the first base station as a reference time;
and a first reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
Preferably, the reference time difference determination submodule includes:
a second reference time selecting unit, configured to select a system time of the second base station as a reference time;
and a second reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
Preferably, the reference time difference determination submodule includes:
the third reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a third reference time difference determining unit configured to calculate a first system time difference between the first base station and the reference time;
and a fourth reference time difference determining unit, configured to calculate a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
Preferably, the reference time difference determination submodule includes:
the fourth reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a fifth reference time difference determining unit configured to calculate a second system time difference between the second base station and the reference time;
and a sixth reference time difference determining unit, configured to calculate a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
Preferably, the method further comprises the following steps:
the starting instruction sending module is positioned on the server and used for sending a starting instruction to the first base station; and the first base station is used for sending a synchronization request frame to the second base station according to the starting instruction.
Preferably, the first base station determining module includes:
and the first determining submodule is used for determining the whole network base station as the first base station by the server in the primary time synchronization processing.
Preferably, the first base station determining module further includes:
and the second determining submodule is used for selecting part of base stations from the whole network base stations as the first base station in the second time of time synchronization processing.
Preferably, the first base station determining module further includes:
a third base station determining submodule, configured to determine, in time synchronization processing after the second time of time synchronization processing, the second base station in the last time of time synchronization processing as a third base station;
and the third determining submodule is used for determining the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization processing as the first base station.
The embodiment of the present application further discloses a base station synchronization apparatus, including:
a first base station determining module located in the server, configured to determine a first base station;
a synchronous response frame receiving module located in the server, configured to receive a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station;
a system time difference calculation module located in the server, configured to determine, by using the synchronization response frame, a first system time difference between the system time of the first base station and a reference time, and determine a second system time difference between the system time of the second base station and the reference time;
a system time difference sending module located in the server, configured to send the first system time difference to a corresponding first base station, and send the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
Preferably, the synchronization response frame includes a transmission time stamp when the first base station transmits the synchronization request frame, and a reception time stamp when the second base station receives the synchronization request frame; the system time difference calculation module includes:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a first system time difference between the first base station and the reference time and calculating a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
Preferably, the reference time difference determination submodule includes:
a first reference time selecting unit, configured to select a system time of the first base station as a reference time;
and a first reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
Preferably, the reference time difference determination submodule includes:
a second reference time selecting unit, configured to select a system time of the second base station as a reference time;
and a second reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
Preferably, the reference time difference determination submodule includes:
the third reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a third reference time difference determining unit configured to calculate a first system time difference between the first base station and the reference time;
and a fourth reference time difference determining unit, configured to calculate a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
Preferably, the reference time difference determination submodule includes:
the fourth reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a fifth reference time difference determining unit configured to calculate a second system time difference between the second base station and the reference time;
and a sixth reference time difference determining unit, configured to calculate a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
Preferably, the method further comprises the following steps:
the starting instruction sending module is positioned on the server and used for sending a starting instruction to the first base station; and the first base station is used for sending a synchronization request frame to the second base station according to the starting instruction.
Preferably, the first base station determining module includes:
and the first determining submodule is used for determining the whole network base station as the first base station in the primary time synchronization processing.
Preferably, the first base station determining module further includes:
and the second determining submodule is used for selecting part of base stations from the whole network base stations as the first base station in the second time of time synchronization processing.
Preferably, the first base station determining module further includes:
a third base station determining submodule, configured to determine, in time synchronization processing after the second time of time synchronization processing, the second base station in the last time of time synchronization processing as a third base station;
and the third determining submodule is used for determining the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization processing as the first base station.
The embodiment of the present application further discloses a base station synchronization apparatus, including:
a first base station determining module located in the server, configured to determine a first base station;
the synchronous response frame receiving module is positioned at the server and used for receiving a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
the system time difference calculation module is positioned in the server and used for calculating a first system time difference between the first base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronous request frame;
a system time difference sending module located in the server, configured to send the first system time difference to a corresponding first base station; and the first base station is used for adjusting time according to the corresponding first system time difference.
Preferably, the system time difference calculation module includes:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
Preferably, the reference time difference determination submodule includes:
a reference time selecting unit, configured to select a system time of the second base station as a reference time;
and a reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
The embodiment of the present application further discloses a base station synchronization apparatus, including:
a first base station determining module located in the server, configured to determine a first base station;
the synchronous response frame receiving module is positioned at the server and used for receiving a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
a system time difference calculation module located in the server, configured to calculate a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronization request frame;
a system time difference sending module located in the server, configured to send the second system time difference to a corresponding second base station; and the second base station is used for adjusting time according to the corresponding second system time difference.
Preferably, the system time difference calculation module includes:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
Preferably, the reference time difference determination submodule includes:
a reference time selecting unit, configured to select a system time of the first base station as a reference time;
and a reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
The embodiment of the present application further discloses a base station synchronization apparatus, including:
a synchronization request frame sending module located at the first base station, configured to send a synchronization request frame to the second base station; the second base station is used for sending a synchronization response frame to the server according to the synchronization request frame; the server is used for determining a first system time difference between the system time of the first base station and the reference time according to the synchronous response frame;
a system time difference receiving module located at the first base station, configured to receive the first system time difference sent by the server;
and the first time adjusting module is positioned at the first base station and used for adjusting time by adopting the first system time difference.
Preferably, the synchronization request frame sending module includes:
a starting instruction receiving submodule for receiving a starting instruction sent by the server,
and the synchronization request frame sending submodule is used for sending the synchronization request frame to the second base station according to the starting instruction.
Preferably, the first time adjustment module includes:
and the first time adjusting submodule is used for adjusting the local system time or adjusting the time for sending the beacon wireless frame beacon by adopting the first system time difference.
The embodiment of the present application further discloses a base station synchronization apparatus, including:
a synchronization request frame receiving module located at the second base station, configured to receive a synchronization request frame sent by the first base station;
a synchronous response frame sending module located in the second base station, configured to send a synchronous response frame to a server according to the synchronous request frame; the server is used for determining a second system time difference between the system time of the second base station and the reference time according to the synchronous response frame;
a second system time difference receiving module located at the second base station, configured to receive the second system time difference sent by the server;
and the second time adjusting module is positioned at the second base station and used for adjusting the time by adopting the second system time difference.
Preferably, the second time adjustment module includes:
and the second time adjusting submodule is used for adjusting the local system time or adjusting the time for sending the beacon wireless frame beacon by adopting the second system time difference.
The embodiment of the application also discloses a device, including:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform one or more methods as described above.
Embodiments of the application also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform one or more methods as described above.
The embodiment of the application has the following advantages:
in the embodiment of the application, each base station in the whole network can realize the synchronization with the reference time according to the corresponding system time difference. In addition, the synchronization method of the embodiment of the application does not depend on time service of the global positioning system, so that the problem that data transmission cost is increased due to the fact that the global positioning system is arranged in each base station is solved, the problem that data transmission is difficult to perform reliably due to the fact that each base station cannot accurately receive positioning signals is also reduced, namely, the data transmission cost is reduced, and the reliability of data transmission is improved.
Each base station can adjust the local system time according to the corresponding system time difference, thereby ensuring the time synchronization of each base station. Or each base station can adjust the time for sending the beacon wireless frame beacon according to the corresponding system time difference, thereby ensuring the synchronization of sending the beacon wireless frame beacon among the base stations.
Drawings
Fig. 1 is a flowchart of steps of an embodiment 1 of a base station synchronization method according to the present application;
fig. 2 is a flowchart of steps of an embodiment 2 of a base station synchronization method according to the present application;
FIG. 3 is a schematic diagram of a primary time synchronization process in an embodiment of the present application;
FIG. 4 is a schematic diagram of time synchronization processing after initial time synchronization processing in the embodiment of the present application;
fig. 5 is a flowchart of steps of an embodiment 3 of a base station synchronization method according to the present application;
fig. 6 is a flowchart of steps of an embodiment 4 of a base station synchronization method according to the present application;
fig. 7 is a flowchart of steps of an embodiment 5 of a base station synchronization method according to the present application;
fig. 8 is a flowchart of steps of an embodiment 6 of a base station synchronization method according to the present application;
fig. 9 is a flowchart of steps of an embodiment 7 of a base station synchronization method according to the present application;
fig. 10 is a flowchart of steps of an embodiment 8 of a base station synchronization method according to the present application;
fig. 11 is a block diagram of a base station synchronization apparatus according to embodiment 1 of the present application;
fig. 12 is a block diagram of a base station synchronization apparatus according to embodiment 2 of the present application;
fig. 13 is a block diagram of a base station synchronization apparatus according to embodiment 3 of the present application;
fig. 14 is a block diagram of a base station synchronization apparatus according to embodiment 4 of the present application;
fig. 15 is a block diagram of a base station synchronization apparatus according to embodiment 5 of the present application;
fig. 16 is a block diagram of a base station synchronization apparatus according to embodiment 6 of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
The LoRa network consists of terminal nodes, base station nodes and a server. The terminal has an LoRa network connection capability and accesses the LoRa network. According to different application scenarios deployed by the LoRa network, the terminal may include different electronic devices, for example, when the LoRa network is applied in city management, the terminal may include a smart meter; when the LoRa network is applied to a digital home, the terminal may include various smart appliances and the like.
The base station, also called gateway or concentrator in the LoRa network, has a wireless connection convergence function, and includes that the terminal provides an entrance for accessing the LoRa network, and forwards data from the server or the terminal, so as to realize data interaction between the terminal and the server. Of course, the base station can also perform data interaction with other base stations within the signal coverage of the base station by transmitting radio frames.
The server may include a server or a server cluster, and is configured to perform service processing according to data acquired from a base station or a terminal, and control an operating mode and an operating state of the base station or the terminal.
Referring to fig. 1, a flowchart illustrating steps of embodiment 1 of a base station synchronization method according to the present application is shown, which may specifically include the following steps:
step 101, a server determines a first base station;
in the LoRa network, all network base stations are connected to a server.
In the embodiment of the application, when the server needs to perform time synchronization processing on the base stations, the server firstly selects a part of or all the base stations from the base stations in the whole network as the first base station.
Step 102, the server receives a synchronization response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station;
the first base station sends a synchronization request frame to the second base station through an LoRa channel. And after receiving the synchronization request frame, the second base station generates a synchronization response frame and sends the synchronization response frame to the server.
In this embodiment, the synchronization request frame is a radio frame. The synchronization response frame may be a wireless frame or a wired frame.
In this embodiment, the same second base station may receive synchronization request frames sent by multiple first base stations. The second base station generates a synchronization response frame for each synchronization request frame and transmits the synchronization response frame to the server.
103, the server determines a first system time difference between the system time of the first base station and a reference time and determines a second system time difference between the system time of the second base station and the reference time by using the synchronous response frame;
in this embodiment, the server may receive synchronization response frames sent by a plurality of second base stations. The server determines, for each synchronization response frame, a first system time difference of the system time of the respective first base station from the reference time, and a second system time difference of the system time of the respective second base station from the reference time.
The reference time may be a system time of one of the plurality of first base stations and the plurality of second base stations. When the system time difference between one base station and the reference time is determined, the system time difference between each base station and the reference time can be calculated according to the system time difference between each base station.
For example, the LoRa network includes: base station 1, base station 2, base station 3 and a server. Base station 1 and base station 2 both send a synchronization request frame to base station 3.
The base station 3 generates a synchronization response frame for the synchronization request frame of the base station 1 and a synchronization response frame for the synchronization request frame of the base station 2.
The server may select one system time from the system time of the base station 1, the system time of the base station 2, or the system time of the base station 3 as the reference time.
If the server selects the system time of the base station 1 as the reference time, the server may calculate the second system time difference between the system time of the base station 3 and the reference time from the synchronization response frame to the synchronization request frame of the base station 1 sent by the base station 3. Since the system time of the base station 1 is the reference time, i.e. the first system time difference between the system time of the base station 1 and the reference time is 0.
The server may calculate the system time difference between the base station 2 and the base station 3 from the synchronization response frame sent by the base station 3 for the synchronization request frame of the base station 2, and then calculate the first system time difference between the base station 2 and the reference time from the system time difference between the base station 3 and the reference time.
Step 104, the server sends the first system time difference to a corresponding first base station, and sends the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
In the embodiment of the application, the server sends the system time difference between each base station and the reference time to each corresponding base station. Each base station may perform time adjustment based on the corresponding system time difference. The time adjustment may include: and adjusting local system time, or adjusting the time for sending the beacon wireless frame beacon to the terminal in the Class B mode.
For example, when the bs 1 knows the system time difference between itself and the reference time, the bs 1 may choose to adjust the local system time, and then use the modified system time to control the transmission time of the beacon radio frame beacon, or directly use the own system time plus the system time difference to control the transmission time of the beacon radio frame beacon without modifying the local system time.
In the embodiment of the application, each base station in the whole network can realize the synchronization with the reference time according to the corresponding system time difference. In addition, the synchronization method of the embodiment of the application does not depend on time service of the global positioning system, so that the problem that data transmission cost is increased due to the fact that the global positioning system is arranged in each base station is solved, the problem that data transmission is difficult to perform reliably due to the fact that each base station cannot accurately receive positioning signals is also reduced, namely, the data transmission cost is reduced, and the reliability of data transmission is improved.
Each base station can adjust the local system time according to the corresponding system time difference, thereby ensuring the time synchronization of each base station. Or each base station can adjust the time for sending the beacon wireless frame beacon according to the corresponding system time difference, thereby ensuring the synchronization of sending the beacon wireless frame beacon among the base stations.
Referring to fig. 2, a flowchart of steps of embodiment 2 of a base station synchronization method according to the present application is shown, which may specifically include the following steps:
step 201, a server determines a first base station;
in an example of the embodiment of the present application, if the server is performing the initial time synchronization process, the server determines the full-network base station as the first base station. That is, all base stations transmit a synchronization request frame.
In the LoRa network, the first base station may transmit the synchronization request frame in a broadcast manner. Other base stations around a first base station may receive the synchronization request frame broadcast by the first base station. In the embodiment of the present application, the base station that receives the synchronization request frame is referred to as a second base station, and therefore, a certain base station is a first base station that transmits the synchronization request frame and is also a second base station that receives the synchronization request frame.
In the initial time synchronization process, all base stations in the whole network perform an interaction process with other synchronization request frames. Therefore, all base stations of the whole network can be synchronized with the reference time.
In another example of the embodiment of the present application, if the server is performing the second time synchronization process, the server selects a part of base stations from the network-wide base stations as the first base station.
In the second time synchronization process, the server may select only a part of the base stations from the base stations of the entire network as the first base stations.
For example, the server may select a base station with a global positioning system time service capability from the network-wide base stations only as the first base station.
In another example of the embodiment of the present application, if the server is a time synchronization process after performing the second time synchronization process, the server determines the second base station in the last time synchronization process as a third base station; and the server determines the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization as the first base station.
For example, in the fourth time synchronization process, the server searches for the second base station that received the synchronization request frame in the third time synchronization process, based on the record of the time synchronization process.
If the base station 4 is the second base station that receives the synchronization request frame transmitted by the base station 3 in the third time synchronization process, the server determines the base station 4 as the third base station.
The server searches for a base station that has received the synchronization request frame transmitted by the base station 4 in the initial time synchronization processing, based on the record of the time synchronization processing.
If the base station 5 and the base station 6 are base stations that have received the synchronization request frame transmitted from the base station 4 in the first time synchronization process, the server sets the base station 5 and the base station 6 as the first base station in the fourth time synchronization process.
Step 202, the server sends a starting instruction to a first base station; the first base station is used for sending a synchronization request frame to a second base station according to the starting instruction;
after the first base stations are selected, the server simultaneously sends starting instructions to the first base stations. And the first base station generates a synchronization request frame according to the starting instruction. And then transmits a synchronization request frame to the second base station on the LoRa channel.
Step 203, the server receives a synchronization response frame sent by the second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station;
and after receiving the synchronization request frame, the second base station generates a synchronization response frame and sends the synchronization response frame to the server.
In this embodiment, the synchronization request frame is a radio frame. The synchronization response frame may be a wireless frame or a wired frame.
Step 204, the server determines a first system time difference between the system time of the first base station and the reference time and determines a second system time difference between the system time of the second base station and the reference time by using the synchronous response frame;
in this embodiment, the server may select a system time of one of the first base station and the second base station as the reference time.
Step 205, the server sends the first system time difference to a corresponding first base station, and sends the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
In this embodiment, the synchronization response frame may include a transmission timestamp for the first base station to transmit the synchronization request frame, and a reception timestamp for the second base station to receive the synchronization request frame; the step 205 may comprise the following sub-steps:
in sub-step S11, the server determines a measurement transmission duration according to a transmission timestamp and a reception timestamp of a synchronization request frame, where the measurement transmission duration is a duration taken by the synchronization request frame from the first base station to the second base station to complete reception;
the transmission time stamp of the synchronization request frame may be added to the synchronization request frame by the first base station at the time of transmission of the synchronization request frame.
And after receiving the synchronization request frame, the second base station records the time at that time as a receiving time stamp. The second base station may add the transmission time stamp and the reception time stamp of the synchronization request frame to the synchronization response frame.
In the embodiment of the present application, a difference between a sending timestamp of a synchronization request frame and a receiving timestamp of the synchronization request frame may be used as a measurement transmission duration for the synchronization request frame to be sent from a first base station to a second base station to complete receiving.
For example, the second base station determines that the transmission time of the radio frame 1 is 1444440000000 microseconds according to the transmission timestamp carried by the radio frame 1, determines the reception timestamp of the radio frame 1 when the second base station receives the radio frame 1, and if the reception time of the radio frame 1 is 1444448000000 microseconds, the measured transmission time of the radio frame 1 is 1444448000000 and 1444440000000-8000000 microseconds.
In the substep S12, the server calculates a measurement difference between the measured transmission time and a real transmission time of a preset wireless frame, and uses the measurement difference as a system time difference between the first base station and the second base station;
the real transmission duration of a radio frame is the processing time of the radio frame when it is transmitted by a base station, the duration of the transmitted radio frame and the processing time of the radio frame when it is received by another base station. Since the transmission accuracy of a radio frame is high in the LoRa network, the real transmission duration for transmitting the radio frame between the bss is usually only related to the frame format of the radio frame, and therefore, the real transmission duration of the radio frame is fixed for the radio frame with the same frame format.
In the embodiment of the present application, the real transmission duration corresponding to the wireless frame may be determined in advance according to the frame format of the wireless frame, for example, the real transmission duration corresponding to the frame format of the wireless frame is obtained from the corresponding relationship between the frame format and the real transmission duration.
The corresponding relation between the frame format and the real transmission time length can be obtained by testing the transmission process of the wireless frames with different frame formats in advance and storing the real transmission time length obtained by testing and the corresponding frame format.
In this embodiment of the present application, preferably, in order to improve the accuracy of determining the real transmission duration and improve the accuracy of determining the system time difference between the first base station and the second base station, a round-trip duration of the radio frame going back and forth between the first base station and the second base station may be determined, and half of the round-trip duration is determined as the real transmission duration.
In the LoRa network, the timestamp determined by the base station has high precision, and can reach the microsecond level generally, so that the sending time and the receiving time of the radio frame can be accurately determined through the timestamp, and the difference value between the sending time and the receiving time is the measured transmission time of the radio frame. If the measured transmission time length is the same as the real transmission time length, the system time difference between the first base station and the second base station is 0, namely the system time of the first base station is synchronous with the system time of the second base station; if the measured transmission time length is different from the real transmission time length, the system time difference between the first base station and the second base station is not 0, and the difference value between the measured transmission time length and the real transmission time length is the system time difference.
In sub-step S13, the server calculates a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
In this embodiment, the server may receive synchronization response frames sent by a plurality of second base stations. The server determines, for each synchronization response frame, a first system time difference of the system time of the respective first base station from the reference time, and a second system time difference of the system time of the respective second base station from the reference time.
The reference time may be a system time of one of the plurality of first base stations and the plurality of second base stations. When the system time difference between one base station and the reference time is determined, the system time difference between each base station and the reference time can be calculated according to the system time difference between each base station.
In an example of the embodiment of the present application, the sub-step S13 may further include the following sub-steps:
substep S1301, the server selects the system time of the first base station as the reference time;
in sub-step S1302, the server uses the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
In another example of the embodiment of the present application, the sub-step S13 may further include the following sub-steps:
step S1303, the server selects a system time of the second base station as a reference time;
in sub-step S1304, the server uses the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
In this embodiment, the reference time may be a system time of the server, or may be a time of another clock reference device with higher precision, such as a cesium atomic clock.
The server may calculate a system time difference of one of the first base station and the second base station from a reference time. And then, calculating the system time difference between each base station and the base station time according to the system time difference between the base station and the reference time and the system time difference between each base station.
In yet another example of the embodiment of the present application, the sub-step S13 may further include the following sub-steps:
substep S1305, the server selects the time of the clock reference device as the reference time;
sub-step S1306, the server calculates a first system time difference between the first base station and the reference time;
in sub-step S1307, the server calculates a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
In yet another example of the embodiment of the present application, the sub-step S13 may further include the following sub-steps:
substep S1308, the server selects the time of the clock reference device as the reference time;
substep S1309, the server calculates a second system time difference between the second base station and the reference time;
in sub-step S1310, the server calculates a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
In order to enable those skilled in the art to better understand the embodiments of the present application, the following description is given by way of an example: fig. 3 is a schematic diagram illustrating a primary time synchronization process in the embodiment of the present application. Wherein the LoRa network includes: base station 1, base station 2, base station 3, base station 4, and a server.
And in the initial time synchronization process, the server takes all base stations in the whole network as first base stations. The server first sends a start instruction to base stations 1, 2, 3, and 4.
After receiving the start command, each base station broadcasts a synchronization request frame to the surrounding base stations. The synchronization request frame broadcasted by the base station 1 is received by the base station 2; the synchronization request frame broadcasted by the base station 2 is received by the base stations 1 and 3; the synchronization request frame broadcast by the base station 3 is received by the base stations 2 and 4; the synchronization request frame broadcast by the base station 4 is received by the base station 3.
After receiving the synchronization request frame, the base station generates a corresponding synchronization response frame for each synchronization request frame, and sends the synchronization response frame to the server.
For example, after receiving the synchronization request frames sent by the base stations 1 and 3, the base station 2 generates a synchronization response frame for the synchronization request frame of the base station 1 and a synchronization response frame for the synchronization request frame of the base station 3, respectively. The base station 2 transmits the two synchronization response frames to the server.
And the server calculates the system time difference between the corresponding first base station and the second base station according to each synchronous response frame.
The server may calculate the measured transmission time period between the base stations based on the transmission time stamp of the synchronization request frame transmitted by the base station and the reception time stamp of the synchronization request frame received by another base station. Then, the system time difference between the base stations is calculated according to the measured transmission time length and the real transmission time length measured in advance.
Specifically, the synchronization response frame for the synchronization request frame of the base station 1 includes: the base station 1 transmits a transmission time stamp of the synchronization request frame, and the base station 2 receives a reception time stamp of the synchronization request frame.
The server calculates the system time difference between the base station 1 and the base station 2 according to the sending time stamp of the synchronization request frame sent by the base station 1 and the receiving time stamp of the synchronization request frame received by the base station 2.
The synchronization response frame to the synchronization request frame of the base station 3 includes: the base station 3 transmits a transmission time stamp of the synchronization request frame, and the base station 2 receives a reception time stamp of the synchronization request frame.
The server calculates the system time difference between the base station 3 and the base station 2 according to the sending time stamp of the synchronization request frame sent by the base station 3 and the receiving time stamp of the synchronization request frame received by the base station 2.
After the system time differences between the base stations are calculated, one of the system times of the base stations can be selected as a reference time. And then, according to the system time difference between each base station, calculating the system time difference between each base station and the reference time.
And the server sends the system time difference between each base station and the reference time to the corresponding base station. And each base station adjusts the time according to the corresponding system time difference.
For example, the server calculates the system time difference between base station 1 and base station 2, the system time difference between base station 2 and base station 3, and the system time difference between base station 3 and base station 4.
And the server selects the system time of the base station 3 as the reference time, and the system time difference between the base station 2 and the base station 3 is the system time difference between the base station 2 and the reference time. The server can calculate the system time difference between the base station 1 and the base station 3, that is, the system time difference between the base station 1 and the reference time, according to the system time difference between the base station 1 and the base station 2 and the system time difference between the base station 2 and the base station 3.
In the time synchronization process after the initial time synchronization process, the server may select only a part of the base stations from the full-network base stations as the first base stations. Fig. 4 is a schematic diagram illustrating time synchronization processing after initial time synchronization processing in the embodiment of the present application. Wherein the server selects base station 1 and base station 3 as the first base station.
The server first transmits a start instruction to the base stations 1 and 3.
After receiving the start instruction, the base stations 1 and 3 broadcast the synchronization request frame to the surrounding base stations.
The synchronization request frame broadcasted by the base station 1 is received by the base station 2; the synchronization request frame broadcast by base station 3 will be received by base stations 2 and 4.
After receiving the synchronization request frame, the base station generates a corresponding synchronization response frame for each synchronization request frame, and sends the synchronization response frame to the server.
And the server calculates the system time difference between the corresponding first base station and the second base station according to each synchronous response frame. Specifically, the measurement transmission duration between the base stations may be calculated according to a timestamp of the base station sending the synchronization request frame and a timestamp of another base station receiving the synchronization request frame. Then, the system time difference between the base stations is calculated according to the measured transmission time length and the real transmission time length measured in advance.
After the system time differences between the base stations are calculated, one of the system times of the base stations can be selected as a reference time. And then, according to the system time difference between each base station, calculating the system time difference between each base station and the reference time.
And the server sends the system time difference between each base station and the reference time to the corresponding base station. And each base station adjusts the time according to the corresponding system time difference.
In the embodiment of the present application, the primary time synchronization process is different from the subsequent time synchronization process only in the way of selecting the first base station.
In the primary time synchronization processing, the server selects a whole-network base station as a first base station.
In the subsequent time synchronization process, the server selects a part of base stations from the base stations of the whole network as first base stations.
Preferably, in the time synchronization process after the second time synchronization process, the server determines the second base station in the last time synchronization process as a third base station; and the server determines the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization as the first base station.
Referring to fig. 5, a flowchart of steps of embodiment 3 of a base station synchronization method according to the present application is shown, which may specifically include the following steps:
step 301, a first base station sends a synchronization request frame to a second base station; the second base station is used for sending a synchronization response frame to the server according to the synchronization request frame; the server is used for determining a first system time difference between the system time of the first base station and the reference time according to the synchronous response frame;
in this embodiment, the synchronization request frame is a radio frame. The synchronization response frame may be a wireless frame or a wired frame.
In the embodiment of the present application, the step 301 may include the following sub-steps:
and sub-step S21, the first base station receives the start command sent by the server,
and a substep S22, the first base station sends a synchronization request frame to the second base station according to the start instruction.
In this embodiment, the first base station may send the synchronization request frame in a broadcast manner. And the second base station receiving the synchronization request frame sends a synchronization response frame to the server according to the synchronization request frame.
And the server determines the system time difference between the system time of the first base station and the reference time according to the synchronous response frame.
The method for determining the system time difference between the system time of the first base station and the reference time by the server according to the synchronization response frame may refer to the foregoing description, and details are not repeated here.
Step 302, the first base station receives the first system time difference sent by the server;
and step 303, the first base station adjusts time by using the first system time difference.
In this embodiment of the present application, the step 303 may include:
and the first base station adjusts local system time or adjusts the time for sending the beacon wireless frame beacon by adopting the first system time difference.
In the embodiment of the application, each first base station sends a synchronization request frame to a corresponding second base station, and the second base station sends a synchronization response frame to the server according to the synchronization request frame. And the server calculates the system time difference between the corresponding first base station and the reference time according to the synchronous response frame. Each first base station can adjust the local system time according to the corresponding system time difference, so that the time synchronization of each first base station is ensured. Or each first base station can adjust the time for sending the beacon wireless frame beacon according to the corresponding system time difference, so that the synchronization of sending the beacon wireless frame beacon among the first base stations is ensured.
Referring to fig. 6, a flowchart of steps of embodiment 4 of a base station synchronization method according to the present application is shown, which may specifically include the following steps:
step 401, a second base station receives a synchronization request frame sent by a first base station;
in an embodiment of the present application, the second base station may receive a synchronization request frame broadcast by the first base station.
Step 402, the second base station sends a synchronization response frame to a server according to the synchronization request frame; the server is used for determining a second system time difference between the system time of the second base station and the reference time according to the synchronous response frame;
in this embodiment, the synchronization request frame is a radio frame. The synchronization response frame may be a wireless frame or a wired frame.
In the embodiment of the application, the second base station which receives the synchronization request frame sends the synchronization response frame to the server according to the synchronization request frame.
And the server determines the system time difference between the system time of the second base station and the reference time according to the synchronous response frame.
The method for determining the system time difference between the system time of the first base station and the reference time by the server according to the synchronization response frame may refer to the foregoing description, and details are not repeated here.
Step 403, the second base station receives the second system time difference sent by the server;
and step 404, the second base station adjusts the time by adopting the second system time difference.
In this embodiment, the step 404 may include:
and the second base station adjusts local system time or adjusts the time for sending the beacon wireless frame beacon by adopting the second system time difference.
In the embodiment of the application, each first base station sends a synchronization request frame to a corresponding second base station, and the second base station sends a synchronization response frame to the server according to the synchronization request frame. And the server calculates the system time difference between the corresponding second base station and the reference time according to the synchronous response frame. Each second base station can adjust the local system time according to the corresponding system time difference, so that the time synchronization of each second base station is ensured. Or each second base station can adjust the time for sending the beacon wireless frame beacon according to the corresponding system time difference, so that the synchronization of sending the beacon wireless frame beacon among the second base stations is ensured.
Referring to fig. 7, a flowchart of steps of embodiment 5 of a base station synchronization method according to the present application is shown, which may specifically include the following steps:
step 501, a server determines a first base station;
step 502, the server receives a synchronization response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
step 503, the server calculates a first system time difference between the first base station and a reference time and calculates a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronization request frame;
step 504, the server sends the first system time difference to a corresponding first base station, and sends the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
The time adjustment may include: and adjusting local system time, or adjusting the time for sending the beacon wireless frame beacon to the terminal in the Class B mode.
In the embodiment of the application, each base station in the whole network can realize the synchronization with the reference time according to the corresponding system time difference. In addition, the synchronization method of the embodiment of the application does not depend on time service of the global positioning system, so that the problem that data transmission cost is increased due to the fact that the global positioning system is arranged in each base station is solved, the problem that data transmission is difficult to perform reliably due to the fact that each base station cannot accurately receive positioning signals is also reduced, namely, the data transmission cost is reduced, and the reliability of data transmission is improved.
Each base station can adjust the local system time according to the corresponding system time difference, thereby ensuring the time synchronization of each base station. Or each base station can adjust the time for sending the beacon wireless frame beacon according to the corresponding system time difference, thereby ensuring the synchronization of sending the beacon wireless frame beacon among the base stations.
Referring to fig. 8, a flowchart of steps of embodiment 6 of a base station synchronization method according to the present application is shown, which may specifically include the following steps:
601, the server determines a first base station;
in one example in the embodiment of the present application, if the server is performing the initial time synchronization process, the server determines the full-network base station as the first base station.
In another example in the embodiment of the present application, if the server is performing the second time synchronization process, the server selects a part of base stations from the network-wide base stations as the first base station.
In still another example in the embodiment of the present application, if the server is a time synchronization process after performing the second time synchronization process, the server determines the second base station in the last time synchronization process as a third base station; and the server determines the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization as the first base station.
Step 602, the server sends a starting instruction to a first base station; and the first base station is used for sending a synchronization request frame to the second base station according to the starting instruction.
Step 603, the server receives a synchronization response frame sent by the second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
step 604, the server calculates a first system time difference between the first base station and a reference time and a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronization request frame;
in the embodiment of the present application, the step 604 may include the following sub-steps:
substep S31, the server determines a measurement transmission duration according to the transmission timestamp and the reception timestamp of the synchronization request frame;
in the substep S32, the server calculates a measurement difference between the measured transmission time and a real transmission time of a preset wireless frame, and uses the measurement difference as a system time difference between the first base station and the second base station;
in sub-step S33, the server calculates a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
In an example in the embodiment of the present application, the sub-step S33 may further include the following sub-steps:
substep S3301, the server selects the system time of the first base station as the reference time;
in sub-step S3302, the server uses the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
In another example in the embodiment of the present application, the sub-step S33 may further include the following sub-steps:
substep S3303, the server selects the system time of the second base station as the reference time;
in sub-step S3304, the server uses the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
In yet another example in the embodiment of the present application, the sub-step S33 may further include the following sub-steps:
substep S3305, the server selects the time of the clock reference device as the reference time;
substep S3306, the server calculates a first system time difference between the first base station and the reference time;
and a substep S3307, in which the server calculates a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
In yet another example in the embodiment of the present application, the sub-step S33 may further include the following sub-steps:
substep S3308, the server selects the time of the clock reference device as the reference time;
substep S3309, the server calculates a second system time difference between the second base station and the reference time;
in sub-step S3310, the server calculates a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
Step 605, the server sends the first system time difference to a corresponding first base station, and sends the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
Referring to fig. 9, a flowchart of steps of embodiment 7 of a base station synchronization method according to the present application is shown, which may specifically include the following steps:
step 701, a server determines a first base station;
step 702, the server receives a synchronization response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
step 703, the server calculates a first system time difference between the first base station and a reference time according to the sending time stamp and the receiving time stamp of the synchronization request frame;
in this embodiment, the step 703 may include the following sub-steps:
substep S41, the server determines a measurement transmission duration according to the transmission timestamp and the reception timestamp of the synchronization request frame;
in the substep S42, the server calculates a measurement difference between the measured transmission time and a real transmission time of a preset wireless frame, and uses the measurement difference as a system time difference between the first base station and the second base station;
in sub-step S43, the server calculates a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
In the embodiment of the present application, the sub-step S43 may include the following sub-steps:
substep S4301, the server selects the system time of the second base station as the reference time;
in substep S4302, the server uses the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
Step 704, the server sends the first system time difference to a corresponding first base station; and the first base station is used for adjusting time according to the corresponding first system time difference.
Referring to fig. 10, a flowchart of steps of embodiment 8 of a base station synchronization method in the present application is shown, which may specifically include the following steps:
step 801, a server determines a first base station;
step 802, the server receives a synchronization response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
step 803, the server calculates a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronization request frame;
in the embodiment of the present application, the step 803 may include the following sub-steps:
substep S51, the server determines a measurement transmission duration according to the transmission timestamp and the reception timestamp of the synchronization request frame;
in the substep S52, the server calculates a measurement difference between the measured transmission time and a real transmission time of a preset wireless frame, and uses the measurement difference as a system time difference between the first base station and the second base station;
and a substep S53, the server calculates a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
In the embodiment of the present application, the sub-step S53 may include the following sub-steps:
substep S5301, the server selects a system time of the first base station as a reference time;
in substep S5302, the server sets the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
Step 804, the server sends the second system time difference to a corresponding second base station; and the second base station is used for adjusting time according to the corresponding second system time difference.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently according to the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Referring to fig. 11, a block diagram of a base station synchronization apparatus in embodiment 1 of the present application is shown, which may specifically include the following modules:
a first base station determining module 901 located in the server, configured to determine a first base station;
a synchronous response frame receiving module 902 located in the server, configured to receive a synchronous response frame sent by the second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station;
a system time difference calculating module 903 located in the server, configured to determine, using the synchronization response frame, a first system time difference between the system time of the first base station and a reference time, and determine a second system time difference between the system time of the second base station and the reference time;
a system time difference sending module 904, located in the server, configured to send the first system time difference to a corresponding first base station, and send the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
In this embodiment of the present application, the synchronization response frame includes a transmission timestamp for the first base station to transmit the synchronization request frame, and a reception timestamp for the second base station to receive the synchronization request frame; the system time difference calculation module 903 may include:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a first system time difference between the first base station and the reference time and calculating a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
In an embodiment of the present application, the reference time difference determination submodule may include:
a first reference time selecting unit, configured to select a system time of the first base station as a reference time;
and a first reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
In an embodiment of the present application, the reference time difference determination submodule may include:
a second reference time selecting unit, configured to select a system time of the second base station as a reference time;
and a second reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
In an embodiment of the present application, the reference time difference determination submodule may include:
the third reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a third reference time difference determining unit configured to calculate a first system time difference between the first base station and the reference time;
and a fourth reference time difference determining unit, configured to calculate a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
In an embodiment of the present application, the reference time difference determination submodule may include:
the fourth reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a fifth reference time difference determining unit configured to calculate a second system time difference between the second base station and the reference time;
and a sixth reference time difference determining unit, configured to calculate a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
In an embodiment of the present application, the apparatus may further include:
the starting instruction sending module is positioned on the server and used for sending a starting instruction to the first base station; and the first base station is used for sending a synchronization request frame to the second base station according to the starting instruction.
In this embodiment, the first base station determining module 901 may include:
and the first determining submodule is used for determining the whole network base station as the first base station in the primary time synchronization processing.
In this embodiment of the present application, the first base station determining module 901 may further include:
and the second determining submodule is used for selecting part of base stations from the whole network base stations as the first base station in the second time of time synchronization processing.
In this embodiment of the present application, the first base station determining module 901 may further include:
a third base station determining submodule, configured to determine, in time synchronization processing after the second time of time synchronization processing, the second base station in the last time of time synchronization processing as a third base station;
and the third determining submodule is used for determining the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization processing as the first base station.
In the embodiment of the application, each base station in the whole network can realize the synchronization with the reference time according to the corresponding system time difference. In addition, the synchronization method of the embodiment of the application does not depend on time service of the global positioning system, so that the problem that data transmission cost is increased due to the fact that the global positioning system is arranged in each base station is solved, the problem that data transmission is difficult to perform reliably due to the fact that each base station cannot accurately receive positioning signals is also reduced, namely, the data transmission cost is reduced, and the reliability of data transmission is improved.
Each base station can adjust the local system time according to the corresponding system time difference, thereby ensuring the time synchronization of each base station. Or each base station can adjust the time for sending the beacon wireless frame beacon according to the corresponding system time difference, thereby ensuring the synchronization of sending the beacon wireless frame beacon among the base stations.
Referring to fig. 12, a block diagram of a base station synchronization apparatus in embodiment 2 of the present application is shown, which may specifically include the following modules:
a synchronization request frame sending module 1001 located in the first base station, configured to send a synchronization request frame to the second base station; the second base station is used for sending a synchronization response frame to the server according to the synchronization request frame; the server is used for determining a first system time difference between the system time of the first base station and the reference time according to the synchronous response frame;
a system time difference receiving module 1002 located at the first base station, configured to receive the first system time difference sent by the server;
a first time adjustment module 1003 located in the first base station, configured to adjust time by using the first system time difference.
In this embodiment of the application, the synchronization request frame sending module 1001 may include:
a starting instruction receiving submodule for receiving a starting instruction sent by the server,
and the synchronization request frame sending submodule is used for sending the synchronization request frame to the second base station according to the starting instruction.
In this embodiment of the application, the first time adjustment module 1003 may include:
and the first time adjusting submodule is used for adjusting the local system time or adjusting the time for sending the beacon wireless frame beacon by adopting the first system time difference.
In the embodiment of the application, each first base station sends a synchronization request frame to a corresponding second base station, and the second base station sends a synchronization response frame to the server according to the synchronization request frame. And the server calculates the system time difference between the corresponding first base station and the reference time according to the synchronous response frame. Each first base station can adjust the local system time according to the corresponding system time difference, so that the time synchronization of each first base station is ensured. Or each first base station can adjust the time for sending the beacon wireless frame beacon according to the corresponding system time difference, so that the synchronization of sending the beacon wireless frame beacon among the first base stations is ensured.
Referring to fig. 13, a block diagram of a base station synchronization apparatus embodiment 3 of the present application is shown, which may specifically include the following modules:
a synchronization request frame receiving module 1101 located at the second base station, configured to receive a synchronization request frame sent by the first base station;
a synchronization response frame sending module 1102 located in the second base station, configured to send a synchronization response frame to a server according to the synchronization request frame; the server is used for determining a second system time difference between the system time of the second base station and the reference time according to the synchronous response frame;
a second system time difference receiving module 1103 located at the second base station, configured to receive the second system time difference sent by the server;
and a second time adjustment module 1104, located at the second base station, configured to adjust time by using the second system time difference.
In this embodiment of the present application, the second time adjustment module 1104 may include:
and the second time adjusting submodule is used for adjusting the local system time or adjusting the time for sending the beacon wireless frame beacon by adopting the second system time difference.
In the embodiment of the application, each first base station sends a synchronization request frame to a corresponding second base station, and the second base station sends a synchronization response frame to the server according to the synchronization request frame. And the server calculates the system time difference between the corresponding second base station and the reference time according to the synchronous response frame. Each second base station can adjust the local system time according to the corresponding system time difference, so that the time synchronization of each second base station is ensured. Or each second base station can adjust the time for sending the beacon wireless frame beacon according to the corresponding system time difference, so that the synchronization of sending the beacon wireless frame beacon among the second base stations is ensured.
Referring to fig. 14, a block diagram of a base station synchronization apparatus embodiment 4 of the present application is shown, which may specifically include the following modules:
a first base station determining module 1201 located in the server, configured to determine a first base station;
a synchronization response frame receiving module 1202 located in the server, configured to receive a synchronization response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
a system time difference calculating module 1203 located in the server, configured to calculate a first system time difference between the first base station and a reference time and calculate a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronization request frame;
a system time difference sending module 1204, located in the server, configured to send the first system time difference to a corresponding first base station, and send the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
In this embodiment, the system time difference calculating module 1203 may include:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a first system time difference between the first base station and the reference time and calculating a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
In an embodiment of the present application, the reference time difference determination submodule may include:
a first reference time selecting unit, configured to select a system time of the first base station as a reference time;
and a first reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
In an embodiment of the present application, the reference time difference determination submodule may include:
a second reference time selecting unit, configured to select a system time of the second base station as a reference time;
and a second reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
In an embodiment of the present application, the reference time difference determination submodule may include:
the third reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a third reference time difference determining unit configured to calculate a first system time difference between the first base station and the reference time;
and a fourth reference time difference determining unit, configured to calculate a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
In an embodiment of the present application, the reference time difference determination submodule may include:
the fourth reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a fifth reference time difference determining unit configured to calculate a second system time difference between the second base station and the reference time;
and a sixth reference time difference determining unit, configured to calculate a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
In this embodiment, the apparatus may further include:
the starting instruction sending module is positioned on the server and used for sending a starting instruction to the first base station; and the first base station is used for sending a synchronization request frame to the second base station according to the starting instruction.
In this embodiment, the first base station determining module 1201 may include:
and the first determining submodule is used for determining the whole network base station as the first base station by the server in the primary time synchronization processing.
In this embodiment of the application, the first base station determining module 1201 may further include:
and the second determining submodule is used for selecting part of base stations from the whole network base stations as the first base station in the second time of time synchronization processing.
In this embodiment of the application, the first base station determining module 1201 may further include:
a third base station determining submodule, configured to determine, in time synchronization processing after the second time of time synchronization processing, the second base station in the last time of time synchronization processing as a third base station;
and the third determining submodule is used for determining the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization processing as the first base station.
Referring to fig. 15, a block diagram of a base station synchronization apparatus embodiment 5 of the present application is shown, which may specifically include the following modules:
a first base station determining module 1301 located at the server, configured to determine a first base station;
a synchronous response frame receiving module 1302 located in the server, configured to receive a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
a system time difference calculating module 1303 located in the server, configured to calculate a first system time difference between the first base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronization request frame;
a system time difference sending module 1304, located in the server, configured to send the first system time difference to the corresponding first base station; and the first base station is used for adjusting time according to the corresponding first system time difference.
In this embodiment of the application, the system time difference calculating module 1303 may include:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
In an embodiment of the present application, the reference time difference determination submodule may include:
a reference time selecting unit, configured to select a system time of the second base station as a reference time;
and a reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
Referring to fig. 16, a block diagram of a base station synchronization apparatus in embodiment 6 of the present application is shown, which may specifically include the following modules:
a first base station determining module 1401 located at the server, configured to determine a first base station;
a synchronous response frame receiving module 1402 in the server, configured to receive a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
a system time difference calculating module 1403, located at the server, configured to calculate a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronization request frame;
a system time difference sending module 1404 located in the server, configured to send the second system time difference to a corresponding second base station; and the second base station is used for adjusting time according to the corresponding second system time difference.
In this embodiment, the system time difference calculation module 1403 may include:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
In an embodiment of the present application, the reference time difference determination submodule may include:
a reference time selecting unit, configured to select a system time of the first base station as a reference time;
and a reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present application further provides an apparatus, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform methods as described in embodiments of the present application.
Embodiments of the present application also provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform the methods described in embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is given to a base station synchronization method and a base station synchronization apparatus provided in the present application, and specific examples are applied in the present application to explain the principles and embodiments of the present application, and the description of the above embodiments is only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (64)

1. A base station synchronization method, comprising:
the server determines a first base station;
the server receives a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
the server calculates a first system time difference between the first base station and a reference time and a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronization request frame;
the server sends the first system time difference to a corresponding first base station and sends the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
2. The method of claim 1, wherein the step of the server calculating a first system time difference between the first base station and a reference time according to a transmission time stamp and a reception time stamp of a synchronization request frame, and calculating a second system time difference between the second base station and the reference time comprises:
the server determines the measurement transmission time length according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server calculates a measurement difference value between the measurement transmission time length and a real transmission time length of a preset wireless frame, and the measurement difference value is used as a system time difference of the first base station and the second base station;
and the server calculates a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
3. The method of claim 2,
the steps of the server calculating a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station, and calculating a second system time difference between the second base station and the reference time include:
the server selects the system time of the first base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
4. The method of claim 2,
the steps of the server calculating a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station, and calculating a second system time difference between the second base station and the reference time include:
the server selects the system time of the second base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
5. The method of claim 2,
the steps of the server calculating a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station, and calculating a second system time difference between the second base station and the reference time include:
the server selects the time of the clock reference equipment as reference time;
the server calculates a first system time difference between the first base station and the reference time;
and the server calculates a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
6. The method of claim 2,
the steps of the server calculating a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station, and calculating a second system time difference between the second base station and the reference time include:
the server selects the time of the clock reference equipment as reference time;
the server calculates a second system time difference between the second base station and the reference time;
and the server calculates a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
7. The method of claim 1, further comprising:
the server sends a starting instruction to the first base station; and the first base station is used for sending a synchronization request frame to the second base station according to the starting instruction.
8. The method of claim 7, wherein the step of the server determining the first base station comprises:
in the initial time synchronization process, the server determines the whole network base station as a first base station.
9. The method of claim 8, wherein the step of the server determining the first base station further comprises:
in the second time synchronization process, the server selects a part of base stations from the whole network base stations as the first base stations.
10. The method according to claim 8 or 9, wherein the step of the server determining the first base station further comprises:
in the time synchronization processing after the second time of time synchronization processing, the server determines the second base station in the last time of time synchronization processing as a third base station;
and the server determines the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization processing as the first base station.
11. A base station synchronization method, comprising:
the server determines a first base station;
the server receives a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station;
the server determines a first system time difference between the system time of the first base station and a reference time and determines a second system time difference between the system time of the second base station and the reference time by using the synchronous response frame;
the server sends the first system time difference to a corresponding first base station and sends the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
12. The method of claim 11, wherein the synchronization response frame comprises a transmission timestamp for the first base station to transmit the synchronization request frame, and a reception timestamp for the second base station to receive the synchronization request frame; the step of determining, by the server, a first system time difference between the system time of the first base station and the reference time and determining a second system time difference between the system time of the second base station and the reference time by using the synchronization response frame includes:
the server determines the measurement transmission time length according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server calculates a measurement difference value between the measurement transmission time length and a real transmission time length of a preset wireless frame, and the measurement difference value is used as a system time difference of the first base station and the second base station;
and the server calculates a first system time difference between the first base station and the reference time and a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
13. The method of claim 11,
the steps of the server calculating a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station, and calculating a second system time difference between the second base station and the reference time include:
the server selects the system time of the first base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
14. The method of claim 11,
the steps of the server calculating a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station, and calculating a second system time difference between the second base station and the reference time include:
the server selects the system time of the second base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
15. The method of claim 11,
the steps of the server calculating a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station, and calculating a second system time difference between the second base station and the reference time include:
the server selects the time of the clock reference equipment as reference time;
the server calculates a first system time difference between the first base station and the reference time;
and the server calculates a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
16. The method of claim 11,
the steps of the server calculating a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station, and calculating a second system time difference between the second base station and the reference time include:
the server selects the time of the clock reference equipment as reference time;
the server calculates a second system time difference between the second base station and the reference time;
and the server calculates a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
17. The method of claim 11, further comprising:
the server sends a starting instruction to the first base station; and the first base station is used for sending a synchronization request frame to the second base station according to the starting instruction.
18. The method of claim 17, wherein the step of the server determining the first base station comprises:
in the initial time synchronization process, the server determines the whole network base station as a first base station.
19. The method of claim 18, wherein the step of the server determining the first base station further comprises:
in the second time synchronization process, the server selects a part of base stations from the whole network base stations as the first base stations.
20. The method according to claim 18 or 19, wherein the step of the server determining the first base station further comprises:
in the time synchronization processing after the second time of time synchronization processing, the server determines the second base station in the last time of time synchronization processing as a third base station;
and the server determines the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization processing as the first base station.
21. A base station synchronization method, comprising:
the server determines a first base station;
the server receives a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
the server calculates a first system time difference between the first base station and reference time according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server sends the first system time difference to a corresponding first base station; and the first base station is used for adjusting time according to the corresponding first system time difference.
22. The method of claim 21, wherein the step of the server calculating the first system time difference between the first base station and the reference time based on the transmission time stamp and the reception time stamp of the synchronization request frame comprises:
the server determines the measurement transmission time length according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server calculates a measurement difference value between the measurement transmission time length and a real transmission time length of a preset wireless frame, and the measurement difference value is used as a system time difference of the first base station and the second base station;
and the server calculates a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
23. The method of claim 22, wherein the step of the server calculating the first system time difference between the first base station and the reference time based on the reference time and the system time difference between the first base station and the second base station comprises:
the server selects the system time of the second base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
24. A base station synchronization method, comprising:
the server determines a first base station;
the server receives a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
the server calculates a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server sends the second system time difference to a corresponding second base station; and the second base station is used for adjusting time according to the corresponding second system time difference.
25. The method of claim 24, wherein the step of the server calculating the second system time difference between the second base station and the reference time according to the transmission time stamp and the reception time stamp of the synchronization request frame comprises:
the server determines the measurement transmission time length according to the sending time stamp and the receiving time stamp of the synchronous request frame;
the server calculates a measurement difference value between the measurement transmission time length and a real transmission time length of a preset wireless frame, and the measurement difference value is used as a system time difference of the first base station and the second base station;
and the server calculates a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
26. The method of claim 25,
the step of calculating, by the server, a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station includes:
the server selects the system time of the first base station as reference time;
and the server takes the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
27. A base station synchronization method, comprising:
a first base station sends a synchronization request frame to a second base station; the second base station is used for sending a synchronization response frame to the server according to the synchronization request frame; the server is used for determining a first system time difference between the system time of the first base station and the reference time according to the synchronous response frame;
the first base station receives the first system time difference sent by the server;
and the first base station adjusts the time by adopting the first system time difference.
28. The method of claim 27, wherein the step of the first base station sending a synchronization request frame to the second base station comprises:
the first base station receives the starting instruction sent by the server,
and the first base station sends a synchronization request frame to the second base station according to the starting instruction.
29. The method according to claim 27 or 28, wherein the step of adjusting the time by the first base station using the first system time difference comprises:
and the first base station adjusts local system time or adjusts the time for sending the beacon wireless frame beacon by adopting the first system time difference.
30. A base station synchronization method, comprising:
the second base station receives a synchronization request frame sent by the first base station;
the second base station sends a synchronous response frame to a server according to the synchronous request frame; the server is used for determining a second system time difference between the system time of the second base station and the reference time according to the synchronous response frame;
the second base station receives the second system time difference sent by the server;
and the second base station adjusts the time by adopting the second system time difference.
31. The method of claim 30, wherein the step of performing the time adjustment process by the second base station using the second system time difference comprises:
and the second base station adjusts local system time or adjusts the time for sending the beacon wireless frame beacon by adopting the second system time difference.
32. A base station synchronization apparatus, comprising:
a first base station determining module located in the server, configured to determine a first base station;
the synchronous response frame receiving module is positioned at the server and used for receiving a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
a system time difference calculation module located in the server, configured to calculate a first system time difference between the first base station and a reference time and calculate a second system time difference between the second base station and the reference time according to a sending time stamp and a receiving time stamp of a synchronization request frame;
a system time difference sending module located in the server, configured to send the first system time difference to a corresponding first base station, and send the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
33. The apparatus of claim 32, wherein the system time difference calculation module comprises:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a first system time difference between the first base station and the reference time and calculating a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
34. The apparatus of claim 33, wherein the reference time difference determination submodule comprises:
a first reference time selecting unit, configured to select a system time of the first base station as a reference time;
and a first reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
35. The apparatus of claim 33, wherein the reference time difference determination submodule comprises:
a second reference time selecting unit, configured to select a system time of the second base station as a reference time;
and a second reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
36. The apparatus of claim 33, wherein the reference time difference determination submodule comprises:
the third reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a third reference time difference determining unit configured to calculate a first system time difference between the first base station and the reference time;
and a fourth reference time difference determining unit, configured to calculate a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
37. The apparatus of claim 33, wherein the reference time difference determination submodule comprises:
the fourth reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a fifth reference time difference determining unit configured to calculate a second system time difference between the second base station and the reference time;
and a sixth reference time difference determining unit, configured to calculate a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
38. The apparatus of claim 32, further comprising:
the starting instruction sending module is positioned on the server and used for sending a starting instruction to the first base station; and the first base station is used for sending a synchronization request frame to the second base station according to the starting instruction.
39. The apparatus of claim 38, wherein the first base station determining module comprises:
and the first determining submodule is used for determining the whole network base station as the first base station by the server in the primary time synchronization processing.
40. The apparatus of claim 39, wherein the first base station determining module further comprises:
and the second determining submodule is used for selecting part of base stations from the whole network base stations as the first base station in the second time of time synchronization processing.
41. The apparatus of claim 39 or 40, wherein the first base station determining module further comprises:
a third base station determining submodule, configured to determine, in time synchronization processing after the second time of time synchronization processing, the second base station in the last time of time synchronization processing as a third base station;
and the third determining submodule is used for determining the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization processing as the first base station.
42. A base station synchronization apparatus, comprising:
a first base station determining module located in the server, configured to determine a first base station;
a synchronous response frame receiving module located in the server, configured to receive a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station;
a system time difference calculation module located in the server, configured to determine, by using the synchronization response frame, a first system time difference between the system time of the first base station and a reference time, and determine a second system time difference between the system time of the second base station and the reference time;
a system time difference sending module located in the server, configured to send the first system time difference to a corresponding first base station, and send the second system time difference to a corresponding second base station; the first base station is used for adjusting time according to the corresponding first system time difference; and the second base station is used for adjusting time according to the corresponding second system time difference.
43. The apparatus of claim 42, wherein the synchronization response frame comprises a transmission timestamp for the first base station to transmit the synchronization request frame, and a reception timestamp for the second base station to receive the synchronization request frame; the system time difference calculation module includes:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a first system time difference between the first base station and the reference time and calculating a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
44. The apparatus of claim 43, wherein the reference time difference determination submodule comprises:
a first reference time selecting unit, configured to select a system time of the first base station as a reference time;
and a first reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
45. The apparatus of claim 43, wherein the reference time difference determination submodule comprises:
a second reference time selecting unit, configured to select a system time of the second base station as a reference time;
and a second reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
46. The apparatus of claim 43, wherein the reference time difference determination submodule comprises:
the third reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a third reference time difference determining unit configured to calculate a first system time difference between the first base station and the reference time;
and a fourth reference time difference determining unit, configured to calculate a second system time difference between the second base station and the reference time according to the system time difference between the first base station and the second base station and the first system time difference.
47. The apparatus of claim 43, wherein the reference time difference determination submodule comprises:
the fourth reference time selecting unit is used for selecting the time of the clock reference equipment as the reference time;
a fifth reference time difference determining unit configured to calculate a second system time difference between the second base station and the reference time;
and a sixth reference time difference determining unit, configured to calculate a first system time difference between the first base station and the reference time according to the system time difference between the first base station and the second system time difference.
48. The apparatus of claim 42, further comprising:
the starting instruction sending module is positioned on the server and used for sending a starting instruction to the first base station; and the first base station is used for sending a synchronization request frame to the second base station according to the starting instruction.
49. The apparatus of claim 48, wherein the first base station determining module comprises:
and the first determining submodule is used for determining the whole network base station as the first base station in the primary time synchronization processing.
50. The apparatus of claim 49, wherein the first base station determining module further comprises:
and the second determining submodule is used for selecting part of base stations from the whole network base stations as the first base station in the second time of time synchronization processing.
51. The apparatus of claim 49 or 50, wherein the first base station determining module further comprises:
a third base station determining submodule, configured to determine, in time synchronization processing after the second time of time synchronization processing, the second base station in the last time of time synchronization processing as a third base station;
and the third determining submodule is used for determining the base station which receives the synchronization request frame sent by the third base station in the process of primary synchronization processing as the first base station.
52. A base station synchronization apparatus, comprising:
a first base station determining module located in the server, configured to determine a first base station;
the synchronous response frame receiving module is positioned at the server and used for receiving a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
the system time difference calculation module is positioned in the server and used for calculating a first system time difference between the first base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronous request frame;
a system time difference sending module located in the server, configured to send the first system time difference to a corresponding first base station; and the first base station is used for adjusting time according to the corresponding first system time difference.
53. The apparatus of claim 52, wherein the system time difference calculation module comprises:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a first system time difference between the first base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
54. The apparatus of claim 53, wherein the reference time difference determination submodule comprises:
a reference time selecting unit, configured to select a system time of the second base station as a reference time;
and a reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a first system time difference between the first base station and the reference time.
55. A base station synchronization apparatus, comprising:
a first base station determining module located in the server, configured to determine a first base station;
the synchronous response frame receiving module is positioned at the server and used for receiving a synchronous response frame sent by a second base station; the synchronization response frame is generated by the second base station according to the synchronization request frame sent by the first base station; the synchronization response frame comprises a sending time stamp of the first base station sending the synchronization request frame and a receiving time stamp of the second base station receiving the synchronization request frame;
the system time difference calculation module is positioned in the server and used for calculating a second system time difference between the second base station and the reference time according to the sending time stamp and the receiving time stamp of the synchronous request frame;
a system time difference sending module located in the server, configured to send the second system time difference to a corresponding second base station; and the second base station is used for adjusting time according to the corresponding second system time difference.
56. The apparatus of claim 55, wherein the system time difference calculation module comprises:
a measurement transmission duration determining submodule for determining a measurement transmission duration according to the transmission time stamp and the reception time stamp of the synchronization request frame;
the inter-station time difference determining submodule is used for calculating a measurement difference value between the measurement transmission time length and the real transmission time length of a preset wireless frame, and taking the measurement difference value as the system time difference of the first base station and the second base station;
and the reference time difference determining submodule is used for calculating a second system time difference between the second base station and the reference time according to the reference time and the system time difference between the first base station and the second base station.
57. The apparatus of claim 56, wherein the reference time difference determination submodule comprises:
a reference time selecting unit, configured to select a system time of the first base station as a reference time;
and a reference time difference determining unit configured to use the system time difference between the first base station and the second base station as a second system time difference between the second base station and the reference time.
58. A base station synchronization apparatus, comprising:
a synchronization request frame sending module located at the first base station, configured to send a synchronization request frame to the second base station; the second base station is used for sending a synchronization response frame to the server according to the synchronization request frame; the server is used for determining a first system time difference between the system time of the first base station and the reference time according to the synchronous response frame;
a system time difference receiving module located at the first base station, configured to receive the first system time difference sent by the server;
and the first time adjusting module is positioned at the first base station and used for adjusting time by adopting the first system time difference.
59. The apparatus as claimed in claim 58, wherein said synchronization request frame sending module comprises:
a starting instruction receiving submodule for receiving a starting instruction sent by the server,
and the synchronization request frame sending submodule is used for sending the synchronization request frame to the second base station according to the starting instruction.
60. The apparatus of claim 58 or 59, wherein the first time adjustment module comprises:
and the first time adjusting submodule is used for adjusting the local system time or adjusting the time for sending the beacon wireless frame beacon by adopting the first system time difference.
61. A base station synchronization apparatus, comprising:
a synchronization request frame receiving module located at the second base station, configured to receive a synchronization request frame sent by the first base station;
a synchronous response frame sending module located in the second base station, configured to send a synchronous response frame to a server according to the synchronous request frame; the server is used for determining a second system time difference between the system time of the second base station and the reference time according to the synchronous response frame;
a second system time difference receiving module located at the second base station, configured to receive the second system time difference sent by the server;
and the second time adjusting module is positioned at the second base station and used for adjusting the time by adopting the second system time difference.
62. The apparatus of claim 61, wherein the second time adjustment module comprises:
and the second time adjusting submodule is used for adjusting the local system time or adjusting the time for sending the beacon wireless frame beacon by adopting the second system time difference.
63. A synchronization apparatus, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform one or more methods of claims 1-10 or 11-20 or 21-23 or 24-26 or 27-29 or 30-31.
64. One or more machine-readable media having instructions stored thereon that, when executed by one or more processors, cause an apparatus to perform one or more methods of claims 1-10 or 11-20 or 21-23 or 24-26 or 27-29 or 30-31.
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 CN109699068A (en) 2019-04-30
CN109699068B true 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)

Families Citing this family (3)

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

Citations (8)

* 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
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
CN106358283A (en) * 2015-07-17 2017-01-25 中国移动通信集团公司 Time synchronizing method, base station, transmission equipment 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
CN107113760A (en) * 2014-12-31 2017-08-29 高通股份有限公司 Determine Network Synchronization state

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946002B (en) * 2006-09-30 2010-10-06 华为技术有限公司 Clock synchronizing method between base stations
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
KR20130085507A (en) * 2011-12-14 2013-07-30 삼성전자주식회사 Wireless communication system and method for time synchronization thereof
CN103813382B (en) * 2012-11-14 2018-03-27 华为技术有限公司 Clock synchronizing method, equipment and system
US9420476B2 (en) * 2013-02-20 2016-08-16 Telefonaktiebolaget L M Ericsson (Publ) Systems and methods of triggering interference mitigation without resource partitioning
US9088941B2 (en) * 2013-07-10 2015-07-21 Freescale Semiconductor,Inc Wireless communication apparatus and method
CN105960820B (en) * 2014-10-31 2019-05-24 华为技术有限公司 A kind of synchronizing device and method
US20170091726A1 (en) * 2015-09-07 2017-03-30 NXT-ID, Inc. Low bandwidth crypto currency transaction execution and synchronization method and system
CN106911414A (en) * 2015-12-22 2017-06-30 中兴通讯股份有限公司 Clock synchronizing method and device
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
CN107231208A (en) * 2017-07-19 2017-10-03 京信通信系统(中国)有限公司 A kind of clock synchronizing method and system

Patent Citations (8)

* 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
CN105515710A (en) * 2011-01-26 2016-04-20 华为技术有限公司 Method and device for realizing time synchronization
CN104349450A (en) * 2013-07-30 2015-02-11 上海贝尔股份有限公司 A method and apparatus for clock synchronizing
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
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

Also Published As

Publication number Publication date
WO2019076214A1 (en) 2019-04-25
TW201918100A (en) 2019-05-01
CN109699068A (en) 2019-04-30

Similar Documents

Publication Publication Date Title
EP4436275A1 (en) Positioning method and apparatus, and storage medium
EP3047692B1 (en) Devices and methods for sending or receiving assistance data
US10194265B2 (en) Systems and methods for supporting positioning beacons compatible with legacy wireless devices
CN111989592B (en) Ranging method, ranging device, ranging equipment and ranging readable storage medium in synchronous system
US20130336131A1 (en) Rtt based ranging system and method
US20160291124A1 (en) Determining a location of a transmitter device
CN113632549A (en) Wireless location measurement
US20160345281A1 (en) Time distribution in wireless communication systems
JP2012519870A (en) Method and apparatus in a wireless communication system
CN107734557A (en) The method and apparatus to cellular communication interference is avoided in a kind of V2X communications
US20200196266A1 (en) Data Transmission Methods, Apparatuses, Base Stations and Servers
CN109699068B (en) Base station synchronization method and device
WO2016177090A1 (en) Clock synchronization method and device
CN110221243B (en) Positioning method and system of communication network
WO2014189431A1 (en) Method and apparatus for determining position of user equipment in indoor environment
JP2014048287A (en) Method and device for synchronizing navigation data
JP2014048286A (en) Method and device for synchronizing navigation data
WO2016041146A1 (en) Mobile terminal positioning method, base station and node
EP4496397A1 (en) Positioning method, apparatus and device, storage medium, and program product
WO2023193684A1 (en) Method for verifying position of terminal, and terminal and network side device
JP2014048289A (en) Method and device for synchronizing navigation data
WO2019205925A1 (en) Communication method and communication apparatus
US20250076517A1 (en) Utc traceability support for terminal devices
US20250159633A1 (en) Time compensation via sidelink relay in telecommunication systems
US20240357533A1 (en) Apparatus, methods, and computer programs for propagation delay determination

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