WO2017071270A1 - Local clock adjustment method, and time service method and device - Google Patents

Local clock adjustment method, and time service method and device Download PDF

Info

Publication number
WO2017071270A1
WO2017071270A1 PCT/CN2016/087310 CN2016087310W WO2017071270A1 WO 2017071270 A1 WO2017071270 A1 WO 2017071270A1 CN 2016087310 W CN2016087310 W CN 2016087310W WO 2017071270 A1 WO2017071270 A1 WO 2017071270A1
Authority
WO
WIPO (PCT)
Prior art keywords
local clock
time
offset
calculating
frequency
Prior art date
Application number
PCT/CN2016/087310
Other languages
French (fr)
Chinese (zh)
Inventor
王石磊
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017071270A1 publication Critical patent/WO2017071270A1/en

Links

Images

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
    • 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

Definitions

  • This application relates to, but is not limited to, the field of communication technology.
  • a terminal device In a Long Term Evolution (LTE) system, a terminal device needs to synchronize with a base station before accessing the network to ensure that the base station clocks in the network are unified. For this reason, when the operator is networking, a Global Positioning System (GPS) module is configured for each base station.
  • GPS Global Positioning System
  • LTE requires the terminal equipment to have high synchronization accuracy, and avoid inter-symbol interference and interference between terminal devices as much as possible.
  • synchronization of the terminal device is completed through a synchronization channel, where the synchronization channel includes a primary synchronization channel and a secondary synchronization channel, and by analyzing the synchronization channel, the terminal device can acquire access cell parameters and timing information, and the theory of the terminal device
  • the accuracy can reach 1Ts, where 1Ts is equal to 1/30720 milliseconds (ms).
  • the time synchronization accuracy in the related art cannot reach a too high level, and only the phase can be adjusted during the initial synchronization process, and the frequency is not adjusted, so that the terminal device has a frequency deviation and the frequency deviation It will continue to accumulate, resulting in an error in the local clock.
  • the base station in the related art LTE system acquires the timing by using the GPS module. Then, when setting up the base station to set up the network, the base station is limited by environmental conditions, for example, for the environment with strict occlusion, when the base station passes the GPS
  • the module receives the air interface signal sent by the LTE system for time synchronization
  • the environment is a strict occlusion environment, which may hinder the transmission of the air interface signal, and increase the delay of the GPS module receiving the air interface signal, and even cannot receive, thereby causing the The clock of the site has a large error, and the required timing accuracy is not achieved, thereby affecting the surrounding network performance and reducing the user experience.
  • the present invention provides a local clock adjustment method, a timing method and a device to solve the technical problem that the terminal device in the related art has a large error in the way of synchronizing time from the base station, and cannot achieve the precision required for timing.
  • a local clock adjustment method includes:
  • Adjusting the local clock according to the timing information comprises: calculating a frequency offset of the local clock according to a predetermined manner, and adjusting a local clock according to the frequency offset Frequency of.
  • the calculating a frequency offset of the local clock according to a predetermined manner includes:
  • the calculating the time domain correlation value according to the orthogonal frequency division multiple access symbol sampling data of a complete cyclic prefix including:
  • N CP is the number of sampling points of the cyclic prefix
  • n is the sampling index of the orthogonal frequency division multiple access symbol
  • a, b are constants, and are any integers in the 1, 2, 3...N CP
  • N is the number of sampling points of orthogonal frequency division multiple access
  • S(n)* is the conjugate of the sampling data of the orthogonal frequency division multiple access sampling signal
  • S(n+N) is an orthogonal frequency division multiple access sampling data Data of (n+N) sample points
  • performing an arctangent calculation according to the time domain correlation value to obtain a frequency offset of the local clock including:
  • the adjusting the local clock according to the timing information further includes:
  • the method further includes:
  • Periodically adjusting the local clock includes:
  • the local clock is compensated and adjusted according to the time correction amount.
  • the calculating a time offset accumulated by the local clock in a current time period includes:
  • the time offset average value is obtained according to the time offset of each subframe in the current time period or the time offset of the partial subframe.
  • the calculating a time offset compensation amount of the local clock in the current time period according to the time offset includes:
  • ⁇ Ta averageTimeOffset-TimeOffsetLast
  • the averageTimeOffset is an average value of the time offset of the local clock in the current time period
  • TimeOffsetLast is a time offset of the local clock when the previous time period is adjusted.
  • the calculating the time correction amount of the local clock according to the time offset compensation amount and the duration in the current time period including:
  • T is the duration of the current time period
  • Error is the error time correction of the local clock
  • a timing method comprising:
  • the terminal device adjusts the local clock according to the local clock adjustment method described in any of the above;
  • the terminal device performs timing for other terminal devices according to the adjusted local clock.
  • a local clock adjustment device includes:
  • the receiving module is configured to: receive the air interface signal sent by the base station;
  • An acquiring module configured to: obtain timing information from the air interface signal received by the receiving module;
  • the adjusting module is configured to: adjust the local clock according to the timing information acquired by the acquiring module, where the adjusting module is configured to: calculate a frequency offset of the local clock according to a predetermined manner, and according to the frequency offset The shift adjusts the frequency of the local clock.
  • the adjusting module includes:
  • a time domain correlation value calculation unit configured to: calculate a time domain correlation value according to orthogonal frequency division multiple access symbol sample data of one or more complete cyclic prefixes;
  • the frequency offset calculation unit is configured to perform an arctangent calculation according to the time domain correlation value calculated by the time domain correlation value calculation unit, to obtain a frequency offset of the local clock;
  • the frequency adjustment unit is configured to adjust the frequency of the local clock according to the frequency offset of the local clock calculated by the frequency offset calculation unit.
  • the adjusting module further includes:
  • a time offset calculation unit configured to: calculate a time offset accumulated by the local clock in a current time period
  • the time offset compensation amount calculation unit is configured to: calculate a time offset compensation amount of the local clock in the current time period according to the time offset calculated by the time offset calculation unit;
  • the time correction amount calculation unit is configured to: calculate the local clock in the current time period according to the duration in the current time period and the time offset compensation amount calculated by the time offset compensation amount calculation unit Time correction amount;
  • the time adjustment unit is configured to: perform compensation adjustment on the local clock according to the time correction amount calculated by the time correction amount calculation unit.
  • a timing device comprising: the local clock adjustment device according to any one of the above, and a timing module;
  • the local clock adjustment device is configured to: receive an air interface signal sent by the base station, obtain timing information from the air interface signal, and adjust a local clock according to the timing information, where the local clock is adjusted according to the timing information, including: Calculating a frequency offset of the local clock in a predetermined manner, and adjusting a frequency of the local clock according to the frequency offset;
  • the timing module is configured to: time the other terminal devices according to the clock adjusted by the local clock adjustment device.
  • the local clock adjustment method, the timing method and the device provided by the embodiment of the present invention the terminal device obtains the timing information from the air interface signal by receiving the air interface signal sent by the base station, according to the The timing information is used to calculate the frequency offset of the local clock, and the local clock is adjusted according to the calculated frequency offset.
  • the localized by the method provided by the embodiment of the present invention is adjusted.
  • the clock accuracy is higher.
  • the local time adjustment device is set on the base station or the terminal device by using the technical solution provided by the embodiment of the present invention, so that the terminal device can directly receive the air interface signal of the base station, obtain the timing information therein, and calculate the timing information.
  • Adjusting the local clock does not require the GPS module or other hardware to be configured on the base station or the terminal device to receive the air interface signal of the base station, which not only reduces the error of the timing synchronization, but also achieves the precision required for timing, and simplifies the hardware structure of the base station or the terminal device. And reduce costs.
  • FIG. 1 is a schematic structural diagram of a local clock adjustment apparatus according to an embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of another local clock adjusting apparatus according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a timing device according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for adjusting a local clock according to an embodiment of the present invention
  • FIG. 5 is a flowchart of another local clock adjustment method according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a timing method according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a local clock adjustment apparatus according to an embodiment of the present invention.
  • the local clock adjustment apparatus provided in this embodiment may include: a receiving module 11 , an obtaining module 12 , and an adjusting module 13 .
  • the receiving module 11 is configured to: receive an air interface signal sent by the base station;
  • the obtaining module 12 is configured to: obtain timing information from the air interface signal received by the receiving module 11;
  • the adjusting module 13 is configured to: adjust the local clock according to the timing information acquired by the obtaining module 12, and the manner in which the adjusting module 13 adjusts the local clock in the embodiment may include: calculating a frequency offset of the local clock according to a predetermined manner, and calculating according to a predetermined manner The frequency offset is adjusted to adjust the frequency of the local clock.
  • the receiving module 11 is responsible for receiving the air interface signal sent by the base station of the LTE system, and the air interface signal may be an air interface signal sent by the sending unit specified by the LTE system, or may be sent by other modules. Other air interface signals with timing information.
  • the receiving module 11 can receive the air interface signal according to the needs of the base station, and the receiver module 11 can be configured to receive the radio signal of the air interface, and can also be designed as a receiving device shared with the service radio frequency circuit of the base station, thereby reducing the hardware of the base station.
  • the design cost of the receiving module 11 in this embodiment does not need to be configured with a GPS module, and can also receive signals for timing synchronization, which simplifies the hardware structure of the base station or the terminal device, thereby reducing the cost and enhancing the user experience.
  • the receiving module 11 in the embodiment After receiving the air interface signal, the receiving module 11 in the embodiment outputs the air interface signal to the acquiring module 12 for extracting timing information, and then the adjusting module 13 calculates a clock correction for adjusting the local clock according to the timing information acquired by the obtaining module 12. the amount.
  • the adjustment module 13 in this example may include, for example, a digital signal processing (DSP) chip and a digital to analog converter (DAC) chip. 13 not only can adjust the frequency offset of the local clock, but also adjust the phase of the local clock.
  • DSP digital signal processing
  • DAC digital to analog converter
  • the adjustment module 13 may include a time domain correlation value calculation module 131, a frequency offset calculation unit 132, and a frequency adjustment unit 133.
  • the time domain correlation value calculation unit 131 is configured to: calculate a time domain correlation value according to the orthogonal frequency division multiple access symbol sample data of one or more complete cyclic prefixes;
  • the frequency offset calculation unit 132 is configured to perform an arctangent calculation according to the time domain correlation value calculated by the time domain correlation value calculation unit 131 to obtain a frequency offset of the local clock;
  • the frequency adjustment unit 133 is configured to: calculate the obtained version according to the frequency offset calculation unit 132.
  • the frequency offset of the ground clock adjusts the frequency of the local clock.
  • time domain correlation value calculation unit 131 calculates a time domain correlation value for the orthogonal frequency division multiple access symbol sample data of a complete cyclic prefix
  • the time domain correlation value calculation is performed.
  • Unit 131 calculates the time domain correlation value by formula one:
  • N CP is the number of sampling points of the cyclic prefix
  • n is the sampling index of the orthogonal frequency division multiple access symbol
  • a, b are constants, and are any integers in the 1, 2, 3...N CP
  • N is the number of sampling points of orthogonal frequency division multiple access
  • S(n) is the conjugate of the sampling data of the orthogonal frequency division multiple access sampling signal
  • S(n+N) is an orthogonal frequency division multiple access sampling data (n+N) data of sampling points;
  • the time domain correlation value calculation unit 131 calculates a time domain correlation value for the orthogonal frequency division multiple access symbol sample data of the multiple complete cyclic prefix
  • the time domain correlation is performed.
  • the value calculation unit 131 first calculates a corresponding time domain correlation value c for each pair of orthogonal frequency division multiple access symbol sample data of each complete cyclic prefix according to the above formula; and then averages each of the obtained time domain correlation values.
  • the frequency offset calculation unit 132 in the embodiment performs an arctangent calculation on the time domain correlation value c calculated by the time domain correlation value calculation unit 131, and the implementation manner of obtaining the frequency offset of the local clock may be :
  • the frequency offset calculation unit 132 performs arctangent calculation on the time domain correlation value according to the following formula 2, and obtains the frequency offset ⁇ f of the local clock;
  • the adjustment module 13 further includes:
  • the time offset calculation unit 134 is configured to: calculate a time offset accumulated by the local clock in the current time period;
  • the time offset compensation amount calculation unit 135 is configured to: calculate a time offset compensation amount of the local clock in the current time period according to the time offset calculated by the time offset calculation unit 134;
  • the time correction amount calculation unit 136 is configured to: calculate a time offset compensation amount calculated by the duration and time offset compensation amount calculation unit 135 in the current time period, and calculate a time correction amount of the local clock in the current time period;
  • the time adjustment unit 137 is configured to perform compensation adjustment on the local clock according to the time correction amount calculated by the time correction amount calculation unit 136.
  • the adjustment module 13 in this embodiment is further configured to: after completing the adjustment of the local clock, initiate random access, so that the terminal device is connected to the base station, and acquires the terminal device and the base station calculated by the base station. The amount of time offset between the delays due to the distance is adjusted, and the local clock is further adjusted according to the time offset adjustment amount.
  • FIG. 3 is a schematic diagram of a timing device according to an embodiment of the present invention.
  • the timing device provided in this embodiment may include: a local clock adjustment device 21 and a timing module 22.
  • the local clock adjustment device 21 in this embodiment may be the local clock adjustment device provided in any of the embodiments shown in FIG. 1 and FIG. 2, and the local clock adjustment device 21 is configured to: receive the air interface signal sent by the base station, and Obtaining the timing information according to the timing information, and adjusting the local clock according to the timing information, wherein the local clock is adjusted according to the timing information, and the frequency offset of the local clock is calculated according to a predetermined manner, and the frequency offset is calculated according to the frequency Adjust the frequency of the local clock.
  • the timing module 22 is configured to: time the other terminal devices according to the clock adjusted by the local clock adjustment device 21.
  • the timing device provided in this embodiment may be placed in a terminal device, and the terminal device can directly receive the air interface signal sent by the LTE system base station by setting the local clock adjustment device 21, and obtain timing information from the air interface signal, according to the timing.
  • the information calculates a clock correction amount for adjusting the phase, the frequency offset, and the time offset of the local clock, so that the local clock is relatively locked with the base station clock of the LTE system, and the terminal device and the base station are synchronized with the clock, except that the terminal device exists.
  • the local clock still has a time offset, thereby improving the accuracy of the synchronous timing of the terminal device.
  • the local time adjusted by the local clock adjustment device 21 by the timing module 22 The clock is used to grant time to other terminal devices.
  • the other devices here may be subordinate devices attached to the terminal device, or may be terminal devices at the same level as the terminal device.
  • the local clock adjusting device and the timing device provided by the embodiment of the present invention obtains the timing information from the air interface signal by receiving the air interface signal sent by the base station, calculates the frequency offset of the local clock according to the timing information, and calculates the frequency offset according to the timing information.
  • the frequency offset is adjusted to the local clock.
  • the local clock adjusted by the method provided by the embodiment of the present invention has higher precision; the frequency adjustment of the local clock is performed.
  • the time offset in a time period can be calculated according to the adjusted local clock, and the periodic adjustment is performed, thereby reducing the time error of the local clock and improving the precision of the synchronous timing.
  • the local time adjustment device is set on the base station or the terminal device by using the technical solution provided by the embodiment of the present invention, so that the terminal device can directly receive the air interface signal of the base station, obtain the timing information therein, and calculate and adjust the timing information.
  • the local clock does not need to configure the GPS module or other hardware on the base station or the terminal device to receive the air interface signal of the base station, which not only reduces the error of the timing synchronization, achieves the precision required for timing, but also simplifies the hardware structure of the base station or the terminal device. Reduced costs.
  • FIG. 4 is a flowchart of a local clock adjustment method according to an embodiment of the present invention.
  • the local clock adjustment method provided in this embodiment may include the following steps, that is, S310 to S330:
  • S310 Receive an air interface signal sent by the base station.
  • the local clock is adjusted according to the timing information, including: calculating a frequency offset of the local clock according to a predetermined manner, and adjusting a frequency of the local clock according to the frequency offset.
  • the air interface signal may be an air interface signal that is sent by the sending unit specified by the LTE system, or may be an air interface signal that is sent by other modules and includes timing information; The other modules are also sent by the designated sending unit, and the base station or the terminal device can be received without setting the GPS module.
  • executing S320 extracting timing information, and then calculating a correction amount for adjusting the local clock according to the timing information, that is, executing S330.
  • the implementation of calculating the frequency offset according to the timing information may include: first, acquiring the orthogonal frequency division multiple access symbol sampling data of a complete cyclic prefix, which may be obtained by:
  • Ts is the sampling interval (1/30720000s)
  • N 2048.
  • the time domain correlation value c is calculated according to the Orthogonal Frequency Division Multiple Access symbol sample data of a complete cyclic prefix obtained above:
  • the frequency offset ⁇ f of the local clock is calculated according to the time domain correlation value, and is calculated by Formula 2:
  • the implementation manner of calculating the time domain correlation value c may be: formulating the time domain correlation value according to the above formula Calculating a corresponding time domain correlation value c by using a pair of orthogonal frequency division multiple access symbol sample data of each complete cyclic prefix; and averaging all obtained time domain correlation values to obtain an average value of time domain correlation values; The average of the domain correlation values calculates the frequency offset ⁇ f of the local clock.
  • the frequency offset ⁇ f of the local clock is calculated by calculating the time domain correlation value c by calculating the orthogonal frequency division multiple access symbol sampling data of the multiple complete cyclic prefix, and calculating multiple In the complete loop, it is also necessary to calculate the time domain correlation value of each complete loop, and then add up the number of complete loops, and the method of averaging after the accumulation will reduce the calculation error, and the single calculation will appear. Large random rate with high error and low accuracy.
  • FIG. 5 it is a flowchart of another local clock adjustment method according to an embodiment of the present invention.
  • the method provided in this embodiment may further include:
  • Error2 is the error of the local crystal oscillator
  • f carry is the carrier frequency of the signal.
  • the method may further include:
  • S321 Adjust the phase of the local clock according to the acquired timing information, and adjust the phase of the local clock to include the half frame synchronization and the frame synchronization; the half frame synchronization is to collect the air interface signal frame once every 5 milliseconds to obtain the time.
  • the air interface signal clock, frame synchronization is to collect the air interface signal frame once every 10 milliseconds to obtain the air interface signal clock at that moment, and compare the phase with the local clock after each acquisition.
  • the method may further include:
  • the periodic adjustment manner may include: calculating a time offset accumulated by the local clock in the current time period, and calculating a current time period according to the time offset.
  • the time offset compensation amount of the local clock is calculated according to the time offset compensation amount and the duration in the current time period, and the local clock time correction amount is calculated, and the local clock is compensated and adjusted according to the time correction amount.
  • the method further includes: calculating a time offset of each subframe in the current time period, and then calculating according to the calculation The time offset of each sub-frame is averaged to obtain a time offset average.
  • the implementation manner of calculating the time offset of each subframe or multiple subframes in this embodiment may include:
  • the bandwidth correlation value is a pilot signal correlation value
  • the calculation formula is:
  • Sum is the accumulated value of the bandwidth correlation value
  • S(n) is the sampling data of the orthogonal frequency division multiple access sampling signal
  • S(n+N) is (n+N) of one orthogonal frequency division multiple access sampling data The conjugate of the data of the sampling point
  • N rs is the number of sampling points of the pilot signal, which is determined by the system, and the maximum value is 200;
  • Calculating the time offset TimeOffset according to the calculated phase of the complex number can be:
  • FFTsize is the number of fast Fourier transform points
  • the time offset average value (averageTimeOffset) is obtained according to the time offset of each subframe in the current time period or the time offset of the partial subframe.
  • the implementation manner of calculating the time offset compensation amount of the local clock in the current time period according to the time offset in the embodiment may include: calculating the time of the local clock in the current time period according to the time offset average value (averageTimeOffset)
  • the offset compensation amount ⁇ Ta can be:
  • ⁇ Ta averageTimeOffset-TimeOffsetLast
  • TimeOffsetLast is the time offset of the local clock when it is adjusted in the previous time period.
  • the synchronization period of the LTE system is 20 seconds
  • calculate the time offset of each subframe and then select the time offset average value AverageTimeOffset in the last several of the current time periods; optionally, Select the time offset average value TO1 in the time offset of the last 64 subframes, assuming that the time offset of the local clock when the previous time period is adjusted is TL1, then the offset compensation in the period of 20 seconds
  • the terminal device in this embodiment calculates the time correction amount of the local clock according to the time offset compensation amount and the duration in the current time period, including: calculating the local clock according to the following formula 3. Time correction:
  • T is the duration of the current time period
  • Error is the time correction of the local clock
  • the terminal device performs a local clock adjustment method, and the terminal device calculates the time correction amount of the local clock according to the time offset compensation amount and the duration of the time period, and performs local clock adjustment according to the time correction amount.
  • the method may further include: determining whether the time offset change amount in a time period is greater than T1, and if yes, calculating the local clock error Error again, the calculation manner may be:
  • Time is the time length at which the time offset change amount is generated.
  • the terminal device can also determine whether there is a residual time offset after the local clock adjusted according to the calculated time offset is stable, and if so, introduce a clock frequency offset from the residual time offset in the opposite direction to the local clock. Make adjustments.
  • the clock frequency offset of the direction adjusts the local clock.
  • the method provided in this embodiment may further include: determining whether the time offset change amount in the period is performed after performing the periodic adjustment according to the time correction amount in order to ensure that the synchronization accuracy of the terminal device and the base station is higher. If it is greater than the preset value or whether there is a residual time offset, if it is greater than or there is a residual offset, continue to calculate the compensation adjustment or introduce the clock frequency offset adjustment in the reverse direction.
  • the local clock adjustment method of the terminal device is completed. After the time offset of the local clock is compensated, the method further includes: transmitting a random access signal, establishing a connection with the base station, acquiring a time offset adjustment amount sent by the base station, and compensating the local clock according to the time offset adjustment amount.
  • the time offset adjustment amount in the embodiment and the optional implementation manner of the present invention refers to a time offset adjustment amount of a delay caused by a distance between a terminal device and a base station, and the time offset is through the terminal.
  • the base station calculates and returns the calculated time offset adjustment amount to the terminal device, and then the terminal device adjusts itself, and finally realizes complete timing synchronization of the terminal device and the base station clock.
  • FIG. 6 is a flowchart of still another method for timing a terminal device according to an embodiment of the present invention.
  • the method provided in this embodiment includes the following steps, that is, steps 410 to 440:
  • S410 Receive an air interface signal sent by the base station.
  • adjusting the local clock according to the timing information comprises: calculating a frequency offset of the local clock according to a predetermined manner, and adjusting a frequency of the local clock according to the frequency offset.
  • S410 to S430 may be the same as those of S310 to S330 in the example shown in FIG. 4 and FIG. 5, and therefore are not described herein again.
  • S440 Perform timing on other terminal devices according to the adjusted local clock.
  • the local clock adjusted in this embodiment refers to the local clock adjusted by the terminal device through the foregoing steps S410 to S430.
  • the local clock adjustment method in any of the embodiments shown in FIG. 4 and FIG. 5 is first performed, thereby eliminating the frequency offset and time offset of the local clock itself. shift.
  • the terminal device after the time offset of the local clock is removed by the local clock adjustment method in the embodiment shown in FIG. 4 and FIG. 5, the terminal device also needs to initiate random access, where the random access is the terminal device
  • the base station establishes communication, acquires the random access corresponding signaling sent by the base station, and obtains a time offset Ta from the signaling, where the time offset Ta represents twice the delay introduced by the path difference. Therefore, the clock is further compensated by Ta/2, so that the local clock and the base station clock error are guaranteed within a certain range of errors.
  • the timing of the other terminal devices is required to be completed by using a preset time-sending protocol.
  • the time-sending protocol may be a 1588 timing protocol, but is not limited to the timing protocol.
  • the local clock adjustment method, the timing method and the device provided by the embodiments of the invention can ensure the accurate synchronization between the terminal device and the base station and reduce the hardware cost of the terminal device in the environment with high sealing performance, and also reduce the hardware cost of the terminal device.
  • the difficulty for the operator to perform the network deployment of the base station does not need to consider the problem of receiving the signal due to environmental factors.
  • the time synchronization device for realizing the clock synchronization by the local clock adjustment method and the timing method provided by the present invention reduces the difficulty of maintaining the base station, and does not need to configure the GPS module on the terminal device, and the timing device can also implement the terminal.
  • the device is synchronized with the timing of the base station.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the terminal device obtains the timing information from the air interface signal by receiving the air interface signal sent by the base station, calculates the frequency offset of the local clock according to the timing information, and calculates the local frequency clock according to the calculated frequency offset. Make adjustments; compared to the only relevant phase in the related art The accuracy of the local clock adjusted by the method provided by the embodiment of the present invention is higher. On the basis of the frequency adjustment of the local clock, the embodiment of the present invention can also calculate the time period according to the adjusted local clock. The time offset is adjusted periodically, which reduces the time error of the local clock and improves the accuracy of synchronous timing.
  • the local time adjustment device is set on the base station or the terminal device by using the technical solution provided by the embodiment of the present invention, so that the terminal device can directly receive the air interface signal of the base station, obtain the timing information therein, and calculate and adjust the timing information.
  • the local clock does not need to configure the GPS module or other hardware on the base station or the terminal device to receive the air interface signal of the base station, which not only reduces the error of the timing synchronization, achieves the precision required for timing, but also simplifies the hardware structure of the base station or the terminal device. Reduced costs.

Landscapes

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

Abstract

A local clock adjustment method, and a time service method and device. The local clock adjustment method comprises: extracting timing information from a received air interface signal; calculating a frequency offset of a local clock according to the timing information; and adjusting the local clock according to the frequency offset, wherein adjusting the local clock according to the timing information comprises: calculating the frequency offset of the local clock according to a pre-determined manner, and adjusting a frequency of the local clock according to the frequency offset.

Description

一种本地时钟调整方法、授时方法及装置Local clock adjustment method, timing method and device 技术领域Technical field
本申请涉及但不限于通讯技术领域。This application relates to, but is not limited to, the field of communication technology.
背景技术Background technique
在长期演进型(Long Term Evolution,简称为:LTE)系统中,终端设备接入网络前需要与基站同步,保证网内基站时钟统一。对于此,运营商在组网时,都会为每个基站配置有全球定位系统(Global Positioning System,简称为:GPS)模块。In a Long Term Evolution (LTE) system, a terminal device needs to synchronize with a base station before accessing the network to ensure that the base station clocks in the network are unified. For this reason, when the operator is networking, a Global Positioning System (GPS) module is configured for each base station.
根据LTE系统的特性,LTE要求终端设备有很高的同步精度,尽量避免符号间干扰及终端设备间的干扰。在相关技术中,终端设备的同步是通过同步信道完成的,这里的同步信道包括主同步信道和辅同步信道,通过解析同步信道,终端设备可以获取接入小区参数和定时信息,终端设备的理论精度能达到1Ts,其中,1Ts等于1/30720毫秒(ms)。According to the characteristics of the LTE system, LTE requires the terminal equipment to have high synchronization accuracy, and avoid inter-symbol interference and interference between terminal devices as much as possible. In the related art, synchronization of the terminal device is completed through a synchronization channel, where the synchronization channel includes a primary synchronization channel and a secondary synchronization channel, and by analyzing the synchronization channel, the terminal device can acquire access cell parameters and timing information, and the theory of the terminal device The accuracy can reach 1Ts, where 1Ts is equal to 1/30720 milliseconds (ms).
相关技术中的时间同步精度无法达到太高的水准,并且在初始同步过程中只能对相位进行调整,并没有对频率进行调整,这样,会使得终端设备存在频率的偏差,并且该频率的偏差会不断地进行累加,导致本地时钟的误差越来越大。The time synchronization accuracy in the related art cannot reach a too high level, and only the phase can be adjusted during the initial synchronization process, and the frequency is not adjusted, so that the terminal device has a frequency deviation and the frequency deviation It will continue to accumulate, resulting in an error in the local clock.
另外,相关技术的LTE系统中的基站是使用GPS模块获取授时,那么,在设置基站布设网络时,基站受到环境条件的限制较大,例如:对于设有严密的遮挡的环境,当基站通过GPS模块接收LTE系统发送的空口信号进行时间同步时,由于该环境是严密的遮挡环境,会对空口信号的传输有阻碍的作用,增加GPS模块接收空口信号的时延,甚至无法接收,从而导致该站点的时钟存在较大的误差,并且达不到要求的授时精度,进而影响周边的网络性能,降低用户的体验度。In addition, the base station in the related art LTE system acquires the timing by using the GPS module. Then, when setting up the base station to set up the network, the base station is limited by environmental conditions, for example, for the environment with strict occlusion, when the base station passes the GPS When the module receives the air interface signal sent by the LTE system for time synchronization, the environment is a strict occlusion environment, which may hinder the transmission of the air interface signal, and increase the delay of the GPS module receiving the air interface signal, and even cannot receive, thereby causing the The clock of the site has a large error, and the required timing accuracy is not achieved, thereby affecting the surrounding network performance and reducing the user experience.
发明内容 Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提供一种本地时钟调整方法、授时方法及装置,以解决相关技术中的终端设备从基站同步时间的方式存在较大误差,并且无法达到授时所需精度的技术问题。The present invention provides a local clock adjustment method, a timing method and a device to solve the technical problem that the terminal device in the related art has a large error in the way of synchronizing time from the base station, and cannot achieve the precision required for timing.
一种本地时钟调整方法,包括:A local clock adjustment method includes:
接收基站发送的空口信号;Receiving an air interface signal sent by the base station;
从所述空口信号中获取定时信息;Obtaining timing information from the air interface signal;
根据所述定时信息调整本地时钟,其中,所述根据所述定时信息调整本地时钟,包括:根据预定的方式计算所述本地时钟的频率偏移量,并根据所述频率偏移量调整本地时钟的频率。Adjusting the local clock according to the timing information, wherein the adjusting the local clock according to the timing information comprises: calculating a frequency offset of the local clock according to a predetermined manner, and adjusting a local clock according to the frequency offset Frequency of.
可选地,在本发明的一种实施例中,所述根据预定的方式计算所述本地时钟的频率偏移量,包括:Optionally, in an embodiment of the present invention, the calculating a frequency offset of the local clock according to a predetermined manner includes:
根据一个或者多个完整循环前缀的正交频分多址符号采样数据计算时域相关值;Calculating time domain correlation values based on orthogonal frequency division multiple access symbol sample data of one or more complete cyclic prefixes;
根据所述时域相关值进行反正切计算,得到所述本地时钟的频率偏移量。Performing an arctangent calculation according to the time domain correlation value to obtain a frequency offset of the local clock.
可选地,在本发明的一种实施例中,所述根据一个完整循环前缀的正交频分多址符号采样数据计算时域相关值,包括:Optionally, in an embodiment of the present invention, the calculating the time domain correlation value according to the orthogonal frequency division multiple access symbol sampling data of a complete cyclic prefix, including:
按照公式一对一个完整循环前缀的正交频分多址符号采样数据计算对应的时域相关值;Calculating the corresponding time domain correlation value according to the orthogonal frequency division multiple access symbol sampling data of a complete one-cycle prefix of the formula;
公式一:
Figure PCTCN2016087310-appb-000001
Formula one:
Figure PCTCN2016087310-appb-000001
其中,c为时域相关值;NCP为循环前缀的采样点数;n为正交频分多址符号的采样索引;a、b为常量,为1,2,3…NCP中的任意整数;N为正交频分多址的采样点数;S(n)*为正交频分多址采样信号的采样数据的共轭;S(n+N)为一个正交频分多址采样数据的(n+N)个采样点的数据;Where c is the time domain correlation value; N CP is the number of sampling points of the cyclic prefix; n is the sampling index of the orthogonal frequency division multiple access symbol; a, b are constants, and are any integers in the 1, 2, 3...N CP N is the number of sampling points of orthogonal frequency division multiple access; S(n)* is the conjugate of the sampling data of the orthogonal frequency division multiple access sampling signal; S(n+N) is an orthogonal frequency division multiple access sampling data Data of (n+N) sample points;
所述根据多个完整循环前缀的正交频分多址符号采样数据计算时域相关 值,包括:Calculating time domain correlation according to orthogonal frequency division multiple access symbol sampling data of multiple complete cyclic prefixes Values, including:
按照所述公式一对每个所述完整循环前缀的正交频分多址符号采样数据计算对应的时域相关值;并对得到的所有时域相关值求平均。Calculating corresponding time domain correlation values according to a pair of orthogonal frequency division multiple access symbol sample data of each of the complete cyclic prefixes; and averaging all obtained time domain correlation values.
可选地,在本发明的一种实施例中,所述根据所述时域相关值进行反正切计算,得到所述本地时钟的频率偏移量,包括:Optionally, in an embodiment of the present invention, performing an arctangent calculation according to the time domain correlation value to obtain a frequency offset of the local clock, including:
按照公式二对所述时域相关值进行反正切计算,得到所述本地时钟的频率偏移量Δf;Performing an arctangent calculation on the time domain correlation value according to formula 2, obtaining a frequency offset Δf of the local clock;
公式二:
Figure PCTCN2016087310-appb-000002
Formula 2:
Figure PCTCN2016087310-appb-000002
其中,Ts为采样间隔,Ts=1/30720000秒。Where Ts is the sampling interval and Ts=1/30720000 seconds.
可选地,在本发明的一种实施例中,所述根据所述定时信息调整本地时钟,还包括:Optionally, in an embodiment of the present invention, the adjusting the local clock according to the timing information further includes:
根据计算出的所述频率偏移量计算终端设备晶振的误差,根据计算出的误差对所述本地时钟的晶振进行补偿调整。Calculating an error of the crystal oscillator of the terminal device according to the calculated frequency offset, and performing compensation adjustment on the crystal oscillator of the local clock according to the calculated error.
可选地,在本发明的一种实施例中,所述根据所述定时信息调整本地时钟之后,所述方法还包括:Optionally, in an embodiment of the present invention, after the local clock is adjusted according to the timing information, the method further includes:
对所述本地时钟进行周期性调整;其中,所述对所述本地时钟进行周期性调整,包括:Periodically adjusting the local clock; wherein the periodically adjusting the local clock includes:
计算当前时间周期内所述本地时钟所积累的时间偏移量;Calculating a time offset accumulated by the local clock in a current time period;
根据所述时间偏移量计算所述当前时间周期内所述本地时钟的时间偏移补偿量;Calculating a time offset compensation amount of the local clock in the current time period according to the time offset;
根据所述时间偏移补偿量和所述当前时间周期内的时长,计算所述当前时间周期内所述本地时钟的时间修正量;Calculating a time correction amount of the local clock in the current time period according to the time offset compensation amount and a duration in the current time period;
根据所述时间修正量对所述本地时钟进行补偿调整。The local clock is compensated and adjusted according to the time correction amount.
可选地,在本发明的一种实施例中,所述计算当前时间周期内所述本地时钟所积累的时间偏移量,包括:Optionally, in an embodiment of the present invention, the calculating a time offset accumulated by the local clock in a current time period includes:
计算所述当前时间周期内的每个子帧的时间偏移量; Calculating a time offset of each subframe in the current time period;
根据所述当前时间周期内的每个子帧的时间偏移量或部分子帧的时间偏移量求平均值,得到时间偏移平均值。The time offset average value is obtained according to the time offset of each subframe in the current time period or the time offset of the partial subframe.
可选地,在本发明的一种实施例中,所述根据所述时间偏移量计算所述当前时间周期内所述本地时钟的时间偏移补偿量,包括:Optionally, in an embodiment of the present invention, the calculating a time offset compensation amount of the local clock in the current time period according to the time offset includes:
根据所述时间偏移量平均值计算所述当前时间周期内所述本地时钟的所述时间偏移补偿量ΔTa:Calculating the time offset compensation amount ΔTa of the local clock in the current time period according to the time offset average value:
ΔTa=averageTimeOffset-TimeOffsetLast;ΔTa=averageTimeOffset-TimeOffsetLast;
其中,averageTimeOffset为所述本地时钟在所述当前时间周期内的时间偏移平均值,TimeOffsetLast为所述本地时钟在上一时间周期调整时的时间偏移量。The averageTimeOffset is an average value of the time offset of the local clock in the current time period, and TimeOffsetLast is a time offset of the local clock when the previous time period is adjusted.
可选地,在本发明的一种实施例中,所述根据所述时间偏移补偿量和所述当前时间周期内的时长,计算所述本地时钟的时间修正量,包括:Optionally, in an embodiment of the present invention, the calculating the time correction amount of the local clock according to the time offset compensation amount and the duration in the current time period, including:
按照公式三计算所述本地时钟的时间修正量;Calculating the time correction amount of the local clock according to formula 3;
公式三:
Figure PCTCN2016087310-appb-000003
Formula 3:
Figure PCTCN2016087310-appb-000003
其中,T为所述当前时间周期的时长;Error为所述本地时钟的误差时间修正量;ppb为纳克级1ppb=10-9Where T is the duration of the current time period; Error is the error time correction of the local clock; ppb is the nanogram 1 ppb = 10 -9 .
一种授时方法,包括:A timing method comprising:
终端设备根据上述任一项所述的本地时钟调整方法调整本地时钟;The terminal device adjusts the local clock according to the local clock adjustment method described in any of the above;
所述终端设备根据调整后的本地时钟对其他终端设备进行授时。The terminal device performs timing for other terminal devices according to the adjusted local clock.
一种本地时钟调整装置,包括:A local clock adjustment device includes:
接收模块,设置为:接收基站发送的空口信号;The receiving module is configured to: receive the air interface signal sent by the base station;
获取模块,设置为:从所述接收模块接收的所述空口信号中获取定时信息;An acquiring module, configured to: obtain timing information from the air interface signal received by the receiving module;
调整模块,设置为:根据所述获取模块获取的所述定时信息调整本地时钟,其中,调整模块是设置为:根据预定的方式计算所述本地时钟的频率偏移量,并根据所述频率偏移量调整所述本地时钟的频率。 The adjusting module is configured to: adjust the local clock according to the timing information acquired by the acquiring module, where the adjusting module is configured to: calculate a frequency offset of the local clock according to a predetermined manner, and according to the frequency offset The shift adjusts the frequency of the local clock.
可选地,在本发明的一种实施例中,所述调整模块包括:Optionally, in an embodiment of the present invention, the adjusting module includes:
时域相关值计算单元,设置为:根据一个或者多个完整循环前缀的正交频分多址符号采样数据计算时域相关值;a time domain correlation value calculation unit, configured to: calculate a time domain correlation value according to orthogonal frequency division multiple access symbol sample data of one or more complete cyclic prefixes;
频率偏移量计算单元,设置为:根据所述时域相关值计算单元计算得到的所述时域相关值进行反正切计算,得到所述本地时钟的频率偏移量;The frequency offset calculation unit is configured to perform an arctangent calculation according to the time domain correlation value calculated by the time domain correlation value calculation unit, to obtain a frequency offset of the local clock;
频率调整单元,设置为:根据所述频率偏移量计算单元计算得到的所述本地时钟的频率偏移量调整所述本地时钟的频率。The frequency adjustment unit is configured to adjust the frequency of the local clock according to the frequency offset of the local clock calculated by the frequency offset calculation unit.
可选地,在本发明的一种实施例中,所述调整模块还包括:Optionally, in an embodiment of the present invention, the adjusting module further includes:
时间偏移量计算单元,设置为:计算当前时间周期内所述本地时钟所积累的时间偏移量;a time offset calculation unit configured to: calculate a time offset accumulated by the local clock in a current time period;
时间偏移补偿量计算单元,设置为:根据所述时间偏移量计算单元计算得到的所述时间偏移量计算所述当前时间周期内所述本地时钟的时间偏移补偿量;The time offset compensation amount calculation unit is configured to: calculate a time offset compensation amount of the local clock in the current time period according to the time offset calculated by the time offset calculation unit;
时间修正量计算单元,设置为:根据所述当前时间周期内的时长和所述时间偏移补偿量计算单元计算得到的所述时间偏移补偿量,计算所述当前时间周期内所述本地时钟的时间修正量;The time correction amount calculation unit is configured to: calculate the local clock in the current time period according to the duration in the current time period and the time offset compensation amount calculated by the time offset compensation amount calculation unit Time correction amount;
时间调整单元,设置为:根据所述时间修正量计算单元计算得到的所述时间修正量对所述本地时钟进行补偿调整。The time adjustment unit is configured to: perform compensation adjustment on the local clock according to the time correction amount calculated by the time correction amount calculation unit.
一种授时装置,包括:如上述任一项所述的本地时钟调整装置,以及授时模块;A timing device, comprising: the local clock adjustment device according to any one of the above, and a timing module;
所述本地时钟调整装置,设置为:接收基站发送的空口信号,从所述空口信号中获取定时信息,根据所述定时信息调整本地时钟,其中,根据所述定时信息调整本地时钟,包括:根据预定的方式计算所述本地时钟的频率偏移量,并根据所述频率偏移量调整所述本地时钟的频率;The local clock adjustment device is configured to: receive an air interface signal sent by the base station, obtain timing information from the air interface signal, and adjust a local clock according to the timing information, where the local clock is adjusted according to the timing information, including: Calculating a frequency offset of the local clock in a predetermined manner, and adjusting a frequency of the local clock according to the frequency offset;
所述授时模块,设置为:根据所述本地时钟调整装置调整后的时钟对其他终端设备进行授时。The timing module is configured to: time the other terminal devices according to the clock adjusted by the local clock adjustment device.
本发明实施例提供的一种本地时钟调整方法、授时方法及装置,终端设备通过接收基站发送的空口信号,从该空口信号的中获取定时信息,根据该 定时信息计算本地时钟的频率偏移量,并根据计算出的频率偏移量对本地时钟进行调整;相比与相关技术中只调整相位的方式,通过本发明实施例提供的方法调整后的本地时钟精准度更高;采用本发明实施例提供的技术方案,在基站或者终端设备上设置本地时间调整装置,使得终端设备可以直接接收基站的空口信号,获取其中的定时信息,通过定时信息来计算调整本地时钟,不需要在基站或者终端设备上配置GPS模块或者其他硬件来接收基站的空口信号,不但降低了授时同步所存在误差,达到授时所需精度,还简化了基站或终端设备的硬件结构和降低了成本。The local clock adjustment method, the timing method and the device provided by the embodiment of the present invention, the terminal device obtains the timing information from the air interface signal by receiving the air interface signal sent by the base station, according to the The timing information is used to calculate the frequency offset of the local clock, and the local clock is adjusted according to the calculated frequency offset. Compared with the method of adjusting the phase in the related art, the localized by the method provided by the embodiment of the present invention is adjusted. The clock accuracy is higher. The local time adjustment device is set on the base station or the terminal device by using the technical solution provided by the embodiment of the present invention, so that the terminal device can directly receive the air interface signal of the base station, obtain the timing information therein, and calculate the timing information. Adjusting the local clock does not require the GPS module or other hardware to be configured on the base station or the terminal device to receive the air interface signal of the base station, which not only reduces the error of the timing synchronization, but also achieves the precision required for timing, and simplifies the hardware structure of the base station or the terminal device. And reduce costs.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例提供的一种本地时钟调整装置的结构示意图;FIG. 1 is a schematic structural diagram of a local clock adjustment apparatus according to an embodiment of the present disclosure;
图2为本发明实施例提供的另一种本地时钟调整装置的结构示意图FIG. 2 is a schematic structural diagram of another local clock adjusting apparatus according to an embodiment of the present invention;
图3为本发明实施例提供的一种授时装置的结构示意图;3 is a schematic structural diagram of a timing device according to an embodiment of the present invention;
图4为本发明实施例提供的一种本地时钟调整方法的流程图;FIG. 4 is a flowchart of a method for adjusting a local clock according to an embodiment of the present invention;
图5为本发明实施例提供的另一种本地时钟调整方法的流程图;FIG. 5 is a flowchart of another local clock adjustment method according to an embodiment of the present invention;
图6为本发明实施例提供的一种授时方法的流程图。FIG. 6 is a flowchart of a timing method according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments herein may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system in accordance with a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图1为本发明实施例提供的一种本地时钟调整装置的结构示意图。如图1所示,本实施例提供的本地时钟调整装置可以包括:接收模块11、获取模块12和调整模块13。 FIG. 1 is a schematic structural diagram of a local clock adjustment apparatus according to an embodiment of the present invention. As shown in FIG. 1 , the local clock adjustment apparatus provided in this embodiment may include: a receiving module 11 , an obtaining module 12 , and an adjusting module 13 .
其中,接收模块11,设置为:接收基站发送的空口信号;The receiving module 11 is configured to: receive an air interface signal sent by the base station;
获取模块12,设置为:从接收模块11接收的空口信号中获取定时信息;The obtaining module 12 is configured to: obtain timing information from the air interface signal received by the receiving module 11;
调整模块13,设置为:根据获取模块12获取的定时信息调整本地时钟,本实施例中调整模块13调整本地时钟的方式可以包括:根据预定的方式计算本地时钟的频率偏移量,并根据计算出的频率偏移量调整本地时钟的频率。The adjusting module 13 is configured to: adjust the local clock according to the timing information acquired by the obtaining module 12, and the manner in which the adjusting module 13 adjusts the local clock in the embodiment may include: calculating a frequency offset of the local clock according to a predetermined manner, and calculating according to a predetermined manner The frequency offset is adjusted to adjust the frequency of the local clock.
在本实施例中,接收模块11负责接收LTE系统基站发送的空口信号,该空口信号可以是基站产生的定时信息通过LTE系统指定的发送单元发送的空口信号,也可以是由其他模块发送的带有定时信息的其他空口信号。本实施例中的可以根据基站的需要,将接收模块11接收空口信号的方式设计成对单独的空口射频信号接收,还可以设计成与基站的业务射频电路共用的接收装置,降低了基站的硬件设计成本,本实施例中的接收模块11不需要配置GPS模块,也能接收信号进行授时同步,简化了基站或者终端设备的硬件结构,从而降低了成本,增强了用户的体验度。本实施例中的接收模块11接收到空口信号后,将该空口信号输出给获取模块12进行提取定时信息,再由调整模块13根据获取模块12获取的定时信息计算用于调整本地时钟的时钟修正量。In this embodiment, the receiving module 11 is responsible for receiving the air interface signal sent by the base station of the LTE system, and the air interface signal may be an air interface signal sent by the sending unit specified by the LTE system, or may be sent by other modules. Other air interface signals with timing information. In this embodiment, the receiving module 11 can receive the air interface signal according to the needs of the base station, and the receiver module 11 can be configured to receive the radio signal of the air interface, and can also be designed as a receiving device shared with the service radio frequency circuit of the base station, thereby reducing the hardware of the base station. The design cost of the receiving module 11 in this embodiment does not need to be configured with a GPS module, and can also receive signals for timing synchronization, which simplifies the hardware structure of the base station or the terminal device, thereby reducing the cost and enhancing the user experience. After receiving the air interface signal, the receiving module 11 in the embodiment outputs the air interface signal to the acquiring module 12 for extracting timing information, and then the adjusting module 13 calculates a clock correction for adjusting the local clock according to the timing information acquired by the obtaining module 12. the amount.
可选地,本实例中的该调整模块13例如可以包括数字信号处理(Digital Signal Processing,简称为:DSP)芯片和数字模拟转换器(Digital to analog converter,简称为:DAC)芯片,该调整模块13不仅可以调整本地时钟的频率偏移,还可以对本地时钟的相位进行调整。Optionally, the adjustment module 13 in this example may include, for example, a digital signal processing (DSP) chip and a digital to analog converter (DAC) chip. 13 not only can adjust the frequency offset of the local clock, but also adjust the phase of the local clock.
可选地,如图2所示,为本发明实施例提供的另一种本地时钟调整装置的结构示意图。在图1所示装置的结构基础上,本实施例提供的本地时钟调整装置中,调整模块13可以包括时域相关值计算模块131、频率偏移量计算单元132和频率调整单元133。Optionally, as shown in FIG. 2, it is a schematic structural diagram of another local clock adjustment apparatus according to an embodiment of the present invention. In the local clock adjustment apparatus provided in this embodiment, the adjustment module 13 may include a time domain correlation value calculation module 131, a frequency offset calculation unit 132, and a frequency adjustment unit 133.
其中,时域相关值计算单元131,设置为:根据一个或者多个完整循环前缀的正交频分多址符号采样数据计算时域相关值;The time domain correlation value calculation unit 131 is configured to: calculate a time domain correlation value according to the orthogonal frequency division multiple access symbol sample data of one or more complete cyclic prefixes;
频率偏移量计算单元132,设置为:根据时域相关值计算单元131计算得到的时域相关值进行反正切计算,得到该本地时钟的频率偏移量;The frequency offset calculation unit 132 is configured to perform an arctangent calculation according to the time domain correlation value calculated by the time domain correlation value calculation unit 131 to obtain a frequency offset of the local clock;
频率调整单元133,设置为:根据频率偏移量计算单元132计算得到的本 地时钟的频率偏移量调整该本地时钟的频率。The frequency adjustment unit 133 is configured to: calculate the obtained version according to the frequency offset calculation unit 132. The frequency offset of the ground clock adjusts the frequency of the local clock.
可选地,在本实施例的一种实现方式中,当时域相关值计算单元131对一个完整循环前缀的正交频分多址符号采样数据计算时域相关值时,该时域相关值计算单元131通过公式一计算得到时域相关值:Optionally, in an implementation manner of this embodiment, when the time domain correlation value calculation unit 131 calculates a time domain correlation value for the orthogonal frequency division multiple access symbol sample data of a complete cyclic prefix, the time domain correlation value calculation is performed. Unit 131 calculates the time domain correlation value by formula one:
公式一:
Figure PCTCN2016087310-appb-000004
Formula one:
Figure PCTCN2016087310-appb-000004
其中,c为时域相关值;NCP为循环前缀的采样点数;n为正交频分多址符号的采样索引;a、b为常量,为1,2,3…NCP中的任意整数;N为正交频分多址的采样点数;S(n)为正交频分多址采样信号的采样数据的共轭;S(n+N)为一个正交频分多址采样数据的(n+N)个采样点的数据;Where c is the time domain correlation value; N CP is the number of sampling points of the cyclic prefix; n is the sampling index of the orthogonal frequency division multiple access symbol; a, b are constants, and are any integers in the 1, 2, 3...N CP N is the number of sampling points of orthogonal frequency division multiple access; S(n) is the conjugate of the sampling data of the orthogonal frequency division multiple access sampling signal; S(n+N) is an orthogonal frequency division multiple access sampling data (n+N) data of sampling points;
可选地,在本实施例的另一种实现方式中,当时域相关值计算单元131对多个完整循环前缀的正交频分多址符号采样数据计算时域相关值时,该时域相关值计算单元131首先按照上述公式一对每个完整循环前缀的正交频分多址符号采样数据计算对应的时域相关值c;然后对得到的每个时域相关值求平均。Optionally, in another implementation manner of this embodiment, when the time domain correlation value calculation unit 131 calculates a time domain correlation value for the orthogonal frequency division multiple access symbol sample data of the multiple complete cyclic prefix, the time domain correlation is performed. The value calculation unit 131 first calculates a corresponding time domain correlation value c for each pair of orthogonal frequency division multiple access symbol sample data of each complete cyclic prefix according to the above formula; and then averages each of the obtained time domain correlation values.
可选地,本实施例中的频率偏移量计算单元132对时域相关值计算单元131计算出的时域相关值c进行反正切计算,得到本地时钟的频率偏移量的实现方式可以为:Optionally, the frequency offset calculation unit 132 in the embodiment performs an arctangent calculation on the time domain correlation value c calculated by the time domain correlation value calculation unit 131, and the implementation manner of obtaining the frequency offset of the local clock may be :
频率偏移量计算单元132按照如下公式二对时域相关值进行反正切计算,得到本地时钟的频率偏移量Δf;The frequency offset calculation unit 132 performs arctangent calculation on the time domain correlation value according to the following formula 2, and obtains the frequency offset Δf of the local clock;
公式二:
Figure PCTCN2016087310-appb-000005
Formula 2:
Figure PCTCN2016087310-appb-000005
其中,Ts为采样间隔,Ts=1/30720000秒(s)。Where Ts is the sampling interval and Ts=1/30720000 seconds (s).
可选地,如图2所示,本实施例提供的本地时钟调整装置中,调整模块13还包括:Optionally, as shown in FIG. 2, in the local clock adjustment apparatus provided in this embodiment, the adjustment module 13 further includes:
时间偏移量计算单元134,设置为:计算当前时间周期内本地时钟所积累的时间偏移量; The time offset calculation unit 134 is configured to: calculate a time offset accumulated by the local clock in the current time period;
时间偏移补偿量计算单元135,设置为:根据时间偏移量计算单元134计算得到的时间偏移量计算当前时间周期内本地时钟的时间偏移补偿量;The time offset compensation amount calculation unit 135 is configured to: calculate a time offset compensation amount of the local clock in the current time period according to the time offset calculated by the time offset calculation unit 134;
时间修正量计算单元136,设置为:根据当前时间周期内的时长和时间偏移补偿量计算单元135计算得到的时间偏移补偿量,计算当前时间周期内本地时钟的时间修正量;The time correction amount calculation unit 136 is configured to: calculate a time offset compensation amount calculated by the duration and time offset compensation amount calculation unit 135 in the current time period, and calculate a time correction amount of the local clock in the current time period;
时间调整单元137,设置为:根据时间修正量计算单元136计算得到的时间修正量对本地时钟进行补偿调整。The time adjustment unit 137 is configured to perform compensation adjustment on the local clock according to the time correction amount calculated by the time correction amount calculation unit 136.
在实际应用中,本实施例中的调整模块13,还设置为:在对本地时钟调整的完成之后,发起随机接入,使得终端设备与基站连接,并获取基站计算出的终端设备与基站之间由于距离所产生的时延的时间偏移调整量,并根据该时间偏移调整量进一步调整本地时钟。In an actual application, the adjustment module 13 in this embodiment is further configured to: after completing the adjustment of the local clock, initiate random access, so that the terminal device is connected to the base station, and acquires the terminal device and the base station calculated by the base station. The amount of time offset between the delays due to the distance is adjusted, and the local clock is further adjusted according to the time offset adjustment amount.
如图3所示,为本发明实施例提供的一种授时装置的示意图。本实施例提供的授时装置可以包括:本地时钟调整装置21和授时模块22。FIG. 3 is a schematic diagram of a timing device according to an embodiment of the present invention. The timing device provided in this embodiment may include: a local clock adjustment device 21 and a timing module 22.
其中,本实施例中的本地时钟调整装置21可以为图1和图2所示任一实施例提供的本地时钟调整装置,该本地时钟调整装置21,设置为:接收基站发送的空口信号,从该空口信号中获取定时信息,根据该定时信息调整本地时钟,其中,根据该定时信息调整本地时钟的实现方式可以为:根据预定的方式计算本地时钟的频率偏移量,并根据该频率偏移量调整本地时钟的频率。The local clock adjustment device 21 in this embodiment may be the local clock adjustment device provided in any of the embodiments shown in FIG. 1 and FIG. 2, and the local clock adjustment device 21 is configured to: receive the air interface signal sent by the base station, and Obtaining the timing information according to the timing information, and adjusting the local clock according to the timing information, wherein the local clock is adjusted according to the timing information, and the frequency offset of the local clock is calculated according to a predetermined manner, and the frequency offset is calculated according to the frequency Adjust the frequency of the local clock.
授时模块22,设置为:根据本地时钟调整装置21调整后的时钟对其他终端设备进行授时。The timing module 22 is configured to: time the other terminal devices according to the clock adjusted by the local clock adjustment device 21.
本实施例提供的授时装置内可以置于终端设备中,该终端设备通过设置本地时钟调整装置21可以直接接收到LTE系统基站发送的空口信号,并从该空口信号中获取定时信息,根据该定时信息计算出对本地时钟的相位、频率偏移和时间偏移进行调整的时钟修正量,使得本地时钟与LTE系统的基站时钟相对锁定,保证了终端设备与基站同步时钟时,除了存在终端设备与基站之间的距离时延时间偏移量外,不会出现本地时钟还存在时间偏移的情况,从而提高了终端设备同步授时的精度。The timing device provided in this embodiment may be placed in a terminal device, and the terminal device can directly receive the air interface signal sent by the LTE system base station by setting the local clock adjustment device 21, and obtain timing information from the air interface signal, according to the timing. The information calculates a clock correction amount for adjusting the phase, the frequency offset, and the time offset of the local clock, so that the local clock is relatively locked with the base station clock of the LTE system, and the terminal device and the base station are synchronized with the clock, except that the terminal device exists. In addition to the distance delay time offset between the base stations, there is no case that the local clock still has a time offset, thereby improving the accuracy of the synchronous timing of the terminal device.
可选地,在通过授时模块22将通过本地时钟调整装置21调整后的本地时 钟对其他终端设备进行授时,这里的其他设备可以是附属于该终端设备下的下级设备,也可以是与该终端设备同级别的终端设备。Optionally, the local time adjusted by the local clock adjustment device 21 by the timing module 22 The clock is used to grant time to other terminal devices. The other devices here may be subordinate devices attached to the terminal device, or may be terminal devices at the same level as the terminal device.
本发明实施例提供的本地时钟调整装置和授时装置,终端设备通过接收基站发送的空口信号,从该空口信号的中获取定时信息,根据该定时信息计算本地时钟的频率偏移量,并根据计算出的频率偏移量对本地时钟进行调整;相比与相关技术中只调整相位的方式,通过本发明实施例提供的方法调整后的本地时钟精准度更高;在对本地时钟的频率调整的基础之上,本发明实施例还可以根据调整后的本地时钟计算一个时间周期内的时间偏移量,并进行周期性的调整,从而减少了本地时钟的时间误差,提高了同步授时的精度。除此之外,采用本发明实施例提供的技术方案,在基站或者终端设备上设置本地时间调整装置,使得终端设备可以直接接收基站的空口信号,获取其中的定时信息,通过定时信息来计算调整本地时钟,不需要在基站或者终端设备上配置GPS模块或者其他硬件来接收基站的空口信号,不但降低了授时同步所存在误差,达到授时所需精度,还简化了基站或终端设备的硬件结构和降低了成本。The local clock adjusting device and the timing device provided by the embodiment of the present invention, the terminal device obtains the timing information from the air interface signal by receiving the air interface signal sent by the base station, calculates the frequency offset of the local clock according to the timing information, and calculates the frequency offset according to the timing information. The frequency offset is adjusted to the local clock. Compared with the method of adjusting the phase in the related art, the local clock adjusted by the method provided by the embodiment of the present invention has higher precision; the frequency adjustment of the local clock is performed. On the basis of the present invention, the time offset in a time period can be calculated according to the adjusted local clock, and the periodic adjustment is performed, thereby reducing the time error of the local clock and improving the precision of the synchronous timing. In addition, the local time adjustment device is set on the base station or the terminal device by using the technical solution provided by the embodiment of the present invention, so that the terminal device can directly receive the air interface signal of the base station, obtain the timing information therein, and calculate and adjust the timing information. The local clock does not need to configure the GPS module or other hardware on the base station or the terminal device to receive the air interface signal of the base station, which not only reduces the error of the timing synchronization, achieves the precision required for timing, but also simplifies the hardware structure of the base station or the terminal device. Reduced costs.
图4为本发明实施例提供的一种本地时钟调整方法的流程图。本实施例提供的本地时钟调整方法可以包括如下步骤,即S310~S330:FIG. 4 is a flowchart of a local clock adjustment method according to an embodiment of the present invention. The local clock adjustment method provided in this embodiment may include the following steps, that is, S310 to S330:
S310,接收基站发送的空口信号;S310. Receive an air interface signal sent by the base station.
S320,从空口信号中获取定时信息;S320. Obtain timing information from the air interface signal.
S330,根据定时信息调整本地时钟,其中,根据定时信息调整本地时钟,包括:根据预定的方式计算本地时钟的频率偏移量,并根据频率偏移量调整本地时钟的频率。S330. Adjust a local clock according to the timing information. The local clock is adjusted according to the timing information, including: calculating a frequency offset of the local clock according to a predetermined manner, and adjusting a frequency of the local clock according to the frequency offset.
在本实施例的S310中,空口信号可以是基站产生的定时信息通过LTE系统指定的发送单元发送的空口信号,也可以是由其他模块发送的包括定时信息的空口信号;不管所述空口信号为其他模块还是指定的发送单元发送的,基站或者终端设备都不需要设置GPS模块也可以接收。在接收到该空口信号后,执行S320,提取定时信息,然后根据该定时信息计算对本地时钟你进行调整的修正量,即是执行S330。 In S310 of the embodiment, the air interface signal may be an air interface signal that is sent by the sending unit specified by the LTE system, or may be an air interface signal that is sent by other modules and includes timing information; The other modules are also sent by the designated sending unit, and the base station or the terminal device can be received without setting the GPS module. After receiving the air interface signal, executing S320, extracting timing information, and then calculating a correction amount for adjusting the local clock according to the timing information, that is, executing S330.
可选地,在本实施例的S330中,根据定时信息计算频率偏移量的实现方式可以包括:首先,获取一个完整循环前缀的正交频分多址符号采样数据,可以通过以下方式获取;Optionally, in S330 of this embodiment, the implementation of calculating the frequency offset according to the timing information may include: first, acquiring the orthogonal frequency division multiple access symbol sampling data of a complete cyclic prefix, which may be obtained by:
S(n)=S(n+N),n=1,2…NCP,N=2048;S(n)=S(n+N), n=1, 2...N CP , N=2048;
当存在频率偏移时,假设频率偏移量为Δf,那么:When there is a frequency offset, assuming a frequency offset of Δf, then:
Figure PCTCN2016087310-appb-000006
Figure PCTCN2016087310-appb-000006
假设由Δf产生的相位范围在(-π,π),那么:Assuming that the phase range produced by Δf is at (-π, π), then:
Figure PCTCN2016087310-appb-000007
Figure PCTCN2016087310-appb-000007
式中,Ts为采样间隔(1/30720000s),N=2048。Where Ts is the sampling interval (1/30720000s), N=2048.
随后,根据上述获取的一个完整循环前缀的正交频分多址符号采样数据计算时域相关值c为:Then, the time domain correlation value c is calculated according to the Orthogonal Frequency Division Multiple Access symbol sample data of a complete cyclic prefix obtained above:
公式一:
Figure PCTCN2016087310-appb-000008
Formula one:
Figure PCTCN2016087310-appb-000008
从而根据时域相关值计算本地时钟的频率偏移量Δf,通过公式二计算:Therefore, the frequency offset Δf of the local clock is calculated according to the time domain correlation value, and is calculated by Formula 2:
公式二:
Figure PCTCN2016087310-appb-000009
Formula 2:
Figure PCTCN2016087310-appb-000009
可选地,在本实施例中,当存在多个完整循环前缀的正交频分多址符号采样数据时,计算时域相关值c的实现方式可以为:按照上述计算时域相关值的公式一对每个完整循环前缀的正交频分多址符号采样数据计算对应的时域相关值c;并对得到的所有时域相关值求平均,得到时域相关值的平均值;再根据时域相关值的平均值计算本地时钟的频率偏移量Δf。Optionally, in this embodiment, when there are multiple orthogonal cyclic prefix orthogonal frequency division multiple access symbol sampling data, the implementation manner of calculating the time domain correlation value c may be: formulating the time domain correlation value according to the above formula Calculating a corresponding time domain correlation value c by using a pair of orthogonal frequency division multiple access symbol sample data of each complete cyclic prefix; and averaging all obtained time domain correlation values to obtain an average value of time domain correlation values; The average of the domain correlation values calculates the frequency offset Δf of the local clock.
本实施例中提供的方法,在采用上述通过计算多个完整循环前缀的正交频分多址符号采样数据计算时域相关值c的方式,计算本地时钟的频率偏移量Δf,计算多个完整循环时同样需要计算每个完整循环的时域相关值,然后累加起来除以完整循环的个数,而用累加后在求平均值的方式会降低计算误差,而单个的计算会有出现较大的随机率,其误差较高,精确度低。 In the method provided in this embodiment, the frequency offset Δf of the local clock is calculated by calculating the time domain correlation value c by calculating the orthogonal frequency division multiple access symbol sampling data of the multiple complete cyclic prefix, and calculating multiple In the complete loop, it is also necessary to calculate the time domain correlation value of each complete loop, and then add up the number of complete loops, and the method of averaging after the accumulation will reduce the calculation error, and the single calculation will appear. Large random rate with high error and low accuracy.
可选地,如图5所示,为本发明实施例提供的另一种本地时钟调整方法的流程图。在图4所示实施例的流程基础上,本实施例提供的方法,在执行完S330后,还可以包括:Optionally, as shown in FIG. 5, it is a flowchart of another local clock adjustment method according to an embodiment of the present invention. On the basis of the process of the embodiment shown in FIG. 4, the method provided in this embodiment may further include:
S340,根据计算出的频率偏移量计算终端设备晶振的误差,根据计算出的误差对本地时钟的晶振进行补偿调整;在实际应用时,计算终端设备晶振的误差可以通过以下公式进行计算,S340, calculating an error of the crystal oscillator of the terminal device according to the calculated frequency offset, and performing compensation adjustment on the crystal oscillator of the local clock according to the calculated error; in actual application, calculating the error of the crystal oscillator of the terminal device can be calculated by the following formula.
Figure PCTCN2016087310-appb-000010
Figure PCTCN2016087310-appb-000010
其中,Error2为本地晶振的误差;fcarry为信号的载波频率。Where Error2 is the error of the local crystal oscillator; f carry is the carrier frequency of the signal.
可选地,在本实施例的一种实现方式中,在执行S320之后,并且在S330之前,还可以包括:Optionally, in an implementation manner of this embodiment, after performing S320, and before S330, the method may further include:
S321,根据获取的定时信息对本地时钟的相位进行调整,对本地时钟的相位的调整包括半帧同步和帧同步;半帧同步是每相隔5毫秒的时间对空口信号帧进行一次采集获取该时刻的空口信号时钟,帧同步是每相隔10毫秒的时间对空口信号帧进行一次采集获取该时刻的空口信号时钟,每采集完一次后都与本地时钟进行相位的对比调整。S321: Adjust the phase of the local clock according to the acquired timing information, and adjust the phase of the local clock to include the half frame synchronization and the frame synchronization; the half frame synchronization is to collect the air interface signal frame once every 5 milliseconds to obtain the time. The air interface signal clock, frame synchronization is to collect the air interface signal frame once every 10 milliseconds to obtain the air interface signal clock at that moment, and compare the phase with the local clock after each acquisition.
可选地,在本实施例的一种实现方式中,在执行S330之后,还可以包括:Optionally, in an implementation manner of this embodiment, after performing S330, the method may further include:
S350,对本地时钟进行周期性的调整;在实际应用中,该周期性的调整方式可以包括:计算当前时间周期内本地时钟所积累的时间偏移量,根据时间偏移量计算当前时间周期内本地时钟的时间偏移补偿量,再根据时间偏移补偿量和当前时间周期内的时长,计算本地时钟的时间修正量,根据时间修正量对本地时钟进行补偿调整。S350: Perform periodic adjustment on the local clock. In an actual application, the periodic adjustment manner may include: calculating a time offset accumulated by the local clock in the current time period, and calculating a current time period according to the time offset. The time offset compensation amount of the local clock is calculated according to the time offset compensation amount and the duration in the current time period, and the local clock time correction amount is calculated, and the local clock is compensated and adjusted according to the time correction amount.
可选地,本实施例的S350中,在计算当前时间周期内积累的时间偏移量过程中,还可以包括:计算该当前时间周期内的每个子帧的时间偏移量,然后再根据计算出的每个子帧的时间偏移量求平均值,得到时间偏移平均值。Optionally, in S350 of the embodiment, in the process of calculating the time offset accumulated in the current time period, the method further includes: calculating a time offset of each subframe in the current time period, and then calculating according to the calculation The time offset of each sub-frame is averaged to obtain a time offset average.
可选地,本实施例中计算每个子帧或者多个子帧的时间偏移量的实现方式可以包括:Optionally, the implementation manner of calculating the time offset of each subframe or multiple subframes in this embodiment may include:
取宽带相关值并累加,每个时间偏移量对应的所有收发通道进行累加, 该带宽相关值为导频信号相关值,其计算公式为:Take the broadband correlation values and accumulate them, and accumulate all the transceiver channels corresponding to each time offset. The bandwidth correlation value is a pilot signal correlation value, and the calculation formula is:
Figure PCTCN2016087310-appb-000011
Figure PCTCN2016087310-appb-000011
其中,Sum为带宽相关值累加值;S(n)为正交频分多址采样信号的采样数据;S(n+N)为一个正交频分多址采样数据的(n+N)个采样点的数据的共轭;Nrs为导频信号采样点数,由系统决定,最大值为200;Where Sum is the accumulated value of the bandwidth correlation value; S(n) is the sampling data of the orthogonal frequency division multiple access sampling signal; S(n+N) is (n+N) of one orthogonal frequency division multiple access sampling data The conjugate of the data of the sampling point; N rs is the number of sampling points of the pilot signal, which is determined by the system, and the maximum value is 200;
根据计算出的带宽累加值计算本地时钟的复数的相位(Phase),可以为:Calculate the phase (Phase) of the complex number of the local clock based on the calculated bandwidth accumulated value, which can be:
Phase=angle(sum);Phase=angle(sum);
根据计算出的复数的相位计算时间偏移量TimeOffset,可以为:Calculating the time offset TimeOffset according to the calculated phase of the complex number can be:
Figure PCTCN2016087310-appb-000012
Figure PCTCN2016087310-appb-000012
其中,FFTsize为快速傅里叶变换点数;Where FFTsize is the number of fast Fourier transform points;
随后,根据当前时间周期内的每个子帧的时间偏移量或部分子帧的时间偏移量求平均值,得到时间偏移平均值(averageTimeOffset)。Then, the time offset average value (averageTimeOffset) is obtained according to the time offset of each subframe in the current time period or the time offset of the partial subframe.
在实际应用中,若采用多个子帧累加计算平均值的计算方式,可提高计算出的时间偏移量的精确度,降低由于随机因素而产生的计算误差。In practical applications, if a plurality of sub-frames are used to calculate the average value, the accuracy of the calculated time offset can be improved, and the calculation error due to random factors can be reduced.
可选地,本实施例中根据时间偏移量计算当前时间周期内本地时钟的时间偏移补偿量的实现方式可以包括:根据时间偏移平均值(averageTimeOffset)计算当前时间周期内本地时钟的时间偏移补偿量ΔTa,可以为:Optionally, the implementation manner of calculating the time offset compensation amount of the local clock in the current time period according to the time offset in the embodiment may include: calculating the time of the local clock in the current time period according to the time offset average value (averageTimeOffset) The offset compensation amount ΔTa can be:
ΔTa=averageTimeOffset-TimeOffsetLast;ΔTa=averageTimeOffset-TimeOffsetLast;
其中,TimeOffsetLast为本地时钟在上一时间周期调整时的时间偏移量。Among them, TimeOffsetLast is the time offset of the local clock when it is adjusted in the previous time period.
举例来说,当LTE系统的同步周期为20秒时,计算每个子帧的时间偏移量,然后选取当前时间周期内的最后若干个中的时间偏移平均值averageTimeOffset;可选地,还可以选取最后64个子帧的时间偏移量中的时间偏移平均值TO1,假设当本地时钟在上一时间周期调整时的时间偏移量为TL1,那么,周期20秒的时间内的偏移补偿量为ΔTa=TO1-TL1。For example, when the synchronization period of the LTE system is 20 seconds, calculate the time offset of each subframe, and then select the time offset average value AverageTimeOffset in the last several of the current time periods; optionally, Select the time offset average value TO1 in the time offset of the last 64 subframes, assuming that the time offset of the local clock when the previous time period is adjusted is TL1, then the offset compensation in the period of 20 seconds The amount is ΔTa=TO1-TL1.
可选地,本实施例中的终端设备根据时间偏移补偿量和当前时间周期内的时长,计算本地时钟的时间修正量,包括:按照以下公式三计算本地时钟 的时间修正量:Optionally, the terminal device in this embodiment calculates the time correction amount of the local clock according to the time offset compensation amount and the duration in the current time period, including: calculating the local clock according to the following formula 3. Time correction:
公式三:
Figure PCTCN2016087310-appb-000013
Formula 3:
Figure PCTCN2016087310-appb-000013
其中,T为当前时间周期的时长;Error为本地时钟的时间修正量;ppb为纳克级1ppb=10-9Where T is the duration of the current time period; Error is the time correction of the local clock; ppb is the nanogram of 1 ppb = 10 -9 .
在本实施例中,终端设备执行本地时钟调整方法,在终端设备在根据时间偏移补偿量和时间周期内的时长,计算本地时钟的时间修正量,并根据该时间修正量进行本地时钟调整之后,还可以包括:判断在一个时间周期内的时间偏移变化量是否大于T1,若是,则再次计算本地时钟误差Error,计算方式可以为:In this embodiment, the terminal device performs a local clock adjustment method, and the terminal device calculates the time correction amount of the local clock according to the time offset compensation amount and the duration of the time period, and performs local clock adjustment according to the time correction amount. The method may further include: determining whether the time offset change amount in a time period is greater than T1, and if yes, calculating the local clock error Error again, the calculation manner may be:
Figure PCTCN2016087310-appb-000014
Figure PCTCN2016087310-appb-000014
其中,ΔTa1为时间偏移变化量;Time为产生时间偏移变化量的时间长度。Where ΔTa1 is the time offset change amount; Time is the time length at which the time offset change amount is generated.
在本实施例中,由于本地时钟的时间补偿量是通过计算时间偏移量计算得出的,从而导致本地时钟可能还存在一定的时间偏差,还会存在一定的时间偏移量,因此,对于这种情况,终端设备还可以通过判断根据计算时间偏移量调整后的本地时钟在稳定后是否存在残留时间偏移,若是,则引入与残留时间偏移反方向的时钟频率偏移对本地时钟进行调整。In this embodiment, since the time compensation amount of the local clock is calculated by calculating the time offset, the local clock may still have a certain time deviation, and there is a certain time offset, therefore, In this case, the terminal device can also determine whether there is a residual time offset after the local clock adjusted according to the calculated time offset is stable, and if so, introduce a clock frequency offset from the residual time offset in the opposite direction to the local clock. Make adjustments.
在实际应用中,判断本地时钟是否稳定的标准为在终端设备与基站进行时钟同步的周期内的时间偏移变化量小于mTs,则说明该本地时钟是稳定的;另外,当同步的周期为20秒,且m=3时,在20秒内所述本地时钟的时间偏移变化量小于3Ts,则进入判断本地时钟在稳定后是否存在残留时间偏移,若是,则引入与残留时间偏移反方向的时钟频率偏移量对本地时钟进行调整。In practical applications, the criterion for determining whether the local clock is stable is that the time offset variation in the period in which the terminal device and the base station perform clock synchronization is less than mTs, indicating that the local clock is stable; in addition, when the synchronization period is 20 Seconds, and when m=3, the time offset of the local clock is less than 3Ts within 20 seconds, then it is judged whether there is a residual time offset after the local clock is stable, and if so, the introduction and residual time offset are reversed. The clock frequency offset of the direction adjusts the local clock.
可选地,本实施例提供的方法为了保证终端设备与基站的同步授时精确度更高,在进行周期性的根据时间修正量调整后,还可以包括:判断在周期内时间偏移变化量是否大于预设值或者是否存在残留的时间偏移,若大于或者存在残留偏移,则继续进行计算补偿调整或者引入反方向的时钟频率偏移调整。Optionally, the method provided in this embodiment may further include: determining whether the time offset change amount in the period is performed after performing the periodic adjustment according to the time correction amount in order to ensure that the synchronization accuracy of the terminal device and the base station is higher. If it is greater than the preset value or whether there is a residual time offset, if it is greater than or there is a residual offset, continue to calculate the compensation adjustment or introduce the clock frequency offset adjustment in the reverse direction.
可选地,本实施例提供的方法中,终端设备本地时钟调整方法在进行完 本地时钟的时间偏移补偿后,还包括:发送随机接入信号,与基站建立连接获取基站下发的时间偏移调整量,并根据该时间偏移调整量对本地时钟进行补偿。Optionally, in the method provided in this embodiment, the local clock adjustment method of the terminal device is completed. After the time offset of the local clock is compensated, the method further includes: transmitting a random access signal, establishing a connection with the base station, acquiring a time offset adjustment amount sent by the base station, and compensating the local clock according to the time offset adjustment amount.
本发明实施例和可选实现方式中的时间偏移调整量是指终端设备与基站之间由于存在距离的因素所产生的时延的时间偏移调整量,而该时间偏移量是通过终端设备与基站发起随机接入时,由基站计算并将计算到的该时间偏移调整量反馈回给终端设备,再由终端设备自己调整,最终实现终端设备与基站时钟的完全授时同步。The time offset adjustment amount in the embodiment and the optional implementation manner of the present invention refers to a time offset adjustment amount of a delay caused by a distance between a terminal device and a base station, and the time offset is through the terminal. When the device and the base station initiate random access, the base station calculates and returns the calculated time offset adjustment amount to the terminal device, and then the terminal device adjusts itself, and finally realizes complete timing synchronization of the terminal device and the base station clock.
图6为本发明实施例提供的又一种终端设备授时方法的流程图。本实施例提供的方法包括以下步骤,即步骤410~步骤440:FIG. 6 is a flowchart of still another method for timing a terminal device according to an embodiment of the present invention. The method provided in this embodiment includes the following steps, that is, steps 410 to 440:
S410,接收基站发送的空口信号;S410. Receive an air interface signal sent by the base station.
S420,从空口信号中获取定时信息;S420: Obtain timing information from the air interface signal.
S430,根据定时信息调整本地时钟,其中,根据定时信息调整本地时钟包括:根据预定的方式计算本地时钟的频率偏移量,并根据频率偏移量调整本地时钟的频率。S430, adjusting the local clock according to the timing information, wherein adjusting the local clock according to the timing information comprises: calculating a frequency offset of the local clock according to a predetermined manner, and adjusting a frequency of the local clock according to the frequency offset.
本实施例中,S410~S430的实现方式,可以参照图4和图5所示实例中的S310~S330的相同,故在此不再赘述。In this embodiment, the implementations of S410 to S430 may be the same as those of S310 to S330 in the example shown in FIG. 4 and FIG. 5, and therefore are not described herein again.
S440,根据调整后的本地时钟对其他终端设备进行授时。S440: Perform timing on other terminal devices according to the adjusted local clock.
本实施例中调整后的本地时钟是指终端设备通过上述步骤S410~S430调整后的本地时钟。在本实施例中,在对其他终端设备进行授时之前,首先要进行如图4和图5所示任一实施例中的本地时钟调整方法,从而消除本地时钟本身存在的频率偏移和时间偏移。The local clock adjusted in this embodiment refers to the local clock adjusted by the terminal device through the foregoing steps S410 to S430. In this embodiment, before the other terminal devices are timed, the local clock adjustment method in any of the embodiments shown in FIG. 4 and FIG. 5 is first performed, thereby eliminating the frequency offset and time offset of the local clock itself. shift.
可选地,在通过如图4和图5所示实施例的本地时钟调整方法消除了本地时钟的时偏后,终端设备还需要发起随机接入,这里的随机接入是将该终端设备与基站建立通信,通过接入基站获取基站下发的随机接入相应信令,并从该信令中获取时间偏移量Ta,该时间偏移量Ta代表了两倍的路程差引入的时延,所以使用Ta/2对时钟作进一步的补偿,使得本地时钟与基站时钟误差保证在一定范围的误差内。 Optionally, after the time offset of the local clock is removed by the local clock adjustment method in the embodiment shown in FIG. 4 and FIG. 5, the terminal device also needs to initiate random access, where the random access is the terminal device The base station establishes communication, acquires the random access corresponding signaling sent by the base station, and obtains a time offset Ta from the signaling, where the time offset Ta represents twice the delay introduced by the path difference. Therefore, the clock is further compensated by Ta/2, so that the local clock and the base station clock error are guaranteed within a certain range of errors.
在本实施例的步骤S440中,在对其他终端设备进行授时需要通过预设的授时协议才能完成授时,可选地,该授时协议可以为1588授时协议,但不限制于该授时协议。In the step S440 of the embodiment, the timing of the other terminal devices is required to be completed by using a preset time-sending protocol. Optionally, the time-sending protocol may be a 1588 timing protocol, but is not limited to the timing protocol.
本发明实施例提供的本地时钟调整方法、授时方法及装置,能够在密封性较高的环境内,既能保证终端设备与基站的精准同步,又能降低终端设备的硬件成本,同时还降低了运营商在进行基站布网时的难度,并不需要考虑因为环境的因素影响信号的接收问题。并且,通过本发明提供的终端设备本地时钟调整方法、授时方法实现时钟同步的授时装置,降低了对基站的维护难度,同时,也不需要在终端设备上配置GPS模块,授时装置也能实现终端设备与基站的授时同步。The local clock adjustment method, the timing method and the device provided by the embodiments of the invention can ensure the accurate synchronization between the terminal device and the base station and reduce the hardware cost of the terminal device in the environment with high sealing performance, and also reduce the hardware cost of the terminal device. The difficulty for the operator to perform the network deployment of the base station does not need to consider the problem of receiving the signal due to environmental factors. Moreover, the time synchronization device for realizing the clock synchronization by the local clock adjustment method and the timing method provided by the present invention reduces the difficulty of maintaining the base station, and does not need to configure the GPS module on the terminal device, and the timing device can also implement the terminal. The device is synchronized with the timing of the base station.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium on a corresponding hardware platform (according to The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例,终端设备通过接收基站发送的空口信号,从该空口信号的中获取定时信息,根据该定时信息计算本地时钟的频率偏移量,并根据计算出的频率偏移量对本地时钟进行调整;相比与相关技术中只调整相位的方 式,通过本发明实施例提供的方法调整后的本地时钟精准度更高;在对本地时钟的频率调整的基础之上,本发明实施例还可以根据调整后的本地时钟计算一个时间周期内的时间偏移量,并进行周期性的调整,从而减少了本地时钟的时间误差,提高了同步授时的精度。除此之外,采用本发明实施例提供的技术方案,在基站或者终端设备上设置本地时间调整装置,使得终端设备可以直接接收基站的空口信号,获取其中的定时信息,通过定时信息来计算调整本地时钟,不需要在基站或者终端设备上配置GPS模块或者其他硬件来接收基站的空口信号,不但降低了授时同步所存在误差,达到授时所需精度,还简化了基站或终端设备的硬件结构和降低了成本。 In the embodiment of the present invention, the terminal device obtains the timing information from the air interface signal by receiving the air interface signal sent by the base station, calculates the frequency offset of the local clock according to the timing information, and calculates the local frequency clock according to the calculated frequency offset. Make adjustments; compared to the only relevant phase in the related art The accuracy of the local clock adjusted by the method provided by the embodiment of the present invention is higher. On the basis of the frequency adjustment of the local clock, the embodiment of the present invention can also calculate the time period according to the adjusted local clock. The time offset is adjusted periodically, which reduces the time error of the local clock and improves the accuracy of synchronous timing. In addition, the local time adjustment device is set on the base station or the terminal device by using the technical solution provided by the embodiment of the present invention, so that the terminal device can directly receive the air interface signal of the base station, obtain the timing information therein, and calculate and adjust the timing information. The local clock does not need to configure the GPS module or other hardware on the base station or the terminal device to receive the air interface signal of the base station, which not only reduces the error of the timing synchronization, achieves the precision required for timing, but also simplifies the hardware structure of the base station or the terminal device. Reduced costs.

Claims (14)

  1. 一种本地时钟调整方法,包括:A local clock adjustment method includes:
    接收基站发送的空口信号;Receiving an air interface signal sent by the base station;
    从所述空口信号中获取定时信息;Obtaining timing information from the air interface signal;
    根据所述定时信息调整本地时钟,其中,所述根据所述定时信息调整本地时钟,包括:根据预定的方式计算所述本地时钟的频率偏移量,并根据所述频率偏移量调整所述本地时钟的频率。Adjusting the local clock according to the timing information, wherein the adjusting the local clock according to the timing information comprises: calculating a frequency offset of the local clock according to a predetermined manner, and adjusting the frequency according to the frequency offset The frequency of the local clock.
  2. 根据权利要求1所述的本地时钟调整方法,其中,所述根据预定的方式计算所述本地时钟的频率偏移量,包括:The local clock adjustment method according to claim 1, wherein the calculating the frequency offset of the local clock according to a predetermined manner comprises:
    根据一个或者多个完整循环前缀的正交频分多址符号采样数据计算时域相关值;Calculating time domain correlation values based on orthogonal frequency division multiple access symbol sample data of one or more complete cyclic prefixes;
    根据所述时域相关值进行反正切计算,得到所述本地时钟的频率偏移量。Performing an arctangent calculation according to the time domain correlation value to obtain a frequency offset of the local clock.
  3. 根据权利要求2所述的本地时钟调整方法,其中,所述根据一个完整循环前缀的正交频分多址符号采样数据计算时域相关值,包括:The local clock adjustment method according to claim 2, wherein the calculating the time domain correlation value according to the orthogonal frequency division multiple access symbol sampling data of one complete cyclic prefix comprises:
    按照公式一对一个完整循环前缀的正交频分多址符号采样数据计算对应的时域相关值;Calculating the corresponding time domain correlation value according to the orthogonal frequency division multiple access symbol sampling data of a complete one-cycle prefix of the formula;
    Figure PCTCN2016087310-appb-100001
    Figure PCTCN2016087310-appb-100001
    其中,c为时域相关值;NCP为循环前缀的采样点数;n为正交频分多址符号的采样索引;a、b为常量,为1,2,3…NCP中的任意整数;N为正交频分多址的采样点数;S(n)*为正交频分多址采样信号的采样数据的共轭;S(n+N)为一个正交频分多址采样数据的(n+N)个采样点的数据;Where c is the time domain correlation value; N CP is the number of sampling points of the cyclic prefix; n is the sampling index of the orthogonal frequency division multiple access symbol; a, b are constants, and are any integers in the 1, 2, 3...N CP N is the number of sampling points of orthogonal frequency division multiple access; S(n)* is the conjugate of the sampling data of the orthogonal frequency division multiple access sampling signal; S(n+N) is an orthogonal frequency division multiple access sampling data Data of (n+N) sample points;
    所述根据多个完整循环前缀的正交频分多址符号采样数据计算时域相关值,包括:The calculating the time domain correlation value according to the orthogonal frequency division multiple access symbol sampling data of the multiple complete cyclic prefixes, including:
    按照所述公式一对每个所述完整循环前缀的正交频分多址符号采样数据计算对应的时域相关值;并对得到的所有时域相关值求平均。 Calculating corresponding time domain correlation values according to a pair of orthogonal frequency division multiple access symbol sample data of each of the complete cyclic prefixes; and averaging all obtained time domain correlation values.
  4. 根据权利要求3所述的本地时钟调整方法,其中,所述根据所述时域相关值进行反正切计算,得到所述本地时钟的频率偏移量,包括:The local clock adjustment method according to claim 3, wherein the performing an arctangent calculation according to the time domain correlation value to obtain a frequency offset of the local clock includes:
    按照公式二对所述时域相关值进行反正切计算,得到所述本地时钟的频率偏移量Δf;Performing an arctangent calculation on the time domain correlation value according to formula 2, obtaining a frequency offset Δf of the local clock;
    Figure PCTCN2016087310-appb-100002
    Figure PCTCN2016087310-appb-100002
    其中,Ts为采样间隔,Ts=1/30720000秒。Where Ts is the sampling interval and Ts=1/30720000 seconds.
  5. 根据权利要求1所述的本地时钟调整方法,其中,所述根据所述定时信息调整本地时钟,还包括:The local clock adjustment method according to claim 1, wherein the adjusting the local clock according to the timing information further includes:
    根据计算出的所述频率偏移量计算终端设备晶振的误差,根据计算出的误差对所述本地时钟的晶振进行补偿调整。Calculating an error of the crystal oscillator of the terminal device according to the calculated frequency offset, and performing compensation adjustment on the crystal oscillator of the local clock according to the calculated error.
  6. 根据权利要求1-5任一项所述的本地时钟调整方法,其中,所述根据所述定时信息调整本地时钟之后,所述方法还包括:The local clock adjustment method according to any one of claims 1 to 5, wherein after the adjusting the local clock according to the timing information, the method further includes:
    对所述本地时钟进行周期性调整;其中,所述对所述本地时钟进行周期性调整,包括:Periodically adjusting the local clock; wherein the periodically adjusting the local clock includes:
    计算当前时间周期内所述本地时钟所积累的时间偏移量;Calculating a time offset accumulated by the local clock in a current time period;
    根据所述时间偏移量计算所述当前时间周期内所述本地时钟的时间偏移补偿量;Calculating a time offset compensation amount of the local clock in the current time period according to the time offset;
    根据所述时间偏移补偿量和所述当前时间周期内的时长,计算所述当前时间周期内所述本地时钟的时间修正量;Calculating a time correction amount of the local clock in the current time period according to the time offset compensation amount and a duration in the current time period;
    根据所述时间修正量对所述本地时钟进行补偿调整。The local clock is compensated and adjusted according to the time correction amount.
  7. 根据权利要求6所述的本地时钟调整方法,其中,所述计算当前时间周期内所述本地时钟所积累的时间偏移量,包括:The local clock adjustment method according to claim 6, wherein the calculating the time offset accumulated by the local clock in the current time period comprises:
    计算所述当前时间周期内的每个子帧的时间偏移量;Calculating a time offset of each subframe in the current time period;
    根据所述当前时间周期内的每个子帧的时间偏移量或部分子帧的时间偏移量求平均值,得到时间偏移平均值。The time offset average value is obtained according to the time offset of each subframe in the current time period or the time offset of the partial subframe.
  8. 根据权利要求7所述的本地时钟调整方法,其中,所述根据所述时间 偏移量计算所述当前时间周期内所述本地时钟的时间偏移补偿量,包括:The local clock adjustment method according to claim 7, wherein said according to said time The offset calculates a time offset compensation amount of the local clock in the current time period, including:
    根据所述时间偏移量平均值计算所述当前时间周期内所述本地时钟的所述时间偏移补偿量ΔTa:Calculating the time offset compensation amount ΔTa of the local clock in the current time period according to the time offset average value:
    ΔTa=averageTimeOffset-TimeOffsetLast;ΔTa=averageTimeOffset-TimeOffsetLast;
    其中,averageTimeOffset为所述本地时钟在所述当前时间周期内的时间偏移平均值,TimeOffsetLast为所述本地时钟在上一时间周期调整时的时间偏移量。The averageTimeOffset is an average value of the time offset of the local clock in the current time period, and TimeOffsetLast is a time offset of the local clock when the previous time period is adjusted.
  9. 根据权利要去8所述的本地时钟调整方法,其中,所述根据所述时间偏移补偿量和所述当前时间周期内的时长,计算所述本地时钟的时间修正量,包括:The local clock adjustment method according to claim 8, wherein the calculating the time correction amount of the local clock according to the time offset compensation amount and the duration in the current time period comprises:
    按照公式三计算所述本地时钟的时间修正量;Calculating the time correction amount of the local clock according to formula 3;
    Figure PCTCN2016087310-appb-100003
    Figure PCTCN2016087310-appb-100003
    其中,T为所述当前时间周期的时长;Error为所述本地时钟的时间修正量;ppb为纳克级1ppb=10-9Where T is the duration of the current time period; Error is the time correction amount of the local clock; ppb is the nanogram level of 1 ppb=10 -9 .
  10. 一种终端设备授时方法,包括:A terminal device timing method includes:
    终端设备根据权利要求1至9中任一项所述的本地时钟调整方法调整本地时钟;The terminal device adjusts the local clock according to the local clock adjustment method according to any one of claims 1 to 9;
    所述终端设备根据调整后的本地时钟对其他终端设备进行授时。The terminal device performs timing for other terminal devices according to the adjusted local clock.
  11. 一种本地时钟调整装置,包括:A local clock adjustment device includes:
    接收模块,设置为:接收基站发送的空口信号;The receiving module is configured to: receive the air interface signal sent by the base station;
    获取模块,设置为:从所述接收模块接收的所述空口信号中获取定时信息;An acquiring module, configured to: obtain timing information from the air interface signal received by the receiving module;
    调整模块,设置为:根据所述获取模块获取的所述定时信息调整本地时钟,其中,调整模块是设置为:根据预定的方式计算所述本地时钟的频率偏移量,并根据所述频率偏移量调整所述本地时钟的频率。The adjusting module is configured to: adjust the local clock according to the timing information acquired by the acquiring module, where the adjusting module is configured to: calculate a frequency offset of the local clock according to a predetermined manner, and according to the frequency offset The shift adjusts the frequency of the local clock.
  12. 根据权利要求11所述的本地时钟调整装置,其中,所述调整模块包 括:The local clock adjusting device according to claim 11, wherein said adjustment module package include:
    时域相关值计算单元,设置为:根据一个或者多个完整循环前缀的正交频分多址符号采样数据计算时域相关值;a time domain correlation value calculation unit, configured to: calculate a time domain correlation value according to orthogonal frequency division multiple access symbol sample data of one or more complete cyclic prefixes;
    频率偏移量计算单元,设置为:根据所述时域相关值计算单元计算得到的所述时域相关值进行反正切计算,得到所述本地时钟的频率偏移量;The frequency offset calculation unit is configured to perform an arctangent calculation according to the time domain correlation value calculated by the time domain correlation value calculation unit, to obtain a frequency offset of the local clock;
    频率调整单元,设置为:根据所述频率偏移量计算单元计算得到的所述本地时钟的频率偏移量调整所述本地时钟的频率。The frequency adjustment unit is configured to adjust the frequency of the local clock according to the frequency offset of the local clock calculated by the frequency offset calculation unit.
  13. 根据权利要求11或12所述的本地时钟调整装置,其中,所述调整模块还包括:The local clock adjustment apparatus according to claim 11 or 12, wherein the adjustment module further comprises:
    时间偏移量计算单元,设置为:计算当前时间周期内所述本地时钟所积累的时间偏移量;a time offset calculation unit configured to: calculate a time offset accumulated by the local clock in a current time period;
    时间偏移补偿量计算单元,设置为:根据所述时间偏移量计算单元计算得到的所述时间偏移量计算所述当前时间周期内所述本地时钟的时间偏移补偿量;The time offset compensation amount calculation unit is configured to: calculate a time offset compensation amount of the local clock in the current time period according to the time offset calculated by the time offset calculation unit;
    时间修正量计算单元,设置为:根据所述当前时间周期内的时长和所述时间偏移补偿量计算单元计算得到的所述时间偏移补偿量,计算所述当前时间周期内所述本地时钟的时间修正量;The time correction amount calculation unit is configured to: calculate the local clock in the current time period according to the duration in the current time period and the time offset compensation amount calculated by the time offset compensation amount calculation unit Time correction amount;
    时间调整单元,设置为:根据所述时间修正量计算单元计算得到的所述时间修正量对所述本地时钟进行补偿调整。The time adjustment unit is configured to: perform compensation adjustment on the local clock according to the time correction amount calculated by the time correction amount calculation unit.
  14. 一种授时装置,包括:如权利要求11至13中任一项所述的本地时钟调整装置,以及授时模块;A timing device comprising: the local clock adjustment device according to any one of claims 11 to 13, and a timing module;
    所述本地时钟调整装置,设置为:接收基站发送的空口信号,从所述空口信号中获取定时信息,根据所述定时信息调整本地时钟,其中,根据所述定时信息调整本地时钟,包括:根据预定的方式计算所述本地时钟的频率偏移量,并根据所述频率偏移量调整所述本地时钟的频率;The local clock adjustment device is configured to: receive an air interface signal sent by the base station, obtain timing information from the air interface signal, and adjust a local clock according to the timing information, where the local clock is adjusted according to the timing information, including: Calculating a frequency offset of the local clock in a predetermined manner, and adjusting a frequency of the local clock according to the frequency offset;
    所述授时模块,设置为:根据所述本地时钟调整装置调整后的时钟对其他终端设备进行授时。 The timing module is configured to: time the other terminal devices according to the clock adjusted by the local clock adjustment device.
PCT/CN2016/087310 2015-10-30 2016-06-27 Local clock adjustment method, and time service method and device WO2017071270A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510724707.1A CN106656386B (en) 2015-10-30 2015-10-30 A kind of local clock method of adjustment, time service method and device
CN201510724707.1 2015-10-30

Publications (1)

Publication Number Publication Date
WO2017071270A1 true WO2017071270A1 (en) 2017-05-04

Family

ID=58629808

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/087310 WO2017071270A1 (en) 2015-10-30 2016-06-27 Local clock adjustment method, and time service method and device

Country Status (2)

Country Link
CN (1) CN106656386B (en)
WO (1) WO2017071270A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113866799A (en) * 2021-12-01 2021-12-31 智道网联科技(北京)有限公司 Dual-mode time service method and device and electronic equipment
CN115134903A (en) * 2022-06-27 2022-09-30 国网青海省电力公司信息通信公司 Clock disciplining method, device, processor and terminal equipment
WO2022242349A1 (en) * 2021-05-20 2022-11-24 中兴通讯股份有限公司 Time signal compensation method, wireless time signal terminal, electronic device, and storage medium

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108964819B (en) * 2017-05-19 2019-11-26 华为技术有限公司 A kind of clock adjustment, clock jitter calculation method, equipment and system
CN109429325B (en) * 2017-08-24 2021-03-26 阿里巴巴集团控股有限公司 Data transmission method, device, base station and server
CN110536405B (en) * 2018-05-25 2021-08-03 华为技术有限公司 Synchronization method and access point
CN110944379B (en) * 2018-09-25 2022-03-01 维沃移动通信有限公司 Method and apparatus for time alignment
US10887038B2 (en) * 2018-09-28 2021-01-05 Samsung Electronics Co., Ltd. GNSS-based multi-modal clock correction
CN112533280A (en) * 2019-09-18 2021-03-19 中兴通讯股份有限公司 Clock synchronization method, device, terminal and storage medium
CN111130676B (en) * 2019-12-02 2022-06-28 上海赫千电子科技有限公司 Time synchronization correction method and device applied to master clock and slave clock
CN111711948B (en) * 2020-06-11 2022-05-10 中国电力科学研究院有限公司 Method and system for acquiring high-precision time from 5G base station through air interface
CN113541913B (en) * 2020-11-05 2022-08-02 中兴通讯股份有限公司 Clock calibration method, clock calibration device, electronic device, and readable medium
CN112600637B (en) * 2020-12-03 2023-12-05 深圳思凯微电子有限公司 Wireless broadcast time service calibration method, device and computer readable storage medium
CN113225803A (en) * 2021-03-17 2021-08-06 中煤科工集团沈阳研究院有限公司 Wireless clock synchronization method and device for mining 5G base station
CN113568300B (en) * 2021-09-22 2022-01-04 深圳心派科技有限公司 GPS time service method, device, electronic equipment and storage medium
CN114114892B (en) * 2021-11-29 2023-07-25 成都天奥电子股份有限公司 Method for generating trusted time

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1175171A (en) * 1997-07-24 1998-03-04 北京信威通信技术有限公司 Method for device of carrier exalting and compensating in frequency spreading communication system
CN103401583A (en) * 2013-06-25 2013-11-20 北京溢美四方软件技术有限公司 Clock recovery and calibration method based on identification of pseudo-random sequence characteristics
WO2014018333A2 (en) * 2012-07-23 2014-01-30 Interdigital Patent Holdings, Inc. Methods and apparatus for frequency synchronization, power control, and cell configuration for ul-only operation in dss bands

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369882B (en) * 2007-08-17 2011-02-09 电子科技大学 Frequency synchronization method based on pre-correction of sending terminal
US8451740B2 (en) * 2008-04-01 2013-05-28 Qualcomm Incorporated Compensating for drifts occurring during sleep times in access terminals
US10111111B2 (en) * 2009-11-19 2018-10-23 Qualcomm Incorporated Per-cell timing and/or frequency acquisition and their use on channel estimation in wireless networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1175171A (en) * 1997-07-24 1998-03-04 北京信威通信技术有限公司 Method for device of carrier exalting and compensating in frequency spreading communication system
WO2014018333A2 (en) * 2012-07-23 2014-01-30 Interdigital Patent Holdings, Inc. Methods and apparatus for frequency synchronization, power control, and cell configuration for ul-only operation in dss bands
CN103401583A (en) * 2013-06-25 2013-11-20 北京溢美四方软件技术有限公司 Clock recovery and calibration method based on identification of pseudo-random sequence characteristics

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022242349A1 (en) * 2021-05-20 2022-11-24 中兴通讯股份有限公司 Time signal compensation method, wireless time signal terminal, electronic device, and storage medium
CN113866799A (en) * 2021-12-01 2021-12-31 智道网联科技(北京)有限公司 Dual-mode time service method and device and electronic equipment
CN115134903A (en) * 2022-06-27 2022-09-30 国网青海省电力公司信息通信公司 Clock disciplining method, device, processor and terminal equipment
CN115134903B (en) * 2022-06-27 2023-11-10 国网青海省电力公司信息通信公司 Clock taming method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106656386B (en) 2019-08-27
CN106656386A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
WO2017071270A1 (en) Local clock adjustment method, and time service method and device
US10594470B2 (en) Systems and methods of clock synchronization between devices on a network
CN105472723B (en) Synchronization apparatus and method
US10505653B1 (en) Methods and apparatus for fine timing measurement with frequency domain processing
CN110445739B (en) Method and device for compensating sampling frequency offset
US9167545B2 (en) Receiver, method of calculating time difference, and program
JP2010528495A (en) Method for determining time variation in a mobile terminal
EP3010168B1 (en) Frequency calibration method
JP2019507554A (en) Method for frequency correction of oscillator of sensor node of wireless sensor network
JP2024084752A (en) Systems and methods for multicarrier phase-based localization
US11728943B2 (en) Methods and apparatuses for communicating position reference signals
US20090232051A1 (en) Method and system for the extension of frequency offset estimation range based on correlation of complex sequences
CN113132284B (en) Carrier phase tracking method and device
Overdick et al. A software-defined radio implementation of timestamp-free network synchronization
US12047894B2 (en) Rapid low-complexity synchronization and doppler correction in 5G/6G
EP3119139A1 (en) Phase synchronization method and device of asynchronous time division duplex system
CN104780602A (en) Clock self-synchronizing method in wireless communication network
EP2159927A1 (en) Method and system for the extension of frequency offset range estimation based on correlation of complex sequences
CN113890667A (en) Reverse integral filtering round-trip time correction method and system
US20230239817A1 (en) Fronthaul network unit and method therein for synchronization over a fronthaul network
US20110150160A1 (en) Methods and systems to synchronize network nodes
CN115361036A (en) Signal processing method, device and storage medium
KR20150139032A (en) Method and apparatus for generating sampling frequency
JP2021057696A (en) Radio communication device and time synchronization program
CN114745775A (en) Frequency offset estimation method and device in wireless communication system

Legal Events

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

Ref document number: 16858713

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16858713

Country of ref document: EP

Kind code of ref document: A1