WO2020156343A1 - Clock synchronization method and device - Google Patents

Clock synchronization method and device Download PDF

Info

Publication number
WO2020156343A1
WO2020156343A1 PCT/CN2020/073341 CN2020073341W WO2020156343A1 WO 2020156343 A1 WO2020156343 A1 WO 2020156343A1 CN 2020073341 W CN2020073341 W CN 2020073341W WO 2020156343 A1 WO2020156343 A1 WO 2020156343A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
network device
time value
clock synchronization
cell
Prior art date
Application number
PCT/CN2020/073341
Other languages
French (fr)
Chinese (zh)
Inventor
黄曲芳
范强
徐小英
娄崇
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2020156343A1 publication Critical patent/WO2020156343A1/en

Links

Images

Classifications

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

Definitions

  • the embodiments of the present application relate to the field of communications, and in particular to a clock synchronization method and device.
  • each node that communicates with each other needs to realize clock synchronization.
  • the main methods of clock synchronization are: Global Positioning System (GPS) and 1588.
  • GPS Global Positioning System
  • 1588 a node (such as a master node) can be elected within a certain range.
  • the clock on the master node is used as the master clock, and other nodes (such as slave nodes) The clock on) should be synchronized with the master clock as much as possible, that is, clock synchronization is realized.
  • the premise of clock synchronization in the 1588 mode is that the transmission delay from the master node to the slave node is the same as the transmission delay from the slave node to the master node.
  • the terminal is not necessarily located outdoors.
  • the transmission delay from the network device to the terminal is different from the transmission delay from the terminal to the network device. Therefore, the terminal is not suitable for using GPS or 1588 to synchronize clocks with network devices. Therefore, a clock synchronization method and device are needed to solve the problem of clock synchronization between the terminal and the network device.
  • the embodiments of the present application provide a clock synchronization method and device to solve the problem of clock synchronization between a terminal and a network device.
  • an embodiment of the present application provides a clock synchronization method.
  • the method may include: the terminal obtains first information for determining the transmission delay between the terminal and the first network device, and obtains the first information indicating the first network device.
  • the first time value of the transmission time of the frame boundary of the radio frame of the cell the terminal can determine the second time value corresponding to the reception time of the frame boundary of the radio frame of the first cell according to the acquired transmission delay and the first time value To complete clock synchronization.
  • the foregoing first information may be information used to indicate a transmission delay.
  • the foregoing first information may be information used to indicate the distance between the terminal and the first network device; correspondingly, the foregoing method may also Including: the terminal can obtain the transmission delay according to the distance between the terminal and the first network device. That is, the terminal can acquire the transmission delay between the terminal and the first network device according to the acquired information used to indicate the distance. Instead of using TA to obtain the transmission delay, that is, without first sending a signal (such as a preamble) to the first network device, the transmission delay with the first network device can be obtained.
  • the foregoing method may further include: the terminal acquires the movement distance of the terminal from the moment when the first information is acquired to the current moment; when the movement distance is greater than The distance threshold indicates that the transmission delay between the terminal and the first network device may have changed.
  • the terminal can send to the first network device the first instruction information for instructing the first network device to re-issue the first information, so that The first network device re-delivers the first information used to determine the transmission delay between the terminal and the first network device to the terminal.
  • the method can also Including: the terminal acquires the receiving moments of the frame boundaries of the radio frames of M cells, the frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2; the terminal is based on the M cells The receiving time of the frame boundary of the radio frame of the first cell is updated. In other words, the terminal can detect the frame boundaries of the radio frames of multiple cells, and then finally determine the frame boundaries of the radio frames according to the detected results.
  • the terminal obtains the first time value, which may specifically include: the terminal may receive M cells indicating the transmission time of the frame boundary of the radio frame Time value, the frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2, and then the first time value is determined according to the acquired time values of the M cells.
  • the first network device can ensure that the The sending period of the timing message of each cell is staggered, so that the terminal can read the timing message more frequently. That is, in the M cells, the time window for the terminal to receive the time value of the transmission time indicating the frame boundary of the radio frame in different cells is different; correspondingly, the method may also include: the terminal may receive the data from the first network device The second indication information, the second indication information may be used to indicate the time window for receiving the time value of the sending moment of the frame boundary of the radio frame of the receiving cell in each of the N cells.
  • the N cells include M cells, N is an integer greater than or equal to M; the terminal receives the time value of the transmission time indicating the frame boundary of the radio frame of the M cells, which may specifically include: the terminal receives the time of the M cells according to the time window indicated by the second indication information value.
  • the method may further include: the terminal may send to the first network device Third indication information, the third indication information is used by the first network device to allocate cells for the terminal, and the cells allocated for the terminal include M cells; wherein, the third indication information is the terminal's clock accuracy requirement for the terminal; or, The third indication information is the identification of the first service of the terminal or the quality of service QoS identification of the first service, and the accuracy requirements of the first service of the terminal on the clock of the terminal are greater than the accuracy requirements of other services of the terminal on the clock of the terminal.
  • the method may further include: the terminal receives a third time value sent by the first network device, and the third time value is used to indicate the second network The sending moment of the subframe boundary of the second cell of the device; the terminal obtains the fourth time value after switching to the second cell, and the fourth time value is used to indicate the receiving moment of the subframe boundary of the second cell; The time value and the fourth time value determine the transmission delay between the terminal and the second network device; the terminal performs data transmission according to the transmission delay between the terminal and the second network device.
  • the method may further include: obtaining the system frame number of the second cell after the terminal switches to the second cell of the second network device, Receive the fifth time value sent by the second network device, the fifth time value is used to indicate the sending moment of the frame boundary of the radio frame of the second cell; the terminal obtains the sixth time value according to the system frame number, and the sixth time value is used At the receiving time indicating the frame boundary of the radio frame of the second cell; the terminal determines the transmission delay between the terminal and the second network device according to the fifth time value and the sixth time value; the terminal according to the transmission time between the terminal and the second network device Delay data transmission.
  • an embodiment of the present application provides a clock synchronization method.
  • the method may include: the first network device obtains the distance between the terminal and the first network device, and generates a method for determining the terminal and the first network based on the distance. And send the first information about the transmission delay of the device to the terminal.
  • the first network device sends to the terminal a time value indicating the transmission time of the frame boundary of the radio frame through the cell allocated for the terminal, where the cell allocated for the terminal is Contains the first cell.
  • the first information may be information used to indicate transmission delay; or, the first information may be used to indicate whether the terminal is connected to the first network Information about the distance between devices.
  • the method further includes: the first network device obtains the distance between the terminal and the first network device; The distance between the network devices has changed compared to the distance between the terminal and the first network device when the first network device delivers the first information, indicating that the transmission delay between the terminal and the first network device may have occurred Change, the first network device sends the first information to the terminal again.
  • the cells allocated to the terminal include N cells, the frame boundaries of the radio frames of the N cells are aligned, and N is an integer greater than or equal to 2. .
  • the first network device when the sending period of the timing message in each cell remains unchanged, the first network device can ensure that the The sending period of the timing message of each cell is staggered, so that the terminal can read the timing message more frequently.
  • the first network device sends the time value indicating the sending moment of the frame boundary of the radio frame to the terminal through the cell allocated for the terminal. Specifically, it may include: the first network device passes through each of the N cells in different time windows.
  • the method may further include: the first network device sends second indication information to the terminal, the second indication information is used to indicate that the terminal is in each of the N cells A time window indicating the time value of the transmission time of the frame boundary of the radio frame in the receiving cell in each cell.
  • the first network device may allocate cells to the terminal according to the instructions of the terminal. That is, the method may further include: the first network device receives third instruction information from the terminal; the first network device obtains the number X of cells that need to be allocated to the terminal according to the third instruction information; The terminal allocates N cells, and N is greater than or equal to the number X; where: the third indication information is the terminal's requirements for the accuracy of the terminal's clock, and different accuracy requirements correspond to different numbers X; or, the third indication information is the terminal's first service The identifier of different services corresponds to a different quantity X; or, the third indication information is the quality of service QoS identifier of the first service, and different QoS identifiers correspond to a different quantity X; the accuracy of the terminal’s first service to the terminal’s clock The requirements are greater than the accuracy requirements of other
  • the method may further include: the first network device receives a third time value sent by the second network device, and the third time value is used to indicate The sending moment of the subframe boundary of the second cell of the second network device; the first network device sends the third time value to the terminal.
  • an embodiment of the present application provides a clock synchronization device.
  • the clock synchronization device includes units or means for performing the steps of the first aspect above.
  • the clock synchronization apparatus may include: a first obtaining unit, configured to obtain first information, and a first time value, the first information is used to determine the transmission delay between the clock synchronization apparatus and the first network device, and the first time The value is used to indicate the sending moment of the frame boundary of the radio frame of the first cell of the first network device; the determining unit is used to determine the receiving moment of the frame boundary of the radio frame of the first cell according to the transmission delay and the first time value The corresponding second time value.
  • the first information is information used to indicate a transmission delay.
  • the first information is information used to indicate the distance between the clock synchronization apparatus and the first network device; the first acquiring unit further uses The transmission delay is obtained according to the distance between the clock synchronization device and the first network device.
  • the clock synchronization device may further include: a second acquiring unit and a sending unit; the second acquiring unit is used to acquire the The moving distance from the moment of the first information to the current moment; the sending unit is used to send the first indication information to the first network device when the moving distance is greater than the distance threshold, and the first indication information is used to instruct the first network device to reissue First information.
  • the clock synchronization device may further include: an update unit; a first acquisition unit, which is also used to acquire frame boundaries of radio frames of M cells At the receiving moment, the frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2; the update unit is used to receive the frame boundaries of the radio frames of the M cells according to the receiving moment, Update the receiving time of the frame boundary of the radio frame of the first cell.
  • the clock synchronization device may further include: a receiving unit; a receiving unit, configured to receive M cells indicating the sending time of the frame boundary of the radio frame The frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2; the first acquiring unit is specifically used to determine the first cell based on the time values of the M cells A time value.
  • the clock synchronization device receives different time windows indicating the time values of the transmission time of the frame boundary of the radio frame from different cells.
  • the receiving unit is further configured to receive second indication information from the first network device, the second indication information is used to indicate the time value of the sending moment indicating the frame boundary of the radio frame of the receiving cell in each of the N cells.
  • the N cells include M cells; the receiving unit is specifically configured to receive the time values of the M cells according to the time window indicated by the second indication information.
  • the clock synchronization apparatus may further include: a sending unit, configured to send third indication information to the first network device, and the third indication information is used for
  • the first network device allocates cells for the clock synchronization device, and the cells allocated for the clock synchronization device include M cells; where the third indication information is the accuracy requirement of the clock synchronization device for the clock synchronization device; or, the third indication information It is the identification of the first service of the clock synchronization device or the quality of service QoS identification of the first service.
  • the first service of the clock synchronization device requires more precision for the clock of the clock synchronization device than for other services of the clock synchronization device. Precision requirements.
  • the clock synchronization device may further include: a receiving unit and a transmission unit; the receiving unit is configured to receive the third time value sent by the first network device , The third time value is used to indicate the sending moment of the subframe boundary of the second cell of the second network device; the second obtaining unit is also used to obtain the fourth time value after switching to the second cell, the fourth time value It is used to indicate the receiving moment of the subframe boundary of the second cell; the determining unit is also used to determine the transmission delay between the clock synchronization device and the second network device according to the third time value and the fourth time value; the transmission unit is used to Data transmission is performed according to the transmission delay between the clock synchronization device and the second network device.
  • the clock synchronization apparatus may further include: a transmission unit; and the first acquisition unit is further configured to switch to the second cell of the second network device After that, the system frame number SFN of the second cell is acquired, and the fifth time value sent by the second network device is received.
  • the fifth time value is used to indicate the sending moment of the frame boundary of the radio frame of the second cell; the second acquiring unit, It is also used to obtain the sixth time value according to the SFN, the sixth time value is used to indicate the receiving moment of the frame boundary of the radio frame of the second cell; the determining unit is also used to determine according to the fifth time value and the sixth time value.
  • an embodiment of the present application provides a clock synchronization device.
  • the clock synchronization device may include units or means for performing the steps of the second aspect above.
  • the clock synchronization device may include: an acquiring unit, configured to acquire the distance between the terminal and the clock synchronization device, and generating first information according to the distance; and a sending unit, configured to send the first information to the terminal, the first information Used by the terminal to determine the transmission delay between the terminal and the clock synchronization device.
  • the sending unit is further configured to send a time value indicating the sending time of the frame boundary of the radio frame to the terminal through the cell allocated for the terminal, and the cell allocated for the terminal includes The first cell.
  • the first information is information used to indicate the transmission delay; or, the first information is used to indicate the communication between the terminal and the clock synchronization device. Distance information.
  • the clock synchronization device may further include: an acquiring unit, which is also used to acquire the distance between the terminal and the clock synchronization device; and a sending unit, which also uses When the acquired distance between the terminal and the clock synchronization device is compared with the distance between the terminal and the clock synchronization device when the clock synchronization device sends the first information, the first information is re-sent to the terminal.
  • the cells allocated to the terminal include N cells, and the frame boundaries of the radio frames of the N cells are aligned, and N is an integer greater than or equal to 2. .
  • the sending unit is specifically configured to send an instruction radio frame to the terminal through each of the N cells in different time windows.
  • the time value of the sending moment of the frame boundary; the sending unit is also used to send second indication information to the terminal, and the second indication information is used to instruct the terminal to receive the frame boundary of the radio frame indicating the cell in each of the N cells
  • the clock synchronization device may further include: a receiving unit and a distribution unit; a receiving unit for receiving the third indication information from the terminal; an acquiring unit , Is also used to obtain the number X of cells that need to be allocated to the terminal according to the third indication information; the allocation unit is used to allocate N cells to the terminal according to the number X, where N is greater than or equal to the number X; where: third indication information It is the terminal’s requirements for the terminal’s clock accuracy, and different accuracy requirements correspond to different numbers X; or, the third indication information is the identification of the first service of the terminal, and the identifications of different services correspond to different numbers X; or, the third indication information It is the quality of service QoS identifier of the first service, and different QoS identifiers correspond to different numbers X; the terminal's first service requires more precision for the terminal clock than other services of the terminal require for the terminal's clock.
  • the receiving unit is further configured to receive a third time value sent by the second network device, and the third time value is used to indicate the second network device The sending moment of the subframe boundary of the second cell; the sending unit is further configured to send the third time value to the terminal.
  • an embodiment of the present application provides a clock synchronization device.
  • the clock synchronization device may include a processor and an interface circuit.
  • the processor is configured to communicate with other devices, such as network equipment, through the interface circuit, and perform the above The method provided in the first aspect.
  • the processor may include one or more.
  • an embodiment of the present application provides a clock synchronization device.
  • the clock synchronization device may include a processor and an interface circuit.
  • the processor is configured to communicate with other devices, such as a terminal, through the interface circuit, and execute the above-mentioned Two methods provided.
  • the processor may include one or more.
  • an embodiment of the present application provides a clock synchronization device.
  • the clock synchronization device may include a processor, configured to be connected to a memory, and used to call a program stored in the memory to execute the method provided in the first aspect.
  • the memory can be located inside the device or outside the device.
  • the processor includes one or more.
  • an embodiment of the present application provides a terminal, and the terminal may include the clock synchronization device provided in the above second aspect.
  • an embodiment of the present application provides a network device, and the network device may include the clock synchronization device provided in the foregoing third aspect.
  • an embodiment of the present application provides a computer-readable storage medium, including: computer software instructions; when the computer software instructions run in a clock synchronization device or a chip built in the clock synchronization device, the clock synchronization device executes the above-mentioned One aspect or the second aspect of the method.
  • an embodiment of the present application provides a clock synchronization program, which is used to execute the method of the first aspect or the second aspect when executed by a processor.
  • an embodiment of the present application provides a program product, such as a computer-readable storage medium, including the above program.
  • the terminal can obtain a relatively accurate transmission delay.
  • the terminal performs clock synchronization according to the obtained relatively accurate transmission delay, which can reduce the clock synchronization error between the terminal and the first network device.
  • the terminal can obtain the first information for determining the transmission delay, as received from the first network device.
  • the first information may be that the first network device measures the distance between the first network device and the terminal by means of radar or wireless positioning, and the obtained distance or the distance between the first network device and the terminal determined according to the measured distance.
  • the transmission delay obtained in this way is more accurate than using TA to determine the transmission delay.
  • the terminal determines the frame boundary of the wireless frame by acquiring the receiving time of the frame boundary of the wireless frame of multiple cells, which can reduce the error when the terminal determines the frame boundary of the wireless frame, thereby further reducing the terminal and the first network device The synchronization error between the clocks.
  • the wireless frame of the time value sent has no time constraint, that is, the first network device can determine the wireless frame that notifies the terminal of the time value according to its own schedule. For example, in which wireless frame the load of the first network device is light, which wireless frame is used to notify the terminal of the time value.
  • the timing message can obtain the TA, and then perform data transmission in the target cell.
  • FIG. 1 is a schematic diagram of a communication system provided by an embodiment of this application.
  • Figure 2 is a schematic diagram of a network architecture provided by an embodiment of the application.
  • FIG. 3 is a schematic diagram of another network architecture provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of transmission of a timing message provided by an embodiment of the application.
  • FIG. 5 is a schematic flowchart of a clock synchronization method provided by an embodiment of this application.
  • FIG. 6 is a schematic flowchart of another clock synchronization method provided by an embodiment of this application.
  • FIG. 7 is a schematic diagram of the transmission of another timing message provided by an embodiment of the application.
  • FIG. 8 is a schematic flowchart of another clock synchronization method provided by an embodiment of this application.
  • FIG. 9 is a schematic diagram of the transmission of yet another timing message provided by an embodiment of the application.
  • FIG. 10 is a schematic diagram of transmission of yet another timing message provided by an embodiment of this application.
  • FIG. 11 is a schematic flowchart of another clock synchronization method provided by an embodiment of this application.
  • FIG. 12 is a schematic flowchart of another clock synchronization method provided by an embodiment of this application.
  • FIG. 13 is a schematic structural diagram of a network device provided by an embodiment of this application.
  • FIG. 14 is a schematic structural diagram of a terminal provided by an embodiment of the application.
  • Terminal also known as user equipment (UE), mobile station (MS), mobile terminal (MT), etc.
  • UE user equipment
  • MS mobile station
  • MT mobile terminal
  • terminals are: mobile phones, tablet computers, notebook computers, handheld computers, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (augmented reality, AR) equipment, industrial control (industrial control) wireless terminal, unmanned driving (self driving) wireless terminal, remote medical surgery (remote medical surgery) wireless terminal, smart grid (smart grid)
  • MID mobile phones
  • tablet computers notebook computers
  • handheld computers mobile internet devices
  • VR virtual reality
  • AR augmented reality
  • industrial control wireless terminal industrial control
  • unmanned driving (self driving) wireless terminal unmanned driving (self driving) wireless terminal
  • remote medical surgery remote medical surgery
  • smart grid smart grid
  • the network device is a device in a wireless network, for example, a radio access network (RAN) node that connects a terminal to the wireless network.
  • RAN nodes are: gNB, transmission reception point (TRP), evolved Node B (evolved Node B, eNB), radio network controller (RNC), Node B (Node B) B, NB), base station controller (BSC), base transceiver station (BTS), home base station (for example, home evolved NodeB, or home Node B, HNB), baseband unit (baseband unit) , BBU), or wireless fidelity (Wifi) access point (AP), etc.
  • the network device may include a centralized unit (CU) node, or a distributed unit (DU) node, or a RAN device including a CU node and a DU node.
  • FIG. 1 is a schematic diagram of a communication system provided by an embodiment of the application.
  • a terminal 101 (the operating arm terminal shown in FIG. 1) accesses a wireless network to obtain services from an external network (such as the Internet) through the wireless network, or communicate with other terminals through the wireless network.
  • the wireless network may include a RAN 102 and a core network (core network, CN) 103.
  • the RAN 102 is used to connect the terminal 101 to the wireless network
  • the CN 103 is used to manage the terminal and provide a gateway for communication with the external network.
  • FIG. 2 is a schematic diagram of a network architecture provided by an embodiment of the application.
  • the network architecture includes CN equipment and RAN equipment.
  • the RAN equipment includes a baseband device and a radio frequency device.
  • the baseband device can be implemented by one node or by multiple nodes.
  • the radio frequency device can be implemented separately from the baseband device, or integrated into the baseband device, or partially remote Integrated in the baseband device.
  • the RAN equipment eNB
  • the RAN equipment includes a baseband device and a radio frequency device.
  • the radio frequency device can be arranged remotely from the baseband device, such as a remote radio unit.
  • RRU is arranged remotely relative to BBU.
  • the control plane protocol layer structure can include the radio resource control (RRC) layer, the packet data convergence protocol (PDCP) layer, the radio link control (RLC) layer, and the media interface. Access control (media access control, MAC) layer and physical layer (physical layer, PHY) and other protocol layer functions.
  • RRC radio resource control
  • PDCP packet data convergence protocol
  • RLC radio link control
  • MAC media access control
  • PHY physical layer
  • the user plane protocol layer structure can include the functions of the PDCP layer, the RLC layer, the MAC layer, and the physical layer; in one implementation, the PDCP layer can also include a service data adaptation protocol (SDAP) layer .
  • SDAP service data adaptation protocol
  • the RAN device can include a centralized unit (CU) and a distributed unit (DU), Multiple DUs can be centrally controlled by one CU.
  • CU and DU can be divided according to the protocol layers of the wireless network. For example, the functions of the PDCP layer and above are set in the CU, and the protocol layers below the PDCP, such as the RLC layer and MAC layer, are set in the DU.
  • this protocol layer is just an example, and it can also be divided in other protocol layers, for example, in the RLC layer, setting the functions of the RLC layer and above protocol layers in the CU, and setting the functions of the protocol layers below the RLC layer in the DU; Or, in a certain protocol layer, for example, part of the functions of the RLC layer and the functions of the protocol layer above the RLC layer are set in the CU, and the remaining functions of the RLC layer and the functions of the protocol layer below the RLC layer are set in the DU. In addition, it can also be divided in other ways, for example, by time delay. Functions that need processing time to meet the delay requirements are set in the DU, and functions that do not need to meet the delay requirements are set in the CU.
  • the radio frequency device can be remote, not placed in the DU, can also be integrated in the DU, or part of the remote part is integrated in the DU, and there is no restriction here.
  • control plane (CP) and the user plane (UP) of the CU can also be separated and divided into different entities for implementation, namely the control plane CU entity (CU-CP entity) ) And the user plane CU entity (CU-UP entity).
  • the signaling generated by the CU can be sent to the terminal through the DU, or the signaling generated by the terminal can be sent to the CU through the DU.
  • the DU may directly pass the protocol layer encapsulation without analyzing the signaling and transparently transmit it to the terminal or CU. If the following embodiments involve the transmission of such signaling between the DU and the terminal, at this time, the sending or receiving of the signaling by the DU includes this scenario.
  • the RRC or PDCP layer signaling is finally processed as PHY layer signaling and sent to the terminal, or converted from received PHY layer signaling.
  • the RRC or PDCP layer signaling can also be considered to be sent by the DU, or sent by the DU and radio frequency.
  • the CU is divided into network equipment on the RAN side.
  • the CU may also be divided into network equipment on the CN side, which is not limited here.
  • the devices in the following embodiments of the present application may be located in terminals or network devices according to the functions they implement.
  • the network device may be a CU node, or a DU node, or a RAN device including a CU node and a DU node.
  • each node that needs to communicate with each other can achieve clock synchronization.
  • the main methods of clock synchronization are GPS and 1588. However, it is not applicable to the terminal.
  • the network device notifies the terminal of the time value used to indicate the end position of a certain wireless frame, and the terminal uses the time value and the transmission delay to synchronize the clock.
  • the time value notified by the network device to the terminal specifically indicates the time when the network device sends the end position of the wireless frame.
  • the network device carries the time value used to indicate the time when the network device sends the end position of the wireless frame M in the wireless frame M-2 and sends it to the terminal.
  • the network device notifies the terminal in the wireless frame M-2 that the time value corresponding to the end position of the wireless frame M is 485ms793.25us at 14:30:28 on December 22, 2018.
  • the terminal After receiving the wireless frame M-2, the terminal can learn that the time value corresponding to the end position of the wireless frame M sent by the network device is 485ms793.25us at 14:30:28 on December 22, 2018.
  • the terminal may also detect the time when the end position of the wireless frame M is received. For example, the time at which the terminal detects the end position of the wireless frame M is T1.
  • the time value corresponding to the time when the network device sends the end position of the wireless frame M obtained by the terminal plus the transmission delay should be equal to the wireless frame M detected by the terminal The time value corresponding to the end position.
  • the terminal clock can be synchronized with the network device clock.
  • the terminal can determine the time corresponding to the end position of the wireless frame M detected by the terminal (such as T1) corresponding to the time value and transmission delay corresponding to the time when the network device sends the end position of the wireless frame M. Time value. For example, if the transmission delay is 200us, the terminal can determine that the time value corresponding to T1 is 485ms993.25us at 14:30:28 on December 22, 2018. In this way, the clock between the terminal and the network device is synchronized.
  • the terminal needs to know the transmission delay between the network device and the terminal before it can synchronize the clock according to the time value notified by the network device.
  • the terminal can determine the timing advance (timing advance, TA), and then use one-half of the TA as the transmission delay.
  • timing advance timing advance
  • the error introduced by this method can be seen in Table 1.
  • the timing error type under this method can include: base station transmission frame timing (BS transmit frame timing), UE receiving frame timing (UE receiving frame timing), UE transmission frame timing (UE transmit) frame timing (TA adjustment accuracy), TA adjustment granularity (TA adjustment granularity), base station receiving frame timing (BS receiving frame timing).
  • SCS sub-carrier spacing
  • the error introduced by the same timing error type may be different, and the total timing error (Total Timing Error) may also be different.
  • the error introduced by the UE receiving frame timing is [12]*64*Tc (Tc is the minimum time unit), and the total timing error is [38]*64*Tc.
  • the error introduced by the UE receiving frame timing is [8]*64*Tc, and the total timing error is [26]*64*Tc.
  • UE transmission frame timing (TA adjustment accuracy), TA adjustment granularity, and base station receiving frame timing all come from TA.
  • the TA error determined by the terminal is relatively large. If one-half of the TA is used as the transmission delay, this will make the transmission delay error determined by the terminal larger, resulting in a larger synchronization error of the clock between the terminal and the network device.
  • a clock synchronization method uses radar or wireless positioning to measure the distance between the network device and the terminal, and the measured distance or the determined distance between the network device and the terminal are determined based on the measured distance.
  • the terminal is notified of the transmission delay between time.
  • the transmission delay obtained in this way is more accurate than using TA to determine the transmission delay. In other words, the terminal can obtain a more accurate transmission delay. In this way, the terminal performs clock synchronization according to the obtained relatively accurate transmission delay, which can reduce the clock synchronization error between the terminal and the network device.
  • the clock synchronization method described in the embodiments of the present application can be applied to an industrial control network.
  • the industrial control network can be based on the communication system shown in Figure 1 above.
  • the above-mentioned communication system may be a 5G NR system.
  • the above-mentioned communication system may also be another communication system, as long as it is a communication system supported by an industrial control network, and the embodiments of the present application are not specifically limited herein.
  • FIG. 5 is a schematic flowchart of a clock synchronization method provided by an embodiment of this application. As shown in FIG. 5, the method may include:
  • the first network device sends first information to the terminal.
  • the terminal obtains the foregoing first information, where the first information is used to determine the transmission delay between the terminal and the first network device.
  • the first information may be information used to indicate the transmission delay between the terminal and the first network device.
  • the first information specifically may be the transmission delay itself, or may be indication information used to indicate the transmission delay.
  • the first information in this embodiment is different from the TA in that it is not obtained through signaling interaction between the network device and the terminal, and has the characteristic of more accurately characterizing the distance or time delay between the network device and the terminal.
  • the first network device may obtain the distance between the terminal and the first network device.
  • the first network device may obtain the distance between the terminal and the first network device through radar measurement.
  • the first network device may also measure the distance between the terminal and the first network device through wireless positioning.
  • the distance obtained by the first network device may be a result obtained after one measurement, or may be a result obtained by averaging or weighting the results obtained from multiple measurements.
  • the first network device may generate the foregoing first information according to the acquired distance. For example, the first network device can determine the transmission delay between the terminal and the first network device according to the obtained distance between the terminal and the first network device.
  • the first network device divides the acquired distance by the speed of light to determine the transmission delay between itself and the terminal.
  • the transmission time delay caused by the multipath offset may also be taken into consideration.
  • the terminal is an operating arm terminal located in a factory building as an example.
  • Various obstructions may exist between the first network device and the terminal of the operating arm, resulting in a multipath offset between the first network device and the terminal of the operating arm.
  • the first network device may divide the obtained distance between the operating arm terminal and the first network device by the speed of light to determine the transmission delay 1, and determine the transmission delay 2 due to the multipath offset according to the channel transmission model.
  • the first network device can obtain the transmission delay between the operator arm terminal and the first network device according to the transmission delay 1 and the transmission delay 2 (for example, the transmission delay 1 and the transmission delay 2 are summed to obtain the operation arm terminal and the second The transmission delay of a network device).
  • the channel transmission model is determined by the first network device, and it includes the probability distribution of the transmission delay at different distances (the distance between the terminal and the first network device), such as the line-of-sight direct transmission path at the first distance Transmission delay t_1, the probability is 95%, the transmission delay t-2 of the non-line-of-sight path, its probability is 5%; at the second distance, the transmission delay t_3 of the line-of-sight direct path, the probability is 90% , The transmission delay t_4 of the non-line-of-sight path, the probability is 10%, etc.
  • the first network device can use the channel transmission model to determine the transmission delay 2 caused by the multipath offset.
  • the transmission delay 2 is equal to the sum of t_1*95% and t_2*5%. Then, the first network device may notify the terminal of the obtained transmission delay or indication information for indicating the transmission delay.
  • the terminal can obtain the transmission delay or the indication information used to indicate the transmission delay. If the terminal obtains the indication information for indicating the transmission delay, the terminal can determine the transmission delay between the terminal and the first network device according to the obtained indication information for indicating the transmission delay.
  • the first information may be information used to indicate the distance between the terminal and the first network device.
  • the first information may be the distance itself between the terminal and the first network device, or may be indication information used to indicate the distance. That is, after obtaining the distance between the terminal and the first network device, the first network device may send the obtained distance or the indication information used to indicate the distance to the terminal.
  • the terminal can obtain the distance between the terminal and the first network device or the indication information used to indicate the distance. According to the acquired distance between the terminal and the first network device or the indication information used to indicate the distance, the terminal can determine the transmission delay between the terminal and the first network device.
  • the first network device may also send the channel transmission model to the terminal.
  • the terminal can determine the transmission delay between the terminal and the first network device according to the acquired information indicating the distance between the terminal and the first network device and the channel transmission model.
  • the first network device may carry the channel transmission model and the information used to indicate the distance between the terminal and the first network device in the same information (such as the first information) and transmit it to the terminal, or the channel transmission model
  • the information used to indicate the distance between the terminal and the first network device is carried in different information and transmitted to the terminal, which is not specifically limited in this embodiment.
  • the specific implementation of determining the transmission delay by the terminal may refer to the specific implementation of determining the transmission delay by the first network device, which will not be described in detail here.
  • the above example is described by taking the first information delivered to the terminal by the first network device as an example, that is, the above step 502 may specifically be that the terminal receives the first information from the first network device.
  • the foregoing first information may also be obtained by the terminal in other ways, that is, the transmission delay between the terminal and the first network device may be obtained by the terminal in other ways.
  • the terminal can obtain the distance between itself and the first network device through radar measurement, and then determine the transmission delay with the first network device according to the measured distance.
  • the terminal may use its own positioning module to measure the distance between itself and the first network device, and then determine the transmission delay with the first network device according to the measured distance.
  • the terminal may also obtain the distance between itself and the first network device according to the configuration of the background, and then determine the transmission delay with the first network device according to the obtained distance.
  • the terminal obtains the first information in other ways, the foregoing step 501 may not be performed.
  • the first network device sends a time value indicating the sending moment of the frame boundary of the radio frame to the terminal through the cell allocated for the terminal, and the cell allocated for the terminal includes the first cell.
  • the frame boundary of the wireless frame may be the start position or the end position of the wireless frame.
  • the time value sent by the first network device to the terminal indicates the moment when the first network device sends the frame boundary of the wireless frame, for ease of description, in the embodiment of the present application, the first network device is sent to The time of the frame boundary of the wireless frame indicated by the time value of the terminal is called the transmission time of the frame boundary of the wireless frame.
  • the first network device may notify the terminal of a time value indicating the start position or end position of a certain radio frame through the cell allocated to the terminal, and the notified time value can be used for the terminal to perform clock synchronization.
  • the first network device may send a timing message to the terminal through a cell allocated to the terminal, and the timing message carries a time value indicating the sending time of the start position or the end position of the radio frame.
  • the cells allocated to the terminal include the first cell, and the frame boundary of the radio frame is taken as an example.
  • the first network device may send a timing message to the terminal in the radio frame M-2 through the first cell.
  • the timing message carries a time value (for example, called the first time value), and the time value can be used to indicate the radio frame M The sending time of the ending position.
  • the timing message can be sent to the terminal in a broadcast manner or a dedicated signaling manner.
  • the first network device may periodically send a time value indicating the transmission time of the frame boundary of the radio frame to the terminal through the cell allocated to the terminal, for the terminal to perform clock synchronization.
  • the first network device can also send a time value indicating the sending time of the frame boundary of the radio frame to the terminal from a cell allocated to the terminal from time to time. For example, the first network device can determine that its own clock has a jump, pass The cell allocated by the terminal sends a time value indicating the transmission time of the frame boundary of the radio frame to the terminal for the terminal to synchronize clocks.
  • the terminal acquires a first time value, where the first time value is used to indicate the transmission time of the frame boundary of the radio frame of the first cell of the first network device.
  • step 504 may specifically be: the terminal receives the timing message sent by the first network device in the radio frame M-2 through the first cell, so as to obtain information indicating the first cell
  • the time value of the sending moment of the end position of the wireless frame M is the first time value.
  • the first time value 587ms323.25us at 13:14:36 on December 29, 2018.
  • the terminal determines the second time value corresponding to the receiving moment of the frame boundary of the radio frame of the first cell according to the transmission delay and the first time value.
  • the terminal it can obtain the frame boundary (starting position or ending position) time of a certain wireless frame through synchronization sequence detection, and the subsequent terminal will start or end receiving the wireless frame at this time. Therefore, for ease of description, in the embodiment of the present application, the time at which the frame boundary of the wireless frame is detected by the terminal is referred to as the receiving time of the frame boundary of the wireless frame. It should be noted that the time (such as the receiving time, the sending time) described in the embodiments of the present application refers to a point on the time axis. The time value corresponding to the time (such as the time value corresponding to the receiving time, the time value corresponding to the sending time) refers to the coordinate value corresponding to this point on the time axis.
  • the time value corresponding to the receiving moment of the frame boundary of the wireless frame detected by the terminal should be equal to the sum of the time value corresponding to the sending moment of the frame boundary of the wireless frame and the transmission delay, so that the terminal and the first network
  • the clock of the device is synchronized. Therefore, after the terminal obtains the transmission delay between the terminal and the first network device, and the first time value indicating the transmission time of the frame boundary of the radio frame of the first cell, the transmission delay is compared with the first time value. Plus, the terminal can determine the second time value corresponding to the receiving moment of the frame boundary of the wireless frame, so as to realize the clock synchronization between the terminal and the first network device.
  • the terminal can obtain the transmission delay (for example, the transmission delay is 300us) and the first time value (for example, the transmission time indicating the end position of the radio frame M in the first cell).
  • the first time value 13:14:36, December 29, 2018, 587ms323.25us
  • the terminal can also perform synchronization sequence detection to obtain the receiving time of the end position of the radio frame M in the first cell (for example, T1) .
  • the terminal adds the first time value and the transmission delay to determine the second time value corresponding to the receiving time T1 at the end position of the radio frame M in the first cell, and the second time value is December 29, 2018 13:14:36 587ms623.25us.
  • the terminal can obtain relatively accurate transmission delay.
  • the terminal performs clock synchronization according to the obtained relatively accurate transmission delay, which can reduce the clock synchronization error between the terminal and the first network device.
  • the terminal may receive the first information used to determine the transmission delay from the first network device.
  • the first information may be that the first network device measures the distance between the first network device and the terminal by means of radar or wireless positioning, and the obtained distance or the distance between the first network device and the terminal determined according to the measured distance
  • the transmission delay obtained in this way is more accurate than using TA to determine the transmission delay.
  • the time accuracy of the transmission delay determined according to the foregoing first information may be less than or equal to the time accuracy of the foregoing first time value.
  • the time accuracy of the above first time value is 250 ns.
  • the time accuracy of the transmission delay sent by the first network device to the terminal may be less than or equal to 250ns. The smaller the time accuracy, the more accurate the result of terminal clock synchronization.
  • the terminal may be in a mobile state. As the terminal moves, the distance between the terminal and the first network device will change, and the transmission delay between the two will also change accordingly. Therefore, in some embodiments, the terminal may periodically obtain the above-mentioned first information, so as to periodically determine the transmission delay based on the first information, thereby performing clock synchronization, so as to further reduce the clock between the terminal and the first network device. ⁇ synchronization error.
  • the first network device may periodically obtain the distance to the terminal, and periodically send the foregoing first information to the terminal. If the first information is the transmission delay itself between the terminal and the first network device, the first network device can measure the distance between the terminal and the first network device at regular intervals (such as 5 minutes, 30 minutes, etc.), and The terminal is notified of the transmission delay between the terminal and the first network device determined according to the measurement result. For another example, the first information is the distance itself between the terminal and the first network device, the first network device may measure the distance between the terminal and the first network device at regular intervals, and notify the terminal of the measurement result. In this way, the terminal can periodically obtain the first information for clock synchronization.
  • the first network device may also send the first information to the terminal, and then communicate between the terminal and the first network device. The distance between them is monitored. If it is detected that the distance between the terminal and the first network device has changed, the first network device can re-issue the first information to the terminal so that the terminal can determine the transmission with the first network device according to the re-issued first information Time delay to synchronize clocks.
  • the first information is the transmission delay itself between the terminal and the first network device.
  • the first network device After the first network device has issued the transmission delay 1 to the terminal, it may monitor the distance between the terminal and the first network device. If it is obtained that the distance between the terminal and the first network device at the current moment has changed compared with the distance between the terminal and the first network device when the transmission delay is 1 time, the first network device may change the distance between the terminal and the first network device at the current moment.
  • the distance between a network device determines the transmission delay 2 and informs the terminal of the transmission delay 2, and the terminal can perform clock synchronization according to the transmission delay 2.
  • the first information is the distance itself between the terminal and the first network device.
  • the first network device After the first network device sends a distance 1 (the distance between the terminal and the first network device) to the terminal, the distance between the terminal and the first network device can be monitored. If it is obtained that the distance 2 between the terminal and the first network device at the current moment has changed compared to the distance 1, the first network device can notify the terminal of the distance 2, and the terminal can determine the transmission delay according to the distance 2 for the clock Synchronize.
  • a distance 1 the distance between the terminal and the first network device
  • the terminal can also monitor its own moving distance after acquiring the first information (for example, the terminal can measure itself through radar, wireless (such as Wifi) positioning, artificial intelligence analysis, image analysis, etc. If it is detected that the moving distance is greater than (or equal to) the distance threshold, it means that the distance between the terminal and the first network device may have changed, and the transmission delay of the two may have changed. At this time, the terminal may reacquire the first information, so as to determine the transmission delay according to the reacquired first information, so as to perform clock synchronization, so as to further reduce the clock synchronization error between the terminal and the first network device.
  • the terminal may reacquire the first information, so as to determine the transmission delay according to the reacquired first information, so as to perform clock synchronization, so as to further reduce the clock synchronization error between the terminal and the first network device.
  • the first information is delivered to the terminal by the first network device.
  • the terminal can acquire the moving distance of the terminal from the moment when the first information is acquired to the current moment. If the acquired movement distance is greater than the distance threshold, the terminal may send first indication information to the first network device, where the first indication information is used to instruct the first network device to re-deliver the first information.
  • the first network device may re-acquire the distance between the terminal and the first network device after receiving the first indication information, and will use the obtained The transmission delay between the terminal determined by the distance result and the first network device is notified to the terminal again, and the terminal can perform clock synchronization according to the newly acquired transmission delay.
  • the first network device may re-acquire the distance between the terminal and the first network device after receiving the first indication information, and set The acquired distance is notified to the terminal, and the terminal can determine the transmission delay according to the re-acquired distance for clock synchronization.
  • the UE receiving frame timing will also introduce errors.
  • the error introduced by UE receiving frame timing is [12]*64*Tc
  • SCS is equal to 30kHz
  • the error introduced by UE receiving frame timing is [8]*64*Tc. That is to say, the terminal determines the frame boundary of the wireless frame, that is, there will be an error (the error may reach 390ns) at the receiving time of the frame boundary of the detected wireless frame. This part of the error also affects the accuracy of the clock synchronization between the terminal and the first network device. Will have an impact.
  • the terminal determines the second time corresponding to the receiving moment of the frame boundary of the radio frame of the first cell according to the transmission delay and the first time value.
  • the clock synchronization method may further include the following steps:
  • the terminal acquires the receiving moments of the frame boundaries of the radio frames of the M cells, the frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2.
  • the terminal updates the reception time of the frame boundary of the radio frame of the first cell according to the reception time of the frame boundary of the radio frame of the M cells.
  • the first network device may allocate multiple cells to the terminal, and the frame boundaries of the wireless frames of the multiple cells are aligned.
  • the frame boundaries of the radio frames of the multiple cells are aligned.
  • the first network device allocates two cells to the terminal, namely cell 1 and cell 2, and from the perspective of the first network device, the radio frame of cell 1
  • the frame boundary is aligned with the frame boundary of the radio frame of cell 2, that is, the frame boundary of the radio frame M-2 of cell 1 and the radio frame M-2 of cell 2 is aligned
  • the radio frame M-1 of cell 1 is aligned with that of cell 2.
  • the frame boundaries of the radio frame M-1 are aligned, and the frame boundaries of the radio frame M of the cell 1 and the radio frame M of the cell 2 are aligned.
  • the first network device may send a notification message to the terminal.
  • the notification message is used to inform the terminal that multiple cells are allocated to the terminal, and the frame boundaries of the radio frames of the multiple cells are aligned.
  • the frame boundary may be shifted forward or backward by 64Tc, but the network device cannot detect it. That is to say, the frame boundary alignment of the radio frames that allocate multiple cells to the terminal is not aligned in a strict sense. There is a deviation of less than 64Tc between the frame boundaries of different cells, and it can also be considered that the frame boundaries are aligned.
  • the terminal before the terminal performs clock synchronization according to the transmission delay and the first time value, it can perform frame boundary detection of radio frames on the multiple cells allocated by the first network device, that is, the terminal obtains the information of the multiple cells.
  • the reception time of the frame boundary of the radio frame includes the reception time of the frame boundary of the radio frame of the first cell. Since the transmission paths of signals in different cells are not completely the same, the transmission delays of the terminal and the first network device in different cells are not necessarily the same. In this way, the radio frames of multiple cells obtained by the terminal are not necessarily the same. The receiving moment of the boundary is usually different.
  • the terminal can update the frame boundaries of the radio frames of the first cell according to the acquired frame boundaries of the radio frames of the multiple cells.
  • the receiving time is used to reduce the error in determining the frame boundary of the wireless frame, that is, to obtain a more accurate receiving time of the frame boundary of the wireless frame of the first cell.
  • the terminal may perform the above step 505, that is, determine the reception of the frame boundary of the radio frame of the first cell according to the transmission delay and the first time value.
  • the second time value corresponding to the time to complete clock synchronization.
  • the wireless frame mentioned here is the same wireless frame as the wireless frame indicated by the first time value in step 504.
  • the first time value in step 504 indicates the transmission time of the frame boundary of the radio frame M of the first cell (such as cell 1)
  • the radio frame here refers to the radio frame M, that is, the terminal obtains multiple The receiving time of the frame boundary of the radio frame M of the cell.
  • the frame boundary of the wireless frame is taken as the end position as an example.
  • the terminal can acquire the reception time of the end position of the radio frame M in the cell 1 and the reception time of the end position of the radio frame M in the cell 2.
  • the receiving time at which the terminal acquires the end position of the radio frame M in cell 1 is T1
  • the receiving time at the end position of the radio frame M in cell 2 is T2.
  • the terminal can take the average value of T1 and T2 after acquiring the receiving time T1 of the end position of the radio frame M in cell 1 and the receiving time T2 of the end position of the radio frame M in cell 2 (T1 and T2 can also be weighted and averaged, and the weighted value corresponding to each cell can be configured by the first network device to the terminal), if the result obtained is T12, update T12 to the end position of the radio frame M in cell 1 Receive the moment.
  • the terminal can determine the cell 1 according to the transmission delay (for example, the transmission delay is 300us) and the first time value (for example, the first time value: 13:14:36, December 29, 2018, 587ms323.25us)
  • the second time value corresponding to the receiving time T12 at the end position of the wireless frame M, such as 587ms623.25us at 13:14:36 on December 29, 2018, to complete clock synchronization.
  • the description here assumes that the radio frame numbers of the multiple cells allocated by the first network device to the terminal are aligned.
  • the terminal obtains the frame boundary of the radio frame M of cell 1 At the same time, what is acquired is the receiving time of the frame boundary of the radio frame M of cell 2.
  • the wireless frame numbers of the multiple cells allocated by the first network device to the terminal may also be unaligned, and it is only necessary to ensure that the frame boundaries of the wireless frames of the multiple cells are aligned.
  • the terminal determines the frame boundary of the wireless frame by acquiring the receiving time of the frame boundary of the wireless frame of multiple cells, which can reduce the error when the terminal determines the frame boundary of the wireless frame, thereby further reducing the terminal and the first network device The synchronization error between the clocks.
  • step 504 the terminal acquiring the first time value may specifically include the following steps:
  • the terminal receives the time values indicating the sending moments of the frame boundaries of the radio frames from the M cells.
  • the frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2.
  • the terminal determines a first time value according to the time values of the M cells.
  • the first network device may send the terminal indicating the radio frame of the cell through multiple cells allocated to the terminal.
  • the time value of the sending moment of the frame boundary may specifically be that the first network device transmits to the terminal a time value indicating the transmission time of the frame boundary of the radio frame of the cell through multiple cells allocated to the terminal.
  • the first network device sends a timing message to the terminal through multiple cells allocated to the terminal, and the timing message carries a time value indicating the transmission time of the frame boundary of the radio frame of the cell.
  • the frame boundaries of the radio frames of the multiple cells are aligned, and the multiple cells include the first cell. In this way, the terminal can receive the time value of the transmission time indicating the frame boundary of the radio frame from multiple cells.
  • what the first network device indicates to the terminal may be the time value of the transmission time of the frame boundary of the same radio frame in multiple cells, or may not be the time value of the transmission time of the frame boundary of the same radio frame. If the indication is the time value of the transmission time of the frame boundary of the same radio frame, the terminal can average or weight the time values of multiple cells received (wherein, the weighted value corresponding to each cell can be the first network device Configured to the terminal) to determine the first time value.
  • the terminal can calculate the same radio frame (the same radio frame refers to the same radio frame as the radio frame indicated by the first cell) ), and then determine the first time value based on the calculated time value and the received time value of the first cell indicating the transmission time of the frame boundary of the radio frame.
  • the "same radio frame” refers to radio frames whose time boundaries are aligned when sent by the first network device.
  • the radio frame numbers of the same radio frame in different cells may be the same or different.
  • the first network device allocates two cells to the terminal, namely cell 1 and cell 2, and from the perspective of the first network device, the radio frame of cell 1
  • the frame boundary is aligned with the frame boundary of the radio frame of cell 2, that is, the frame boundary of the radio frame M-2 of cell 1 and the radio frame N-2 of cell 2 are aligned, and the radio frame M-1 of cell 1 is aligned with that of cell 2.
  • the frame boundaries of the radio frame N-1 are aligned, and the frame boundaries of the radio frame M of the cell 1 and the radio frame N of the cell 2 are aligned.
  • the radio frame M of cell 1 and the radio frame N of cell 2 are "the same radio frame", and their radio frame numbers are different.
  • the first network device may send the time value 1 indicating the sending time of the end position of the radio frame M of the cell 1 to the terminal through cell 1 (for example, through the radio frame M-2 of cell 1), for example, the time value 1 is 2018 At 13:14:36 on December 29th, 587ms323.25us.
  • the first network device may send a time value 2 indicating the sending time of the end position of the radio frame N of the cell 2 to the terminal through cell 2 (for example, through the radio frame N-1 of cell 2), for example, the time value 2 is 2018 At 13:14:36 on December 29, 587ms323.50us.
  • the terminal may receive the time value 1 of the cell 1 indicating the transmission time of the end position of the radio frame M, and the time value 2 of the cell 2 indicating the transmission time of the end position of the radio frame N.
  • the terminal may average the received time value 1 and time value 2 to determine the first time value. If the result is a time value of 12: 13:14:36 on December 29, 2018, 587ms323.375us, the time value of 12 is the first time value.
  • the terminal can determine the second time value corresponding to the receiving moment of the end position of the radio frame M in cell 1 according to the first time value and the transmission delay (for example, the transmission delay is 300us). For example, 587ms623.375us at 13:14:36 on December 29, 2018 to complete clock synchronization.
  • the reception time of the end position of the radio frame M of cell 1 described here may be T1 as shown in FIG. 9(b), or it may be T12. T1 may be obtained after the terminal performs frame boundary detection on the wireless frame M indicated by the time value 1.
  • T12 may be obtained by the terminal according to T1 and T2, and T2 is obtained after the terminal performs frame boundary detection on the radio frame N indicated by the time value 2.
  • T12 For the specific description of determining T12, reference may be made to the specific description of the corresponding content in the embodiment shown in FIG. 6, which will not be repeated here.
  • the wireless frame of the time value sent has no time constraint, that is, the first network device can determine the wireless frame that notifies the terminal of the time value according to its own schedule. For example, in which wireless frame the load of the first network device is light, which wireless frame is used to notify the terminal of the time value.
  • the first network device can send a timing message to the terminal in the form of broadcast or dedicated signaling through the cell allocated to the terminal to indicate the sending time of the frame boundary of the radio frame of the cell.
  • the time value is notified to the terminal.
  • the first network device usually sends the timing message in a broadcast manner, and in this manner, the timing message is sent periodically.
  • the first network device may be required to send timing messages in a cell more frequently, that is, the terminal needs to read timing messages more frequently. Otherwise, in the second half of a timing message sending cycle, the clock maintained by the terminal itself may drift too much, exceeding the threshold, and failing to meet the requirements for clock accuracy. In this case, the first network device can achieve the goal by reducing the sending period of the timing message. However, this will occupy more wireless resources, and the sending cycle of timing messages is usually the sending cycle of reusing system information. If the sending cycle of system information (or called the system message window (SI window)) is reduced, it will cause other Unrelated terminals are also forced to read system information multiple times, which is obviously unnecessary.
  • SI window system message window
  • the first network device when the first network device allocates multiple cells to the terminal, the first network device can ensure that it is in the multiple cells if the sending period of the timing message in each cell remains unchanged.
  • the sending period of the timing message of each cell is staggered, that is, the above step 503 may specifically include: the first network device sends an instruction wireless signal to the terminal through each of the multiple cells allocated to the terminal in different time windows.
  • the time value of the transmission time of the frame boundary of the frame In this way, the time window for the terminal to receive the time value of the transmission time indicating the frame boundary of the radio frame in different cells is different. That is to say, there is no need for the first network device to frequently send timing messages in a cell, and there is no need to reduce the transmission period of system messages.
  • the terminal it reads the timing messages of multiple cells (the timing messages carry instructions The time value of the transmission time of the frame boundary of the wireless frame) can reduce the period of reading the timing message of the cell, and achieve the purpose of reading the timing message more frequently.
  • the first network device allocates two cells to the terminal, cell 1 and cell 2 respectively.
  • the first network device sends a timing message to the terminal through cell 1 in time window 1.
  • the timing message carries the time value of cell 1 indicating the sending moment of the frame boundary of the radio frame (time value 1 in Figure 10). ).
  • the first network device sends a timing message to the terminal through cell 2 in time window 2.
  • the timing message carries the time value of cell 2 indicating the sending moment of the frame boundary of the radio frame (time value (time) 2 in Figure 10). ).
  • time window 1 and time window 2 are different and staggered.
  • the first network device may send second indication information to the terminal, and the second indication information is used to instruct the terminal to receive the indication radio frame of the cell in each of the multiple cells allocated to the terminal by the first network device.
  • the terminal may receive the second indication information from the first network device.
  • the terminal can receive the time values of the multiple cells allocated to the terminal by the first network device according to the time window indicated by the second indication information.
  • the first network device may send second indication information to the terminal.
  • the second indication information is used to indicate the time window 1 for the terminal to receive the timing message in cell 1, and the time window for receiving the timing message in cell 2. 2.
  • the terminal can receive timing messages in cell 1 and cell 2 respectively, so as to obtain the time value of cell 1 indicating the transmission time of the frame boundary of the radio frame and the cell 2 indicates the time value of the transmission time of the frame boundary of the radio frame. And because the time window 1 and the time window 2 are staggered, the terminal can read the timing messages more frequently, so that the clock accuracy after synchronization can meet the requirements of the terminal.
  • the multiple cells allocated to the terminal may be located in the same network device, or may be located in different network devices. If multiple cells are located in the same network device, the network device can internally ensure that the sending periods of the timing messages of each cell in the multiple cells are staggered.
  • the network devices can interact with each other to ensure that the sending periods of the timing messages of each cell in the multiple cells are staggered. For example, multiple cells are located in network device 1 and network device 2, respectively.
  • the network device 1 can send to the network device 2 the time window of the time value of the transmission time indicating the frame boundary of the radio frame located in each cell of the network device 1. For example, the network device 1 informs the network device 2, and the network device 1 sends the time window of the timing message (Or called the timing period, the transmission period) is Y1 wireless frames.
  • the time window for sending a timing message for a certain time is from which wireless frame to which wireless frame, and the next time the wireless frame number is i
  • the timing message is sent on the wireless frame.
  • the network device 2 may also send to the network device 1 the time window indicating the time value of the transmission time of the frame boundary of the wireless frame to the network device 1 in each cell of the network device 2. For example, the network device 2 notifies the network device 1, and the network device 2 sends the timing message.
  • the time window (or called the timing period, the transmission period) is Y2 wireless frames.
  • the time window for sending a timing message for a certain time is from which wireless frame to which wireless frame.
  • the timing message is sent on the radio frame of j.
  • the information exchanged between network devices can be notified to the terminal, and the network device may or may not read the message.
  • the first network device can allocate multiple cells to the terminal to reduce the time when the terminal determines the frame boundary of the radio frame. And/or reduce the error when the terminal determines the time value corresponding to the receiving moment of the wireless frame, thereby reducing the error of clock synchronization.
  • the larger the number of cells allocated to the terminal the smaller the error will be, the smaller the clock synchronization error will be, the higher the accuracy of the terminal clock will be.
  • the greater the number of cells allocated to the terminal the greater the amount of data processed by the terminal, and the greater the power consumption.
  • the first network device may allocate an appropriate number of cells to the terminal according to the instructions of the terminal. That is, the embodiment of the present application may further include: the terminal sends third instruction information to the first network device, and the third instruction information is used by the first network device to allocate a cell to the terminal.
  • the first network device may receive the third indication information from the terminal, and allocate a suitable number of cells to the terminal according to the third indication information.
  • the above-mentioned third indication information may be the terminal's requirement on the accuracy of the clock of the terminal.
  • the terminal may report to the first network device its error requirement for the determined receiving moment of the frame boundary of the wireless frame, for example, the error is within XXXXns.
  • the first network device allocates an appropriate number of cells to the terminal according to the error requirement.
  • the above-mentioned third indication information may be the identifier of the first service of the terminal or the quality of service (QoS) identifier of the first service.
  • the first service of the terminal requires more precision on the clock of the terminal than other services of the terminal require on the clock of the terminal.
  • the terminal may report to the first network device the identifier of the service (that is, the first service) that requires the highest clock accuracy among all the services it is currently performing, or the QoS identifier of the first service.
  • Correspondences between different service identifiers (or different QoS identifiers) and different cell numbers may be stored in the first network device. According to this correspondence, the first network device can allocate a suitable number of cells to the terminal.
  • the terminal can also report one or more cell identities (such as frequency points) obtained by its own measurement to the first network device, such as carrying it in the third indication information and reporting it to the first network device. Of course, it can also be carried in Other instructions are reported to the first network device. In this way, the first network device can allocate an appropriate number of cells to the terminal according to the cell identification reported by the terminal and the terminal's clock accuracy requirements (or the identification of the first service or the QoS identification of the first service).
  • cell identities such as frequency points
  • the first network device allocates a suitable number of cells to the terminal (for example, allocates N cells to the terminal, where N is an integer greater than or equal to 2), and can also configure a signal strength threshold to the terminal.
  • the terminal uses the first network device to synchronize the clocks of the cells allocated to it. For example, when determining the frame boundary of the radio frame, it can first monitor the signal strength of these N cells. If one or a few of these N cells are If the signal strength of each cell is lower than the configured signal strength threshold, the terminal may not use these cells for clock synchronization.
  • the terminal may use M
  • M is less than or equal to N
  • the signal strength threshold may be reference signal received power (RSRP), reference signal received quality (RSRQ), received signal strength indicator (RSSI) ) Any one or more of them.
  • the signal strength threshold configured by the first network device for the terminal may be one or multiple. For example, configure the same signal strength threshold for cells of different frequency bands.
  • different signal strength thresholds are configured for cells with different frequency bands, for example, a cell with a frequency band greater than 6 GHz is configured with a signal strength threshold, and a cell with a frequency band less than 6 GHz is configured with another signal strength threshold.
  • the first network device when the first network device allocates cells to the terminal, it may also allocate more cells than the requirements of the terminal.
  • the first network device determines that the number of cells that need to be allocated to the terminal is X according to the foregoing third indication information, but the first network device allocates N cells (N greater than or equal to X) for the terminal. For example, according to the terminal's requirements for clock accuracy, the first network device determines that only three cells are needed to meet the requirements of the terminal, but the first network device allocates five cells to the terminal.
  • the five cells can be used to determine the frame boundary of the radio frame, or the three cells with the strongest signal can be selected for the frame boundary of the radio frame according to the signal strength. Of ok. Of course, the signal strengths of the three selected cells are all greater than the signal strength threshold.
  • the multiple (such as N) cells allocated by the first network device to the terminal may only be used for the terminal to perform frame boundary detection of radio frames and/or determine radio frame boundaries.
  • the time value corresponding to the receiving moment is only used for clock synchronization, and not for other purposes, such as not being used for the terminal to perform carrier aggregation.
  • it can also be used for the terminal to perform carrier aggregation, which is not specifically limited in the embodiment of the present application.
  • the multiple cells allocated to the terminal may be physically co-sited or not co-sited. It is only necessary to ensure that the frame boundaries of the radio frames of the multiple cells are aligned, that is, the time when the signal is sent is aligned.
  • the difference between the frame boundaries of the radio frames of the multiple cells is smaller than [2]*64*Tc, which can also reduce the clock synchronization error between the terminal and the first network device.
  • the process of determining the frame boundary of the radio frame i.e., step 601 and step 602, and the process of determining the time value corresponding to the sending moment of the frame boundary of the radio frame of the first cell (i.e., step 801 and step 802) ), and the foregoing process of determining the transmission delay between the terminal and the first network device, the three are not dependent on each other and can be performed independently. That is to say, in specific implementation, the TA method can be used to determine the transmission delay between the terminal and the first network device (for example, to obtain the TA, the transmission delay is equal to one-half of the TA), but the above steps 601 and Step 602 determines the frame boundary of the radio frame.
  • the TA method may be used to determine the transmission delay between the terminal and the first network device, but the above steps 801 and 802 are used to determine the time value corresponding to the sending moment of the frame boundary of the wireless frame.
  • the embodiments of the application do not make specific limitations here.
  • the process described in the embodiments of this application can also be used at the same time to determine the transmission delay, determine the frame boundary of the wireless frame, and determine the time value corresponding to the transmission moment of the frame boundary of the wireless frame. In this way, the terminal and the first The clock synchronization error between network devices is smaller.
  • the terminal After the clock between the terminal and the first network device is synchronized, if the terminal needs to switch to the second network device, currently, the terminal is required to obtain the TA through a random access process before the TA can be used for data transmission with the second network device. In the embodiment of this application, the TA can be obtained without the terminal performing random access.
  • the method may further include the following steps:
  • the first network device sends a handover request to the second network device.
  • the terminal when the terminal is camped in a cell of the first network device (such as cell 1), it can measure the signal quality of a cell adjacent to cell 1, and can also carry the measurement result in a measurement report and report it to the first network equipment.
  • the first network device may send a handover request to the second network device if it determines that the signal quality of the second cell of the second network device indicated in the measurement report is good.
  • the handover request is used to request the second network device, and the terminal will switch to the second cell of the second network device.
  • the second network device sends a handover response to the first network device, where the handover response includes a third time value, and the third time value is used to indicate the sending moment of the subframe boundary of the second cell of the second network device.
  • the second network device may return a switching response to the first network device.
  • the handover response may carry a third time value used to indicate the sending moment of the subframe boundary of the second cell of the second network device.
  • the second network device may notify the first network device of the precise time of the subframe boundary of the second cell (the target cell to which the terminal will be handed over).
  • the subframe boundary can be the start position or the end position of the subframe. For example, take the subframe boundary as the starting position.
  • the second network device may notify the first network device through the X2 interface that the time value of the start position of the subframe of the second cell of the second network device is 306ms 405us at 14:38:49 on December 29, 2018.
  • the third time value may be an explicit (or plaintext) time value, which is readable by the first network device, or an implicit time value, such as being carried in a container, that is, the first A network device is unreadable.
  • the first network device sends a handover command to the terminal, and the handover command includes the foregoing third time value.
  • the first network device may carry the third time value in the handover command and send it to the terminal.
  • the terminal receives the third time value sent by the first network device.
  • the terminal After switching to the above-mentioned second cell, the terminal obtains a fourth time value, where the fourth time value is used to indicate the receiving moment of the subframe boundary of the second cell.
  • the terminal determines the transmission delay between the terminal and the second network device according to the third time value and the fourth time value.
  • the terminal may perform downlink synchronization with the second network device after switching to the second cell of the second network device.
  • the internal clock of the terminal continues to run, and during this period of time, the clock drift of the second network device and the terminal may not be considered.
  • the terminal can identify the subframe by detecting the synchronization sequence.
  • the terminal can obtain the time value (that is, the fourth time value) corresponding to the receiving time of the identified subframe boundary (such as the starting position) of the subframe is 14:00 on December 29, 2018 38 minutes 49 seconds 310ms705us.
  • the terminal can infer the time value corresponding to the sending moment of the start position of the other subframes of the second cell (adjacent The interval between subframes is 1ms) respectively: 306ms405us at 14:38:49 on December 29, 2018, 307ms405us at 14:38:49 on December 29, 2018, and 14:38 on December 29, 2018 49 seconds 308ms405us, December 29, 2018 14:38:49 seconds 309ms405us, December 29, 2018 14:38:49 seconds 310ms405us, etc.
  • the terminal selects the time value closest to the detected fourth time value from these time values, that is, "310ms405us at 14:38:49, December 29, 2018".
  • the terminal can consider this time value as the time value corresponding to the sending moment of the subframe boundary (starting position) of the subframe detected by itself. It can be obtained that the time value corresponding to the sending moment of the starting position of the subframe is "December 29, 2018 14:38:49 310ms405us", and the time value of the receiving moment of the starting position of the subframe is "310ms705us at 14:38:49 on December 29, 2018". Since the clocks of the first network device and the terminal are accurately synchronized, the terminal can determine that the downlink transmission delay between the terminal and the second network device is 300 us.
  • the terminal can also obtain the possible transmission delay based on these time values. For example, if the terminal thinks that the time value corresponding to the sending time is "December 29, 2018 14:38:49, 310ms405us", according to the time value of the receiving time It is “310ms705us at 14:38:49, December 29, 2018” to determine that the downlink transmission delay is 300us; if the terminal thinks that the time value corresponding to the sending time is: “14:38:49, December 29, 2018 309ms405us”, then according to the time value of the receiving time as “310ms705us at 14:38:49 on December 29, 2018”, it can be determined that the downlink transmission delay is 1300us; if the terminal thinks that the time value corresponding to the sending time is “December 2018 14:38:49 on the 29th, 308ms405us", according to the time value of the receiving time is "310ms705us at 14:38:49 on December 29, 2018", it can be determined that the downlink transmission delay is
  • the terminal can determine the time value corresponding to the transmission delay 300us, that is, "December 2018 14:38:49 on the 29th, 310ms405us" is the time value corresponding to the transmission time of the subframe boundary (starting position) of the subframe detected by itself. Therefore, it is determined that the transmission delay between the terminal and the second network device is 300 us.
  • the terminal performs data transmission according to the transmission delay between the terminal and the second network device.
  • the downlink transmission delay is multiplied by 2 to obtain the TA, so that when the terminal has data to transmit, the TA can be used for data transmission.
  • the method may further include the following steps:
  • the first network device sends a handover request to the second network device.
  • the second network device sends a handover response to the first network device.
  • the first network device sends a handover command to the terminal.
  • the terminal After switching to the second cell of the second network device, the terminal obtains the system frame number (SFN) of the second cell, and receives the fifth time value sent by the second network device, and the fifth time value It is used to indicate the transmission time of the frame boundary of the radio frame of the second cell.
  • SFN system frame number
  • the terminal when the first network device determines that the signal quality of the second cell of the second network device is good, the terminal can switch to the second cell of the second network device. Different from the embodiment shown in FIG. 11, after the terminal switches to the second cell, it can read the MIB message to obtain the SFN of the second cell, and receive the radio frame N sent by the second network device to indicate the second cell.
  • the timing message can be sent through broadcast or dedicated signaling, which is not specifically limited here.
  • the terminal obtains a sixth time value according to the foregoing SFN, where the sixth time value is used to indicate the receiving moment of the frame boundary of the radio frame of the second cell.
  • the terminal can determine the receiving time of the frame boundary (such as the end position) of the wireless frame N by detecting the synchronization sequence, and determine that the time value corresponding to the receiving time (ie, the sixth time value) is "2018 302ms705us at 14:38:49 on December 29th
  • the terminal determines the transmission delay between the terminal and the second network device according to the fifth time value and the sixth time value.
  • the terminal can determine the terminal and the first The downlink transmission delay between the two network devices is 300 us.
  • the terminal performs data transmission according to the transmission delay between the terminal and the second network device.
  • the downlink transmission delay is multiplied by 2 to obtain the TA, so that when the terminal has data to transmit, the TA can be used for data transmission.
  • the terminal does not need to perform random access after switching to the target cell (such as the second cell of the second network device).
  • the subframe notified by the second network device The precise time of the sending moment of the boundary or the TA can be obtained by reading the timing message of the target cell, and then the data can be transmitted in the target cell.
  • a clock synchronization device that includes units (or means) for implementing each step performed by the terminal in any of the above methods.
  • the clock synchronization device may include: an obtaining unit, such as performing step 502 in the above method to obtain the first information, step 504 to obtain the first time value, step 601 to obtain the receiving time of frame boundaries of radio frames of M cells, step 1105 Get the fourth time value, etc.
  • the determining unit determines the second time value corresponding to the receiving moment of the frame boundary of the radio frame of the first cell according to the transmission delay and the first time value, and step 802 determines the second time value corresponding to the frame boundary of the radio frame of the first cell.
  • the time value determines the first time value, and step 1106 determines the transmission delay between the terminal and the second network device.
  • the clock synchronization apparatus may further include: a sending unit, for example, performing an operation of sending the first instruction information to the first network device to instruct the first network device to re-issue the first information.
  • a sending unit for example, performing an operation of sending the first instruction information to the first network device to instruct the first network device to re-issue the first information.
  • the updating unit such as performing step 602, updates the receiving time of the frame boundary of the radio frame of the first cell according to the receiving time of the frame boundary of the radio frame of the M cells.
  • the receiving unit performs step 801 to receive the time value of the sending time indicating the frame boundary of the radio frame of the M cells, and step 1104 receives the third time value and so on.
  • the transmission unit such as performing step 1107, performs data transmission according to the transmission delay between the clock synchronization device and the second network device.
  • another clock synchronization device including units (or means) for implementing each step performed by the network device in any of the above methods.
  • units or means for implementing each step performed by the network device in any of the above methods.
  • the clock synchronization device may include: a sending unit, such as performing step 501 in the above method to send the first information to the terminal, and step 503 sends the terminal a time value indicating the sending time of the frame boundary of the radio frame through the cell allocated for the terminal.
  • Step 1101, Step 1201 send a switching request to the second network device
  • Step 1103, Step 1203 send a switching command to the terminal, etc.
  • the clock synchronization device may further include: an acquiring unit, such as performing an operation of acquiring the distance between the terminal and the clock synchronization device.
  • the receiving unit for example, performs an operation of receiving the third instruction information from the terminal.
  • the allocation unit for example, performs the operation of allocating an appropriate number of cells to the terminal.
  • the division of the units in the above device is only a division of logical functions, and may be fully or partially integrated into one physical entity in actual implementation, or may be physically separated.
  • the units in the device can all be implemented in the form of software called by processing elements; they can also be implemented in the form of hardware; part of the units can also be implemented in the form of software called by the processing elements, and some of the units can be implemented in the form of hardware.
  • each unit can be a separately set up processing element, or it can be integrated in a certain chip of the device for implementation.
  • it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device.
  • All or part of these units can be integrated together or implemented independently.
  • the processing element described here can also become a processor, which can be an integrated circuit with signal processing capabilities.
  • each step of the above method or each of the above units may be implemented by an integrated logic circuit of hardware in a processor element or implemented in a form of being called by software through a processing element.
  • the unit in any of the above devices may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASIC), or, one or Multiple microprocessors (digital singnal processors, DSP), or, one or more field programmable gate arrays (FPGA), or a combination of at least two of these integrated circuits.
  • ASIC application specific integrated circuits
  • DSP digital singnal processors
  • FPGA field programmable gate arrays
  • the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call programs.
  • CPU central processing unit
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • the above receiving unit is an interface circuit of the device for receiving signals from other devices.
  • the receiving unit is an interface circuit used by the chip to receive signals from other chips or devices.
  • the above unit for sending is an interface circuit of the device for sending signals to other devices.
  • the sending unit is an interface circuit used by the chip to send signals to other chips or devices.
  • FIG. 13 is a schematic structural diagram of a network device provided by an embodiment of this application. It may be the network device in the above embodiment, and is used to implement the operation of the network device in the above embodiment.
  • the network equipment includes: an antenna 1301, a radio frequency device 1302, and a baseband device 1303.
  • the antenna 1301 is connected to the radio frequency device 1302.
  • the radio frequency device 1302 receives the information sent by the terminal through the antenna 1301, and sends the information sent by the terminal to the baseband device 1303 for processing.
  • the baseband device 1303 processes the terminal information and sends it to the radio frequency device 1302, and the radio frequency device 1302 processes the terminal information and sends it to the terminal via the antenna 1301.
  • the baseband device 1303 may include one or more processing elements 1303-1, for example, a main control CPU and other integrated circuits.
  • the baseband device 1303 may also include a storage element 1303-2 and an interface 1303-3.
  • the storage element 1303-2 is used to store programs and data; the interface 1303-3 is used to exchange information with the radio frequency device 1302.
  • the interface is, for example, a universal Common public radio interface (CPRI).
  • the above apparatus for network equipment may be located in the baseband apparatus 1303.
  • the above apparatus for network equipment may be a chip on the baseband apparatus 1303.
  • the chip includes at least one processing element and an interface circuit, wherein the processing element is used to execute the above network For each step of any method executed by the device, the interface circuit is used to communicate with other devices.
  • the unit for the network device to implement each step in the above method can be implemented in the form of a processing element scheduler.
  • the device for the network device includes a processing element and a storage element, and the processing element calls the program stored by the storage element to Perform the method performed by the network device in the above method embodiment.
  • the storage element may be a storage element with the processing element on the same chip, that is, an on-chip storage element, or a storage element on a different chip from the processing element, that is, an off-chip storage element.
  • the unit of the network device that implements each step in the above method may be configured as one or more processing elements, and these processing elements are arranged on the baseband device.
  • the processing elements here may be integrated circuits, such as one Or multiple ASICs, or, one or more DSPs, or, one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits can be integrated together to form a chip.
  • the units for the network equipment to implement the steps in the above method can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • the baseband device 1303 includes the SOC chip for implementing the above method.
  • At least one processing element and storage element can be integrated in the chip, and the processing element can call the stored program of the storage element to implement the method executed by the above network device; or, at least one integrated circuit can be integrated in the chip to implement the above network The method executed by the device; or, it can be combined with the above implementations.
  • the functions of some units are implemented in the form of calling programs by processing elements, and the functions of some units are implemented in the form of integrated circuits.
  • the above apparatus for a network device may include at least one processing element and an interface circuit, wherein at least one processing element is used to execute any method executed by the network device provided in the above method embodiments.
  • the processing element can execute part or all of the steps executed by the network device in the first way: calling the program stored in the storage element; or in the second way: combining instructions through the integrated logic circuit of the hardware in the processor element Part or all of the steps performed by the network device are executed in the method; of course, part or all of the steps executed by the network device can be executed in combination with the first method and the second method.
  • the processing elements here are the same as those described above, and may be a general-purpose processor, such as a CPU, or one or more integrated circuits configured to implement the above methods, such as: one or more ASICs, or, one or more micro-processing DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms.
  • a general-purpose processor such as a CPU
  • integrated circuits configured to implement the above methods, such as: one or more ASICs, or, one or more micro-processing DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms.
  • the storage element may be a memory or a collective term for multiple storage elements.
  • FIG. 14 is a schematic structural diagram of a terminal provided in an embodiment of the application. It may be the terminal in the above embodiment, and is used to implement the operation of the terminal in the above embodiment.
  • the terminal includes: an antenna 1401, a radio frequency part 1402, and a signal processing part 1403.
  • the antenna 1401 is connected to the radio frequency part 1402.
  • the radio frequency part 1402 receives the information sent by the network device through the antenna 1401, and sends the information sent by the network device to the signal processing part 1403 for processing.
  • the signal processing part 1403 processes the terminal information and sends it to the radio frequency part 1402, and the radio frequency part 1402 processes the terminal information and sends it to the network device via the antenna 1401.
  • the signal processing part 1403 may include a modem subsystem, which is used to process data at various communication protocol layers; it may also include a central processing subsystem, which is used to process terminal operating systems and application layers; in addition, it may also include Other subsystems, such as multimedia subsystem, peripheral subsystem, etc., where the multimedia subsystem is used to control the terminal camera, screen display, etc., and the peripheral subsystem is used to realize the connection with other devices.
  • the modem subsystem can be a separate chip.
  • the above apparatus for the terminal may be located in the modem subsystem.
  • the modem subsystem may include one or more processing elements 1403-1, for example, including a main control CPU and other integrated circuits.
  • the modem subsystem may also include a storage element 1403-2 and an interface circuit 1403-3.
  • the storage element 1403-2 is used to store data and programs, but the program used to execute the method executed by the terminal in the above method may not be stored in the storage element 1403-2, but is stored outside the modem subsystem. In the memory, the modem subsystem is loaded and used when in use.
  • the interface circuit 1403-3 is used to communicate with other subsystems.
  • the above device for the terminal may be located in the modem subsystem, the modem subsystem may be implemented by a chip, the chip includes at least one processing element and an interface circuit, wherein the processing element is used to execute any of the methods performed by the above terminal In each step, the interface circuit is used to communicate with other devices.
  • the unit for the terminal to implement each step in the above method can be implemented in the form of a processing element scheduler.
  • the device for the terminal includes a processing element and a storage element, and the processing element calls the program stored by the storage element to execute the above The method executed by the terminal in the method embodiment.
  • the storage element may be a storage element whose processing element is on the same chip, that is, an on-chip storage element.
  • the program for executing the method executed by the terminal in the above method may be a storage element on a different chip from the processing element, that is, an off-chip storage element.
  • the processing element calls or loads the program from the off-chip storage element on the on-chip storage element to call and execute the method executed by the terminal in the above method embodiment.
  • the terminal that implements each step in the above method may be configured as one or more processing elements, and these processing elements are provided on the modem subsystem, where the processing elements may be integrated circuits, such as : One or more ASICs, or, one or more DSPs, or, one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits can be integrated together to form a chip.
  • the units for the terminal to implement each step in the above method can be integrated together and implemented in the form of an SOC, and the SOC chip is used to implement the above method.
  • At least one processing element and a storage element can be integrated in the chip, and the above terminal execution method can be realized by the processing element calling the stored program of the storage element; or, at least one integrated circuit can be integrated in the chip for realizing the above terminal execution Or, it can be combined with the above implementations.
  • the functions of some units are implemented in the form of calling programs by processing elements, and the functions of some units are implemented in the form of integrated circuits.
  • the above apparatus for a terminal may include at least one processing element and an interface circuit, wherein at least one processing element is used to execute any of the methods performed by the terminal provided in the above method embodiments.
  • the processing element can execute part or all of the steps executed by the terminal in the first way: calling the program stored in the storage element; or in the second way: combining instructions through the integrated logic circuit of the hardware in the processor element Part or all of the steps executed by the terminal are executed in a manner; of course, part or all of the steps executed by the terminal may also be executed in combination with the first manner and the second manner.
  • the processing elements here are the same as those described above, and may be a general-purpose processor, such as a CPU, or one or more integrated circuits configured to implement the above methods, such as: one or more ASICs, or, one or more micro-processing DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms.
  • a general-purpose processor such as a CPU
  • integrated circuits configured to implement the above methods, such as: one or more ASICs, or, one or more micro-processing DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms.
  • the storage element may be a memory or a collective term for multiple storage elements.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be It can be combined or integrated into another device, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or the part that contributes to the existing technology, or all or part of the technical solutions can be embodied in the form of software products, which are stored in a storage medium. It includes several instructions to make a device (may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

Abstract

Embodiments of the present application relate to the field of communications. Disclosed are a clock synchronization method and device, for solving the problem of great clock synchronization errors between a terminal and a network device. The specific solution is that: a terminal obtains first information, the first information being used for determining a transmission time delay between a terminal and a network device; the terminal obtains a first time value, the first time value being used for indicating a sending time of a frame boundary of a radio frame of a first cell of the network device; the terminal determines, according to the obtained transmission delay and first time value, a second time value corresponding to a receiving time of the frame boundary of the radio frame of the first cell.

Description

一种时钟同步方法及设备Clock synchronization method and equipment
本申请要求于2019年02月01日提交国家知识产权局、申请号为201910106165.X、申请名称为“一种时钟同步方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office on February 1, 2019, the application number is 201910106165.X, and the application name is "a method and equipment for clock synchronization", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请实施例涉及通信领域,尤其涉及一种时钟同步方法及设备。The embodiments of the present application relate to the field of communications, and in particular to a clock synchronization method and device.
背景技术Background technique
在现有通信系统中,相互通信的各节点之间需要实现时钟同步。目前时钟同步的主要方式有:全球定位系统(global positioning system,GPS)和1588。在GPS方式中,各节点可以通过接收GPS卫星发出的信号,获得精准时间,以实现时钟同步。GPS方式要求节点能够直接接收GPS卫星的信号,处于室内的节点,是无法直接接收GPS卫星信号的。在1588方式中,可以在一定范围内选举出一个节点(如称为主(master)节点),该主节点上的时钟作为主时钟(master clock),其它节点(如称为从(slave)节点)上的时钟尽量与主时钟同步,即实现时钟同步。1588方式实现时钟同步的前提是主节点到从节点的传输时延与从节点到主节点的传输时延相同。但是,终端不一定处于室外,另外,网络设备到终端的传输时延与终端到网络设备的传输时延不相同。因此,终端不适于使用GPS方式或1588方式与网络设备进行时钟同步。因此,需要一种时钟同步方法及设备,以解决了终端和网络设备之间时钟同步的问题。In the existing communication system, each node that communicates with each other needs to realize clock synchronization. Currently, the main methods of clock synchronization are: Global Positioning System (GPS) and 1588. In the GPS mode, each node can obtain accurate time by receiving signals from GPS satellites to achieve clock synchronization. The GPS method requires nodes to be able to directly receive signals from GPS satellites. Nodes located indoors cannot directly receive signals from GPS satellites. In the 1588 mode, a node (such as a master node) can be elected within a certain range. The clock on the master node is used as the master clock, and other nodes (such as slave nodes) The clock on) should be synchronized with the master clock as much as possible, that is, clock synchronization is realized. The premise of clock synchronization in the 1588 mode is that the transmission delay from the master node to the slave node is the same as the transmission delay from the slave node to the master node. However, the terminal is not necessarily located outdoors. In addition, the transmission delay from the network device to the terminal is different from the transmission delay from the terminal to the network device. Therefore, the terminal is not suitable for using GPS or 1588 to synchronize clocks with network devices. Therefore, a clock synchronization method and device are needed to solve the problem of clock synchronization between the terminal and the network device.
发明内容Summary of the invention
有鉴于此,本申请实施例提供一种时钟同步方法及设备,以解决终端和网络设备之间时钟同步的问题。In view of this, the embodiments of the present application provide a clock synchronization method and device to solve the problem of clock synchronization between a terminal and a network device.
第一方面,本申请实施例提供一种时钟同步方法,该方法可以包括:终端获取用于确定终端与第一网络设备的传输时延的第一信息,并获取指示第一网络设备的第一小区的无线帧的帧边界的发送时刻的第一时间值,终端可以根据获取到的传输时延和第一时间值,确定第一小区的无线帧的帧边界的接收时刻对应的第二时间值,以完成时钟同步。In the first aspect, an embodiment of the present application provides a clock synchronization method. The method may include: the terminal obtains first information for determining the transmission delay between the terminal and the first network device, and obtains the first information indicating the first network device. The first time value of the transmission time of the frame boundary of the radio frame of the cell, the terminal can determine the second time value corresponding to the reception time of the frame boundary of the radio frame of the first cell according to the acquired transmission delay and the first time value To complete clock synchronization.
结合第一方面,在一种可能的实现方式中,上述第一信息可以为用于指示传输时延的信息。With reference to the first aspect, in a possible implementation manner, the foregoing first information may be information used to indicate a transmission delay.
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,上述第一信息可以为用于指示终端与第一网络设备之间的距离的信息;相应的,上述方法还可以包括:终端可以根据终端与第一网络设备之间的距离获取传输时延。也就是说,终端根据获取到的用于指示距离的信息可以获取到终端与第一网络设备的传输时延。而不是利用TA获取传输时延,即无需先向第一网络设备发送信号(如前导,preamble),便可获取到与第一网络设备的传输时延。With reference to the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the foregoing first information may be information used to indicate the distance between the terminal and the first network device; correspondingly, the foregoing method may also Including: the terminal can obtain the transmission delay according to the distance between the terminal and the first network device. That is, the terminal can acquire the transmission delay between the terminal and the first network device according to the acquired information used to indicate the distance. Instead of using TA to obtain the transmission delay, that is, without first sending a signal (such as a preamble) to the first network device, the transmission delay with the first network device can be obtained.
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,上述方法还 可以包括:终端获取终端由获取到第一信息的时刻开始到当前时刻的移动距离;当移动距离大于距离门限,说明终端与第一网络设备之间的传输时延有可能发生了改变,终端可以向第一网络设备发送用于指示第一网络设备重新下发第一信息的第一指示信息,以便第一网络设备重新向终端下发用于确定终端与第一网络设备的传输时延的第一信息。In combination with the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the foregoing method may further include: the terminal acquires the movement distance of the terminal from the moment when the first information is acquired to the current moment; when the movement distance is greater than The distance threshold indicates that the transmission delay between the terminal and the first network device may have changed. The terminal can send to the first network device the first instruction information for instructing the first network device to re-issue the first information, so that The first network device re-delivers the first information used to determine the transmission delay between the terminal and the first network device to the terminal.
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,由于终端在进行无线帧的帧边界检测时会存在误差,为了尽可能的减小这种误差,该方法还可以包括:终端获取M个小区的无线帧的帧边界的接收时刻,M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数;终端根据M个小区的无线帧的帧边界的接收时刻,更新第一小区的无线帧的帧边界的接收时刻。也就是说,终端可以对多个小区的无线帧的帧边界进行检测,然后,根据检测到的结果最终确定出无线帧的帧边界。In combination with the first aspect or the foregoing possible implementation manners, in another possible implementation manner, since the terminal may have errors when performing frame boundary detection of radio frames, in order to reduce such errors as much as possible, the method can also Including: the terminal acquires the receiving moments of the frame boundaries of the radio frames of M cells, the frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2; the terminal is based on the M cells The receiving time of the frame boundary of the radio frame of the first cell is updated. In other words, the terminal can detect the frame boundaries of the radio frames of multiple cells, and then finally determine the frame boundaries of the radio frames according to the detected results.
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,终端获取第一时间值,具体的可以包括:终端可以接收M个小区的指示无线帧的帧边界的发送时刻的时间值,M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数,然后,根据获取到的M个小区的时间值,确定第一时间值。With reference to the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the terminal obtains the first time value, which may specifically include: the terminal may receive M cells indicating the transmission time of the frame boundary of the radio frame Time value, the frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2, and then the first time value is determined according to the acquired time values of the M cells.
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,在每个小区内的授时消息的发送周期不变的情况下,第一网络设备可以保证在该多个小区中各个小区的授时消息的发送周期是错开的,以使得终端可以更频繁读取授时消息。也就是说,在M个小区中,终端接收不同小区的指示无线帧的帧边界的发送时刻的时间值的时间窗不同;相应的,该方法还可以包括:终端可以接收来自第一网络设备的第二指示信息,该第二指示信息可以用于指示在N个小区的每个小区中接收小区的指示无线帧的帧边界的发送时刻的时间值的时间窗,N个小区包括M个小区,N为大于或等于M的整数;终端接收M个小区的指示无线帧的帧边界的发送时刻的时间值,具体的可以包括:终端根据第二指示信息指示的时间窗,接收M个小区的时间值。In combination with the first aspect or the foregoing possible implementation manners, in another possible implementation manner, under the condition that the sending period of the timing message in each cell remains unchanged, the first network device can ensure that the The sending period of the timing message of each cell is staggered, so that the terminal can read the timing message more frequently. That is, in the M cells, the time window for the terminal to receive the time value of the transmission time indicating the frame boundary of the radio frame in different cells is different; correspondingly, the method may also include: the terminal may receive the data from the first network device The second indication information, the second indication information may be used to indicate the time window for receiving the time value of the sending moment of the frame boundary of the radio frame of the receiving cell in each of the N cells. The N cells include M cells, N is an integer greater than or equal to M; the terminal receives the time value of the transmission time indicating the frame boundary of the radio frame of the M cells, which may specifically include: the terminal receives the time of the M cells according to the time window indicated by the second indication information value.
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,为了能够让第一网络设备给终端分配合适数量的小区,该方法还可以包括:终端可以向第一网络设备发送第三指示信息,该第三指示信息用于第一网络设备为终端分配小区,为终端分配的小区中包括M个小区;其中,第三指示信息为终端对终端的时钟的精度要求;或者,第三指示信息为终端的第一业务的标识或第一业务的服务质量QoS标识,终端的第一业务对终端的时钟的精度要求大于终端的其他业务对终端的时钟的精度要求。With reference to the first aspect or the foregoing possible implementation manners, in another possible implementation manner, in order to allow the first network device to allocate an appropriate number of cells to the terminal, the method may further include: the terminal may send to the first network device Third indication information, the third indication information is used by the first network device to allocate cells for the terminal, and the cells allocated for the terminal include M cells; wherein, the third indication information is the terminal's clock accuracy requirement for the terminal; or, The third indication information is the identification of the first service of the terminal or the quality of service QoS identification of the first service, and the accuracy requirements of the first service of the terminal on the clock of the terminal are greater than the accuracy requirements of other services of the terminal on the clock of the terminal.
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,该方法还可包括:终端接收第一网络设备发送的第三时间值,第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻;终端在切换到第二小区后,获取第四时间值,第四时间值用于指示第二小区的子帧边界的接收时刻;终端根据第三时间值和第四时间值,确定终端与第二网络设备的传输时延;终端根据终端与第二网络设备的传输时延进行数据传输。With reference to the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the method may further include: the terminal receives a third time value sent by the first network device, and the third time value is used to indicate the second network The sending moment of the subframe boundary of the second cell of the device; the terminal obtains the fourth time value after switching to the second cell, and the fourth time value is used to indicate the receiving moment of the subframe boundary of the second cell; The time value and the fourth time value determine the transmission delay between the terminal and the second network device; the terminal performs data transmission according to the transmission delay between the terminal and the second network device.
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,该方法还可以包括:终端在切换到第二网络设备的第二小区后,获取第二小区的系统帧号,接收 第二网络设备的发送的第五时间值,第五时间值用于指示第二小区的无线帧的帧边界的发送时刻;终端根据系统帧号,获取第六时间值,第六时间值用于指示第二小区的无线帧的帧边界的接收时刻;终端根据第五时间值和第六时间值,确定终端与第二网络设备的传输时延;终端根据终端与第二网络设备的传输时延进行数据传输。In combination with the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the method may further include: obtaining the system frame number of the second cell after the terminal switches to the second cell of the second network device, Receive the fifth time value sent by the second network device, the fifth time value is used to indicate the sending moment of the frame boundary of the radio frame of the second cell; the terminal obtains the sixth time value according to the system frame number, and the sixth time value is used At the receiving time indicating the frame boundary of the radio frame of the second cell; the terminal determines the transmission delay between the terminal and the second network device according to the fifth time value and the sixth time value; the terminal according to the transmission time between the terminal and the second network device Delay data transmission.
第二方面,本申请实施例提供一种时钟同步方法,该方法可以包括:第一网络设备获取终端与该第一网络设备之间的距离,根据该距离生成用于终端确定终端与第一网络设备的传输时延的第一信息,并向终端发送该第一信息。In a second aspect, an embodiment of the present application provides a clock synchronization method. The method may include: the first network device obtains the distance between the terminal and the first network device, and generates a method for determining the terminal and the first network based on the distance. And send the first information about the transmission delay of the device to the terminal.
结合第二方面,在一种可能的实现方式中,第一网络设备通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,其中,该为终端分配的小区中包含第一小区。With reference to the second aspect, in a possible implementation manner, the first network device sends to the terminal a time value indicating the transmission time of the frame boundary of the radio frame through the cell allocated for the terminal, where the cell allocated for the terminal is Contains the first cell.
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,第一信息可以为用于指示传输时延的信息;或者,第一信息可以为用于指示终端与第一网络设备之间的距离的信息。With reference to the second aspect or the foregoing possible implementation manners, in another possible implementation manner, the first information may be information used to indicate transmission delay; or, the first information may be used to indicate whether the terminal is connected to the first network Information about the distance between devices.
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,该方法还包括:第一网络设备获取终端与第一网络设备之间的距离;当获取到的终端与第一网络设备之间的距离相较于第一网络设备下发第一信息时终端与第一网络设备之间的距离发生了变化,说明终端与第一网络设备之间的传输时延有可能发生了改变,第一网络设备重新向终端发送第一信息。With reference to the second aspect or the foregoing possible implementation manners, in another possible implementation manner, the method further includes: the first network device obtains the distance between the terminal and the first network device; The distance between the network devices has changed compared to the distance between the terminal and the first network device when the first network device delivers the first information, indicating that the transmission delay between the terminal and the first network device may have occurred Change, the first network device sends the first information to the terminal again.
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,为终端分配的小区包括N个小区,N个小区的无线帧的帧边界对齐,N为大于或等于2的整数。With reference to the second aspect or the foregoing possible implementation manners, in another possible implementation manner, the cells allocated to the terminal include N cells, the frame boundaries of the radio frames of the N cells are aligned, and N is an integer greater than or equal to 2. .
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,在每个小区内的授时消息的发送周期不变的情况下,第一网络设备可以保证在该多个小区中各个小区的授时消息的发送周期是错开的,以使得终端可以更频繁读取授时消息。第一网络设备通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,具体的可以包括:第一网络设备在不同的时间窗,通过N个小区中的每个小区,向终端发送指示无线帧的帧边界的发送时刻的时间值;该方法还可以包括:第一网络设备向终端发送第二指示信息,第二指示信息用于指示终端在N个小区的每个小区中接收小区的指示无线帧的帧边界的发送时刻的时间值的时间窗。In combination with the second aspect or the foregoing possible implementation manners, in another possible implementation manner, when the sending period of the timing message in each cell remains unchanged, the first network device can ensure that the The sending period of the timing message of each cell is staggered, so that the terminal can read the timing message more frequently. The first network device sends the time value indicating the sending moment of the frame boundary of the radio frame to the terminal through the cell allocated for the terminal. Specifically, it may include: the first network device passes through each of the N cells in different time windows. Cell, sending a time value indicating the sending moment of the frame boundary of the radio frame to the terminal; the method may further include: the first network device sends second indication information to the terminal, the second indication information is used to indicate that the terminal is in each of the N cells A time window indicating the time value of the transmission time of the frame boundary of the radio frame in the receiving cell in each cell.
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,为了能够给终端分配合适数量的小区,第一网络设备可以根据终端的指示为其分配小区。即该方法还可以包括:第一网络设备接收来自终端的第三指示信息;第一网络设备根据第三指示信息,获取需要为终端分配的小区的数量X;第一网络设备根据数量X,为终端分配N个小区,N大于或等于数量X;其中:第三指示信息为终端对终端的时钟的精度要求,不同精度要求对应不同的数量X;或者,第三指示信息为终端的第一业务的标识,不同业务的标识对应不同的数量X;或者,第三指示信息为第一业务的服务质量QoS标识,不同的QoS标识对应不同的数量X;终端的第一业务对终端的时钟的精度要求大于终端的其他业务对终端的时钟的精度要求。In combination with the second aspect or the foregoing possible implementation manners, in another possible implementation manner, in order to be able to allocate a suitable number of cells to the terminal, the first network device may allocate cells to the terminal according to the instructions of the terminal. That is, the method may further include: the first network device receives third instruction information from the terminal; the first network device obtains the number X of cells that need to be allocated to the terminal according to the third instruction information; The terminal allocates N cells, and N is greater than or equal to the number X; where: the third indication information is the terminal's requirements for the accuracy of the terminal's clock, and different accuracy requirements correspond to different numbers X; or, the third indication information is the terminal's first service The identifier of different services corresponds to a different quantity X; or, the third indication information is the quality of service QoS identifier of the first service, and different QoS identifiers correspond to a different quantity X; the accuracy of the terminal’s first service to the terminal’s clock The requirements are greater than the accuracy requirements of other services of the terminal on the clock of the terminal.
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,该方法还可以包括:第一网络设备接收第二网络设备发送的第三时间值,第三时间值用于指示第 二网络设备的第二小区的子帧边界的发送时刻;第一网络设备向终端发送第三时间值。With reference to the second aspect or the foregoing possible implementation manners, in another possible implementation manner, the method may further include: the first network device receives a third time value sent by the second network device, and the third time value is used to indicate The sending moment of the subframe boundary of the second cell of the second network device; the first network device sends the third time value to the terminal.
第三方面,本申请实施例提供一种时钟同步装置,该时钟同步装置包括用于执行以上第一方面各个步骤的单元或手段(means)。具体的:该时钟同步装置可以包括:第一获取单元,用于获取第一信息,以及第一时间值,第一信息用于确定时钟同步装置与第一网络设备的传输时延,第一时间值用于指示第一网络设备的第一小区的无线帧的帧边界的发送时刻;确定单元,用于根据传输时延和第一时间值,确定第一小区的无线帧的帧边界的接收时刻对应的第二时间值。In a third aspect, an embodiment of the present application provides a clock synchronization device. The clock synchronization device includes units or means for performing the steps of the first aspect above. Specifically: the clock synchronization apparatus may include: a first obtaining unit, configured to obtain first information, and a first time value, the first information is used to determine the transmission delay between the clock synchronization apparatus and the first network device, and the first time The value is used to indicate the sending moment of the frame boundary of the radio frame of the first cell of the first network device; the determining unit is used to determine the receiving moment of the frame boundary of the radio frame of the first cell according to the transmission delay and the first time value The corresponding second time value.
结合第三方面,在一种可能的实现方式中,第一信息为用于指示传输时延的信息。With reference to the third aspect, in a possible implementation manner, the first information is information used to indicate a transmission delay.
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,第一信息为用于指示时钟同步装置与第一网络设备之间的距离的信息;第一获取单元,还用于根据时钟同步装置与第一网络设备之间的距离获取传输时延。With reference to the third aspect or the foregoing possible implementation manners, in another possible implementation manner, the first information is information used to indicate the distance between the clock synchronization apparatus and the first network device; the first acquiring unit further uses The transmission delay is obtained according to the distance between the clock synchronization device and the first network device.
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:第二获取单元和发送单元;第二获取单元,用于获取时钟同步装置由获取到第一信息的时刻开始到当前时刻的移动距离;发送单元,用于当移动距离大于距离门限,向第一网络设备发送第一指示信息,第一指示信息用于指示第一网络设备重新下发第一信息。With reference to the third aspect or the foregoing possible implementation manners, in another possible implementation manner, the clock synchronization device may further include: a second acquiring unit and a sending unit; the second acquiring unit is used to acquire the The moving distance from the moment of the first information to the current moment; the sending unit is used to send the first indication information to the first network device when the moving distance is greater than the distance threshold, and the first indication information is used to instruct the first network device to reissue First information.
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:更新单元;第一获取单元,还用于获取M个小区的无线帧的帧边界的接收时刻,M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数;更新单元,用于根据M个小区的无线帧的帧边界的接收时刻,更新第一小区的无线帧的帧边界的接收时刻。With reference to the third aspect or the foregoing possible implementation manners, in another possible implementation manner, the clock synchronization device may further include: an update unit; a first acquisition unit, which is also used to acquire frame boundaries of radio frames of M cells At the receiving moment, the frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2; the update unit is used to receive the frame boundaries of the radio frames of the M cells according to the receiving moment, Update the receiving time of the frame boundary of the radio frame of the first cell.
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:接收单元;接收单元,用于接收M个小区的指示无线帧的帧边界的发送时刻的时间值,M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数;第一获取单元,具体用于根据M个小区的时间值,确定第一时间值。With reference to the third aspect or the foregoing possible implementation manners, in another possible implementation manner, the clock synchronization device may further include: a receiving unit; a receiving unit, configured to receive M cells indicating the sending time of the frame boundary of the radio frame The frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2; the first acquiring unit is specifically used to determine the first cell based on the time values of the M cells A time value.
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,在M个小区中,时钟同步装置接收不同小区的指示无线帧的帧边界的发送时刻的时间值的时间窗不同;接收单元,还用于接收来自第一网络设备的第二指示信息,第二指示信息用于指示在N个小区的每个小区中接收小区的指示无线帧的帧边界的发送时刻的时间值的时间窗,N个小区包括M个小区;接收单元,具体用于根据第二指示信息指示的时间窗,接收M个小区的时间值。In combination with the third aspect or the foregoing possible implementation manners, in another possible implementation manner, in the M cells, the clock synchronization device receives different time windows indicating the time values of the transmission time of the frame boundary of the radio frame from different cells. The receiving unit is further configured to receive second indication information from the first network device, the second indication information is used to indicate the time value of the sending moment indicating the frame boundary of the radio frame of the receiving cell in each of the N cells The N cells include M cells; the receiving unit is specifically configured to receive the time values of the M cells according to the time window indicated by the second indication information.
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:发送单元,用于向第一网络设备发送第三指示信息,第三指示信息用于第一网络设备为时钟同步装置分配小区,为时钟同步装置分配的小区中包括M个小区;其中,第三指示信息为时钟同步装置对时钟同步装置的时钟的精度要求;或者,第三指示信息为时钟同步装置的第一业务的标识或第一业务的服务质量QoS标识,时钟同步装置的第一业务对时钟同步装置的时钟的精度要求大于时钟同步装置的其他业务对时钟同步装置的时钟的精度要求。With reference to the third aspect or the foregoing possible implementation manners, in another possible implementation manner, the clock synchronization apparatus may further include: a sending unit, configured to send third indication information to the first network device, and the third indication information is used for The first network device allocates cells for the clock synchronization device, and the cells allocated for the clock synchronization device include M cells; where the third indication information is the accuracy requirement of the clock synchronization device for the clock synchronization device; or, the third indication information It is the identification of the first service of the clock synchronization device or the quality of service QoS identification of the first service. The first service of the clock synchronization device requires more precision for the clock of the clock synchronization device than for other services of the clock synchronization device. Precision requirements.
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:接收单元和传输单元;接收单元,用于接收第一网络设备发送的第三时间值,第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻;第二获取单元,还用于在切换到第二小区后,获取第四时间值,第四时间值用于指示第二小区的子帧边界的接收时刻;确定单元,还用于根据第三时间值和第四时间值,确定时钟同步装置与第二网络设备的传输时延;传输单元,用于根据时钟同步装置与第二网络设备的传输时延进行数据传输。With reference to the third aspect or the foregoing possible implementation manners, in another possible implementation manner, the clock synchronization device may further include: a receiving unit and a transmission unit; the receiving unit is configured to receive the third time value sent by the first network device , The third time value is used to indicate the sending moment of the subframe boundary of the second cell of the second network device; the second obtaining unit is also used to obtain the fourth time value after switching to the second cell, the fourth time value It is used to indicate the receiving moment of the subframe boundary of the second cell; the determining unit is also used to determine the transmission delay between the clock synchronization device and the second network device according to the third time value and the fourth time value; the transmission unit is used to Data transmission is performed according to the transmission delay between the clock synchronization device and the second network device.
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:传输单元;第一获取单元,还用于在切换到第二网络设备的第二小区后,获取第二小区的系统帧号SFN,接收第二网络设备的发送的第五时间值,第五时间值用于指示第二小区的无线帧的帧边界的发送时刻;第二获取单元,还用于根据SFN,获取第六时间值,第六时间值用于指示第二小区的无线帧的帧边界的接收时刻;确定单元,还用于根据第五时间值和第六时间值,确定时钟同步装置与第二网络设备的传输时延;传输单元,用于根据时钟同步装置与第二网络设备的传输时延进行数据传输。With reference to the third aspect or the foregoing possible implementation manners, in another possible implementation manner, the clock synchronization apparatus may further include: a transmission unit; and the first acquisition unit is further configured to switch to the second cell of the second network device After that, the system frame number SFN of the second cell is acquired, and the fifth time value sent by the second network device is received. The fifth time value is used to indicate the sending moment of the frame boundary of the radio frame of the second cell; the second acquiring unit, It is also used to obtain the sixth time value according to the SFN, the sixth time value is used to indicate the receiving moment of the frame boundary of the radio frame of the second cell; the determining unit is also used to determine according to the fifth time value and the sixth time value The transmission delay between the clock synchronization device and the second network device; the transmission unit is used for data transmission according to the transmission delay between the clock synchronization device and the second network device.
第四方面,本申请实施例提供一种时钟同步装置,该时钟同步装置可以包括执行以上第二方面各个步骤的单元或手段。具体的,该时钟同步装置可以包括:获取单元,用于获取终端与该时钟同步装置之间的距离,根据该距离生成第一信息;发送单元,用于向终端发送第一信息,第一信息用于终端确定终端与时钟同步装置的传输时延。In a fourth aspect, an embodiment of the present application provides a clock synchronization device. The clock synchronization device may include units or means for performing the steps of the second aspect above. Specifically, the clock synchronization device may include: an acquiring unit, configured to acquire the distance between the terminal and the clock synchronization device, and generating first information according to the distance; and a sending unit, configured to send the first information to the terminal, the first information Used by the terminal to determine the transmission delay between the terminal and the clock synchronization device.
结合第四方面,在一种可能的实现方式中,发送单元,还用于通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,为终端分配的小区中包含第一小区。With reference to the fourth aspect, in a possible implementation manner, the sending unit is further configured to send a time value indicating the sending time of the frame boundary of the radio frame to the terminal through the cell allocated for the terminal, and the cell allocated for the terminal includes The first cell.
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,第一信息为用于指示传输时延的信息;或者,第一信息为用于指示终端与时钟同步装置之间的距离的信息。With reference to the fourth aspect or the foregoing possible implementation manners, in another possible implementation manner, the first information is information used to indicate the transmission delay; or, the first information is used to indicate the communication between the terminal and the clock synchronization device. Distance information.
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:获取单元,还用于获取终端与时钟同步装置之间的距离;发送单元,还用于当获取到的终端与时钟同步装置之间的距离相较于时钟同步装置下发第一信息时终端与时钟同步装置之间的距离发生了变化,重新向终端发送第一信息。With reference to the fourth aspect or the foregoing possible implementation manners, in another possible implementation manner, the clock synchronization device may further include: an acquiring unit, which is also used to acquire the distance between the terminal and the clock synchronization device; and a sending unit, which also uses When the acquired distance between the terminal and the clock synchronization device is compared with the distance between the terminal and the clock synchronization device when the clock synchronization device sends the first information, the first information is re-sent to the terminal.
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,为终端分配的小区包括N个小区,N个小区的无线帧的帧边界对齐,N为大于或等于2的整数。With reference to the fourth aspect or the foregoing possible implementation manners, in another possible implementation manner, the cells allocated to the terminal include N cells, and the frame boundaries of the radio frames of the N cells are aligned, and N is an integer greater than or equal to 2. .
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,发送单元,具体用于在不同的时间窗,通过N个小区中的每个小区,向终端发送指示无线帧的帧边界的发送时刻的时间值;发送单元,还用于向终端发送第二指示信息,第二指示信息用于指示终端在N个小区的每个小区中接收小区的指示无线帧的帧边界的发送时刻的时间值的时间窗。In combination with the fourth aspect or the foregoing possible implementation manners, in another possible implementation manner, the sending unit is specifically configured to send an instruction radio frame to the terminal through each of the N cells in different time windows. The time value of the sending moment of the frame boundary; the sending unit is also used to send second indication information to the terminal, and the second indication information is used to instruct the terminal to receive the frame boundary of the radio frame indicating the cell in each of the N cells The time window of the time value at the time of sending.
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:接收单元和分配单元;接收单元,用于接收来自终端的第三指示信息;获取单元,还用于根据第三指示信息,获取需要为终端分配的小区的数量X;分配单元,用于根据数量X,为终端分配N个小区,N大于或等于数量X;其中:第三指示 信息为终端对终端的时钟的精度要求,不同精度要求对应不同的数量X;或者,第三指示信息为终端的第一业务的标识,不同业务的标识对应不同的数量X;或者,第三指示信息为第一业务的服务质量QoS标识,不同的QoS标识对应不同的数量X;终端的第一业务对终端的时钟的精度要求大于终端的其他业务对终端的时钟的精度要求。With reference to the fourth aspect or the foregoing possible implementation manners, in another possible implementation manner, the clock synchronization device may further include: a receiving unit and a distribution unit; a receiving unit for receiving the third indication information from the terminal; an acquiring unit , Is also used to obtain the number X of cells that need to be allocated to the terminal according to the third indication information; the allocation unit is used to allocate N cells to the terminal according to the number X, where N is greater than or equal to the number X; where: third indication information It is the terminal’s requirements for the terminal’s clock accuracy, and different accuracy requirements correspond to different numbers X; or, the third indication information is the identification of the first service of the terminal, and the identifications of different services correspond to different numbers X; or, the third indication information It is the quality of service QoS identifier of the first service, and different QoS identifiers correspond to different numbers X; the terminal's first service requires more precision for the terminal clock than other services of the terminal require for the terminal's clock.
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,接收单元,还用于接收第二网络设备发送的第三时间值,第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻;发送单元,还用于向终端发送第三时间值。With reference to the fourth aspect or the foregoing possible implementation manners, in another possible implementation manner, the receiving unit is further configured to receive a third time value sent by the second network device, and the third time value is used to indicate the second network device The sending moment of the subframe boundary of the second cell; the sending unit is further configured to send the third time value to the terminal.
第五方面,本申请实施例提供一种时钟同步装置,该时钟同步装置可以包括:处理器和接口电路,所述处理器用于通过所述接口电路与其他装置,如网络设备通信,并执行以上第一方面提供的方法。该处理器可以包括一个或多个。In a fifth aspect, an embodiment of the present application provides a clock synchronization device. The clock synchronization device may include a processor and an interface circuit. The processor is configured to communicate with other devices, such as network equipment, through the interface circuit, and perform the above The method provided in the first aspect. The processor may include one or more.
第六方面,本申请实施例提供一种时钟同步装置,该时钟同步装置可以包括:处理器和接口电路,所述处理器用于通过所述接口电路与其他装置,如终端通信,并执行上述第二方面提供的方法。该处理器可以包括一个或多个。In a sixth aspect, an embodiment of the present application provides a clock synchronization device. The clock synchronization device may include a processor and an interface circuit. The processor is configured to communicate with other devices, such as a terminal, through the interface circuit, and execute the above-mentioned Two methods provided. The processor may include one or more.
第七方面,本申请实施例提供一种时钟同步装置,该时钟同步装置可以包括处理器,用于与存储器相连,用于调用所述存储器中存储的程序,以执行上述第一方面提供的方法。该存储器可以位于该装置之内,也可以位于该装置之外。且该处理器包括一个或多个。In a seventh aspect, an embodiment of the present application provides a clock synchronization device. The clock synchronization device may include a processor, configured to be connected to a memory, and used to call a program stored in the memory to execute the method provided in the first aspect. . The memory can be located inside the device or outside the device. And the processor includes one or more.
第八方面,本申请实施例提供一种终端,该终端可以包括如上述第二方面提供的时钟同步装置。In an eighth aspect, an embodiment of the present application provides a terminal, and the terminal may include the clock synchronization device provided in the above second aspect.
第九方面,本申请实施例提供一种网络设备,该网络设备可以包括如上述第三方面提供的时钟同步装置。In a ninth aspect, an embodiment of the present application provides a network device, and the network device may include the clock synchronization device provided in the foregoing third aspect.
第十方面,本申请实施例提供一种计算机可读存储介质,包括:计算机软件指令;当计算机软件指令在时钟同步装置或内置在时钟同步装置的芯片中运行时,使得时钟同步装置执行以上第一方面或第二方面的方法。In a tenth aspect, an embodiment of the present application provides a computer-readable storage medium, including: computer software instructions; when the computer software instructions run in a clock synchronization device or a chip built in the clock synchronization device, the clock synchronization device executes the above-mentioned One aspect or the second aspect of the method.
第十一方面,本申请实施例提供一种时钟同步的程序,该程序在被处理器执行时用于执行以上第一方面或第二方面的方法。In an eleventh aspect, an embodiment of the present application provides a clock synchronization program, which is used to execute the method of the first aspect or the second aspect when executed by a processor.
第十二方面,本申请实施例提供一种程序产品,例如计算机可读存储介质,包括以上程序。In a twelfth aspect, an embodiment of the present application provides a program product, such as a computer-readable storage medium, including the above program.
可见,在以上各方面中,终端能获得较为精确的传输时延。这样,终端根据获得的较为精确的传输时延进行时钟的同步,便可使终端和第一网络设备之间时钟的同步误差降低。It can be seen that in the above aspects, the terminal can obtain a relatively accurate transmission delay. In this way, the terminal performs clock synchronization according to the obtained relatively accurate transmission delay, which can reduce the clock synchronization error between the terminal and the first network device.
正如上所示,终端可以获取到用于确定传输时延的第一信息,如从第一网络设备处接收得到的。该第一信息可以是第一网络设备利用雷达或无线定位的方式,对第一网络设备与终端之间的距离进行测量,得到的距离或者根据测量的距离确定的第一网络设备与终端之间的传输时延,这种方式得到的传输时延相较于利用TA确定传输时延更为精确。As shown above, the terminal can obtain the first information for determining the transmission delay, as received from the first network device. The first information may be that the first network device measures the distance between the first network device and the terminal by means of radar or wireless positioning, and the obtained distance or the distance between the first network device and the terminal determined according to the measured distance The transmission delay obtained in this way is more accurate than using TA to determine the transmission delay.
另外,终端通过获取多个小区的无线帧的帧边界的接收时刻,来确定无线帧的帧边界,可减小终端确定无线帧的帧边界时的误差,从而进一步降低了终端和第一网络设备之间时钟的同步误差。第一网络设备在向终端通知时间值时,发送的该时间值的 无线帧没有时间约束,也就是说,第一网络设备可以根据自己的调度确定向终端通知时间值的无线帧。如,第一网络设备在哪个无线帧的负荷轻,便采用哪个无线帧向终端通知时间值。终端在切换到目标小区(如上述第二网络设备的第二小区)后,无需做随机接入,通过第二网络设备通知的子帧边界的发送时刻的精准时间,或通过读取目标小区的授时消息便可获得TA,进而在目标小区进行数据传输。In addition, the terminal determines the frame boundary of the wireless frame by acquiring the receiving time of the frame boundary of the wireless frame of multiple cells, which can reduce the error when the terminal determines the frame boundary of the wireless frame, thereby further reducing the terminal and the first network device The synchronization error between the clocks. When the first network device notifies the terminal of the time value, the wireless frame of the time value sent has no time constraint, that is, the first network device can determine the wireless frame that notifies the terminal of the time value according to its own schedule. For example, in which wireless frame the load of the first network device is light, which wireless frame is used to notify the terminal of the time value. After the terminal is handed over to the target cell (such as the second cell of the second network device described above), it does not need to perform random access, and the precise time of the transmission time of the subframe boundary notified by the second network device, or by reading the target cell The timing message can obtain the TA, and then perform data transmission in the target cell.
附图说明Description of the drawings
图1为本申请实施例提供的一种通信系统的示意图;FIG. 1 is a schematic diagram of a communication system provided by an embodiment of this application;
图2为本申请实施例提供的一种网络架构的示意图;Figure 2 is a schematic diagram of a network architecture provided by an embodiment of the application;
图3为本申请实施例提供的另一种网络架构的示意图;FIG. 3 is a schematic diagram of another network architecture provided by an embodiment of the application;
图4为本申请实施例提供的一种授时消息的传输示意图;4 is a schematic diagram of transmission of a timing message provided by an embodiment of the application;
图5为本申请实施例提供的一种时钟同步方法的流程示意图;FIG. 5 is a schematic flowchart of a clock synchronization method provided by an embodiment of this application;
图6为本申请实施例提供的另一种时钟同步方法的流程示意图;FIG. 6 is a schematic flowchart of another clock synchronization method provided by an embodiment of this application;
图7为本申请实施例提供的另一种授时消息的传输示意图;FIG. 7 is a schematic diagram of the transmission of another timing message provided by an embodiment of the application;
图8为本申请实施例提供的又一种时钟同步方法的流程示意图;FIG. 8 is a schematic flowchart of another clock synchronization method provided by an embodiment of this application;
图9为本申请实施例提供的又一种授时消息的传输示意图;FIG. 9 is a schematic diagram of the transmission of yet another timing message provided by an embodiment of the application;
图10为本申请实施例提供的又一种授时消息的传输示意图;FIG. 10 is a schematic diagram of transmission of yet another timing message provided by an embodiment of this application;
图11为本申请实施例提供的又一种时钟同步方法的流程示意图;FIG. 11 is a schematic flowchart of another clock synchronization method provided by an embodiment of this application;
图12为本申请实施例提供的又一种时钟同步方法的流程示意图;FIG. 12 is a schematic flowchart of another clock synchronization method provided by an embodiment of this application;
图13为本申请实施例提供的一种网络设备的结构示意图;FIG. 13 is a schematic structural diagram of a network device provided by an embodiment of this application;
图14为本申请实施例提供的一种终端的结构示意图。FIG. 14 is a schematic structural diagram of a terminal provided by an embodiment of the application.
具体实施方式detailed description
以下,对本申请中的部分用语进行说明:Hereinafter, some terms in this application are explained:
1)、终端,又称之为用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等,是一种向用户提供语音/数据连通性的设备。例如,工业控制网中的操作臂终端。又例如,具有无线连接功能的手持式设备、或车载设备等。目前,一些终端的举例为:手机(mobile phone)、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、或智慧家庭(smart home)中的无线终端等。1) Terminal, also known as user equipment (UE), mobile station (MS), mobile terminal (MT), etc., is a device that provides users with voice/data connectivity . For example, the operating arm terminal in the industrial control network. For another example, a handheld device with a wireless connection function, or a vehicle-mounted device, etc. At present, some examples of terminals are: mobile phones, tablet computers, notebook computers, handheld computers, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (augmented reality, AR) equipment, industrial control (industrial control) wireless terminal, unmanned driving (self driving) wireless terminal, remote medical surgery (remote medical surgery) wireless terminal, smart grid (smart grid) The wireless terminal in the transportation safety (transportation safety), the wireless terminal in the smart city (smart city), or the wireless terminal in the smart home (smart home), etc.
2)、网络设备是无线网络中的设备,例如将终端接入到无线网络的无线接入网(radio access network,RAN)节点。目前,一些RAN节点的举例为:gNB、传输接收点(transmission reception point,TRP)、演进型节点B(evolved Node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(Node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved NodeB,或home Node B,HNB)、基带单元(base band unit,BBU),或无线保真(wireless fidelity,Wifi)接入点(access point,AP)等。 在一种网络结构中,网络设备可以包括集中单元(centralized unit,CU)节点、或分布单元(distributed unit,DU)节点、或包括CU节点和DU节点的RAN设备。2) The network device is a device in a wireless network, for example, a radio access network (RAN) node that connects a terminal to the wireless network. At present, some examples of RAN nodes are: gNB, transmission reception point (TRP), evolved Node B (evolved Node B, eNB), radio network controller (RNC), Node B (Node B) B, NB), base station controller (BSC), base transceiver station (BTS), home base station (for example, home evolved NodeB, or home Node B, HNB), baseband unit (baseband unit) , BBU), or wireless fidelity (Wifi) access point (AP), etc. In a network structure, the network device may include a centralized unit (CU) node, or a distributed unit (DU) node, or a RAN device including a CU node and a DU node.
3)、“多个”是指两个或两个以上,其它量词与之类似。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。此外,对于单数形式“a”,“an”和“the”出现的元素(element),除非上下文另有明确规定,否则其不意味着“一个或仅一个”,而是意味着“一个或多于一个”。例如,“a device”意味着对一个或多个这样的device。再者,至少一个(at least one of).......”意味着后续关联对象中的一个或任意组合,例如“A,B和C中的至少一个”包括A,B,C,AB,AC,BC,或ABC。3) "Multiple" means two or more than two, and other measure words are similar. "And/or" describes the association relationship of the associated object, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone. In addition, for elements in the singular form "a", "an" and "the", unless the context clearly dictates otherwise, it does not mean "one or only one", but means "one or more At one". For example, "a device" means to one or more such devices. Furthermore, at least one (at least one of)..." means one or any combination of subsequent associated objects, for example, "at least one of A, B, and C" includes A, B, C, AB, AC, BC, or ABC.
请参考图1,其为本申请实施例提供的一种通信系统的示意图。如图1所示,终端101(如图1中所示的操作臂终端)接入到无线网络,以通过无线网络获取外网(例如因特网)的服务,或者通过无线网络与其它终端通信。该无线网络可以包括RAN 102和核心网(core network,CN)103。其中,RAN 102用于将终端101接入到无线网络,CN 103用于对终端进行管理并提供与外网通信的网关。Please refer to FIG. 1, which is a schematic diagram of a communication system provided by an embodiment of the application. As shown in FIG. 1, a terminal 101 (the operating arm terminal shown in FIG. 1) accesses a wireless network to obtain services from an external network (such as the Internet) through the wireless network, or communicate with other terminals through the wireless network. The wireless network may include a RAN 102 and a core network (core network, CN) 103. Among them, the RAN 102 is used to connect the terminal 101 to the wireless network, and the CN 103 is used to manage the terminal and provide a gateway for communication with the external network.
请参考图2,其为本申请实施例提供的一种网络架构的示意图。如图2所示,该网络架构包括CN设备和RAN设备。Please refer to FIG. 2, which is a schematic diagram of a network architecture provided by an embodiment of the application. As shown in Figure 2, the network architecture includes CN equipment and RAN equipment.
其中RAN设备包括基带装置和射频装置,其中基带装置可以由一个节点实现,也可以由多个节点实现,射频装置可以从基带装置拉远独立实现,也可以集成基带装置中,或者部分拉远部分集成在基带装置中。例如,在长期演进(Long Term Evolution,LTE)通信系统中,RAN设备(eNB)包括基带装置和射频装置,其中射频装置可以相对于基带装置拉远布置,例如射频拉远单元(remote radio unit,RRU)相对于BBU拉远布置。The RAN equipment includes a baseband device and a radio frequency device. The baseband device can be implemented by one node or by multiple nodes. The radio frequency device can be implemented separately from the baseband device, or integrated into the baseband device, or partially remote Integrated in the baseband device. For example, in the Long Term Evolution (LTE) communication system, the RAN equipment (eNB) includes a baseband device and a radio frequency device. The radio frequency device can be arranged remotely from the baseband device, such as a remote radio unit. RRU) is arranged remotely relative to BBU.
RAN设备和终端之间的通信遵循一定的协议层结构。例如控制面协议层结构可以包括无线资源控制(radio resource control,RRC)层、分组数据汇聚层协议(packet data convergence protocol,PDCP)层、无线链路控制(radio link control,RLC)层、媒体接入控制(media access control,MAC)层和物理层(physical layer,PHY)等协议层的功能。用户面协议层结构可以包括PDCP层、RLC层、MAC层和物理层等协议层的功能;在一种实现中,PDCP层之上还可以包括业务数据适配(service data adaptation protocol,SDAP)层。The communication between the RAN equipment and the terminal follows a certain protocol layer structure. For example, the control plane protocol layer structure can include the radio resource control (RRC) layer, the packet data convergence protocol (PDCP) layer, the radio link control (RLC) layer, and the media interface. Access control (media access control, MAC) layer and physical layer (physical layer, PHY) and other protocol layer functions. The user plane protocol layer structure can include the functions of the PDCP layer, the RLC layer, the MAC layer, and the physical layer; in one implementation, the PDCP layer can also include a service data adaptation protocol (SDAP) layer .
这些协议层的功能可以由一个节点实现,或者可以由多个节点实现;例如,在一种演进结构中,RAN设备可以包括集中单元(centralized unit,CU)和分布单元(distributed unit,DU),多个DU可以由一个CU集中控制。如图2所示,CU和DU可以根据无线网络的协议层划分,例如PDCP层及以上协议层的功能设置在CU,PDCP以下的协议层,例如RLC层和MAC层等的功能设置在DU。The functions of these protocol layers can be implemented by one node or multiple nodes; for example, in an evolution structure, the RAN device can include a centralized unit (CU) and a distributed unit (DU), Multiple DUs can be centrally controlled by one CU. As shown in Figure 2, CU and DU can be divided according to the protocol layers of the wireless network. For example, the functions of the PDCP layer and above are set in the CU, and the protocol layers below the PDCP, such as the RLC layer and MAC layer, are set in the DU.
这种协议层的划分仅仅是一种举例,还可以在其它协议层划分,例如在RLC层划分,将RLC层及以上协议层的功能设置在CU,RLC层以下协议层的功能设置在DU;或者,在某个协议层中划分,例如将RLC层的部分功能和RLC层以上的协议层的功能设置在CU,将RLC层的剩余功能和RLC层以下的协议层的功能设置在DU。此外,也可以按其它方式划分,例如按时延划分,将处理时间需要满足时延要求的功能设置 在DU,不需要满足该时延要求的功能设置在CU。The division of this protocol layer is just an example, and it can also be divided in other protocol layers, for example, in the RLC layer, setting the functions of the RLC layer and above protocol layers in the CU, and setting the functions of the protocol layers below the RLC layer in the DU; Or, in a certain protocol layer, for example, part of the functions of the RLC layer and the functions of the protocol layer above the RLC layer are set in the CU, and the remaining functions of the RLC layer and the functions of the protocol layer below the RLC layer are set in the DU. In addition, it can also be divided in other ways, for example, by time delay. Functions that need processing time to meet the delay requirements are set in the DU, and functions that do not need to meet the delay requirements are set in the CU.
此外,射频装置可以拉远,不放在DU中,也可以集成在DU中,或者部分拉远部分集成在DU中,在此不作任何限制。In addition, the radio frequency device can be remote, not placed in the DU, can also be integrated in the DU, or part of the remote part is integrated in the DU, and there is no restriction here.
请继续参考图3,相对于图2所示的架构,还可以将CU的控制面(CP)和用户面(UP)分离,分成不同实体来实现,分别为控制面CU实体(CU-CP实体)和用户面CU实体(CU-UP实体)。Please continue to refer to Figure 3. Compared with the architecture shown in Figure 2, the control plane (CP) and the user plane (UP) of the CU can also be separated and divided into different entities for implementation, namely the control plane CU entity (CU-CP entity) ) And the user plane CU entity (CU-UP entity).
在以上网络架构中,CU产生的信令可以通过DU发送给终端,或者终端产生的信令可以通过DU发送给CU。DU可以不对该信令进行解析而直接通过协议层封装而透传给终端或CU。以下实施例中如果涉及这种信令在DU和终端之间的传输,此时,DU对信令的发送或接收包括这种场景。例如,RRC或PDCP层的信令最终会处理为PHY层的信令发送给终端,或者,由接收到的PHY层的信令转变而来。在这种架构下,该RRC或PDCP层的信令,即也可以认为是由DU发送的,或者,由DU和射频发送的。In the above network architecture, the signaling generated by the CU can be sent to the terminal through the DU, or the signaling generated by the terminal can be sent to the CU through the DU. The DU may directly pass the protocol layer encapsulation without analyzing the signaling and transparently transmit it to the terminal or CU. If the following embodiments involve the transmission of such signaling between the DU and the terminal, at this time, the sending or receiving of the signaling by the DU includes this scenario. For example, the RRC or PDCP layer signaling is finally processed as PHY layer signaling and sent to the terminal, or converted from received PHY layer signaling. Under this architecture, the RRC or PDCP layer signaling can also be considered to be sent by the DU, or sent by the DU and radio frequency.
在以上实施例中CU划分为RAN侧的网络设备,此外,也可以将CU划分为CN侧的网络设备,在此不做限制。In the above embodiment, the CU is divided into network equipment on the RAN side. In addition, the CU may also be divided into network equipment on the CN side, which is not limited here.
本申请以下实施例中的装置,根据其实现的功能,可以位于终端或网络设备。当采用以上CU-DU的结构时,网络设备可以为CU节点、或DU节点、或包括CU节点和DU节点的RAN设备。The devices in the following embodiments of the present application may be located in terminals or network devices according to the functions they implement. When the above CU-DU structure is adopted, the network device may be a CU node, or a DU node, or a RAN device including a CU node and a DU node.
在现有的通信系统中,需要相互通信的各节点之间(如不同网络设备之间,网络设备与终端之间)能够实现时钟同步。目前时钟同步的主要方式是GPS和1588。但是,对终端来说并不适用。In an existing communication system, each node that needs to communicate with each other (such as between different network devices, between network devices and terminals) can achieve clock synchronization. The main methods of clock synchronization are GPS and 1588. However, it is not applicable to the terminal.
因此,提出了一种能够适用终端的时钟同步方法。具体的是:网络设备将用于指示某个无线帧的结束位置的时刻的时间值通知终端,终端利用该时间值和传输时延进行时钟同步。Therefore, a clock synchronization method applicable to the terminal is proposed. Specifically, the network device notifies the terminal of the time value used to indicate the end position of a certain wireless frame, and the terminal uses the time value and the transmission delay to synchronize the clock.
其中,网络设备通知给终端的时间值具体指示的是网络设备发送无线帧的结束位置的时刻。例如,如图4所示,网络设备将用于指示网络设备发送无线帧M的结束位置的时刻的时间值携带在无线帧M-2中发送给终端。如,网络设备在无线帧M-2中通知终端:无线帧M的结束位置对应的时间值是2018年12月22日14时30分28秒485ms793.25us。Wherein, the time value notified by the network device to the terminal specifically indicates the time when the network device sends the end position of the wireless frame. For example, as shown in FIG. 4, the network device carries the time value used to indicate the time when the network device sends the end position of the wireless frame M in the wireless frame M-2 and sends it to the terminal. For example, the network device notifies the terminal in the wireless frame M-2 that the time value corresponding to the end position of the wireless frame M is 485ms793.25us at 14:30:28 on December 22, 2018.
终端在接收到无线帧M-2后,便可获知网络设备发送无线帧M的结束位置的时刻所对应的时间值为2018年12月22日14时30分28秒485ms793.25us。终端还可以对接收该无线帧M的结束位置的时刻进行检测。如,终端检测得到的无线帧M的结束位置的时刻为T1。After receiving the wireless frame M-2, the terminal can learn that the time value corresponding to the end position of the wireless frame M sent by the network device is 485ms793.25us at 14:30:28 on December 22, 2018. The terminal may also detect the time when the end position of the wireless frame M is received. For example, the time at which the terminal detects the end position of the wireless frame M is T1.
由于网络设备与终端之间会存在传输时延,因此,终端获得的网络设备发送无线帧M的结束位置的时刻所对应的时间值加上传输时延,应该等于终端检测得到的无线帧M的结束位置的时刻对应的时间值。这样,便可实现终端时钟与网络设备时钟的同步。也就是说,终端可以根据获得的网络设备发送无线帧M的结束位置的时刻所对应的时间值和传输时延,确定终端检测得到的无线帧M的结束位置的时刻(如上述T1)对应的时间值。如,传输时延为200us,则终端可以确定出T1这一时刻对应的时间值 为2018年12月22日14时30分28秒485ms993.25us。这样,终端与网络设备之间的时钟便同步了。Since there will be a transmission delay between the network device and the terminal, the time value corresponding to the time when the network device sends the end position of the wireless frame M obtained by the terminal plus the transmission delay should be equal to the wireless frame M detected by the terminal The time value corresponding to the end position. In this way, the terminal clock can be synchronized with the network device clock. In other words, the terminal can determine the time corresponding to the end position of the wireless frame M detected by the terminal (such as T1) corresponding to the time value and transmission delay corresponding to the time when the network device sends the end position of the wireless frame M. Time value. For example, if the transmission delay is 200us, the terminal can determine that the time value corresponding to T1 is 485ms993.25us at 14:30:28 on December 22, 2018. In this way, the clock between the terminal and the network device is synchronized.
可以看到的是,终端需要获知网络设备与终端之间的传输时延,才能够根据网络设备通知的时间值进行时钟同步。终端可以确定定时提前量(timing advance,TA),然后,将TA的二分之一作为传输时延。It can be seen that the terminal needs to know the transmission delay between the network device and the terminal before it can synchronize the clock according to the time value notified by the network device. The terminal can determine the timing advance (timing advance, TA), and then use one-half of the TA as the transmission delay.
采用上述方法进行时钟同步会存在误差。其中,这种方法所引入的误差可以参见表1所示。由表1可知,这种方法下的定时误差类型(timing error type)可以包括:基站传输帧定时(BS transmit frame timing),UE接收帧定时(UE receiving frame timing),UE传输帧定时(UE transmit frame timing(TA调整精度(TA adjustment accuracy))),TA调整粒度(TA adjustment granularity),基站接收帧定时(BS receiving frame timing)。另外,在不同的子载波间隔(sub-carrier spacing,SCS)下,同一个定时误差类型所引入的误差可能不同,总定时误差(Total timing error)也可能不同。例如,在SCS等于15kHz时,UE接收帧定时所引入的误差为[12]*64*Tc(Tc为最小时间单位),总定时误差为[38]*64*Tc。在SCS等于30kHz时,UE接收帧定时所引入的误差为[8]*64*Tc,总定时误差为[26]*64*Tc。There will be errors in clock synchronization using the above method. Among them, the error introduced by this method can be seen in Table 1. It can be seen from Table 1 that the timing error type under this method can include: base station transmission frame timing (BS transmit frame timing), UE receiving frame timing (UE receiving frame timing), UE transmission frame timing (UE transmit) frame timing (TA adjustment accuracy), TA adjustment granularity (TA adjustment granularity), base station receiving frame timing (BS receiving frame timing). In addition, under different sub-carrier spacing (SCS), the error introduced by the same timing error type may be different, and the total timing error (Total Timing Error) may also be different. For example, when the SCS is equal to 15kHz, the error introduced by the UE receiving frame timing is [12]*64*Tc (Tc is the minimum time unit), and the total timing error is [38]*64*Tc. When SCS is equal to 30kHz, the error introduced by the UE receiving frame timing is [8]*64*Tc, and the total timing error is [26]*64*Tc.
表1Table 1
Figure PCTCN2020073341-appb-000001
Figure PCTCN2020073341-appb-000001
其中,在表1中,UE传输帧定时(TA调整精度),TA调整粒度,以及基站接收帧定时均来自于TA。也就是说,终端确定出的TA误差较大。如果将TA的二分之一作为传输时延,这会使得终端确定的传输时延误差较大,从而导致终端和网络设备之间时钟的同步误差较大。Among them, in Table 1, UE transmission frame timing (TA adjustment accuracy), TA adjustment granularity, and base station receiving frame timing all come from TA. In other words, the TA error determined by the terminal is relatively large. If one-half of the TA is used as the transmission delay, this will make the transmission delay error determined by the terminal larger, resulting in a larger synchronization error of the clock between the terminal and the network device.
基于此,提供一种时钟同步方法:网络设备利用雷达或无线定位的方式,对网络设备与终端之间的距离进行测量,并将测量得到的距离或者根据测量的距离确定的网络设备与终端之间的传输时延通知给终端。这种方式下得到的传输时延相较于利用TA确定传输时延更为精确。也就是说,终端能获得较为精确的传输时延。这样,终端根据获得的较为精确的传输时延进行时钟的同步,便可使终端和网络设备之间时钟的同步误差降低。Based on this, a clock synchronization method is provided: the network device uses radar or wireless positioning to measure the distance between the network device and the terminal, and the measured distance or the determined distance between the network device and the terminal are determined based on the measured distance. The terminal is notified of the transmission delay between time. The transmission delay obtained in this way is more accurate than using TA to determine the transmission delay. In other words, the terminal can obtain a more accurate transmission delay. In this way, the terminal performs clock synchronization according to the obtained relatively accurate transmission delay, which can reduce the clock synchronization error between the terminal and the network device.
需要说明的是,本申请实施例所述的时钟同步方法可以应用工业控制网中。该工业控制网可以以上述图1所示的通信系统为依托。作为一种示例,上述通信系统可以5G NR系统,当然,上述通信系统也可以是其它通信系统,只要是工业控制网所依托 的通信系统均可,本申请实施例在此并不做具体限制。It should be noted that the clock synchronization method described in the embodiments of the present application can be applied to an industrial control network. The industrial control network can be based on the communication system shown in Figure 1 above. As an example, the above-mentioned communication system may be a 5G NR system. Of course, the above-mentioned communication system may also be another communication system, as long as it is a communication system supported by an industrial control network, and the embodiments of the present application are not specifically limited herein.
下面结合附图对本申请实施例提供的时钟同步方法进行详细介绍。The clock synchronization method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
图5为本申请实施例提供的一种时钟同步方法的流程示意图,如图5所示,该方法可以包括:FIG. 5 is a schematic flowchart of a clock synchronization method provided by an embodiment of this application. As shown in FIG. 5, the method may include:
501、第一网络设备向终端发送第一信息。501. The first network device sends first information to the terminal.
502、终端获取上述第一信息,该第一信息用于确定终端与第一网络设备的传输时延。502. The terminal obtains the foregoing first information, where the first information is used to determine the transmission delay between the terminal and the first network device.
在一些实施例中,第一信息可以为用于指示终端与第一网络设备的传输时延的信息。其中,第一信息具体的可以是传输时延本身,也可以是用于指示传输时延的指示信息。In some embodiments, the first information may be information used to indicate the transmission delay between the terminal and the first network device. The first information specifically may be the transmission delay itself, or may be indication information used to indicate the transmission delay.
本实施例中的第一信息与TA不同的是,不是通过网络设备和终端之间的信令交互获得,具有更准确表征网络设备和终端之间的距离或时延的特性。The first information in this embodiment is different from the TA in that it is not obtained through signaling interaction between the network device and the terminal, and has the characteristic of more accurately characterizing the distance or time delay between the network device and the terminal.
示例性的,第一网络设备可以获取终端与第一网络设备之间的距离。例如,第一网络设备可以通过雷达测量得到终端与第一网络设备之间的距离。第一网络设备也可以通过无线定位的方式测量得到终端与第一网络设备之间的距离。第一网络设备获得的距离可以是经过一次测量得到的结果,也可以是将多次测量得到的结果进行平均或加权平均后得到的结果。Exemplarily, the first network device may obtain the distance between the terminal and the first network device. For example, the first network device may obtain the distance between the terminal and the first network device through radar measurement. The first network device may also measure the distance between the terminal and the first network device through wireless positioning. The distance obtained by the first network device may be a result obtained after one measurement, or may be a result obtained by averaging or weighting the results obtained from multiple measurements.
第一网络设备根据获取到的距离可以生成上述第一信息。如第一网络设备根据获得的终端与第一网络设备之间的距离,可以确定出终端与第一网络设备的传输时延。The first network device may generate the foregoing first information according to the acquired distance. For example, the first network device can determine the transmission delay between the terminal and the first network device according to the obtained distance between the terminal and the first network device.
例如,第一网络设备将获取到的距离除以光速,便可确定出自身与终端的传输时延。又例如,第一网络设备与终端之间可能存在多径偏移。第一网络设备在确定与终端之间的传输时延时,也可以将多径偏移造成的传输时延考虑进来。如,以终端是位于工厂厂房中的操作臂终端为例。第一网络设备与操作臂终端之间可能会存在各种阻挡物,导致第一网络设备与操作臂终端之间出现多径偏移。因此,第一网络设备可以将获得的操作臂终端与第一网络设备之间的距离除以光速确定出传输时延1,根据信道传输模型确定出由于多径偏移造成的传输时延2。第一网络设备根据传输时延1和传输时延2便可获得操作臂终端与第一网络设备的传输时延(如,将传输时延1与传输时延2求和得到操作臂终端与第一网络设备的传输时延)。For example, the first network device divides the acquired distance by the speed of light to determine the transmission delay between itself and the terminal. For another example, there may be a multipath offset between the first network device and the terminal. When determining the transmission time delay between the first network device and the terminal, the transmission time delay caused by the multipath offset may also be taken into consideration. For example, the terminal is an operating arm terminal located in a factory building as an example. Various obstructions may exist between the first network device and the terminal of the operating arm, resulting in a multipath offset between the first network device and the terminal of the operating arm. Therefore, the first network device may divide the obtained distance between the operating arm terminal and the first network device by the speed of light to determine the transmission delay 1, and determine the transmission delay 2 due to the multipath offset according to the channel transmission model. The first network device can obtain the transmission delay between the operator arm terminal and the first network device according to the transmission delay 1 and the transmission delay 2 (for example, the transmission delay 1 and the transmission delay 2 are summed to obtain the operation arm terminal and the second The transmission delay of a network device).
其中,信道传输模型是第一网络设备确定的,其包含了不同距离(终端与第一网络设备之间的距离)下传输时延的概率分布,如第一距离下,视距直传路径的传输时延t_1,其概率为95%,非视距路径的传输时延t—2,其概率为5%;第二距离下,视距直传路径的传输时延t_3,其概率为90%,非视距路径的传输时延t_4,其概率为10%等。第一网络设备根据终端与第一网络设备之间的距离,利用该信道传输模型便可确定出由于多径偏移造成的传输时延2。如操作臂终端与第一网络设备之间的距离为第一距离,那么传输时延2等于t_1*95%与t_2*5%之和。然后,第一网络设备可以将获得的传输时延或用于指示该传输时延的指示信息通知给终端。Among them, the channel transmission model is determined by the first network device, and it includes the probability distribution of the transmission delay at different distances (the distance between the terminal and the first network device), such as the line-of-sight direct transmission path at the first distance Transmission delay t_1, the probability is 95%, the transmission delay t-2 of the non-line-of-sight path, its probability is 5%; at the second distance, the transmission delay t_3 of the line-of-sight direct path, the probability is 90% , The transmission delay t_4 of the non-line-of-sight path, the probability is 10%, etc. According to the distance between the terminal and the first network device, the first network device can use the channel transmission model to determine the transmission delay 2 caused by the multipath offset. If the distance between the operating arm terminal and the first network device is the first distance, the transmission delay 2 is equal to the sum of t_1*95% and t_2*5%. Then, the first network device may notify the terminal of the obtained transmission delay or indication information for indicating the transmission delay.
相应的,终端便可获取到传输时延或用于指示该传输时延的指示信息。如果终端获取到的是用于指示传输时延的指示信息,根据获取到用于指示该传输时延的指示信息,终端可确定出终端与第一网络设备的传输时延。Correspondingly, the terminal can obtain the transmission delay or the indication information used to indicate the transmission delay. If the terminal obtains the indication information for indicating the transmission delay, the terminal can determine the transmission delay between the terminal and the first network device according to the obtained indication information for indicating the transmission delay.
在另一些实施例中,第一信息可以为用于指示终端与第一网络设备之间的距离的信息。其中,该第一信息可以是终端与第一网络设备之间的距离本身,也可以是用于指示该距离的指示信息。也就是说,第一网络设备在获取到终端与第一网络设备之间的距离之后,可以将获得的距离或用于指示该距离的指示信息发送给终端。相应的,终端便可获取到终端与第一网络设备之间的距离或用于指示该距离的指示信息。根据获取到的终端与第一网络设备之间的距离或用于指示该距离的指示信息,终端可以确定出终端与第一网络设备的传输时延。In other embodiments, the first information may be information used to indicate the distance between the terminal and the first network device. The first information may be the distance itself between the terminal and the first network device, or may be indication information used to indicate the distance. That is, after obtaining the distance between the terminal and the first network device, the first network device may send the obtained distance or the indication information used to indicate the distance to the terminal. Correspondingly, the terminal can obtain the distance between the terminal and the first network device or the indication information used to indicate the distance. According to the acquired distance between the terminal and the first network device or the indication information used to indicate the distance, the terminal can determine the transmission delay between the terminal and the first network device.
当然,如果考虑第一网络设备与终端之间的多径偏移造成的传输时延,第一网络设备也可以将信道传输模型发送给终端。这样,终端可以根据获取的用于指示终端与第一网络设备之间的距离的信息和信道传输模型确定出终端与第一网络设备之间的传输时延。其中,第一网络设备可以将该信道传输模型和用于指示终端与第一网络设备之间的距离的信息携带在同一个信息(如第一信息)中传输给终端,也可以将信道传输模型与用于指示终端与第一网络设备之间的距离的信息携带在不同的信息中传输给终端,本实施例对此并不做具体限制。需要说明的是,在本实施例中,终端确定传输时延的具体实现可以参考第一网络设备确定传输时延的具体实现,此处不再详细赘述。Of course, if the transmission delay caused by the multipath offset between the first network device and the terminal is considered, the first network device may also send the channel transmission model to the terminal. In this way, the terminal can determine the transmission delay between the terminal and the first network device according to the acquired information indicating the distance between the terminal and the first network device and the channel transmission model. Wherein, the first network device may carry the channel transmission model and the information used to indicate the distance between the terminal and the first network device in the same information (such as the first information) and transmit it to the terminal, or the channel transmission model The information used to indicate the distance between the terminal and the first network device is carried in different information and transmitted to the terminal, which is not specifically limited in this embodiment. It should be noted that, in this embodiment, the specific implementation of determining the transmission delay by the terminal may refer to the specific implementation of determining the transmission delay by the first network device, which will not be described in detail here.
需要说明的是,上述示例是以第一信息是第一网络设备下发给终端的为例进行说明的,也就是说,上述步骤502具体的可以是终端接收来自第一网络设备的第一信息。当然,上述第一信息也可以是终端通过其他方式获得的,也即终端与第一网络设备的传输时延可以是终端通过其他方式获得的。如终端可以通过雷达测量得到自身与第一网络设备之间的距离,然后根据测量得到的距离确定出与第一网络设备的传输时延。又如,终端可以利用自身的定位模块测量得到自身与第一网络设备之间的距离,然后根据测量得到的距离确定出与第一网络设备的传输时延。再如,终端还可以根据后台的配置获取自身到第一网络设备之间的距离,然后根据获取的距离确定出与第一网络设备的传输时延。当终端通过其他方式获得第一信息时,可以不执行上述步骤501。It should be noted that the above example is described by taking the first information delivered to the terminal by the first network device as an example, that is, the above step 502 may specifically be that the terminal receives the first information from the first network device. . Of course, the foregoing first information may also be obtained by the terminal in other ways, that is, the transmission delay between the terminal and the first network device may be obtained by the terminal in other ways. For example, the terminal can obtain the distance between itself and the first network device through radar measurement, and then determine the transmission delay with the first network device according to the measured distance. For another example, the terminal may use its own positioning module to measure the distance between itself and the first network device, and then determine the transmission delay with the first network device according to the measured distance. For another example, the terminal may also obtain the distance between itself and the first network device according to the configuration of the background, and then determine the transmission delay with the first network device according to the obtained distance. When the terminal obtains the first information in other ways, the foregoing step 501 may not be performed.
503、第一网络设备通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,该为终端分配的小区中包含第一小区。503. The first network device sends a time value indicating the sending moment of the frame boundary of the radio frame to the terminal through the cell allocated for the terminal, and the cell allocated for the terminal includes the first cell.
其中,无线帧的帧边界可以是无线帧的起始位置,也可以是结束位置。另外,由于第一网络设备发送给终端的时间值所指示的是第一网络设备发送无线帧的帧边界的时刻,因此,为了便于描述,在本申请实施例中,将第一网络设备发送给终端的时间值所指示的无线帧的帧边界的时刻,称为无线帧的帧边界的发送时刻。Among them, the frame boundary of the wireless frame may be the start position or the end position of the wireless frame. In addition, since the time value sent by the first network device to the terminal indicates the moment when the first network device sends the frame boundary of the wireless frame, for ease of description, in the embodiment of the present application, the first network device is sent to The time of the frame boundary of the wireless frame indicated by the time value of the terminal is called the transmission time of the frame boundary of the wireless frame.
第一网络设备可以通过为终端分配的小区,将用于指示某个无线帧的起始位置或结束位置的发送时刻的时间值通知给终端,通知的该时间值可用于终端进行时钟同步。在一些实施例中,第一网络设备可以通过为终端分配的小区,向终端发送授时消息,该授时消息中携带指示无线帧的起始位置或结束位置的发送时刻的时间值。The first network device may notify the terminal of a time value indicating the start position or end position of a certain radio frame through the cell allocated to the terminal, and the notified time value can be used for the terminal to perform clock synchronization. In some embodiments, the first network device may send a timing message to the terminal through a cell allocated to the terminal, and the timing message carries a time value indicating the sending time of the start position or the end position of the radio frame.
例如,为终端分配的小区中包括第一小区,以无线帧的帧边界为结束位置为例。第一网络设备可以通过第一小区,在无线帧M-2中向终端发送授时消息,该授时消息中携带一时间值(如称为第一时间值),该时间值可用于指示无线帧M的结束位置的发送时刻。其中,该授时消息可以通过广播的方式,或专用信令的方式发送给终端。For example, the cells allocated to the terminal include the first cell, and the frame boundary of the radio frame is taken as an example. The first network device may send a timing message to the terminal in the radio frame M-2 through the first cell. The timing message carries a time value (for example, called the first time value), and the time value can be used to indicate the radio frame M The sending time of the ending position. Among them, the timing message can be sent to the terminal in a broadcast manner or a dedicated signaling manner.
需要说明的是,第一网络设备可以周期性的通过为终端分配的小区,向终端发送 指示无线帧的帧边界的发送时刻的时间值,用于终端进行时钟同步。第一网络设备也可以不定期的通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,如第一网络设备可以在确定自身的时钟有跳变时,通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,用于终端进行时钟同步。It should be noted that the first network device may periodically send a time value indicating the transmission time of the frame boundary of the radio frame to the terminal through the cell allocated to the terminal, for the terminal to perform clock synchronization. The first network device can also send a time value indicating the sending time of the frame boundary of the radio frame to the terminal from a cell allocated to the terminal from time to time. For example, the first network device can determine that its own clock has a jump, pass The cell allocated by the terminal sends a time value indicating the transmission time of the frame boundary of the radio frame to the terminal for the terminal to synchronize clocks.
504、终端获取第一时间值,该第一时间值用于指示第一网络设备的第一小区的无线帧的帧边界的发送时刻。504. The terminal acquires a first time value, where the first time value is used to indicate the transmission time of the frame boundary of the radio frame of the first cell of the first network device.
例如,结合上述步骤503中的示例,步骤504具体的可以是:终端通过第一小区,接收第一网络设备在无线帧M-2中发送的授时消息,以获得用于指示该第一小区的无线帧M的结束位置的发送时刻的时间值,即获得第一时间值。如第一时间值:2018年12月29日13时14分36秒587ms323.25us。For example, with reference to the example in step 503, step 504 may specifically be: the terminal receives the timing message sent by the first network device in the radio frame M-2 through the first cell, so as to obtain information indicating the first cell The time value of the sending moment of the end position of the wireless frame M is the first time value. For example, the first time value: 587ms323.25us at 13:14:36 on December 29, 2018.
505、终端根据传输时延和第一时间值,确定第一小区的无线帧的帧边界的接收时刻对应的第二时间值。505. The terminal determines the second time value corresponding to the receiving moment of the frame boundary of the radio frame of the first cell according to the transmission delay and the first time value.
其中,对于终端来说,其可以通过同步序列检测以获得某个无线帧的帧边界(起始位置或结束位置)的时刻,后续终端将在这个时刻开始接收或结束接收该无线帧,因此,为了便于描述,在本申请实施例中,将终端检测得到的无线帧的帧边界的时刻称为无线帧的帧边界的接收时刻。需要说明的是,本申请实施例中所述的时刻(如接收时刻,发送时刻)指的是时间轴上的一点。时刻对应的时间值(如接收时刻对应的时间值,发送时刻对应的时间值)指的是时间轴上这一点对应的坐标值。Among them, for the terminal, it can obtain the frame boundary (starting position or ending position) time of a certain wireless frame through synchronization sequence detection, and the subsequent terminal will start or end receiving the wireless frame at this time. Therefore, For ease of description, in the embodiment of the present application, the time at which the frame boundary of the wireless frame is detected by the terminal is referred to as the receiving time of the frame boundary of the wireless frame. It should be noted that the time (such as the receiving time, the sending time) described in the embodiments of the present application refers to a point on the time axis. The time value corresponding to the time (such as the time value corresponding to the receiving time, the time value corresponding to the sending time) refers to the coordinate value corresponding to this point on the time axis.
理论上来讲,终端检测到的无线帧的帧边界的接收时刻对应的时间值,应该等于,该无线帧的帧边界的发送时刻对应的时间值与传输时延之和,这样终端与第一网络设备的时钟便是同步的。因此,在终端获取到终端与第一网络设备的传输时延,以及用于指示第一小区的无线帧的帧边界的发送时刻的第一时间值后,将传输时延和第一时间值相加,终端便可以确定出该无线帧的帧边界的接收时刻对应的第二时间值,以实现终端与第一网络设备的时钟同步。In theory, the time value corresponding to the receiving moment of the frame boundary of the wireless frame detected by the terminal should be equal to the sum of the time value corresponding to the sending moment of the frame boundary of the wireless frame and the transmission delay, so that the terminal and the first network The clock of the device is synchronized. Therefore, after the terminal obtains the transmission delay between the terminal and the first network device, and the first time value indicating the transmission time of the frame boundary of the radio frame of the first cell, the transmission delay is compared with the first time value. Plus, the terminal can determine the second time value corresponding to the receiving moment of the frame boundary of the wireless frame, so as to realize the clock synchronization between the terminal and the first network device.
例如,结合上述步骤502和步骤504的示例,终端可以获得传输时延(如传输时延为300us)和用于指示第一小区的无线帧M的结束位置的发送时刻的第一时间值(如第一时间值:2018年12月29日13时14分36秒587ms323.25us),终端还可以进行同步序列检测以获得第一小区的该无线帧M的结束位置的接收时刻(如为T1)。终端将第一时间值和传输时延相加,便可确定出第一小区的该无线帧M的结束位置的接收时刻T1对应的第二时间值,第二时间值为2018年12月29日13时14分36秒587ms623.25us。For example, in combination with the example of step 502 and step 504, the terminal can obtain the transmission delay (for example, the transmission delay is 300us) and the first time value (for example, the transmission time indicating the end position of the radio frame M in the first cell). The first time value: 13:14:36, December 29, 2018, 587ms323.25us), the terminal can also perform synchronization sequence detection to obtain the receiving time of the end position of the radio frame M in the first cell (for example, T1) . The terminal adds the first time value and the transmission delay to determine the second time value corresponding to the receiving time T1 at the end position of the radio frame M in the first cell, and the second time value is December 29, 2018 13:14:36 587ms623.25us.
本申请实施例提供的时钟同步方法,终端能获得较为精确的传输时延。这样,终端根据获得的较为精确的传输时延进行时钟的同步,便可使终端和第一网络设备之间时钟的同步误差降低。例如,终端可以从第一网络设备处接收用于确定传输时延的第一信息。该第一信息可以是第一网络设备利用雷达或无线定位的方式,对第一网络设备与终端之间的距离进行测量,得到的距离或者根据测量的距离确定的第一网络设备与终端之间的传输时延,这种方式得到的传输时延相较于利用TA确定传输时延更为精确。With the clock synchronization method provided in the embodiments of the present application, the terminal can obtain relatively accurate transmission delay. In this way, the terminal performs clock synchronization according to the obtained relatively accurate transmission delay, which can reduce the clock synchronization error between the terminal and the first network device. For example, the terminal may receive the first information used to determine the transmission delay from the first network device. The first information may be that the first network device measures the distance between the first network device and the terminal by means of radar or wireless positioning, and the obtained distance or the distance between the first network device and the terminal determined according to the measured distance The transmission delay obtained in this way is more accurate than using TA to determine the transmission delay.
举例来说,以终端是操作臂终端为例。假定操作臂终端与第一网络设备之间的距 离是100米,操作臂终端活动范围的半径是10米。也就是说,操作臂终端与第一网络设备之间的距离是90米-110米,将该距离除以光速可得传输时延约为:0.3us-0.36us。实测得到操作臂终端与第一网络设备之间的距离是90米-110米时的传输时延是0.3us-0.4us。所以,由传输时延测量带来的误差约为0.1us(0.4us-0.36us=0.04us,约为0.1us)。而采用计算TA的方法,结合表1,以SCS等于15kHz为例,确定的传输时延的误差达到0.78us。For example, take the terminal as an operating arm terminal. Assume that the distance between the operating arm terminal and the first network device is 100 meters, and the radius of the operating arm terminal's range of motion is 10 meters. That is to say, the distance between the operating arm terminal and the first network device is 90 meters to 110 meters, and the transmission delay is about 0.3us-0.36us by dividing the distance by the speed of light. According to actual measurement, when the distance between the operating arm terminal and the first network device is 90 meters to 110 meters, the transmission delay is 0.3 us to 0.4 us. Therefore, the error caused by the measurement of the transmission delay is about 0.1 us (0.4 us-0.36 us = 0.04 us, about 0.1 us). Using the method of calculating TA, combining with Table 1, taking SCS equal to 15kHz as an example, the error of the determined transmission delay reaches 0.78us.
可选的,为了能够让终端时钟同步结果更精确,在一些实施例中,根据上述第一信息确定的传输时延的时间精度可以小于或等于上述第一时间值的时间精度。例如,上述第一时间值的时间精度为250ns,以第一信息是终端与第一网络设备的传输时延本身为例,第一网络设备发送给终端的传输时延的时间精度可以小于或等于250ns。时间精度越小,终端时钟同步的结果越精确。Optionally, in order to make the terminal clock synchronization result more accurate, in some embodiments, the time accuracy of the transmission delay determined according to the foregoing first information may be less than or equal to the time accuracy of the foregoing first time value. For example, the time accuracy of the above first time value is 250 ns. Taking the first information as the transmission delay itself between the terminal and the first network device as an example, the time accuracy of the transmission delay sent by the first network device to the terminal may be less than or equal to 250ns. The smaller the time accuracy, the more accurate the result of terminal clock synchronization.
终端可能处于移动状态。随着终端的移动,终端与第一网络设备之间的距离会发生变化,两者之间的传输时延也会随之发生变化。因此,在一些实施例中,终端可以周期性的获取上述第一信息,以便周期性的根据第一信息确定传输时延,从而进行时钟同步,以进一步的降低终端和第一网络设备之间时钟的同步误差。The terminal may be in a mobile state. As the terminal moves, the distance between the terminal and the first network device will change, and the transmission delay between the two will also change accordingly. Therefore, in some embodiments, the terminal may periodically obtain the above-mentioned first information, so as to periodically determine the transmission delay based on the first information, thereby performing clock synchronization, so as to further reduce the clock between the terminal and the first network device.的synchronization error.
示例性的,以第一信息是由第一网络设备下发给终端的为例,第一网络设备可以周期性的获取与终端之间的距离,并周期性的向终端发送上述第一信息。如第一信息是终端与第一网络设备的传输时延本身,第一网络设备可以每隔一定时间(如5分钟,30分钟等)对终端与第一网络设备之间的距离进行测量,并将根据测量结果确定的终端与第一网络设备的传输时延通知给终端。又如第一信息是终端与第一网络设备之间的距离本身,第一网络设备可以每隔一定时间对终端与第一网络设备之间的距离进行测量,并将测量结果通知给终端。这样,终端便可周期性的获取第一信息,用于时钟同步。Exemplarily, taking the first information delivered by the first network device to the terminal as an example, the first network device may periodically obtain the distance to the terminal, and periodically send the foregoing first information to the terminal. If the first information is the transmission delay itself between the terminal and the first network device, the first network device can measure the distance between the terminal and the first network device at regular intervals (such as 5 minutes, 30 minutes, etc.), and The terminal is notified of the transmission delay between the terminal and the first network device determined according to the measurement result. For another example, the first information is the distance itself between the terminal and the first network device, the first network device may measure the distance between the terminal and the first network device at regular intervals, and notify the terminal of the measurement result. In this way, the terminal can periodically obtain the first information for clock synchronization.
在其他一些实施例中,如果第一信息是由第一网络设备下发给终端的,那么,第一网络设备也可以在向终端下发了第一信息后,对终端与第一网络设备之间的距离进行监测。如果检测到终端与第一网络设备之间的距离发生了变化,则第一网络设备可以重新向终端下发第一信息,以便终端根据重新下发的第一信息确定与第一网络设备的传输时延,从而进行时钟同步。In some other embodiments, if the first information is issued by the first network device to the terminal, then the first network device may also send the first information to the terminal, and then communicate between the terminal and the first network device. The distance between them is monitored. If it is detected that the distance between the terminal and the first network device has changed, the first network device can re-issue the first information to the terminal so that the terminal can determine the transmission with the first network device according to the re-issued first information Time delay to synchronize clocks.
例如,以第一信息是终端与第一网络设备的传输时延本身为例。第一网络设备在向终端下发了传输时延1后,可以对终端与第一网络设备之间的距离进行监测。如果获取到当前时刻终端与第一网络设备之间的距离相较于下发传输时延1时终端与第一网络设备之间的距离发生了变化,第一网络设备可以根据当前时刻终端与第一网络设备之间的距离确定传输时延2,并将传输时延2通知给终端,终端可以根据传输时延2进行时钟同步。又例如,以第一信息是终端与第一网络设备之间的距离本身为例。第一网络设备在向终端下发了距离1(终端与第一网络设备之间的距离)后,可以对终端与第一网络设备之间的距离进行监测。如果获取到当前时刻终端与第一网络设备之间的距离2相较于距离1发生了变化,第一网络设备可以将距离2通知给终端,终端可以根据距离2确定传输时延,用于时钟同步。For example, take the example that the first information is the transmission delay itself between the terminal and the first network device. After the first network device has issued the transmission delay 1 to the terminal, it may monitor the distance between the terminal and the first network device. If it is obtained that the distance between the terminal and the first network device at the current moment has changed compared with the distance between the terminal and the first network device when the transmission delay is 1 time, the first network device may change the distance between the terminal and the first network device at the current moment. The distance between a network device determines the transmission delay 2 and informs the terminal of the transmission delay 2, and the terminal can perform clock synchronization according to the transmission delay 2. For another example, take the example that the first information is the distance itself between the terminal and the first network device. After the first network device sends a distance 1 (the distance between the terminal and the first network device) to the terminal, the distance between the terminal and the first network device can be monitored. If it is obtained that the distance 2 between the terminal and the first network device at the current moment has changed compared to the distance 1, the first network device can notify the terminal of the distance 2, and the terminal can determine the transmission delay according to the distance 2 for the clock Synchronize.
在另外一些实施例中,终端也可以在获取到第一信息之后,对自身的移动距离进 行监测(如,终端可以通过雷达,无线(如Wifi)定位,人工智能分析,图像分析等方式测量自身的移动距离),如果检测到移动距离大于(或等于)距离门限,说明终端与第一网络设备之间的距离可能发生了变化,两者的传输时延可能发生了变化。此时,终端可以重新获取第一信息,以便根据重新获取到的第一信息确定传输时延,从而进行时钟同步,以进一步的降低终端和第一网络设备之间时钟的同步误差。In other embodiments, the terminal can also monitor its own moving distance after acquiring the first information (for example, the terminal can measure itself through radar, wireless (such as Wifi) positioning, artificial intelligence analysis, image analysis, etc. If it is detected that the moving distance is greater than (or equal to) the distance threshold, it means that the distance between the terminal and the first network device may have changed, and the transmission delay of the two may have changed. At this time, the terminal may reacquire the first information, so as to determine the transmission delay according to the reacquired first information, so as to perform clock synchronization, so as to further reduce the clock synchronization error between the terminal and the first network device.
示例性的,以第一信息是由第一网络设备下发给终端的为例。在终端接收到第一网络设备下发的第一信息后,终端可以获取终端由获取到该第一信息的时刻开始到当前时刻的移动距离。如果获取到的移动距离大于距离门限,终端可以向第一网络设备发送第一指示信息,该第一指示信息用于指示第一网络设备重新下发第一信息。如以第一信息是终端与第一网络设备的传输时延本身,第一网络设备可以在接收到第一指示信息后,重新获取终端与第一网络设备之间的距离,并将根据获取的距离结果确定的终端与第一网络设备的传输时延重新通知给终端,终端可以根据重新获取到传输时延进行时钟同步。又如以第一信息是终端与第一网络设备之间的距离本身为例,第一网络设备可以在接收到第一指示信息后,重新获取终端与第一网络设备之间的距离,并将获取到的距离通知给终端,终端可以根据重新获取到距离确定传输时延,用于时钟同步。Exemplarily, it is taken as an example that the first information is delivered to the terminal by the first network device. After the terminal receives the first information issued by the first network device, the terminal can acquire the moving distance of the terminal from the moment when the first information is acquired to the current moment. If the acquired movement distance is greater than the distance threshold, the terminal may send first indication information to the first network device, where the first indication information is used to instruct the first network device to re-deliver the first information. If the first information is the transmission delay itself between the terminal and the first network device, the first network device may re-acquire the distance between the terminal and the first network device after receiving the first indication information, and will use the obtained The transmission delay between the terminal determined by the distance result and the first network device is notified to the terminal again, and the terminal can perform clock synchronization according to the newly acquired transmission delay. For another example, taking the first information as the distance between the terminal and the first network device itself, the first network device may re-acquire the distance between the terminal and the first network device after receiving the first indication information, and set The acquired distance is notified to the terminal, and the terminal can determine the transmission delay according to the re-acquired distance for clock synchronization.
另外,结合上述表1,可以得到的是,在进行时钟同步的过程中,UE接收帧定时也会引入误差。例如,在SCS等于15kHz时,UE接收帧定时所引入的误差为[12]*64*Tc,在SCS等于30kHz时,UE接收帧定时所引入的误差为[8]*64*Tc。也就是说,终端确定无线帧的帧边界,即检测得到的无线帧的帧边界的接收时刻会存在误差(误差可能达到390ns),这部分误差给终端和第一网络设备之间时钟同步精度也会带来影响。为了可以进一步降低终端和第一网络设备之间时钟的同步误差,进一步的,在终端根据传输时延和第一时间值,确定第一小区的无线帧的帧边界的接收时刻对应的第二时间值,即上述步骤505之前,如图6所示,该时钟同步方法还可以包括以下步骤:In addition, in conjunction with the foregoing Table 1, it can be obtained that in the process of clock synchronization, the UE receiving frame timing will also introduce errors. For example, when SCS is equal to 15kHz, the error introduced by UE receiving frame timing is [12]*64*Tc, and when SCS is equal to 30kHz, the error introduced by UE receiving frame timing is [8]*64*Tc. That is to say, the terminal determines the frame boundary of the wireless frame, that is, there will be an error (the error may reach 390ns) at the receiving time of the frame boundary of the detected wireless frame. This part of the error also affects the accuracy of the clock synchronization between the terminal and the first network device. Will have an impact. In order to further reduce the clock synchronization error between the terminal and the first network device, further, the terminal determines the second time corresponding to the receiving moment of the frame boundary of the radio frame of the first cell according to the transmission delay and the first time value. Value, that is, before step 505, as shown in FIG. 6, the clock synchronization method may further include the following steps:
601、终端获取M个小区的无线帧的帧边界的接收时刻,M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数。601. The terminal acquires the receiving moments of the frame boundaries of the radio frames of the M cells, the frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2.
602、终端根据M个小区的无线帧的帧边界的接收时刻,更新第一小区的无线帧的帧边界的接收时刻。602. The terminal updates the reception time of the frame boundary of the radio frame of the first cell according to the reception time of the frame boundary of the radio frame of the M cells.
示例性的,为了减小终端确定无线帧的帧边界时的误差,第一网络设备可以为终端分配多个小区,且这多个小区的无线帧的帧边界对齐。准确来说,从第一网络设备的角度来看,这多个小区的无线帧的帧边界是对齐的。例如,如图7中的(a)所示,第一网络设备为终端分配了两个小区,分别为小区1和小区2,且从第一网络设备的角度来看,小区1的无线帧的帧边界和小区2的无线帧的帧边界是对齐的,即小区1的无线帧M-2和小区2的无线帧M-2的帧边界对齐,小区1的无线帧M-1和小区2的无线帧M-1的帧边界对齐,小区1的无线帧M和小区2的无线帧M的帧边界对齐。Exemplarily, in order to reduce the error when the terminal determines the frame boundary of the wireless frame, the first network device may allocate multiple cells to the terminal, and the frame boundaries of the wireless frames of the multiple cells are aligned. To be precise, from the perspective of the first network device, the frame boundaries of the radio frames of the multiple cells are aligned. For example, as shown in Figure 7(a), the first network device allocates two cells to the terminal, namely cell 1 and cell 2, and from the perspective of the first network device, the radio frame of cell 1 The frame boundary is aligned with the frame boundary of the radio frame of cell 2, that is, the frame boundary of the radio frame M-2 of cell 1 and the radio frame M-2 of cell 2 is aligned, and the radio frame M-1 of cell 1 is aligned with that of cell 2. The frame boundaries of the radio frame M-1 are aligned, and the frame boundaries of the radio frame M of the cell 1 and the radio frame M of the cell 2 are aligned.
另外,第一网络设备为终端分配了多个小区后,可以向终端发送通知消息,该通知消息用于告知终端为其分配了多个小区,且这多个小区的无线帧的帧边界对齐。需要说明的是,根据协议规定,网络设备发送无线帧时,帧边界可能向前或向后偏移64Tc,但是网络设备察觉不到。也就是说,为终端分配多个小区的无线帧的帧边界对齐并不 是严格意义上的对齐,不同小区的帧边界之间存在小于64Tc的偏差,也可以认为是其帧边界是对齐的。In addition, after the first network device allocates multiple cells to the terminal, it may send a notification message to the terminal. The notification message is used to inform the terminal that multiple cells are allocated to the terminal, and the frame boundaries of the radio frames of the multiple cells are aligned. It should be noted that, according to the agreement, when a network device sends a wireless frame, the frame boundary may be shifted forward or backward by 64Tc, but the network device cannot detect it. That is to say, the frame boundary alignment of the radio frames that allocate multiple cells to the terminal is not aligned in a strict sense. There is a deviation of less than 64Tc between the frame boundaries of different cells, and it can also be considered that the frame boundaries are aligned.
这样,终端在根据传输时延和第一时间值,进行时钟同步之前,可以对这第一网络设备为其分配的多个小区均进行无线帧的帧边界检测,即终端获取这多个小区的无线帧的帧边界的接收时刻,其中包括第一小区的无线帧的帧边界的接收时刻。由于不同小区内的信号的传输路径是不完全相同的,因此,终端与第一网络设备在不同小区内的传输时延也不一定相同,这样,终端获取到的多个小区的无线帧的帧边界的接收时刻通常会不一样。因此,在获取到多个小区的无线帧的帧边界的接收时刻后,终端可以根据获取到的这多个小区的无线帧的帧边界的接收时刻,更新第一小区的无线帧的帧边界的接收时刻,以减小确定无线帧的帧边界时的误差,即获得较为准确的第一小区的无线帧的帧边界的接收时刻。在确定出较为准确的第一小区的无线帧的帧边界的接收时刻后,终端可执行上述步骤505,即根据传输时延和第一时间值,确定第一小区的无线帧的帧边界的接收时刻对应的第二时间值,以完成时钟同步。In this way, before the terminal performs clock synchronization according to the transmission delay and the first time value, it can perform frame boundary detection of radio frames on the multiple cells allocated by the first network device, that is, the terminal obtains the information of the multiple cells. The reception time of the frame boundary of the radio frame includes the reception time of the frame boundary of the radio frame of the first cell. Since the transmission paths of signals in different cells are not completely the same, the transmission delays of the terminal and the first network device in different cells are not necessarily the same. In this way, the radio frames of multiple cells obtained by the terminal are not necessarily the same. The receiving moment of the boundary is usually different. Therefore, after acquiring the frame boundaries of the radio frames of multiple cells, the terminal can update the frame boundaries of the radio frames of the first cell according to the acquired frame boundaries of the radio frames of the multiple cells. The receiving time is used to reduce the error in determining the frame boundary of the wireless frame, that is, to obtain a more accurate receiving time of the frame boundary of the wireless frame of the first cell. After determining the more accurate reception time of the frame boundary of the radio frame of the first cell, the terminal may perform the above step 505, that is, determine the reception of the frame boundary of the radio frame of the first cell according to the transmission delay and the first time value. The second time value corresponding to the time to complete clock synchronization.
需要说明的是,这里所说的无线帧与步骤504中第一时间值所指示的无线帧是同一个无线帧。例如,步骤504中第一时间值指示的是第一小区(如小区1)的无线帧M的帧边界的发送时刻,那么这里的无线帧指的是无线帧M,即终端获取的是多个小区的无线帧M的帧边界的接收时刻。It should be noted that the wireless frame mentioned here is the same wireless frame as the wireless frame indicated by the first time value in step 504. For example, the first time value in step 504 indicates the transmission time of the frame boundary of the radio frame M of the first cell (such as cell 1), then the radio frame here refers to the radio frame M, that is, the terminal obtains multiple The receiving time of the frame boundary of the radio frame M of the cell.
例如,结合上述步骤504以及图7中的(a)所示的示例,以无线帧的帧边界为结束位置为例。终端可以获取小区1的无线帧M的结束位置的接收时刻,以及小区2的无线帧M的结束位置的接收时刻。如图7中的(b)所示,终端获取到小区1的无线帧M的结束位置的接收时刻为T1,小区2的无线帧M的结束位置的接收时刻为T2。如小区1为第一小区,终端在获取到小区1的无线帧M的结束位置的接收时刻T1,以及小区2的无线帧M的结束位置的接收时刻T2后,可以取T1和T2的平均值(也可以对T1,T2进行加权平均,各个小区对应的加权值可以是第一网络设备配置给终端的),如得到的结果为T12,将T12更新为小区1的无线帧M的结束位置的接收时刻。此时,终端可以根据传输时延(如传输时延为300us)和第一时间值(如第一时间值:2018年12月29日13时14分36秒587ms323.25us),确定小区1的无线帧M的结束位置的接收时刻T12对应的第二时间值,如2018年12月29日13时14分36秒587ms623.25us,以完成时钟同步。For example, in combination with the above step 504 and the example shown in (a) in FIG. 7, the frame boundary of the wireless frame is taken as the end position as an example. The terminal can acquire the reception time of the end position of the radio frame M in the cell 1 and the reception time of the end position of the radio frame M in the cell 2. As shown in (b) in FIG. 7, the receiving time at which the terminal acquires the end position of the radio frame M in cell 1 is T1, and the receiving time at the end position of the radio frame M in cell 2 is T2. If cell 1 is the first cell, the terminal can take the average value of T1 and T2 after acquiring the receiving time T1 of the end position of the radio frame M in cell 1 and the receiving time T2 of the end position of the radio frame M in cell 2 (T1 and T2 can also be weighted and averaged, and the weighted value corresponding to each cell can be configured by the first network device to the terminal), if the result obtained is T12, update T12 to the end position of the radio frame M in cell 1 Receive the moment. At this time, the terminal can determine the cell 1 according to the transmission delay (for example, the transmission delay is 300us) and the first time value (for example, the first time value: 13:14:36, December 29, 2018, 587ms323.25us) The second time value corresponding to the receiving time T12 at the end position of the wireless frame M, such as 587ms623.25us at 13:14:36 on December 29, 2018, to complete clock synchronization.
需要特别说明的,此处的描述是假设第一网络设备为终端分配的多个小区的无线帧号是对齐的,如结合图7的示例,终端获取的是小区1的无线帧M的帧边界的接收时刻,同时获取的也是小区2的无线帧M的帧边界的接收时刻。在实际使用时,第一网络设备为终端分配的多个小区的无线帧号也可以是不对齐的,只需确保多个小区的无线帧的帧边界是对齐的即可。In particular, the description here assumes that the radio frame numbers of the multiple cells allocated by the first network device to the terminal are aligned. For example, in conjunction with the example in FIG. 7, the terminal obtains the frame boundary of the radio frame M of cell 1 At the same time, what is acquired is the receiving time of the frame boundary of the radio frame M of cell 2. In actual use, the wireless frame numbers of the multiple cells allocated by the first network device to the terminal may also be unaligned, and it is only necessary to ensure that the frame boundaries of the wireless frames of the multiple cells are aligned.
这样,终端通过获取多个小区的无线帧的帧边界的接收时刻,来确定无线帧的帧边界,可减小终端确定无线帧的帧边界时的误差,从而进一步降低了终端和第一网络设备之间时钟的同步误差。In this way, the terminal determines the frame boundary of the wireless frame by acquiring the receiving time of the frame boundary of the wireless frame of multiple cells, which can reduce the error when the terminal determines the frame boundary of the wireless frame, thereby further reducing the terminal and the first network device The synchronization error between the clocks.
另外,进一步的,如图8所示,上述步骤504终端获取第一时间值,具体的可以包括以下步骤:In addition, further, as shown in FIG. 8, in step 504, the terminal acquiring the first time value may specifically include the following steps:
801、终端接收M个小区的指示无线帧的帧边界的发送时刻的时间值。801. The terminal receives the time values indicating the sending moments of the frame boundaries of the radio frames from the M cells.
其中,所述M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数。Wherein, the frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is an integer greater than or equal to 2.
802、终端根据M个小区的时间值,确定第一时间值。802. The terminal determines a first time value according to the time values of the M cells.
示例性的,为了减小终端确定出的无线帧的接收时刻对应的第二时间值的误差,第一网络设备可以通过为终端分配的多个小区,分别向终端发送指示该小区的无线帧的帧边界的发送时刻的时间值。也就是说,上述步骤503具体的可以是,第一网络设备通过为终端分配的多个小区,向终端发送指示该小区的无线帧的帧边界的发送时刻的时间值。如,第一网络设备通过为终端分配的多个小区,向终端发送授时消息,授时消息中携带指示该小区的无线帧的帧边界的发送时刻的时间值。多个小区的无线帧的帧边界是对齐的,多个小区包括第一小区。这样,终端便可以接收多个小区的指示无线帧的帧边界的发送时刻的时间值。Exemplarily, in order to reduce the error of the second time value corresponding to the receiving time of the radio frame determined by the terminal, the first network device may send the terminal indicating the radio frame of the cell through multiple cells allocated to the terminal. The time value of the sending moment of the frame boundary. That is to say, the foregoing step 503 may specifically be that the first network device transmits to the terminal a time value indicating the transmission time of the frame boundary of the radio frame of the cell through multiple cells allocated to the terminal. For example, the first network device sends a timing message to the terminal through multiple cells allocated to the terminal, and the timing message carries a time value indicating the transmission time of the frame boundary of the radio frame of the cell. The frame boundaries of the radio frames of the multiple cells are aligned, and the multiple cells include the first cell. In this way, the terminal can receive the time value of the transmission time indicating the frame boundary of the radio frame from multiple cells.
另外,第一网络设备向终端指示的可以是多个小区的同一个无线帧的帧边界的发送时刻的时间值,也可以不是同一个无线帧的帧边界的发送时刻的时间值。如果指示的是同一个无线帧的帧边界的发送时刻的时间值,终端可以将接收到的多个小区的时间值进行平均或加权平均(其中,各个小区对应的加权值可以是第一网络设备配置给终端的),以确定出第一时间值。如果指示的不是同一个无线帧的帧边界的发送时刻的时间值,终端可以经推算得出同一个无线帧(该同一个无线帧指的是与第一小区指示的无线帧是同一个无线帧)的帧边界的发送时刻的时间值,然后再根据推算出的时间值和接收到的第一小区的指示无线帧的帧边界的发送时刻的时间值,确定出第一时间值。其中,“同一个无线帧”指的是第一网络设备发送时,时间边界对齐的无线帧,不同小区中的同一个无线帧的无线帧号可以相同,也可以不同。In addition, what the first network device indicates to the terminal may be the time value of the transmission time of the frame boundary of the same radio frame in multiple cells, or may not be the time value of the transmission time of the frame boundary of the same radio frame. If the indication is the time value of the transmission time of the frame boundary of the same radio frame, the terminal can average or weight the time values of multiple cells received (wherein, the weighted value corresponding to each cell can be the first network device Configured to the terminal) to determine the first time value. If the indication is not the time value of the sending moment of the frame boundary of the same radio frame, the terminal can calculate the same radio frame (the same radio frame refers to the same radio frame as the radio frame indicated by the first cell) ), and then determine the first time value based on the calculated time value and the received time value of the first cell indicating the transmission time of the frame boundary of the radio frame. The "same radio frame" refers to radio frames whose time boundaries are aligned when sent by the first network device. The radio frame numbers of the same radio frame in different cells may be the same or different.
例如,如图9中的(a)所示,第一网络设备为终端分配了两个小区,分别为小区1和小区2,且从第一网络设备的角度来看,小区1的无线帧的帧边界和小区2的无线帧的帧边界是对齐的,即小区1的无线帧M-2和小区2的无线帧N-2的帧边界对齐,小区1的无线帧M-1和小区2的无线帧N-1的帧边界对齐,小区1的无线帧M和小区2的无线帧N的帧边界对齐。另外,小区1的无线帧M和小区2的无线帧N是“同一个无线帧”,两者的无线帧号不同。以帧边界是结束位置为例。第一网络设备可以通过小区1(如通过小区1的无线帧M-2),向终端发送指示该小区1的无线帧M的结束位置的发送时刻的时间值1,如该时间值1为2018年12月29日13时14分36秒587ms323.25us。第一网络设备可以通过小区2(如通过小区2的无线帧N-1),向终端发送指示该小区2的无线帧N的结束位置的发送时刻的时间值2,如该时间值2为2018年12月29日13时14分36秒587ms323.50us。相应的,终端可以接收小区1的指示无线帧M的结束位置的发送时刻的时间值1,小区2的指示无线帧N的结束位置的发送时刻的时间值2。终端可以将接收到的时间值1和时间值2进行平均以确定出第一时间值。如结果为时间值12:2018年12月29日13时14分36秒587ms323.375us,该时间值12即为第一时间值。For example, as shown in Figure 9(a), the first network device allocates two cells to the terminal, namely cell 1 and cell 2, and from the perspective of the first network device, the radio frame of cell 1 The frame boundary is aligned with the frame boundary of the radio frame of cell 2, that is, the frame boundary of the radio frame M-2 of cell 1 and the radio frame N-2 of cell 2 are aligned, and the radio frame M-1 of cell 1 is aligned with that of cell 2. The frame boundaries of the radio frame N-1 are aligned, and the frame boundaries of the radio frame M of the cell 1 and the radio frame N of the cell 2 are aligned. In addition, the radio frame M of cell 1 and the radio frame N of cell 2 are "the same radio frame", and their radio frame numbers are different. Take the end position of the frame boundary as an example. The first network device may send the time value 1 indicating the sending time of the end position of the radio frame M of the cell 1 to the terminal through cell 1 (for example, through the radio frame M-2 of cell 1), for example, the time value 1 is 2018 At 13:14:36 on December 29th, 587ms323.25us. The first network device may send a time value 2 indicating the sending time of the end position of the radio frame N of the cell 2 to the terminal through cell 2 (for example, through the radio frame N-1 of cell 2), for example, the time value 2 is 2018 At 13:14:36 on December 29, 587ms323.50us. Correspondingly, the terminal may receive the time value 1 of the cell 1 indicating the transmission time of the end position of the radio frame M, and the time value 2 of the cell 2 indicating the transmission time of the end position of the radio frame N. The terminal may average the received time value 1 and time value 2 to determine the first time value. If the result is a time value of 12: 13:14:36 on December 29, 2018, 587ms323.375us, the time value of 12 is the first time value.
当然,终端确定出第一时间值后,可以根据第一时间值和传输时延(如传输时延为300us),确定小区1的无线帧M的结束位置的接收时刻对应的第二时间值,如2018 年12月29日13时14分36秒587ms623.375us,以完成时钟同步。需要说明的是,如图9中的(b)所示,此处所述的小区1的无线帧M的结束位置的接收时刻可以是图9中的(b)所示的T1,也可以是T12。T1可以是终端对时间值1所指示的无线帧M进行帧边界检测后得到的。T12可以是终端根据T1和T2得到的,T2是终端对时间值2所指示的无线帧N进行帧边界检测后得到的。确定T12的具体描述可以参考图6所示的实施例中对应内容的具体描述,此处不再详细赘述。Of course, after the terminal determines the first time value, it can determine the second time value corresponding to the receiving moment of the end position of the radio frame M in cell 1 according to the first time value and the transmission delay (for example, the transmission delay is 300us). For example, 587ms623.375us at 13:14:36 on December 29, 2018 to complete clock synchronization. It should be noted that, as shown in FIG. 9(b), the reception time of the end position of the radio frame M of cell 1 described here may be T1 as shown in FIG. 9(b), or it may be T12. T1 may be obtained after the terminal performs frame boundary detection on the wireless frame M indicated by the time value 1. T12 may be obtained by the terminal according to T1 and T2, and T2 is obtained after the terminal performs frame boundary detection on the radio frame N indicated by the time value 2. For the specific description of determining T12, reference may be made to the specific description of the corresponding content in the embodiment shown in FIG. 6, which will not be repeated here.
这样,第一网络设备在向终端通知时间值时,发送的该时间值的无线帧没有时间约束,也就是说,第一网络设备可以根据自己的调度确定向终端通知时间值的无线帧。如,第一网络设备在哪个无线帧的负荷轻,便采用哪个无线帧向终端通知时间值。In this way, when the first network device notifies the terminal of the time value, the wireless frame of the time value sent has no time constraint, that is, the first network device can determine the wireless frame that notifies the terminal of the time value according to its own schedule. For example, in which wireless frame the load of the first network device is light, which wireless frame is used to notify the terminal of the time value.
另外,正如上述步骤503中的描述,第一网络设备通过为终端分配的小区,可以采用广播或专用信令的方式向终端发送授时消息,以将该小区的指示无线帧的帧边界的发送时刻的时间值通知给终端。在小区内终端数量较多的情况下,第一网络设备通常是采用广播的方式发送授时消息的,且在这种方式下,授时消息是周期性发送的。In addition, as described in step 503 above, the first network device can send a timing message to the terminal in the form of broadcast or dedicated signaling through the cell allocated to the terminal to indicate the sending time of the frame boundary of the radio frame of the cell. The time value is notified to the terminal. In the case of a large number of terminals in the cell, the first network device usually sends the timing message in a broadcast manner, and in this manner, the timing message is sent periodically.
而当终端对自身时钟的精度要求比较高时,由于终端的时钟漂移,可能会需要第一网络设备在一个小区中更频繁地发送授时消息,也即终端需要更频繁的读取授时消息。否则,终端在一个授时消息发送周期的后半段,其自身维护的时钟可能漂移过大,超出门限,达不到对时钟精度的要求。这种情况下,第一网络设备可以通过将授时消息的发送周期减小来达到目的。但是,这会占用更多的无线资源,并且授时消息的发送周期通常就是重用系统信息的发送周期,如果减小系统信息的发送周期(或称为系统消息窗口(SI window)),会导致其它不相关的终端也被迫多次读取系统信息,显然,这是不必要的。When the terminal has relatively high requirements for the accuracy of its own clock, due to clock drift of the terminal, the first network device may be required to send timing messages in a cell more frequently, that is, the terminal needs to read timing messages more frequently. Otherwise, in the second half of a timing message sending cycle, the clock maintained by the terminal itself may drift too much, exceeding the threshold, and failing to meet the requirements for clock accuracy. In this case, the first network device can achieve the goal by reducing the sending period of the timing message. However, this will occupy more wireless resources, and the sending cycle of timing messages is usually the sending cycle of reusing system information. If the sending cycle of system information (or called the system message window (SI window)) is reduced, it will cause other Unrelated terminals are also forced to read system information multiple times, which is obviously unnecessary.
在本申请实施例中,当第一网络设备为终端分配了多个小区时,在每个小区内的授时消息的发送周期不变的情况下,第一网络设备可以保证在该多个小区中各个小区的授时消息的发送周期是错开的,即上述步骤503具体的可以包括:第一网络设备在不同的时间窗,通过为终端分配的多个小区中的每个小区,向终端发送指示无线帧的帧边界的发送时刻的时间值。这样,终端接收不同小区的指示无线帧的帧边界的发送时刻的时间值的时间窗便是不同的。也就是说,无需第一网络设备在一个小区中频繁的发送授时消息,也无需减小系统消息的发送周期,对于终端来说,其通过读取多个小区的授时消息(授时消息中携带指示无线帧的帧边界的发送时刻的时间值),便可使得读取小区的授时消息的周期减小,达到了更频繁读取授时消息的目的。In the embodiment of the present application, when the first network device allocates multiple cells to the terminal, the first network device can ensure that it is in the multiple cells if the sending period of the timing message in each cell remains unchanged. The sending period of the timing message of each cell is staggered, that is, the above step 503 may specifically include: the first network device sends an instruction wireless signal to the terminal through each of the multiple cells allocated to the terminal in different time windows. The time value of the transmission time of the frame boundary of the frame. In this way, the time window for the terminal to receive the time value of the transmission time indicating the frame boundary of the radio frame in different cells is different. That is to say, there is no need for the first network device to frequently send timing messages in a cell, and there is no need to reduce the transmission period of system messages. For the terminal, it reads the timing messages of multiple cells (the timing messages carry instructions The time value of the transmission time of the frame boundary of the wireless frame) can reduce the period of reading the timing message of the cell, and achieve the purpose of reading the timing message more frequently.
例如,如图10所示,以第一网络设备为终端分配了两个小区,分别为小区1和小区2为例。第一网络设备在时间窗1,通过小区1向终端发送授时消息,该授时消息中携带小区1的指示无线帧的帧边界的发送时刻的时间值(如图10中的时间值(time)1)。第一网络设备在时间窗2,通过小区2向终端发送授时消息,该授时消息中携带小区2的指示无线帧的帧边界的发送时刻的时间值(如图10中的时间值(time)2)。其中,时间窗1和时间窗2不同,是错开的。For example, as shown in FIG. 10, the first network device allocates two cells to the terminal, cell 1 and cell 2 respectively. The first network device sends a timing message to the terminal through cell 1 in time window 1. The timing message carries the time value of cell 1 indicating the sending moment of the frame boundary of the radio frame (time value 1 in Figure 10). ). The first network device sends a timing message to the terminal through cell 2 in time window 2. The timing message carries the time value of cell 2 indicating the sending moment of the frame boundary of the radio frame (time value (time) 2 in Figure 10). ). Among them, time window 1 and time window 2 are different and staggered.
当然,第一网络设备可以向终端发送第二指示信息,该第二指示信息用于指示终端在第一网络设备的为终端分配的多个小区的每个小区中接收该小区的指示无线帧的帧边界的发送时刻的时间值的时间窗。在上述步骤801之前,终端可以接收来自第一 网络设备的该第二指示信息。这样,终端便可根据该第二指示信息指示的时间窗,接收第一网络设备为终端分配的多个小区的时间值。例如,结合图10,第一网络设备可以向终端发送第二指示信息,该第二指示信息用于指示终端在小区1中接收授时消息的时间窗1,在小区2中接收授时消息的时间窗2。终端根据该第二指示信息指示的时间窗1和时间窗2,便可在小区1和小区2中分别接收授时消息,以获得小区1的指示无线帧的帧边界的发送时刻的时间值和小区2的指示无线帧的帧边界的发送时刻的时间值。且由于时间窗1和时间窗2是错开的,因此终端可以更频繁读取授时消息,使得同步后的时钟精度能够满足终端的要求。Of course, the first network device may send second indication information to the terminal, and the second indication information is used to instruct the terminal to receive the indication radio frame of the cell in each of the multiple cells allocated to the terminal by the first network device. The time window of the time value of the sending moment of the frame boundary. Before step 801, the terminal may receive the second indication information from the first network device. In this way, the terminal can receive the time values of the multiple cells allocated to the terminal by the first network device according to the time window indicated by the second indication information. For example, in conjunction with FIG. 10, the first network device may send second indication information to the terminal. The second indication information is used to indicate the time window 1 for the terminal to receive the timing message in cell 1, and the time window for receiving the timing message in cell 2. 2. According to the time window 1 and time window 2 indicated by the second indication information, the terminal can receive timing messages in cell 1 and cell 2 respectively, so as to obtain the time value of cell 1 indicating the transmission time of the frame boundary of the radio frame and the cell 2 indicates the time value of the transmission time of the frame boundary of the radio frame. And because the time window 1 and the time window 2 are staggered, the terminal can read the timing messages more frequently, so that the clock accuracy after synchronization can meet the requirements of the terminal.
需要说明的是,上述为终端分配的多个小区可以位于同一个网络设备,也可以位于不同的网络设备。如果多个小区位于同一个网络设备,则网络设备可以内部自行保证在该多个小区中各个小区的授时消息的发送周期是错开的。It should be noted that the multiple cells allocated to the terminal may be located in the same network device, or may be located in different network devices. If multiple cells are located in the same network device, the network device can internally ensure that the sending periods of the timing messages of each cell in the multiple cells are staggered.
如果多个小区位于不同网络设备,则网络设备之间可以通过交互,以保证在该多个小区中各个小区的授时消息的发送周期是错开的。例如,多个小区分别位于网络设备1和网络设备2。网络设备1可以向网络设备2发送位于网络设备1的各个小区指示无线帧的帧边界的发送时刻的时间值的时间窗,如网络设备1通知网络设备2,网络设备1发送授时消息的时间窗(或称为授时周期,发送周期)是Y1个无线帧,某次(如第一次)发送授时消息的时间窗是从哪个无线帧到哪个无线帧,下一次准备在无线帧号为i的无线帧上发送授时消息。网络设备2也可以向网络设备1向发送位于网络设备2的各个小区指示无线帧的帧边界的发送时刻的时间值的时间窗,如网络设备2通知网络设备1,网络设备2发送授时消息的时间窗(或称为授时周期,发送周期)是Y2个无线帧,某次(如第一次)发送授时消息的时间窗是从哪个无线帧到哪个无线帧,下一次准备在无线帧号为j的无线帧上发送授时消息。通过网络设备之间的交互,最终便可保证在为终端分配的多个小区中各个小区的授时消息的发送周期是错开的。另外,在该过程中,网络设备之间交互的信息通知给终端便可,网络设备可以读取该消息,也可以不读取。If multiple cells are located in different network devices, the network devices can interact with each other to ensure that the sending periods of the timing messages of each cell in the multiple cells are staggered. For example, multiple cells are located in network device 1 and network device 2, respectively. The network device 1 can send to the network device 2 the time window of the time value of the transmission time indicating the frame boundary of the radio frame located in each cell of the network device 1. For example, the network device 1 informs the network device 2, and the network device 1 sends the time window of the timing message (Or called the timing period, the transmission period) is Y1 wireless frames. The time window for sending a timing message for a certain time (such as the first time) is from which wireless frame to which wireless frame, and the next time the wireless frame number is i The timing message is sent on the wireless frame. The network device 2 may also send to the network device 1 the time window indicating the time value of the transmission time of the frame boundary of the wireless frame to the network device 1 in each cell of the network device 2. For example, the network device 2 notifies the network device 1, and the network device 2 sends the timing message. The time window (or called the timing period, the transmission period) is Y2 wireless frames. The time window for sending a timing message for a certain time (such as the first time) is from which wireless frame to which wireless frame. The next time the wireless frame number is The timing message is sent on the radio frame of j. Through the interaction between network devices, it is finally possible to ensure that the sending period of the timing message of each cell among the multiple cells allocated to the terminal is staggered. In addition, in this process, the information exchanged between network devices can be notified to the terminal, and the network device may or may not read the message.
在一些实施例中,根据上述图6及图8所示实施例中的描述,可以理解的是,第一网络设备可以通过为终端分配多个小区,以减小终端确定无线帧的帧边界时的误差,和/或,降低终端确定无线帧的接收时刻对应的时间值时的误差,从而降低时钟同步的误差。显然,为终端分配的小区数量越多,误差会越小,时钟同步的误差越小,终端时钟的精度会越高。但是,为终端分配的小区数量越多,终端的数据处理量越大,耗电也就越多。考虑到不同的终端,终端的不同的业务对时钟精度的要求不同,因此,第一网络设备可以根据终端的指示为终端分配合适数量的小区。即本申请实施例还可以包括:终端向第一网络设备发送第三指示信息,该第三指示信息用于第一网络设备为终端分配小区。第一网络设备可以接收来自终端的第三指示信息,根据该第三指示信息为终端分配合适数量的小区。In some embodiments, according to the description in the embodiments shown in FIG. 6 and FIG. 8, it can be understood that the first network device can allocate multiple cells to the terminal to reduce the time when the terminal determines the frame boundary of the radio frame. And/or reduce the error when the terminal determines the time value corresponding to the receiving moment of the wireless frame, thereby reducing the error of clock synchronization. Obviously, the larger the number of cells allocated to the terminal, the smaller the error will be, the smaller the clock synchronization error will be, the higher the accuracy of the terminal clock will be. However, the greater the number of cells allocated to the terminal, the greater the amount of data processed by the terminal, and the greater the power consumption. Taking into account that different terminals and different services of the terminal have different requirements for clock accuracy, the first network device may allocate an appropriate number of cells to the terminal according to the instructions of the terminal. That is, the embodiment of the present application may further include: the terminal sends third instruction information to the first network device, and the third instruction information is used by the first network device to allocate a cell to the terminal. The first network device may receive the third indication information from the terminal, and allocate a suitable number of cells to the terminal according to the third indication information.
在一些实施例中,上述第三指示信息可以为终端对终端的时钟的精度要求。例如,终端可以向第一网络设备上报自身对确定出的无线帧的帧边界的接收时刻的误差要求,如误差在XXXXns之内。第一网络设备根据该误差要求为终端分配合适数量的小区。In some embodiments, the above-mentioned third indication information may be the terminal's requirement on the accuracy of the clock of the terminal. For example, the terminal may report to the first network device its error requirement for the determined receiving moment of the frame boundary of the wireless frame, for example, the error is within XXXXns. The first network device allocates an appropriate number of cells to the terminal according to the error requirement.
在另一些实施例中,上述第三指示信息可以为终端的第一业务的标识或第一业务 的服务质量(quality of service,QoS)标识。终端的第一业务对终端的时钟的精度要求大于终端的其他业务对终端的时钟的精度要求。例如,终端可以将自身目前正在进行的所有业务中,对时钟的精度要求最高的那个业务(即第一业务)的标识,或者第一业务的QoS标识上报给第一网络设备。第一网络设备中可以存储有不同的业务标识(或不同的QoS标识)与不同的小区数量的对应关系。根据该对应关系,第一网络设备可以为终端分配合适数量的小区。另外,终端也可以将自己测量得到的一个或多个小区的标识(如频点)上报给第一网络设备,如携带在第三指示信息中上报给第一网络设备,当然,也可以携带在其他指示信息中上报给第一网络设备。这样,第一网络设备可以根据终端上报的小区的标识和终端对时钟的精度要求(或第一业务的标识或第一业务的QoS标识)为终端分配合适数量的小区。In other embodiments, the above-mentioned third indication information may be the identifier of the first service of the terminal or the quality of service (QoS) identifier of the first service. The first service of the terminal requires more precision on the clock of the terminal than other services of the terminal require on the clock of the terminal. For example, the terminal may report to the first network device the identifier of the service (that is, the first service) that requires the highest clock accuracy among all the services it is currently performing, or the QoS identifier of the first service. Correspondences between different service identifiers (or different QoS identifiers) and different cell numbers may be stored in the first network device. According to this correspondence, the first network device can allocate a suitable number of cells to the terminal. In addition, the terminal can also report one or more cell identities (such as frequency points) obtained by its own measurement to the first network device, such as carrying it in the third indication information and reporting it to the first network device. Of course, it can also be carried in Other instructions are reported to the first network device. In this way, the first network device can allocate an appropriate number of cells to the terminal according to the cell identification reported by the terminal and the terminal's clock accuracy requirements (or the identification of the first service or the QoS identification of the first service).
在其他一些实施例中,第一网络设备为终端分配了合适数量的小区(如为终端分配了N个小区,N为大于或等于2的整数)的同时,也可以配置信号强度门限给终端。终端在利用第一网络设备为其分配的小区进行时钟同步,如确定无线帧的帧边界时,可以先对这N个小区的信号强度进行监测,如果这N个小区中,某个或某几个小区的信号强度低于配置的信号强度门限,则终端可以不使用这些小区进行时钟同步,如不使用这些小区来辅助确定无线帧的帧边界的接收时刻,也就是说,终端可以使用M个小区(M小于或等于N)来辅助确定无线帧的帧边界的接收时刻。需要说明的是,所述的信号强度门限可以是参考信号接收功率(reference signal received power,RSRP)、参考信号接收质量(reference signal received quality,RSRQ)、接收信号强度指示(received signal strength indicator,RSSI)中的任意一个或多个。第一网络设备配置给终端的信号强度门限可以是一个,也可以是多个。例如,对于不同频带的小区配置同一个信号强度门限。又例如,对于不同频带的小区配置不同的信号强度门限,如,频带大于6GHz的小区配置一个信号强度门限,频带小于6GHz的小区配置另一个信号强度门限。In some other embodiments, the first network device allocates a suitable number of cells to the terminal (for example, allocates N cells to the terminal, where N is an integer greater than or equal to 2), and can also configure a signal strength threshold to the terminal. The terminal uses the first network device to synchronize the clocks of the cells allocated to it. For example, when determining the frame boundary of the radio frame, it can first monitor the signal strength of these N cells. If one or a few of these N cells are If the signal strength of each cell is lower than the configured signal strength threshold, the terminal may not use these cells for clock synchronization. If these cells are not used to assist in determining the receiving time of the frame boundary of the radio frame, that is, the terminal may use M The cell (M is less than or equal to N) is used to assist in determining the receiving moment of the frame boundary of the radio frame. It should be noted that the signal strength threshold may be reference signal received power (RSRP), reference signal received quality (RSRQ), received signal strength indicator (RSSI) ) Any one or more of them. The signal strength threshold configured by the first network device for the terminal may be one or multiple. For example, configure the same signal strength threshold for cells of different frequency bands. For another example, different signal strength thresholds are configured for cells with different frequency bands, for example, a cell with a frequency band greater than 6 GHz is configured with a signal strength threshold, and a cell with a frequency band less than 6 GHz is configured with another signal strength threshold.
在另外一些实施例中,第一网络设备在为终端分配小区时,也可以相较于终端的需求多分配几个。示例性的,第一网络设备根据上述第三指示信息,确定出需要为终端分配的小区的数量为X,但第一网络设备为该终端分配N个小区(N大于或等于X)。例如,根据终端对时钟的精度要求,第一网络设备确定出只需要使用三个小区便可以满足终端的要求了,但第一网络设备为终端分配五个小区。终端在进行时钟同步,如确定无线帧的帧边界时,可以使用该五个小区进行无线帧的帧边界的确定,也可以根据信号强度,选择信号最强的三个小区进行无线帧的帧边界的确定。当然,选择出的这三个小区的信号强度都大于信号强度门限。In some other embodiments, when the first network device allocates cells to the terminal, it may also allocate more cells than the requirements of the terminal. Exemplarily, the first network device determines that the number of cells that need to be allocated to the terminal is X according to the foregoing third indication information, but the first network device allocates N cells (N greater than or equal to X) for the terminal. For example, according to the terminal's requirements for clock accuracy, the first network device determines that only three cells are needed to meet the requirements of the terminal, but the first network device allocates five cells to the terminal. When the terminal is performing clock synchronization, such as determining the frame boundary of a radio frame, the five cells can be used to determine the frame boundary of the radio frame, or the three cells with the strongest signal can be selected for the frame boundary of the radio frame according to the signal strength. Of ok. Of course, the signal strengths of the three selected cells are all greater than the signal strength threshold.
另外,需要说明的是,在本申请实施例中,第一网络设备为终端分配的多个(如N个)小区,可以仅用于终端进行无线帧的帧边界检测和/或确定无线帧的接收时刻对应的时间值,即仅用于进行时钟同步,而不做其他用途,如不用于终端进行载波聚合。当然,也可以用于终端进行载波聚合,本申请实施例在此并不做具体限制。且,为终端分配的多个小区可以是在物理上共站的,也可以是不共站的。只需确保这多个小区的无线帧的帧边界对齐,即信号发出时的时间是对齐的即可。当然,这多个小区的无线帧的帧边界的差值小于[2]*64*Tc也是可以的,也能降低终端与第一网络设备的时钟 同步误差。In addition, it should be noted that, in the embodiment of the present application, the multiple (such as N) cells allocated by the first network device to the terminal may only be used for the terminal to perform frame boundary detection of radio frames and/or determine radio frame boundaries. The time value corresponding to the receiving moment is only used for clock synchronization, and not for other purposes, such as not being used for the terminal to perform carrier aggregation. Of course, it can also be used for the terminal to perform carrier aggregation, which is not specifically limited in the embodiment of the present application. Moreover, the multiple cells allocated to the terminal may be physically co-sited or not co-sited. It is only necessary to ensure that the frame boundaries of the radio frames of the multiple cells are aligned, that is, the time when the signal is sent is aligned. Of course, it is also possible that the difference between the frame boundaries of the radio frames of the multiple cells is smaller than [2]*64*Tc, which can also reduce the clock synchronization error between the terminal and the first network device.
需要说明的是,上述确定无线帧的帧边界的过程(即步骤601和步骤602),以及确定第一小区的无线帧的帧边界的发送时刻对应的时间值的过程(即步骤801和步骤802),与上述确定终端与第一网络设备之间的传输时延的过程,三者之间并不相互依赖,可独立执行。也就是说,在具体实现时,可以采用TA的方法确定终端与第一网络设备之间的传输时延(如获取TA,传输时延等于TA的二分之一),但采用上述步骤601和步骤602确定无线帧的帧边界。或者,可以采用TA的方法确定终端与第一网络设备之间的传输时延,但采用上述步骤801和步骤802确定无线帧的帧边界的发送时刻对应的时间值。本申请实施例在此并不做具体限制。当然,也可以同时采用本申请实施例中所述的过程确定传输时延,确定无线帧的帧边界,并确定无线帧的帧边界的发送时刻对应的时间值,这样,可以使得终端与第一网络设备之间的时钟的同步误差更小。It should be noted that the process of determining the frame boundary of the radio frame (i.e., step 601 and step 602), and the process of determining the time value corresponding to the sending moment of the frame boundary of the radio frame of the first cell (i.e., step 801 and step 802) ), and the foregoing process of determining the transmission delay between the terminal and the first network device, the three are not dependent on each other and can be performed independently. That is to say, in specific implementation, the TA method can be used to determine the transmission delay between the terminal and the first network device (for example, to obtain the TA, the transmission delay is equal to one-half of the TA), but the above steps 601 and Step 602 determines the frame boundary of the radio frame. Alternatively, the TA method may be used to determine the transmission delay between the terminal and the first network device, but the above steps 801 and 802 are used to determine the time value corresponding to the sending moment of the frame boundary of the wireless frame. The embodiments of the application do not make specific limitations here. Of course, the process described in the embodiments of this application can also be used at the same time to determine the transmission delay, determine the frame boundary of the wireless frame, and determine the time value corresponding to the transmission moment of the frame boundary of the wireless frame. In this way, the terminal and the first The clock synchronization error between network devices is smaller.
在终端与第一网络设备之间的时钟同步后,如果终端需要切换到第二网络设备,目前,需要终端通过随机接入过程获得TA,才能利用该TA与第二网络设备进行数据传输。在本申请实施例中,无需终端做随机接入,便可获得TA。After the clock between the terminal and the first network device is synchronized, if the terminal needs to switch to the second network device, currently, the terminal is required to obtain the TA through a random access process before the TA can be used for data transmission with the second network device. In the embodiment of this application, the TA can be obtained without the terminal performing random access.
在一些实施例中,进一步的,如图11所示,该方法还可以包括以下步骤:In some embodiments, further, as shown in FIG. 11, the method may further include the following steps:
1101、第一网络设备向第二网络设备发送切换请求。1101. The first network device sends a handover request to the second network device.
其中,终端在第一网络设备的小区(如小区1)中驻留时,可以对与小区1相邻的小区的信号质量进行测量,还可以将测量结果携带在测量报告中上报给第一网络设备。第一网络设备接收到终端发送的测量报告后,如果确定出测量报告中指示的第二网络设备的第二小区的信号质量好时,可以向第二网络设备发送切换请求。该切换请求用于请求第二网络设备,终端将切换到该第二网络设备的第二小区。Wherein, when the terminal is camped in a cell of the first network device (such as cell 1), it can measure the signal quality of a cell adjacent to cell 1, and can also carry the measurement result in a measurement report and report it to the first network equipment. After receiving the measurement report sent by the terminal, the first network device may send a handover request to the second network device if it determines that the signal quality of the second cell of the second network device indicated in the measurement report is good. The handover request is used to request the second network device, and the terminal will switch to the second cell of the second network device.
1102、第二网络设备向第一网络设备发送切换响应,该切换响应中包括第三时间值,该第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻。1102. The second network device sends a handover response to the first network device, where the handover response includes a third time value, and the third time value is used to indicate the sending moment of the subframe boundary of the second cell of the second network device.
第二网络设备在接收到第一网络设备发送的切换请求后,可以向第一网络设备返回切换响应。在本申请实施例中,该切换响应中可以携带用于指示第二网络设备的第二小区的子帧边界的发送时刻的第三时间值。第二网络设备可以将第二小区(终端将要切换到的目标小区)的子帧边界的精准时间通知给第一网络设备。该子帧边界可以是子帧的起始位置,也可以是结束位置。例如,以子帧边界是起始位置为例。第二网络设备可以通过X2接口,通知第一网络设备,第二网络设备的第二小区的子帧的起始位置的时间值是在2018年12月29日14时38分49秒306ms 405us。其中,该第三时间值可以是一个显式(或明文)时间值,也即第一网络设备可读,也可以是一个隐式时间值,如携带在一个容器(container)中,也即第一网络设备不可读。After receiving the switching request sent by the first network device, the second network device may return a switching response to the first network device. In the embodiment of the present application, the handover response may carry a third time value used to indicate the sending moment of the subframe boundary of the second cell of the second network device. The second network device may notify the first network device of the precise time of the subframe boundary of the second cell (the target cell to which the terminal will be handed over). The subframe boundary can be the start position or the end position of the subframe. For example, take the subframe boundary as the starting position. The second network device may notify the first network device through the X2 interface that the time value of the start position of the subframe of the second cell of the second network device is 306ms 405us at 14:38:49 on December 29, 2018. Wherein, the third time value may be an explicit (or plaintext) time value, which is readable by the first network device, or an implicit time value, such as being carried in a container, that is, the first A network device is unreadable.
1103、第一网络设备向终端发送切换命令,切换命令中包括上述第三时间值。1103. The first network device sends a handover command to the terminal, and the handover command includes the foregoing third time value.
第一网络设备在接收到上述第三时间值后,可以将该第三时间值携带在切换命令中发送给终端。After receiving the third time value, the first network device may carry the third time value in the handover command and send it to the terminal.
1104、终端接收第一网络设备发送的第三时间值。1104. The terminal receives the third time value sent by the first network device.
1105、终端在切换到上述第二小区后,获取第四时间值,该第四时间值用于指示第二小区的子帧边界的接收时刻。1105. After switching to the above-mentioned second cell, the terminal obtains a fourth time value, where the fourth time value is used to indicate the receiving moment of the subframe boundary of the second cell.
1106、终端根据第三时间值和第四时间值,确定终端与第二网络设备的传输时延。1106. The terminal determines the transmission delay between the terminal and the second network device according to the third time value and the fourth time value.
终端可以在切换到第二网络设备的第二小区后,与第二网络设备进行下行同步。在下行同步的这段时间内,终端内部的时钟继续运行,且在这段时间内可以不考虑第二网络设备和终端的时钟漂移。终端可以通过检测同步序列识别出子帧。另外,对应自己维护的时钟,终端可以获取到识别出的子帧的子帧边界(如起始位置)的接收时刻对应的时间值(即第四时间值)是2018年12月29日14时38分49秒310ms705us。The terminal may perform downlink synchronization with the second network device after switching to the second cell of the second network device. During the period of downlink synchronization, the internal clock of the terminal continues to run, and during this period of time, the clock drift of the second network device and the terminal may not be considered. The terminal can identify the subframe by detecting the synchronization sequence. In addition, corresponding to the clock maintained by itself, the terminal can obtain the time value (that is, the fourth time value) corresponding to the receiving time of the identified subframe boundary (such as the starting position) of the subframe is 14:00 on December 29, 2018 38 minutes 49 seconds 310ms705us.
并且,终端根据接收到的第三时间值:2018年12月29日14时38分49秒306ms405us,可以推断出第二小区的其它子帧的起始位置的发送时刻对应的时间值(相邻子帧之间的间隔是1ms)分别为:2018年12月29日14时38分49秒306ms405us,2018年12月29日14时38分49秒307ms405us,2018年12月29日14时38分49秒308ms405us,2018年12月29日14时38分49秒309ms405us,2018年12月29日14时38分49秒310ms405us等。终端从这些时间值中选出距离检测到的第四时间值最近的时间值,即“2018年12月29日14时38分49秒310ms405us”。终端可以认为这个时间值,就是自己检测到的子帧的子帧边界(起始位置)的发送时刻对应的时间值。可以得到的是,该子帧的起始位置的发送时刻对应的时间值是“2018年12月29日14时38分49秒310ms405us”,该子帧的起始位置的接收时刻的时间值是“2018年12月29日14时38分49秒310ms705us”。由于第一网络设备和终端的时钟是精准同步的,所以,终端可以确定出终端与第二网络设备之间的下行传输时延是300us。Furthermore, according to the received third time value: 306ms405us at 14:38:49 on December 29, 2018, the terminal can infer the time value corresponding to the sending moment of the start position of the other subframes of the second cell (adjacent The interval between subframes is 1ms) respectively: 306ms405us at 14:38:49 on December 29, 2018, 307ms405us at 14:38:49 on December 29, 2018, and 14:38 on December 29, 2018 49 seconds 308ms405us, December 29, 2018 14:38:49 seconds 309ms405us, December 29, 2018 14:38:49 seconds 310ms405us, etc. The terminal selects the time value closest to the detected fourth time value from these time values, that is, "310ms405us at 14:38:49, December 29, 2018". The terminal can consider this time value as the time value corresponding to the sending moment of the subframe boundary (starting position) of the subframe detected by itself. It can be obtained that the time value corresponding to the sending moment of the starting position of the subframe is "December 29, 2018 14:38:49 310ms405us", and the time value of the receiving moment of the starting position of the subframe is "310ms705us at 14:38:49 on December 29, 2018". Since the clocks of the first network device and the terminal are accurately synchronized, the terminal can determine that the downlink transmission delay between the terminal and the second network device is 300 us.
或者,终端也可以根据这些时间值得到可能的传输时延,如,如果终端认为发送时刻对应的时间值为“2018年12月29日14时38分49秒310ms405us”,根据接收时刻的时间值是“2018年12月29日14时38分49秒310ms705us”可以确定出下行传输时延是300us;如果终端认为发送时刻对应的时间值为:“2018年12月29日14时38分49秒309ms405us”,则根据接收时刻的时间值是“2018年12月29日14时38分49秒310ms705us”可以确定出下行传输时延是1300us;如果终端认为发送时刻对应的时间值为“2018年12月29日14时38分49秒308ms405us”,根据接收时刻的时间值是“2018年12月29日14时38分49秒310ms705us”可以确定出下行传输时延是2300us;如果终端认为发送时刻对应的时间值为“2018年12月29日14时38分49秒307ms405us”,根据接收时刻的时间值是“2018年12月29日14时38分49秒310ms705us”可以确定出下行传输时延是3300us;如果终端认为发送时刻对应的时间值为“2018年12月29日14时38分49秒306ms405us”,根据接收时刻的时间值是“2018年12月29日14时38分49秒310ms705us”可以确定出下行传输时延是4300us。另外,终端根据其他信息,如已知终端与第二网络设备的传输时延不可能是1300us,2300us,3300us,4300us,则终端可确定出传输时延300us对应的时间值,即“2018年12月29日14时38分49秒310ms405us”,就是自己检测到的子帧的子帧边界(起始位置)的发送时刻对应的时间值。从而确定出终端与第二网络设备的传输时延是300us。Alternatively, the terminal can also obtain the possible transmission delay based on these time values. For example, if the terminal thinks that the time value corresponding to the sending time is "December 29, 2018 14:38:49, 310ms405us", according to the time value of the receiving time It is “310ms705us at 14:38:49, December 29, 2018” to determine that the downlink transmission delay is 300us; if the terminal thinks that the time value corresponding to the sending time is: “14:38:49, December 29, 2018 309ms405us”, then according to the time value of the receiving time as “310ms705us at 14:38:49 on December 29, 2018”, it can be determined that the downlink transmission delay is 1300us; if the terminal thinks that the time value corresponding to the sending time is “December 2018 14:38:49 on the 29th, 308ms405us", according to the time value of the receiving time is "310ms705us at 14:38:49 on December 29, 2018", it can be determined that the downlink transmission delay is 2300us; if the terminal thinks that the sending time corresponds The time value of “December 29, 2018 14:38:49 seconds 307ms405us”, according to the time value of the receiving time is “December 29, 2018 14:38:49 seconds 310ms705us”, it can be determined that the downlink transmission delay is 3300us; if the terminal thinks that the time value corresponding to the sending time is "306ms405us at 14:38:49 on December 29, 2018", the time value at the receiving time is "310ms705us at 14:38:49 on December 29, 2018" It can be determined that the downlink transmission delay is 4300us. In addition, according to other information, if the terminal knows that the transmission delay between the terminal and the second network device cannot be 1300us, 2300us, 3300us, or 4300us, the terminal can determine the time value corresponding to the transmission delay 300us, that is, "December 2018 14:38:49 on the 29th, 310ms405us" is the time value corresponding to the transmission time of the subframe boundary (starting position) of the subframe detected by itself. Therefore, it is determined that the transmission delay between the terminal and the second network device is 300 us.
1107、终端根据终端与第二网络设备的传输时延进行数据传输。1107. The terminal performs data transmission according to the transmission delay between the terminal and the second network device.
在终端获取到下行传输时延后,将下行传输时延乘以2便可得到TA,从而在终端有数据需要传输时,便可利用该TA进行数据传输。After the terminal obtains the downlink transmission delay, the downlink transmission delay is multiplied by 2 to obtain the TA, so that when the terminal has data to transmit, the TA can be used for data transmission.
在另一些实施例中,进一步的,如图12所示,该方法还可以包括以下步骤:In some other embodiments, further, as shown in FIG. 12, the method may further include the following steps:
1201、第一网络设备向第二网络设备发送切换请求。1201. The first network device sends a handover request to the second network device.
1202、第二网络设备向第一网络设备发送切换响应。1202. The second network device sends a handover response to the first network device.
1203、第一网络设备向终端发送切换命令。1203. The first network device sends a handover command to the terminal.
1204、终端在切换到第二网络设备的第二小区后,获取第二小区的系统帧号(system frame number,SFN),接收第二网络设备的发送的第五时间值,该第五时间值用于指示第二小区的无线帧的帧边界的发送时刻。1204. After switching to the second cell of the second network device, the terminal obtains the system frame number (SFN) of the second cell, and receives the fifth time value sent by the second network device, and the fifth time value It is used to indicate the transmission time of the frame boundary of the radio frame of the second cell.
如图11所示的实施例中的描述,在第一网络设备确定出第二网络设备的第二小区的信号质量好,终端可以切换到该第二网络设备的第二小区。区别于图11所示的实施例,终端在切换到第二小区后,可以读取MIB消息以获得第二小区的SFN,并接收第二网络设备发送的用于指示第二小区的无线帧N的帧边界的发送时刻的第五时间值。如第二网络设备向终端发送授时消息,该授时消息中指示“SFN=N的无线帧的结束位置的发送时刻的时间值(即第五时间值)是2018年12月29日14时38分49秒302ms405us”。授时消息可以通过广播或专用信令的方式发送,此处不作具体限定。As described in the embodiment shown in FIG. 11, when the first network device determines that the signal quality of the second cell of the second network device is good, the terminal can switch to the second cell of the second network device. Different from the embodiment shown in FIG. 11, after the terminal switches to the second cell, it can read the MIB message to obtain the SFN of the second cell, and receive the radio frame N sent by the second network device to indicate the second cell. The fifth time value of the sending moment of the frame boundary. For example, the second network device sends a timing message to the terminal, and the time value (that is, the fifth time value) of the sending time of the end position of the radio frame with "SFN=N" in the timing message is 14:38 on December 29, 2018 49 seconds 302ms405us". The timing message can be sent through broadcast or dedicated signaling, which is not specifically limited here.
1205、终端根据上述SFN,获取第六时间值,该第六时间值用于指示第二小区的无线帧的帧边界的接收时刻。1205. The terminal obtains a sixth time value according to the foregoing SFN, where the sixth time value is used to indicate the receiving moment of the frame boundary of the radio frame of the second cell.
终端可以通过检测同步序列,确定出该无线帧N的帧边界(如结束位置)的接收时刻,并根据自己维护的时钟,确定该接收时刻对应的时间值(即第六时间值)是“2018年12月29日14时38分49秒302ms705us”。The terminal can determine the receiving time of the frame boundary (such as the end position) of the wireless frame N by detecting the synchronization sequence, and determine that the time value corresponding to the receiving time (ie, the sixth time value) is "2018 302ms705us at 14:38:49 on December 29th
1206、终端根据第五时间值和第六时间值,确定终端与第二网络设备的传输时延。1206. The terminal determines the transmission delay between the terminal and the second network device according to the fifth time value and the sixth time value.
根据上述第五时间值“2018年12月29日14时38分49秒302ms 405us”和第六时间值“2018年12月29日14时38分49秒302ms705us”,终端可以确定出终端与第二网络设备之间的下行传输时延是300us。According to the above fifth time value "December 29, 2018 14:38:49 seconds 302ms 405us" and the sixth time value "December 29, 2018 14:38:49 seconds 302ms705us", the terminal can determine the terminal and the first The downlink transmission delay between the two network devices is 300 us.
1207、终端根据终端与第二网络设备的传输时延进行数据传输。1207. The terminal performs data transmission according to the transmission delay between the terminal and the second network device.
在终端获取到下行传输时延后,将下行传输时延乘以2便可得到TA,从而在终端有数据需要传输时,便可利用该TA进行数据传输。After the terminal obtains the downlink transmission delay, the downlink transmission delay is multiplied by 2 to obtain the TA, so that when the terminal has data to transmit, the TA can be used for data transmission.
这样一来,采用图11或图12所示的方法,终端在切换到目标小区(如上述第二网络设备的第二小区)后,无需做随机接入,通过第二网络设备通知的子帧边界的发送时刻的精准时间,或通过读取目标小区的授时消息便可获得TA,进而在目标小区进行数据传输。In this way, using the method shown in FIG. 11 or FIG. 12, the terminal does not need to perform random access after switching to the target cell (such as the second cell of the second network device). The subframe notified by the second network device The precise time of the sending moment of the boundary or the TA can be obtained by reading the timing message of the target cell, and then the data can be transmitted in the target cell.
本申请实施例还提供用于实现以上任一种方法的装置,例如,提供一种时钟同步装置包括用以实现以上任一种方法中终端所执行的各个步骤的单元(或手段)。The embodiments of the present application also provide a device for implementing any of the above methods. For example, a clock synchronization device is provided that includes units (or means) for implementing each step performed by the terminal in any of the above methods.
例如:时钟同步装置可以包括:获取单元,如执行上述方法中的步骤502获取第一信息,步骤504获取第一时间值,步骤601获取M个小区的无线帧的帧边界的接收时刻,步骤1105获取第四时间值等。For example, the clock synchronization device may include: an obtaining unit, such as performing step 502 in the above method to obtain the first information, step 504 to obtain the first time value, step 601 to obtain the receiving time of frame boundaries of radio frames of M cells, step 1105 Get the fourth time value, etc.
确定单元,如执行上述方法中的步骤505根据传输时延和第一时间值,确定第一小区的无线帧的所述帧边界的接收时刻对应的第二时间值,步骤802根据M个小区的时间值确定第一时间值,步骤1106确定终端与第二网络设备的传输时延等。The determining unit, such as performing step 505 in the above method, determines the second time value corresponding to the receiving moment of the frame boundary of the radio frame of the first cell according to the transmission delay and the first time value, and step 802 determines the second time value corresponding to the frame boundary of the radio frame of the first cell. The time value determines the first time value, and step 1106 determines the transmission delay between the terminal and the second network device.
时钟同步装置还可以包括:发送单元,如执行向第一网络设备发送第一指示信息, 以指示第一网络设备重新下发第一信息的操作等。The clock synchronization apparatus may further include: a sending unit, for example, performing an operation of sending the first instruction information to the first network device to instruct the first network device to re-issue the first information.
更新单元,如执行步骤602根据M个小区的无线帧的帧边界的接收时刻,更新第一小区的无线帧的帧边界的接收时刻。The updating unit, such as performing step 602, updates the receiving time of the frame boundary of the radio frame of the first cell according to the receiving time of the frame boundary of the radio frame of the M cells.
接收单元,如执行步骤801接收M个小区的指示无线帧的所述帧边界的发送时刻的时间值,步骤1104接收第三时间值等。The receiving unit, for example, performs step 801 to receive the time value of the sending time indicating the frame boundary of the radio frame of the M cells, and step 1104 receives the third time value and so on.
传输单元,如执行步骤1107根据时钟同步装置与第二网络设备的传输时延进行数据传输。The transmission unit, such as performing step 1107, performs data transmission according to the transmission delay between the clock synchronization device and the second network device.
再如,还提供另一种时钟同步装置,包括用以实现以上任一种方法中网络设备所执行的各个步骤的单元(或手段)。如上述第一网络设备,第二网络设备。For another example, another clock synchronization device is also provided, including units (or means) for implementing each step performed by the network device in any of the above methods. Such as the first network device and the second network device described above.
例如:时钟同步装置可以包括:发送单元,如执行上述方法中的步骤501向终端发送第一信息,步骤503通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,步骤1101、步骤1201向第二网络设备发送切换请求,步骤1103、步骤1203向终端发送切换命令等。For example: the clock synchronization device may include: a sending unit, such as performing step 501 in the above method to send the first information to the terminal, and step 503 sends the terminal a time value indicating the sending time of the frame boundary of the radio frame through the cell allocated for the terminal. , Step 1101, Step 1201 send a switching request to the second network device, Step 1103, Step 1203 send a switching command to the terminal, etc.
时钟同步装置还可以包括:获取单元,如执行获取终端与时钟同步装置之间的距离的操作等。接收单元,如执行接收来自终端的第三指示信息的操作等。分配单元,如执行为终端分配合适数量小区的操作等。The clock synchronization device may further include: an acquiring unit, such as performing an operation of acquiring the distance between the terminal and the clock synchronization device. The receiving unit, for example, performs an operation of receiving the third instruction information from the terminal. The allocation unit, for example, performs the operation of allocating an appropriate number of cells to the terminal.
应理解以上装置中单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。It should be understood that the division of the units in the above device is only a division of logical functions, and may be fully or partially integrated into one physical entity in actual implementation, or may be physically separated. In addition, the units in the device can all be implemented in the form of software called by processing elements; they can also be implemented in the form of hardware; part of the units can also be implemented in the form of software called by the processing elements, and some of the units can be implemented in the form of hardware.
例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以成为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。For example, each unit can be a separately set up processing element, or it can be integrated in a certain chip of the device for implementation. In addition, it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Features. In addition, all or part of these units can be integrated together or implemented independently. The processing element described here can also become a processor, which can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above units may be implemented by an integrated logic circuit of hardware in a processor element or implemented in a form of being called by software through a processing element.
在一个例子中,以上任一装置中的单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA),或这些集成电路形式中至少两种的组合。In an example, the unit in any of the above devices may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASIC), or, one or Multiple microprocessors (digital singnal processors, DSP), or, one or more field programmable gate arrays (FPGA), or a combination of at least two of these integrated circuits.
再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。For another example, when the unit in the device can be implemented in the form of a processing element scheduler, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call programs. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
以上用于接收的单元是一种该装置的接口电路,用于从其它装置接收信号。例如,当该装置以芯片的方式实现时,该接收单元是该芯片用于从其它芯片或装置接收信号的接口电路。以上用于发送的单元是一种该装置的接口电路,用于向其它装置发送信号。例如,当该装置以芯片的方式实现时,该发送单元是该芯片用于向其它芯片或装 置发送信号的接口电路。The above receiving unit is an interface circuit of the device for receiving signals from other devices. For example, when the device is implemented as a chip, the receiving unit is an interface circuit used by the chip to receive signals from other chips or devices. The above unit for sending is an interface circuit of the device for sending signals to other devices. For example, when the device is implemented as a chip, the sending unit is an interface circuit used by the chip to send signals to other chips or devices.
请参考图13,其为本申请实施例提供的一种网络设备的结构示意图。其可以为以上实施例中的网络设备,用于实现以上实施例中网络设备的操作。Please refer to FIG. 13, which is a schematic structural diagram of a network device provided by an embodiment of this application. It may be the network device in the above embodiment, and is used to implement the operation of the network device in the above embodiment.
如图13所示,该网络设备包括:天线1301、射频装置1302、基带装置1303。天线1301与射频装置1302连接。在上行方向上,射频装置1302通过天线1301接收终端发送的信息,将终端发送的信息发送给基带装置1303进行处理。在下行方向上,基带装置1303对终端的信息进行处理,并发送给射频装置1302,射频装置1302对终端的信息进行处理后经过天线1301发送给终端。As shown in FIG. 13, the network equipment includes: an antenna 1301, a radio frequency device 1302, and a baseband device 1303. The antenna 1301 is connected to the radio frequency device 1302. In the uplink direction, the radio frequency device 1302 receives the information sent by the terminal through the antenna 1301, and sends the information sent by the terminal to the baseband device 1303 for processing. In the downlink direction, the baseband device 1303 processes the terminal information and sends it to the radio frequency device 1302, and the radio frequency device 1302 processes the terminal information and sends it to the terminal via the antenna 1301.
基带装置1303可以包括一个或多个处理元件1303-1,例如,包括一个主控CPU和其它集成电路。此外,该基带装置1303还可以包括存储元件1303-2和接口1303-3,存储元件1303-2用于存储程序和数据;接口1303-3用于与射频装置1302交互信息,该接口例如为通用公共无线接口(common public radio interface,CPRI)。以上用于网络设备的装置可以位于基带装置1303,例如,以上用于网络设备的装置可以为基带装置1303上的芯片,该芯片包括至少一个处理元件和接口电路,其中处理元件用于执行以上网络设备执行的任一种方法的各个步骤,接口电路用于与其它装置通信。在一种实现中,网络设备实现以上方法中各个步骤的单元可以通过处理元件调度程序的形式实现,例如用于网络设备的装置包括处理元件和存储元件,处理元件调用存储元件存储的程序,以执行以上方法实施例中网络设备执行的方法。存储元件可以为处理元件处于同一芯片上的存储元件,即片内存储元件,也可以为与处理元件处于不同芯片上的存储元件,即片外存储元件。The baseband device 1303 may include one or more processing elements 1303-1, for example, a main control CPU and other integrated circuits. In addition, the baseband device 1303 may also include a storage element 1303-2 and an interface 1303-3. The storage element 1303-2 is used to store programs and data; the interface 1303-3 is used to exchange information with the radio frequency device 1302. The interface is, for example, a universal Common public radio interface (CPRI). The above apparatus for network equipment may be located in the baseband apparatus 1303. For example, the above apparatus for network equipment may be a chip on the baseband apparatus 1303. The chip includes at least one processing element and an interface circuit, wherein the processing element is used to execute the above network For each step of any method executed by the device, the interface circuit is used to communicate with other devices. In one implementation, the unit for the network device to implement each step in the above method can be implemented in the form of a processing element scheduler. For example, the device for the network device includes a processing element and a storage element, and the processing element calls the program stored by the storage element to Perform the method performed by the network device in the above method embodiment. The storage element may be a storage element with the processing element on the same chip, that is, an on-chip storage element, or a storage element on a different chip from the processing element, that is, an off-chip storage element.
在另一种实现中,网络设备实现以上方法中各个步骤的单元可以是被配置成一个或多个处理元件,这些处理元件设置于基带装置上,这里的处理元件可以为集成电路,例如:一个或多个ASIC,或,一个或多个DSP,或,一个或者多个FPGA,或者这些类集成电路的组合。这些集成电路可以集成在一起,构成芯片。In another implementation, the unit of the network device that implements each step in the above method may be configured as one or more processing elements, and these processing elements are arranged on the baseband device. The processing elements here may be integrated circuits, such as one Or multiple ASICs, or, one or more DSPs, or, one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits can be integrated together to form a chip.
网络设备实现以上方法中各个步骤的单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现,例如,基带装置1303包括该SOC芯片,用于实现以上方法。该芯片内可以集成至少一个处理元件和存储元件,由处理元件调用存储元件的存储的程序的形式实现以上网络设备执行的方法;或者,该芯片内可以集成至少一个集成电路,用于实现以上网络设备执行的方法;或者,可以结合以上实现方式,部分单元的功能通过处理元件调用程序的形式实现,部分单元的功能通过集成电路的形式实现。The units for the network equipment to implement the steps in the above method can be integrated together and implemented in the form of a system-on-a-chip (SOC). For example, the baseband device 1303 includes the SOC chip for implementing the above method. At least one processing element and storage element can be integrated in the chip, and the processing element can call the stored program of the storage element to implement the method executed by the above network device; or, at least one integrated circuit can be integrated in the chip to implement the above network The method executed by the device; or, it can be combined with the above implementations. The functions of some units are implemented in the form of calling programs by processing elements, and the functions of some units are implemented in the form of integrated circuits.
可见,以上用于网络设备的装置可以包括至少一个处理元件和接口电路,其中至少一个处理元件用于执行以上方法实施例所提供的任一种网络设备执行的方法。处理元件可以以第一种方式:即调用存储元件存储的程序的方式执行网络设备执行的部分或全部步骤;也可以以第二种方式:即通过处理器元件中的硬件的集成逻辑电路结合指令的方式执行网络设备执行的部分或全部步骤;当然,也可以结合第一种方式和第二种方式执行以上网络设备执行的部分或全部步骤。It can be seen that the above apparatus for a network device may include at least one processing element and an interface circuit, wherein at least one processing element is used to execute any method executed by the network device provided in the above method embodiments. The processing element can execute part or all of the steps executed by the network device in the first way: calling the program stored in the storage element; or in the second way: combining instructions through the integrated logic circuit of the hardware in the processor element Part or all of the steps performed by the network device are executed in the method; of course, part or all of the steps executed by the network device can be executed in combination with the first method and the second method.
这里的处理元件同以上描述,可以是通用处理器,例如CPU,还可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个ASIC,或,一个或多个微处 理器DSP,或,一个或者多个FPGA等,或这些集成电路形式中至少两种的组合。The processing elements here are the same as those described above, and may be a general-purpose processor, such as a CPU, or one or more integrated circuits configured to implement the above methods, such as: one or more ASICs, or, one or more micro-processing DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms.
存储元件可以是一个存储器,也可以是多个存储元件的统称。The storage element may be a memory or a collective term for multiple storage elements.
请参考图14,其为本申请实施例提供的一种终端的结构示意图。其可以为以上实施例中的终端,用于实现以上实施例中终端的操作。Please refer to FIG. 14, which is a schematic structural diagram of a terminal provided in an embodiment of the application. It may be the terminal in the above embodiment, and is used to implement the operation of the terminal in the above embodiment.
如图14所示,该终端包括:天线1401、射频部分1402、信号处理部分1403。天线1401与射频部分1402连接。在下行方向上,射频部分1402通过天线1401接收网络设备发送的信息,将网络设备发送的信息发送给信号处理部分1403进行处理。在上行方向上,信号处理部分1403对终端的信息进行处理,并发送给射频部分1402,射频部分1402对终端的信息进行处理后经过天线1401发送给网络设备。As shown in FIG. 14, the terminal includes: an antenna 1401, a radio frequency part 1402, and a signal processing part 1403. The antenna 1401 is connected to the radio frequency part 1402. In the downlink direction, the radio frequency part 1402 receives the information sent by the network device through the antenna 1401, and sends the information sent by the network device to the signal processing part 1403 for processing. In the upstream direction, the signal processing part 1403 processes the terminal information and sends it to the radio frequency part 1402, and the radio frequency part 1402 processes the terminal information and sends it to the network device via the antenna 1401.
信号处理部分1403可以包括调制解调子系统,用于实现对数据各通信协议层的处理;还可以包括中央处理子系统,用于实现对终端操作系统以及应用层的处理;此外,还可以包括其它子系统,例如多媒体子系统,周边子系统等,其中多媒体子系统用于实现对终端相机,屏幕显示等的控制,周边子系统用于实现与其它设备的连接。调制解调子系统可以为单独设置的芯片。可选的,以上用于终端的装置可以位于该调制解调子系统。The signal processing part 1403 may include a modem subsystem, which is used to process data at various communication protocol layers; it may also include a central processing subsystem, which is used to process terminal operating systems and application layers; in addition, it may also include Other subsystems, such as multimedia subsystem, peripheral subsystem, etc., where the multimedia subsystem is used to control the terminal camera, screen display, etc., and the peripheral subsystem is used to realize the connection with other devices. The modem subsystem can be a separate chip. Optionally, the above apparatus for the terminal may be located in the modem subsystem.
调制解调子系统可以包括一个或多个处理元件1403-1,例如,包括一个主控CPU和其它集成电路。The modem subsystem may include one or more processing elements 1403-1, for example, including a main control CPU and other integrated circuits.
此外,该调制解调子系统还可以包括存储元件1403-2和接口电路1403-3。存储元件1403-2用于存储数据和程序,但用于执行以上方法中终端所执行的方法的程序可能不存储于该存储元件1403-2中,而是存储于调制解调子系统之外的存储器中,使用时调制解调子系统加载使用。接口电路1403-3用于与其它子系统通信。以上用于终端的装置可以位于调制解调子系统,该调制解调子系统可以通过芯片实现,该芯片包括至少一个处理元件和接口电路,其中处理元件用于执行以上终端执行的任一种方法的各个步骤,接口电路用于与其它装置通信。In addition, the modem subsystem may also include a storage element 1403-2 and an interface circuit 1403-3. The storage element 1403-2 is used to store data and programs, but the program used to execute the method executed by the terminal in the above method may not be stored in the storage element 1403-2, but is stored outside the modem subsystem. In the memory, the modem subsystem is loaded and used when in use. The interface circuit 1403-3 is used to communicate with other subsystems. The above device for the terminal may be located in the modem subsystem, the modem subsystem may be implemented by a chip, the chip includes at least one processing element and an interface circuit, wherein the processing element is used to execute any of the methods performed by the above terminal In each step, the interface circuit is used to communicate with other devices.
在一种实现中,终端实现以上方法中各个步骤的单元可以通过处理元件调度程序的形式实现,例如用于终端的装置包括处理元件和存储元件,处理元件调用存储元件存储的程序,以执行以上方法实施例中终端执行的方法。存储元件可以为处理元件处于同一芯片上的存储元件,即片内存储元件。In one implementation, the unit for the terminal to implement each step in the above method can be implemented in the form of a processing element scheduler. For example, the device for the terminal includes a processing element and a storage element, and the processing element calls the program stored by the storage element to execute the above The method executed by the terminal in the method embodiment. The storage element may be a storage element whose processing element is on the same chip, that is, an on-chip storage element.
在另一种实现中,用于执行以上方法中终端所执行的方法的程序可以在与处理元件处于不同芯片上的存储元件,即片外存储元件。此时,处理元件从片外存储元件调用或加载程序于片内存储元件上,以调用并执行以上方法实施例中终端执行的方法。In another implementation, the program for executing the method executed by the terminal in the above method may be a storage element on a different chip from the processing element, that is, an off-chip storage element. At this time, the processing element calls or loads the program from the off-chip storage element on the on-chip storage element to call and execute the method executed by the terminal in the above method embodiment.
在又一种实现中,终端实现以上方法中各个步骤的单元可以是被配置成一个或多个处理元件,这些处理元件设置于调制解调子系统上,这里的处理元件可以为集成电路,例如:一个或多个ASIC,或,一个或多个DSP,或,一个或者多个FPGA,或者这些类集成电路的组合。这些集成电路可以集成在一起,构成芯片。In yet another implementation, the terminal that implements each step in the above method may be configured as one or more processing elements, and these processing elements are provided on the modem subsystem, where the processing elements may be integrated circuits, such as : One or more ASICs, or, one or more DSPs, or, one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits can be integrated together to form a chip.
终端实现以上方法中各个步骤的单元可以集成在一起,以SOC的形式实现,该SOC芯片,用于实现以上方法。该芯片内可以集成至少一个处理元件和存储元件,由处理元件调用存储元件的存储的程序的形式实现以上终端执行的方法;或者,该芯片内可以集成至少一个集成电路,用于实现以上终端执行的方法;或者,可以结合以上 实现方式,部分单元的功能通过处理元件调用程序的形式实现,部分单元的功能通过集成电路的形式实现。The units for the terminal to implement each step in the above method can be integrated together and implemented in the form of an SOC, and the SOC chip is used to implement the above method. At least one processing element and a storage element can be integrated in the chip, and the above terminal execution method can be realized by the processing element calling the stored program of the storage element; or, at least one integrated circuit can be integrated in the chip for realizing the above terminal execution Or, it can be combined with the above implementations. The functions of some units are implemented in the form of calling programs by processing elements, and the functions of some units are implemented in the form of integrated circuits.
可见,以上用于终端的装置可以包括至少一个处理元件和接口电路,其中至少一个处理元件用于执行以上方法实施例所提供的任一种终端执行的方法。处理元件可以以第一种方式:即调用存储元件存储的程序的方式执行终端执行的部分或全部步骤;也可以以第二种方式:即通过处理器元件中的硬件的集成逻辑电路结合指令的方式执行终端执行的部分或全部步骤;当然,也可以结合第一种方式和第二种方式执行终端执行的部分或全部步骤。It can be seen that the above apparatus for a terminal may include at least one processing element and an interface circuit, wherein at least one processing element is used to execute any of the methods performed by the terminal provided in the above method embodiments. The processing element can execute part or all of the steps executed by the terminal in the first way: calling the program stored in the storage element; or in the second way: combining instructions through the integrated logic circuit of the hardware in the processor element Part or all of the steps executed by the terminal are executed in a manner; of course, part or all of the steps executed by the terminal may also be executed in combination with the first manner and the second manner.
这里的处理元件同以上描述,可以是通用处理器,例如CPU,还可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个ASIC,或,一个或多个微处理器DSP,或,一个或者多个FPGA等,或这些集成电路形式中至少两种的组合。The processing elements here are the same as those described above, and may be a general-purpose processor, such as a CPU, or one or more integrated circuits configured to implement the above methods, such as: one or more ASICs, or, one or more micro-processing DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms.
存储元件可以是一个存储器,也可以是多个存储元件的统称。The storage element may be a memory or a collective term for multiple storage elements.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example. In practical applications, the above-mentioned functions can be allocated according to needs. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be It can be combined or integrated into another device, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application are essentially or the part that contributes to the existing technology, or all or part of the technical solutions can be embodied in the form of software products, which are stored in a storage medium. It includes several instructions to make a device (may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application shall be covered by the protection scope of this application . Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (24)

  1. 一种时钟同步方法,其特征在于,包括:A clock synchronization method is characterized in that it includes:
    终端获取第一信息,所述第一信息用于确定所述终端与第一网络设备的传输时延;The terminal obtains first information, where the first information is used to determine the transmission delay between the terminal and the first network device;
    所述终端获取第一时间值,所述第一时间值用于指示所述第一网络设备的第一小区的无线帧的帧边界的发送时刻;Acquiring, by the terminal, a first time value, where the first time value is used to indicate the sending moment of the frame boundary of the radio frame of the first cell of the first network device;
    所述终端根据所述传输时延和所述第一时间值,确定所述第一小区的无线帧的所述帧边界的接收时刻对应的第二时间值。The terminal determines, according to the transmission delay and the first time value, a second time value corresponding to the receiving moment of the frame boundary of the radio frame of the first cell.
  2. 根据权利要求1所述的方法,其特征在于,所述第一信息为用于指示所述传输时延的信息。The method according to claim 1, wherein the first information is information for indicating the transmission delay.
  3. 根据权利要求1所述的方法,其特征在于,所述第一信息为用于指示所述终端与所述第一网络设备之间的距离的信息;The method according to claim 1, wherein the first information is information used to indicate the distance between the terminal and the first network device;
    所述方法还包括:The method also includes:
    所述终端根据所述终端与所述第一网络设备之间的距离获取所述传输时延。The terminal obtains the transmission delay according to the distance between the terminal and the first network device.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-3, wherein the method further comprises:
    所述终端获取所述终端由获取到所述第一信息的时刻开始到当前时刻的移动距离;Acquiring, by the terminal, the movement distance of the terminal from the moment when the first information is acquired to the current moment;
    当所述移动距离大于距离门限,所述终端向所述第一网络设备发送第一指示信息,所述第一指示信息用于指示所述第一网络设备重新下发所述第一信息。When the moving distance is greater than the distance threshold, the terminal sends first indication information to the first network device, where the first indication information is used to instruct the first network device to re-deliver the first information.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    所述终端获取M个小区的无线帧的所述帧边界的接收时刻,所述M个小区的无线帧的所述帧边界对齐,所述M个小区包括所述第一小区,所述M是大于或等于2的整数;The terminal acquires the receiving moments of the frame boundaries of the radio frames of M cells, the frame boundaries of the radio frames of the M cells are aligned, the M cells include the first cell, and M is An integer greater than or equal to 2;
    所述终端根据所述M个小区的无线帧的所述帧边界的接收时刻,更新所述第一小区的无线帧的所述帧边界的接收时刻。The terminal updates the reception time of the frame boundary of the radio frame of the first cell according to the reception time of the frame boundary of the radio frames of the M cells.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述终端获取所述第一时间值,包括:The method according to any one of claims 1-5, wherein the obtaining the first time value by the terminal comprises:
    所述终端接收M个小区的指示无线帧的所述帧边界的发送时刻的时间值,所述M个小区的无线帧的所述帧边界对齐,所述M个小区包括所述第一小区,所述M是大于或等于2的整数;Receiving, by the terminal, the time values indicating the transmission moments of the frame boundaries of the radio frames of M cells, the frame boundaries of the radio frames of the M cells are aligned, and the M cells include the first cell, The M is an integer greater than or equal to 2;
    所述终端根据所述M个小区的时间值,确定所述第一时间值。The terminal determines the first time value according to the time values of the M cells.
  7. 根据权利要求6所述的方法,其特征在于,在所述M个小区中,所述终端接收不同小区的指示无线帧的所述帧边界的发送时刻的时间值的时间窗不同;The method according to claim 6, characterized in that, in the M cells, the terminal receives different time windows indicating the time value of the transmission time of the frame boundary of the radio frame from different cells;
    所述方法还包括:The method also includes:
    所述终端接收来自所述第一网络设备的第二指示信息,所述第二指示信息用于指示在N个小区的每个小区中接收所述小区的指示无线帧的所述帧边界的发送时刻的时间值的时间窗,所述N个小区包括所述M个小区;The terminal receives second indication information from the first network device, where the second indication information is used to indicate that in each of the N cells, the sending of the frame boundary indicating the radio frame of the cell is received A time window of the time value of the moment, the N cells include the M cells;
    所述终端接收M个小区的指示无线帧的所述帧边界的发送时刻的时间值,包括:The receiving, by the terminal, the time values indicating the transmission moments of the frame boundaries of the radio frames from M cells includes:
    所述终端根据所述第二指示信息指示的时间窗,接收所述M个小区的时间值。The terminal receives the time values of the M cells according to the time window indicated by the second indication information.
  8. 根据权利要求5-7中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 5-7, wherein the method further comprises:
    所述终端向所述第一网络设备发送第三指示信息,所述第三指示信息用于所述第 一网络设备为所述终端分配小区,所述为所述终端分配的小区中包括所述M个小区;The terminal sends third indication information to the first network device, where the third indication information is used by the first network device to allocate cells to the terminal, and the cells allocated to the terminal include the M cells;
    其中,所述第三指示信息为所述终端对所述终端的时钟的精度要求;或者,所述第三指示信息为所述终端的第一业务的标识或所述第一业务的服务质量QoS标识,所述终端的第一业务对所述终端的时钟的精度要求大于所述终端的其他业务对所述终端的时钟的精度要求。Wherein, the third indication information is the accuracy requirement of the terminal for the clock of the terminal; or, the third indication information is the identification of the first service of the terminal or the quality of service QoS of the first service Identifies that the first service of the terminal requires more precision on the clock of the terminal than other services of the terminal require on the clock of the terminal.
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-8, wherein the method further comprises:
    所述终端接收所述第一网络设备发送的第三时间值,所述第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻;Receiving, by the terminal, a third time value sent by the first network device, where the third time value is used to indicate the sending moment of the subframe boundary of the second cell of the second network device;
    所述终端在切换到所述第二小区后,获取第四时间值,所述第四时间值用于指示所述第二小区的子帧边界的接收时刻;After switching to the second cell, the terminal obtains a fourth time value, where the fourth time value is used to indicate the receiving moment of the subframe boundary of the second cell;
    所述终端根据所述第三时间值和所述第四时间值,确定所述终端与所述第二网络设备的传输时延;Determining, by the terminal, the transmission delay between the terminal and the second network device according to the third time value and the fourth time value;
    所述终端根据所述终端与所述第二网络设备的传输时延进行数据传输。The terminal performs data transmission according to the transmission delay between the terminal and the second network device.
  10. 根据权利要求1-8中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-8, wherein the method further comprises:
    所述终端在切换到第二网络设备的第二小区后,获取所述第二小区的系统帧号SFN,接收所述第二网络设备的发送的第五时间值,所述第五时间值用于指示所述第二小区的无线帧的帧边界的发送时刻;After switching to the second cell of the second network device, the terminal obtains the system frame number SFN of the second cell, and receives the fifth time value sent by the second network device. The fifth time value is used At the sending moment indicating the frame boundary of the radio frame of the second cell;
    所述终端根据所述SFN,获取第六时间值,所述第六时间值用于指示所述第二小区的所述无线帧的所述帧边界的接收时刻;Acquiring, by the terminal, a sixth time value according to the SFN, where the sixth time value is used to indicate the receiving moment of the frame boundary of the radio frame of the second cell;
    所述终端根据所述第五时间值和所述第六时间值,确定所述终端与所述第二网络设备的传输时延;Determining, by the terminal, the transmission delay between the terminal and the second network device according to the fifth time value and the sixth time value;
    所述终端根据所述终端与所述第二网络设备的传输时延进行数据传输。The terminal performs data transmission according to the transmission delay between the terminal and the second network device.
  11. 一种时钟同步装置,其特征在于,包括:A clock synchronization device is characterized by comprising:
    第一获取单元,用于获取第一信息,以及第一时间值,所述第一信息用于确定所述时钟同步装置与第一网络设备的传输时延,所述第一时间值用于指示所述第一网络设备的第一小区的无线帧的帧边界的发送时刻;The first acquiring unit is configured to acquire first information and a first time value, where the first information is used to determine the transmission delay between the clock synchronization apparatus and the first network device, and the first time value is used to indicate The sending moment of the frame boundary of the radio frame of the first cell of the first network device;
    确定单元,用于根据所述传输时延和所述第一时间值,确定所述第一小区的无线帧的所述帧边界的接收时刻对应的第二时间值。The determining unit is configured to determine a second time value corresponding to the receiving moment of the frame boundary of the radio frame of the first cell according to the transmission delay and the first time value.
  12. 根据权利要求11所述的时钟同步装置,其特征在于,所述第一信息为用于指示所述传输时延的信息。The clock synchronization device according to claim 11, wherein the first information is information for indicating the transmission delay.
  13. 根据权利要求11所述的时钟同步装置,其特征在于,所述第一信息为用于指示所述时钟同步装置与所述第一网络设备之间的距离的信息;The clock synchronization device according to claim 11, wherein the first information is information used to indicate the distance between the clock synchronization device and the first network device;
    所述第一获取单元,还用于根据所述时钟同步装置与所述第一网络设备之间的距离获取所述传输时延。The first obtaining unit is further configured to obtain the transmission delay according to the distance between the clock synchronization apparatus and the first network device.
  14. 根据权利要求11-13中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置还包括:第二获取单元和发送单元;The clock synchronization device according to any one of claims 11-13, wherein the clock synchronization device further comprises: a second acquiring unit and a sending unit;
    所述第二获取单元,用于获取所述时钟同步装置由获取到所述第一信息的时刻开始到当前时刻的移动距离;The second acquiring unit is configured to acquire the moving distance of the clock synchronization device from the moment when the first information is acquired to the current moment;
    所述发送单元,用于当所述移动距离大于距离门限,向所述第一网络设备发送第 一指示信息,所述第一指示信息用于指示所述第一网络设备重新下发所述第一信息。The sending unit is configured to send first instruction information to the first network device when the moving distance is greater than a distance threshold, where the first instruction information is used to instruct the first network device to reissue the first network device One information.
  15. 根据权利要求11-14中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置还包括:更新单元;The clock synchronization device according to any one of claims 11-14, wherein the clock synchronization device further comprises: an update unit;
    所述第一获取单元,还用于获取M个小区的无线帧的所述帧边界的接收时刻,所述M个小区的无线帧的所述帧边界对齐,所述M个小区包括所述第一小区,所述M是大于或等于2的整数;The first obtaining unit is further configured to obtain receiving moments of the frame boundaries of the radio frames of the M cells, the frame boundaries of the radio frames of the M cells are aligned, and the M cells include the first In a cell, the M is an integer greater than or equal to 2;
    所述更新单元,用于根据所述M个小区的无线帧的所述帧边界的接收时刻,更新所述第一小区的无线帧的所述帧边界的接收时刻。The updating unit is configured to update the receiving time of the frame boundary of the radio frame of the first cell according to the receiving time of the frame boundary of the radio frames of the M cells.
  16. 根据权利要求11-15中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置,还包括:接收单元;The clock synchronization device according to any one of claims 11-15, wherein the clock synchronization device further comprises: a receiving unit;
    所述接收单元,用于接收M个小区的指示无线帧的所述帧边界的发送时刻的时间值,所述M个小区的无线帧的所述帧边界对齐,所述M个小区包括所述第一小区,所述M是大于或等于2的整数;The receiving unit is configured to receive time values indicating the transmission moments of the frame boundaries of the radio frames of M cells, the frame boundaries of the radio frames of the M cells are aligned, and the M cells include the In the first cell, the M is an integer greater than or equal to 2;
    所述第一获取单元,具体用于根据所述M个小区的时间值,确定所述第一时间值。The first acquiring unit is specifically configured to determine the first time value according to the time values of the M cells.
  17. 根据权利要求16所述的时钟同步装置,其特征在于,在所述M个小区中,所述时钟同步装置接收不同小区的指示无线帧的所述帧边界的发送时刻的时间值的时间窗不同;The clock synchronization device according to claim 16, wherein, in the M cells, the clock synchronization device receives different time windows indicating the time value of the transmission time of the frame boundary of the radio frame from different cells. ;
    所述接收单元,还用于接收来自所述第一网络设备的第二指示信息,所述第二指示信息用于指示在N个小区的每个小区中接收所述小区的指示无线帧的所述帧边界的发送时刻的时间值的时间窗,所述N个小区包括所述M个小区;The receiving unit is further configured to receive second indication information from the first network device, where the second indication information is used to indicate that all the indication radio frames of the cell are received in each of the N cells. The time window of the time value of the sending moment of the frame boundary, the N cells include the M cells;
    所述接收单元,具体用于根据所述第二指示信息指示的时间窗,接收所述M个小区的时间值。The receiving unit is specifically configured to receive the time values of the M cells according to the time window indicated by the second indication information.
  18. 根据权利要求15-17中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置还包括:发送单元;The clock synchronization device according to any one of claims 15-17, wherein the clock synchronization device further comprises: a sending unit;
    所述发送单元,用于向所述第一网络设备发送第三指示信息,所述第三指示信息用于所述第一网络设备为所述时钟同步装置分配小区,所述为所述时钟同步装置分配的小区中包括所述M个小区;The sending unit is configured to send third indication information to the first network device, where the third indication information is used by the first network device to allocate a cell to the clock synchronization apparatus, and the clock synchronization is The cells allocated by the device include the M cells;
    其中,所述第三指示信息为所述时钟同步装置对所述时钟同步装置的时钟的精度要求;或者,所述第三指示信息为所述时钟同步装置的第一业务的标识或所述第一业务的服务质量QoS标识,所述时钟同步装置的第一业务对所述时钟同步装置的时钟的精度要求大于所述时钟同步装置的其他业务对所述时钟同步装置的时钟的精度要求。Wherein, the third indication information is the accuracy requirement of the clock synchronization apparatus for the clock of the clock synchronization apparatus; or, the third indication information is the identifier of the first service of the clock synchronization apparatus or the first service The quality of service QoS identifier of a service, the first service of the clock synchronization device requires more precision for the clock of the clock synchronization device than other services of the clock synchronization device require for the clock of the clock synchronization device.
  19. 根据权利要求11-18中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置还包括:接收单元和传输单元;The clock synchronization device according to any one of claims 11-18, wherein the clock synchronization device further comprises: a receiving unit and a transmission unit;
    所述接收单元,用于接收所述第一网络设备发送的第三时间值,所述第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻;The receiving unit is configured to receive a third time value sent by the first network device, where the third time value is used to indicate the sending moment of the subframe boundary of the second cell of the second network device;
    所述第二获取单元,还用于在切换到所述第二小区后,获取第四时间值,所述第四时间值用于指示所述第二小区的子帧边界的接收时刻;The second acquiring unit is further configured to acquire a fourth time value after switching to the second cell, where the fourth time value is used to indicate the receiving moment of the subframe boundary of the second cell;
    所述确定单元,还用于根据所述第三时间值和所述第四时间值,确定所述时钟同步装置与所述第二网络设备的传输时延;The determining unit is further configured to determine the transmission delay between the clock synchronization apparatus and the second network device according to the third time value and the fourth time value;
    所述传输单元,用于根据所述时钟同步装置与所述第二网络设备的传输时延进行数据传输。The transmission unit is configured to perform data transmission according to the transmission delay between the clock synchronization device and the second network device.
  20. 根据权利要求11-18中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置还包括:传输单元;The clock synchronization device according to any one of claims 11-18, wherein the clock synchronization device further comprises: a transmission unit;
    所述第一获取单元,还用于在切换到第二网络设备的第二小区后,获取所述第二小区的系统帧号SFN,接收所述第二网络设备的发送的第五时间值,所述第五时间值用于指示所述第二小区的无线帧的帧边界的发送时刻;The first obtaining unit is further configured to obtain the system frame number SFN of the second cell after switching to the second cell of the second network device, and receive the fifth time value sent by the second network device, The fifth time value is used to indicate the sending moment of the frame boundary of the radio frame of the second cell;
    所述第二获取单元,还用于根据所述SFN,获取第六时间值,所述第六时间值用于指示所述第二小区的所述无线帧的所述帧边界的接收时刻;The second acquiring unit is further configured to acquire a sixth time value according to the SFN, where the sixth time value is used to indicate the receiving moment of the frame boundary of the radio frame of the second cell;
    所述确定单元,还用于根据所述第五时间值和所述第六时间值,确定所述时钟同步装置与所述第二网络设备的传输时延;The determining unit is further configured to determine the transmission delay between the clock synchronization apparatus and the second network device according to the fifth time value and the sixth time value;
    所述传输单元,用于根据所述时钟同步装置与所述第二网络设备的传输时延进行数据传输。The transmission unit is configured to perform data transmission according to the transmission delay between the clock synchronization device and the second network device.
  21. 一种时钟同步装置,其特征在于,包括:处理器和接口电路,所述处理器用于通过所述接口电路与网络设备通信,并执行如权利要求1至10任一项所述的方法。A clock synchronization device, characterized by comprising: a processor and an interface circuit, the processor is used to communicate with a network device through the interface circuit, and execute the method according to any one of claims 1 to 10.
  22. 一种时钟同步装置,其特征在于,包括处理器,用于与存储器相连,调用所述存储器中存储的程序,以执行如权利要求1至10任一项所述的方法。A clock synchronization device, characterized by comprising a processor, which is configured to be connected to a memory and call a program stored in the memory to execute the method according to any one of claims 1 to 10.
  23. 一种终端,其特征在于,包括如权利要求11至20任一项所述的时钟同步装置。A terminal, characterized by comprising the clock synchronization device according to any one of claims 11 to 20.
  24. 一种计算机可读存储介质,其特征在于,包括:计算机软件指令;A computer-readable storage medium, characterized by comprising: computer software instructions;
    当所述计算机软件指令在时钟同步装置或内置在时钟同步装置的芯片中运行时,使得所述时钟同步装置执行如权利要求1至10任一项所述的方法。When the computer software instruction runs in a clock synchronization device or a chip built in the clock synchronization device, the clock synchronization device is caused to execute the method according to any one of claims 1 to 10.
PCT/CN2020/073341 2019-02-01 2020-01-20 Clock synchronization method and device WO2020156343A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910106165.X 2019-02-01
CN201910106165.XA CN111526577A (en) 2019-02-01 2019-02-01 Clock synchronization method and equipment

Publications (1)

Publication Number Publication Date
WO2020156343A1 true WO2020156343A1 (en) 2020-08-06

Family

ID=71840106

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/073341 WO2020156343A1 (en) 2019-02-01 2020-01-20 Clock synchronization method and device

Country Status (2)

Country Link
CN (1) CN111526577A (en)
WO (1) WO2020156343A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116018838A (en) * 2020-10-16 2023-04-25 Oppo广东移动通信有限公司 Transmission delay measurement method and device, terminal equipment and network equipment
CN114760682A (en) * 2021-01-11 2022-07-15 中国移动通信有限公司研究院 Time information transmission method, device and equipment
WO2022178732A1 (en) * 2021-02-24 2022-09-01 华为技术有限公司 Communication method, apparatus, and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119157A (en) * 2007-09-18 2008-02-06 中兴通讯股份有限公司 Method and system for measuring optical fibre time delay
CN102457954A (en) * 2010-10-18 2012-05-16 中国移动通信集团江苏有限公司 Synchronization method for home base station and home base station
CN104735770A (en) * 2013-12-18 2015-06-24 中兴通讯股份有限公司 Synchronization method, transmission node, terminal and communication system
WO2017144082A1 (en) * 2016-02-23 2017-08-31 Telefonaktiebolaget Lm Ericsson (Publ) Time synchronization between nodes connected by a wireless network
CN108347763A (en) * 2017-01-24 2018-07-31 华为技术有限公司 Method, terminal device and the network equipment of time service

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6636744B1 (en) * 2000-04-20 2003-10-21 Lucent Technologies Inc. Obtaining pilot phase offset time delay parameter for a wireless terminal of an integrated wireless-global positioning system
CN1163101C (en) * 2001-04-28 2004-08-18 华为技术有限公司 Mobile-station positioning method in mobile communication system
CN101252385B (en) * 2008-02-22 2013-03-13 杭州电子科技大学 Method for implementing signal synchronization in TDD digital baseband straight amplifying station
KR101009420B1 (en) * 2008-10-08 2011-01-19 한국전자통신연구원 Terminal Time of Date Synchronization method and apparatus in Convergence Network
KR102139223B1 (en) * 2013-07-02 2020-08-11 삼성전자주식회사 Apparatus and method of synchronization establishing and transmission/receiption of a signal in a beamforming system
US10075929B2 (en) * 2013-09-16 2018-09-11 Lg Electronics Inc. Method and apparatus for network synchronization
US20150123844A1 (en) * 2013-11-04 2015-05-07 Qualcomm Incorporated Methods and systems for mobile device clock management
CN104270810A (en) * 2014-10-16 2015-01-07 武汉理工大学 LTE-A system uplink synchronization method
CN106686669B (en) * 2015-11-11 2021-01-26 中兴通讯股份有限公司 Synchronization method and device
KR20170093068A (en) * 2016-02-04 2017-08-14 한국전자통신연구원 Method for scheduling uplink transmission in communication network
CN105792346A (en) * 2016-03-04 2016-07-20 海能达通信股份有限公司 Synchronization method, node device and wireless MESH network system
CN107277929A (en) * 2016-04-07 2017-10-20 北京信威通信技术股份有限公司 The method of packet delay is reduced in a kind of handoff procedure
CN106488550B (en) * 2016-12-20 2019-11-12 华为技术有限公司 Determine the method and apparatus of terminal Yu base station clock time deviation
CN106506123B (en) * 2016-12-29 2019-11-12 宇龙计算机通信科技(深圳)有限公司 A kind of indicating means and base station
CN108934034A (en) * 2017-05-26 2018-12-04 华为技术有限公司 A kind of method sending and receiving data packet, equipment and system
CN109275185B (en) * 2017-06-06 2020-03-20 华为技术有限公司 Method and device for sending uplink information
CN107528628B (en) * 2017-09-28 2020-01-10 中国电子科技集团公司第七研究所 Signal synchronization method, device and system of satellite communication system
CN108270714A (en) * 2018-02-02 2018-07-10 北京晓程科技股份有限公司 A kind of generation method and equipment of frame preamble signal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119157A (en) * 2007-09-18 2008-02-06 中兴通讯股份有限公司 Method and system for measuring optical fibre time delay
CN102457954A (en) * 2010-10-18 2012-05-16 中国移动通信集团江苏有限公司 Synchronization method for home base station and home base station
CN104735770A (en) * 2013-12-18 2015-06-24 中兴通讯股份有限公司 Synchronization method, transmission node, terminal and communication system
WO2017144082A1 (en) * 2016-02-23 2017-08-31 Telefonaktiebolaget Lm Ericsson (Publ) Time synchronization between nodes connected by a wireless network
CN108347763A (en) * 2017-01-24 2018-07-31 华为技术有限公司 Method, terminal device and the network equipment of time service

Also Published As

Publication number Publication date
CN111526577A (en) 2020-08-11

Similar Documents

Publication Publication Date Title
EP3609225B1 (en) Communication method, base station and system
WO2020063393A1 (en) Time synchronization method and device
TWI789177B (en) Methods and user equipment for concurrent gap configuration
WO2020156343A1 (en) Clock synchronization method and device
JP2019532604A (en) Cell handover method, apparatus, and system
WO2020182031A1 (en) Communication method and communication apparatus in technical field of wireless communication
US11949621B2 (en) System and method for phase noise-based signal design for positioning in a communication system
WO2021104025A1 (en) Information transmission method and device
WO2020078318A1 (en) Communication method and apparatus
US20220369260A1 (en) Optimized time synchronization for a ue
WO2022042532A1 (en) Transmission parameter acquisition method, apparatus, and system
JP7382487B2 (en) Method and device for on-demand positioning related application data
JP6872634B2 (en) Cooperative cell determination method and network device
CN113853023B (en) Wireless communication method and device
WO2020029873A1 (en) Communication method and apparatus, and communication system
WO2021204022A1 (en) Measurement method and apparatus
WO2022077387A1 (en) Communication method and communication apparatus
WO2015017977A1 (en) Umts-to-lte network handover method, device and system
WO2021027907A1 (en) Communication method and communication apparatus
US20230388853A1 (en) Radio Network Node, Network Node, and Methods Performed in a Wireless Communication Network
WO2021159262A1 (en) Threshold value adjustment method and apparatus for timing advance
WO2023143114A1 (en) Communication method and communication apparatus
US20240031868A1 (en) User Equipment, Radio Network Node and Methods for Handling Delay in Dual Connected Mode
WO2022233191A1 (en) Method and apparatus for reporting cell or carrier information
WO2021243614A1 (en) Information processing method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20748550

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20748550

Country of ref document: EP

Kind code of ref document: A1