CN111654906B - Wireless synchronization method, device and base station - Google Patents

Wireless synchronization method, device and base station Download PDF

Info

Publication number
CN111654906B
CN111654906B CN202010492103.XA CN202010492103A CN111654906B CN 111654906 B CN111654906 B CN 111654906B CN 202010492103 A CN202010492103 A CN 202010492103A CN 111654906 B CN111654906 B CN 111654906B
Authority
CN
China
Prior art keywords
base station
time information
ethernet
time
wireless
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
CN202010492103.XA
Other languages
Chinese (zh)
Other versions
CN111654906A (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.)
Xiamen Yealink Network Technology Co Ltd
Original Assignee
Xiamen Yealink Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Yealink Network Technology Co Ltd filed Critical Xiamen Yealink Network Technology Co Ltd
Priority to CN202010492103.XA priority Critical patent/CN111654906B/en
Publication of CN111654906A publication Critical patent/CN111654906A/en
Application granted granted Critical
Publication of CN111654906B publication Critical patent/CN111654906B/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
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others
    • 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
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • 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/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/0055Synchronisation arrangements determining timing error of reception due to propagation delay
    • H04W56/0065Synchronisation arrangements determining timing error of reception due to propagation delay using measurement of signal travel time
    • H04W56/009Closed loop measurements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application provides a wireless synchronization method, a wireless synchronization device and a base station, and relates to the technical field of communication. The wireless synchronization method comprises the following steps: the slave base station sends a first Ethernet message to the master base station; receiving a second Ethernet message sent by the main base station, wherein the second Ethernet message comprises second time information, and the second time information is used for indicating the receiving time of the first Ethernet message; determining network delay of the master base station and the slave base station according to the first time information and the second time information; the first time information is used for indicating the sending time of the first Ethernet message; and performing clock synchronization on the slave base station and the master base station according to the network delay and the preset clock deviation. The method and the device can improve the coverage area of the communication system under the condition of realizing the wireless synchronization of the base stations, namely realize the wireless synchronization among the base stations with large coverage area, and also can reduce the number of the base stations needing to be arranged in the same range.

Description

Wireless synchronization method, device and base station
Technical Field
The present application relates to the field of communications technologies, and in particular, to a wireless synchronization method, an apparatus, and a base station.
Background
The terminal device usually accesses the mobile cellular network through the base station to acquire mobile data, thereby implementing a corresponding communication service. The coverage area of each base station is limited, and in order to avoid connection interruption and ensure the communication service of the terminal equipment, when the terminal equipment moves out of the coverage area of one base station, the terminal equipment can be switched to another base station through an access switching mode, and the mobile cellular network is accessed through the other base station.
In order to ensure the switching effect of the terminal device from one base station to another base station, the base stations need to be synchronized wirelessly to ensure the synchronization of wireless frame signals between the base stations. Currently, a base station can perform information interaction with another base station through a radio frame signal, and then perform radio synchronization.
Because the transmission of the radio frame signal is affected by the coverage, it is necessary to ensure that the coverage of one base station is within the coverage of another base station, so the use of the radio frame signal for synchronization usually can achieve wireless synchronization between base stations with small coverage, but cannot achieve wireless synchronization between base stations with large coverage.
Disclosure of Invention
An object of the present invention is to provide a wireless synchronization method, apparatus and base station to solve the problem that wireless synchronization between base stations with large coverage cannot be achieved.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a wireless synchronization method, which is applied to a slave base station, and the method includes:
sending a first Ethernet message to a main base station;
receiving a second ethernet packet sent by the master base station, where the second ethernet packet includes: second time information, wherein the second time information is used for indicating the receiving time of the first Ethernet message;
determining network delay of the master base station and the slave base station according to the first time information and the second time information; the first time information is used for indicating the sending time of the first Ethernet message;
and performing clock synchronization on the slave base station and the master base station according to the network delay and a preset clock deviation.
Optionally, before sending the first ethernet packet to the primary base station, the method further includes:
receiving a third Ethernet message sent by the main base station;
receiving a fourth ethernet packet sent by the master base station, where the fourth ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message;
determining the clock deviation of the master base station and the slave base station to be the preset clock deviation according to the first time information, the second time information, the third time information and the fourth time information; wherein the fourth time information is used for indicating the receiving time of the third ethernet packet.
Optionally, before sending the first ethernet packet to the primary base station, the method further includes:
receiving a third Ethernet message sent by the main base station; wherein the third ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of the third ethernet message;
determining the clock deviation of the master base station and the slave base station to be the preset clock deviation according to the first time information, the second time information, the third time information and the fourth time information; wherein the fourth time information is used for indicating the receiving time of the third ethernet packet.
Optionally, the determining the network delay of the master base station and the slave base station according to the first time information and the second time information includes:
and determining the network delay of the master base station and the slave base station according to the first time information, the second time information, the third time information and the fourth time information.
Optionally, before receiving the third ethernet packet sent by the master base station, the method further includes:
determining whether the delay request time comes or not according to a preset delay request period;
and if the delay request time does not arrive, detecting the third Ethernet message.
Optionally, the sending the first ethernet packet to the primary base station includes:
and if the delay request time arrives, sending the first Ethernet message to the main base station.
Optionally, the method further includes:
and transmitting a wireless synchronization signal through a plurality of pulse signals with different periods, wherein the wireless synchronization signal is used for enabling the slave base station and the master base station to carry out time synchronization on wireless frames.
Optionally, the pulse signals of the plurality of different periods include: multi-frame pulse signals, single-frame pulse signals and second pulse signals.
Optionally, the first ethernet packet is: a delay request message, wherein the second ethernet message is a delay response message;
the third ethernet packet is: and the fourth Ethernet message is a following message.
In a second aspect, an embodiment of the present application further provides a wireless synchronization method, which is applied to a master base station, and the method includes:
receiving a first Ethernet message sent from a base station;
sending a second ethernet packet to the slave base station, where the second ethernet packet includes: first time information, where the first time information is used to indicate a receiving time of the first ethernet packet; the second ethernet packet is used for enabling the slave base station to determine the network delay of the master base station and the slave base station according to the first time information and the second time information, and perform clock synchronization on the slave base station and the master base station according to the network delay and a preset clock deviation; wherein the second time information is used for indicating the receiving time of the second ethernet packet.
Optionally, before receiving the first ethernet packet sent from the base station, the method further includes:
sending a third Ethernet message to the slave base station;
sending a fourth ethernet packet to the slave base station, where the fourth ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message; the fourth ethernet packet is used to enable the slave base station to determine that the clock skew between the master base station and the slave base station is the preset clock skew according to the first time information, the second time information, the third time information, and the fourth time information; wherein the fourth time information is used for indicating the receiving time of the third ethernet packet.
Optionally, before receiving the first ethernet packet sent from the base station, the method further includes:
sending a third Ethernet message to the slave base station, wherein the third Ethernet message comprises: third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message; the third ethernet message is used for enabling the slave base station to determine that the clock skew between the master base station and the slave base station is the preset clock skew according to the first time information, the second time information, the third time information and the fourth time information; the fourth time information is used for indicating the receiving time of the third Ethernet message.
Optionally, the method further includes:
and transmitting a wireless synchronization signal through a plurality of pulse signals with different periods, wherein the wireless synchronization signal is used for enabling the master base station and the slave base station to carry out time synchronization on wireless frames.
In a third aspect, an embodiment of the present application further provides a wireless synchronization apparatus, which is applied to a slave base station, and the wireless synchronization apparatus includes:
the sending module is used for sending a first Ethernet message to the main base station;
a receiving module, configured to receive a second ethernet packet sent by the master base station, where the second ethernet packet includes: first time information, wherein the first time information is used for indicating the receiving time of the first Ethernet message;
the processing module is used for determining the network delay of the master base station and the slave base station according to the first time information and the second time information; the second time information is used for indicating the receiving time of the second Ethernet message; and performing clock synchronization on the slave base station and the master base station according to the network delay and a preset clock deviation.
Optionally, the receiving module is further configured to receive a third ethernet packet sent by the master base station; receiving a fourth ethernet packet sent by the master base station, where the fourth ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message;
the processing module is further configured to determine, according to the first time information, the second time information, the third time information, and the fourth time information, that the clock skew between the master base station and the slave base station is the preset clock skew; wherein the fourth time information is used for indicating the receiving time of the third ethernet packet.
Optionally, the receiving module is further configured to receive a third ethernet packet sent by the master base station; wherein the third ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message;
the processing module is further configured to determine, according to the first time information, the second time information, the third time information, and the fourth time information, that the clock skew between the master base station and the slave base station is the preset clock skew; wherein the fourth time information is used for indicating the receiving time of the third ethernet packet.
Optionally, the processing module is specifically configured to determine network delays of the master base station and the slave base station according to the first time information, the second time information, the third time information, and the fourth time information.
Optionally, the processing module is further configured to determine whether a delay request time arrives according to a preset delay request period; and if the delay request time does not arrive, detecting the third Ethernet message.
Optionally, the sending module is specifically configured to send the first ethernet packet to the master base station if the delay request time arrives.
Optionally, the wireless synchronization apparatus further includes:
the transmitting module is used for transmitting a wireless synchronization signal through a plurality of pulse signals with different periods, and the wireless synchronization signal is used for enabling the slave base station and the master base station to perform time synchronization on wireless frames.
Optionally, the pulse signals of the plurality of different periods include: multi-frame pulse signals, single-frame pulse signals and second pulse signals.
Optionally, the first ethernet packet is: a delay request message, wherein the second ethernet message is a delay response message;
the third ethernet packet is: and the fourth Ethernet message is a following message.
In a fourth aspect, an embodiment of the present application further provides a wireless synchronization apparatus, which is applied to a master base station, and the wireless synchronization apparatus includes:
a receiving module, configured to receive a first ethernet packet sent from a base station;
a sending module, configured to send a second ethernet packet to the slave base station, where the second ethernet packet includes: first time information, where the first time information is used to indicate a receiving time of the first ethernet packet; the second ethernet packet is used for enabling the slave base station to determine the network delay of the master base station and the slave base station according to the first time information and the second time information, and perform clock synchronization on the slave base station and the master base station according to the network delay and a preset clock deviation; wherein the second time information is used for indicating the receiving time of the second ethernet packet.
Optionally, the sending module is further configured to send a third ethernet packet to the slave base station; sending a fourth ethernet packet to the slave base station, where the fourth ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message;
the fourth ethernet packet is used to enable the slave base station to determine that the clock skew between the master base station and the slave base station is the preset clock skew according to the first time information, the second time information, the third time information, and the fourth time information; wherein the fourth time information is used for indicating the receiving time of the third ethernet packet.
Optionally, the sending module is further configured to send a third ethernet packet to the slave base station, where the third ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message;
the third ethernet message is used for enabling the slave base station to determine that the clock skew between the master base station and the slave base station is the preset clock skew according to the first time information, the second time information, the third time information and the fourth time information; the fourth time information is used for indicating the receiving time of the third Ethernet message.
Optionally, the wireless synchronization apparatus further includes:
the transmitting module is used for transmitting a wireless synchronization signal through a plurality of pulse signals with different periods, and the wireless synchronization signal is used for enabling the master base station and the slave base station to perform time synchronization on wireless frames.
In a fifth aspect, an embodiment of the present application provides a base station, where the base station is a slave base station, and the base station includes: the device comprises a processing chip, an Ethernet chip and a wireless communication chip; the processing chip and the wireless communication chip are respectively in communication connection with the Ethernet chip;
the processing chip is used for processing the mobile data of the base station, and the Ethernet chip is used for being in communication connection with the Ethernet chip of the main base station through Ethernet; the wireless communication chip is used for realizing the transceiving of wireless frame signals;
the ethernet chip is configured to implement the wireless synchronization method according to any of the first aspect.
Optionally, the ethernet chip is connected to the wireless communication chip through an or gate.
In a sixth aspect, an embodiment of the present application provides a base station, where the base station is a master base station, and the base station includes: the device comprises a processing chip, an Ethernet chip and a wireless communication chip; the processing chip and the wireless communication chip are respectively in communication connection with the Ethernet chip;
the processing chip is used for processing the mobile data of the base station, and the Ethernet chip is used for being in communication connection with the Ethernet chip of the slave base station through Ethernet; the wireless communication chip is used for realizing the transceiving of wireless frame signals;
the ethernet chip is used to implement the wireless synchronization method according to the second aspect.
In a seventh aspect, an embodiment of the present application may further provide a storage medium, where the storage medium stores a computer program, and when the computer program is read and executed, the wireless synchronization method according to any of the first aspect or the second aspect is implemented.
The beneficial effect of this application is:
in the wireless synchronization method, the wireless synchronization device and the base station provided by the application, the first Ethernet message can be sent to the master base station through the slave base station, the second Ethernet message which is returned by the master base station and comprises the receiving time of the first Ethernet message is received, then the network delay of the master base station and the network delay of the slave base station are determined according to the receiving time of the first Ethernet message and the sending time of the first Ethernet message, and the slave base station and the master base station are subjected to clock synchronization based on the network delay and the preset clock deviation. That is to say, in the method, the slave base station and the master base station acquire network delay through interactive Ethernet messages, and then perform clock synchronization without performing synchronization based on wireless frame signals.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a base station according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of another base station according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a wireless synchronization method according to an embodiment of the present application;
fig. 4A is a schematic flowchart of another wireless synchronization method according to an embodiment of the present application;
fig. 4B is a flowchart illustrating another wireless synchronization method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating another wireless synchronization method according to an embodiment of the present application;
fig. 6 is a flowchart illustrating another wireless synchronization method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a wireless synchronization apparatus according to an embodiment of the present application;
fig. 8 is a schematic diagram of another wireless synchronization apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments.
In the moving process of the terminal equipment, in order to avoid the communication interruption caused by the connection interruption when the terminal equipment moves out of the coverage of the Base station (Base), when the terminal equipment enters the coverage of another Base station from the coverage of one Base station, the terminal equipment can be accessed to the another Base station through an access switching process, and is connected with a VOIP network through the another Base station, thereby realizing the communication service. Since the communication data of the terminal device is usually exchanged between the base stations by using a preset frame signal, the wireless signal synchronization between the base stations is realized, that is, the transmission continuity of the communication data of the terminal device can be realized.
In order to ensure the switching effect of the terminal device between the base stations and better ensure the communication continuity, the base stations need to be synchronized with wireless signals, that is, wireless frame signals of the base stations are synchronized, so that the clock deviation of the wireless frame signals of the base stations is reduced as much as possible. In the current scheme, to implement wireless synchronization of base stations, information interaction between base stations is usually performed by sending wireless frame signals, so as to implement wireless synchronization. The wireless frame signal mode is that one base station adopts a radio frequency chip and performs information interaction with another base station through a wireless radio frequency frame. It can be known that the coverage area of the base station is limited by the coverage area of the antenna of the rf chip in the base station, and therefore, the coverage area of one base station needs to be ensured to be within the coverage area of another base station when wireless synchronization is performed by using a wireless frame signal, which makes the coverage area of the system limited.
It is noted that the terminal device as referred to above may be a wireless terminal device, i.e. a terminal device with wireless communication functionality, which may also be referred to as a handheld (Handset) terminal or a Handset or a headset. The base stations referred to above may also be referred to as wireless base stations, or wireless access network devices, or other similar devices that access a VOIP network.
In order to improve the coverage of the system and ensure the synchronization of the base stations, the embodiments of the present application provide various wireless synchronization methods, which can implement the wireless synchronization between the base stations in an ethernet message manner, so as to avoid the influence of the coverage of the base stations on the wireless synchronization.
The following embodiments of the present application provide a wireless synchronization method, which can be applied in a wireless communication system, such as a wireless cellular system (Multi-Cell system), the wireless communication system including: the base station system comprises a plurality of base stations, wherein a master base station and at least one slave base station exist in the plurality of base stations, and each master base station is respectively connected with the at least one slave base station in a communication mode through an Ethernet interface. The master base station may be a preset base station of the plurality of base stations, or a base station selected from the plurality of base stations by using a preset master base station selection rule. Of course, the master base station and the slave base station are only different in base station identity, and may be base stations having the same chip structure. The identities of the master base station and the slave base station are not constant, and under some conditions, for example, when the existing master base station fails or other conditions are met, the target base station may be determined as a new master base station again, and the identity state of the new master base station may be configured to be the master base station, so that the following operations in the wireless synchronization method performed by the master base station may be performed. In a possible implementation manner, the identity of the base station is master or slave, and the identity of each base station can be set by the user through a setting webpage to be used as the master base station or the slave base station. Of course, other setting manners are also possible, and are not described in detail herein.
Before explaining the wireless synchronization method provided in the present application, the following example is given to the circuit of the base station to which the present application is applied. Fig. 1 is a schematic structural diagram of a base station according to an embodiment of the present application. As shown in fig. 1, the base station 10 may include: a processing chip 11, an Ethernet chip 12 and a wireless communication chip 13. The processing chip 11 is in communication connection with the Ethernet chip 12, and the Ethernet chip 12 is also in communication connection with the wireless communication chip 13;
the processing chip 11 is used for processing data of the base station, such as processing VOIP signaling and voice signals; the Ethernet chip 12 is used for being in communication connection with Ethernet chips of other base stations through Ethernet; the wireless communication chip 13 is used for transmitting and receiving wireless frame signals.
The processing chip 11 as shown above may be a main chip of the base station, a chip on which a main processor is located, which may also be referred to as a system on chip or a system on chip (systemona chip). The processing chip 11 may have a predetermined data processing module by which data of the base station may be processed, such as being responsible for voice signal processing and VOIP signaling processing, so as to enable the base station to process VOIP communications between the wireless mobile terminal and the IP network and to enable roaming of communication sessions of the wireless mobile terminal associated with the base station to an associated foreign wireless base station. The data processing module may be, for example, a Digital Enhanced Cordless Telecommunications (DECT) manager having a DECT management function, the DECT management function of the data processing module being such that the data processing module can implement processing of mobile data of the base station, such as DECT data.
The mobile data of the base station may include: mobile network data, which may be, for example, Voice Over Internet Protocol (VOIP) data, such as VOIP signaling, and Voice data. Therefore, the processing chip may also be referred to as an APPlication chip, or APPlication system on chip (APP SOC).
The ethernet chip 12 may be a network clock synchronization module, a Physical (PHY) chip with Precision Time Protocol (PTP) function, and may also be referred to as a physical network chip. The PTP function on the ethernet chip 12 may be implemented by a PTP application, such as a PTPV2 application. The ethernet chip 12 can perform network transmission with ethernet chips of other base stations through ethernet messages, and the PTP function of the ethernet chip 12 can enable the ethernet chip 12 to perform insertion of time information and adjustment of clock phase. The ethernet chip 12 may include: the module comprises a module for outputting a plurality of pulse signals with various periods (self-defined time sequence), and a module for generating the pulse signals with various periods. The PTP application on the ethernet chip 12 can set the same start time point and cycle time for the pulse signals of various cycles.
The wireless communication chip 13 may be a DECT chip, which can transmit and receive wireless frame signals, also called DECT wireless signals.
The ethernet chip 12 is connected to the processing chip 11 through a set of General Purpose Input/Output (GPIO) interfaces, so as to interact with the processing chip 11 through the set of GPIO interfaces. The set of GPIO interfaces may include: the serial communication bus interface is also called a Management Data Input/Output (MDIO) interface, and is used to transmit Management Data, and may further include a reserved GPIO interface as an interrupt interface to receive an interrupt trigger signal sent by the processing chip 11.
The ethernet chip 12 is also connected to the wireless communication chip 13 through another set of GPIO interfaces, so as to implement signal interaction with the wireless communication chip 13 through the other set of GPIO interfaces. Wherein the another set of GPIO interfaces may include: and the plurality of GPIO interfaces for transmitting the pulse signals are respectively used for transmitting the corresponding pulse signals to the wireless communication chip 13. The other set of GPIO interfaces further includes: and a plurality of reserved GPIO interfaces, wherein one reserved GPIO interface is used to Output a pulse signal as a main base station, and the other reserved GPIO interface is a reserved input/Output (reservedlnput/Output) interface used to transmit a time division multiplexing synchronization (tmd _ fsync) signal to the wireless communication chip 13.
It should be noted that, in the base station 10 shown above, the processing chip 11, the ethernet chip 12 and the wireless communication chip 13 are also respectively connected to corresponding clock oscillators to respectively obtain corresponding clock signals.
Fig. 2 is a schematic structural diagram of another base station according to an embodiment of the present disclosure. As shown in fig. 2, on the basis of the base station shown in fig. 1, the processing chip 11 may be connected to a first clock oscillator 14, and the first clock oscillator 14 may provide a clock signal for the processing chip 11. The ethernet chip 12 is further connected to a second clock oscillator 15, and the second clock oscillator 15 can provide a clock signal for the ethernet chip 12. The wireless communication chip 13 is also connected to a third clock crystal 16, and the third clock crystal 16 can provide a clock signal for the wireless communication chip 13.
It should be noted that, in one possible example, the first clock crystal 14, the second clock crystal 15, and the third clock crystal 16 may be clock crystals with different crystal frequencies. The first clock oscillator 14 may be, for example, a clock oscillator of 24Mhz, the second clock oscillator 15 may be, for example, a clock oscillator of 25Mhz, and the third clock oscillator 16 may be, for example, a clock oscillator of 13.82 Mhz.
In the base station shown in fig. 2, the ethernet chip 12 may include a plurality of GPIO interfaces for transmitting pulse signals, respectively for transmitting pulse signals of a plurality of cycles, wherein two GPIO interfaces may be connected to two input terminals of the or gate 17, and an output terminal of the or gate 17 may be connected to an interface on the wireless communication chip 13. The two GPIO interfaces of the or gate 17 may be used to transmit the 160ms pulse signal and the 10ms pulse signal, respectively. After the or gate 17 performs or processes, a wireless frame signal, also called DECT frame signal, is formed and transmitted to the wireless communication chip 13. The GPIO interfaces for transmitting the Pulse signals further include a GPIO interface for the Pulse-Per-Second signal, which can be used to output a Pulse-Per-Second (PPS) signal with a period of 4s, and the GPIO interface for the Pulse-Per-Second signal can be connected to the processing chip 11 and a corresponding interface on the wireless communication chip to output the Pulse-Per-Second signal as a trigger signal. In the base station, the OR gate replaces the traditional programmable logic device, so that the cost of the base station is effectively reduced.
The ethernet chip 12 further includes: one reserved GPIO interface is used to output pulse signals such as 160ms and 10ms pulse signals as a main base station, and the other reserved GPIO interface is used to transmit a time division multiplexing synchronization (tmd _ fsync) signal to the wireless communication chip 13;
the GPIO interface of the ethernet chip 12 may further include: an MDIO interface to transmit management data, and an INT interface to transmit an interrupt signal.
The embodiment of the application also provides a plurality of wireless synchronization methods applied to the base station. The base station may be a master base station or a slave base station, and in the case of the master base station, the base station may perform a wireless synchronization method performed by any one of the master base stations as follows, and in the case of the slave base station, the base station may perform a wireless synchronization method performed by any one of the slave base stations as follows.
The wireless synchronization method provided by the present application is explained by way of a number of examples in conjunction with an intra-base station chip architecture as follows. Fig. 3 is a flowchart illustrating a wireless synchronization method according to an embodiment of the present application, where the wireless synchronization method can be implemented by a slave base station and a master base station cooperatively and interactively. As shown in fig. 3, the method may include:
s301, the slave base station sends a first Ethernet message to the master base station.
The slave base station may have a chip structure similar to that of the master base station, and its circuit structure may be as shown in fig. 1 or fig. 2 described above. In practical applications, the ethernet chip in the slave base station may generate the first ethernet packet to the ethernet chip of the master base station. The Ethernet chip of the slave base station and the Ethernet chip of the master base station can transmit Ethernet messages through a preset Ethernet interface, and network transmission of data between the base stations is achieved. The ethernet interface may be, for example, a wired network interface.
The first ethernet packet may be a Delay request (Delay _ req) packet, and the slave base station may obtain Delay information by sending the first ethernet packet to the master base station.
Correspondingly, the method can further comprise the following steps:
the master base station receives the first Ethernet message sent by the slave base station. In a possible application, the ethernet chip of the master base station may receive a first ethernet packet of the ethernet packets of the slave base stations.
S302, the master base station sends a second ethernet packet to the slave base station, where the second ethernet packet includes the second time information, and the second time information may be the receiving time of the first ethernet packet.
The master base station can record the receiving time of the first Ethernet message under the condition of receiving the first Ethernet message from the slave base station, and the receiving time of the first Ethernet message is taken as second time information to be carried in the second Ethernet message and sent to the slave base station.
The second ethernet packet may be a Delay _ resp packet, and the master base station sends the second ethernet packet to the slave base station to inform the second time information, so that the slave base station calculates the network Delay. The second time information may be a timestamp, or may be other time indication information.
Correspondingly, the method further comprises the following steps:
and receiving the second Ethernet message sent by the main base station from the slave base station.
In a possible implementation manner, after the slave base station sends the first ethernet packet, the slave base station performs reception detection on the second ethernet packet until detecting that the second ethernet packet is received. If the second ethernet packet is received, it may be determined whether the identifier of the second ethernet packet matches the identifier of the first ethernet packet, and if so, it may be determined that the second ethernet packet is a response packet corresponding to the first ethernet packet, and the second time information in the second ethernet packet is read, so as to continue to execute S303 below. Otherwise, if not, determining that the second ethernet packet is not the response packet corresponding to the first ethernet packet, and returning to continue executing the detection operation of the second ethernet packet until the identifier in the received second ethernet packet matches the identifier of the first ethernet packet. The identifier of the second ethernet packet mentioned above may be, for example, a sequence number carried by the second ethernet packet, and the identifier of the first ethernet packet may be, for example, a sequence number carried by the first ethernet packet.
In another possible implementation manner, whether the first packet is sent from the base station or not, the ethernet packet is monitored, and the corresponding packet is processed once the corresponding packet is received. When the ethernet packet is monitored, it can be determined whether the ethernet packet is from the master base station corresponding to the slave base station, and it can be determined that the monitored ethernet packet is the response packet corresponding to the first packet, i.e., the second ethernet packet is received. The slave base station can set the physical address of the master base station to a PTP application program such as a PTPV2 application program on the Ethernet chip through a DECT program in the wireless communication chip and then the slave base station can judge whether the monitored Ethernet message is the Ethernet message from the master base station based on the configured physical address of the master base station. The physical address of the main base station may be a Media Access Control (MAC) address of the main base station.
S303, the slave base station determines the network delay of the master base station and the slave base station according to the first time information and the second time information; the first time information is used for indicating the sending time of the first Ethernet message.
It should be noted that, in the above S301, when the slave base station transmits the first ethernet packet, the transmission time of the first ethernet packet may also be recorded, and the transmission time of the first ethernet packet may be stored as the first time information.
Therefore, when the slave base station receives the second Ethernet message sent by the master base station, the network delay can be obtained by calculating based on the first time information recorded in advance and the second time information acquired from the second Ethernet message. The first time information may be a timestamp, or may be other time indication information.
In one possible example, the time difference between the first time information and the second time information may be calculated, and the network delay, i.e., the transmission delay of the first ethernet packet from the slave base station to the master base station, may be calculated according to the time difference between the first time information and the second time information.
And S304, the slave base station performs clock synchronization on the slave base station and the master base station according to the network delay and the preset clock deviation.
The slave base station can adjust the local clock of the slave base station according to the network delay and the preset clock deviation so as to enable the local clock of the slave base station to be synchronous with the local clock of the master base station, and therefore wireless synchronization is achieved.
Unless specifically stated otherwise, the inter-base station message transmission referred to in this application refers to the message transmission between the respective ethernet chips on the base stations.
Since the ethernet chip of the slave base station has the PTP function, the above-described S301 to S304 can be performed by the PTP function, thereby realizing clock synchronization between the slave base station and the master base station, that is, synchronizing the clock of the slave base station to the clock of the master base station.
The preset clock offset may be a preset clock offset in the master base station and the slave base station, which may be a preset clock offset, a clock offset calculated before S304, or a clock offset obtained in another manner.
According to the wireless synchronization method provided by the embodiment of the application, the first Ethernet message can be sent to the main base station through the slave base station, the second Ethernet message which is returned by the main base station and comprises the receiving time of the first Ethernet message is received, then the network delay of the slave base station and the network delay of the master base station are determined according to the receiving time of the first Ethernet message and the sending time of the first Ethernet message, and the slave base station and the main base station are subjected to clock synchronization based on the network delay and the preset clock deviation. That is, in the method, the slave base station and the master base station acquire network delay through interactive ethernet messages, and then perform clock synchronization without performing synchronization based on a wireless frame signal.
When each slave base station realizes clock synchronization with the master base station, the clock synchronization is also realized among the slave base stations.
Since the communication environment conditions change at any time, the wireless synchronization between the master base station and the slave base station can be performed by continuously taking the clock of the master base station as a reference at a preset period to synchronize the clock of the slave base station.
For this reason, in one possible implementation example, in the wireless synchronization method shown above, the slave base station may send the first ethernet packet to the master base station for a preset period, so as to perform periodic synchronization adjustment on clocks of the slave base station and the master base station, so as to ensure wireless synchronization of the slave base station and the master base station, thereby ensuring seamless roaming of the terminal device between the base stations and avoiding communication interruption.
On the basis of the above-described scheme, the embodiments of the present application may also provide a possible implementation manner, in which the clock skew between the master base station and the slave base station may be obtained by exchanging ethernet messages between the master base station and the slave base station, so as to perform clock synchronization. The following is explained with reference to examples. Fig. 4A is a flowchart illustrating another wireless synchronization method according to an embodiment of the present application. Optionally, before the slave base station sends the first ethernet packet to the master base station in S301, the method may further include the following operations:
s401a, the master base station sends a third Ethernet message to the slave base station.
The master base station may also send the third ethernet message to the slave base station at a preset period.
In a smaller time period, the skew of the master-slave clock is usually less variable, so in one implementation, the master base station may send the third ethernet message for a period greater than the slave base station sends the first ethernet message. Of course, in other examples, the period for the master base station to send the third ethernet packet and the period for the slave base station to send the first ethernet packet may also be the same.
In another implementation, the slave base station may send the first ethernet packet to the master base station after receiving the third ethernet packet from the master base station, instead of autonomously at preset intervals.
The third ethernet message may be, for example, a Synchronization (SYNC) message, which is used to trigger the slave base station to perform clock synchronization of the master base station and the slave base station.
Correspondingly, the method can further comprise the following steps:
and the slave base station receives the third Ethernet message sent by the master base station.
The slave base station may perform reception detection of the third ethernet message in a preset period until detecting that the third ethernet message is received. The period for detecting the third ethernet packet from the base station may be different from or the same as the aforementioned period. Of course, the slave base station may not periodically perform the detection of the third ethernet packet, but continuously perform the detection of the ethernet packet, which is not limited in this application.
S402a, the master base station sends a fourth ethernet packet to the slave base station, where the fourth ethernet packet includes: and third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message.
The master base station may record and store the transmission time of the third ethernet packet, that is, the third time information, in the case of transmitting the third ethernet packet. The master base station may send the fourth ethernet packet to the slave base station after a preset time interval after sending the third ethernet packet; the fourth ethernet message may also be transmitted to the slave base station after the third ethernet message is transmitted. In a possible application example, the master base station may send the third time information to an application program of a PTP function, carry the third time information in a fourth ethernet message through the application program of the PTP function, and trigger sending of the fourth ethernet message to the slave base station.
Optionally, the fourth ethernet network as shown above may be a Follow-up (Follow-up) message.
Correspondingly, the method further comprises the following steps:
and receiving the fourth Ethernet message sent by the main base station from the slave base station.
And receiving the third ethernet message from the base station, and acquiring the receiving time of the third ethernet message, namely the fourth time information, wherein the fourth ethernet message can be detected until the fourth ethernet message is received. If an ethernet packet is received, it may be determined whether the identifier of the received ethernet packet matches the identifier of the third ethernet packet, and if so, it may be determined that the received ethernet packet is a packet corresponding to the third ethernet packet, and it is determined that the received ethernet packet is the third ethernet packet, and the third time information in the fourth ethernet packet is read, so as to continue to execute S303 below. Otherwise, if not, determining that the received ethernet message is not the message corresponding to the third ethernet message, and returning to continue executing the detection operation of the ethernet message until the identifier in the received ethernet message matches the identifier of the third ethernet message. The identifier of the received ethernet packet as mentioned above may be, for example, a sequence number carried by the received ethernet packet, and the identifier of the third ethernet packet may be, for example, a sequence number carried by the third ethernet packet.
S403a, the slave base station determines the clock skew between the master base station and the slave base station to be the preset clock skew according to the first time information, the second time information, the third time information and the fourth time information.
Wherein the fourth time information is used for indicating the receiving time of the third ethernet message.
In this way, when the third ethernet packet is received from the base station, the receiving time of the third ethernet packet can be acquired and recorded, and the receiving time of the third ethernet packet can be stored as the fourth time information.
When the fourth ethernet packet is received from the base station, the sending time of the third ethernet packet can be read from the fourth ethernet packet, and the sending time of the third ethernet packet is recorded and stored as the third time information. The third time information and the fourth time information may also be time stamps or other time indication information.
The slave base station, when acquiring the third time information and the fourth time information, may calculate a time difference between the third time information and the fourth time information, and a time difference between the first time information and the second time information, and calculate a clock offset between the master base station and the slave base station based on the two time differences. And the time difference between the third time information and the fourth time information is the transmission delay of the third Ethernet message from the master base station to the slave base station.
For example, the slave base station may calculate the clock skew of the master base station and the slave base station using the following formula (1) based on the first time information, the second time information, the third time information, and the fourth time information.
Offset=[(t 4 -t 3 )-(t 2 -t 1 )]/2 formula (1)
Wherein Offset is the clock Offset of the master base station and the slave base station, t 4 The fourth time information is the receiving time of the third ethernet message, such as the synchronization message, that is, the time of receiving the third ethernet message from the base station. t is t 3 Is the third time information, i.e. the sending time of the third ethernet message, e.g. the synchronization message, i.e. the time when the master base station sends the third ethernet message.
t 2 The second time information is the receiving time of the first ethernet packet, such as the delay request packet, that is, the time of the main base station receiving the first ethernet packet. t is t 1 The first time information is the sending time of the first ethernet message, such as the delay request message, i.e. the time of sending the first ethernet message from the base station.
The above is only an example of calculating the clock offset, and based on the time information, the clock offsets of the master base station and the slave base station may be obtained in other calculation manners, which is not described herein again.
In the wireless synchronization method provided in this embodiment of the present application, before the slave base station sends the first ethernet packet to the master base station, the clock skew between the master base station and the slave base station, that is, the master-slave clock skew, is calculated according to the sending time and the receiving time of the third ethernet packet and the sending time and the receiving time of the first ethernet packet by receiving the third ethernet packet and the fourth ethernet packet sent by the master base station, and then the master-slave base station and the network delay perform clock synchronization together, so that clock synchronization and delay synchronization in the wireless synchronization process are ensured, and the effect of wireless synchronization can be effectively ensured under the condition that the coverage of the communication system is improved.
Based on the above-mentioned solution, in another implementation, a third ethernet message may be sent to the slave base station by the master base station to obtain a clock offset between the master base station and the slave base station, so as to perform clock synchronization. The following is explained with reference to examples. Fig. 4B is a flowchart illustrating another wireless synchronization method according to an embodiment of the present application. Optionally, before the slave base station sends the first ethernet packet to the master base station in S301, the method may further include the following operations:
s401b, the master base station sends a third ethernet message to the slave base station, where the third ethernet message includes: and third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message.
The master base station may also send the third ethernet message to the slave base station at a preset period.
In another implementation manner, the master base station may carry the third time information in the third ethernet packet and send the third ethernet packet to the slave base station, without additionally sending another ethernet packet to transmit the sending time, so that the number of ethernet packets exchanged between the master base station and the slave base station is reduced.
The third ethernet message may be, for example, a Synchronization (SYNC) message for triggering the slave base station to perform clock synchronization of the master base station and the slave base station.
Correspondingly, the method can further comprise the following steps:
and the slave base station receives the third Ethernet message sent by the master base station.
The slave base station can acquire and record the receiving time of the third Ethernet message under the condition that the slave base station receives the third Ethernet message, store the receiving time of the third Ethernet message as fourth time information, and simultaneously acquire the third time information from the third Ethernet message.
S402b, the slave base station determines the clock skew of the master base station and the slave base station to be the preset clock skew according to the first time information, the second time information, the third time information and the fourth time information.
Wherein the fourth time information is used for indicating the receiving time of the third ethernet message.
The implementation of S402b can be referred to the implementation of S403a, which is not described herein again.
In the wireless synchronization method provided in this embodiment of the present application, before the slave base station sends the first ethernet packet to the master base station, the third ethernet packet sent by the master base station is received, and according to the sending time and the receiving time of the third ethernet packet and the sending time and the receiving time of the first ethernet packet, the clock skew between the master base station and the slave base station, that is, the master-slave clock skew, is calculated, and then the master-slave base station and the network delay perform clock synchronization together, so that clock synchronization and delay synchronization in the wireless synchronization process are ensured, and the effect of wireless synchronization can be effectively ensured under the condition of improving the coverage of the communication system.
In a possible implementation manner of determining the network delay, the network delay may be calculated according to a time difference between the first time information and the second time information, or may be calculated according to a time difference between the first time information and the second time information, and a time difference between the third time information and the fourth time information.
Optionally, as shown above, in S303, the determining, by the slave base station, the network delay of the master base station and the slave base station according to the first time information and the second time information may include:
and determining the network delay of the master base station and the slave base station according to the first time information, the second time information, the third time information and the fourth time information.
For example, in this implementation, the network delays of the master base station and the slave base station may be determined according to a time difference between the first time information and the second time information, a time difference between the third time information and the fourth time information, and an average difference between the two time differences.
For example, the slave base station may calculate the network delay of the master base station and the slave base station according to the first time information, the second time information, the third time information, and the fourth time information by using the following formula (2).
Delay=[(t 4 -t 3 )+(t 2 -t 1 )]Formula 2 (2)
Wherein Delay is the network Delay of the master base station and the slave base station, t 4 Is the fourth time information, i.e. the time of receiving the third ethernet message, e.g. the synchronization message, i.e. the time of receiving the third ethernet message from the base station. t is t 3 Is the third time information, i.e. the sending time of the third ethernet message, e.g. the synchronization message, i.e. the time when the master base station sends the third ethernet message.
t 2 The second time information is the receiving time of the first ethernet packet, such as the delay request packet, that is, the time of the main base station receiving the first ethernet packet. t is t 1 The first time information is the sending time of the first ethernet message, such as the delay request message, i.e. the time of sending the first ethernet message from the base station.
The above is only an example of calculating the network delay, and based on the time information, the network delays of the master base station and the slave base station may also be obtained in other calculation manners, which is not described herein again.
In the method provided by this embodiment, the network delay can be calculated by using two sets of time information obtained from the ethernet messages exchanged between the master base station and the slave base station, and the calculated network delay can be ensured to be more accurate, thereby ensuring the wireless synchronization effect of the master base station and the slave base station based on the network delay.
In some other possible implementation manners, the embodiment of the present application may further provide a wireless synchronization method, which is explained by taking the detection or sending opportunity of the ethernet packet as an example. Fig. 5 is a flowchart illustrating another wireless synchronization method according to an embodiment of the present application. Before the master base station transmits the third ethernet message to the slave base station in the above method S401a or S401b, the method may further include:
s501, the slave base station determines whether the delay request time arrives according to a preset delay request period.
Before this, the clock of the slave base station may be initialized, and the S501 may be performed after the clock of the slave base station is initialized. In practical applications, for example, whether the delay request time arrives may be determined according to a preset delay request period and the time of last sending of the first ethernet packet.
And S502, if the delay request time does not arrive, detecting the third Ethernet message from the base station.
And if the delay request time does not arrive, detecting the third Ethernet message from the base station until the third Ethernet message is received.
Optionally, as shown above, the sending the first ethernet packet from the base station to the master base station in S301 may include:
and S503, if the delay request time arrives, the slave base station sends the first Ethernet message to the master base station.
In the wireless synchronization method provided in this embodiment, the timing for detecting the third ethernet packet and the timing for sending the ethernet packet may be performed for the slave base station, so that the master base station and the slave base station may periodically perform wireless synchronization.
On the basis of the wireless synchronization method as described in any of the above, the method may further include:
and transmitting a wireless synchronization signal through a plurality of pulse signals with different periods, wherein the wireless synchronization signal is used for enabling the slave base station and the master base station to perform time synchronization on wireless frames.
The wireless frame signal can be transmitted by a plurality of pulse signals with different periods whether the main base station or the slave base station. That is, each base station in the system can transmit the synchronization signal through the plurality of pulse signals with different periods. In a specific implementation, the ethernet chip of the base station may send the plurality of pulse signals with different periods to the wireless communication chip of the base station, so that the wireless communication chip of the base station transmits the synchronization signal based on the plurality of pulse signals with different periods, thereby performing time synchronization on the wireless frames transmitted by the base station and other base stations.
Wherein, the plurality of pulse signals with different periods may include: multi-frame pulse signals, single-frame pulse signals and second pulse signals. The multi-frame pulse signal may be, for example, a pulse signal having a period of 160ms and a bandwidth of 2.5ms, and the single-frame pulse signal may be, for example, a pulse signal having a period of 10ms and a bandwidth of 416.66 us.
The ethernet chip of the base station can also send a pulse per second signal, such as a pulse signal of 4s or a pulse signal of a multiple of 4s, to the processing chip of the slave base station as a trigger response, so that the processing chip of the master base station triggers and responds to the frame counts of the plurality of slave base stations based on the pulse per second signal, and the frame counts of the plurality of slave base stations and the frame count of the master base station are completely synchronized wirelessly. That is, the ethernet chip of the base station can trigger and control a plurality of base stations to perform clock synchronization at the same time every period corresponding to the pulse per second signal, for example, 4 s.
The wireless synchronization signal may include: a radio frame synchronization signal, and/or a pulse per second signal. As explained below, respectively.
After the ethernet chip of the base station outputs the multi-frame pulse signal and the single-frame pulse signal, the ethernet chip may be combined and processed through a preset processing circuit or chip, such as the or gate 17 shown in fig. 2, to obtain a wireless frame synchronization signal, which is also called a DECT synchronization signal.
Taking the example that the multi-frame pulse signal is a 160ms pulse signal and the single-frame pulse signal is a 10ms pulse signal, the wireless frame synchronization signal may be a pulse signal with a period of 10ms +160 ms. The wireless frame synchronization signal is output to a wireless communication chip of the base station and then can be used as a frame synchronization reference signal to transmit a corresponding wireless frame signal, so that synchronization of the wireless frame signal is realized. The radio frame signal may include: a multi-frame sync signal, or a single-frame sync signal. By combining the combined wireless frame synchronization signals, not only the multi-frame synchronization of the base station can be realized, but also the single-frame synchronization can be realized.
The ethernet chip of the base station can also output the pulse per second signal to the wireless communication chip of the base station as a multiframe synchronization reference signal corresponding to the pulse per second period, which is also called a second synchronization signal.
The wireless frame signals are transmitted through the pulse signals with different periods, so that the wireless frame signals corresponding to the pulse signals with different periods have the same starting time and period time, and the strict synchronization of the wireless frame signals corresponding to the pulse signals with different periods is ensured. That is, the start times of the multi-frame signal, the single-frame signal and the second signal are the same through the multi-frame synchronization signal, the single-frame synchronization signal and the second synchronization signal, and the time synchronization of the wireless frames among the base stations is realized.
By the wireless synchronization method, wireless communication chips, namely DECT chips of a plurality of base stations can be synchronized based on the pulse signals with different periods, wireless synchronization of the base stations and the terminal equipment is achieved, and the terminal equipment can realize seamless roaming in the base stations.
On the basis of the method provided by the above embodiment, the embodiment of the present application may also provide a wireless synchronization method. As explained below by using a specific application example, it should be noted that the following is only a possible implementation manner, and the wireless synchronization method provided in the embodiment of the present application may also be implemented by other manners, which is not described herein again. Fig. 6 is a flowchart illustrating another wireless synchronization method according to an embodiment of the present application. As shown in fig. 6, the wireless synchronization method may include:
s601, the Ethernet chip 1 of the main base station sends a synchronous message to the Ethernet chip 2 of the slave base station.
S602, the Ethernet chip 1 of the main base station sends a following message to the Ethernet chip 2 of the slave base station, wherein the following message comprises the sending time of the synchronous message.
S603, the Ethernet chip 2 of the slave base station sends a delay request message to the Ethernet chip 1 of the master base station.
S604, the ethernet chip 1 of the master base station sends a delay response packet to the ethernet chip 2 of the slave base station, where the delay response packet includes: the time of receipt of the delay request message.
And S605, calculating the clock deviation of the master base station and the slave base station and the network delay by the Ethernet chip 2 of the slave base station.
The ethernet chip 2 of the slave base station can calculate the clock offset and the network delay according to the sending time of the synchronization message, the receiving time of the synchronization message, the sending time of the delay request message and the receiving time of the delay request message.
And S606, the Ethernet chip 2 of the slave base station adjusts a local clock according to the clock deviation and the network delay.
The Ethernet chip 2 of the slave base station can adjust the local clock according to the clock deviation and the network delay, thereby realizing the clock synchronization of the master base station and the slave base station.
In addition, the method may further include:
s601a, the ethernet chip 1 of the main base station transmits the multi-frame pulse signal, the single-frame pulse signal, and the second pulse signal to the wireless communication chip 1 of the main base station.
The Ethernet chip 1 of the main base station sends a multi-frame pulse signal, a single-frame pulse signal and a pulse per second signal to the wireless communication chip 1 of the main base station, so that the wireless communication chip 1 of the main base station and the slave base station perform time synchronization on wireless frames based on the multi-frame pulse signal, the single-frame pulse signal and the pulse per second signal.
S607, the ethernet chip 2 of the slave station transmits the multi-frame pulse signal, the single-frame pulse signal, and the second pulse signal to the wireless communication chip 2 of the slave station.
The ethernet chip 2 of the slave base station transmits the multi-frame pulse signal, the single-frame pulse signal, and the pulse-per-second signal to the wireless communication chip 2 of the slave base station, so that the wireless communication chip 2 of the slave base station can perform time synchronization of the wireless frame with the master base station based on the multi-frame pulse signal, the single-frame pulse signal, and the pulse-per-second signal.
It should be noted that the specific implementation manner of the above steps may be similar to that described in the method shown in the foregoing embodiment, and is not repeated herein, the execution sequence of the above steps S601a and S607 is not limited in this embodiment, and the execution sequence in fig. 6 is only one possible example.
In the method provided in this embodiment, the slave base station and the master base station implement clock synchronization and time synchronization of the radio frame through exchanging ethernet packets, and do not need to perform synchronization based on a radio frame signal.
The following describes a device, a storage medium, and the like for executing the wireless synchronization method provided by the present application, and specific implementation procedures and technical effects thereof are referred to above, and will not be described again below.
Fig. 7 is a schematic diagram of a wireless synchronization apparatus according to an embodiment of the present application, and as shown in fig. 7, the wireless synchronization apparatus 700 may be applied to a slave base station, and may include:
a sending module 701, configured to send a first ethernet packet to a primary base station.
A receiving module 702, configured to receive a second ethernet packet sent by a primary base station, where the second ethernet packet includes: the first time information is used for indicating the receiving time of the first Ethernet message.
A processing module 703, configured to determine network delays of the master base station and the slave base station according to the first time information and the second time information; wherein, the second time information is used for indicating the receiving time of the second Ethernet message; and performing clock synchronization on the slave base station and the master base station according to the network delay and the preset clock deviation.
Optionally, the receiving module 702 is further configured to receive a fourth ethernet packet sent by the main base station after receiving the third ethernet packet sent by the main base station, where the fourth ethernet packet includes: and third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message.
The processing module 703 is further configured to determine, according to the first time information, the second time information, the third time information, and the fourth time information, that the clock skew between the master base station and the slave base station is the preset clock skew; wherein the fourth time information is used for indicating the receiving time of the third ethernet message.
Optionally, the receiving module 702 is further configured to receive a third ethernet message sent by the master base station; wherein the third ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of a third Ethernet message;
the processing module 703 is further configured to determine, according to the first time information, the second time information, the third time information, and fourth time information, that the clock skew between the master base station and the slave base station is the preset clock skew; wherein the fourth time information is used for indicating the receiving time of the third ethernet message.
Optionally, the processing module 703 is specifically configured to determine the network delays of the master base station and the slave base station according to the first time information, the second time information, the third time information, and the fourth time information.
Optionally, the processing module 703 is further configured to determine whether the delay request time arrives according to a preset delay request period; and if the delay request time does not come, detecting the third Ethernet message.
Optionally, the sending module 701 is specifically configured to send the first ethernet packet to the primary base station if the delay request time arrives.
Optionally, the wireless synchronization apparatus 700 further includes:
and the transmitting module is used for transmitting a wireless synchronization signal through a plurality of pulse signals with different periods, and the wireless synchronization signal is used for enabling the slave base station and the master base station to perform time synchronization on the wireless frames.
Optionally, the pulse signals with different periods as shown above include: multi-frame pulse signals, single-frame pulse signals and second pulse signals.
Optionally, the first ethernet packet shown above is: the second Ethernet message is a delay response message;
the third ethernet message is: and the fourth Ethernet message is a following message.
The above-mentioned apparatus is used to execute the wireless synchronization method executed from the base station in the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 8 is a schematic diagram of another wireless synchronization apparatus provided in an embodiment of the present application, and as shown in fig. 8, the wireless synchronization apparatus 800 may be applied to a master base station, and may include:
a receiving module 801, configured to receive a first ethernet packet sent from a base station;
a sending module 802, configured to send a second ethernet packet to the slave base station, where the second ethernet packet includes: first time information, where the first time information is used to indicate a receiving time of the first ethernet packet; the second ethernet message is used for enabling the slave base station to determine the network delay of the master base station and the slave base station according to the first time information and the second time information, and perform clock synchronization on the slave base station and the master base station according to the network delay and a preset clock deviation; wherein the second time information is used for indicating the receiving time of the second ethernet packet.
Optionally, the sending module 802 is further configured to send a third ethernet message to the slave base station; sending a fourth ethernet packet to the slave base station, the fourth ethernet packet including: third time information, wherein the third time information is used for indicating the sending time of a third Ethernet message; the fourth ethernet message is used for enabling the slave base station to determine that the clock deviation of the master base station and the slave base station is the preset clock deviation according to the first time information, the second time information, the third time information and the fourth time information; and the fourth time information is used for indicating the receiving time of the third Ethernet message.
Optionally, the sending module is further configured to send a third ethernet packet to the slave base station, where the third ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of a third Ethernet message;
the third Ethernet message is used for enabling the slave base station to determine that the clock deviation of the master base station and the slave base station is the preset clock deviation according to the first time information, the second time information, the third time information and the fourth time information; the fourth time information is used for indicating the receiving time of the third Ethernet message.
Optionally, the wireless synchronization apparatus 700 further includes:
and the transmitting module is used for transmitting a wireless synchronization signal through a plurality of pulse signals with different periods, and the wireless synchronization signal is used for enabling the master base station and the slave base station to perform time synchronization on wireless frames.
The above-mentioned apparatus is used for executing the wireless synchronization method executed by the main base station in the foregoing embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Optionally, the present application also provides a program product, such as a computer-readable storage medium, comprising a program which, when executed by a processor, is adapted to perform any of the illustrated method embodiments described above.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to perform some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A wireless synchronization method applied to a slave base station, the method comprising:
sending a first Ethernet message to a main base station;
receiving a second ethernet packet sent by the master base station, where the second ethernet packet includes: second time information, wherein the second time information is used for indicating the receiving time of the first Ethernet message;
determining network delay of the master base station and the slave base station according to the first time information and the second time information; the first time information is used for indicating the sending time of the first Ethernet message;
performing clock synchronization on the slave base station and the master base station according to the network delay and a preset clock deviation;
the method further comprises the following steps:
transmitting a wireless synchronization signal through a plurality of pulse signals with different periods, wherein the wireless synchronization signal is used for enabling the slave base station and the master base station to carry out time synchronization on wireless frames;
the plurality of pulse signals of different periods includes: multi-frame pulse signals, single-frame pulse signals and second pulse signals.
2. The method of claim 1, wherein prior to sending the first ethernet packet to the primary base station, the method further comprises:
receiving a third Ethernet message sent by the main base station;
receiving a fourth ethernet packet sent by the master base station, where the fourth ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message;
determining the clock deviation of the master base station and the slave base station to be the preset clock deviation according to the first time information, the second time information, the third time information and the fourth time information; wherein the fourth time information is used for indicating the receiving time of the third ethernet packet.
3. The method of claim 1, wherein prior to sending the first ethernet packet to the primary base station, the method further comprises:
receiving a third Ethernet message sent by the main base station; wherein the third ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message;
determining the clock deviation of the master base station and the slave base station to be the preset clock deviation according to the first time information, the second time information, the third time information and the fourth time information; wherein the fourth time information is used for indicating the receiving time of the third ethernet packet.
4. The method of claim 2, wherein the determining the network delay of the master base station and the slave base station according to the first time information and the second time information comprises:
and determining the network delay according to the first time information, the second time information, the third time information and the fourth time information.
5. The method of claim 2, wherein before receiving the third ethernet message sent by the master base station, the method further comprises:
determining whether the delay request time comes or not according to a preset delay request period;
and if the delay request time does not arrive, detecting the third Ethernet message.
6. The method of claim 5, wherein sending the first ethernet packet to the primary base station comprises:
and if the delay request time arrives, sending the first Ethernet message to the main base station.
7. The method of claim 2, 4, 5 or 6, wherein the first Ethernet packet is: a delay request message, wherein the second ethernet message is a delay response message;
the third ethernet packet is: and the fourth Ethernet message is a following message.
8. A wireless synchronization method applied to a master base station, the method comprising:
receiving a first Ethernet message sent from a base station;
sending a second ethernet packet to the slave base station, where the second ethernet packet includes: second time information, wherein the second time information is used for indicating the receiving time of the first Ethernet message; the second ethernet packet is used for enabling the slave base station to determine the network delay of the master base station and the slave base station according to the first time information and the second time information, and perform clock synchronization on the slave base station and the master base station according to the network delay and a preset clock deviation; the first time information is used for indicating the sending time of the first Ethernet message;
the method further comprises the following steps:
transmitting a wireless synchronization signal through a plurality of pulse signals with different periods, wherein the wireless synchronization signal is used for enabling the slave base station and the master base station to carry out time synchronization on wireless frames;
the plurality of pulse signals of different periods includes: multi-frame pulse signals, single-frame pulse signals and second pulse signals.
9. The method of claim 8, wherein prior to receiving the first ethernet packet transmitted from the base station, the method further comprises:
sending a third Ethernet message to the slave base station;
sending a fourth ethernet packet to the slave base station, where the fourth ethernet packet includes: third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message; the fourth ethernet packet is used to enable the slave base station to determine that the clock skew between the master base station and the slave base station is the preset clock skew according to the first time information, the second time information, the third time information, and the fourth time information; wherein the fourth time information is used for indicating the receiving time of the third ethernet packet.
10. The method of claim 8, wherein prior to receiving the first ethernet packet transmitted from the base station, the method further comprises:
sending a third Ethernet message to the slave base station, wherein the third Ethernet message comprises: third time information, wherein the third time information is used for indicating the sending time of the third Ethernet message; the third ethernet message is used for enabling the slave base station to determine that the clock skew between the master base station and the slave base station is the preset clock skew according to the first time information, the second time information, the third time information and the fourth time information; the fourth time information is used for indicating the receiving time of the third Ethernet message.
11. A wireless synchronization apparatus applied to a slave base station, the wireless synchronization apparatus comprising:
the sending module is used for sending a first Ethernet message to the main base station;
a receiving module, configured to receive a second ethernet packet sent by the master base station, where the second ethernet packet includes: second time information, wherein the second time information is used for indicating the receiving time of the first Ethernet message;
the processing module is used for determining the network delay of the master base station and the slave base station according to the first time information and the second time information; the first time information is used for indicating the sending time of the first Ethernet message; performing clock synchronization on the slave base station and the master base station according to the network delay and a preset clock deviation;
optionally, the wireless synchronization apparatus further includes:
the transmitting module is used for transmitting a wireless synchronization signal through a plurality of pulse signals with different periods, wherein the wireless synchronization signal is used for enabling the slave base station and the master base station to carry out time synchronization on wireless frames;
optionally, the pulse signals of the plurality of different periods include: multi-frame pulse signals, single-frame pulse signals and second pulse signals.
12. A wireless synchronization apparatus applied to a master base station, the wireless synchronization apparatus comprising:
a receiving module, configured to receive a first ethernet packet sent from a base station;
a sending module, configured to send a second ethernet packet to the slave base station, where the second ethernet packet includes: second time information, wherein the second time information is used for indicating the receiving time of the first ethernet message; the second ethernet packet is used for enabling the slave base station to determine the network delay of the master base station and the slave base station according to the first time information and the second time information, and perform clock synchronization on the slave base station and the master base station according to the network delay and a preset clock deviation; the first time information is used for indicating the sending time of the first Ethernet message;
optionally, the wireless synchronization apparatus further includes:
the transmitting module is used for transmitting a wireless synchronization signal through a plurality of pulse signals with different periods, wherein the wireless synchronization signal is used for enabling the slave base station and the master base station to carry out time synchronization on wireless frames;
optionally, the pulse signals of the plurality of different periods include: multi-frame pulse signals, single-frame pulse signals and second pulse signals.
13. A base station, wherein the base station is a slave base station, the base station comprising: the device comprises a processing chip, an Ethernet chip and a wireless communication chip; the processing chip and the wireless communication chip are respectively in communication connection with the Ethernet chip;
the processing chip is used for processing the mobile data of the base station, and the Ethernet chip is used for being in communication connection with the Ethernet chip of the main base station through Ethernet; the wireless communication chip is used for receiving and transmitting wireless frame signals;
the ethernet chip is used to implement the wireless synchronization method of any of the above claims 1-7.
14. The base station of claim 13, wherein the ethernet chip is connected to the wireless communication chip through an or gate.
15. A base station, wherein the base station is a master base station, and wherein the base station comprises: the device comprises a processing chip, an Ethernet chip and a wireless communication chip; the processing chip and the wireless communication chip are respectively in communication connection with the Ethernet chip;
the processing chip is used for processing the mobile data of the base station, and the Ethernet chip is used for being in communication connection with the Ethernet chip of the slave base station through Ethernet; the wireless communication chip is used for realizing the transceiving of wireless frame signals;
the ethernet chip is used to implement the wireless synchronization method of any of the above claims 8-10.
CN202010492103.XA 2020-06-02 2020-06-02 Wireless synchronization method, device and base station Active CN111654906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010492103.XA CN111654906B (en) 2020-06-02 2020-06-02 Wireless synchronization method, device and base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010492103.XA CN111654906B (en) 2020-06-02 2020-06-02 Wireless synchronization method, device and base station

Publications (2)

Publication Number Publication Date
CN111654906A CN111654906A (en) 2020-09-11
CN111654906B true CN111654906B (en) 2022-08-16

Family

ID=72348219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010492103.XA Active CN111654906B (en) 2020-06-02 2020-06-02 Wireless synchronization method, device and base station

Country Status (1)

Country Link
CN (1) CN111654906B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116567798A (en) * 2023-05-26 2023-08-08 重庆智铸达讯通信有限公司 Clock synchronization processing method and device for 5G millimeter wave base station and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63260334A (en) * 1987-04-17 1988-10-27 Fujitsu Ltd Frame synchronizing protecting circuit
EP1503557A2 (en) * 2003-07-30 2005-02-02 Matsushita Electric Industrial Co., Ltd. Detection of frame synchronization in a multicarrier receiver

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025480A (en) * 2009-09-14 2011-04-20 中兴通讯股份有限公司 Method and device for realizing boundary clock in cascade base station
US8774252B2 (en) * 2010-05-27 2014-07-08 Qualcomm Incorporated System and method for transmtting and receiving signal with quasi-periodic pulse sequence
CN103701581B (en) * 2013-12-06 2017-01-18 电信科学技术第五研究所 Method for realizing IEEE1588 master clock
CN110120846B (en) * 2018-02-05 2020-11-13 大唐移动通信设备有限公司 Clock synchronization method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63260334A (en) * 1987-04-17 1988-10-27 Fujitsu Ltd Frame synchronizing protecting circuit
EP1503557A2 (en) * 2003-07-30 2005-02-02 Matsushita Electric Industrial Co., Ltd. Detection of frame synchronization in a multicarrier receiver

