CN108964819B - A kind of clock adjustment, clock jitter calculation method, equipment and system - Google Patents

A kind of clock adjustment, clock jitter calculation method, equipment and system Download PDF

Info

Publication number
CN108964819B
CN108964819B CN201710359036.2A CN201710359036A CN108964819B CN 108964819 B CN108964819 B CN 108964819B CN 201710359036 A CN201710359036 A CN 201710359036A CN 108964819 B CN108964819 B CN 108964819B
Authority
CN
China
Prior art keywords
signal
terminal
access network
clock
network equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710359036.2A
Other languages
Chinese (zh)
Other versions
CN108964819A (en
Inventor
张言飞
温容慧
高峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710359036.2A priority Critical patent/CN108964819B/en
Priority to PCT/CN2018/087173 priority patent/WO2018210281A1/en
Publication of CN108964819A publication Critical patent/CN108964819A/en
Application granted granted Critical
Publication of CN108964819B publication Critical patent/CN108964819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/004Synchronisation arrangements compensating for timing error of reception due to propagation delay
    • H04W56/005Synchronisation arrangements compensating for timing error of reception due to propagation delay compensating for timing error by adjustment in the receiver

Landscapes

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

Abstract

本申请实施例提供一种时钟调整、时钟偏差计算方法、设备及系统,涉及通信技术领域,能够提高终端与接入网设备间的同步精度。具体方案为:终端向接入网设备发送第一信号;接收接入网设备发送的第一时刻值和信号时偏,第一时刻值指示接入网设备接收第一信号的时刻,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度;根据第一时刻值、信号时偏和第二时刻值,计算时钟偏差,第二时刻值指示终端发送第一信号的时刻,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值;根据时钟偏差调整第一时钟。本申请实施例用于同步时钟。

Embodiments of the present application provide a method, device, and system for clock adjustment and clock offset calculation, which relate to the field of communication technologies and can improve the synchronization accuracy between a terminal and an access network device. The specific solution is: the terminal sends the first signal to the access network device; receives the first time value and signal time offset sent by the access network device, the first time value indicates the moment when the access network device receives the first signal, and the signal time offset Including the residual time offset Δt, the absolute value of Δt is smaller than the timing advance TA adjustment granularity; according to the first time value, signal time offset and second time value, calculate the clock deviation, the second time value indicates the time when the terminal sends the first signal, the clock The deviation is the time difference between the first clock configured in the terminal and the second clock configured in the access network device; the first clock is adjusted according to the clock deviation. This embodiment of the application is used to synchronize clocks.

Description

一种时钟调整、时钟偏差计算方法、设备及系统Method, device and system for clock adjustment and clock deviation calculation

技术领域technical field

本申请实施例涉及通信技术领域,尤其涉及一种时钟调整、时钟偏差计算方法、设备及系统。The embodiments of the present application relate to the technical field of communications, and in particular, to a method, device, and system for clock adjustment and clock offset calculation.

背景技术Background technique

在工业制造领域,为了协作完成某一生产任务,多个工业设备需要保持高精度的时钟同步。工业制造的未来是智能化和网络化,无线通信代替有线通信是将来的发展趋势。蜂窝网络技术由于可靠的链路级性能、完善的功能和特性支持以及成熟完善的产业链,将成为工业无线的优选技术方向。然而,当前蜂窝网络技术中,并没有明确的时钟同步方案。In the field of industrial manufacturing, in order to cooperate to complete a certain production task, multiple industrial devices need to maintain high-precision clock synchronization. The future of industrial manufacturing is intelligence and networking, and wireless communication instead of wired communication is the future development trend. Cellular network technology will become the preferred technology direction for industrial wireless due to its reliable link-level performance, complete function and feature support, and a mature and complete industrial chain. However, in the current cellular network technology, there is no clear clock synchronization solution.

在现有无线同步技术中,网络中的基站1和基站2分别记录同一终端发送的同一条上行消息到达的绝对时间T1和T2,并计算该消息的传输时延Tp1和Tp2。其中T1-Tp1是以基站1的本地时钟为基准,推算的该上行消息的发送时刻,T2-Tp2是以基站2的本地时钟为基准,推算的该上行消息的发送时刻,两个发送时刻的差值(T1-Tp1)-(T2-Tp2)即为基站1和基站2的时钟偏差。其中,传输时延Tp1和Tp2分别通过终端与基站1对应的第一定时提前(timing advance,TA)的1/2和终端与基站2对应的第二定时提前TA的1/2来代替。In the existing wireless synchronization technology, base station 1 and base station 2 in the network respectively record the absolute time T1 and T2 of the arrival of the same uplink message sent by the same terminal, and calculate the transmission delay Tp1 and Tp2 of the message. Among them, T1-Tp1 is based on the local clock of base station 1, and calculates the sending time of the uplink message. T2-Tp2 is based on the local clock of base station 2, and calculates the sending time of the uplink message. The two sending times The difference (T1-Tp1)-(T2-Tp2) is the clock offset between base station 1 and base station 2. The transmission delays Tp1 and Tp2 are respectively replaced by 1/2 of the first timing advance (TA) corresponding to the terminal and base station 1 and 1/2 of the second timing advance (TA) corresponding to the terminal and base station 2 .

现有技术中的上述方案解决的是基站间的时钟同步问题,并不能解决整网的时钟同步,尤其是基站与终端时间的时钟同步。并且,TA是为上行数据的解调而设计的,TA的量化单位为TA调整粒度。TA调整粒度通常较大,例如在20MHz带宽、30.72MHz采样率下,TA调整粒度为16TS(TS为采样周期),即0.52μs。因而,用TA值来代替传输时延,将使得传输时延和时钟偏差的计算受限于TA调整粒度的大小,从而使得同步精度较差。The above solution in the prior art solves the problem of clock synchronization between base stations, but cannot solve the clock synchronization of the entire network, especially the clock synchronization between the time of the base station and the terminal. Moreover, TA is designed for demodulation of uplink data, and the quantization unit of TA is TA adjustment granularity. The TA adjustment granularity is usually relatively large. For example, at a 20MHz bandwidth and a 30.72MHz sampling rate, the TA adjustment granularity is 16TS (TS is the sampling period), that is, 0.52μs. Therefore, using the TA value instead of the transmission delay will make the calculation of the transmission delay and clock deviation limited by the size of the TA adjustment granularity, thus making the synchronization accuracy poor.

发明内容Contents of the invention

本申请实施例提供一种时钟调整、时钟偏差计算方法、设备及系统,能够提高终端与接入网设备间的同步精度。Embodiments of the present application provide a method, device, and system for clock adjustment and clock offset calculation, which can improve the synchronization accuracy between a terminal and an access network device.

为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:

第一方面,本申请实施例提供一种时钟调整方法,该方法包括:终端向接入网设备发送第一信号。而后,终端接收接入网设备发送的第一时刻值和信号时偏。其中,第一时刻值指示接入网设备接收第一信号的时刻,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度。之后,终端根据第一时刻值、信号时偏和第二时刻值,计算时钟偏差。其中,第二时刻值指示终端发送第一信号的时刻,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值。进而,终端根据时钟偏差调整第一时钟。In a first aspect, an embodiment of the present application provides a clock adjustment method, including: a terminal sends a first signal to an access network device. Then, the terminal receives the first time value and signal time offset sent by the access network device. Wherein, the first time value indicates the time when the access network device receives the first signal, the signal time offset includes a residual time offset Δt, and the absolute value of Δt is smaller than the timing advance TA adjustment granularity. Afterwards, the terminal calculates the clock deviation according to the first time value, the signal time offset and the second time value. Wherein, the second time value indicates the time when the terminal sends the first signal, and the clock offset is a time difference between the first clock configured in the terminal and the second clock configured in the access network device. Furthermore, the terminal adjusts the first clock according to the clock deviation.

这样,终端可以根据其绝对值小于TA调整粒度的Δt计算时钟偏差,使得时钟偏差的计算不会受限于TA调整粒度的大小,从而能够提高时钟偏差的计算精度,进而在根据时钟偏差调整终端对应的第一时钟,以使得第一时钟与接入网设备对应的第二时钟保持同步时,能够提高同步精度。In this way, the terminal can calculate the clock offset according to Δt whose absolute value is smaller than the TA adjustment granularity, so that the calculation of the clock offset will not be limited by the size of the TA adjustment granularity, thereby improving the calculation accuracy of the clock offset, and then adjusting the terminal according to the clock offset The corresponding first clock, so that when the first clock is synchronized with the second clock corresponding to the access network device, the synchronization accuracy can be improved.

结合第一方面,在一种可能的实现方式中,信号时偏还包括定时提前TA调整值ΔTA,ΔTA为TA调整粒度的整数倍。这样,可以根据ΔTA和Δt计算时钟偏差。With reference to the first aspect, in a possible implementation manner, the signal time offset further includes a timing advance TA adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity. In this way, the clock skew can be calculated from ΔTA and Δt.

结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号为前导码(Preamble)序列,方法还包括:终端根据ΔTA设置TA的初始值。这样,可以通过随机接入过程实现时钟同步。With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal is a preamble (Preamble) sequence, and the method further includes: the terminal sets an initial value of TA according to ΔTA. In this way, clock synchronization can be achieved through the random access procedure.

结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,终端中存储有定时提前TA,该方法还包括:终端根据ΔTA调整TA。这样,在实现时钟同步的同时,还可以更新TA。With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the terminal stores the timing advance TA, and the method further includes: the terminal adjusts the TA according to ΔTA. In this way, the TA can also be updated while implementing clock synchronization.

结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,终端接收接入网设备发送的第一时刻值和信号时偏包括:终端接收接入网设备发送的第二信号,第二信号中携带有第一时刻值和信号时偏;或者终端接收接入网设备发送的第三信号和第四信号,第三信号中携带有第一时刻值,第四信号中携带有信号时偏。这样,可以使得第一时刻值和信号时偏的传递方式更为灵活。In combination with the first aspect and the above possible implementation manners, in another possible implementation manner, the terminal receiving the first time value and signal time offset sent by the access network device includes: the terminal receiving the second signal sent by the access network device , the second signal carries the first time value and the signal time offset; or the terminal receives the third signal and the fourth signal sent by the access network device, the third signal carries the first time value, and the fourth signal carries the Signal time skew. In this way, the transmission mode of the first time value and the signal time offset can be made more flexible.

结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,终端接收接入网设备发送的第一时刻值和信号时偏包括:终端接收接入网设备发送的第五信号和第六信号,第五信号中携带有信号时偏中的ΔTA,第六信号中携带有第一时刻值和信号时偏中的Δt;或者,终端接收接入网设备发送的第七信号、第八信号和第九信号,第七信号中携带有信号时偏中的ΔTA,第八信号中携带有信号时偏中的Δt,第九信号中携带有第一时刻值。这样,可以使得第一时刻值、ΔTA和Δt的传递方式更为灵活。In combination with the first aspect and the above possible implementation manner, in another possible implementation manner, the terminal receiving the first time value and signal time offset sent by the access network device includes: the terminal receiving the fifth signal sent by the access network device and the sixth signal, the fifth signal carries ΔTA in the signal time offset, and the sixth signal carries the first time value and Δt in the signal time offset; or, the terminal receives the seventh signal sent by the access network device, For the eighth signal and the ninth signal, the seventh signal carries ΔTA in the signal time offset, the eighth signal carries Δt in the signal time offset, and the ninth signal carries the first time value. In this way, the transfer mode of the first time value, ΔTA and Δt can be made more flexible.

结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第五信号或第七信号为定时提前命令(Timing Advance Command)。这样,可以复用现有技术中的Timing Advance Command传递参数,不需要增加新的信令,以实现时钟同步。With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the fifth signal or the seventh signal is a timing advance command (Timing Advance Command). In this way, the Timing Advance Command transmission parameters in the prior art can be reused without adding new signaling to achieve clock synchronization.

结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,终端中存储有定时提前TA,终端根据第二时刻值、第一时刻值和信号时偏,计算时钟偏差包括:终端根据第二时刻值、第一时刻值、信号时偏和TA,计算时钟偏差。这样,当终端侧维护有TA时,还可以结合定时提前TA计算时钟偏差。In combination with the first aspect and the above possible implementation, in another possible implementation, the terminal stores a timing advance TA, and the terminal calculates the clock deviation according to the second time value, the first time value, and the signal time offset, including: The terminal calculates the clock offset according to the second time value, the first time value, the signal time offset and TA. In this way, when the TA is maintained at the terminal side, the clock offset can also be calculated in combination with the timing advance TA.

结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有请求标识,请求标识用于终端向接入网设备请求第一时刻值和信号时偏。这样,终端可以在需要进行时钟同步的时候,向接入网设备发送携带有该请求标识的第一信号。With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries a request identifier, and the request identifier is used for the terminal to request the first time value and signal time offset from the access network device. In this way, the terminal can send the first signal carrying the request identifier to the access network device when clock synchronization is required.

第二方面,本申请实施例提供一种时钟偏差计算方法,该方法包括:接入网设备接收终端发送的第一信号。而后,接入网设备向终端发送第一时刻值和信号时偏。其中,第一时刻值指示接入网设备接收第一信号的时刻,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度,第一时刻值和信号时偏用于终端计算时钟偏差。In a second aspect, an embodiment of the present application provides a method for calculating a clock offset, the method including: an access network device receiving a first signal sent by a terminal. Then, the access network device sends the first time value and the signal time offset to the terminal. Wherein, the first time value indicates the time when the access network equipment receives the first signal, the signal time offset includes residual time offset Δt, the absolute value of Δt is smaller than the timing advance TA adjustment granularity, the first time value and signal time offset are used for terminal calculation clock skew.

这样,在接入网设备将第一时刻值和信号时偏发送给终端后,可以使得终端根据信号时偏中,其绝对值小于TA调整粒度的Δt计算时钟偏差,使得时钟偏差的计算不会受限于TA调整粒度的大小,从而能够提高时钟偏差的计算精度,进而在根据时钟偏差调整终端对应的第一时钟,以使得第一时钟与接入网设备对应的第二时钟保持同步时,能够提高同步精度。In this way, after the access network device sends the first time value and the signal time offset to the terminal, the terminal can calculate the clock offset according to the signal time offset, whose absolute value is less than Δt of the TA adjustment granularity, so that the calculation of the clock offset will not Limited by the size of the TA adjustment granularity, the calculation accuracy of the clock deviation can be improved, and then when the first clock corresponding to the terminal is adjusted according to the clock deviation, so that the first clock is synchronized with the second clock corresponding to the access network device, The synchronization accuracy can be improved.

结合第二方面,在一种可能的实现方式中,信号时偏还包括定时提前调整值ΔTA,ΔTA为TA调整粒度的整数倍。这样,可以根据ΔTA和Δt计算时钟偏差。With reference to the second aspect, in a possible implementation manner, the signal time offset further includes a timing advance adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity. In this way, the clock skew can be calculated from ΔTA and Δt.

结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,接入网设备向终端发送第一时刻值和信号时偏包括:接入网设备向终端发送第二信号,第二信号中携带有第一时刻值和信号时偏;或者,接入网设备向终端发送第三信号和第四信号,第三信号中携带有第一时刻值,第四信号中携带有信号时偏。这样,可以使得第一时刻值和信号时偏的传递方式更为灵活。In combination with the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the access network device sending the first time value and signal time offset to the terminal includes: the access network device sending the second signal to the terminal, and the second The second signal carries the first time value and the signal time offset; or, the access network device sends the third signal and the fourth signal to the terminal, the third signal carries the first time value, and the fourth signal carries the signal time Partial. In this way, the transmission mode of the first time value and the signal time offset can be made more flexible.

结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,接入网设备向终端发送第一时刻值和信号时偏包括:接入网设备向终端发送第五信号和第六信号,第五信号中携带有信号时偏中的ΔTA,第六信号中携带有第一时刻值和信号时偏中的Δt;或者,接入网设备向终端发送第七信号、第八信号和第九信号,第七信号中携带有信号时偏中的ΔTA,第八信号中携带有信号时偏中的Δt,第九信号中携带有第一时刻值。这样,可以使得第一时刻值、ΔTA和Δt的传递方式更为灵活。With reference to the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the access network device sending the first time value and the signal time offset to the terminal includes: the access network device sending the fifth signal and the first signal time offset to the terminal. Six signals, the fifth signal carries ΔTA in the signal time offset, and the sixth signal carries the first time value and Δt in the signal time offset; or, the access network device sends the seventh signal and the eighth signal to the terminal and the ninth signal, the seventh signal carries ΔTA in the signal time offset, the eighth signal carries Δt in the signal time offset, and the ninth signal carries the first time value. In this way, the transfer mode of the first time value, ΔTA and Δt can be made more flexible.

结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,第五信号或第七信号为Timing Advance Command。这样,可以复用现有技术中的Timing AdvanceCommand传递参数,以实现时钟同步。With reference to the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the fifth signal or the seventh signal is a Timing Advance Command. In this way, the Timing AdvanceCommand passing parameters in the prior art can be reused to achieve clock synchronization.

结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号为前导码Preamble序列。这样,可以通过随机接入过程实现时钟同步。With reference to the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal is a Preamble sequence. In this way, clock synchronization can be achieved through the random access procedure.

结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有请求标识,请求标识用于终端向接入网设备请求第一时刻值和信号时偏。这样,接入网设备可以在终端需要进行时钟同步的时候,执行时钟同步过程。With reference to the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries a request identifier, and the request identifier is used for the terminal to request the first time value and signal time offset from the access network device. In this way, the access network device can perform a clock synchronization process when the terminal needs to perform clock synchronization.

第三方面,本申请实施例提供一种时钟调整方法,该方法包括:终端向接入网设备发送第一信号。而后,终端接收接入网设备发送的第一时刻值和传输时延。其中,第一时刻值指示接入网设备接收第一信号的时刻,传输时延根据信号时偏计算获得,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度。之后,终端根据第一时刻值、传输时延和第二时刻值,计算时钟偏差。其中,第二时刻值指示终端发送第一信号的时刻,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值。进而,终端根据时钟偏差调整第一时钟。In a third aspect, an embodiment of the present application provides a clock adjustment method, including: a terminal sending a first signal to an access network device. Then, the terminal receives the first time value and transmission delay sent by the access network device. Wherein, the first time value indicates the time when the access network equipment receives the first signal, and the transmission delay is calculated according to the signal time offset, and the signal time offset includes the residual time offset Δt, and the absolute value of Δt is smaller than the timing advance TA adjustment granularity. Afterwards, the terminal calculates the clock offset according to the first time value, the transmission delay and the second time value. Wherein, the second time value indicates the time when the terminal sends the first signal, and the clock offset is a time difference between the first clock configured in the terminal and the second clock configured in the access network device. Furthermore, the terminal adjusts the first clock according to the clock deviation.

这样,终端从接入网设备接收的传输时延是根据其绝对值小于TA调整粒度的Δt计算获得的,终端根据传输时延计算时钟偏差时,可以使得时钟偏差的计算不会受限于TA调整粒度的大小,因而可以提高时钟偏差的计算精度,进而在根据时钟偏差调整终端对应的第一时钟,以使得第一时钟与接入网设备对应的第二时钟保持同步时,能够提高同步精度。In this way, the transmission delay received by the terminal from the access network device is calculated according to the Δt whose absolute value is smaller than the TA adjustment granularity. When the terminal calculates the clock deviation according to the transmission delay, the calculation of the clock deviation will not be limited by the TA Adjust the size of the granularity, so the calculation accuracy of the clock deviation can be improved, and then when the first clock corresponding to the terminal is adjusted according to the clock deviation, so that the first clock is synchronized with the second clock corresponding to the access network device, the synchronization accuracy can be improved .

结合第三方面,在一种可能的实现方式中,信号时偏还包括定时提前调整值ΔTA,ΔTA为TA调整粒度的整数倍。这样,可以根据ΔTA和Δt计算时钟偏差。With reference to the third aspect, in a possible implementation manner, the signal time offset further includes a timing advance adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity. In this way, the clock skew can be calculated from ΔTA and Δt.

结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号为前导码Preamble序列,该方法还包括:终端根据ΔTA设置TA的初始值。这样,可以通过随机接入过程实现时钟同步。With reference to the third aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal is a Preamble sequence, and the method further includes: the terminal sets an initial value of TA according to ΔTA. In this way, clock synchronization can be achieved through the random access procedure.

结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,终端中存储有定时提前TA,该方法还包括:终端根据ΔTA调整TA。这样,在实现时钟同步的同时,还可以更新TA。With reference to the third aspect and the foregoing possible implementation manner, in another possible implementation manner, the timing advance TA is stored in the terminal, and the method further includes: the terminal adjusts the TA according to ΔTA. In this way, the TA can also be updated while implementing clock synchronization.

结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,该方法还包括:终端接收接入网设备发送的Timing Advance Command,Timing Advance Command中携带有ΔTA。这样,可以复用现有技术中的Timing Advance Command传递参数,以实现时钟同步。With reference to the third aspect and the foregoing possible implementation manner, in another possible implementation manner, the method further includes: the terminal receives the Timing Advance Command sent by the access network device, and the Timing Advance Command carries ΔTA. In this way, the timing advance command transmission parameters in the prior art can be reused to achieve clock synchronization.

结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,终端接收接入网设备发送的第一时刻值和传输时延包括:终端接收接入网设备发送的Timing AdvanceCommand,Timing Advance Command中携带有第一时刻值、传输时延和ΔTA。这样,可以在同一个信号中传递多个参数,从而减少交互的信令条数。In combination with the third aspect and the above possible implementation manner, in another possible implementation manner, the terminal receiving the first time value and the transmission delay sent by the access network device includes: the terminal receiving the Timing AdvanceCommand sent by the access network device, Timing Advance Command carries the first time value, transmission delay and ΔTA. In this way, multiple parameters can be transmitted in the same signal, thereby reducing the number of interactive signaling lines.

结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,终端中存储有定时提前TA,在终端接收接入网设备发送的第一时刻值和传输时延之前,该方法还包括:终端将TA发送给接入网设备,TA用于接入网设备计算传输时延。这样,还可以结合定时提前TA计算时钟偏差。In combination with the third aspect and the above possible implementation, in another possible implementation, the terminal stores a timing advance TA, and before the terminal receives the first time value and the transmission delay sent by the access network device, the method It also includes: the terminal sends the TA to the access network device, and the TA is used for the access network device to calculate the transmission delay. In this way, the clock skew can also be calculated in conjunction with the timing advance TA.

结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,终端中存储有定时提前TA,第一信号中携带有TA。这样,通过在第一信号中携带TA,可以减少交互的信令条数。With reference to the third aspect and the foregoing possible implementation manner, in another possible implementation manner, the timing advance TA is stored in the terminal, and the TA is carried in the first signal. In this way, by carrying the TA in the first signal, the number of signaling items for interaction can be reduced.

结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有请求标识,请求标识用于终端向接入网设备请求第一时刻值和传输时延。这样,终端可以在需要进行时钟同步的时候,向接入网设备发送携带有该请求标识的第一信号。With reference to the third aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries a request identifier, and the request identifier is used for the terminal to request the first time value and transmission delay from the access network device. In this way, the terminal can send the first signal carrying the request identifier to the access network device when clock synchronization is required.

第四方面,本申请实施例提供一种时钟偏差计算方法,该方法包括:接入网设备接收终端发送的第一信号。而后,接入网设备根据信号时偏计算传输时延,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度。之后,接入网设备将传输时延和第一时刻值发送给终端。其中,第一时刻值用于指示接入网设备接收第一信号的时刻,传输时延和第一时刻值用于终端计算时钟偏差。In a fourth aspect, an embodiment of the present application provides a method for calculating a clock offset, the method including: an access network device receiving a first signal sent by a terminal. Then, the access network device calculates the transmission delay according to the signal time offset, the signal time offset includes the residual time offset Δt, and the absolute value of Δt is smaller than the timing advance TA adjustment granularity. Afterwards, the access network device sends the transmission delay and the first time value to the terminal. Wherein, the first time value is used to indicate the time when the access network device receives the first signal, and the transmission delay and the first time value are used for the terminal to calculate the clock offset.

这样,接入网设备可以根据其绝对值小于TA调整粒度的Δt计算传输时延,从而使得传输时延的计算不受限于TA调整粒度的大小,在将传输时延发送给终端以计算时钟偏差时,可以使得时钟偏差的计算不会受限于TA调整粒度的大小,因而可以提高时钟偏差的计算精度,进而在根据时钟偏差调整终端对应的第一时钟,以使得第一时钟与接入网设备对应的第二时钟保持同步时,能够提高同步精度。In this way, the access network device can calculate the transmission delay according to the Δt whose absolute value is smaller than the TA adjustment granularity, so that the calculation of the transmission delay is not limited by the size of the TA adjustment granularity, and the transmission delay is sent to the terminal to calculate the clock When there is a deviation, the calculation of the clock deviation will not be limited by the size of the TA adjustment granularity, so the calculation accuracy of the clock deviation can be improved, and then the first clock corresponding to the terminal is adjusted according to the clock deviation, so that the first clock is consistent with the access When the second clock corresponding to the network device is kept synchronous, the synchronization accuracy can be improved.

结合第四方面,在一种可能的实现方式中,信号时偏还包括定时提前调整值ΔTA,ΔTA为TA调整粒度的整数倍。这样,可以根据ΔTA和Δt计算时钟偏差。With reference to the fourth aspect, in a possible implementation manner, the signal time offset further includes a timing advance adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity. In this way, the clock skew can be calculated from ΔTA and Δt.

结合第四方面和上述可能的实现方式,在另一种可能的实现方式中,该方法还包括:接入网设备向终端发送Timing Advance Command,Timing Advance Command中携带有ΔTA。这样,可以复用现有技术中的Timing Advance Command传递参数,以实现时钟同步。With reference to the fourth aspect and the foregoing possible implementation manner, in another possible implementation manner, the method further includes: the access network device sends a Timing Advance Command to the terminal, and the Timing Advance Command carries ΔTA. In this way, the timing advance command transmission parameters in the prior art can be reused to achieve clock synchronization.

结合第四方面和上述可能的实现方式,在另一种可能的实现方式中,接入网设备向终端发送第一时刻值和传输时延包括:接入网设备向终端发送Timing AdvanceCommand,Timing Advance Command中携带有第一时刻值、传输时延和ΔTA。这样,可以在同一个信号中传递多个参数,从而减少交互的信令条数。In combination with the fourth aspect and the above possible implementation, in another possible implementation, the access network device sending the first time value and the transmission delay to the terminal includes: the access network device sends a Timing AdvanceCommand to the terminal, Timing Advance Command carries the first time value, transmission delay and ΔTA. In this way, multiple parameters can be transmitted in the same signal, thereby reducing the number of interactive signaling lines.

结合第四方面和上述可能的实现方式,在另一种可能的实现方式中,在接入网设备根据信号时偏计算传输时延之前,该方法还包括:接入网设备接收终端发送的定时提前TA。接入网设备根据信号时偏计算传输时延包括:接入网设备根据信号时偏和TA计算传输时延。这样,还可以结合定时提前TA计算时钟偏差。In combination with the fourth aspect and the above possible implementation manner, in another possible implementation manner, before the access network device calculates the transmission delay according to the signal time offset, the method further includes: the access network device receives the timing sent by the terminal TA in advance. The calculation of the transmission delay by the access network device according to the signal time offset includes: the calculation of the transmission delay by the access network device according to the signal time offset and TA. In this way, the clock skew can also be calculated in conjunction with the timing advance TA.

结合第四方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有定时提前TA,接入网设备根据信号时偏计算传输时延包括:接入网设备根据信号时偏和TA计算传输时延。这样,通过在第一信号中携带TA,可以减少交互的信令条数。In combination with the fourth aspect and the above possible implementation, in another possible implementation, the first signal carries a timing advance TA, and the access network device calculates the transmission delay according to the time offset of the signal, including: the access network device calculates the transmission delay according to The signal time offset and TA calculate the transmission delay. In this way, by carrying the TA in the first signal, the number of signaling items for interaction can be reduced.

结合第四方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号为前导码Preamble序列。这样,可以通过随机接入过程实现时钟同步。With reference to the fourth aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal is a Preamble sequence. In this way, clock synchronization can be achieved through the random access procedure.

第五方面,本申请实施例提供一种时钟调整方法,该方法包括:终端向接入网设备发送第一信号和第二时刻值。其中,第二时刻值指示终端发送第一信号的时刻。而后,终端接收接入网设备发送的时钟偏差。其中,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值,时钟偏差根据第二时刻值、第一时刻值和信号时偏计算获得,第一时刻值指示接入网设备接收第一信号的时刻,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度。进而,终端根据时钟偏差调整第一时钟。In a fifth aspect, the embodiment of the present application provides a clock adjustment method, the method includes: the terminal sends the first signal and the second time value to the access network device. Wherein, the second time value indicates the time when the terminal sends the first signal. Then, the terminal receives the clock offset sent by the access network device. Wherein, the clock offset is the time difference between the first clock configured in the terminal and the second clock configured in the access network device, and the clock offset is calculated according to the second time value, the first time value, and the signal time offset, and the second A time value indicates the time when the access network device receives the first signal, the signal time offset includes a residual time offset Δt, and the absolute value of Δt is smaller than the timing advance TA adjustment granularity. Furthermore, the terminal adjusts the first clock according to the clock deviation.

这样,终端可以接收接入网设备发送的时钟偏差,该时钟偏差是根据其绝对值小于TA调整粒度的Δt计算获得的,从而可以使得时钟偏差的计算不会受限于TA调整粒度的大小,因而能够提高时钟偏差的计算精度,进而终端在根据时钟偏差调整终端对应的第一时钟,以使得第一时钟与接入网设备对应的第二时钟保持同步时,能够提高同步精度。In this way, the terminal can receive the clock offset sent by the access network device. The clock offset is calculated according to the Δt whose absolute value is smaller than the TA adjustment granularity, so that the calculation of the clock offset will not be limited by the size of the TA adjustment granularity. Therefore, the calculation accuracy of the clock offset can be improved, and furthermore, when the terminal adjusts the first clock corresponding to the terminal according to the clock offset, so that the first clock is synchronized with the second clock corresponding to the access network device, the synchronization accuracy can be improved.

结合第五方面,在一种可能的实现方式中,信号时偏还包括定时提前调整值ΔTA,ΔTA为TA调整粒度的整数倍。这样,可以根据ΔTA和Δt计算时钟偏差。With reference to the fifth aspect, in a possible implementation manner, the signal time offset further includes a timing advance adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity. In this way, the clock skew can be calculated from ΔTA and Δt.

结合第五方面和上述可能的实现方式,在另一种可能的实现方式中,终端中存储有定时提前TA,该方法还包括:终端根据ΔTA调整TA。这样,在实现时钟同步的同时,还可以更新TA。With reference to the fifth aspect and the foregoing possible implementation manner, in another possible implementation manner, the timing advance TA is stored in the terminal, and the method further includes: the terminal adjusting the TA according to ΔTA. In this way, the TA can also be updated while implementing clock synchronization.

结合第五方面和上述可能的实现方式,在另一种可能的实现方式中,该方法还包括:终端接收接入网设备发送的Timing Advance Command,Timing Advance Command中携带有ΔTA。这样,可以复用现有技术中的Timing Advance Command传递参数,以实现时钟同步。With reference to the fifth aspect and the foregoing possible implementation manner, in another possible implementation manner, the method further includes: the terminal receives the Timing Advance Command sent by the access network device, and the Timing Advance Command carries ΔTA. In this way, the timing advance command transmission parameters in the prior art can be reused to achieve clock synchronization.

结合第五方面和上述可能的实现方式,在另一种可能的实现方式中,终端接收接入网设备发送的时钟偏差包括:终端接收接入网设备发送的Timing Advance Command,Timing Advance Command中携带有时钟偏差和ΔTA。这样,可以在同一个信号中传递多个参数,从而减少交互的信令条数。In combination with the fifth aspect and the above possible implementation manner, in another possible implementation manner, the terminal receiving the clock offset sent by the access network device includes: the terminal receiving the Timing Advance Command sent by the access network device, and the Timing Advance Command carries There is clock skew and ΔTA. In this way, multiple parameters can be transmitted in the same signal, thereby reducing the number of interactive signaling lines.

结合第五方面和上述可能的实现方式,在另一种可能的实现方式中,终端中存储有定时提前TA,在终端接收接入网设备发送的时钟偏差之前,该方法还包括:终端将TA发送给接入网设备,TA用于接入网设备计算时钟偏差。这样,还可以结合定时提前TA计算时钟偏差。In combination with the fifth aspect and the above possible implementation, in another possible implementation, the terminal stores a timing advance TA, and before the terminal receives the clock offset sent by the access network device, the method further includes: the terminal sets the TA The TA is sent to the access network device, and the TA is used for the access network device to calculate the clock deviation. In this way, the clock skew can also be calculated in conjunction with the timing advance TA.

结合第五方面和上述可能的实现方式,在另一种可能的实现方式中,终端中存储有定时提前TA,第一信号中携带有TA。这样,通过在第一信号中携带TA,可以减少交互的信令条数。With reference to the fifth aspect and the foregoing possible implementation manner, in another possible implementation manner, the timing advance TA is stored in the terminal, and the TA is carried in the first signal. In this way, by carrying the TA in the first signal, the number of signaling items for interaction can be reduced.

结合第五方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有第二时刻值。这样,通过在第一信号中携带第二时刻值,可以减少交互的信令条数。With reference to the fifth aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries the second time value. In this way, by carrying the second time value in the first signal, the number of signaling items for interaction can be reduced.

结合第五方面和上述可能的实现方式,在另一种可能的实现方式中,终端向接入网设备发送第二时刻值包括:终端向接入网设备发送第二信号,第二信号中携带有第二时刻值。这样,可以使得第二时刻值的传递更为灵活。With reference to the fifth aspect and the above possible implementation manner, in another possible implementation manner, the terminal sending the second time value to the access network device includes: the terminal sending a second signal to the access network device, the second signal carrying Has a second moment value. In this way, the transmission of the second time value can be made more flexible.

结合第五方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有请求标识,请求标识用于终端向接入网设备请求时钟偏差。这样,终端可以在需要进行时钟同步的时候,向接入网设备发送携带有该请求标识的第一信号。With reference to the fifth aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries a request identifier, and the request identifier is used for the terminal to request a clock offset from the access network device. In this way, the terminal can send the first signal carrying the request identifier to the access network device when clock synchronization is required.

第六方面,本申请实施例提供一种时钟调整方法,该方法包括:接入网设备接收终端发送的第一信号和第二时刻值。其中,第二时刻值指示终端发送第一信号的时刻。而后,接入网设备根据第二时刻值、信号时偏和第一时刻值,计算时钟偏差。其中,第一时刻值指示接入网设备接收第一信号的时刻,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度,时钟偏差用于终端调整第一时钟。而后,接入网设备将时钟偏差发送给终端。In a sixth aspect, an embodiment of the present application provides a clock adjustment method, the method including: an access network device receiving a first signal and a second time value sent by a terminal. Wherein, the second time value indicates the time when the terminal sends the first signal. Then, the access network device calculates the clock offset according to the second time value, the signal time offset and the first time value. Wherein, the first time value indicates the time when the access network device receives the first signal, and the clock offset is the time difference between the first clock configured in the terminal and the second clock configured in the access network device, and the signal time offset includes The residual time offset Δt, the absolute value of Δt is smaller than the timing advance TA adjustment granularity, and the clock offset is used for the terminal to adjust the first clock. Then, the access network device sends the clock offset to the terminal.

这样,接入网设备可以根据其绝对值小于TA调整粒度的Δt计算时钟偏差,从而可以使得时钟偏差的计算不会受限于TA调整粒度的大小,因而能够提高时钟偏差的计算精度,进而将时钟偏差发送给终端,使得终端根据时钟偏差调整终端对应的第一时钟,以使得第一时钟与接入网设备对应的第二时钟保持同步时,能够提高同步精度。In this way, the access network device can calculate the clock offset according to the Δt whose absolute value is smaller than the TA adjustment granularity, so that the calculation of the clock offset will not be limited by the size of the TA adjustment granularity, and thus the calculation accuracy of the clock offset can be improved. The clock offset is sent to the terminal, so that the terminal adjusts the first clock corresponding to the terminal according to the clock offset, so that when the first clock is synchronized with the second clock corresponding to the access network device, the synchronization accuracy can be improved.

结合第六方面,在一种可能的实现方式中,信号时偏还包括定时提前TA调整值ΔTA,ΔTA为TA调整粒度的整数倍。这样,可以根据ΔTA和Δt计算时钟偏差。With reference to the sixth aspect, in a possible implementation manner, the signal time offset further includes a timing advance TA adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity. In this way, the clock skew can be calculated from ΔTA and Δt.

结合第六方面和上述可能的实现方式,在另一种可能的实现方式中,该方法还包括:接入网设备向终端发送Timing Advance Command,Timing Advance Command中携带有ΔTA。这样,可以复用现有技术中的Timing Advance Command传递参数,以实现时钟同步。With reference to the sixth aspect and the foregoing possible implementation manner, in another possible implementation manner, the method further includes: the access network device sends a Timing Advance Command to the terminal, and the Timing Advance Command carries ΔTA. In this way, the timing advance command transmission parameters in the prior art can be reused to achieve clock synchronization.

结合第六方面和上述可能的实现方式,在另一种可能的实现方式中,接入网设备向终端发送时钟偏差包括:接入网设备向终端发送Timing Advance Command,TimingAdvance Command中携带有时钟偏差和ΔTA。这样,可以在同一个信号中传递多个参数,从而减少交互的信令条数。In combination with the sixth aspect and the above possible implementation, in another possible implementation, the access network device sending the clock offset to the terminal includes: the access network device sends a Timing Advance Command to the terminal, and the TimingAdvance Command carries the clock offset and ΔTA. In this way, multiple parameters can be transmitted in the same signal, thereby reducing the number of interactive signaling lines.

结合第六方面和上述可能的实现方式,在另一种可能的实现方式中,在接入网设备根据第一时刻值、第二时刻值和信号时偏,计算时钟偏差之前,方法还包括:接入网设备接收终端发送的定时提前TA。接入网设备根据第一时刻值、第二时刻值和信号时偏,计算时钟偏差包括:接入网设备根据第一时刻值、第二时刻值、信号时偏和TA,计算时钟偏差。这样,还可以结合定时提前TA计算时钟偏差。In combination with the sixth aspect and the foregoing possible implementation manner, in another possible implementation manner, before the access network device calculates the clock offset according to the first time value, the second time value, and the signal time offset, the method further includes: The access network device receives the timing sent by the terminal ahead of time by TA. The access network device calculating the clock offset according to the first time value, the second time value and the signal time offset includes: the access network device calculating the clock offset according to the first time value, the second time value, the signal time offset and TA. In this way, the clock skew can also be calculated in conjunction with the timing advance TA.

结合第六方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有定时提前TA,接入网设备根据第一时刻值、第二时刻值和信号时偏,计算时钟偏差包括:接入网设备根据第一时刻值、第二时刻值、信号时偏和TA,计算时钟偏差。这样,通过在第一信号中携带TA,可以减少交互的信令条数。In combination with the sixth aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries a timing advance TA, and the access network device, according to the first time value, the second time value, and the signal time offset, Calculating the clock offset includes: the access network device calculates the clock offset according to the first time value, the second time value, the signal time offset and TA. In this way, by carrying the TA in the first signal, the number of signaling items for interaction can be reduced.

结合第六方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有第二时刻值。这样,通过在第一信号中携带第二时刻值,可以减少交互的信令条数。With reference to the sixth aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries the second time value. In this way, by carrying the second time value in the first signal, the number of signaling items for interaction can be reduced.

结合第六方面和上述可能的实现方式,在另一种可能的实现方式中,接入网设备接收终端发送的第二时刻值包括:接入网设备接收终端发送的第二信号,第二信号中携带有第二时刻值。这样,可以使得第二时刻值的传递更为灵活。With reference to the sixth aspect and the above possible implementation manners, in another possible implementation manner, the access network device receiving the second time value sent by the terminal includes: the access network device receiving the second signal sent by the terminal, the second signal carries the second moment value in . In this way, the transmission of the second time value can be made more flexible.

第七方面,本申请实施例提供了一种终端,包括:发送单元,用于向接入网设备发送第一信号;接收单元,用于接收接入网设备发送的第一时刻值和信号时偏。其中,第一时刻值指示接入网设备接收第一信号的时刻,信号时偏包括残留时偏Δt,该Δt的绝对值小于定时提前TA调整粒度。计算单元,用于根据第一时刻值、信号时偏和第二时刻值,计算时钟偏差。其中,第二时刻值指示终端发送第一信号的时刻,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值。调整单元,用于根据时钟偏差调整第一时钟。In a seventh aspect, the embodiment of the present application provides a terminal, including: a sending unit, configured to send a first signal to an access network device; a receiving unit, configured to receive the first time value and signal time sent by the access network device Partial. Wherein, the first time value indicates the time when the access network device receives the first signal, and the signal time offset includes a residual time offset Δt, the absolute value of which is smaller than the timing advance TA adjustment granularity. The calculation unit is used to calculate the clock deviation according to the first time value, the signal time offset and the second time value. Wherein, the second time value indicates the time when the terminal sends the first signal, and the clock offset is a time difference between the first clock configured in the terminal and the second clock configured in the access network device. An adjustment unit, configured to adjust the first clock according to the clock deviation.

结合第七方面,在一种可能的实现方式中,信号时偏还包括定时提前TA调整值ΔTA,ΔTA为TA调整粒度的整数倍。With reference to the seventh aspect, in a possible implementation manner, the signal time offset further includes a timing advance TA adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity.

结合第七方面和上述可能的实现方式,在另一种可能的实现方式中,该终端还包括:存储单元,用于存储定时提前TA。调整单元还用于,根据ΔTA调整TA。With reference to the seventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the terminal further includes: a storage unit configured to store the timing advance TA. The adjustment unit is also used to adjust TA according to ΔTA.

结合第七方面和上述可能的实现方式,在另一种可能的实现方式中,接收单元具体用于:接收接入网设备发送的第二信号,第二信号中携带有第一时刻值和信号时偏;或者,接收接入网设备发送的第三信号和第四信号,第三信号中携带有第一时刻值,第四信号中携带有信号时偏。With reference to the seventh aspect and the above possible implementation manner, in another possible implementation manner, the receiving unit is specifically configured to: receive a second signal sent by the access network device, the second signal carries the first time value and signal time offset; or, receiving a third signal and a fourth signal sent by the access network device, the third signal carrying the first time value, and the fourth signal carrying the signal time offset.

结合第七方面和上述可能的实现方式,在另一种可能的实现方式中,接收单元具体用于:接收接入网设备发送的第五信号和第六信号,其中,第五信号中携带有信号时偏中的ΔTA,第六信号中携带有第一时刻值和信号时偏中的Δt。或者,接收接入网设备发送的第七信号、第八信号和第九信号,其中,第七信号中携带有信号时偏中的ΔTA,第八信号中携带有信号时偏中的Δt,第九信号中携带有第一时刻值。With reference to the seventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the receiving unit is specifically configured to: receive the fifth signal and the sixth signal sent by the access network device, where the fifth signal carries ΔTA in the signal time offset, the sixth signal carries the first time value and Δt in the signal time offset. Alternatively, receive the seventh signal, the eighth signal, and the ninth signal sent by the access network device, wherein the seventh signal carries ΔTA in the signal time offset, the eighth signal carries Δt in the signal time offset, and the seventh signal carries Δt in the signal time offset. The nine signals carry the first time value.

结合第七方面和上述可能的实现方式,在另一种可能的实现方式中,第五信号或第七信号为Timing Advance Command。With reference to the seventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the fifth signal or the seventh signal is a Timing Advance Command.

结合第七方面和上述可能的实现方式,在另一种可能的实现方式中,终端包括存储单元,存储单元中存储有定时提前TA,计算单元具体用于:根据第二时刻值、第一时刻值、信号时偏和TA,计算时钟偏差。In combination with the seventh aspect and the above possible implementation, in another possible implementation, the terminal includes a storage unit, and the storage unit stores a timing advance TA, and the calculation unit is specifically configured to: according to the second time value, the first time Value, signal time skew and TA, calculate clock skew.

结合第七方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有请求标识,请求标识用于终端向接入网设备请求第一时刻值和信号时偏。With reference to the seventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries a request identifier, and the request identifier is used for the terminal to request the first time value and signal time offset from the access network device.

第八方面,本申请实施例提供了一种接入网设备,包括:接收单元,用于接收终端发送的第一信号;发送单元,用于向终端发送第一时刻值和信号时偏,第一时刻值指示接入网设备接收第一信号的时刻,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度,第一时刻值和信号时偏用于终端计算时钟偏差。In an eighth aspect, the embodiment of the present application provides an access network device, including: a receiving unit, configured to receive the first signal sent by the terminal; a sending unit, configured to send the first time value and signal time offset to the terminal, the second A time value indicates the time when the access network device receives the first signal. The signal time offset includes a residual time offset Δt. The absolute value of Δt is smaller than the timing advance TA adjustment granularity. The first time value and the signal time offset are used for the terminal to calculate the clock offset.

结合第八方面,在一种可能的实现方式中,信号时偏还包括定时提前调整值ΔTA,ΔTA为TA调整粒度的整数倍。With reference to the eighth aspect, in a possible implementation manner, the signal time offset further includes a timing advance adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity.

结合第八方面和上述可能的实现方式,在另一种可能的实现方式中,发送单元具体用于:向终端发送第二信号,第二信号中携带有第一时刻值和信号时偏;或者,向终端发送第三信号和第四信号,第三信号中携带有第一时刻值,第四信号中携带有信号时偏。In combination with the eighth aspect and the foregoing possible implementation manner, in another possible implementation manner, the sending unit is specifically configured to: send a second signal to the terminal, where the second signal carries the first time value and the signal time offset; or , sending a third signal and a fourth signal to the terminal, where the third signal carries the first time value, and the fourth signal carries a signal time offset.

结合第八方面和上述可能的实现方式,在另一种可能的实现方式中,发送单元具体用于:向终端发送第五信号和第六信号,第五信号中携带有信号时偏中的ΔTA,第六信号中携带有第一时刻值和信号时偏中的Δt;或者,向终端发送第七信号、第八信号和第九信号,第七信号中携带有信号时偏中的ΔTA,第八信号中携带有信号时偏中的Δt,第九信号中携带有第一时刻值。In combination with the eighth aspect and the above possible implementation manner, in another possible implementation manner, the sending unit is specifically configured to: send the fifth signal and the sixth signal to the terminal, where the fifth signal carries ΔTA in the signal time offset , the sixth signal carries the first time value and Δt in the signal time offset; or, the seventh signal, the eighth signal and the ninth signal are sent to the terminal, the seventh signal carries ΔTA in the signal time offset, and the first The eighth signal carries Δt in the signal time offset, and the ninth signal carries the first time value.

结合第八方面和上述可能的实现方式,在另一种可能的实现方式中,第五信号或第七信号为Timing Advance Command。With reference to the eighth aspect and the foregoing possible implementation manner, in another possible implementation manner, the fifth signal or the seventh signal is a Timing Advance Command.

结合第八方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有请求标识,请求标识用于终端向接入网设备请求第一时刻值和信号时偏。With reference to the eighth aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries a request identifier, and the request identifier is used for the terminal to request the first time value and signal time offset from the access network device.

第九方面,本申请实施例提供了一种终端,包括:发送单元,用于向接入网设备发送第一信号。接收单元,用于接收接入网设备发送的第一时刻值和传输时延。其中,第一时刻值指示接入网设备接收第一信号的时刻,传输时延根据信号时偏计算获得,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度。计算单元,用于根据第一时刻值、传输时延和第二时刻值,计算时钟偏差。其中,第二时刻值指示终端发送第一信号的时刻,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值。调整单元,用于根据时钟偏差调整第一时钟。In a ninth aspect, the embodiment of the present application provides a terminal, including: a sending unit, configured to send a first signal to an access network device. The receiving unit is configured to receive the first time value and the transmission delay sent by the access network device. Wherein, the first time value indicates the time when the access network equipment receives the first signal, and the transmission delay is calculated according to the signal time offset, and the signal time offset includes the residual time offset Δt, and the absolute value of Δt is smaller than the timing advance TA adjustment granularity. The calculation unit is used to calculate the clock deviation according to the first time value, the transmission delay and the second time value. Wherein, the second time value indicates the time when the terminal sends the first signal, and the clock offset is a time difference between the first clock configured in the terminal and the second clock configured in the access network device. An adjustment unit, configured to adjust the first clock according to the clock deviation.

结合第九方面,在一种可能的实现方式中,信号时偏还包括定时提前调整值ΔTA,ΔTA为TA调整粒度的整数倍。With reference to the ninth aspect, in a possible implementation manner, the signal time offset further includes a timing advance adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity.

结合第九方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号为前导码Preamble序列,该终端还包括设置单元,用于终端根据ΔTA设置TA的初始值。With reference to the ninth aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal is a Preamble sequence, and the terminal further includes a setting unit, configured for the terminal to set an initial value of TA according to ΔTA.

结合第九方面和上述可能的实现方式,在另一种可能的实现方式中,终端还包括存储单元,用于存储终端中存储有定时提前TA,调整单元还用于:根据ΔTA调整TA。With reference to the ninth aspect and the foregoing possible implementation manner, in another possible implementation manner, the terminal further includes a storage unit configured to store the timing advance TA stored in the terminal, and the adjustment unit is further configured to: adjust TA according to ΔTA.

结合第九方面和上述可能的实现方式,在另一种可能的实现方式中,接收单元还用于接收接入网设备发送的Timing Advance Command,Timing Advance Command中携带有ΔTA。With reference to the ninth aspect and the foregoing possible implementation manner, in another possible implementation manner, the receiving unit is further configured to receive a Timing Advance Command sent by the access network device, and the Timing Advance Command carries ΔTA.

结合第九方面和上述可能的实现方式,在另一种可能的实现方式中,接收单元具体用于:接收接入网设备发送的Timing Advance Command,Timing Advance Command中携带有第一时刻值、传输时延和ΔTA。In combination with the ninth aspect and the above possible implementation manner, in another possible implementation manner, the receiving unit is specifically configured to: receive the Timing Advance Command sent by the access network device, and the Timing Advance Command carries the first time value, transmission time delay and ΔTA.

结合第九方面和上述可能的实现方式,在另一种可能的实现方式中,终端包括存储单元,存储单元中存储有定时提前TA,在接收单元接收接入网设备发送的第一时刻值和传输时延之前,发送单元还用于:将TA发送给接入网设备,该TA用于接入网设备计算传输时延。With reference to the ninth aspect and the above possible implementation manner, in another possible implementation manner, the terminal includes a storage unit, the storage unit stores the timing advance TA, and the receiving unit receives the first time value sent by the access network device and Before the transmission delay, the sending unit is further configured to: send the TA to the access network device, and the TA is used for the access network device to calculate the transmission delay.

结合第九方面和上述可能的实现方式,在另一种可能的实现方式中,终端中存储有定时提前TA,第一信号中携带有TA。With reference to the ninth aspect and the foregoing possible implementation manner, in another possible implementation manner, the timing advance TA is stored in the terminal, and the TA is carried in the first signal.

结合第九方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有请求标识,请求标识用于终端向接入网设备请求第一时刻值和传输时延。With reference to the ninth aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries a request identifier, and the request identifier is used for the terminal to request the first time value and transmission delay from the access network device.

第十方面,本申请实施例提供了一种接入网设备,包括:接收单元,用于接收终端发送的第一信号。计算单元,用于根据信号时偏计算传输时延,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度。发送单元,用于将传输时延和第一时刻值发送给终端。其中,第一时刻值用于指示接入网设备接收第一信号的时刻,传输时延和第一时刻值用于终端计算时钟偏差。In a tenth aspect, the embodiment of the present application provides an access network device, including: a receiving unit, configured to receive a first signal sent by a terminal. The calculation unit is configured to calculate the transmission delay according to the signal time offset, the signal time offset includes a residual time offset Δt, and the absolute value of Δt is smaller than the timing advance TA adjustment granularity. The sending unit is configured to send the transmission delay and the first time value to the terminal. Wherein, the first time value is used to indicate the time when the access network device receives the first signal, and the transmission delay and the first time value are used for the terminal to calculate the clock offset.

结合第十方面,在一种可能的实现方式中,信号时偏还包括定时提前调整值ΔTA,ΔTA为TA调整粒度的整数倍。With reference to the tenth aspect, in a possible implementation manner, the signal time offset further includes a timing advance adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity.

结合第十方面和上述可能的实现方式,在另一种可能的实现方式中,发送单元还用于:向终端发送Timing Advance Command,Timing Advance Command中携带有ΔTA。With reference to the tenth aspect and the foregoing possible implementation manner, in another possible implementation manner, the sending unit is further configured to: send a Timing Advance Command to the terminal, where the Timing Advance Command carries ΔTA.

结合第十方面和上述可能的实现方式,在另一种可能的实现方式中,发送单元具体用于:向终端发送Timing Advance Command,Timing Advance Command中携带有第一时刻值、传输时延和ΔTA。In combination with the tenth aspect and the above possible implementation, in another possible implementation, the sending unit is specifically configured to: send a Timing Advance Command to the terminal, where the Timing Advance Command carries the first moment value, transmission delay and ΔTA .

结合第十方面和上述可能的实现方式,在另一种可能的实现方式中,在计算单元根据信号时偏计算传输时延之前,接收单元还用于:接收终端发送的定时提前TA。计算单元具体用于:根据信号时偏和TA计算传输时延。With reference to the tenth aspect and the above possible implementation manner, in another possible implementation manner, before the calculation unit calculates the transmission delay according to the signal time offset, the receiving unit is further configured to: advance the timing sent by the receiving terminal by TA. The calculation unit is specifically configured to: calculate the transmission delay according to the signal time offset and TA.

结合第十方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有定时提前TA,计算单元具体用于:根据信号时偏和TA计算传输时延。In combination with the tenth aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries a timing advance TA, and the calculation unit is specifically configured to: calculate the transmission delay according to the signal time offset and TA.

结合第十方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号为前导码Preamble序列。With reference to the tenth aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal is a Preamble sequence.

第十一方面,本申请实施例提供了一种终端,包括:发送单元,用于向接入网设备发送第一信号和第二时刻值,第二时刻值指示终端发送第一信号的时刻。接收单元,用于接收接入网设备发送的时钟偏差。其中,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值,时钟偏差根据第二时刻值、第一时刻值和信号时偏计算获得,第一时刻值指示接入网设备接收第一信号的时刻,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度。调整单元,用于根据时钟偏差调整第一时钟。In an eleventh aspect, the embodiment of the present application provides a terminal, including: a sending unit, configured to send a first signal and a second time value to an access network device, where the second time value indicates the time when the terminal sends the first signal. The receiving unit is configured to receive the clock offset sent by the access network device. Wherein, the clock offset is the time difference between the first clock configured in the terminal and the second clock configured in the access network device, and the clock offset is calculated according to the second time value, the first time value, and the signal time offset, and the second A time value indicates the time when the access network device receives the first signal, the signal time offset includes a residual time offset Δt, and the absolute value of Δt is smaller than the timing advance TA adjustment granularity. An adjustment unit, configured to adjust the first clock according to the clock deviation.

结合第十一方面,在一种可能的实现方式中,信号时偏还包括定时提前调整值ΔTA,ΔTA为TA调整粒度的整数倍。With reference to the eleventh aspect, in a possible implementation manner, the signal time offset further includes a timing advance adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity.

结合第十一方面和上述可能的实现方式,在另一种可能的实现方式中,该终端还包括:存储单元,用于存储定时提前TA;调整单元还用于,根据ΔTA调整TA。With reference to the eleventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the terminal further includes: a storage unit configured to store the timing advance TA; and an adjusting unit further configured to adjust TA according to ΔTA.

结合第十一方面和上述可能的实现方式,在另一种可能的实现方式中,接收单元还用于:接收接入网设备发送的Timing Advance Command,Timing Advance Command中携带有ΔTA。With reference to the eleventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the receiving unit is further configured to: receive a Timing Advance Command sent by the access network device, where the Timing Advance Command carries ΔTA.

结合第十一方面和上述可能的实现方式,在另一种可能的实现方式中,接收单元具体用于:接收接入网设备发送的Timing Advance Command,Timing Advance Command中携带有时钟偏差和ΔTA。With reference to the eleventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the receiving unit is specifically configured to: receive a Timing Advance Command sent by an access network device, where the Timing Advance Command carries a clock offset and ΔTA.

结合第十一方面和上述可能的实现方式,在另一种可能的实现方式中,终端包括存储单元,存储单元中存储有定时提前TA,在接收单元接收接入网设备发送的时钟偏差之前,发送单元还用于:将TA发送给接入网设备,TA用于接入网设备计算时钟偏差。With reference to the eleventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the terminal includes a storage unit, and the storage unit stores a timing advance TA, and before the receiving unit receives the clock offset sent by the access network device, The sending unit is also used for: sending the TA to the access network device, and the TA is used for the access network device to calculate the clock deviation.

结合第十一方面和上述可能的实现方式,在另一种可能的实现方式中,终端包括存储单元,存储单元中存储有定时提前TA,第一信号中携带有TA。With reference to the eleventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the terminal includes a storage unit, where the timing advance TA is stored in the storage unit, and the TA is carried in the first signal.

结合第十一方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有第二时刻值。With reference to the eleventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries the second time value.

结合第十一方面和上述可能的实现方式,在另一种可能的实现方式中,发送单元具体用于:向接入网设备发送第二信号,第二信号中携带有第二时刻值。With reference to the eleventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the sending unit is specifically configured to: send a second signal to the access network device, where the second signal carries the second time value.

结合第十一方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有请求标识,请求标识用于终端向接入网设备请求时钟偏差。With reference to the eleventh aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries a request identifier, and the request identifier is used for the terminal to request a clock offset from the access network device.

第十二方面,本申请实施例提供了一种接入网设备,包括:接收单元,用于接收终端发送的第一信号和第二时刻值,第二时刻值指示终端发送第一信号的时刻。计算单元,用于根据第二时刻值、信号时偏和第一时刻值,计算时钟偏差。其中,第一时刻值指示接入网设备接收第一信号的时刻,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度,时钟偏差用于终端调整第一时钟。发送单元,用于将时钟偏差发送给终端。In a twelfth aspect, the embodiment of the present application provides an access network device, including: a receiving unit, configured to receive a first signal sent by a terminal and a second time value, where the second time value indicates the time when the terminal sends the first signal . The calculation unit is used to calculate the clock deviation according to the second time value, the signal time offset and the first time value. Wherein, the first time value indicates the time when the access network device receives the first signal, and the clock offset is the time difference between the first clock configured in the terminal and the second clock configured in the access network device, and the signal time offset includes The residual time offset Δt, the absolute value of Δt is smaller than the timing advance TA adjustment granularity, and the clock offset is used for the terminal to adjust the first clock. The sending unit is configured to send the clock deviation to the terminal.

结合第十二方面,在一种可能的实现方式中,信号时偏还包括定时提前TA调整值ΔTA,ΔTA为TA调整粒度的整数倍。With reference to the twelfth aspect, in a possible implementation manner, the signal time offset further includes a timing advance TA adjustment value ΔTA, where ΔTA is an integer multiple of the TA adjustment granularity.

结合第十二方面和上述可能的实现方式,在另一种可能的实现方式中,发送单元还用于:向终端发送Timing Advance Command,Timing Advance Command中携带有ΔTA。With reference to the twelfth aspect and the foregoing possible implementation manner, in another possible implementation manner, the sending unit is further configured to: send a Timing Advance Command to the terminal, and the Timing Advance Command carries ΔTA.

结合第十二方面和上述可能的实现方式,在另一种可能的实现方式中,发送单元具体用于:向终端发送Timing Advance Command,Timing Advance Command中携带有时钟偏差和ΔTA。With reference to the twelfth aspect and the foregoing possible implementation manner, in another possible implementation manner, the sending unit is specifically configured to: send a Timing Advance Command to the terminal, where the Timing Advance Command carries a clock offset and ΔTA.

结合第十二方面和上述可能的实现方式,在另一种可能的实现方式中,在计算单元根据第一时刻值、第二时刻值和信号时偏,计算时钟偏差之前,接收单元还用于:接收终端发送的定时提前TA。计算单元具体用于:根据第一时刻值、第二时刻值、信号时偏和TA,计算时钟偏差。With reference to the twelfth aspect and the above possible implementation, in another possible implementation, before the calculation unit calculates the clock offset according to the first time value, the second time value, and the signal time offset, the receiving unit is further used to : The timing sent by the receiving terminal is advanced by TA. The calculation unit is specifically configured to: calculate the clock offset according to the first time value, the second time value, the signal time offset and TA.

结合第十二方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有定时提前TA,计算单元具体用于:根据第一时刻值、第二时刻值、信号时偏和TA,计算时钟偏差。In combination with the twelfth aspect and the above possible implementation, in another possible implementation, the first signal carries a timing advance TA, and the calculation unit is specifically configured to: according to the first time value, the second time value, the signal Time Offset and TA, to calculate clock skew.

结合第十二方面和上述可能的实现方式,在另一种可能的实现方式中,第一信号中携带有第二时刻值。With reference to the twelfth aspect and the foregoing possible implementation manner, in another possible implementation manner, the first signal carries the second time value.

结合第十二方面和上述可能的实现方式,在另一种可能的实现方式中,接收单元具体用于:接收终端发送的第二信号,第二信号中携带有第二时刻值。With reference to the twelfth aspect and the foregoing possible implementation manner, in another possible implementation manner, the receiving unit is specifically configured to: receive a second signal sent by the terminal, where the second signal carries the second time value.

第十三方面,本申请实施例提供了一种终端,包括至少一个处理器、存储器、总线和通信接口。存储器用于存储计算机执行指令,至少一个处理器与存储器通过总线连接,当终端运行时,至少一个处理器执行存储器存储的计算机执行指令,以使终端执行上述第一方面、第三方面或第五方面任一项中的时钟调整方法。In a thirteenth aspect, the embodiment of the present application provides a terminal, including at least one processor, a memory, a bus, and a communication interface. The memory is used to store computer-executable instructions. At least one processor is connected to the memory through a bus. When the terminal is running, at least one processor executes the computer-executable instructions stored in the memory, so that the terminal performs the first aspect, the third aspect or the fifth aspect. The clock adjustment method of any of the aspects.

第十四方面,本申请实施例提供了一种接入网设备,包括至少一个处理器、存储器、总线和通信接口。存储器用于存储计算机执行指令,至少一个处理器与存储器通过总线连接,当接入网设备运行时,至少一个处理器执行存储器存储的计算机执行指令,以使接入网设备执行上述第二方面、第四方面或第六方面任一项中的时钟调整方法。In a fourteenth aspect, the embodiment of the present application provides an access network device, including at least one processor, a memory, a bus, and a communication interface. The memory is used to store computer-executable instructions, at least one processor is connected to the memory through a bus, and when the access network device is running, at least one processor executes the computer-executable instructions stored in the memory, so that the access network device performs the above-mentioned second aspect, The clock adjustment method in any one of the fourth aspect or the sixth aspect.

第十五方面,本申请实施例提供了一种计算机可读存储介质,用于储存为上述终端所用的计算机软件指令,当其在计算机上运行时,使得计算机可以执行上述第一方面、第三方面或第五方面任一项中的时钟调整方法。In the fifteenth aspect, the embodiment of the present application provides a computer-readable storage medium, which is used to store computer software instructions used by the above-mentioned terminal. The clock adjustment method in any one of the aspect or the fifth aspect.

第十六方面,本申请实施例提供了一种计算机可读存储介质,用于储存为上述接入网设备所用的计算机软件指令,当其在计算机上运行时,使得计算机可以执行上述第二方面、第四方面或第六方面任一项中的时钟调整或时钟偏差计算方法。In the sixteenth aspect, the embodiment of the present application provides a computer-readable storage medium, which is used to store the computer software instructions used by the above-mentioned access network equipment, and when it is run on the computer, the computer can execute the above-mentioned second aspect 1. The clock adjustment or clock offset calculation method in any one of the fourth aspect or the sixth aspect.

第十七方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述第一方面、第三方面或第五方面任一项中的时钟调整方法。In the seventeenth aspect, the embodiment of the present application provides a computer program product containing instructions, when it is run on a computer, the computer can execute the clock in any one of the first aspect, the third aspect, or the fifth aspect Adjustment method.

第十八方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述第二方面、第四方面或第六方面任一项中的时钟调整方法。In the eighteenth aspect, the embodiment of the present application provides a computer program product containing instructions, which, when run on a computer, enables the computer to execute the clock in any one of the above-mentioned second aspect, fourth aspect, or sixth aspect. Adjustment method.

第十九方面,本申请实施例提供了一种系统,包括上述第七方面、第九方面或第十一方面任一项中的终端,以及上述第八方面、第十方面或第十二方面任一项中的接入网设备。In a nineteenth aspect, an embodiment of the present application provides a system, including the terminal in any one of the seventh, ninth, or eleventh aspects above, and the eighth, tenth, or twelfth aspect above Access network equipment in any item.

附图说明Description of drawings

图1为本申请实施例提供的一种网络架构示意图;FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application;

图2为本申请实施例提供的一种接入网设备的结构示意图;FIG. 2 is a schematic structural diagram of an access network device provided in an embodiment of the present application;

图3为本申请实施例提供的一种手机终端的结构示意图;FIG. 3 is a schematic structural diagram of a mobile phone terminal provided by an embodiment of the present application;

图4为本申请实施例提供的一种时钟调整方法流程图;FIG. 4 is a flowchart of a clock adjustment method provided in an embodiment of the present application;

图5为本申请实施例提供的另一种时钟调整方法流程图;FIG. 5 is a flowchart of another clock adjustment method provided in the embodiment of the present application;

图6为本申请实施例提供的另一种时钟调整方法流程图;FIG. 6 is a flow chart of another clock adjustment method provided in the embodiment of the present application;

图7为本申请实施例提供的另一种时钟调整方法流程图;FIG. 7 is a flow chart of another clock adjustment method provided in the embodiment of the present application;

图8为本申请实施例提供的另一种时钟调整方法流程图;FIG. 8 is a flowchart of another clock adjustment method provided in the embodiment of the present application;

图9为本申请实施例提供的另一种时钟调整方法流程图;FIG. 9 is a flow chart of another clock adjustment method provided in the embodiment of the present application;

图10a为本申请实施例提供的另一种时钟调整方法流程图;FIG. 10a is a flow chart of another clock adjustment method provided in the embodiment of the present application;

图10b为本申请实施例提供的另一种时钟调整方法流程图;FIG. 10b is a flow chart of another clock adjustment method provided in the embodiment of the present application;

图11a为本申请实施例提供的另一种时钟调整方法流程图;Fig. 11a is a flow chart of another clock adjustment method provided by the embodiment of the present application;

图11b为本申请实施例提供的另一种时钟调整方法流程图;Fig. 11b is a flow chart of another clock adjustment method provided by the embodiment of the present application;

图12为本申请实施例提供的另一种时钟调整方法流程图;FIG. 12 is a flow chart of another clock adjustment method provided in the embodiment of the present application;

图13为本申请实施例提供的另一种时钟调整方法流程图;FIG. 13 is a flow chart of another clock adjustment method provided in the embodiment of the present application;

图14a为本申请实施例提供的另一种时钟调整方法流程图;FIG. 14a is a flow chart of another clock adjustment method provided in the embodiment of the present application;

图14b为本申请实施例提供的另一种时钟调整方法流程图;FIG. 14b is a flow chart of another clock adjustment method provided in the embodiment of the present application;

图15为本申请实施例提供的另一种时钟调整方法流程图;FIG. 15 is a flowchart of another clock adjustment method provided in the embodiment of the present application;

图16为本申请实施例提供的一种终端的结构示意图;FIG. 16 is a schematic structural diagram of a terminal provided in an embodiment of the present application;

图17为本申请实施例提供的另一种终端的结构示意图;FIG. 17 is a schematic structural diagram of another terminal provided by an embodiment of the present application;

图18为本申请实施例提供的一种接入网设备的结构示意图;FIG. 18 is a schematic structural diagram of an access network device provided in an embodiment of the present application;

图19为本申请实施例提供的另一种接入网设备的结构示意图;FIG. 19 is a schematic structural diagram of another access network device provided by an embodiment of the present application;

图20为本申请实施例提供的一种终端或接入网设备的结构示意图。FIG. 20 is a schematic structural diagram of a terminal or an access network device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了便于理解,示例的给出了部分与本申请实施例相关概念的说明以供参考。如下所示:For ease of understanding, some descriptions of concepts related to the embodiments of the present application are given by way of example for reference. As follows:

传输时延:终端与接入网设备间的空口时延,与传播距离有关。Transmission delay: The air interface delay between the terminal and the access network device is related to the propagation distance.

定时提前TA:由于终端和接入网设备间存在一定的物理距离,当终端和接入网设备通信时,会造成信号传递的时延,如果不采取措施,时延会导致接入网设备收到的终端在本时隙上发送的消息,与接入网设备在其下一个时隙收到的另一个消息重叠,从而导致无法正确解码信息。为了消除终端和接入网设备的返回传播时延,降低上行干扰,保证上行传输的正交性,使得上行中各个终端互不干扰,终端可以提前一定的时间传输,该提前的时间即为TA,其单位可以为μs。Timing advance TA: Due to the certain physical distance between the terminal and the access network equipment, when the terminal communicates with the access network equipment, it will cause a delay in signal transmission. If no measures are taken, the delay will cause the access network equipment to receive The message sent by the received terminal in this time slot overlaps with another message received by the access network device in the next time slot, so that the information cannot be decoded correctly. In order to eliminate the return propagation delay between the terminal and the access network equipment, reduce uplink interference, and ensure the orthogonality of uplink transmission, so that each terminal in the uplink does not interfere with each other, the terminal can transmit a certain time in advance. The advanced time is TA , and its unit can be μs.

TA调整粒度:TA是基于一定的量化单位进行调整的,该量化单位是指TA可以变化的最小单位。例如,在长期演进(long term evolution,LTE)系统中,TA的调整粒度为16TS,其中的TS为设备的采样周期。TA adjustment granularity: TA is adjusted based on a certain quantitative unit, which refers to the smallest unit that TA can change. For example, in a long term evolution (long term evolution, LTE) system, the TA adjustment granularity is 16T S , where T S is the sampling period of the device.

信号时偏:当一个连接建立时,接入网设备可以根据终端发送的上行信号,不断测量自身脉冲时隙与收到的终端时隙之间的时间偏移量,这个偏移量可以称为信号时偏。TA与终端和接入网设备间的距离有关,移动中的终端与接入网设备的距离发生变化,还可能导致终端在不同小区间进行切换,所以需要接入网设备根据信号时偏不断修正终端的TA。当接入网设备测得的信号时偏的绝对值小于TA调整粒度时,信号时偏可以包括残留时偏Δt;当接入网设备测得的绝对值大于TA调整粒度时,信号时偏可以包括TA调整值ΔTA和残留时偏Δt。Signal time offset: When a connection is established, the access network device can continuously measure the time offset between its own pulse time slot and the received terminal time slot according to the uplink signal sent by the terminal. This offset can be called Signal time skew. TA is related to the distance between the terminal and the access network equipment. The distance between the moving terminal and the access network equipment changes, which may also cause the terminal to switch between different cells. Therefore, the access network equipment needs to be constantly corrected according to the signal time deviation. Terminal TA. When the absolute value of the signal time offset measured by the access network device is smaller than the TA adjustment granularity, the signal time offset may include residual time offset Δt; when the absolute value measured by the access network device is greater than the TA adjustment granularity, the signal time offset may be Including TA adjustment value ΔTA and residual time offset Δt.

TA调整值ΔTA:信号时偏包括的TA调整粒度的数量,ΔTA是TA调整粒度的整数倍。在TA更新过程中,ΔTA的取值范围为0-63。接入网设备可以将ΔTA发送给终端,以修正TA。若修正后的TA为TAnew,修改正前的TA为TAold,则两者与ΔTA值的关系可以为TAnew=TAold+(ΔTA-31)×TA调整粒度。TA adjustment value ΔTA: the number of TA adjustment granularities included in the signal time offset, and ΔTA is an integer multiple of the TA adjustment granularity. During the TA update process, the value range of ΔTA is 0-63. The access network device can send ΔTA to the terminal to modify TA. If the corrected TA is TA new and the pre-modified TA is TA old , then the relationship between the two and the ΔTA value can be TA new =TA old +(ΔTA-31)×TA adjustment granularity.

残留时偏Δt:信号时偏与TA调整值ΔTA的差值。Residual time offset Δt: the difference between the signal time offset and the TA adjustment value ΔTA.

在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。In the description of the embodiments of this application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in this article is only a description of the association of associated objects A relationship means that there may be three kinds of relationships, for example, A and/or B means: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" refers to two or more than two.

本申请实施例提供的技术方案可以应用于各种移动通信系统,例如第三代移动通信技术(3rd generation mobile communication,3G)通信系统,第四代移动通信技术(the4th generation mobile communication,4G)通信系统,以及未来演进网络,如第五代移动通信技术(5th-generation,5G)通信系统。例如,LTE系统,3G相关的蜂窝系统等,以及其他此类通信系统。尤其地,可以应用于5G超密集组网(ultra dense network,UDN)系统中。需要说明的是,5G标准中可以包括机器对机器(machine to machine,M2M)、D2M、宏微通信、增强型移动互联网(enhance mobile broadband,eMBB)、超高可靠性与超低时延通信(ultrareliable&low latency communication,uRLLC)以及海量物联网通信(massive machinetype communication,mMTC)等场景,这些场景可以包括但不限于:接入网设备与接入网设备之间的通信场景,接入网设备与终端之间的通信场景,终端与终端之间的通信场景等。本申请实施例提供的技术方案也可以应用于5G通信系统中的接入网设备与终端之间的通信,或接入网设备与接入网设备之间的通信,终端与终端之间的通信等场景中。The technical solution provided by the embodiment of the present application can be applied to various mobile communication systems, such as the third generation mobile communication technology (3rd generation mobile communication, 3G) communication system, the fourth generation mobile communication technology (the4th generation mobile communication, 4G) communication system system, and a future evolution network, such as a fifth-generation mobile communication technology (5th-generation, 5G) communication system. For example, LTE systems, 3G related cellular systems, etc., and other such communication systems. In particular, it can be applied to a 5G ultra-dense network (ultra dense network, UDN) system. It should be noted that 5G standards can include machine-to-machine (M2M), D2M, macro-micro communication, enhanced mobile broadband (eMBB), ultra-high reliability and ultra-low latency communication ( scenarios such as ultrareliable & low latency communication (uRLLC) and massive machine type communication (mMTC), these scenarios may include but not limited to: communication scenarios between access network devices and access network devices, access network devices and terminals Communication scenarios between terminals, communication scenarios between terminals, etc. The technical solution provided by the embodiment of the present application can also be applied to the communication between the access network device and the terminal in the 5G communication system, or the communication between the access network device and the access network device, or the communication between the terminal and the terminal Waiting for the scene.

本申请实施例提供的技术方案可以应用于如图1所示的系统架构中,该系统架构中可以包括接入网设备100、以及与接入网设备100连接的一个或多个终端200。终端200与接入网设备100之间根据定时提前TA进行数据传输,接入网设备100中配置有一个本地时钟,终端200中也配置有一个本地时钟。The technical solutions provided by the embodiments of the present application may be applied to the system architecture shown in FIG. 1 , and the system architecture may include an access network device 100 and one or more terminals 200 connected to the access network device 100 . Data transmission is performed between the terminal 200 and the access network device 100 according to the timing advance TA. The access network device 100 is configured with a local clock, and the terminal 200 is also configured with a local clock.

其中,接入网设备100可以是中继站或接入点等。接入网设备100可以是全球移动通信系统(global system for mobile communication,GSM)或码分多址(code divisionmultiple access,CDMA)网络中的基站收发信台(base transceiver station,BTS),也可以是宽带码分多址(wideband code division multiple access,WCDMA)中的NB(NodeB),还可以是LTE中的eNB或eNodeB(evolutional NodeB)。接入网设备100还可以是云无线接入网络(cloud radio access network,CRAN)场景下的无线控制器。接入网设备100还可以是未来5G网络中的网络设备或未来演进的公共陆地移动网络(public land mobilenetwork,PLMN)中的网络设备等。未来5G网络中的网络设备可以包括新型无线电基站(newradio NodeB),下一代基站(next generation NodeB,gNB),或者传输点(transmissionpoint)等。Wherein, the access network device 100 may be a relay station or an access point. The access network device 100 may be a base transceiver station (base transceiver station, BTS) in a global system for mobile communication (GSM) or code division multiple access (code division multiple access, CDMA) network, or a The NB (NodeB) in wideband code division multiple access (wideband code division multiple access, WCDMA) may also be the eNB or eNodeB (evolutional NodeB) in LTE. The access network device 100 may also be a wireless controller in a cloud radio access network (cloud radio access network, CRAN) scenario. The access network device 100 may also be a network device in a future 5G network or a network device in a future evolved public land mobile network (public land mobile network, PLMN), etc. The network equipment in the future 5G network may include a new radio base station (newradio NodeB), a next generation base station (next generation NodeB, gNB), or a transmission point (transmission point), etc.

终端200可以是用户设备(user equipment,UE)、接入终端、UE单元、UE站、移动站、移动台、远方站、远程终端、移动设备、UE终端、终端、无线通信设备、UE代理或UE装置等。接入终端可以是蜂窝电话、无绳电话、会话启动协议(session initiation protocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字处理(personal digitalassistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备等。The terminal 200 may be a user equipment (user equipment, UE), an access terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a UE terminal, a terminal, a wireless communication device, a UE proxy, or UE devices, etc. The access terminal can be a cellular phone, a cordless phone, a session initiation protocol (session initiation protocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, a personal digital assistant (PDA), a wireless communication function handheld devices, computing devices or other processing devices connected to a wireless modem, in-vehicle devices, wearable devices, etc.

在一个示例中,接入网设备100可以通过如图2所示的结构实现。如图2所示,接入网设备可以包括室内基带处理单元(building baseband unit,BBU)和远端射频模块(remote radio unit,RRU)和天馈系统(即天线)连接,BBU和RRU可以根据需要拆开使用。应注意,在具体实现过程中,接入网设备还可以采用其他通用硬件架构,而并非仅仅局限于图2所示的通用硬件架构。In an example, the access network device 100 may be implemented through the structure shown in FIG. 2 . As shown in Figure 2, the access network equipment may include an indoor baseband processing unit (building baseband unit, BBU) and a remote radio frequency module (remote radio unit, RRU) connected to the antenna feeder system (that is, the antenna), and the BBU and the RRU may be connected according to Need to be disassembled for use. It should be noted that in a specific implementation process, the access network device may also adopt other general hardware architectures, rather than being limited to the general hardware architecture shown in FIG. 2 .

以终端200为手机为例,对手机的通用硬件架构进行说明。如图3所示,手机可以包括:射频(radio frequency,RF)电路110、存储器120、其他输入设备130、显示屏140、传感器150、音频电路160、I/O子系统170、处理器180、以及电源190等部件。本领域技术人员可以理解,图3所示的手机的结构并不构成对手机的限定,可以包括比图示更多或者更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。本领域技术人员可以理解显示屏140属于用户界面(user interface,UI),显示屏140可以包括显示面板141和触摸面板142。且手机可以包括比图示更多或者更少的部件。尽管未示出,手机还可以包括摄像头、蓝牙模块等功能模块或器件,在此不再赘述。Taking the terminal 200 as a mobile phone as an example, the general hardware architecture of the mobile phone is described. As shown in FIG. 3 , the mobile phone may include: a radio frequency (radio frequency, RF) circuit 110, a memory 120, other input devices 130, a display screen 140, a sensor 150, an audio circuit 160, an I/O subsystem 170, a processor 180, And parts such as power supply 190. Those skilled in the art can understand that the structure of the mobile phone shown in Figure 3 does not constitute a limitation on the mobile phone, and may include more or less components than shown in the figure, or combine certain components, or split certain components, or Different component arrangements. Those skilled in the art can understand that the display screen 140 belongs to a user interface (user interface, UI), and the display screen 140 may include a display panel 141 and a touch panel 142 . And the handset may include more or fewer components than shown. Although not shown, the mobile phone may also include functional modules or devices such as a camera and a Bluetooth module, which will not be repeated here.

进一步地,处理器180分别与RF电路110、存储器120、音频电路160、I/O子系统170、以及电源190均连接。I/O子系统170分别与其他输入设备130、显示屏140、传感器150均连接。其中,RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将接入网设备的下行信息接收后,给处理器180处理。存储器120可用于存储软件程序以及模块。处理器180通过运行存储在存储器120的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。其他输入设备130可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。显示屏140可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单,还可以接受用户输入。传感器150可以为光传感器、运动传感器或者其他传感器。音频电路160可提供用户与手机之间的音频接口。I/O子系统170用来控制输入输出的外部设备,外部设备可以包括其他设备输入控制器、传感器控制器、显示控制器。处理器180是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。电源190(比如电池)用于给上述各个部件供电,优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。Further, the processor 180 is respectively connected to the RF circuit 110 , the memory 120 , the audio circuit 160 , the I/O subsystem 170 , and the power supply 190 . The I/O subsystem 170 is connected to other input devices 130 , the display screen 140 and the sensor 150 respectively. Among them, the RF circuit 110 can be used for sending and receiving information or receiving and sending signals during a call, in particular, after receiving downlink information from an access network device, it can be processed by the processor 180 . The memory 120 can be used to store software programs as well as modules. The processor 180 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 120 . Other input devices 130 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. The display screen 140 can be used to display information input by or provided to the user and various menus of the mobile phone, and can also accept user input. Sensor 150 may be a light sensor, motion sensor, or other sensor. Audio circuitry 160 may provide an audio interface between the user and the handset. The I/O subsystem 170 is used to control input and output external devices, and the external devices may include other device input controllers, sensor controllers, and display controllers. The processor 180 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. The power supply 190 (such as a battery) is used to supply power to the above-mentioned components. Preferably, the power supply can be logically connected to the processor 180 through the power management system, so that functions such as charging, discharging, and power consumption can be managed through the power management system.

现有技术中的同步方案不能解决如图1所示架构中,接入网设备100和终端200之间的同步问题。现有技术中的同步方案,可以解决接入网设备与其它接入网设备之间的同步问题,但通过TA来代替传输时延,其时钟偏差的计算精度限于TA调整粒度,因而同步精度较差。举例来说,若采用类似于现有技术中接入网设备与接入网设备之间的同步方案,来解决接入网设备与终端之间的同步问题,则参见图4,假设在LTE系统中,终端UE与接入网设备eNB间的传输时延为35Ts,终端UE下行同步以下行信号的到达时间为基准,上行信号的发送以下行同步为基准,则信号实际到达接入网设备eNB有70Ts的传输时延。接入网设备eNB根据上行信号测量信号时偏,确定并向终端UE发送定时提前量TA。由于LTE系统中TA调整粒度是16Ts,所以接入网设备eNB实际发送的TA为16Ts的整数倍,最佳的TA值为64Ts。终端UE接收到TA后,在提前64Ts发送上行信号,但上行信号实际到达接入网设备eNB仍存在残留时间偏差Δt=6Ts。若采用类似于现有技术中的同步方案,通过TA/2来代替传输时延,则传输时延的计算精度受限于TA调整粒度的大小,从而使得时钟偏差的计算精度也受限于TA调整粒度的大小,因而同步误差较大。The synchronization solution in the prior art cannot solve the synchronization problem between the access network device 100 and the terminal 200 in the architecture shown in FIG. 1 . The synchronization scheme in the prior art can solve the synchronization problem between the access network device and other access network devices, but the transmission delay is replaced by TA, and the calculation accuracy of the clock deviation is limited to the TA adjustment granularity, so the synchronization accuracy is relatively low. Difference. For example, if a synchronization solution similar to that between the access network device and the access network device in the prior art is adopted to solve the synchronization problem between the access network device and the terminal, refer to FIG. 4 , assuming that the LTE system Among them, the transmission delay between the terminal UE and the access network device eNB is 35Ts, the downlink synchronization of the terminal UE is based on the arrival time of the downlink signal, and the transmission of the uplink signal is based on the downlink synchronization, then the signal actually reaches the access network device eNB There is a transmission delay of 70Ts. The access network device eNB measures the signal time offset according to the uplink signal, determines and sends the timing advance TA to the terminal UE. Since the TA adjustment granularity in the LTE system is 16Ts, the TA actually sent by the access network device eNB is an integer multiple of 16Ts, and the optimal TA value is 64Ts. After receiving the TA, the terminal UE sends the uplink signal 64Ts in advance, but there is still a residual time difference Δt=6Ts when the uplink signal actually reaches the access network device eNB. If a synchronization scheme similar to that in the prior art is adopted and the transmission delay is replaced by TA/2, the calculation accuracy of the transmission delay is limited by the size of the TA adjustment granularity, so that the calculation accuracy of the clock deviation is also limited by TA The size of the granularity is adjusted, so the synchronization error is relatively large.

本申请实施例提供的方案,可以根据其绝对值小于TA调整粒度的残留时偏Δt,计算如图1所示架构中终端和接入网设备间的时钟偏差,从而调整终端侧的时钟,因而可以解决终端与接入网设备间的同步问题,且同步精度较高。以下将结合附图对本申请实施例提供的方案进行详细说明。The solution provided by the embodiment of this application can calculate the clock offset between the terminal and the access network device in the architecture shown in Figure 1 according to the residual time offset Δt whose absolute value is smaller than the TA adjustment granularity, thereby adjusting the clock on the terminal side, thus The synchronization problem between the terminal and the access network device can be solved, and the synchronization accuracy is high. The solutions provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

参见图5,本申请实施例提供一种时钟调整方法,该方法可以包括:Referring to FIG. 5, an embodiment of the present application provides a clock adjustment method, which may include:

501、终端向接入网设备发送第一信号。501. The terminal sends a first signal to an access network device.

其中,第一信号可以是现有的上行信号;也可以是一种新的上行信号。在一种可能的实现方式中,该新的上行信号可以具有较短的时长和较宽的频率范围,这样有利于提高该信号到达时刻计算的准确度。Wherein, the first signal may be an existing uplink signal or a new uplink signal. In a possible implementation manner, the new uplink signal may have a shorter duration and a wider frequency range, which is beneficial to improving the accuracy of calculating the arrival time of the signal.

502、接入网设备在接收到终端发送的第一信号后,向终端发送第一时刻值和信号时偏,第一时刻值指示接入网设备接收第一信号的时刻,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度,第一时刻值和信号时偏用于终端计算时钟偏差。502. After receiving the first signal sent by the terminal, the access network device sends the first time value and signal time offset to the terminal. The first time value indicates the moment when the access network device receives the first signal, and the signal time offset includes residual The time offset Δt, the absolute value of Δt is smaller than the timing advance TA adjustment granularity, the first time value and the signal time offset are used for the terminal to calculate the clock offset.

其中,关于信号时偏的说明,具体可以参见实施例开头的相关描述。接入网设备可以不断根据终端发送的上行信号测量信号时偏,这里的上行信号可以包括但不限于第一信号。信号时偏可以包括残留时偏Δt,Δt的绝对值小于TA调整粒度。示例性的,当TA调整粒度为16TS时,Δt的绝对值小于16TSFor the description of the signal time offset, for details, refer to the related description at the beginning of the embodiment. The access network device may continuously measure signal time offset according to the uplink signal sent by the terminal, where the uplink signal may include but not limited to the first signal. The signal time offset may include a residual time offset Δt, and the absolute value of Δt is smaller than the TA adjustment granularity. Exemplarily, when the TA adjustment granularity is 16TS , the absolute value of Δt is less than 16TS .

接入网设备在接收到终端发送的第一信号后,可以记录接收时刻为第一时刻值,并将第一时刻值和测量获得的信号时偏发送给终端,以便于终端根据第一时刻值和信号时偏计算时钟偏差。After receiving the first signal sent by the terminal, the access network device can record the receiving time as the first time value, and send the first time value and the measured signal time offset to the terminal, so that the terminal can and signal skew to calculate clock skew.

503、终端在接收到接入网设备发送的第一时刻值和信号时偏后,根据第一时刻值、信号时偏和第二时刻值,计算时钟偏差,第二时刻值指示终端发送第一信号的时刻,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值。503. After receiving the first time value and signal time offset sent by the access network device, the terminal calculates the clock deviation according to the first time value, signal time offset, and second time value, and the second time value instructs the terminal to send the first At the moment of the signal, the clock offset is the time difference between the first clock configured in the terminal and the second clock configured in the access network device.

这里的第二时刻值可以用于指示,终端在发送第一信号时记录的发送时刻。第一时钟为终端中配置的本地时钟。第二时钟为接入网设备中配置的本地时钟。终端在接收到接入网设备发送的第一时刻值和信号时偏后,可以根据第一时刻值、信号时偏和第二时刻值,计算终端中配置的本地时钟与接入网设备中配置的本地时钟之间的时间差值,该时间差值可以称为时钟偏差。The second time value here may be used to indicate the sending time recorded by the terminal when sending the first signal. The first clock is a local clock configured in the terminal. The second clock is a local clock configured in the access network device. After receiving the first time value and signal time offset sent by the access network device, the terminal can calculate the local clock configured in the terminal and the time value configured in the access network device according to the first time value, signal time offset and second time value. The time difference between the local clocks of , which can be called clock skew.

其中,关于信号时偏的说明可以参见实施例开头的相关描述。由于信号时偏包括残留时偏Δt,Δt的绝对值小于TA调整粒度,Δt的时间单位具体可以是ns或更小的时间单位,时钟偏差是根据信号时偏计算获得的,时钟偏差的计算并不受限于TA调整粒度的大小,因而时钟偏差的计算精度更高。For the description about the signal time offset, reference may be made to the relevant description at the beginning of the embodiment. Since the signal time offset includes the residual time offset Δt, the absolute value of Δt is smaller than the TA adjustment granularity, the time unit of Δt can be ns or smaller time unit, and the clock offset is calculated according to the signal time offset, and the calculation of the clock offset does not It is not limited by the size of the TA adjustment granularity, so the calculation accuracy of the clock deviation is higher.

504、终端根据时钟偏差调整第一时钟。504. The terminal adjusts the first clock according to the clock deviation.

在计算获得时钟偏差后,终端可以根据终端对应的第一时钟,与接入网设备对应的第二时钟间的时钟偏差,调整第一时钟,以使得终端与接入网设备保持同步。具体的,当时钟偏差为正值时,终端可以将第一时钟提前时钟偏差对应的时间量,以使得调整后的第一时钟与第二时钟保持同步;当时钟偏差为负值时,终端可以将第一时钟滞后时钟偏差的绝对值对应的时间量,以使得调整后的第一时钟与第二时钟保持同步。举例来说,若根据Δt计算获得的时钟偏差为20ns,则终端可以将第一时钟提前20ns;若根据Δt计算获得的时钟偏差为-20ns,则终端可以将第一时钟滞后20ns。After calculating and obtaining the clock deviation, the terminal may adjust the first clock according to the clock deviation between the first clock corresponding to the terminal and the second clock corresponding to the access network device, so that the terminal and the access network device maintain synchronization. Specifically, when the clock deviation is a positive value, the terminal may advance the first clock by the amount of time corresponding to the clock deviation, so that the adjusted first clock is synchronized with the second clock; when the clock deviation is a negative value, the terminal may The first clock is delayed by an amount of time corresponding to the absolute value of the clock skew such that the adjusted first clock is synchronized with the second clock. For example, if the clock deviation calculated according to Δt is 20 ns, the terminal may advance the first clock by 20 ns; if the clock deviation calculated according to Δt is -20 ns, the terminal may delay the first clock by 20 ns.

其中,由于时钟偏差是根据其绝对值小于TA调整粒度的Δt计算获得的,计算精度较高,从而使得根据时钟偏差调整时钟从而达到的同步精度也较高。Wherein, since the clock offset is calculated according to Δt whose absolute value is smaller than the TA adjustment granularity, the calculation accuracy is high, so that the synchronization accuracy achieved by adjusting the clock according to the clock offset is also high.

在本申请上述实施例中,终端可以根据其绝对值小于TA调整粒度的Δt计算时钟偏差,使得时钟偏差的计算不会受限于TA调整粒度的大小,从而能够提高时钟偏差的计算精度,进而在根据时钟偏差调整终端对应的第一时钟,以使得第一时钟与接入网设备对应的第二时钟保持同步时,能够提高同步精度。In the above-mentioned embodiments of the present application, the terminal can calculate the clock offset according to Δt whose absolute value is smaller than the TA adjustment granularity, so that the calculation of the clock offset will not be limited by the size of the TA adjustment granularity, thereby improving the calculation accuracy of the clock offset, and further When the first clock corresponding to the terminal is adjusted according to the clock deviation, so that the first clock is synchronized with the second clock corresponding to the access network device, the synchronization accuracy can be improved.

在上述步骤501中,第一信号中可以携带有第一请求标识,该第一请求标识可以用于终端向接入网设备请求第一时刻值和信号时偏。接入网设备在接收到第一信号中携带的该第一请求标识后,可以将第一时刻值和信号时偏发送给终端。这样,终端可以在需要进行时钟同步的时候,向接入网设备发送携带有该请求标识的第一信号。本申请实施例对第一标识的形式不作具体限定,例如第一标识可以为特定的字符串、特定的比特序列等。In the above step 501, the first signal may carry a first request identifier, and the first request identifier may be used by the terminal to request the first time value and signal time offset from the access network device. After receiving the first request identifier carried in the first signal, the access network device may send the first time value and the signal time offset to the terminal. In this way, the terminal can send the first signal carrying the request identifier to the access network device when clock synchronization is required. The embodiment of the present application does not specifically limit the form of the first identifier, for example, the first identifier may be a specific character string, a specific bit sequence, and the like.

在上述步骤502中,接入网设备向终端发送第一时刻值和信号时偏可以包括:In the above step 502, the access network device sending the first time value and signal time offset to the terminal may include:

5020、接入网设备向终端发送第二信号,第二信号中携带有第一时刻值和信号时偏;或者,接入网设备向终端发送第三信号和第四信号,第三信号中携带有第一时刻值,第四信号中携带有信号时偏。5020. The access network device sends a second signal to the terminal, and the second signal carries the first time value and signal time offset; or, the access network device sends a third signal and a fourth signal to the terminal, and the third signal carries There is a first time value, and the fourth signal carries a signal time offset.

也就是说,接入网设备可以将第一时刻值和信号时偏通过同一个信号发送给终端,从而减少交互的信令的条数;或者,接入网设备也可以将第一时刻值和信号时偏分别通过不同的信号发送给终端,以使得实现方式更为灵活。That is to say, the access network device can send the first time value and the signal time offset to the terminal through the same signal, thereby reducing the number of interactive signaling; or, the access network device can also send the first time value and the The signal time offset is sent to the terminal through different signals, so that the implementation manner is more flexible.

在本申请实施例中,上述步骤501-504以及步骤5020描述的方案,具体可以应用在如下3种场景中。In this embodiment of the application, the solutions described in steps 501-504 and step 5020 above can be specifically applied in the following three scenarios.

场景1:随机接入过程。Scenario 1: Random access process.

在该场景中,终端尚未接入网络,终端侧未存储有TA,信号时偏包括残留时偏Δt和TA调整值ΔTA。参见图6,第一信号可以为随机接入过程中的前导码Preamble序列。In this scenario, the terminal has not yet connected to the network, and there is no TA stored on the terminal side, and the signal time offset includes a residual time offset Δt and a TA adjustment value ΔTA. Referring to FIG. 6 , the first signal may be a Preamble sequence in a random access process.

接入网设备可以通过上述步骤5020向终端发送第一时刻值和信号时偏。即接入网设备可以通过同一个信号发送第一时刻值、Δt和ΔTA,以减少信令条数;或者,接入网设备可以通过一个信号发送第一时刻值,通过另一个信号发送Δt和ΔTA,以使得实现方式更为灵活。The access network device may send the first time value and signal time offset to the terminal through the above step 5020 . That is, the access network device can send the first time value, Δt and ΔTA through the same signal to reduce the number of signaling; or, the access network device can send the first time value through one signal, and send Δt and ΔTA through another signal. ΔTA to make the implementation more flexible.

或者,接入网设备也可以通过如下步骤5021,向终端发送第一时刻值和信号时偏:Alternatively, the access network device may also send the first time value and signal time offset to the terminal through the following step 5021:

5021、接入网设备向终端发送第五信号和第六信号,第五信号中携带有信号时偏中的ΔTA,第六信号中携带有第一时刻值和信号时偏中的Δt;或者,接入网设备向终端发送第七信号、第八信号和第九信号,第七信号中携带有信号时偏中的ΔTA,第八信号中携带有信号时偏中的Δt,第九信号中携带有第一时刻值。5021. The access network device sends a fifth signal and a sixth signal to the terminal, where the fifth signal carries ΔTA in the signal time offset, and the sixth signal carries the first time value and Δt in the signal time offset; or, The access network device sends the seventh signal, the eighth signal and the ninth signal to the terminal, the seventh signal carries ΔTA in the signal time offset, the eighth signal carries Δt in the signal time offset, and the ninth signal carries Has the first moment value.

也就是说,在步骤5021中,接入网设备可以通过一个信号向终端发送ΔTA,通过另一信号向终端发送第一时刻值和Δt。或者,接入网设备也可以通过3个信号分别向终端发送第一时刻值、ΔTA和Δt,以使得实现方式更为灵活。That is to say, in step 5021, the access network device may send ΔTA to the terminal through a signal, and send the first time value and Δt to the terminal through another signal. Alternatively, the access network device may also send the first time value, ΔTA, and Δt to the terminal through three signals, so that the implementation manner is more flexible.

需要说明的是,上述“第二信号”…“第九信号”仅用于区分不同的信号,而并不表示必然要存在与上述数量相同的信号。It should be noted that the above "second signal" ... "ninth signal" is only used to distinguish different signals, and does not mean that there must be the same number of signals as the above.

其中,由于ΔTA是现有随机接入过程中,接入网设备也需要向终端传递的参数,而第一时刻值和Δt是本申请实施例中需要额外传递的参数,因而可以将ΔTA采用现有随机接入过程中的信号进行传递,而将第一时刻值和Δt通过其它信号传递,从而可以更多地复用现有随机接入过程的信令等,尽量减少对现有随机过程的修改。并且,还可以将随机接入过程相关命令与授时相关命令解耦开。此外,由于第一时刻值为绝对时间,传递该第一时刻值需要的字符较多,数据量较大,现有上行信号可能受限于格式或长度而难以携带该第一时刻值,因而可以通过另外的信号传递第一时刻值。Among them, since ΔTA is a parameter that the access network device also needs to transmit to the terminal in the existing random access process, and the first time value and Δt are parameters that need to be additionally transmitted in the embodiment of the present application, ΔTA can be used in the current The signal in the random access process is transmitted, and the first time value and Δt are transmitted through other signals, so that the signaling of the existing random access process can be more reused, and the impact on the existing random process can be minimized. Revise. In addition, the commands related to the random access procedure and the commands related to timing can also be decoupled. In addition, because the first time value is an absolute time, more characters and a large amount of data are required to transmit the first time value, and the existing uplink signal may be limited by the format or length and it is difficult to carry the first time value, so it can be The first time value is transmitted via a further signal.

在可能的实现方式中,参见图6,接入网设备通过现有随机接入过程中,MAC RAR消息中的Timing Advance Command,将ΔTA发送给终端。例如,上述第五信号和第七信号可以为Timing Advance Command。当然,也可以对现有Timing Advance Command进行修改,以使得Timing Advance Command还可以进一步携带第一时刻值和Δt,从而将第一时刻值和Δt也通过Timing Advance Command发送给终端。其中,图中的TAC用于表示Timing AdvanceCommand。In a possible implementation manner, referring to FIG. 6 , the access network device sends ΔTA to the terminal through the Timing Advance Command in the MAC RAR message in the existing random access process. For example, the above-mentioned fifth signal and seventh signal may be Timing Advance Command. Of course, the existing Timing Advance Command can also be modified so that the Timing Advance Command can further carry the first time value and Δt, so that the first time value and Δt are also sent to the terminal through the Timing Advance Command. Among them, TAC in the figure is used to represent Timing AdvanceCommand.

进一步地,参见图6,在终端接收接入网设备发送的ΔTA之后,该方法还可以包括:Further, referring to FIG. 6, after the terminal receives the ΔTA sent by the access network device, the method may further include:

505、终端根据ΔTA设置TA的初始值。505. The terminal sets an initial value of TA according to ΔTA.

具体的,终端可以将定时提前TA的初始值设置为ΔTA×TA调整粒度。Specifically, the terminal may set the initial value of the timing advance TA as ΔTA×TA adjustment granularity.

由于在随机接入过程之前,终端中未维护有TA,因而在随机接入过程中首次接收到接入网设备发送的ΔTA之后,终端可以开始维护TA,并将TA的初始值设置为ΔTA×TA调整粒度。与TA更新过程中ΔTA的范围不同,在随机接入过程中,ΔTA的范围可以为0-1282,因而对应的TA的初始值为0-1282×TA调整粒度。Since there is no TA maintained in the terminal before the random access process, after receiving the ΔTA sent by the access network device for the first time during the random access process, the terminal can start to maintain the TA, and set the initial value of TA to ΔTA× TA adjustment granularity. Different from the range of ΔTA in the TA update process, in the random access process, the range of ΔTA can be 0-1282, so the corresponding initial value of TA is 0-1282×TA adjustment granularity.

在该场景中,参见图6中的步骤503,终端可以根据第一时刻值、第二时刻值、信号时偏中的ΔTA和Δt,计算时钟偏差。若t0表示第二时刻值,即以终端中配置的第一时钟为基准的第一信号的发送时刻,t1表示第一时刻值,即以接入网设置中配置的第二时钟为基准的第一信号的接收时刻,td表示终端与接入网设备间的传输时延,则t1-td表示接入网设备根据传输时延推算的,以接入网设备中配置的第二时钟为基准的第一信号的发送时刻,t0-(t1-td)即为第一时钟与第二时钟间的时钟偏差Toffset,具体可以参见如下式1。又由于在该场景中,传输时延可以表示为如下式2,因而时钟偏差可以表示为如下式3:In this scenario, referring to step 503 in FIG. 6 , the terminal may calculate the clock offset according to the first time value, the second time value, and ΔTA and Δt in the signal time offset. If t0 represents the second time value, that is, the sending time of the first signal based on the first clock configured in the terminal, and t1 represents the first time value, that is, the first time point based on the second clock configured in the access network settings. The receiving moment of a signal, td represents the transmission delay between the terminal and the access network device, and t1-td represents the time delay estimated by the access network device based on the transmission delay, based on the second clock configured in the access network device The time at which the first signal is sent, t0-(t1-td), is the clock offset Toffset between the first clock and the second clock. For details, see Equation 1 below. And because in this scenario, the transmission delay can be expressed as the following formula 2, so the clock skew can be expressed as the following formula 3:

Toffset=t0-(t1-td) 式1Toffset=t0-(t1-td) Formula 1

td=(ΔTA*TA调整粒度+Δt)/2 式2td=(ΔTA*TA adjusted particle size+Δt)/2 Formula 2

Toffset=t0-[t1-(ΔTA*TA调整粒度+Δt)/2] 式3Toffset=t0-[t1-(ΔTA*TA adjusted particle size+Δt)/2] Formula 3

需要说明的是,在该场景中,当终端与接入网设备距离较近时,信号时偏中的ΔTA也可以为0;或者,当信号时偏刚好为TA调整粒度的整数倍时,信号时偏中的Δt也可以为0。It should be noted that in this scenario, when the distance between the terminal and the access network device is relatively close, ΔTA in the signal time offset can also be 0; or, when the signal time offset is just an integer multiple of the TA adjustment granularity, the signal Δt in the time offset can also be 0.

在该场景中,本申请实施例提供的方法可以结合随机接入过程,同时实现时钟同步和随机接入,使得终端接入网络,并且可以复用随机接入过程中的相关消息,而仅需要较少的改动,且需要的信令条数可以较少。In this scenario, the method provided by the embodiment of the present application can combine the random access process to realize clock synchronization and random access at the same time, so that the terminal accesses the network and can multiplex related messages in the random access process, and only needs Less modification, and the required number of signaling lines can be less.

场景2:TA更新过程。Scenario 2: TA update process.

在该场景中,终端已接入网络,终端侧存储有TA,第一信号是根据TA提前发送的信号,信号时偏的绝对值大于TA调整粒度,信号时偏包括残留时偏Δt和TA调整值ΔTA。参见图7,在上述步骤503中,终端根据第一时刻值、信号时偏和第二时刻值,计算时钟偏差包括:In this scenario, the terminal has connected to the network, and TA is stored on the terminal side. The first signal is a signal sent in advance according to TA. The absolute value of the signal time offset is greater than the TA adjustment granularity. The signal time offset includes residual time offset Δt and TA adjustment. Value ΔTA. Referring to FIG. 7, in the above step 503, the terminal calculates the clock deviation according to the first time value, the signal time offset and the second time value, including:

5030、终端根据第一时刻值、信号时偏、第二时刻值和TA,计算时钟偏差。其中的信号时偏包括Δt和ΔTA。5030. The terminal calculates a clock offset according to the first time value, the signal time offset, the second time value, and TA. The signal time offset includes Δt and ΔTA.

在该场景中,传输时延td的表达式可以参见如下式4:In this scenario, the expression of the transmission delay td can refer to the following formula 4:

td=[TA+(ΔTA-31)*TA调整粒度+Δt]/2] 式4td=[TA+(ΔTA-31)*TA adjusted granularity+Δt]/2] Formula 4

结合式4和上述式1,则在该场景中,时钟偏差Toffset的表达式可以参见如下式5:Combining Equation 4 and the above Equation 1, in this scenario, the expression of the clock offset Toffset can refer to the following Equation 5:

Toffset=t0-[t1-[TA+(ΔTA-31)*TA调整粒度+Δt]/2] 式5Toffset=t0-[t1-[TA+(ΔTA-31)*TA adjustment granularity+Δt]/2] Formula 5

在该场景中,接入网设备可以通过上述步骤5020或上述步骤5021向终端发送第一时刻值和信号时偏。并且,参见图7中的步骤502,接入网设备也可以通过TA更新过程中的Timing Advance Command,将ΔTA发送给终端,这里不再赘述。In this scenario, the access network device may send the first time value and the signal time offset to the terminal through the above step 5020 or the above step 5021. Moreover, referring to step 502 in FIG. 7 , the access network device may also send ΔTA to the terminal through the Timing Advance Command in the TA update process, which will not be repeated here.

进一步地,参见图7,在该场景中,在终端接收到接入网设备发送的ΔTA之后,该方法还可以包括:Further, referring to FIG. 7, in this scenario, after the terminal receives the ΔTA sent by the access network device, the method may further include:

506、终端根据ΔTA调整TA。506. The terminal adjusts TA according to ΔTA.

终端可以通过步骤506,对之前存储的TA进行更新。具体的,终端根据ΔTA调整TA可以包括:终端将TA调整为TA+(ΔTA-31)×TA调整粒度。即,更新后的TA为更新前的TA与(ΔTA-31)×TA调整粒度的和。The terminal may update the previously stored TA through step 506 . Specifically, the terminal adjusting the TA according to ΔTA may include: the terminal adjusting the TA to TA+(ΔTA-31)×TA adjustment granularity. That is, the updated TA is the sum of the pre-updated TA and (ΔTA-31)×TA adjustment granularity.

此外,在该场景中,TA和/或Δt也可以为0。Furthermore, TA and/or Δt may also be zero in this scenario.

可见,在该场景中,本申请实施例提供的方法可以结合TA更新过程,同时实现时钟同步和TA更新,并且可以复用现有TA更新过程中的相关消息,仅需要较少的改动,且需要的信令条数可以较少。It can be seen that in this scenario, the method provided by the embodiment of the present application can combine the TA update process to realize clock synchronization and TA update at the same time, and can reuse related messages in the existing TA update process, requiring only a few changes, and The required number of signaling lines may be less.

场景3:终端已接入网络,终端侧存储有TA,信号时偏的绝对值小于TA调整粒度,信号时偏仅包括残留时偏Δt,而不包括ΔTA,TA不需要更新,第一信号是根据TA提前发送的信号。Scenario 3: The terminal has connected to the network, and TA is stored on the terminal side. The absolute value of the signal time offset is smaller than the TA adjustment granularity. The signal time offset only includes the residual time offset Δt, not ΔTA. TA does not need to be updated. The first signal is According to the signal sent by TA in advance.

参见图8,在上述步骤503中,终端根据第一时刻值、信号时偏和第二时刻值,计算时钟偏差可以包括:Referring to FIG. 8, in the above step 503, the terminal calculates the clock deviation according to the first time value, the signal time offset and the second time value, which may include:

5031、终端根据第一时刻值、信号时偏、第二时刻值和TA,计算时钟偏差。其中的信号时偏包括Δt。5031. The terminal calculates a clock offset according to the first time value, the signal time offset, the second time value, and TA. The signal time offset includes Δt.

在该场景中,传输时延td的表达式可以参见如下式6:In this scenario, the expression of transmission delay td can refer to the following formula 6:

td=(TA+Δt)/2 式6td=(TA+Δt)/2 Formula 6

结合式6和上述式1,时钟偏差Toffset的表达式可以参见如下式7:Combining Equation 6 and the above Equation 1, the expression of the clock offset Toffset can be referred to the following Equation 7:

Toffset=t0-[t1-(TA+Δt)/2] 式7Toffset=t0-[t1-(TA+Δt)/2] Formula 7

在该场景中,接入网设备可以通过上述步骤5020或上述步骤5021向终端发送第一时刻值和信号时偏,这里不再赘述。In this scenario, the access network device may send the first time value and the signal time offset to the terminal through the above step 5020 or the above step 5021, which will not be repeated here.

另外,在该场景中,TA还可以为0。In addition, in this scenario, TA can also be 0.

在该场景中,通过计算时钟偏差实现时钟同步的过程,可以作为一个相对独立的过程,而与TA解耦合,仅在计算时钟偏差时利用TA。并且,该过程需要的信令条数可以较少,且不依赖于其它流程(例如小区切换流程)和移动性要求。In this scenario, the process of realizing clock synchronization by calculating the clock skew can be regarded as a relatively independent process, decoupled from the TA, and only using the TA when calculating the clock skew. Moreover, the number of signaling pieces required by this process can be less, and does not depend on other processes (such as cell handover process) and mobility requirements.

本申请另一实施例提供一种时钟调整方法,参见图9,该方法可以包括:Another embodiment of the present application provides a clock adjustment method. Referring to FIG. 9, the method may include:

901、终端向接入网设备发送第一信号。901. The terminal sends a first signal to an access network device.

其中,关于第一信号的解释可以参考上述步骤501中的相关说明。Wherein, for an explanation of the first signal, reference may be made to relevant descriptions in step 501 above.

902、接入网设备在接收到终端发送的第一信号后,根据信号时偏计算传输时延,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度。902. After receiving the first signal sent by the terminal, the access network device calculates the transmission delay according to the signal time offset, the signal time offset includes the residual time offset Δt, and the absolute value of Δt is smaller than the timing advance TA adjustment granularity.

其中,由于传输时延根据其绝对值小于TA调整粒度的Δt计算获得,因而使得传输时延的计算不受限于TA调整粒度的大小。Wherein, since the transmission delay is calculated according to Δt whose absolute value is smaller than the TA adjustment granularity, the calculation of the transmission delay is not limited by the size of the TA adjustment granularity.

903、接入网设备将传输时延和第一时刻值发送给终端,第一时刻值用于指示接入网设备接收第一信号的时刻。903. The access network device sends the transmission delay and the first time value to the terminal, where the first time value is used to indicate the time when the access network device receives the first signal.

904、终端在接收到接入网设备发送的第一时刻值和传输时延后,根据第一时刻值、传输时延和第二时刻值,计算时钟偏差,第二时刻值指示终端发送第一信号的时刻,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值。904. After receiving the first time value and transmission delay sent by the access network device, the terminal calculates the clock deviation according to the first time value, transmission delay, and second time value, and the second time value instructs the terminal to send the first At the moment of the signal, the clock offset is the time difference between the first clock configured in the terminal and the second clock configured in the access network device.

由于时钟偏差根据传输时延计算获得,而传输时延根据Δt计算获得,Δt的绝对值小于TA调整粒度,Δt的时间单位具体可以是ns或更小的时间单位,因而传输时延和时钟偏差的计算不受限于TA调整粒度的大小,因而时钟偏差的计算也不受限于TA调整粒度的大小,时钟偏差的计算精度更高。Since the clock deviation is calculated according to the transmission delay, and the transmission delay is calculated according to Δt, the absolute value of Δt is smaller than the TA adjustment granularity, and the time unit of Δt can be ns or smaller, so the transmission delay and clock deviation The calculation of is not limited by the size of the TA adjustment granularity, so the calculation of the clock offset is not limited by the size of the TA adjustment granularity, and the calculation accuracy of the clock offset is higher.

905、终端根据时钟偏差调整第一时钟。905. The terminal adjusts the first clock according to the clock deviation.

在本步骤中,由于时钟偏差是根据其绝对值小于TA调整粒度的Δt计算获得的,计算精度较高,从而使得根据时钟偏差调整时钟从而达到的同步精度也较高。In this step, since the clock offset is calculated based on Δt whose absolute value is smaller than the TA adjustment granularity, the calculation accuracy is high, so that the synchronization accuracy achieved by adjusting the clock according to the clock offset is also high.

在本申请上述实施例中,接入网设备可以根据其绝对值小于TA调整粒度的Δt计算传输时延,并将传输时延发送给终端以计算时钟偏差,从而使得传输时延和时钟偏差的计算不会受限于TA调整粒度的大小,因而可以提高时钟偏差的计算精度,进而在根据时钟偏差调整终端对应的第一时钟,以使得第一时钟与接入网设备对应的第二时钟保持同步时,能够提高同步精度。In the above embodiments of the present application, the access network device can calculate the transmission delay according to Δt whose absolute value is smaller than the TA adjustment granularity, and send the transmission delay to the terminal to calculate the clock deviation, so that the transmission delay and the clock deviation The calculation is not limited by the size of the TA adjustment granularity, so the calculation accuracy of the clock deviation can be improved, and then the first clock corresponding to the terminal is adjusted according to the clock deviation, so that the first clock and the second clock corresponding to the access network device maintain When synchronizing, the synchronization accuracy can be improved.

在上述步骤901中,第一信号中可以携带有第二请求标识,该第二请求标识可以用于终端向接入网设备请求第一时刻值和传输时延。接入网设备在接收到第一信号中携带的该第二请求标识后,可以将第一时刻值和传输时延发送给终端。这样,终端可以在需要进行时钟同步的时候,向接入网设备发送携带有该请求标识的第一信号。In the above step 901, the first signal may carry a second request identifier, and the second request identifier may be used by the terminal to request the first time value and transmission delay from the access network device. After receiving the second request identifier carried in the first signal, the access network device may send the first time value and the transmission delay to the terminal. In this way, the terminal can send the first signal carrying the request identifier to the access network device when clock synchronization is required.

在上述步骤903中,接入网设备可以通过同一个信号将传输时延和第一时刻值发送给终端,以减少信令条数;或者,接入网设备也可以通过2个不同的信号,分别将第一时刻值和传输时延分别发送给终端,以使得实现方式更为灵活。In the above step 903, the access network device can send the transmission delay and the first time value to the terminal through the same signal, so as to reduce the number of signaling entries; or, the access network device can also use two different signals, The first time value and the transmission delay are respectively sent to the terminal, so that the implementation manner is more flexible.

在本申请实施例中,上述步骤901-905描述的方案,具体可以应用在如下3种场景中。In this embodiment of the present application, the solutions described in steps 901-905 above may be specifically applied in the following three scenarios.

场景1:随机接入过程。Scenario 1: Random access process.

在该场景中,终端侧未存储有TA,信号时偏包括残留时偏Δt和TA调整值ΔTA。第一信号可以为随机接入过程中的前导码Preamble序列。接入网设备在上述步骤902中,根据信号时偏中的Δt和ΔTA计算传输时延,传输时延的表达式可以参见如上式2;且在上述步骤904中,接入网设备根据传输时延,计算时钟偏差的表达式可以参见如上式1,这里不再赘述。In this scenario, there is no TA stored on the terminal side, and the signal time offset includes a residual time offset Δt and a TA adjustment value ΔTA. The first signal may be a Preamble sequence in a random access process. In the above step 902, the access network device calculates the transmission delay according to Δt and ΔTA in the signal time offset. The expression of the transmission delay can be referred to in the above formula 2; Delay, the expression for calculating the clock offset can refer to the above formula 1, and will not be repeated here.

在上述步骤903中,接入网设备可以通过同一个信号,将第一时刻值、传输时延和ΔTA发送给终端,以减少交互信令的条数。或者,接入网设备可以通过一个信号将ΔTA发送给终端,而通过另一个信号将第一时刻值和传输时延发送给终端;或者,接入网设备可以通过3个信号,分别将第一时刻值、传输时延、ΔTA中的一个参数单独发送给终端,以使得实现方式更为灵活。In the above step 903, the access network device may send the first time value, transmission delay and ΔTA to the terminal through the same signal, so as to reduce the number of interactive signaling. Or, the access network device can send ΔTA to the terminal through one signal, and send the first time value and transmission delay to the terminal through another signal; or, the access network device can send the first time value and transmission delay to the terminal through three signals, respectively. A parameter among time value, transmission delay, and ΔTA is sent to the terminal separately, so that the implementation manner is more flexible.

在一种可能的实现方式中,参见图10a,在上述步骤903之后,该方法还可以包括:In a possible implementation manner, referring to FIG. 10a, after the foregoing step 903, the method may further include:

906、接入网设备向终端发送Timing Advance Command,Timing Advance Command中携带有ΔTA。906. The access network device sends a Timing Advance Command to the terminal, and the Timing Advance Command carries ΔTA.

或者,在一种可能的实现方式中,参见图10b,上述步骤903具体可以包括:Or, in a possible implementation manner, referring to FIG. 10b, the above step 903 may specifically include:

9030、接入网设备向终端发送Timing Advance Command,Timing AdvanceCommand中携带有第一时刻值、传输时延和ΔTA。这样,可以复用随机接入过程中的TimingAdvance Command,来同时传递同步过程所需的第一时刻值和传输时延。9030. The access network device sends a Timing Advance Command to the terminal, where the Timing Advance Command carries the first time value, transmission delay and ΔTA. In this way, the TimingAdvance Command in the random access process can be reused to transmit the first time value and the transmission delay required by the synchronization process at the same time.

进一步地,参见图10a和图10b,在终端接收到接入网设备发送的ΔTA之后,该方法还可以包括上述步骤505,以使得终端可以开始维护TA,并根据ΔTA设置TA的初始值。Further, referring to FIG. 10a and FIG. 10b, after the terminal receives the ΔTA sent by the access network device, the method may further include the above step 505, so that the terminal can start maintaining the TA, and set the initial value of the TA according to the ΔTA.

需要说明的是,在该场景中,信号时偏中的ΔTA或Δt可以为0。It should be noted that, in this scenario, ΔTA or Δt in the signal time offset may be 0.

可见,在该场景中,本申请实施例提供的方法可以结合随机接入过程,同时实现时钟同步和随机接入,使得终端接入网络,并且可以复用随机接入过程中的相关消息,而仅需要较少的改动,且需要的信令条数可以较少。It can be seen that in this scenario, the method provided by the embodiment of the present application can combine the random access process to realize clock synchronization and random access at the same time, so that the terminal accesses the network and can multiplex related messages in the random access process, while Only less modification is required, and the number of required signaling lines can be less.

场景2:TA更新过程。Scenario 2: TA update process.

在该场景中,终端已接入网络,终端侧存储有TA,第一信号是根据TA提前发送的信号,信号时偏的绝对值大于TA调整粒度,信号时偏包括残留时偏Δt和TA调整值ΔTA。In this scenario, the terminal has connected to the network, and TA is stored on the terminal side. The first signal is a signal sent in advance according to TA. The absolute value of the signal time offset is greater than the TA adjustment granularity. The signal time offset includes residual time offset Δt and TA adjustment. Value ΔTA.

在一种可能的实现方式中,在上述步骤902之前,该方法还可以包括:In a possible implementation, before the above step 902, the method may further include:

907、终端向接入网设备发送定时提前TA。907. The terminal sends a timing advance TA to the access network device.

基于步骤907,步骤902可以包括:Based on step 907, step 902 may include:

9020、接入网设备根据信号时偏和TA计算传输时延。9020. The access network device calculates the transmission delay according to the signal time offset and the TA.

或者,在另一种可能的实现方式中,上述第一信号中携带有定时提前TA,步骤902具体可以为上述步骤9020。Or, in another possible implementation manner, the above-mentioned first signal carries a timing advance TA, and step 902 may specifically be the above-mentioned step 9020 .

在该场景中,接入网设备可以在上述步骤902中根据TA以及信号时偏中的Δt和ΔTA计算传输时延,传输时延的表达式可以参见如上式4;且在上述步骤904中,接入网设备根据传输时延,计算时钟偏差的表达式可以参见如上式1,这里不再赘述。In this scenario, the access network device can calculate the transmission delay according to TA and Δt and ΔTA in the signal time offset in the above step 902, the expression of the transmission delay can be referred to the above formula 4; and in the above step 904, The expression for calculating the clock offset by the access network device according to the transmission delay can refer to the above formula 1, which will not be repeated here.

在该场景中,关于传输时延和ΔTA的发送方式,具体可以参见图10a中的步骤903、906,以及图10b中的步骤903,这里不再赘述。In this scenario, regarding the transmission delay and the transmission manner of ΔTA, for details, refer to steps 903 and 906 in FIG. 10a and step 903 in FIG. 10b , which will not be repeated here.

进一步地,参见图11a和图11b,在该场景中,在终端接收到接入网设备发送的ΔTA之后,该方法还可以包括上述步骤506,以使得终端可以对之前存储的TA进行更新。Further, referring to FIG. 11a and FIG. 11b , in this scenario, after the terminal receives the ΔTA sent by the access network device, the method may further include the above step 506, so that the terminal can update the previously stored TA.

此外,在该场景中,TA和/或Δt还可以为0。In addition, TA and/or Δt can also be 0 in this scenario.

可见,在该场景中,本申请实施例提供的方法可以结合TA更新过程,同时实现时钟同步和TA更新,并且可以复用现有TA更新过程中的相关消息,而仅需要较少的改动,且需要的信令条数可以较少。It can be seen that in this scenario, the method provided by the embodiment of the present application can combine the TA update process to realize clock synchronization and TA update at the same time, and can reuse relevant messages in the existing TA update process, and only requires few changes. And the required number of signaling lines may be less.

场景3:终端已接入网络,终端侧存储有TA,信号时偏的绝对值小于TA调整粒度,信号时偏仅包括残留时偏Δt,而不包括ΔTA,TA不需要更新,第一信号是根据TA提前发送的信号。Scenario 3: The terminal has connected to the network, and TA is stored on the terminal side. The absolute value of the signal time offset is smaller than the TA adjustment granularity. The signal time offset only includes the residual time offset Δt, not ΔTA. TA does not need to be updated. The first signal is According to the signal sent by TA in advance.

在一种可能的实现方式中,在上述步骤902之前,该方法还可以包括上述步骤907,基于步骤907,步骤902可以包括上述步骤9020。或者,在另一种可能的实现方式中,上述第一信号中携带有定时提前TA,步骤902具体可以为上述步骤9020。In a possible implementation manner, before the above step 902, the method may further include the above step 907, and based on the step 907, the step 902 may include the above step 9020. Or, in another possible implementation manner, the foregoing first signal carries a timing advance TA, and step 902 may specifically be the foregoing step 9020 .

在该场景中,参见图12,接入网设备在上述步骤902中可以根据TA以及信号时偏中的Δt计算传输时延,传输时延的表达式可以参见如上式6;且在上述步骤904中,接入网设备根据传输时延,计算时钟偏差的表达式可以参见如上式1,这里不再赘述。In this scenario, referring to FIG. 12, the access network device can calculate the transmission delay according to the TA and Δt in the signal time offset in the above step 902, and the expression of the transmission delay can be referred to the above formula 6; and in the above step 904 In , the expression for calculating the clock offset by the access network device according to the transmission delay can refer to the above formula 1, which will not be repeated here.

另外,在该场景中,TA还可以为0。In addition, in this scenario, TA can also be 0.

在该场景中,通过计算时钟偏差实现时钟同步的过程,可以作为一个相对独立的过程,与TA解耦合,而仅在计算时钟偏差时利用TA。并且,该过程需要的信令条数可以较少,且不依赖于其它流程(例如小区切换流程)和移动性要求。In this scenario, the process of realizing clock synchronization by calculating the clock skew can be taken as a relatively independent process, decoupled from the TA, and the TA is only used when calculating the clock skew. Moreover, the number of signaling pieces required by this process can be less, and does not depend on other processes (such as cell handover process) and mobility requirements.

本申请另一实施例提供一种时钟调整方法,参见图13,该方法可以包括:Another embodiment of the present application provides a clock adjustment method. Referring to FIG. 13, the method may include:

1301、终端向接入网设备发送第一信号和第二时刻值,第二时刻值指示终端发送第一信号的时刻。1301. The terminal sends a first signal and a second time value to an access network device, where the second time value indicates the time when the terminal sends the first signal.

其中,关于第一信号的说明可以参见上述步骤501中的相关描述。Wherein, for the description about the first signal, reference may be made to the relevant description in the above-mentioned step 501 .

1302、接入网设备在接收到终端发送的第一信号和第二时刻值后,根据第二时刻值、信号时偏和第一时刻值,计算时钟偏差,第一时刻值指示接入网设备接收第一信号的时刻,时钟偏差为终端中配置的第一时钟与接入网设备中配置的第二时钟之间的时间差值,信号时偏包括残留时偏Δt,Δt的绝对值小于定时提前TA调整粒度,时钟偏差用于终端调整第一时钟。1302. After receiving the first signal and the second time value sent by the terminal, the access network device calculates the clock deviation according to the second time value, the signal time offset, and the first time value, and the first time value indicates the access network device At the time when the first signal is received, the clock offset is the time difference between the first clock configured in the terminal and the second clock configured in the access network device. The signal time offset includes a residual time offset Δt, and the absolute value of Δt is less than the timing The TA adjustment granularity is advanced, and the clock deviation is used for the terminal to adjust the first clock.

其中,由于时钟偏差根据Δt计算获得,Δt的时间单位具体可以是ns或更小的时间单位,因而时钟偏差的计算不受限于TA调整粒度的大小,时钟偏差的计算精度更高。Wherein, since the clock bias is calculated according to Δt, and the time unit of Δt may be ns or smaller, the calculation of the clock bias is not limited to the size of the TA adjustment granularity, and the calculation accuracy of the clock bias is higher.

1303、接入网设备将时钟偏差发送给终端。1303. The access network device sends the clock offset to the terminal.

1304、终端在接收到接入网设备发送的时钟偏差后,根据时钟偏差调整第一时钟。1304. After receiving the clock deviation sent by the access network device, the terminal adjusts the first clock according to the clock deviation.

其中,由于时钟偏差是根据其绝对值小于TA调整粒度的Δt计算获得的,计算精度较高,从而使得根据时钟偏差调整时钟从而达到的同步精度也较高。Wherein, since the clock offset is calculated according to Δt whose absolute value is smaller than the TA adjustment granularity, the calculation accuracy is high, so that the synchronization accuracy achieved by adjusting the clock according to the clock offset is also high.

在本申请上述实施例中,接入网设备可以根据其绝对值小于TA调整粒度的Δt计算时钟偏差,使得时钟偏差的计算不会受限于TA调整粒度的大小,从而能够提高时钟偏差的计算精度,进而将时钟偏差发送给终端,使得终端根据时钟偏差调整终端对应的第一时钟,以使得第一时钟与接入网设备对应的第二时钟保持同步时,能够提高同步精度。In the above-mentioned embodiments of the present application, the access network device can calculate the clock offset according to Δt whose absolute value is smaller than the TA adjustment granularity, so that the calculation of the clock offset will not be limited by the size of the TA adjustment granularity, thereby improving the calculation of the clock offset Accuracy, and then send the clock deviation to the terminal, so that the terminal adjusts the first clock corresponding to the terminal according to the clock deviation, so that when the first clock is synchronized with the second clock corresponding to the access network device, the synchronization accuracy can be improved.

在上述步骤1301中,第一信号中还可以携带有第三请求标识,该第三请求标识可以用于终端向接入网设备请求时钟偏差。接入网设备在接收到第一信号中携带的该第三请求标识后,可以将时钟偏差发送给终端。这样,终端可以在需要进行时钟同步的时候,向接入网设备发送携带有该请求标识的第一信号。In the above step 1301, the first signal may further carry a third request identifier, and the third request identifier may be used by the terminal to request a clock offset from the access network device. After receiving the third request identifier carried in the first signal, the access network device may send the clock offset to the terminal. In this way, the terminal can send the first signal carrying the request identifier to the access network device when clock synchronization is required.

在一种可能的实现方式中,终端在上述步骤1301中向接入网设备发送第二时刻值可以包括:In a possible implementation manner, the terminal sending the second time value to the access network device in the above step 1301 may include:

13010、终端向接入网设备发送第二信号,第二信号中携带有第二时刻值。这样,可以使得第二时刻值的传递方式更为灵活。13010. The terminal sends a second signal to the access network device, where the second signal carries a second time value. In this way, the transmission mode of the second time value can be made more flexible.

在另一种可能的实现方式中,第一信号中可以携带有第二时刻值,终端通过第一信号将第二时刻值发送给接入网设备。这样,通过在第一信号中携带第二时刻值,可以减少交互信令的条数。In another possible implementation manner, the first signal may carry the second time value, and the terminal sends the second time value to the access network device through the first signal. In this way, by carrying the second time value in the first signal, the number of interactive signaling can be reduced.

在一种可能的实现方式中,在上述步骤1302之前,该方法还可以包括:In a possible implementation, before step 1302, the method may further include:

1305、接入网设备接收终端发送的定时提前TA;1305. The access network device receives the timing sent by the terminal and advances TA;

基于步骤1305,步骤1302具体可以包括:Based on step 1305, step 1302 may specifically include:

13020、接入网设备根据第一时刻值、第二时刻值、信号时偏和TA,计算时钟偏差。13020. The access network device calculates the clock offset according to the first time value, the second time value, the signal time offset and TA.

或者,在另一种可能的实现方式中,第一信号中可以携带有定时提前TA,上述步骤1302具体可以为步骤13020。Or, in another possible implementation manner, the first signal may carry a timing advance TA, and the foregoing step 1302 may specifically be step 13020 .

在本申请实施例中,上述步骤1301-1305以及步骤13010、13020描述的方案,具体可以应用在如下2种场景中。In this embodiment of the present application, the solutions described in steps 1301-1305 and steps 13010 and 13020 above can be specifically applied in the following two scenarios.

场景1:TA更新过程。Scenario 1: TA update process.

在该场景中,终端已接入网络,终端侧存储有TA,第一信号是根据TA提前发送的信号,信号时偏的绝对值大于TA调整粒度,信号时偏包括残留时偏Δt和TA调整值ΔTA。参见图14,接入网设备在上述步骤1302中,根据第二时刻值、信号时偏和第一时刻值,计算时钟偏差包括:In this scenario, the terminal has connected to the network, and TA is stored on the terminal side. The first signal is a signal sent in advance according to TA. The absolute value of the signal time offset is greater than the TA adjustment granularity. The signal time offset includes residual time offset Δt and TA adjustment. Value ΔTA. Referring to FIG. 14, in the above step 1302, the access network device calculates the clock deviation according to the second time value, signal time offset and first time value, including:

13021、接入网设备根据第二时刻值、信号时偏中的Δt和ΔTA、第一时刻值和TA,计算时钟偏差。时钟偏差的表达式可以参考上述式5,这里不再赘述。13021. The access network device calculates a clock offset according to the second time value, Δt and ΔTA in the signal time offset, and the first time value and TA. The expression of the clock bias can refer to the above formula 5, which will not be repeated here.

在一种可能的实现方式在中,参见图14a,在上述步骤1303之后,该方法还可以包括:In a possible implementation manner, referring to FIG. 14a, after the above step 1303, the method may further include:

1305、接入网设备向终端发送Timing Advance Command,Timing AdvanceCommand中携带有ΔTA。1305. The access network device sends a Timing Advance Command to the terminal, and the Timing Advance Command carries ΔTA.

在另一种可能的实现方式中,参见图14b,上述步骤1303可以包括:接入网设备向终端发送Timing Advance Command,Timing Advance Command中携带有时钟偏差和ΔTA。这样,通过在Timing Advance Command中同时发送时钟偏差和ΔTA,可以复用现有技术中的信号,并减少交互信令的条数。In another possible implementation manner, referring to FIG. 14b, the foregoing step 1303 may include: the access network device sends a Timing Advance Command to the terminal, and the Timing Advance Command carries a clock offset and ΔTA. In this way, by sending the clock offset and ΔTA simultaneously in the Timing Advance Command, signals in the prior art can be multiplexed and the number of interactive signaling can be reduced.

进一步地,参见图14a和图14b,在该场景中,在终端接收到接入网设备发送的ΔTA之后,该方法还可以包括上述步骤506,以使得终端可以对之前存储的TA进行更新。Further, referring to FIG. 14a and FIG. 14b, in this scenario, after the terminal receives the ΔTA sent by the access network device, the method may further include the above step 506, so that the terminal can update the previously stored TA.

此外,在该场景中,TA和/或Δt还可以为0。In addition, TA and/or Δt can also be 0 in this scenario.

可见,在该场景中,本申请实施例提供的方法可以结合TA更新过程,同时实现时钟同步和TA更新,并且可以复用现有TA更新过程中的相关消息,而仅需要较少的改动,且需要的信令条数可以较少。It can be seen that in this scenario, the method provided by the embodiment of the present application can combine the TA update process to realize clock synchronization and TA update at the same time, and can reuse relevant messages in the existing TA update process, and only requires few changes. And the required number of signaling lines may be less.

场景2:终端已接入网络,终端侧存储有TA,信号时偏的绝对值小于TA调整粒度,信号时偏包括残留时偏Δt,而不包括ΔTA,TA不需要更新,第一信号是根据TA提前发送的信号。Scenario 2: The terminal has connected to the network, and TA is stored on the terminal side. The absolute value of the signal time offset is smaller than the TA adjustment granularity. The signal time offset includes the residual time offset Δt, but not ΔTA. TA does not need to be updated. The first signal is based on Signal sent by TA in advance.

参见图15,接入网设备在上述步骤1302中,根据第二时刻值、信号时偏和第一时刻值,计算时钟偏差包括:Referring to FIG. 15, in the above step 1302, the access network device calculates the clock deviation according to the second time value, signal time offset and first time value, including:

13021、接入网设备根据第二时刻值、信号时偏、第一时刻值和TA,计算时钟偏差。其中,信号时偏仅包括Δt。时钟偏差的表达式可以参考上述式7,这里不再赘述。13021. The access network device calculates a clock offset according to the second time value, the signal time offset, the first time value, and TA. Wherein, the signal time offset only includes Δt. The expression of the clock bias can refer to the above formula 7, which will not be repeated here.

另外,在该场景中,TA还可以为0。In addition, in this scenario, TA can also be 0.

在该场景中,通过计算时钟偏差实现时钟同步的过程,可以作为一个相对独立的过程,与TA解耦合,而仅在计算时钟偏差时利用TA。并且,该过程需要的信令条数可以较少,不依赖其它流程(例如小区切换流程)和移动性要求。In this scenario, the process of realizing clock synchronization by calculating the clock skew can be taken as a relatively independent process, decoupled from the TA, and the TA is only used when calculating the clock skew. Moreover, the number of signaling pieces required for this process can be less, and does not depend on other processes (such as cell handover process) and mobility requirements.

上述主要从各个网元之间交互的角度对本申请实施例提供的方案进行了介绍。可以理解的是,各个网元,例如接入网设备、终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solution provided by the embodiment of the present application from the perspective of interaction between various network elements. It can be understood that, in order to realize the above-mentioned functions, each network element, such as an access network device and a terminal, includes a corresponding hardware structure and/or software module for performing each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of the examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

本申请实施例可以根据上述方法示例对接入网设备、终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application can divide the functional units of the access network device and the terminal according to the above method example, for example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module . The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.

在采用对应各个功能划分各个功能单元的情况下,图16示出了上述和实施例中涉及的终端的一种可能的组成示意图,如图16所示,该终端可以包括:发送单元1601、接收单元1602、计算单元1603、调整单元1604和设置单元1605。In the case of dividing each functional unit corresponding to each function, FIG. 16 shows a possible composition diagram of the terminal involved in the above and embodiments. As shown in FIG. 16, the terminal may include: a sending unit 1601, a receiving unit unit 1602 , calculation unit 1603 , adjustment unit 1604 and setting unit 1605 .

在一种可能的实施方式中,发送单元1601用于支持终端执行图5-图8中所示的步骤501,接收单元1602用于支持终端执行图5-图8中所示的步骤502,计算单元1603用于支持终端执行图5和图6中所示的步骤503,图7中步骤5030和图8中所示的步骤5031。调整单元1604用于支持终端执行图5-图8中所示的步骤504,以及图7中所示的步骤506。设置单元1605用于支持终端执行图6中所示的步骤505。In a possible implementation manner, the sending unit 1601 is used to support the terminal to execute step 501 shown in FIG. 5-FIG. Unit 1603 is configured to support the terminal to execute step 503 shown in FIG. 5 and FIG. 6 , step 5030 in FIG. 7 and step 5031 shown in FIG. 8 . The adjustment unit 1604 is configured to support the terminal to execute step 504 shown in FIGS. 5-8 and step 506 shown in FIG. 7 . The setting unit 1605 is configured to support the terminal to execute step 505 shown in FIG. 6 .

在另一种可能的实施方式中,发送单元1601用于支持终端执行图9-图12中所示的步骤901,接收单元1602用于支持终端执行图9-图12中所示的步骤903,图10a和图11a中所示的步骤906,计算单元1603用于支持终端执行图9-图12中所示的步骤904。调整单元1604用于支持终端执行图9-图12中所示的步骤905,以及图11a和图11b中所示的步骤506。设置单元1605用于支持终端执行图10a和图10b中所示的步骤505。In another possible implementation manner, the sending unit 1601 is configured to support the terminal to execute step 901 shown in FIG. 9-FIG. 12, and the receiving unit 1602 is configured to support the terminal to execute step 903 shown in FIG. In step 906 shown in FIG. 10a and FIG. 11a , the calculation unit 1603 is used to support the terminal to execute step 904 shown in FIG. 9-FIG. 12 . The adjustment unit 1604 is configured to support the terminal to execute step 905 shown in FIG. 9-FIG. 12, and step 506 shown in FIG. 11a and FIG. 11b. The setting unit 1605 is configured to support the terminal to execute step 505 shown in Fig. 10a and Fig. 10b.

图17示出了上述和实施例中涉及的终端的另一种可能的组成示意图,如图17所示,该终端可以包括:发送单元1701、接收单元1702和调整单元1703。其中,发送单元1701用于支持终端执行图13-图15中所示的步骤1301,接收单元1702用于支持终端执行图13-图15中所示的步骤1303,图14a中所示的步骤1305,调整单元1703用于支持终端执行图13-图15中所示的步骤1304,以及图14a和图14b中所示的步骤506。FIG. 17 shows another possible composition diagram of the terminal involved in the foregoing and embodiments. As shown in FIG. 17 , the terminal may include: a sending unit 1701 , a receiving unit 1702 and an adjusting unit 1703 . Among them, the sending unit 1701 is used to support the terminal to execute the step 1301 shown in FIG. 13-FIG. 15, and the receiving unit 1702 is used to support the terminal to execute the step 1303 shown in FIG. , the adjusting unit 1703 is configured to support the terminal to execute step 1304 shown in FIG. 13-FIG. 15, and step 506 shown in FIG. 14a and FIG. 14b.

需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能单元的功能描述,在此不再赘述。本申请实施例提供的终端,用于执行上述时钟调整方法,因此可以达到与上述时钟调整方法相同的效果。It should be noted that all relevant content of the steps involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and will not be repeated here. The terminal provided in the embodiment of the present application is used to execute the above clock adjustment method, so the same effect as the above clock adjustment method can be achieved.

在采用对应各个功能划分各个功能单元的情况下,图18示出了上述和实施例中涉及的接入网设备的一种可能的组成示意图,如图18所示,该接入网设备可以包括:接收单元1801和发送单元1802。其中,接收单元1801用于支持接入网设备执行图5-图8中所示的步骤501,发送单元1802用于支持接入网设备执行图5-图8中所示的步骤502。In the case of dividing each functional unit corresponding to each function, FIG. 18 shows a schematic diagram of a possible composition of the access network device involved in the above and embodiments. As shown in FIG. 18 , the access network device may include : the receiving unit 1801 and the sending unit 1802. Wherein, the receiving unit 1801 is configured to support the access network device to execute step 501 shown in FIGS. 5-8 , and the sending unit 1802 is configured to support the access network device to execute step 502 shown in FIGS. 5-8 .

在采用对应各个功能划分各个功能单元的情况下,图19示出了上述和实施例中涉及的接入网设备的另一种可能的组成示意图,如图19所示,该接入网设备可以包括:接收单元1901、计算单元1902和发送单元1903。In the case of dividing each functional unit corresponding to each function, FIG. 19 shows another possible composition diagram of the access network device involved in the above and embodiments. As shown in FIG. 19 , the access network device can It includes: a receiving unit 1901 , a computing unit 1902 and a sending unit 1903 .

在一种可能的实施方式中,接收单元1901用于支持接入网设备执行图9-图12中所示的步骤901,计算单元1902用于支持接入网设备执行图9-图12中所示的步骤902,发送单元1903用于支持接入网设备执行图9-图12中所示的步骤903,图10a和图11a中所示的步骤906。In a possible implementation manner, the receiving unit 1901 is configured to support the access network device to execute step 901 shown in FIG. 9-FIG. The sending unit 1903 is configured to support the access network device to execute step 903 shown in FIG. 9-FIG. 12, and step 906 shown in FIG. 10a and FIG. 11a.

在另一种可能的实施方式中,接收单元1901用于支持接入网设备执行图13-图15中所示的步骤1301,计算单元1902用于支持接入网设备执行图13-图15中所示的步骤1302,发送单元1903用于支持接入网设备执行图13-图15中所示的步骤1303,图14a中所示的步骤1305。In another possible implementation manner, the receiving unit 1901 is configured to support the access network device to execute step 1301 shown in FIG. 13-FIG. 15, and the computing unit 1902 is configured to support the access network device to execute In step 1302 shown, the sending unit 1903 is configured to support the access network device to execute step 1303 shown in FIG. 13-FIG. 15 and step 1305 shown in FIG. 14a.

需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能单元的功能描述,在此不再赘述。本申请实施例提供的接入网设备,用于执行上述时钟调整方法,因此可以达到与上述时钟调整方法相同的效果。It should be noted that all relevant content of the steps involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and will not be repeated here. The access network device provided in the embodiment of the present application is used to execute the above clock adjustment method, so the same effect as the above clock adjustment method can be achieved.

进一步的,图16-图19中的终端或接入网设备是以功能单元的形式来呈现。这里的“单元”可以指特定应用集成电路(application specific integrated circuit,ASIC),电路,执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。在一个简单的实施例中,本领域的技术人员可以想到图16-图19中的终端或接入网设备可以采用图20所示装置的形式。各单元可以通过图20所示装置中的处理器和存储器来实现。Further, the terminals or access network devices in Figures 16-19 are presented in the form of functional units. The "unit" here may refer to an application specific integrated circuit (ASIC), a circuit, a processor and memory for executing one or more software or firmware programs, an integrated logic circuit, and/or other devices that can provide the above functions device. In a simple embodiment, those skilled in the art can imagine that the terminals or access network devices in Fig. 16-Fig. 19 can be in the form of the apparatus shown in Fig. 20 . Each unit can be implemented by the processor and memory in the device shown in FIG. 20 .

如图20所示,该装置可以包括一个或多个端口2004,与收发器2003相耦合。收发器2003可以是发射器,接收器或其组合,从其它网元通过端口2004发送或接收数据包。处理器2001耦合到收发器2003,用于处理数据包。处理器2001可包含一个或多个多核处理器和/或存储器2002。处理器2001可以是一个通用处理器,专用集成电路,或数字信号处理器(digital signal processing,DSP)。As shown in FIG. 20 , the apparatus may include one or more ports 2004 coupled to the transceiver 2003 . The transceiver 2003 may be a transmitter, a receiver or a combination thereof, and sends or receives data packets from other network elements through the port 2004 . Processor 2001 is coupled to transceiver 2003 for processing data packets. Processor 2001 may include one or more multi-core processors and/or memory 2002 . The processor 2001 may be a general processor, an application specific integrated circuit, or a digital signal processing (digital signal processing, DSP).

存储器2002可为非瞬时性的存储介质,与处理器2001相耦合,用于保存不同类型的数据。存储器2002可包含只读存储器(read only memory,ROM),随机存取存储器(randomaccess memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是磁盘存储器。存储器2002可用于保存实现链路保持方法的指令。The memory 2002 may be a non-transitory storage medium, coupled with the processor 2001, and used to store different types of data. The memory 2002 may include a read only memory (read only memory, ROM), a random access memory (random access memory, RAM) or other types of dynamic storage devices capable of storing information and instructions, and may also be a disk memory. Memory 2002 may be used to store instructions for implementing the link maintenance method.

处理器2001可实现根据本发明的实施例执行一个或多个指令以触发进行链路保持。这些指令可存储在存储器2002中,也可集成在操作系统的内核或内核的插件中。The processor 2001 may execute one or more instructions according to the embodiment of the present invention to trigger link maintenance. These instructions can be stored in the memory 2002, and can also be integrated in the kernel of the operating system or a plug-in of the kernel.

当处理器2001执行指令时,该指令使终端或接入网设备执行上述时钟调整方法,因此可以达到与上述时钟调整方法或时钟偏差计算方法相同的效果。When the processor 2001 executes the instruction, the instruction causes the terminal or the access network device to execute the above clock adjustment method, so the same effect as the above clock adjustment method or the clock offset calculation method can be achieved.

本申请实施例还提供了一种计算机存储介质,该存储介质可以为上述存储器2002。The embodiment of the present application also provides a computer storage medium, which may be the above-mentioned memory 2002 .

本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述终端所执行的时钟调整方法。The embodiment of the present application also provides a computer program product including instructions, and when it is run on a computer, the computer can execute the clock adjustment method executed by the above-mentioned terminal.

本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述接入网设备所执行的时钟调整或时钟偏差计算方法。The embodiment of the present application also provides a computer program product including instructions, which, when run on a computer, enable the computer to execute the clock adjustment or clock offset calculation method performed by the access network device.

本申请实施例还提供了一种通信系统,其基本架构可以参见图1,该系统包括可以实现上述时钟调整或时钟偏差计算方法的终端和接入网设备。The embodiment of the present application also provides a communication system, whose basic architecture can be referred to in FIG. 1 , and the system includes a terminal and an access network device that can implement the above clock adjustment or clock deviation calculation method.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application should be covered within the protection scope of the application . Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (65)

1. a kind of clock adjusting method, which is characterized in that the described method includes:
Terminal sends the first signal to access network equipment;
The terminal receives inclined when the first moment value that the access network equipment is sent and signal, the first moment value instruction institute At the time of stating access network equipment and receive first signal, inclined Δ t when partially including residual when the signal, the Δ t's is absolute Value is less than timing advance TA and adjusts granularity;
The terminal according to when first moment value, the signal partially and the second moment value, calculate clock jitter, described second At the time of moment value indicates that the terminal sends first signal, when the clock jitter is first configured in the terminal The time difference between second clock configured in clock and the access network equipment;
The terminal adjusts first clock according to the clock jitter.
2. the method according to claim 1, wherein partially further including timing advance TA adjusted value Δ when the signal TA, the Δ TA are the integral multiple that the TA adjusts granularity.
3. according to the method described in claim 2, it is characterized in that, being stored with timing advance TA, the method in the terminal Further include:
The terminal adjusts the TA according to the Δ TA.
4. method according to claim 1-3, which is characterized in that the terminal receives the access network equipment hair Include: partially when the first moment value and signal sent
The terminal receives the second signal that the access network equipment is sent, and carries first moment in the second signal It is inclined when value and the signal;
Alternatively, the terminal receives the third signal and fourth signal that the access network equipment is sent, taken in the third signal With first moment value, carried in the fourth signal inclined when the signal.
5. according to the method in claim 2 or 3, which is characterized in that the terminal receives what the access network equipment was sent Include: partially when the first moment value and signal
The terminal receives the 5th signal and the 6th signal that the access network equipment is sent, and carries in the 5th signal When stating signal partially in the Δ TA, when carrying first moment value and the signal in the 6th signal partially in institute State Δ t;
Alternatively, the terminal receives the 7th signal, the 8th signal and the 9th signal that the access network equipment is sent, the described 7th When carrying the signal in signal partially in the Δ TA, when carrying the signal in the 8th signal partially in it is described Δ t carries first moment value in the 9th signal.
6. according to the method described in claim 5, it is characterized in that, the 5th signal or the 7th signal are timing advance Order Timing Advance Command.
7. the method according to claim 1, wherein be stored with timing advance TA in the terminal, the terminal Inclined when according to second moment value, first moment value and the signal, calculating clock jitter includes:
It is inclined to calculate clock by inclined and described TA when the terminal is according to second moment value, first moment value, the signal Difference.
8. it is identified the method according to claim 1, wherein carrying request in first signal, it is described to ask Ask mark inclined when requesting first moment value and the signal to the access network equipment for the terminal.
9. a kind of clock jitter calculation method, which is characterized in that the described method includes:
Access network equipment receives the first signal that terminal is sent;
The access network equipment is inclined when sending the first moment value and signal to the terminal, connects described in the first moment value instruction Inclined Δ t, the absolute value of the Δ t are small when partially including residual at the time of log equipment receives first signal, when the signal It is used for the terminal partially when timing advance TA adjustment granularity, first moment value and the signal and calculates clock jitter.
10. according to the method described in claim 9, it is characterized in that, when signal further includes timing advance adjusted value Δ partially TA, the Δ TA are the integral multiple that TA adjusts granularity.
11. according to the method described in claim 9, it is characterized in that, when the access network equipment sends first to the terminal Quarter value and when signal include: partially
The access network equipment sends second signal to the terminal, carry in the second signal first moment value and It is inclined when the signal;
Alternatively, the access network equipment sends third signal and fourth signal to the terminal, carried in the third signal First moment value carries in the fourth signal inclined when the signal.
12. according to the method described in claim 10, it is characterized in that, when the access network equipment sends first to the terminal Quarter value and when signal include: partially
The access network equipment sends the 5th signal and the 6th signal to the terminal, carries the letter in the 5th signal Number when partially in the Δ TA, when carrying first moment value and the signal in the 6th signal partially in the Δ t;
Alternatively, the access network equipment sends the 7th signal, the 8th signal and the 9th signal, the 7th signal to the terminal In when carrying the signal partially in the Δ TA, when carrying the signal in the 8th signal partially in the Δ t, First moment value is carried in 9th signal.
13. according to the method for claim 12, which is characterized in that the 5th signal or the 7th signal mention for timing Preceding order Timing Advance Command.
14. according to the described in any item methods of claim 9-13, which is characterized in that carry request mark in first signal Know, the request mark is inclined when requesting first moment value and the signal to the access network equipment for the terminal.
15. a kind of clock adjusting method, which is characterized in that the described method includes:
Terminal sends the first signal and the second moment value to access network equipment, and second moment value indicates that the terminal sends institute At the time of stating the first signal;
The terminal receives the clock jitter that the access network equipment is sent, and the clock jitter is the configured in the terminal The time difference between second clock configured in one clock and the access network equipment, the clock jitter is according to described second Acquisition is calculated when moment value, the first moment value and signal partially, first moment value indicates described in the access network equipment reception Inclined Δ t, the absolute value of the Δ t are less than timing advance TA adjustment when partially including residual at the time of the first signal, when the signal Granularity;
The terminal adjusts first clock according to the clock jitter.
16. according to the method for claim 15, which is characterized in that partially further include timing advance adjusted value Δ when the signal TA, the Δ TA are the integral multiple that the TA adjusts granularity.
17. according to the method for claim 16, which is characterized in that be stored with timing advance TA, the side in the terminal Method further include:
The terminal adjusts the TA according to the Δ TA.
18. method according to claim 16 or 17, which is characterized in that the method also includes:
The timing advance order Timing Advance Command that the terminal receives that the access network equipment sends, it is described fixed When advance command in carry the Δ TA.
19. method according to claim 16 or 17, which is characterized in that the terminal receives the access network equipment and sends Clock jitter include:
The timing advance order Timing Advance Command that the terminal receives that the access network equipment sends, it is described fixed When advance command in carry the clock jitter and the Δ TA.
20. according to the method for claim 15, which is characterized in that timing advance TA is stored in the terminal, described Before terminal receives the clock jitter that the access network equipment is sent, the method also includes:
The TA is sent to the access network equipment by the terminal, and the TA calculates the clock for the access network equipment Deviation.
21. according to the method for claim 15, which is characterized in that it is stored with timing advance TA in the terminal, described the The TA is carried in one signal.
22. according to the method for claim 15, which is characterized in that carry second moment in first signal Value.
23. according to the method for claim 15, which is characterized in that the terminal sends described the to the access network equipment Two moment values include:
The terminal sends second signal to the access network equipment, carries second moment value in the second signal.
24. according to the method for claim 15, which is characterized in that request mark is carried in first signal, it is described Request mark requests the clock jitter to the access network equipment for the terminal.
25. a kind of clock adjusting method, which is characterized in that the described method includes:
Access network equipment receives the first signal and the second moment value that terminal is sent, and second moment value indicates the terminal hair At the time of sending first signal;
The access network equipment is according to partially and the first moment value, calculating clock jitter when second moment value, signal, and described the At the time of one moment value indicates that the access network equipment receives first signal, the clock jitter is to configure in the terminal The first clock and the access network equipment in time difference between the second clock that configures, when signal includes residual partially When inclined Δ t, the absolute value of the Δ t is less than timing advance TA and adjusts granularity, and the clock jitter adjusts institute for the terminal State the first clock;
The clock jitter is sent to the terminal by the access network equipment.
26. according to the method for claim 25, which is characterized in that partially further include timing advance TA adjusted value when the signal Δ TA, the Δ TA are the integral multiple that the TA adjusts granularity.
27. according to the method for claim 26, which is characterized in that the method also includes:
The access network equipment is mentioned to the terminal transmission timing advance command Timing Advance Command, the timing The Δ TA is carried in preceding order.
28. according to the method for claim 26, which is characterized in that the access network equipment is inclined to the terminal tranmitting data register Difference includes:
The access network equipment is mentioned to the terminal transmission timing advance command Timing Advance Command, the timing The clock jitter and the Δ TA are carried in preceding order.
29. according to the described in any item methods of claim 25-28, which is characterized in that in the access network equipment according to It is inclined when the first moment value, second moment value and signal, before calculating clock jitter, the method also includes:
The access network equipment receives the timing advance TA that the terminal is sent;
It is inclined when the access network equipment is according to first moment value, second moment value and signal, calculate clock jitter packet It includes:
Inclined and described TA when the access network equipment is according to first moment value, second moment value, the signal is calculated The clock jitter.
30. according to the described in any item methods of claim 25-28, which is characterized in that carry timing in first signal TA in advance, it is inclined when the access network equipment is according to first moment value, second moment value and signal, calculate clock jitter Include:
Inclined and described TA when the access network equipment is according to first moment value, second moment value, the signal is calculated The clock jitter.
31. according to the method for claim 25, which is characterized in that carry second moment in first signal Value.
32. according to the method for claim 25, which is characterized in that the access network equipment receives the institute that the terminal is sent Stating the second moment value includes:
The access network equipment receives the second signal that the terminal is sent, and carries second moment in the second signal Value.
33. a kind of terminal for clock adjustment characterized by comprising
Transmission unit, for sending the first signal to access network equipment;
Receiving unit, inclined, first moment value when for receiving the first moment value and signal of the access network equipment transmission At the time of indicating that the access network equipment receives first signal, when signal inclined Δ t, the Δ t when partially including residual Absolute value be less than timing advance TA adjust granularity;
Computing unit, for calculating clock jitter, institute according to inclined and the second moment value when first moment value, the signal At the time of stating the second moment value and indicate that the terminal sends first signal, configured in the clock jitter terminal The time difference between second clock configured in first clock and the access network equipment;
Adjustment unit, for adjusting first clock according to the clock jitter.
34. terminal according to claim 33, which is characterized in that partially further include timing advance TA adjusted value when the signal Δ TA, the Δ TA are the integral multiple that the TA adjusts granularity.
35. terminal according to claim 34, which is characterized in that further include:
Storage unit, for storing timing advance TA;
The adjustment unit is also used to, and adjusts the TA according to the Δ TA.
36. according to the described in any item terminals of claim 33-35, which is characterized in that the receiving unit is specifically used for:
The second signal that the access network equipment is sent is received, first moment value and described is carried in the second signal It is inclined when signal;
Alternatively, receiving the third signal and fourth signal that the access network equipment is sent, carried in the third signal described First moment value carries in the fourth signal inclined when the signal.
37. the terminal according to claim 34 or 35, which is characterized in that the receiving unit is specifically used for:
The 5th signal and the 6th signal that the access network equipment is sent are received, when carrying the signal in the 5th signal The Δ TA in partially, when carrying first moment value and the signal in the 6th signal partially in the Δ t;
Alternatively, receiving the 7th signal, the 8th signal and the 9th signal that the access network equipment is sent, taken in the 7th signal When with the signal partially in the Δ TA, when carrying the signal in the 8th signal partially in the Δ t, it is described First moment value is carried in 9th signal.
38. the terminal according to claim 37, which is characterized in that the 5th signal or the 7th signal mention for timing Preceding order Timing Advance Command.
39. terminal according to claim 33, which is characterized in that the terminal includes storage unit, the storage unit In be stored with timing advance TA, the computing unit is specifically used for:
Inclined and described TA when according to second moment value, first moment value, the signal calculates clock jitter.
40. terminal according to claim 33, which is characterized in that request mark is carried in first signal, it is described Request mark is inclined when requesting first moment value and the signal to the access network equipment for the terminal.
41. a kind of access network equipment characterized by comprising
Receiving unit, for receiving the first signal of terminal transmission;
Transmission unit, it is inclined when for sending the first moment value and signal to the terminal, it is connect described in the first moment value instruction Inclined Δ t, the absolute value of the Δ t are small when partially including residual at the time of log equipment receives first signal, when the signal It is used for the terminal partially when timing advance TA adjustment granularity, first moment value and the signal and calculates clock jitter.
42. access network equipment according to claim 41, which is characterized in that partially further include timing advance tune when the signal Whole value Δ TA, the Δ TA are the integral multiple that TA adjusts granularity.
43. access network equipment according to claim 41, which is characterized in that the transmission unit is specifically used for:
Second signal is sent to the terminal, is carried in the second signal inclined when first moment value and the signal;
Alternatively, sending third signal and fourth signal to the terminal, first moment value is carried in the third signal, It is carried in the fourth signal inclined when the signal.
44. access network equipment according to claim 42, which is characterized in that the transmission unit is specifically used for:
Send the 5th signal and the 6th signal to the terminal, when carrying the signal in the 5th signal partially in it is described Δ TA, when carrying first moment value and the signal in the 6th signal partially in the Δ t;
Alternatively, sending the 7th signal, the 8th signal and the 9th signal to the terminal, the letter is carried in the 7th signal Number when partially in the Δ TA, when carrying the signal in the 8th signal partially in the Δ t, in the 9th signal Carry first moment value.
45. access network equipment according to claim 44, which is characterized in that the 5th signal or the 7th signal are Timing advance order Timing Advance Command.
46. according to the described in any item access network equipments of claim 41-45, which is characterized in that carried in first signal There is request to identify, the request mark requests first moment value and the letter to the access network equipment for the terminal Number when it is inclined.
47. a kind of terminal for clock adjustment characterized by comprising
Transmission unit, described in access network equipment the first signal of transmission and the second moment value, second moment value is indicated At the time of terminal sends first signal;
Receiving unit, the clock jitter sent for receiving the access network equipment, the clock jitter are to match in the terminal The time difference between second clock configured in the first clock and the access network equipment set, the clock jitter is according to institute Acquisition is calculated when stating the second moment value, the first moment value and signal partially, first moment value indicates that the access network equipment connects Inclined Δ t, the absolute value of the Δ t are less than timing advance when partially including residual at the time of receiving first signal, when the signal TA adjusts granularity;
Adjustment unit, for adjusting first clock according to the clock jitter.
48. terminal according to claim 47, which is characterized in that partially further include timing advance adjusted value Δ when the signal TA, the Δ TA are the integral multiple that the TA adjusts granularity.
49. terminal according to claim 48, which is characterized in that further include:
Storage unit, for storing timing advance TA;
The adjustment unit is also used to, and adjusts the TA according to the Δ TA.
50. the terminal according to claim 48 or 49, which is characterized in that the receiving unit is also used to:
Receive the timing advance order Timing Advance Command that the access network equipment is sent, the timing advance life The Δ TA is carried in order.
51. the terminal according to claim 48 or 49, which is characterized in that the receiving unit is specifically used for:
Receive the timing advance order Timing Advance Command that the access network equipment is sent, the timing advance life The clock jitter and the Δ TA are carried in order.
52. terminal according to claim 47, which is characterized in that the terminal includes storage unit, the storage unit In be stored with timing advance TA, before the clock jitter that the receiving unit receives that the access network equipment is sent, the hair Unit is sent to be also used to:
The TA is sent to the access network equipment, the TA calculates the clock jitter for the access network equipment.
53. terminal according to claim 47, which is characterized in that the terminal includes storage unit, the storage unit In be stored with timing advance TA, carry the TA in first signal.
54. terminal according to claim 47, which is characterized in that carry second moment in first signal Value.
55. terminal according to claim 47, which is characterized in that the transmission unit is specifically used for:
Second signal is sent to the access network equipment, carries second moment value in the second signal.
56. terminal according to claim 47, which is characterized in that request mark is carried in first signal, it is described Request mark requests the clock jitter to the access network equipment for the terminal.
57. a kind of access network equipment characterized by comprising
Receiving unit, for receiving the first signal and the second moment value of terminal transmission, second moment value indicates the end At the time of end sends first signal;
Computing unit, for according to partially and the first moment value, calculating clock jitter when second moment value, signal, described the At the time of one moment value indicates that the access network equipment receives first signal, the clock jitter is to configure in the terminal The first clock and the access network equipment in time difference between the second clock that configures, when signal includes residual partially When inclined Δ t, the absolute value of the Δ t is less than timing advance TA and adjusts granularity, and the clock jitter adjusts institute for the terminal State the first clock;
Transmission unit, for the clock jitter to be sent to the terminal.
58. access network equipment according to claim 57, which is characterized in that partially further include timing advance TA when the signal Adjusted value Δ TA, the Δ TA are the integral multiple that the TA adjusts granularity.
59. access network equipment according to claim 58, which is characterized in that the transmission unit is also used to:
To the terminal transmission timing advance command Timing Advance Command, carried in the timing advance order The Δ TA.
60. access network equipment according to claim 58, which is characterized in that the transmission unit is specifically used for:
To the terminal transmission timing advance command Timing Advance Command, carried in the timing advance order The clock jitter and the Δ TA.
61. according to the described in any item access network equipments of claim 57-60, which is characterized in that the computing unit according to Inclined when first moment value, second moment value and signal, before calculating clock jitter, the receiving unit is also used to:
Receive the timing advance TA that the terminal is sent;
The computing unit is specifically used for:
Inclined and described TA, calculates the clock jitter when according to first moment value, second moment value, the signal.
62. according to the described in any item access network equipments of claim 57-60, which is characterized in that carried in first signal There is timing advance TA, the computing unit is specifically used for:
Inclined and described TA, calculates the clock jitter when according to first moment value, second moment value, the signal.
63. access network equipment according to claim 57, which is characterized in that carry described second in first signal Moment value.
64. access network equipment according to claim 57, which is characterized in that the receiving unit is specifically used for:
The second signal that the terminal is sent is received, carries second moment value in the second signal.
65. a kind of clock system, which is characterized in that including such as described in any item terminals of claim 33-40 or 47-56 and such as The described in any item access network equipments of claim 41-46 or 57-64.
CN201710359036.2A 2017-05-19 2017-05-19 A kind of clock adjustment, clock jitter calculation method, equipment and system Active CN108964819B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710359036.2A CN108964819B (en) 2017-05-19 2017-05-19 A kind of clock adjustment, clock jitter calculation method, equipment and system
PCT/CN2018/087173 WO2018210281A1 (en) 2017-05-19 2018-05-16 Clock adjustment and clock deviation calculation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710359036.2A CN108964819B (en) 2017-05-19 2017-05-19 A kind of clock adjustment, clock jitter calculation method, equipment and system

Publications (2)

Publication Number Publication Date
CN108964819A CN108964819A (en) 2018-12-07
CN108964819B true CN108964819B (en) 2019-11-26

Family

ID=64274012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710359036.2A Active CN108964819B (en) 2017-05-19 2017-05-19 A kind of clock adjustment, clock jitter calculation method, equipment and system

Country Status (2)

Country Link
CN (1) CN108964819B (en)
WO (1) WO2018210281A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113508624B (en) * 2019-03-28 2022-05-24 华为技术有限公司 A method and apparatus for timing alignment
WO2020220352A1 (en) * 2019-04-30 2020-11-05 华为技术有限公司 Communication method and device
CN112073760B (en) * 2019-06-10 2023-02-07 京东方科技集团股份有限公司 Display system and clock synchronization method, device and equipment thereof
CN112188609B (en) * 2019-07-04 2021-11-19 华为技术有限公司 Method and device for determining Timing Advance (TA) reference time
US12010659B2 (en) 2019-08-30 2024-06-11 Qualcomm Incorporated Techniques for a radio access network entity to adjust timing in wireless networks
CN111208866B (en) * 2019-12-27 2022-10-28 视联动力信息技术股份有限公司 A system time adjustment method and device
CN114126027B (en) * 2020-08-26 2024-04-09 上海华为技术有限公司 Method, device and related equipment for acquiring accumulated deviation
CN113541913B (en) * 2020-11-05 2022-08-02 中兴通讯股份有限公司 Clock calibration method, clock calibration device, electronic device, and readable medium
CN112817371B (en) * 2021-03-02 2022-03-15 北京深思数盾科技股份有限公司 Time calculation method of virtual clock and electronic equipment
CN117177347A (en) * 2022-05-28 2023-12-05 华为技术有限公司 A time synchronization method and communication device
CN120028746A (en) * 2023-11-23 2025-05-23 大唐移动通信设备有限公司 Terminal positioning method, electronic equipment and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015135874A1 (en) * 2014-03-13 2015-09-17 Alcatel Lucent Method and device for forwarding a clock synchronization message
CN105101386A (en) * 2014-04-18 2015-11-25 成都鼎桥通信技术有限公司 Terminal uplink self-synchronization method and terminal
CN106488550A (en) * 2016-12-20 2017-03-08 华为技术有限公司 Determine the method and apparatus of terminal and base station clock time deviation
CN106656386A (en) * 2015-10-30 2017-05-10 中兴通讯股份有限公司 Local clock adjusting method, timing method and timing device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841509B (en) * 2010-04-27 2014-06-18 展讯通信(上海)有限公司 Method for estimating and compensating sampling clock offset and receiving device
US20140226992A1 (en) * 2011-12-12 2014-08-14 Mitsubishi Electric Corporation Subscriber-side device and optical transmission system
CN103188788B (en) * 2011-12-28 2016-08-03 华为技术有限公司 The time control method of heterogeneous network and access point
CN102821457B (en) * 2012-08-02 2015-03-04 北京中科晶上科技有限公司 Clock synchronizing method based on software defined radio and software defined radio system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015135874A1 (en) * 2014-03-13 2015-09-17 Alcatel Lucent Method and device for forwarding a clock synchronization message
CN105101386A (en) * 2014-04-18 2015-11-25 成都鼎桥通信技术有限公司 Terminal uplink self-synchronization method and terminal
CN106656386A (en) * 2015-10-30 2017-05-10 中兴通讯股份有限公司 Local clock adjusting method, timing method and timing device
CN106488550A (en) * 2016-12-20 2017-03-08 华为技术有限公司 Determine the method and apparatus of terminal and base station clock time deviation

Also Published As

Publication number Publication date
CN108964819A (en) 2018-12-07
WO2018210281A1 (en) 2018-11-22

Similar Documents

Publication Publication Date Title
CN108964819B (en) A kind of clock adjustment, clock jitter calculation method, equipment and system
US10912024B2 (en) Apparatus, system and method of a wake-up radio (WUR)
CN111278135B (en) Signal transmission methods and equipment
US11064432B2 (en) Apparatus, system and method of power management in a wireless network
US20180049130A1 (en) Synchronization for wake-up radio
US10433320B2 (en) Switching and synchronization device
CN103200665A (en) Minizone synchronization method and device for time division duplexing (TDD) system base station
WO2016185309A1 (en) Systems and methods of transporting internal radio base station (rbs) interface information over a packet switched network
WO2020200947A1 (en) Time synchronization including preserving origin time stamp
CN108632983A (en) The method and apparatus for transmitting signal
US9655072B2 (en) Systems, apparatus and methods for synchronizing a global time reference for access points over the air
CN101800612A (en) MAC (Media Access Control) layer synchronizing method improved based on IEEE 802.16d
JP6042287B2 (en) Base station apparatus, control method thereof, and program
WO2020171802A1 (en) Synchronization for 5gs time sensitive communications (tsc) using machine learning
WO2022147766A1 (en) Communication method, device, and storage medium
TWI498024B (en) Wireless communication system base station and data transmission synchronization method thereof
WO2024255742A1 (en) Uplink transmission time point determination method and communication apparatus
JP7451492B2 (en) Communication methods and devices
WO2023185456A1 (en) Communication method and apparatus, and computer readable storage medium
WO2024102031A1 (en) Time synchronization between tsn entities of tsn system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant