WO2020156343A1 - 一种时钟同步方法及设备 - Google Patents
一种时钟同步方法及设备 Download PDFInfo
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0682—Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation 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.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请实施例公开了一种时钟同步方法及设备,涉及通信领域,解决了终端和网络设备之间时钟的同步误差较大的问题。具体方案为:终端获取第一信息,该第一信息用于确定终端与网络设备的传输时延;终端获取第一时间值,该第一时间值用于指示网络设备的第一小区的无线帧的帧边界的发送时刻;终端根据获得的传输时延和第一时间值,确定第一小区的无线帧的帧边界的接收时刻对应的第二时间值。
Description
本申请要求于2019年02月01日提交国家知识产权局、申请号为201910106165.X、申请名称为“一种时钟同步方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及通信领域,尤其涉及一种时钟同步方法及设备。
在现有通信***中,相互通信的各节点之间需要实现时钟同步。目前时钟同步的主要方式有:全球定位***(global positioning system,GPS)和1588。在GPS方式中,各节点可以通过接收GPS卫星发出的信号,获得精准时间,以实现时钟同步。GPS方式要求节点能够直接接收GPS卫星的信号,处于室内的节点,是无法直接接收GPS卫星信号的。在1588方式中,可以在一定范围内选举出一个节点(如称为主(master)节点),该主节点上的时钟作为主时钟(master clock),其它节点(如称为从(slave)节点)上的时钟尽量与主时钟同步,即实现时钟同步。1588方式实现时钟同步的前提是主节点到从节点的传输时延与从节点到主节点的传输时延相同。但是,终端不一定处于室外,另外,网络设备到终端的传输时延与终端到网络设备的传输时延不相同。因此,终端不适于使用GPS方式或1588方式与网络设备进行时钟同步。因此,需要一种时钟同步方法及设备,以解决了终端和网络设备之间时钟同步的问题。
发明内容
有鉴于此,本申请实施例提供一种时钟同步方法及设备,以解决终端和网络设备之间时钟同步的问题。
第一方面,本申请实施例提供一种时钟同步方法,该方法可以包括:终端获取用于确定终端与第一网络设备的传输时延的第一信息,并获取指示第一网络设备的第一小区的无线帧的帧边界的发送时刻的第一时间值,终端可以根据获取到的传输时延和第一时间值,确定第一小区的无线帧的帧边界的接收时刻对应的第二时间值,以完成时钟同步。
结合第一方面,在一种可能的实现方式中,上述第一信息可以为用于指示传输时延的信息。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,上述第一信息可以为用于指示终端与第一网络设备之间的距离的信息;相应的,上述方法还可以包括:终端可以根据终端与第一网络设备之间的距离获取传输时延。也就是说,终端根据获取到的用于指示距离的信息可以获取到终端与第一网络设备的传输时延。而不是利用TA获取传输时延,即无需先向第一网络设备发送信号(如前导,preamble),便可获取到与第一网络设备的传输时延。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,上述方法还 可以包括:终端获取终端由获取到第一信息的时刻开始到当前时刻的移动距离;当移动距离大于距离门限,说明终端与第一网络设备之间的传输时延有可能发生了改变,终端可以向第一网络设备发送用于指示第一网络设备重新下发第一信息的第一指示信息,以便第一网络设备重新向终端下发用于确定终端与第一网络设备的传输时延的第一信息。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,由于终端在进行无线帧的帧边界检测时会存在误差,为了尽可能的减小这种误差,该方法还可以包括:终端获取M个小区的无线帧的帧边界的接收时刻,M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数;终端根据M个小区的无线帧的帧边界的接收时刻,更新第一小区的无线帧的帧边界的接收时刻。也就是说,终端可以对多个小区的无线帧的帧边界进行检测,然后,根据检测到的结果最终确定出无线帧的帧边界。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,终端获取第一时间值,具体的可以包括:终端可以接收M个小区的指示无线帧的帧边界的发送时刻的时间值,M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数,然后,根据获取到的M个小区的时间值,确定第一时间值。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,在每个小区内的授时消息的发送周期不变的情况下,第一网络设备可以保证在该多个小区中各个小区的授时消息的发送周期是错开的,以使得终端可以更频繁读取授时消息。也就是说,在M个小区中,终端接收不同小区的指示无线帧的帧边界的发送时刻的时间值的时间窗不同;相应的,该方法还可以包括:终端可以接收来自第一网络设备的第二指示信息,该第二指示信息可以用于指示在N个小区的每个小区中接收小区的指示无线帧的帧边界的发送时刻的时间值的时间窗,N个小区包括M个小区,N为大于或等于M的整数;终端接收M个小区的指示无线帧的帧边界的发送时刻的时间值,具体的可以包括:终端根据第二指示信息指示的时间窗,接收M个小区的时间值。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,为了能够让第一网络设备给终端分配合适数量的小区,该方法还可以包括:终端可以向第一网络设备发送第三指示信息,该第三指示信息用于第一网络设备为终端分配小区,为终端分配的小区中包括M个小区;其中,第三指示信息为终端对终端的时钟的精度要求;或者,第三指示信息为终端的第一业务的标识或第一业务的服务质量QoS标识,终端的第一业务对终端的时钟的精度要求大于终端的其他业务对终端的时钟的精度要求。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,该方法还可包括:终端接收第一网络设备发送的第三时间值,第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻;终端在切换到第二小区后,获取第四时间值,第四时间值用于指示第二小区的子帧边界的接收时刻;终端根据第三时间值和第四时间值,确定终端与第二网络设备的传输时延;终端根据终端与第二网络设备的传输时延进行数据传输。
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,该方法还可以包括:终端在切换到第二网络设备的第二小区后,获取第二小区的***帧号,接收 第二网络设备的发送的第五时间值,第五时间值用于指示第二小区的无线帧的帧边界的发送时刻;终端根据***帧号,获取第六时间值,第六时间值用于指示第二小区的无线帧的帧边界的接收时刻;终端根据第五时间值和第六时间值,确定终端与第二网络设备的传输时延;终端根据终端与第二网络设备的传输时延进行数据传输。
第二方面,本申请实施例提供一种时钟同步方法,该方法可以包括:第一网络设备获取终端与该第一网络设备之间的距离,根据该距离生成用于终端确定终端与第一网络设备的传输时延的第一信息,并向终端发送该第一信息。
结合第二方面,在一种可能的实现方式中,第一网络设备通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,其中,该为终端分配的小区中包含第一小区。
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,第一信息可以为用于指示传输时延的信息;或者,第一信息可以为用于指示终端与第一网络设备之间的距离的信息。
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,该方法还包括:第一网络设备获取终端与第一网络设备之间的距离;当获取到的终端与第一网络设备之间的距离相较于第一网络设备下发第一信息时终端与第一网络设备之间的距离发生了变化,说明终端与第一网络设备之间的传输时延有可能发生了改变,第一网络设备重新向终端发送第一信息。
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,为终端分配的小区包括N个小区,N个小区的无线帧的帧边界对齐,N为大于或等于2的整数。
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,在每个小区内的授时消息的发送周期不变的情况下,第一网络设备可以保证在该多个小区中各个小区的授时消息的发送周期是错开的,以使得终端可以更频繁读取授时消息。第一网络设备通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,具体的可以包括:第一网络设备在不同的时间窗,通过N个小区中的每个小区,向终端发送指示无线帧的帧边界的发送时刻的时间值;该方法还可以包括:第一网络设备向终端发送第二指示信息,第二指示信息用于指示终端在N个小区的每个小区中接收小区的指示无线帧的帧边界的发送时刻的时间值的时间窗。
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,为了能够给终端分配合适数量的小区,第一网络设备可以根据终端的指示为其分配小区。即该方法还可以包括:第一网络设备接收来自终端的第三指示信息;第一网络设备根据第三指示信息,获取需要为终端分配的小区的数量X;第一网络设备根据数量X,为终端分配N个小区,N大于或等于数量X;其中:第三指示信息为终端对终端的时钟的精度要求,不同精度要求对应不同的数量X;或者,第三指示信息为终端的第一业务的标识,不同业务的标识对应不同的数量X;或者,第三指示信息为第一业务的服务质量QoS标识,不同的QoS标识对应不同的数量X;终端的第一业务对终端的时钟的精度要求大于终端的其他业务对终端的时钟的精度要求。
结合第二方面或上述可能的实现方式,在另一种可能的实现方式中,该方法还可以包括:第一网络设备接收第二网络设备发送的第三时间值,第三时间值用于指示第 二网络设备的第二小区的子帧边界的发送时刻;第一网络设备向终端发送第三时间值。
第三方面,本申请实施例提供一种时钟同步装置,该时钟同步装置包括用于执行以上第一方面各个步骤的单元或手段(means)。具体的:该时钟同步装置可以包括:第一获取单元,用于获取第一信息,以及第一时间值,第一信息用于确定时钟同步装置与第一网络设备的传输时延,第一时间值用于指示第一网络设备的第一小区的无线帧的帧边界的发送时刻;确定单元,用于根据传输时延和第一时间值,确定第一小区的无线帧的帧边界的接收时刻对应的第二时间值。
结合第三方面,在一种可能的实现方式中,第一信息为用于指示传输时延的信息。
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,第一信息为用于指示时钟同步装置与第一网络设备之间的距离的信息;第一获取单元,还用于根据时钟同步装置与第一网络设备之间的距离获取传输时延。
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:第二获取单元和发送单元;第二获取单元,用于获取时钟同步装置由获取到第一信息的时刻开始到当前时刻的移动距离;发送单元,用于当移动距离大于距离门限,向第一网络设备发送第一指示信息,第一指示信息用于指示第一网络设备重新下发第一信息。
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:更新单元;第一获取单元,还用于获取M个小区的无线帧的帧边界的接收时刻,M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数;更新单元,用于根据M个小区的无线帧的帧边界的接收时刻,更新第一小区的无线帧的帧边界的接收时刻。
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:接收单元;接收单元,用于接收M个小区的指示无线帧的帧边界的发送时刻的时间值,M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数;第一获取单元,具体用于根据M个小区的时间值,确定第一时间值。
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,在M个小区中,时钟同步装置接收不同小区的指示无线帧的帧边界的发送时刻的时间值的时间窗不同;接收单元,还用于接收来自第一网络设备的第二指示信息,第二指示信息用于指示在N个小区的每个小区中接收小区的指示无线帧的帧边界的发送时刻的时间值的时间窗,N个小区包括M个小区;接收单元,具体用于根据第二指示信息指示的时间窗,接收M个小区的时间值。
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:发送单元,用于向第一网络设备发送第三指示信息,第三指示信息用于第一网络设备为时钟同步装置分配小区,为时钟同步装置分配的小区中包括M个小区;其中,第三指示信息为时钟同步装置对时钟同步装置的时钟的精度要求;或者,第三指示信息为时钟同步装置的第一业务的标识或第一业务的服务质量QoS标识,时钟同步装置的第一业务对时钟同步装置的时钟的精度要求大于时钟同步装置的其他业务对时钟同步装置的时钟的精度要求。
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:接收单元和传输单元;接收单元,用于接收第一网络设备发送的第三时间值,第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻;第二获取单元,还用于在切换到第二小区后,获取第四时间值,第四时间值用于指示第二小区的子帧边界的接收时刻;确定单元,还用于根据第三时间值和第四时间值,确定时钟同步装置与第二网络设备的传输时延;传输单元,用于根据时钟同步装置与第二网络设备的传输时延进行数据传输。
结合第三方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:传输单元;第一获取单元,还用于在切换到第二网络设备的第二小区后,获取第二小区的***帧号SFN,接收第二网络设备的发送的第五时间值,第五时间值用于指示第二小区的无线帧的帧边界的发送时刻;第二获取单元,还用于根据SFN,获取第六时间值,第六时间值用于指示第二小区的无线帧的帧边界的接收时刻;确定单元,还用于根据第五时间值和第六时间值,确定时钟同步装置与第二网络设备的传输时延;传输单元,用于根据时钟同步装置与第二网络设备的传输时延进行数据传输。
第四方面,本申请实施例提供一种时钟同步装置,该时钟同步装置可以包括执行以上第二方面各个步骤的单元或手段。具体的,该时钟同步装置可以包括:获取单元,用于获取终端与该时钟同步装置之间的距离,根据该距离生成第一信息;发送单元,用于向终端发送第一信息,第一信息用于终端确定终端与时钟同步装置的传输时延。
结合第四方面,在一种可能的实现方式中,发送单元,还用于通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,为终端分配的小区中包含第一小区。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,第一信息为用于指示传输时延的信息;或者,第一信息为用于指示终端与时钟同步装置之间的距离的信息。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:获取单元,还用于获取终端与时钟同步装置之间的距离;发送单元,还用于当获取到的终端与时钟同步装置之间的距离相较于时钟同步装置下发第一信息时终端与时钟同步装置之间的距离发生了变化,重新向终端发送第一信息。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,为终端分配的小区包括N个小区,N个小区的无线帧的帧边界对齐,N为大于或等于2的整数。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,发送单元,具体用于在不同的时间窗,通过N个小区中的每个小区,向终端发送指示无线帧的帧边界的发送时刻的时间值;发送单元,还用于向终端发送第二指示信息,第二指示信息用于指示终端在N个小区的每个小区中接收小区的指示无线帧的帧边界的发送时刻的时间值的时间窗。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,时钟同步装置还可以包括:接收单元和分配单元;接收单元,用于接收来自终端的第三指示信息;获取单元,还用于根据第三指示信息,获取需要为终端分配的小区的数量X;分配单元,用于根据数量X,为终端分配N个小区,N大于或等于数量X;其中:第三指示 信息为终端对终端的时钟的精度要求,不同精度要求对应不同的数量X;或者,第三指示信息为终端的第一业务的标识,不同业务的标识对应不同的数量X;或者,第三指示信息为第一业务的服务质量QoS标识,不同的QoS标识对应不同的数量X;终端的第一业务对终端的时钟的精度要求大于终端的其他业务对终端的时钟的精度要求。
结合第四方面或上述可能的实现方式,在另一种可能的实现方式中,接收单元,还用于接收第二网络设备发送的第三时间值,第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻;发送单元,还用于向终端发送第三时间值。
第五方面,本申请实施例提供一种时钟同步装置,该时钟同步装置可以包括:处理器和接口电路,所述处理器用于通过所述接口电路与其他装置,如网络设备通信,并执行以上第一方面提供的方法。该处理器可以包括一个或多个。
第六方面,本申请实施例提供一种时钟同步装置,该时钟同步装置可以包括:处理器和接口电路,所述处理器用于通过所述接口电路与其他装置,如终端通信,并执行上述第二方面提供的方法。该处理器可以包括一个或多个。
第七方面,本申请实施例提供一种时钟同步装置,该时钟同步装置可以包括处理器,用于与存储器相连,用于调用所述存储器中存储的程序,以执行上述第一方面提供的方法。该存储器可以位于该装置之内,也可以位于该装置之外。且该处理器包括一个或多个。
第八方面,本申请实施例提供一种终端,该终端可以包括如上述第二方面提供的时钟同步装置。
第九方面,本申请实施例提供一种网络设备,该网络设备可以包括如上述第三方面提供的时钟同步装置。
第十方面,本申请实施例提供一种计算机可读存储介质,包括:计算机软件指令;当计算机软件指令在时钟同步装置或内置在时钟同步装置的芯片中运行时,使得时钟同步装置执行以上第一方面或第二方面的方法。
第十一方面,本申请实施例提供一种时钟同步的程序,该程序在被处理器执行时用于执行以上第一方面或第二方面的方法。
第十二方面,本申请实施例提供一种程序产品,例如计算机可读存储介质,包括以上程序。
可见,在以上各方面中,终端能获得较为精确的传输时延。这样,终端根据获得的较为精确的传输时延进行时钟的同步,便可使终端和第一网络设备之间时钟的同步误差降低。
正如上所示,终端可以获取到用于确定传输时延的第一信息,如从第一网络设备处接收得到的。该第一信息可以是第一网络设备利用雷达或无线定位的方式,对第一网络设备与终端之间的距离进行测量,得到的距离或者根据测量的距离确定的第一网络设备与终端之间的传输时延,这种方式得到的传输时延相较于利用TA确定传输时延更为精确。
另外,终端通过获取多个小区的无线帧的帧边界的接收时刻,来确定无线帧的帧边界,可减小终端确定无线帧的帧边界时的误差,从而进一步降低了终端和第一网络设备之间时钟的同步误差。第一网络设备在向终端通知时间值时,发送的该时间值的 无线帧没有时间约束,也就是说,第一网络设备可以根据自己的调度确定向终端通知时间值的无线帧。如,第一网络设备在哪个无线帧的负荷轻,便采用哪个无线帧向终端通知时间值。终端在切换到目标小区(如上述第二网络设备的第二小区)后,无需做随机接入,通过第二网络设备通知的子帧边界的发送时刻的精准时间,或通过读取目标小区的授时消息便可获得TA,进而在目标小区进行数据传输。
图1为本申请实施例提供的一种通信***的示意图;
图2为本申请实施例提供的一种网络架构的示意图;
图3为本申请实施例提供的另一种网络架构的示意图;
图4为本申请实施例提供的一种授时消息的传输示意图;
图5为本申请实施例提供的一种时钟同步方法的流程示意图;
图6为本申请实施例提供的另一种时钟同步方法的流程示意图;
图7为本申请实施例提供的另一种授时消息的传输示意图;
图8为本申请实施例提供的又一种时钟同步方法的流程示意图;
图9为本申请实施例提供的又一种授时消息的传输示意图;
图10为本申请实施例提供的又一种授时消息的传输示意图;
图11为本申请实施例提供的又一种时钟同步方法的流程示意图;
图12为本申请实施例提供的又一种时钟同步方法的流程示意图;
图13为本申请实施例提供的一种网络设备的结构示意图;
图14为本申请实施例提供的一种终端的结构示意图。
以下,对本申请中的部分用语进行说明:
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)中的无线终端等。
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设备。
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。
请参考图1,其为本申请实施例提供的一种通信***的示意图。如图1所示,终端101(如图1中所示的操作臂终端)接入到无线网络,以通过无线网络获取外网(例如因特网)的服务,或者通过无线网络与其它终端通信。该无线网络可以包括RAN 102和核心网(core network,CN)103。其中,RAN 102用于将终端101接入到无线网络,CN 103用于对终端进行管理并提供与外网通信的网关。
请参考图2,其为本申请实施例提供的一种网络架构的示意图。如图2所示,该网络架构包括CN设备和RAN设备。
其中RAN设备包括基带装置和射频装置,其中基带装置可以由一个节点实现,也可以由多个节点实现,射频装置可以从基带装置拉远独立实现,也可以集成基带装置中,或者部分拉远部分集成在基带装置中。例如,在长期演进(Long Term Evolution,LTE)通信***中,RAN设备(eNB)包括基带装置和射频装置,其中射频装置可以相对于基带装置拉远布置,例如射频拉远单元(remote radio unit,RRU)相对于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)层。
这些协议层的功能可以由一个节点实现,或者可以由多个节点实现;例如,在一种演进结构中,RAN设备可以包括集中单元(centralized unit,CU)和分布单元(distributed unit,DU),多个DU可以由一个CU集中控制。如图2所示,CU和DU可以根据无线网络的协议层划分,例如PDCP层及以上协议层的功能设置在CU,PDCP以下的协议层,例如RLC层和MAC层等的功能设置在DU。
这种协议层的划分仅仅是一种举例,还可以在其它协议层划分,例如在RLC层划分,将RLC层及以上协议层的功能设置在CU,RLC层以下协议层的功能设置在DU;或者,在某个协议层中划分,例如将RLC层的部分功能和RLC层以上的协议层的功能设置在CU,将RLC层的剩余功能和RLC层以下的协议层的功能设置在DU。此外,也可以按其它方式划分,例如按时延划分,将处理时间需要满足时延要求的功能设置 在DU,不需要满足该时延要求的功能设置在CU。
此外,射频装置可以拉远,不放在DU中,也可以集成在DU中,或者部分拉远部分集成在DU中,在此不作任何限制。
请继续参考图3,相对于图2所示的架构,还可以将CU的控制面(CP)和用户面(UP)分离,分成不同实体来实现,分别为控制面CU实体(CU-CP实体)和用户面CU实体(CU-UP实体)。
在以上网络架构中,CU产生的信令可以通过DU发送给终端,或者终端产生的信令可以通过DU发送给CU。DU可以不对该信令进行解析而直接通过协议层封装而透传给终端或CU。以下实施例中如果涉及这种信令在DU和终端之间的传输,此时,DU对信令的发送或接收包括这种场景。例如,RRC或PDCP层的信令最终会处理为PHY层的信令发送给终端,或者,由接收到的PHY层的信令转变而来。在这种架构下,该RRC或PDCP层的信令,即也可以认为是由DU发送的,或者,由DU和射频发送的。
在以上实施例中CU划分为RAN侧的网络设备,此外,也可以将CU划分为CN侧的网络设备,在此不做限制。
本申请以下实施例中的装置,根据其实现的功能,可以位于终端或网络设备。当采用以上CU-DU的结构时,网络设备可以为CU节点、或DU节点、或包括CU节点和DU节点的RAN设备。
在现有的通信***中,需要相互通信的各节点之间(如不同网络设备之间,网络设备与终端之间)能够实现时钟同步。目前时钟同步的主要方式是GPS和1588。但是,对终端来说并不适用。
因此,提出了一种能够适用终端的时钟同步方法。具体的是:网络设备将用于指示某个无线帧的结束位置的时刻的时间值通知终端,终端利用该时间值和传输时延进行时钟同步。
其中,网络设备通知给终端的时间值具体指示的是网络设备发送无线帧的结束位置的时刻。例如,如图4所示,网络设备将用于指示网络设备发送无线帧M的结束位置的时刻的时间值携带在无线帧M-2中发送给终端。如,网络设备在无线帧M-2中通知终端:无线帧M的结束位置对应的时间值是2018年12月22日14时30分28秒485ms793.25us。
终端在接收到无线帧M-2后,便可获知网络设备发送无线帧M的结束位置的时刻所对应的时间值为2018年12月22日14时30分28秒485ms793.25us。终端还可以对接收该无线帧M的结束位置的时刻进行检测。如,终端检测得到的无线帧M的结束位置的时刻为T1。
由于网络设备与终端之间会存在传输时延,因此,终端获得的网络设备发送无线帧M的结束位置的时刻所对应的时间值加上传输时延,应该等于终端检测得到的无线帧M的结束位置的时刻对应的时间值。这样,便可实现终端时钟与网络设备时钟的同步。也就是说,终端可以根据获得的网络设备发送无线帧M的结束位置的时刻所对应的时间值和传输时延,确定终端检测得到的无线帧M的结束位置的时刻(如上述T1)对应的时间值。如,传输时延为200us,则终端可以确定出T1这一时刻对应的时间值 为2018年12月22日14时30分28秒485ms993.25us。这样,终端与网络设备之间的时钟便同步了。
可以看到的是,终端需要获知网络设备与终端之间的传输时延,才能够根据网络设备通知的时间值进行时钟同步。终端可以确定定时提前量(timing advance,TA),然后,将TA的二分之一作为传输时延。
采用上述方法进行时钟同步会存在误差。其中,这种方法所引入的误差可以参见表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。
表1
其中,在表1中,UE传输帧定时(TA调整精度),TA调整粒度,以及基站接收帧定时均来自于TA。也就是说,终端确定出的TA误差较大。如果将TA的二分之一作为传输时延,这会使得终端确定的传输时延误差较大,从而导致终端和网络设备之间时钟的同步误差较大。
基于此,提供一种时钟同步方法:网络设备利用雷达或无线定位的方式,对网络设备与终端之间的距离进行测量,并将测量得到的距离或者根据测量的距离确定的网络设备与终端之间的传输时延通知给终端。这种方式下得到的传输时延相较于利用TA确定传输时延更为精确。也就是说,终端能获得较为精确的传输时延。这样,终端根据获得的较为精确的传输时延进行时钟的同步,便可使终端和网络设备之间时钟的同步误差降低。
需要说明的是,本申请实施例所述的时钟同步方法可以应用工业控制网中。该工业控制网可以以上述图1所示的通信***为依托。作为一种示例,上述通信***可以5G NR***,当然,上述通信***也可以是其它通信***,只要是工业控制网所依托 的通信***均可,本申请实施例在此并不做具体限制。
下面结合附图对本申请实施例提供的时钟同步方法进行详细介绍。
图5为本申请实施例提供的一种时钟同步方法的流程示意图,如图5所示,该方法可以包括:
501、第一网络设备向终端发送第一信息。
502、终端获取上述第一信息,该第一信息用于确定终端与第一网络设备的传输时延。
在一些实施例中,第一信息可以为用于指示终端与第一网络设备的传输时延的信息。其中,第一信息具体的可以是传输时延本身,也可以是用于指示传输时延的指示信息。
本实施例中的第一信息与TA不同的是,不是通过网络设备和终端之间的信令交互获得,具有更准确表征网络设备和终端之间的距离或时延的特性。
示例性的,第一网络设备可以获取终端与第一网络设备之间的距离。例如,第一网络设备可以通过雷达测量得到终端与第一网络设备之间的距离。第一网络设备也可以通过无线定位的方式测量得到终端与第一网络设备之间的距离。第一网络设备获得的距离可以是经过一次测量得到的结果,也可以是将多次测量得到的结果进行平均或加权平均后得到的结果。
第一网络设备根据获取到的距离可以生成上述第一信息。如第一网络设备根据获得的终端与第一网络设备之间的距离,可以确定出终端与第一网络设备的传输时延。
例如,第一网络设备将获取到的距离除以光速,便可确定出自身与终端的传输时延。又例如,第一网络设备与终端之间可能存在多径偏移。第一网络设备在确定与终端之间的传输时延时,也可以将多径偏移造成的传输时延考虑进来。如,以终端是位于工厂厂房中的操作臂终端为例。第一网络设备与操作臂终端之间可能会存在各种阻挡物,导致第一网络设备与操作臂终端之间出现多径偏移。因此,第一网络设备可以将获得的操作臂终端与第一网络设备之间的距离除以光速确定出传输时延1,根据信道传输模型确定出由于多径偏移造成的传输时延2。第一网络设备根据传输时延1和传输时延2便可获得操作臂终端与第一网络设备的传输时延(如,将传输时延1与传输时延2求和得到操作臂终端与第一网络设备的传输时延)。
其中,信道传输模型是第一网络设备确定的,其包含了不同距离(终端与第一网络设备之间的距离)下传输时延的概率分布,如第一距离下,视距直传路径的传输时延t_1,其概率为95%,非视距路径的传输时延t—2,其概率为5%;第二距离下,视距直传路径的传输时延t_3,其概率为90%,非视距路径的传输时延t_4,其概率为10%等。第一网络设备根据终端与第一网络设备之间的距离,利用该信道传输模型便可确定出由于多径偏移造成的传输时延2。如操作臂终端与第一网络设备之间的距离为第一距离,那么传输时延2等于t_1*95%与t_2*5%之和。然后,第一网络设备可以将获得的传输时延或用于指示该传输时延的指示信息通知给终端。
相应的,终端便可获取到传输时延或用于指示该传输时延的指示信息。如果终端获取到的是用于指示传输时延的指示信息,根据获取到用于指示该传输时延的指示信息,终端可确定出终端与第一网络设备的传输时延。
在另一些实施例中,第一信息可以为用于指示终端与第一网络设备之间的距离的信息。其中,该第一信息可以是终端与第一网络设备之间的距离本身,也可以是用于指示该距离的指示信息。也就是说,第一网络设备在获取到终端与第一网络设备之间的距离之后,可以将获得的距离或用于指示该距离的指示信息发送给终端。相应的,终端便可获取到终端与第一网络设备之间的距离或用于指示该距离的指示信息。根据获取到的终端与第一网络设备之间的距离或用于指示该距离的指示信息,终端可以确定出终端与第一网络设备的传输时延。
当然,如果考虑第一网络设备与终端之间的多径偏移造成的传输时延,第一网络设备也可以将信道传输模型发送给终端。这样,终端可以根据获取的用于指示终端与第一网络设备之间的距离的信息和信道传输模型确定出终端与第一网络设备之间的传输时延。其中,第一网络设备可以将该信道传输模型和用于指示终端与第一网络设备之间的距离的信息携带在同一个信息(如第一信息)中传输给终端,也可以将信道传输模型与用于指示终端与第一网络设备之间的距离的信息携带在不同的信息中传输给终端,本实施例对此并不做具体限制。需要说明的是,在本实施例中,终端确定传输时延的具体实现可以参考第一网络设备确定传输时延的具体实现,此处不再详细赘述。
需要说明的是,上述示例是以第一信息是第一网络设备下发给终端的为例进行说明的,也就是说,上述步骤502具体的可以是终端接收来自第一网络设备的第一信息。当然,上述第一信息也可以是终端通过其他方式获得的,也即终端与第一网络设备的传输时延可以是终端通过其他方式获得的。如终端可以通过雷达测量得到自身与第一网络设备之间的距离,然后根据测量得到的距离确定出与第一网络设备的传输时延。又如,终端可以利用自身的定位模块测量得到自身与第一网络设备之间的距离,然后根据测量得到的距离确定出与第一网络设备的传输时延。再如,终端还可以根据后台的配置获取自身到第一网络设备之间的距离,然后根据获取的距离确定出与第一网络设备的传输时延。当终端通过其他方式获得第一信息时,可以不执行上述步骤501。
503、第一网络设备通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,该为终端分配的小区中包含第一小区。
其中,无线帧的帧边界可以是无线帧的起始位置,也可以是结束位置。另外,由于第一网络设备发送给终端的时间值所指示的是第一网络设备发送无线帧的帧边界的时刻,因此,为了便于描述,在本申请实施例中,将第一网络设备发送给终端的时间值所指示的无线帧的帧边界的时刻,称为无线帧的帧边界的发送时刻。
第一网络设备可以通过为终端分配的小区,将用于指示某个无线帧的起始位置或结束位置的发送时刻的时间值通知给终端,通知的该时间值可用于终端进行时钟同步。在一些实施例中,第一网络设备可以通过为终端分配的小区,向终端发送授时消息,该授时消息中携带指示无线帧的起始位置或结束位置的发送时刻的时间值。
例如,为终端分配的小区中包括第一小区,以无线帧的帧边界为结束位置为例。第一网络设备可以通过第一小区,在无线帧M-2中向终端发送授时消息,该授时消息中携带一时间值(如称为第一时间值),该时间值可用于指示无线帧M的结束位置的发送时刻。其中,该授时消息可以通过广播的方式,或专用信令的方式发送给终端。
需要说明的是,第一网络设备可以周期性的通过为终端分配的小区,向终端发送 指示无线帧的帧边界的发送时刻的时间值,用于终端进行时钟同步。第一网络设备也可以不定期的通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,如第一网络设备可以在确定自身的时钟有跳变时,通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,用于终端进行时钟同步。
504、终端获取第一时间值,该第一时间值用于指示第一网络设备的第一小区的无线帧的帧边界的发送时刻。
例如,结合上述步骤503中的示例,步骤504具体的可以是:终端通过第一小区,接收第一网络设备在无线帧M-2中发送的授时消息,以获得用于指示该第一小区的无线帧M的结束位置的发送时刻的时间值,即获得第一时间值。如第一时间值:2018年12月29日13时14分36秒587ms323.25us。
505、终端根据传输时延和第一时间值,确定第一小区的无线帧的帧边界的接收时刻对应的第二时间值。
其中,对于终端来说,其可以通过同步序列检测以获得某个无线帧的帧边界(起始位置或结束位置)的时刻,后续终端将在这个时刻开始接收或结束接收该无线帧,因此,为了便于描述,在本申请实施例中,将终端检测得到的无线帧的帧边界的时刻称为无线帧的帧边界的接收时刻。需要说明的是,本申请实施例中所述的时刻(如接收时刻,发送时刻)指的是时间轴上的一点。时刻对应的时间值(如接收时刻对应的时间值,发送时刻对应的时间值)指的是时间轴上这一点对应的坐标值。
理论上来讲,终端检测到的无线帧的帧边界的接收时刻对应的时间值,应该等于,该无线帧的帧边界的发送时刻对应的时间值与传输时延之和,这样终端与第一网络设备的时钟便是同步的。因此,在终端获取到终端与第一网络设备的传输时延,以及用于指示第一小区的无线帧的帧边界的发送时刻的第一时间值后,将传输时延和第一时间值相加,终端便可以确定出该无线帧的帧边界的接收时刻对应的第二时间值,以实现终端与第一网络设备的时钟同步。
例如,结合上述步骤502和步骤504的示例,终端可以获得传输时延(如传输时延为300us)和用于指示第一小区的无线帧M的结束位置的发送时刻的第一时间值(如第一时间值:2018年12月29日13时14分36秒587ms323.25us),终端还可以进行同步序列检测以获得第一小区的该无线帧M的结束位置的接收时刻(如为T1)。终端将第一时间值和传输时延相加,便可确定出第一小区的该无线帧M的结束位置的接收时刻T1对应的第二时间值,第二时间值为2018年12月29日13时14分36秒587ms623.25us。
本申请实施例提供的时钟同步方法,终端能获得较为精确的传输时延。这样,终端根据获得的较为精确的传输时延进行时钟的同步,便可使终端和第一网络设备之间时钟的同步误差降低。例如,终端可以从第一网络设备处接收用于确定传输时延的第一信息。该第一信息可以是第一网络设备利用雷达或无线定位的方式,对第一网络设备与终端之间的距离进行测量,得到的距离或者根据测量的距离确定的第一网络设备与终端之间的传输时延,这种方式得到的传输时延相较于利用TA确定传输时延更为精确。
举例来说,以终端是操作臂终端为例。假定操作臂终端与第一网络设备之间的距 离是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。
可选的,为了能够让终端时钟同步结果更精确,在一些实施例中,根据上述第一信息确定的传输时延的时间精度可以小于或等于上述第一时间值的时间精度。例如,上述第一时间值的时间精度为250ns,以第一信息是终端与第一网络设备的传输时延本身为例,第一网络设备发送给终端的传输时延的时间精度可以小于或等于250ns。时间精度越小,终端时钟同步的结果越精确。
终端可能处于移动状态。随着终端的移动,终端与第一网络设备之间的距离会发生变化,两者之间的传输时延也会随之发生变化。因此,在一些实施例中,终端可以周期性的获取上述第一信息,以便周期性的根据第一信息确定传输时延,从而进行时钟同步,以进一步的降低终端和第一网络设备之间时钟的同步误差。
示例性的,以第一信息是由第一网络设备下发给终端的为例,第一网络设备可以周期性的获取与终端之间的距离,并周期性的向终端发送上述第一信息。如第一信息是终端与第一网络设备的传输时延本身,第一网络设备可以每隔一定时间(如5分钟,30分钟等)对终端与第一网络设备之间的距离进行测量,并将根据测量结果确定的终端与第一网络设备的传输时延通知给终端。又如第一信息是终端与第一网络设备之间的距离本身,第一网络设备可以每隔一定时间对终端与第一网络设备之间的距离进行测量,并将测量结果通知给终端。这样,终端便可周期性的获取第一信息,用于时钟同步。
在其他一些实施例中,如果第一信息是由第一网络设备下发给终端的,那么,第一网络设备也可以在向终端下发了第一信息后,对终端与第一网络设备之间的距离进行监测。如果检测到终端与第一网络设备之间的距离发生了变化,则第一网络设备可以重新向终端下发第一信息,以便终端根据重新下发的第一信息确定与第一网络设备的传输时延,从而进行时钟同步。
例如,以第一信息是终端与第一网络设备的传输时延本身为例。第一网络设备在向终端下发了传输时延1后,可以对终端与第一网络设备之间的距离进行监测。如果获取到当前时刻终端与第一网络设备之间的距离相较于下发传输时延1时终端与第一网络设备之间的距离发生了变化,第一网络设备可以根据当前时刻终端与第一网络设备之间的距离确定传输时延2,并将传输时延2通知给终端,终端可以根据传输时延2进行时钟同步。又例如,以第一信息是终端与第一网络设备之间的距离本身为例。第一网络设备在向终端下发了距离1(终端与第一网络设备之间的距离)后,可以对终端与第一网络设备之间的距离进行监测。如果获取到当前时刻终端与第一网络设备之间的距离2相较于距离1发生了变化,第一网络设备可以将距离2通知给终端,终端可以根据距离2确定传输时延,用于时钟同步。
在另外一些实施例中,终端也可以在获取到第一信息之后,对自身的移动距离进 行监测(如,终端可以通过雷达,无线(如Wifi)定位,人工智能分析,图像分析等方式测量自身的移动距离),如果检测到移动距离大于(或等于)距离门限,说明终端与第一网络设备之间的距离可能发生了变化,两者的传输时延可能发生了变化。此时,终端可以重新获取第一信息,以便根据重新获取到的第一信息确定传输时延,从而进行时钟同步,以进一步的降低终端和第一网络设备之间时钟的同步误差。
示例性的,以第一信息是由第一网络设备下发给终端的为例。在终端接收到第一网络设备下发的第一信息后,终端可以获取终端由获取到该第一信息的时刻开始到当前时刻的移动距离。如果获取到的移动距离大于距离门限,终端可以向第一网络设备发送第一指示信息,该第一指示信息用于指示第一网络设备重新下发第一信息。如以第一信息是终端与第一网络设备的传输时延本身,第一网络设备可以在接收到第一指示信息后,重新获取终端与第一网络设备之间的距离,并将根据获取的距离结果确定的终端与第一网络设备的传输时延重新通知给终端,终端可以根据重新获取到传输时延进行时钟同步。又如以第一信息是终端与第一网络设备之间的距离本身为例,第一网络设备可以在接收到第一指示信息后,重新获取终端与第一网络设备之间的距离,并将获取到的距离通知给终端,终端可以根据重新获取到距离确定传输时延,用于时钟同步。
另外,结合上述表1,可以得到的是,在进行时钟同步的过程中,UE接收帧定时也会引入误差。例如,在SCS等于15kHz时,UE接收帧定时所引入的误差为[12]*64*Tc,在SCS等于30kHz时,UE接收帧定时所引入的误差为[8]*64*Tc。也就是说,终端确定无线帧的帧边界,即检测得到的无线帧的帧边界的接收时刻会存在误差(误差可能达到390ns),这部分误差给终端和第一网络设备之间时钟同步精度也会带来影响。为了可以进一步降低终端和第一网络设备之间时钟的同步误差,进一步的,在终端根据传输时延和第一时间值,确定第一小区的无线帧的帧边界的接收时刻对应的第二时间值,即上述步骤505之前,如图6所示,该时钟同步方法还可以包括以下步骤:
601、终端获取M个小区的无线帧的帧边界的接收时刻,M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数。
602、终端根据M个小区的无线帧的帧边界的接收时刻,更新第一小区的无线帧的帧边界的接收时刻。
示例性的,为了减小终端确定无线帧的帧边界时的误差,第一网络设备可以为终端分配多个小区,且这多个小区的无线帧的帧边界对齐。准确来说,从第一网络设备的角度来看,这多个小区的无线帧的帧边界是对齐的。例如,如图7中的(a)所示,第一网络设备为终端分配了两个小区,分别为小区1和小区2,且从第一网络设备的角度来看,小区1的无线帧的帧边界和小区2的无线帧的帧边界是对齐的,即小区1的无线帧M-2和小区2的无线帧M-2的帧边界对齐,小区1的无线帧M-1和小区2的无线帧M-1的帧边界对齐,小区1的无线帧M和小区2的无线帧M的帧边界对齐。
另外,第一网络设备为终端分配了多个小区后,可以向终端发送通知消息,该通知消息用于告知终端为其分配了多个小区,且这多个小区的无线帧的帧边界对齐。需要说明的是,根据协议规定,网络设备发送无线帧时,帧边界可能向前或向后偏移64Tc,但是网络设备察觉不到。也就是说,为终端分配多个小区的无线帧的帧边界对齐并不 是严格意义上的对齐,不同小区的帧边界之间存在小于64Tc的偏差,也可以认为是其帧边界是对齐的。
这样,终端在根据传输时延和第一时间值,进行时钟同步之前,可以对这第一网络设备为其分配的多个小区均进行无线帧的帧边界检测,即终端获取这多个小区的无线帧的帧边界的接收时刻,其中包括第一小区的无线帧的帧边界的接收时刻。由于不同小区内的信号的传输路径是不完全相同的,因此,终端与第一网络设备在不同小区内的传输时延也不一定相同,这样,终端获取到的多个小区的无线帧的帧边界的接收时刻通常会不一样。因此,在获取到多个小区的无线帧的帧边界的接收时刻后,终端可以根据获取到的这多个小区的无线帧的帧边界的接收时刻,更新第一小区的无线帧的帧边界的接收时刻,以减小确定无线帧的帧边界时的误差,即获得较为准确的第一小区的无线帧的帧边界的接收时刻。在确定出较为准确的第一小区的无线帧的帧边界的接收时刻后,终端可执行上述步骤505,即根据传输时延和第一时间值,确定第一小区的无线帧的帧边界的接收时刻对应的第二时间值,以完成时钟同步。
需要说明的是,这里所说的无线帧与步骤504中第一时间值所指示的无线帧是同一个无线帧。例如,步骤504中第一时间值指示的是第一小区(如小区1)的无线帧M的帧边界的发送时刻,那么这里的无线帧指的是无线帧M,即终端获取的是多个小区的无线帧M的帧边界的接收时刻。
例如,结合上述步骤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,以完成时钟同步。
需要特别说明的,此处的描述是假设第一网络设备为终端分配的多个小区的无线帧号是对齐的,如结合图7的示例,终端获取的是小区1的无线帧M的帧边界的接收时刻,同时获取的也是小区2的无线帧M的帧边界的接收时刻。在实际使用时,第一网络设备为终端分配的多个小区的无线帧号也可以是不对齐的,只需确保多个小区的无线帧的帧边界是对齐的即可。
这样,终端通过获取多个小区的无线帧的帧边界的接收时刻,来确定无线帧的帧边界,可减小终端确定无线帧的帧边界时的误差,从而进一步降低了终端和第一网络设备之间时钟的同步误差。
另外,进一步的,如图8所示,上述步骤504终端获取第一时间值,具体的可以包括以下步骤:
801、终端接收M个小区的指示无线帧的帧边界的发送时刻的时间值。
其中,所述M个小区的无线帧的帧边界对齐,M个小区包括第一小区,M是大于或等于2的整数。
802、终端根据M个小区的时间值,确定第一时间值。
示例性的,为了减小终端确定出的无线帧的接收时刻对应的第二时间值的误差,第一网络设备可以通过为终端分配的多个小区,分别向终端发送指示该小区的无线帧的帧边界的发送时刻的时间值。也就是说,上述步骤503具体的可以是,第一网络设备通过为终端分配的多个小区,向终端发送指示该小区的无线帧的帧边界的发送时刻的时间值。如,第一网络设备通过为终端分配的多个小区,向终端发送授时消息,授时消息中携带指示该小区的无线帧的帧边界的发送时刻的时间值。多个小区的无线帧的帧边界是对齐的,多个小区包括第一小区。这样,终端便可以接收多个小区的指示无线帧的帧边界的发送时刻的时间值。
另外,第一网络设备向终端指示的可以是多个小区的同一个无线帧的帧边界的发送时刻的时间值,也可以不是同一个无线帧的帧边界的发送时刻的时间值。如果指示的是同一个无线帧的帧边界的发送时刻的时间值,终端可以将接收到的多个小区的时间值进行平均或加权平均(其中,各个小区对应的加权值可以是第一网络设备配置给终端的),以确定出第一时间值。如果指示的不是同一个无线帧的帧边界的发送时刻的时间值,终端可以经推算得出同一个无线帧(该同一个无线帧指的是与第一小区指示的无线帧是同一个无线帧)的帧边界的发送时刻的时间值,然后再根据推算出的时间值和接收到的第一小区的指示无线帧的帧边界的发送时刻的时间值,确定出第一时间值。其中,“同一个无线帧”指的是第一网络设备发送时,时间边界对齐的无线帧,不同小区中的同一个无线帧的无线帧号可以相同,也可以不同。
例如,如图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即为第一时间值。
当然,终端确定出第一时间值后,可以根据第一时间值和传输时延(如传输时延为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所示的实施例中对应内容的具体描述,此处不再详细赘述。
这样,第一网络设备在向终端通知时间值时,发送的该时间值的无线帧没有时间约束,也就是说,第一网络设备可以根据自己的调度确定向终端通知时间值的无线帧。如,第一网络设备在哪个无线帧的负荷轻,便采用哪个无线帧向终端通知时间值。
另外,正如上述步骤503中的描述,第一网络设备通过为终端分配的小区,可以采用广播或专用信令的方式向终端发送授时消息,以将该小区的指示无线帧的帧边界的发送时刻的时间值通知给终端。在小区内终端数量较多的情况下,第一网络设备通常是采用广播的方式发送授时消息的,且在这种方式下,授时消息是周期性发送的。
而当终端对自身时钟的精度要求比较高时,由于终端的时钟漂移,可能会需要第一网络设备在一个小区中更频繁地发送授时消息,也即终端需要更频繁的读取授时消息。否则,终端在一个授时消息发送周期的后半段,其自身维护的时钟可能漂移过大,超出门限,达不到对时钟精度的要求。这种情况下,第一网络设备可以通过将授时消息的发送周期减小来达到目的。但是,这会占用更多的无线资源,并且授时消息的发送周期通常就是重用***信息的发送周期,如果减小***信息的发送周期(或称为***消息窗口(SI window)),会导致其它不相关的终端也被迫多次读取***信息,显然,这是不必要的。
在本申请实施例中,当第一网络设备为终端分配了多个小区时,在每个小区内的授时消息的发送周期不变的情况下,第一网络设备可以保证在该多个小区中各个小区的授时消息的发送周期是错开的,即上述步骤503具体的可以包括:第一网络设备在不同的时间窗,通过为终端分配的多个小区中的每个小区,向终端发送指示无线帧的帧边界的发送时刻的时间值。这样,终端接收不同小区的指示无线帧的帧边界的发送时刻的时间值的时间窗便是不同的。也就是说,无需第一网络设备在一个小区中频繁的发送授时消息,也无需减小***消息的发送周期,对于终端来说,其通过读取多个小区的授时消息(授时消息中携带指示无线帧的帧边界的发送时刻的时间值),便可使得读取小区的授时消息的周期减小,达到了更频繁读取授时消息的目的。
例如,如图10所示,以第一网络设备为终端分配了两个小区,分别为小区1和小区2为例。第一网络设备在时间窗1,通过小区1向终端发送授时消息,该授时消息中携带小区1的指示无线帧的帧边界的发送时刻的时间值(如图10中的时间值(time)1)。第一网络设备在时间窗2,通过小区2向终端发送授时消息,该授时消息中携带小区2的指示无线帧的帧边界的发送时刻的时间值(如图10中的时间值(time)2)。其中,时间窗1和时间窗2不同,是错开的。
当然,第一网络设备可以向终端发送第二指示信息,该第二指示信息用于指示终端在第一网络设备的为终端分配的多个小区的每个小区中接收该小区的指示无线帧的帧边界的发送时刻的时间值的时间窗。在上述步骤801之前,终端可以接收来自第一 网络设备的该第二指示信息。这样,终端便可根据该第二指示信息指示的时间窗,接收第一网络设备为终端分配的多个小区的时间值。例如,结合图10,第一网络设备可以向终端发送第二指示信息,该第二指示信息用于指示终端在小区1中接收授时消息的时间窗1,在小区2中接收授时消息的时间窗2。终端根据该第二指示信息指示的时间窗1和时间窗2,便可在小区1和小区2中分别接收授时消息,以获得小区1的指示无线帧的帧边界的发送时刻的时间值和小区2的指示无线帧的帧边界的发送时刻的时间值。且由于时间窗1和时间窗2是错开的,因此终端可以更频繁读取授时消息,使得同步后的时钟精度能够满足终端的要求。
需要说明的是,上述为终端分配的多个小区可以位于同一个网络设备,也可以位于不同的网络设备。如果多个小区位于同一个网络设备,则网络设备可以内部自行保证在该多个小区中各个小区的授时消息的发送周期是错开的。
如果多个小区位于不同网络设备,则网络设备之间可以通过交互,以保证在该多个小区中各个小区的授时消息的发送周期是错开的。例如,多个小区分别位于网络设备1和网络设备2。网络设备1可以向网络设备2发送位于网络设备1的各个小区指示无线帧的帧边界的发送时刻的时间值的时间窗,如网络设备1通知网络设备2,网络设备1发送授时消息的时间窗(或称为授时周期,发送周期)是Y1个无线帧,某次(如第一次)发送授时消息的时间窗是从哪个无线帧到哪个无线帧,下一次准备在无线帧号为i的无线帧上发送授时消息。网络设备2也可以向网络设备1向发送位于网络设备2的各个小区指示无线帧的帧边界的发送时刻的时间值的时间窗,如网络设备2通知网络设备1,网络设备2发送授时消息的时间窗(或称为授时周期,发送周期)是Y2个无线帧,某次(如第一次)发送授时消息的时间窗是从哪个无线帧到哪个无线帧,下一次准备在无线帧号为j的无线帧上发送授时消息。通过网络设备之间的交互,最终便可保证在为终端分配的多个小区中各个小区的授时消息的发送周期是错开的。另外,在该过程中,网络设备之间交互的信息通知给终端便可,网络设备可以读取该消息,也可以不读取。
在一些实施例中,根据上述图6及图8所示实施例中的描述,可以理解的是,第一网络设备可以通过为终端分配多个小区,以减小终端确定无线帧的帧边界时的误差,和/或,降低终端确定无线帧的接收时刻对应的时间值时的误差,从而降低时钟同步的误差。显然,为终端分配的小区数量越多,误差会越小,时钟同步的误差越小,终端时钟的精度会越高。但是,为终端分配的小区数量越多,终端的数据处理量越大,耗电也就越多。考虑到不同的终端,终端的不同的业务对时钟精度的要求不同,因此,第一网络设备可以根据终端的指示为终端分配合适数量的小区。即本申请实施例还可以包括:终端向第一网络设备发送第三指示信息,该第三指示信息用于第一网络设备为终端分配小区。第一网络设备可以接收来自终端的第三指示信息,根据该第三指示信息为终端分配合适数量的小区。
在一些实施例中,上述第三指示信息可以为终端对终端的时钟的精度要求。例如,终端可以向第一网络设备上报自身对确定出的无线帧的帧边界的接收时刻的误差要求,如误差在XXXXns之内。第一网络设备根据该误差要求为终端分配合适数量的小区。
在另一些实施例中,上述第三指示信息可以为终端的第一业务的标识或第一业务 的服务质量(quality of service,QoS)标识。终端的第一业务对终端的时钟的精度要求大于终端的其他业务对终端的时钟的精度要求。例如,终端可以将自身目前正在进行的所有业务中,对时钟的精度要求最高的那个业务(即第一业务)的标识,或者第一业务的QoS标识上报给第一网络设备。第一网络设备中可以存储有不同的业务标识(或不同的QoS标识)与不同的小区数量的对应关系。根据该对应关系,第一网络设备可以为终端分配合适数量的小区。另外,终端也可以将自己测量得到的一个或多个小区的标识(如频点)上报给第一网络设备,如携带在第三指示信息中上报给第一网络设备,当然,也可以携带在其他指示信息中上报给第一网络设备。这样,第一网络设备可以根据终端上报的小区的标识和终端对时钟的精度要求(或第一业务的标识或第一业务的QoS标识)为终端分配合适数量的小区。
在其他一些实施例中,第一网络设备为终端分配了合适数量的小区(如为终端分配了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的小区配置另一个信号强度门限。
在另外一些实施例中,第一网络设备在为终端分配小区时,也可以相较于终端的需求多分配几个。示例性的,第一网络设备根据上述第三指示信息,确定出需要为终端分配的小区的数量为X,但第一网络设备为该终端分配N个小区(N大于或等于X)。例如,根据终端对时钟的精度要求,第一网络设备确定出只需要使用三个小区便可以满足终端的要求了,但第一网络设备为终端分配五个小区。终端在进行时钟同步,如确定无线帧的帧边界时,可以使用该五个小区进行无线帧的帧边界的确定,也可以根据信号强度,选择信号最强的三个小区进行无线帧的帧边界的确定。当然,选择出的这三个小区的信号强度都大于信号强度门限。
另外,需要说明的是,在本申请实施例中,第一网络设备为终端分配的多个(如N个)小区,可以仅用于终端进行无线帧的帧边界检测和/或确定无线帧的接收时刻对应的时间值,即仅用于进行时钟同步,而不做其他用途,如不用于终端进行载波聚合。当然,也可以用于终端进行载波聚合,本申请实施例在此并不做具体限制。且,为终端分配的多个小区可以是在物理上共站的,也可以是不共站的。只需确保这多个小区的无线帧的帧边界对齐,即信号发出时的时间是对齐的即可。当然,这多个小区的无线帧的帧边界的差值小于[2]*64*Tc也是可以的,也能降低终端与第一网络设备的时钟 同步误差。
需要说明的是,上述确定无线帧的帧边界的过程(即步骤601和步骤602),以及确定第一小区的无线帧的帧边界的发送时刻对应的时间值的过程(即步骤801和步骤802),与上述确定终端与第一网络设备之间的传输时延的过程,三者之间并不相互依赖,可独立执行。也就是说,在具体实现时,可以采用TA的方法确定终端与第一网络设备之间的传输时延(如获取TA,传输时延等于TA的二分之一),但采用上述步骤601和步骤602确定无线帧的帧边界。或者,可以采用TA的方法确定终端与第一网络设备之间的传输时延,但采用上述步骤801和步骤802确定无线帧的帧边界的发送时刻对应的时间值。本申请实施例在此并不做具体限制。当然,也可以同时采用本申请实施例中所述的过程确定传输时延,确定无线帧的帧边界,并确定无线帧的帧边界的发送时刻对应的时间值,这样,可以使得终端与第一网络设备之间的时钟的同步误差更小。
在终端与第一网络设备之间的时钟同步后,如果终端需要切换到第二网络设备,目前,需要终端通过随机接入过程获得TA,才能利用该TA与第二网络设备进行数据传输。在本申请实施例中,无需终端做随机接入,便可获得TA。
在一些实施例中,进一步的,如图11所示,该方法还可以包括以下步骤:
1101、第一网络设备向第二网络设备发送切换请求。
其中,终端在第一网络设备的小区(如小区1)中驻留时,可以对与小区1相邻的小区的信号质量进行测量,还可以将测量结果携带在测量报告中上报给第一网络设备。第一网络设备接收到终端发送的测量报告后,如果确定出测量报告中指示的第二网络设备的第二小区的信号质量好时,可以向第二网络设备发送切换请求。该切换请求用于请求第二网络设备,终端将切换到该第二网络设备的第二小区。
1102、第二网络设备向第一网络设备发送切换响应,该切换响应中包括第三时间值,该第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻。
第二网络设备在接收到第一网络设备发送的切换请求后,可以向第一网络设备返回切换响应。在本申请实施例中,该切换响应中可以携带用于指示第二网络设备的第二小区的子帧边界的发送时刻的第三时间值。第二网络设备可以将第二小区(终端将要切换到的目标小区)的子帧边界的精准时间通知给第一网络设备。该子帧边界可以是子帧的起始位置,也可以是结束位置。例如,以子帧边界是起始位置为例。第二网络设备可以通过X2接口,通知第一网络设备,第二网络设备的第二小区的子帧的起始位置的时间值是在2018年12月29日14时38分49秒306ms 405us。其中,该第三时间值可以是一个显式(或明文)时间值,也即第一网络设备可读,也可以是一个隐式时间值,如携带在一个容器(container)中,也即第一网络设备不可读。
1103、第一网络设备向终端发送切换命令,切换命令中包括上述第三时间值。
第一网络设备在接收到上述第三时间值后,可以将该第三时间值携带在切换命令中发送给终端。
1104、终端接收第一网络设备发送的第三时间值。
1105、终端在切换到上述第二小区后,获取第四时间值,该第四时间值用于指示第二小区的子帧边界的接收时刻。
1106、终端根据第三时间值和第四时间值,确定终端与第二网络设备的传输时延。
终端可以在切换到第二网络设备的第二小区后,与第二网络设备进行下行同步。在下行同步的这段时间内,终端内部的时钟继续运行,且在这段时间内可以不考虑第二网络设备和终端的时钟漂移。终端可以通过检测同步序列识别出子帧。另外,对应自己维护的时钟,终端可以获取到识别出的子帧的子帧边界(如起始位置)的接收时刻对应的时间值(即第四时间值)是2018年12月29日14时38分49秒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。
或者,终端也可以根据这些时间值得到可能的传输时延,如,如果终端认为发送时刻对应的时间值为“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。
1107、终端根据终端与第二网络设备的传输时延进行数据传输。
在终端获取到下行传输时延后,将下行传输时延乘以2便可得到TA,从而在终端有数据需要传输时,便可利用该TA进行数据传输。
在另一些实施例中,进一步的,如图12所示,该方法还可以包括以下步骤:
1201、第一网络设备向第二网络设备发送切换请求。
1202、第二网络设备向第一网络设备发送切换响应。
1203、第一网络设备向终端发送切换命令。
1204、终端在切换到第二网络设备的第二小区后,获取第二小区的***帧号(system frame number,SFN),接收第二网络设备的发送的第五时间值,该第五时间值用于指示第二小区的无线帧的帧边界的发送时刻。
如图11所示的实施例中的描述,在第一网络设备确定出第二网络设备的第二小区的信号质量好,终端可以切换到该第二网络设备的第二小区。区别于图11所示的实施例,终端在切换到第二小区后,可以读取MIB消息以获得第二小区的SFN,并接收第二网络设备发送的用于指示第二小区的无线帧N的帧边界的发送时刻的第五时间值。如第二网络设备向终端发送授时消息,该授时消息中指示“SFN=N的无线帧的结束位置的发送时刻的时间值(即第五时间值)是2018年12月29日14时38分49秒302ms405us”。授时消息可以通过广播或专用信令的方式发送,此处不作具体限定。
1205、终端根据上述SFN,获取第六时间值,该第六时间值用于指示第二小区的无线帧的帧边界的接收时刻。
终端可以通过检测同步序列,确定出该无线帧N的帧边界(如结束位置)的接收时刻,并根据自己维护的时钟,确定该接收时刻对应的时间值(即第六时间值)是“2018年12月29日14时38分49秒302ms705us”。
1206、终端根据第五时间值和第六时间值,确定终端与第二网络设备的传输时延。
根据上述第五时间值“2018年12月29日14时38分49秒302ms 405us”和第六时间值“2018年12月29日14时38分49秒302ms705us”,终端可以确定出终端与第二网络设备之间的下行传输时延是300us。
1207、终端根据终端与第二网络设备的传输时延进行数据传输。
在终端获取到下行传输时延后,将下行传输时延乘以2便可得到TA,从而在终端有数据需要传输时,便可利用该TA进行数据传输。
这样一来,采用图11或图12所示的方法,终端在切换到目标小区(如上述第二网络设备的第二小区)后,无需做随机接入,通过第二网络设备通知的子帧边界的发送时刻的精准时间,或通过读取目标小区的授时消息便可获得TA,进而在目标小区进行数据传输。
本申请实施例还提供用于实现以上任一种方法的装置,例如,提供一种时钟同步装置包括用以实现以上任一种方法中终端所执行的各个步骤的单元(或手段)。
例如:时钟同步装置可以包括:获取单元,如执行上述方法中的步骤502获取第一信息,步骤504获取第一时间值,步骤601获取M个小区的无线帧的帧边界的接收时刻,步骤1105获取第四时间值等。
确定单元,如执行上述方法中的步骤505根据传输时延和第一时间值,确定第一小区的无线帧的所述帧边界的接收时刻对应的第二时间值,步骤802根据M个小区的时间值确定第一时间值,步骤1106确定终端与第二网络设备的传输时延等。
时钟同步装置还可以包括:发送单元,如执行向第一网络设备发送第一指示信息, 以指示第一网络设备重新下发第一信息的操作等。
更新单元,如执行步骤602根据M个小区的无线帧的帧边界的接收时刻,更新第一小区的无线帧的帧边界的接收时刻。
接收单元,如执行步骤801接收M个小区的指示无线帧的所述帧边界的发送时刻的时间值,步骤1104接收第三时间值等。
传输单元,如执行步骤1107根据时钟同步装置与第二网络设备的传输时延进行数据传输。
再如,还提供另一种时钟同步装置,包括用以实现以上任一种方法中网络设备所执行的各个步骤的单元(或手段)。如上述第一网络设备,第二网络设备。
例如:时钟同步装置可以包括:发送单元,如执行上述方法中的步骤501向终端发送第一信息,步骤503通过为终端分配的小区,向终端发送指示无线帧的帧边界的发送时刻的时间值,步骤1101、步骤1201向第二网络设备发送切换请求,步骤1103、步骤1203向终端发送切换命令等。
时钟同步装置还可以包括:获取单元,如执行获取终端与时钟同步装置之间的距离的操作等。接收单元,如执行接收来自终端的第三指示信息的操作等。分配单元,如执行为终端分配合适数量小区的操作等。
应理解以上装置中单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。
例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以成为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。
在一个例子中,以上任一装置中的单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA),或这些集成电路形式中至少两种的组合。
再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上***(system-on-a-chip,SOC)的形式实现。
以上用于接收的单元是一种该装置的接口电路,用于从其它装置接收信号。例如,当该装置以芯片的方式实现时,该接收单元是该芯片用于从其它芯片或装置接收信号的接口电路。以上用于发送的单元是一种该装置的接口电路,用于向其它装置发送信号。例如,当该装置以芯片的方式实现时,该发送单元是该芯片用于向其它芯片或装 置发送信号的接口电路。
请参考图13,其为本申请实施例提供的一种网络设备的结构示意图。其可以为以上实施例中的网络设备,用于实现以上实施例中网络设备的操作。
如图13所示,该网络设备包括:天线1301、射频装置1302、基带装置1303。天线1301与射频装置1302连接。在上行方向上,射频装置1302通过天线1301接收终端发送的信息,将终端发送的信息发送给基带装置1303进行处理。在下行方向上,基带装置1303对终端的信息进行处理,并发送给射频装置1302,射频装置1302对终端的信息进行处理后经过天线1301发送给终端。
基带装置1303可以包括一个或多个处理元件1303-1,例如,包括一个主控CPU和其它集成电路。此外,该基带装置1303还可以包括存储元件1303-2和接口1303-3,存储元件1303-2用于存储程序和数据;接口1303-3用于与射频装置1302交互信息,该接口例如为通用公共无线接口(common public radio interface,CPRI)。以上用于网络设备的装置可以位于基带装置1303,例如,以上用于网络设备的装置可以为基带装置1303上的芯片,该芯片包括至少一个处理元件和接口电路,其中处理元件用于执行以上网络设备执行的任一种方法的各个步骤,接口电路用于与其它装置通信。在一种实现中,网络设备实现以上方法中各个步骤的单元可以通过处理元件调度程序的形式实现,例如用于网络设备的装置包括处理元件和存储元件,处理元件调用存储元件存储的程序,以执行以上方法实施例中网络设备执行的方法。存储元件可以为处理元件处于同一芯片上的存储元件,即片内存储元件,也可以为与处理元件处于不同芯片上的存储元件,即片外存储元件。
在另一种实现中,网络设备实现以上方法中各个步骤的单元可以是被配置成一个或多个处理元件,这些处理元件设置于基带装置上,这里的处理元件可以为集成电路,例如:一个或多个ASIC,或,一个或多个DSP,或,一个或者多个FPGA,或者这些类集成电路的组合。这些集成电路可以集成在一起,构成芯片。
网络设备实现以上方法中各个步骤的单元可以集成在一起,以片上***(system-on-a-chip,SOC)的形式实现,例如,基带装置1303包括该SOC芯片,用于实现以上方法。该芯片内可以集成至少一个处理元件和存储元件,由处理元件调用存储元件的存储的程序的形式实现以上网络设备执行的方法;或者,该芯片内可以集成至少一个集成电路,用于实现以上网络设备执行的方法;或者,可以结合以上实现方式,部分单元的功能通过处理元件调用程序的形式实现,部分单元的功能通过集成电路的形式实现。
可见,以上用于网络设备的装置可以包括至少一个处理元件和接口电路,其中至少一个处理元件用于执行以上方法实施例所提供的任一种网络设备执行的方法。处理元件可以以第一种方式:即调用存储元件存储的程序的方式执行网络设备执行的部分或全部步骤;也可以以第二种方式:即通过处理器元件中的硬件的集成逻辑电路结合指令的方式执行网络设备执行的部分或全部步骤;当然,也可以结合第一种方式和第二种方式执行以上网络设备执行的部分或全部步骤。
这里的处理元件同以上描述,可以是通用处理器,例如CPU,还可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个ASIC,或,一个或多个微处 理器DSP,或,一个或者多个FPGA等,或这些集成电路形式中至少两种的组合。
存储元件可以是一个存储器,也可以是多个存储元件的统称。
请参考图14,其为本申请实施例提供的一种终端的结构示意图。其可以为以上实施例中的终端,用于实现以上实施例中终端的操作。
如图14所示,该终端包括:天线1401、射频部分1402、信号处理部分1403。天线1401与射频部分1402连接。在下行方向上,射频部分1402通过天线1401接收网络设备发送的信息,将网络设备发送的信息发送给信号处理部分1403进行处理。在上行方向上,信号处理部分1403对终端的信息进行处理,并发送给射频部分1402,射频部分1402对终端的信息进行处理后经过天线1401发送给网络设备。
信号处理部分1403可以包括调制解调子***,用于实现对数据各通信协议层的处理;还可以包括中央处理子***,用于实现对终端操作***以及应用层的处理;此外,还可以包括其它子***,例如多媒体子***,周边子***等,其中多媒体子***用于实现对终端相机,屏幕显示等的控制,周边子***用于实现与其它设备的连接。调制解调子***可以为单独设置的芯片。可选的,以上用于终端的装置可以位于该调制解调子***。
调制解调子***可以包括一个或多个处理元件1403-1,例如,包括一个主控CPU和其它集成电路。
此外,该调制解调子***还可以包括存储元件1403-2和接口电路1403-3。存储元件1403-2用于存储数据和程序,但用于执行以上方法中终端所执行的方法的程序可能不存储于该存储元件1403-2中,而是存储于调制解调子***之外的存储器中,使用时调制解调子***加载使用。接口电路1403-3用于与其它子***通信。以上用于终端的装置可以位于调制解调子***,该调制解调子***可以通过芯片实现,该芯片包括至少一个处理元件和接口电路,其中处理元件用于执行以上终端执行的任一种方法的各个步骤,接口电路用于与其它装置通信。
在一种实现中,终端实现以上方法中各个步骤的单元可以通过处理元件调度程序的形式实现,例如用于终端的装置包括处理元件和存储元件,处理元件调用存储元件存储的程序,以执行以上方法实施例中终端执行的方法。存储元件可以为处理元件处于同一芯片上的存储元件,即片内存储元件。
在另一种实现中,用于执行以上方法中终端所执行的方法的程序可以在与处理元件处于不同芯片上的存储元件,即片外存储元件。此时,处理元件从片外存储元件调用或加载程序于片内存储元件上,以调用并执行以上方法实施例中终端执行的方法。
在又一种实现中,终端实现以上方法中各个步骤的单元可以是被配置成一个或多个处理元件,这些处理元件设置于调制解调子***上,这里的处理元件可以为集成电路,例如:一个或多个ASIC,或,一个或多个DSP,或,一个或者多个FPGA,或者这些类集成电路的组合。这些集成电路可以集成在一起,构成芯片。
终端实现以上方法中各个步骤的单元可以集成在一起,以SOC的形式实现,该SOC芯片,用于实现以上方法。该芯片内可以集成至少一个处理元件和存储元件,由处理元件调用存储元件的存储的程序的形式实现以上终端执行的方法;或者,该芯片内可以集成至少一个集成电路,用于实现以上终端执行的方法;或者,可以结合以上 实现方式,部分单元的功能通过处理元件调用程序的形式实现,部分单元的功能通过集成电路的形式实现。
可见,以上用于终端的装置可以包括至少一个处理元件和接口电路,其中至少一个处理元件用于执行以上方法实施例所提供的任一种终端执行的方法。处理元件可以以第一种方式:即调用存储元件存储的程序的方式执行终端执行的部分或全部步骤;也可以以第二种方式:即通过处理器元件中的硬件的集成逻辑电路结合指令的方式执行终端执行的部分或全部步骤;当然,也可以结合第一种方式和第二种方式执行终端执行的部分或全部步骤。
这里的处理元件同以上描述,可以是通用处理器,例如CPU,还可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个ASIC,或,一个或多个微处理器DSP,或,一个或者多个FPGA等,或这些集成电路形式中至少两种的组合。
存储元件可以是一个存储器,也可以是多个存储元件的统称。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (24)
- 一种时钟同步方法,其特征在于,包括:终端获取第一信息,所述第一信息用于确定所述终端与第一网络设备的传输时延;所述终端获取第一时间值,所述第一时间值用于指示所述第一网络设备的第一小区的无线帧的帧边界的发送时刻;所述终端根据所述传输时延和所述第一时间值,确定所述第一小区的无线帧的所述帧边界的接收时刻对应的第二时间值。
- 根据权利要求1所述的方法,其特征在于,所述第一信息为用于指示所述传输时延的信息。
- 根据权利要求1所述的方法,其特征在于,所述第一信息为用于指示所述终端与所述第一网络设备之间的距离的信息;所述方法还包括:所述终端根据所述终端与所述第一网络设备之间的距离获取所述传输时延。
- 根据权利要求1-3中任一项所述的方法,其特征在于,所述方法还包括:所述终端获取所述终端由获取到所述第一信息的时刻开始到当前时刻的移动距离;当所述移动距离大于距离门限,所述终端向所述第一网络设备发送第一指示信息,所述第一指示信息用于指示所述第一网络设备重新下发所述第一信息。
- 根据权利要求1-4中任一项所述的方法,其特征在于,所述方法还包括:所述终端获取M个小区的无线帧的所述帧边界的接收时刻,所述M个小区的无线帧的所述帧边界对齐,所述M个小区包括所述第一小区,所述M是大于或等于2的整数;所述终端根据所述M个小区的无线帧的所述帧边界的接收时刻,更新所述第一小区的无线帧的所述帧边界的接收时刻。
- 根据权利要求1-5中任一项所述的方法,其特征在于,所述终端获取所述第一时间值,包括:所述终端接收M个小区的指示无线帧的所述帧边界的发送时刻的时间值,所述M个小区的无线帧的所述帧边界对齐,所述M个小区包括所述第一小区,所述M是大于或等于2的整数;所述终端根据所述M个小区的时间值,确定所述第一时间值。
- 根据权利要求6所述的方法,其特征在于,在所述M个小区中,所述终端接收不同小区的指示无线帧的所述帧边界的发送时刻的时间值的时间窗不同;所述方法还包括:所述终端接收来自所述第一网络设备的第二指示信息,所述第二指示信息用于指示在N个小区的每个小区中接收所述小区的指示无线帧的所述帧边界的发送时刻的时间值的时间窗,所述N个小区包括所述M个小区;所述终端接收M个小区的指示无线帧的所述帧边界的发送时刻的时间值,包括:所述终端根据所述第二指示信息指示的时间窗,接收所述M个小区的时间值。
- 根据权利要求5-7中任一项所述的方法,其特征在于,所述方法还包括:所述终端向所述第一网络设备发送第三指示信息,所述第三指示信息用于所述第 一网络设备为所述终端分配小区,所述为所述终端分配的小区中包括所述M个小区;其中,所述第三指示信息为所述终端对所述终端的时钟的精度要求;或者,所述第三指示信息为所述终端的第一业务的标识或所述第一业务的服务质量QoS标识,所述终端的第一业务对所述终端的时钟的精度要求大于所述终端的其他业务对所述终端的时钟的精度要求。
- 根据权利要求1-8中任一项所述的方法,其特征在于,所述方法还包括:所述终端接收所述第一网络设备发送的第三时间值,所述第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻;所述终端在切换到所述第二小区后,获取第四时间值,所述第四时间值用于指示所述第二小区的子帧边界的接收时刻;所述终端根据所述第三时间值和所述第四时间值,确定所述终端与所述第二网络设备的传输时延;所述终端根据所述终端与所述第二网络设备的传输时延进行数据传输。
- 根据权利要求1-8中任一项所述的方法,其特征在于,所述方法还包括:所述终端在切换到第二网络设备的第二小区后,获取所述第二小区的***帧号SFN,接收所述第二网络设备的发送的第五时间值,所述第五时间值用于指示所述第二小区的无线帧的帧边界的发送时刻;所述终端根据所述SFN,获取第六时间值,所述第六时间值用于指示所述第二小区的所述无线帧的所述帧边界的接收时刻;所述终端根据所述第五时间值和所述第六时间值,确定所述终端与所述第二网络设备的传输时延;所述终端根据所述终端与所述第二网络设备的传输时延进行数据传输。
- 一种时钟同步装置,其特征在于,包括:第一获取单元,用于获取第一信息,以及第一时间值,所述第一信息用于确定所述时钟同步装置与第一网络设备的传输时延,所述第一时间值用于指示所述第一网络设备的第一小区的无线帧的帧边界的发送时刻;确定单元,用于根据所述传输时延和所述第一时间值,确定所述第一小区的无线帧的所述帧边界的接收时刻对应的第二时间值。
- 根据权利要求11所述的时钟同步装置,其特征在于,所述第一信息为用于指示所述传输时延的信息。
- 根据权利要求11所述的时钟同步装置,其特征在于,所述第一信息为用于指示所述时钟同步装置与所述第一网络设备之间的距离的信息;所述第一获取单元,还用于根据所述时钟同步装置与所述第一网络设备之间的距离获取所述传输时延。
- 根据权利要求11-13中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置还包括:第二获取单元和发送单元;所述第二获取单元,用于获取所述时钟同步装置由获取到所述第一信息的时刻开始到当前时刻的移动距离;所述发送单元,用于当所述移动距离大于距离门限,向所述第一网络设备发送第 一指示信息,所述第一指示信息用于指示所述第一网络设备重新下发所述第一信息。
- 根据权利要求11-14中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置还包括:更新单元;所述第一获取单元,还用于获取M个小区的无线帧的所述帧边界的接收时刻,所述M个小区的无线帧的所述帧边界对齐,所述M个小区包括所述第一小区,所述M是大于或等于2的整数;所述更新单元,用于根据所述M个小区的无线帧的所述帧边界的接收时刻,更新所述第一小区的无线帧的所述帧边界的接收时刻。
- 根据权利要求11-15中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置,还包括:接收单元;所述接收单元,用于接收M个小区的指示无线帧的所述帧边界的发送时刻的时间值,所述M个小区的无线帧的所述帧边界对齐,所述M个小区包括所述第一小区,所述M是大于或等于2的整数;所述第一获取单元,具体用于根据所述M个小区的时间值,确定所述第一时间值。
- 根据权利要求16所述的时钟同步装置,其特征在于,在所述M个小区中,所述时钟同步装置接收不同小区的指示无线帧的所述帧边界的发送时刻的时间值的时间窗不同;所述接收单元,还用于接收来自所述第一网络设备的第二指示信息,所述第二指示信息用于指示在N个小区的每个小区中接收所述小区的指示无线帧的所述帧边界的发送时刻的时间值的时间窗,所述N个小区包括所述M个小区;所述接收单元,具体用于根据所述第二指示信息指示的时间窗,接收所述M个小区的时间值。
- 根据权利要求15-17中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置还包括:发送单元;所述发送单元,用于向所述第一网络设备发送第三指示信息,所述第三指示信息用于所述第一网络设备为所述时钟同步装置分配小区,所述为所述时钟同步装置分配的小区中包括所述M个小区;其中,所述第三指示信息为所述时钟同步装置对所述时钟同步装置的时钟的精度要求;或者,所述第三指示信息为所述时钟同步装置的第一业务的标识或所述第一业务的服务质量QoS标识,所述时钟同步装置的第一业务对所述时钟同步装置的时钟的精度要求大于所述时钟同步装置的其他业务对所述时钟同步装置的时钟的精度要求。
- 根据权利要求11-18中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置还包括:接收单元和传输单元;所述接收单元,用于接收所述第一网络设备发送的第三时间值,所述第三时间值用于指示第二网络设备的第二小区的子帧边界的发送时刻;所述第二获取单元,还用于在切换到所述第二小区后,获取第四时间值,所述第四时间值用于指示所述第二小区的子帧边界的接收时刻;所述确定单元,还用于根据所述第三时间值和所述第四时间值,确定所述时钟同步装置与所述第二网络设备的传输时延;所述传输单元,用于根据所述时钟同步装置与所述第二网络设备的传输时延进行数据传输。
- 根据权利要求11-18中任一项所述的时钟同步装置,其特征在于,所述时钟同步装置还包括:传输单元;所述第一获取单元,还用于在切换到第二网络设备的第二小区后,获取所述第二小区的***帧号SFN,接收所述第二网络设备的发送的第五时间值,所述第五时间值用于指示所述第二小区的无线帧的帧边界的发送时刻;所述第二获取单元,还用于根据所述SFN,获取第六时间值,所述第六时间值用于指示所述第二小区的所述无线帧的所述帧边界的接收时刻;所述确定单元,还用于根据所述第五时间值和所述第六时间值,确定所述时钟同步装置与所述第二网络设备的传输时延;所述传输单元,用于根据所述时钟同步装置与所述第二网络设备的传输时延进行数据传输。
- 一种时钟同步装置,其特征在于,包括:处理器和接口电路,所述处理器用于通过所述接口电路与网络设备通信,并执行如权利要求1至10任一项所述的方法。
- 一种时钟同步装置,其特征在于,包括处理器,用于与存储器相连,调用所述存储器中存储的程序,以执行如权利要求1至10任一项所述的方法。
- 一种终端,其特征在于,包括如权利要求11至20任一项所述的时钟同步装置。
- 一种计算机可读存储介质,其特征在于,包括:计算机软件指令;当所述计算机软件指令在时钟同步装置或内置在时钟同步装置的芯片中运行时,使得所述时钟同步装置执行如权利要求1至10任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910106165.X | 2019-02-01 | ||
CN201910106165.XA CN111526577A (zh) | 2019-02-01 | 2019-02-01 | 一种时钟同步方法及设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020156343A1 true WO2020156343A1 (zh) | 2020-08-06 |
Family
ID=71840106
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/073341 WO2020156343A1 (zh) | 2019-02-01 | 2020-01-20 | 一种时钟同步方法及设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111526577A (zh) |
WO (1) | WO2020156343A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116018838A (zh) * | 2020-10-16 | 2023-04-25 | Oppo广东移动通信有限公司 | 一种传输时延的测量方法及装置、终端设备、网络设备 |
CN114760682A (zh) * | 2021-01-11 | 2022-07-15 | ***通信有限公司研究院 | 一种时间信息传输方法、装置及设备 |
WO2022178732A1 (zh) * | 2021-02-24 | 2022-09-01 | 华为技术有限公司 | 通信方法、装置及*** |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101119157A (zh) * | 2007-09-18 | 2008-02-06 | 中兴通讯股份有限公司 | 一种光纤延时的测量方法及*** |
CN102457954A (zh) * | 2010-10-18 | 2012-05-16 | ***通信集团江苏有限公司 | 一种家庭基站同步方法和家庭基站 |
CN104735770A (zh) * | 2013-12-18 | 2015-06-24 | 中兴通讯股份有限公司 | 同步方法、传输节点、终端及通信*** |
WO2017144082A1 (en) * | 2016-02-23 | 2017-08-31 | Telefonaktiebolaget Lm Ericsson (Publ) | Time synchronization between nodes connected by a wireless network |
CN108347763A (zh) * | 2017-01-24 | 2018-07-31 | 华为技术有限公司 | 授时的方法、终端设备和网络设备 |
Family Cites Families (18)
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 (zh) * | 2001-04-28 | 2004-08-18 | 华为技术有限公司 | 一种移动通信***中移动台的定位方法 |
CN101252385B (zh) * | 2008-02-22 | 2013-03-13 | 杭州电子科技大学 | 时分双工数字基带直放站中实现信号同步的方法 |
KR101009420B1 (ko) * | 2008-10-08 | 2011-01-19 | 한국전자통신연구원 | 통합네트워크에서 단말 시각 동기화 방법 및 장치 |
KR102139223B1 (ko) * | 2013-07-02 | 2020-08-11 | 삼성전자주식회사 | 빔포밍 시스템에서 동기 설정 및 신호 송수신 방법 및 장치 |
CN105532054B (zh) * | 2013-09-16 | 2019-07-02 | Lg电子株式会社 | 网络同步的方法和装置 |
US20150123844A1 (en) * | 2013-11-04 | 2015-05-07 | Qualcomm Incorporated | Methods and systems for mobile device clock management |
CN104270810A (zh) * | 2014-10-16 | 2015-01-07 | 武汉理工大学 | 一种lte-a***上行同步方法 |
CN106686669B (zh) * | 2015-11-11 | 2021-01-26 | 中兴通讯股份有限公司 | 同步方法及装置 |
KR20170093068A (ko) * | 2016-02-04 | 2017-08-14 | 한국전자통신연구원 | 통신 네트워크에서 상향링크 전송의 스케쥴링 방법 |
CN105792346A (zh) * | 2016-03-04 | 2016-07-20 | 海能达通信股份有限公司 | 同步方法、节点装置及无线mesh网络*** |
CN107277929A (zh) * | 2016-04-07 | 2017-10-20 | 北京信威通信技术股份有限公司 | 一种切换过程中降低数据包延迟的方法 |
CN106488550B (zh) * | 2016-12-20 | 2019-11-12 | 华为技术有限公司 | 确定终端与基站时钟时间偏差的方法与装置 |
CN106506123B (zh) * | 2016-12-29 | 2019-11-12 | 宇龙计算机通信科技(深圳)有限公司 | 一种指示方法和基站 |
CN108934034A (zh) * | 2017-05-26 | 2018-12-04 | 华为技术有限公司 | 一种发送和接收数据包的方法、设备及*** |
CN109005585A (zh) * | 2017-06-06 | 2018-12-14 | 华为技术有限公司 | 发送上行信息的方法和装置 |
CN107528628B (zh) * | 2017-09-28 | 2020-01-10 | 中国电子科技集团公司第七研究所 | 卫星通信***的信号同步方法、装置和*** |
CN108270714A (zh) * | 2018-02-02 | 2018-07-10 | 北京晓程科技股份有限公司 | 一种帧前导信号的生成方法及设备 |
-
2019
- 2019-02-01 CN CN201910106165.XA patent/CN111526577A/zh active Pending
-
2020
- 2020-01-20 WO PCT/CN2020/073341 patent/WO2020156343A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101119157A (zh) * | 2007-09-18 | 2008-02-06 | 中兴通讯股份有限公司 | 一种光纤延时的测量方法及*** |
CN102457954A (zh) * | 2010-10-18 | 2012-05-16 | ***通信集团江苏有限公司 | 一种家庭基站同步方法和家庭基站 |
CN104735770A (zh) * | 2013-12-18 | 2015-06-24 | 中兴通讯股份有限公司 | 同步方法、传输节点、终端及通信*** |
WO2017144082A1 (en) * | 2016-02-23 | 2017-08-31 | Telefonaktiebolaget Lm Ericsson (Publ) | Time synchronization between nodes connected by a wireless network |
CN108347763A (zh) * | 2017-01-24 | 2018-07-31 | 华为技术有限公司 | 授时的方法、终端设备和网络设备 |
Also Published As
Publication number | Publication date |
---|---|
CN111526577A (zh) | 2020-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3609225B1 (en) | Communication method, base station and system | |
US12004105B2 (en) | Time synchronization method and apparatus | |
TWI789177B (zh) | 併發間隙配置方法和使用者設備 | |
EP3796729A1 (en) | Iab node switching method, iab node and host base station | |
JP2019532604A (ja) | セルハンドオーバ方法、装置、およびシステム | |
WO2020156343A1 (zh) | 一种时钟同步方法及设备 | |
WO2020182031A1 (zh) | 一种无线通信技术领域中的通信方法和通信装置 | |
US11949621B2 (en) | System and method for phase noise-based signal design for positioning in a communication system | |
WO2021104025A1 (zh) | 信息传输方法及装置 | |
WO2022077387A1 (zh) | 一种通信方法及通信装置 | |
US20220369260A1 (en) | Optimized time synchronization for a ue | |
JP6872634B2 (ja) | 協調セル決定方法及びネットワークデバイス | |
CN113853023B (zh) | 无线通信的方法及装置 | |
WO2015017977A1 (zh) | 一种umts到lte的网络切换方法、设备及*** | |
AU2020255012A1 (en) | Communication method and communications apparatus | |
WO2021204022A1 (zh) | 一种测量方法和装置 | |
US20240040450A1 (en) | Information transmission method and apparatus | |
JP7382487B2 (ja) | オンデマンド位置決め関連アプリケーションデータのための方法及びデバイス | |
WO2021027907A1 (zh) | 通信方法和通信装置 | |
WO2020029873A1 (zh) | 通信方法、装置和通信*** | |
US20230388853A1 (en) | Radio Network Node, Network Node, and Methods Performed in a Wireless Communication Network | |
WO2021159262A1 (zh) | 定时提前量的阈值调整方法及装置 | |
WO2023143114A1 (zh) | 通信方法和通信装置 | |
US20240031868A1 (en) | User Equipment, Radio Network Node and Methods for Handling Delay in Dual Connected Mode | |
WO2022233191A1 (zh) | 一种用于上报小区或载波信息的方法及装置 |
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 |