Also Published As

Publication number Publication date
CN111654906A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
JP7001227B2 (en) Wireless link monitoring method and wireless link monitoring device
CN111869138A (en) Method and first device for clock synchronization
US8689035B2 (en) Communication system, communication interface, and synchronization method
KR101988274B1 (en) Data transmission method, communication device, and communication system
CN102013931B (en) Time synchronization method and system, salve timing device and main timing device
CN110958070B (en) Reference time determination method and device
CN110475336A (en) A kind of method and device for realizing Network Synchronization
CN113328820B (en) Method for interacting time synchronization message and network device
WO2018210281A1 (en) Clock adjustment and clock deviation calculation method, device and system
US9900120B2 (en) Clock synchronization method and apparatus
US10778359B2 (en) Time synchronization method, programmable logic device, single board and network element
EP3531610B1 (en) Frequency synchronization method and slave clock
JP2010226460A (en) Wireless base station apparatus and synchronization method thereof
CN112838903B (en) Clock synchronization method, equipment and storage medium
JP6384697B2 (en) Synchronization method, synchronization device, and base station
EP3425969B1 (en) Synchronization information sending or receiving method, base station, and communication node
WO2018046364A1 (en) Network node of a time division duplex system, and arrangement, method, and computer program therefor
EP4109787A1 (en) Synchronization method and apparatus
WO2020187422A1 (en) Network entities and methods for a wireless network system for determining time information
CN111654906B (en) Wireless synchronization method, device and base station
CN107431960B (en) Method and apparatus for radio network synchronization
WO2016065642A1 (en) Synchronization device and method
WO2016000324A1 (en) Method and apparatus for implementing time synchronization
CN111934804A (en) Method, device and system for synchronizing communication equipment
WO2022147766A1 (en) Communication method, device, and storage medium

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