[go: up one dir, main page]

CN108809438B - A time difference compensation method and device - Google Patents

A time difference compensation method and device Download PDF

Info

Publication number
CN108809438B
CN108809438B CN201710289414.4A CN201710289414A CN108809438B CN 108809438 B CN108809438 B CN 108809438B CN 201710289414 A CN201710289414 A CN 201710289414A CN 108809438 B CN108809438 B CN 108809438B
Authority
CN
China
Prior art keywords
signal
correlation
value
pass filter
passing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710289414.4A
Other languages
Chinese (zh)
Other versions
CN108809438A (en
Inventor
李立文
黄源良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanechips Technology Co Ltd
Original Assignee
Sanechips Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanechips Technology Co Ltd filed Critical Sanechips Technology Co Ltd
Priority to CN201710289414.4A priority Critical patent/CN108809438B/en
Publication of CN108809438A publication Critical patent/CN108809438A/en
Application granted granted Critical
Publication of CN108809438B publication Critical patent/CN108809438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/60Receivers
    • H04B10/61Coherent receivers

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention discloses a time difference compensation method, which comprises the steps of obtaining a first signal and a second signal, and determining a forward interpolation result and a backward interpolation result of the second signal; determining a first correlation of a first signal and a second signal, a second correlation of a differential value of the first signal and a differential value of the second signal, a third correlation of a differential value of the first signal and a differential value of a forward interpolation result of the second signal, and a fourth correlation of a differential value of the first signal and a differential value of a backward interpolation result of the second signal, respectively; adjusting the time difference compensation value according to a preset adjustment rule and a first difference value of the second correlation and the first correlation, and/or a second difference value of the third correlation and the first correlation, and/or a third difference value of the fourth correlation and the first correlation; the time difference compensation value is used for adjusting the time difference of the first signal and the second signal. The invention also discloses a time difference compensation device.

Description

一种时差补偿方法和装置A time difference compensation method and device

技术领域technical field

本发明涉及光通信技术领域,尤其涉及一种时差补偿方法和装置。The present invention relates to the technical field of optical communication, and in particular, to a time difference compensation method and device.

背景技术Background technique

高速光通信网络环境中,通常采用相干光接收机进行光电信号的接收和处理;相干光接收机将收到的光信号与本地激光器输出的光信号混频,并分为X偏正面同相信号(XI)、X偏正面正交信号(XQ)、Y偏正面同相信号(YI)和Y偏正面正交信号(YQ)四路,然后四路信号分别进行光电转换(O/E,Optical to electrical)、功率放大(TIA,Trans-Impedance Amplifier)和模数转换(ADC,Analog-to-Digital Convert),最后进入数字信号处理器(DSP,Digital Signal Processor)。In the high-speed optical communication network environment, the coherent optical receiver is usually used to receive and process the photoelectric signal; the coherent optical receiver mixes the received optical signal with the optical signal output by the local laser, and divides it into an X-biased positive in-phase signal. (XI), X partial front quadrature signal (XQ), Y partial front in-phase signal (YI) and Y partial front quadrature signal (YQ), and then the four signals are respectively photoelectrically converted (O/E, Optical to electrical), power amplification (TIA, Trans-Impedance Amplifier) and analog-to-digital conversion (ADC, Analog-to-Digital Convert), and finally into the digital signal processor (DSP, Digital Signal Processor).

理想情况下,XI和XQ、YI和YQ之间都应该是时间同步的;但由于信号路径中器件的差异,同步性无法保证,这种非线性畸变对相干光接收机性能影响很大。Ideally, XI and XQ, YI and YQ should be time-synchronized; however, due to the difference of devices in the signal path, the synchronization cannot be guaranteed, and this nonlinear distortion has a great impact on the performance of coherent optical receivers.

传统相干光接收机的解决方法是:在相干光接收机前端安装时进行定标,测出同相信号和正交(IQ)信号之间的时差,并在ADC之后设置时差补偿值进行时差补偿。这种方法在相干光接收机刚开始使用时效果较好,但随着相干光接收机器件的老化、或者环境的变化,IQ信号之间的时差会动态变化,定标时设置的时差补偿值产生效果会渐渐变差。The solution to the traditional coherent optical receiver is to calibrate the front-end installation of the coherent optical receiver, measure the time difference between the in-phase signal and the quadrature (IQ) signal, and set the time difference compensation value after the ADC for time difference compensation. . This method works well when the coherent optical receiver is first used, but with the aging of the coherent optical receiver device or the change of the environment, the time difference between the IQ signals will change dynamically. The time difference compensation value set during calibration The effect will gradually deteriorate.

因此,如何获取IQ信号的时差,调整时差补偿值,提升IQ信号时差补偿效果,是亟待解决的问题。Therefore, how to obtain the time difference of the IQ signal, adjust the time difference compensation value, and improve the effect of the time difference compensation of the IQ signal is an urgent problem to be solved.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例期望提供一种时差补偿方法和装置,能获取IQ信号的时差,调整时差补偿值,提升时差补偿效果。In view of this, the embodiments of the present invention are expected to provide a time difference compensation method and apparatus, which can acquire the time difference of an IQ signal, adjust the time difference compensation value, and improve the time difference compensation effect.

为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, the technical scheme of the present invention is achieved in this way:

本发明实施例提供了一种时差补偿调整方法,所述方法包括:An embodiment of the present invention provides a time difference compensation adjustment method, the method includes:

获取第一信号和第二信号,并确定所述第二信号的前向插值结果和后向插值结果;acquiring a first signal and a second signal, and determining a forward interpolation result and a backward interpolation result of the second signal;

分别确定第一信号和第二信号的第一相关性、所述第一信号的差分值与所述第二信号的差分值的第二相关性、所述第一信号的差分值与所述第二信号前向插值结果的差分值的第三相关性、以及所述第一信号的差分值与所述第二信号后向插值结果的差分值的第四相关性;Determine the first correlation between the first signal and the second signal, the second correlation between the difference value of the first signal and the difference value of the second signal, and the difference value of the first signal and the first signal. The third correlation of the difference value of the forward interpolation result of the two signals, and the fourth correlation of the difference value of the first signal and the difference value of the backward interpolation result of the second signal;

根据第二相关性与第一相关性的第一差值、和/或第三相关性与第一相关性的第二差值、和/或第四相关性与第一相关性的第三差值,依照预设调整规则,调整时差补偿值;所述时差补偿值用于调整所述第一信号和第二信号的时差。According to the first difference between the second correlation and the first correlation, and/or the second difference between the third correlation and the first correlation, and/or the third difference between the fourth correlation and the first correlation value, adjust the time difference compensation value according to the preset adjustment rule; the time difference compensation value is used to adjust the time difference between the first signal and the second signal.

上述方案中,所述分别确定第一信号和第二信号的第一相关性、所述第一信号的差分值与所述第二信号的差分值的第二相关性、所述第一信号的差分值与所述第二信号前向插值结果的差分值的第三相关性、以及所述第一信号的差分值与所述第二信号后向插值结果的差分值的第四相关性,包括:In the above solution, the first correlation between the first signal and the second signal, the second correlation between the differential value of the first signal and the differential value of the second signal, the A third correlation of the difference value with the difference value of the result of the forward interpolation of the second signal, and a fourth correlation of the difference value of the first signal with the difference value of the result of the backward interpolation of the second signal, including :

将所述第一信号经过低通滤波器后和第二信号经过低通滤波器后的相关性,确定为第一相关性;Determining the correlation between the first signal after passing through the low-pass filter and the second signal after passing through the low-pass filter as the first correlation;

将所述第一信号经过高通滤波器后与所述第二信号经过高通滤波器后的相关性,确定为第二相关性;Determining the correlation between the first signal passing through the high-pass filter and the second signal passing through the high-pass filter as the second correlation;

将所述第一信号经过高通滤波器后与所述第二信号前向插值结果经过高通滤波器后相关性,确定为第三相关性;The correlation between the first signal after passing through the high-pass filter and the forward interpolation result of the second signal after passing through the high-pass filter is determined as the third correlation;

将所述第一信号经过高通滤波器后与所述第二信号后向插值结果经过高通滤波器后的相关性,确定为第四相关性。The correlation between the high-pass filter of the first signal and the back-interpolation result of the second signal after the high-pass filter is determined as the fourth correlation.

上述方案中,所述分别确定第一信号和第二信号的第一相关性、所述第一信号的差分值与所述第二信号的差分值的第二相关性、所述第一信号的差分值与所述第二信号前向插值结果的差分值的第三相关性、以及所述第一信号的差分值与所述第二信号后向插值结果的差分值的第四相关性,包括:In the above solution, the first correlation between the first signal and the second signal, the second correlation between the differential value of the first signal and the differential value of the second signal, the A third correlation of the difference value with the difference value of the result of the forward interpolation of the second signal, and a fourth correlation of the difference value of the first signal with the difference value of the result of the backward interpolation of the second signal, including :

将预设累加次数的所述第一信号经过低通滤波器后和第二信号经过低通滤波器后的相关性的平均值,确定为第一相关性;Determining the average value of the correlations between the preset accumulation times of the first signal after passing through the low-pass filter and the second signal passing through the low-pass filter as the first correlation;

将预设累加次数的所述第一信号经过高通滤波器后与所述第二信号经过高通滤波器后的相关性的平均值,确定为第二相关性;Determining the average value of the correlation between the first signal of the preset number of accumulations after passing through the high-pass filter and the second signal after passing through the high-pass filter, as the second correlation;

将预设累加次数的所述第一信号经过高通滤波器后与所述第二信号前向插值结果经过高通滤波器后的相关性的平均值,确定为第三相关性;Determine the third correlation as the average value of the correlation between the first signal of the preset number of accumulations after passing through the high-pass filter and the forward interpolation result of the second signal after passing through the high-pass filter;

将预设累加次数的所述第一信号经过高通滤波器后与所述第二信号后向插值结果经过高通滤波器后的相关性的平均值,确定为第四相关性。The fourth correlation is determined as the average value of the correlation between the first signal of the preset accumulation times after passing through the high-pass filter and the backward interpolation result of the second signal passing through the high-pass filter.

上述方案中,所述依照预设调整规则,调整时差补偿值,包括:In the above solution, the adjustment of the time difference compensation value according to the preset adjustment rule includes:

当所述第一差值大于第一预设阈值,且所述第二差值大于第二预设阈值,所述第三差值小于所述第二阈值时,增加当前时差补偿值;When the first difference is greater than a first preset threshold, the second difference is greater than a second preset threshold, and the third difference is less than the second threshold, increasing the current time difference compensation value;

当所述第一差值大于第一预设阈值,且所述第二差值小于所述第二预设阈值,所述第三差值大于所述第二预设阈值时,减小当前时差补偿值。When the first difference is greater than the first preset threshold, the second difference is less than the second preset threshold, and the third difference is greater than the second preset threshold, reduce the current time difference compensation value.

上述方案中,所述确定所述第二信号的前向插值结果和后向插值结果,包括:In the above solution, the determining of the forward interpolation result and the backward interpolation result of the second signal includes:

取小于所述第二信号所属ADC采样周期的时间间隔,作为插值步长,对所述第二信号进行前向插值处理和后向插值处理。A time interval smaller than the ADC sampling period to which the second signal belongs is taken as an interpolation step size, and forward interpolation processing and backward interpolation processing are performed on the second signal.

上述方案中,所述第一信号和第二信号分别为同一偏振面的同相信号和正交信号。In the above solution, the first signal and the second signal are in-phase signals and quadrature signals of the same polarization plane, respectively.

本发明实施例还提供了一种时差补偿装置,所述装置包括:第一确定模块、第二确定模块和调整模块;其中,An embodiment of the present invention further provides a time difference compensation device, the device includes: a first determination module, a second determination module, and an adjustment module; wherein,

所述第一确定模块,用于获取第一信号和第二信号,并确定所述第二信号的前向插值结果和后向插值结果;The first determining module is configured to acquire a first signal and a second signal, and determine a forward interpolation result and a backward interpolation result of the second signal;

所述第二确定模块,用于分别确定第一信号和第二信号的第一相关性、所述第一信号的差分值与所述第二信号的差分值的第二相关性、所述第一信号的差分值与所述第二信号前向插值结果的差分值的第三相关性、以及所述第一信号的差分值与所述第二信号后向插值结果的差分值的第四相关性;The second determining module is configured to respectively determine the first correlation between the first signal and the second signal, the second correlation between the difference value of the first signal and the difference value of the second signal, the first correlation The third correlation between the difference value of a signal and the difference value of the result of forward interpolation of the second signal, and the fourth correlation between the difference value of the first signal and the difference value of the result of backward interpolation of the second signal sex;

所述调整模块,用于根据第二相关性与第一相关性的第一差值、和/或第三相关性与第一相关性的第二差值、和/或第四相关性与第一相关性的第三差值,依照预设调整规则,调整时差补偿值;所述时差补偿值用于调整所述第一信号和第二信号的时差。The adjustment module is configured to adjust according to the first difference between the second correlation and the first correlation, and/or the second difference between the third correlation and the first correlation, and/or the fourth correlation and the first correlation. For the third difference value of the correlation, the time difference compensation value is adjusted according to a preset adjustment rule; the time difference compensation value is used to adjust the time difference between the first signal and the second signal.

上述方案中,所述第二确定模块,具体用于:In the above scheme, the second determination module is specifically used for:

将所述第一信号经过低通滤波器后和第二信号经过低通滤波器后的相关性,确定为第一相关性;Determining the correlation between the first signal after passing through the low-pass filter and the second signal after passing through the low-pass filter as the first correlation;

将所述第一信号经过高通滤波器后与所述第二信号经过高通滤波器后的相关性,确定为第二相关性;Determining the correlation between the first signal passing through the high-pass filter and the second signal passing through the high-pass filter as the second correlation;

将所述第一信号经过高通滤波器后与所述第二信号前向插值结果经过高通滤波器后相关性,确定为第三相关性;The correlation between the first signal after passing through the high-pass filter and the forward interpolation result of the second signal after passing through the high-pass filter is determined as the third correlation;

将所述第一信号经过高通滤波器后与所述第二信号后向插值结果经过高通滤波器后的相关性,确定为第四相关性。The correlation between the high-pass filter of the first signal and the back-interpolation result of the second signal after the high-pass filter is determined as the fourth correlation.

上述方案中,所述第二确定模块,具体用于:将预设累加次数的所述第一信号经过低通滤波器后和第二信号经过低通滤波器后的相关性的平均值,确定为第一相关性;In the above solution, the second determination module is specifically configured to: determine the average value of the correlation between the first signal of the preset accumulation times after passing through the low-pass filter and the second signal after passing through the low-pass filter. is the first correlation;

将预设累加次数的所述第一信号经过高通滤波器后与所述第二信号经过高通滤波器后的相关性的平均值,确定为第二相关性;Determining the average value of the correlation between the first signal of the preset number of accumulations after passing through the high-pass filter and the second signal after passing through the high-pass filter, as the second correlation;

将预设累加次数的所述第一信号经过高通滤波器后与所述第二信号前向插值结果经过高通滤波器后的相关性的平均值,确定为第三相关性;Determine the third correlation as the average value of the correlation between the first signal of the preset number of accumulations after passing through the high-pass filter and the forward interpolation result of the second signal after passing through the high-pass filter;

将预设累加次数的所述第一信号经过高通滤波器后与所述第二信号后向插值结果经过高通滤波器后的相关性的平均值,确定为第四相关性。The fourth correlation is determined as the average value of the correlation between the first signal of the preset accumulation times after passing through the high-pass filter and the backward interpolation result of the second signal passing through the high-pass filter.

上述方案中,所述调整模块,具体用于:In the above scheme, the adjustment module is specifically used for:

当所述第一差值大于第一预设阈值,且所述第二差值大于第二预设阈值,所述第三差值小于所述第二阈值时,增加当前时差补偿值;When the first difference is greater than a first preset threshold, the second difference is greater than a second preset threshold, and the third difference is less than the second threshold, increasing the current time difference compensation value;

当所述第一差值大于第一预设阈值,且所述第二差值小于所述第二预设阈值,所述第三差值大于所述第二预设阈值时,减小当前时差补偿值。When the first difference is greater than the first preset threshold, the second difference is less than the second preset threshold, and the third difference is greater than the second preset threshold, reduce the current time difference compensation value.

上述方案中,所述第一确定模块,具体用于:In the above scheme, the first determination module is specifically used for:

取小于所述第二信号所属模数转换ADC采样周期的时间间隔,作为插值步长,对所述第二信号进行前向插值处理和后向插值处理。A time interval smaller than the sampling period of the analog-to-digital conversion ADC to which the second signal belongs is taken as an interpolation step size, and forward interpolation processing and backward interpolation processing are performed on the second signal.

上述方案中,所述第一信号和第二信号分别为同一偏振面的同相信号和正交信号。In the above solution, the first signal and the second signal are in-phase signals and quadrature signals of the same polarization plane, respectively.

本发明实施例所提供时差补偿方法和装置,获取第一信号和第二信号,并确定所述第二信号的前向插值结果和后向插值结果;分别确定第一信号和第二信号的第一相关性、所述第一信号的差分值与所述第二信号的差分值的第二相关性、所述第一信号的差分值与所述第二信号前向插值结果的差分值的第三相关性、以及所述第一信号的差分值与所述第二信号后向插值结果的差分值的第四相关性;根据第二相关性与第一相关性的第一差值、和/或第三相关性与第一相关性的第二差值、和/或第四相关性与第一相关性的第三差值,依照预设调整规则,调整时差补偿值;所述时差补偿值用于调整所述第一信号和第二信号的时差;如此,通过第一信号和第二信号,确定第一信号和第二信号的时差相关参数,根据预设的规则,对时差补偿值进行调整,实现了实时时差补偿,提升时差补偿效果。The time difference compensation method and device provided by the embodiments of the present invention acquire a first signal and a second signal, and determine a forward interpolation result and a backward interpolation result of the second signal; determine the first signal and the second signal respectively. a correlation, a second correlation between the difference value of the first signal and the difference value of the second signal, the first correlation between the difference value of the first signal and the difference value of the forward interpolation result of the second signal Three correlations, and a fourth correlation between the differential value of the first signal and the differential value of the backward interpolation result of the second signal; according to the first difference between the second correlation and the first correlation, and/ Or the second difference between the third correlation and the first correlation, and/or the third difference between the fourth correlation and the first correlation, according to the preset adjustment rule, adjust the time difference compensation value; the time difference compensation value is used to adjust the time difference between the first signal and the second signal; in this way, through the first signal and the second signal, the time difference related parameters of the first signal and the second signal are determined, and the time difference compensation value is performed according to the preset rule. Adjustment to realize real-time time difference compensation and improve the effect of time difference compensation.

附图说明Description of drawings

图1为本发明实施例时差补偿方法的流程示意图;1 is a schematic flowchart of a time difference compensation method according to an embodiment of the present invention;

图2为本发明实施例现有相干光接收机前端的组成结构示意图;FIG. 2 is a schematic diagram of the composition and structure of an existing coherent optical receiver front end according to an embodiment of the present invention;

图3为本发明实施例时差补偿调整装置的设置位置示意图;3 is a schematic diagram of the setting position of the time difference compensation adjustment device according to the embodiment of the present invention;

图4为本发明实施例相关性差值测量逻辑结构示意图;4 is a schematic diagram of a logical structure of correlation difference measurement according to an embodiment of the present invention;

图5为本发明实施例时差补偿装置的组成结构示意图。FIG. 5 is a schematic structural diagram of a time difference compensation device according to an embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例中,获取第一信号和第二信号,并确定所述第二信号的前向插值结果和后向插值结果;分别确定第一信号和第二信号的第一相关性、所述第一信号的差分值与所述第二信号的差分值的第二相关性、所述第一信号的差分值与所述第二信号前向插值结果的差分值的第三相关性、以及所述第一信号的差分值与所述第二信号后向插值结果的差分值的第四相关性;根据第二相关性与第一相关性的第一差值、和/或第三相关性与第一相关性的第二差值、和/或第四相关性与第一相关性的第三差值,依照预设调整规则,调整时差补偿值;所述时差补偿值用于调整所述第一信号和第二信号的时差。In this embodiment of the present invention, a first signal and a second signal are acquired, and a forward interpolation result and a backward interpolation result of the second signal are determined; the first correlation of the first signal and the second signal, the The second correlation between the differential value of the first signal and the differential value of the second signal, the third correlation between the differential value of the first signal and the differential value of the forward interpolation result of the second signal, and the the fourth correlation between the differential value of the first signal and the differential value of the backward interpolation result of the second signal; according to the first difference between the second correlation and the first correlation, and/or the third correlation and The second difference value of the first correlation and/or the third difference value between the fourth correlation and the first correlation, according to a preset adjustment rule, adjust the time difference compensation value; the time difference compensation value is used to adjust the time difference compensation value. The time difference between the first signal and the second signal.

下面结合实施例对本发明再作进一步详细的说明。The present invention will be described in further detail below in conjunction with the embodiments.

本发明实施例提供的时差补偿方法,如图1所示,所述方法包括:The time difference compensation method provided by the embodiment of the present invention, as shown in FIG. 1 , includes:

步骤101:获取第一信号和第二信号,并确定所述第二信号的前向插值结果和后向插值结果;Step 101: Acquire a first signal and a second signal, and determine a forward interpolation result and a backward interpolation result of the second signal;

现有相干光接收机前端的框图如图2所示;相干光接收机收到的光信号与本地激光器输出的光信号混频,分为XI、XQ、YI、YQ四路,然后分别进行O/E、TIA和ADC,最后进入DSP;传统时差补偿可以由DSP进行;根据在相干光接收机前端安装时进行定标,测出IQ信号之间的时差;可由维护人员根据该时差在DSP中设定时差补偿值,由DSP进行补偿;The block diagram of the front end of the existing coherent optical receiver is shown in Figure 2; the optical signal received by the coherent optical receiver is mixed with the optical signal output by the local laser, and divided into XI, XQ, YI, and YQ four channels, and then O /E, TIA and ADC, and finally enter the DSP; the traditional time difference compensation can be performed by the DSP; according to the calibration at the front-end installation of the coherent optical receiver, the time difference between the IQ signals can be measured; the maintenance personnel can calculate the time difference in the DSP according to the time difference Set the time difference compensation value, which is compensated by DSP;

这里,可以获取经过传统时差补偿后的第一信号和第二信号,其中,所述第一信号和第二信号分别为同一偏振面的同相(I)信号和正交(Q)信号;可以通过在IQ信号通信线路上连接旁路线路等获取所述第一信号和第二信号;Here, the first signal and the second signal after the traditional time difference compensation can be obtained, wherein the first signal and the second signal are the in-phase (I) signal and the quadrature (Q) signal of the same polarization plane respectively; Connect a bypass line or the like on the IQ signal communication line to obtain the first signal and the second signal;

获取所述第一信号和第二信号后,可以对所述第二信号,即Q信号进行插值处理;可以由DSP中的运算单元进行数据处理;假设Q信号的函数为Q(t),其中t为时间变量,首先,可以将Q(t)数据进行前向插值,得到第二信号的前向插值数据Qpre=Q(t-dt),再将输入的Q(t)数据进行后向插值,得到第二信号的后向插值数据得到Qpst=Q(t+dt)。After acquiring the first signal and the second signal, interpolation processing can be performed on the second signal, that is, the Q signal; data processing can be performed by the arithmetic unit in the DSP; it is assumed that the function of the Q signal is Q(t), where t is a time variable. First, the Q(t) data can be forward-interpolated to obtain the forward-interpolated data of the second signal Q pre =Q(t-dt), and then the input Q(t) data can be backward-interpolated. Interpolate to obtain backward interpolation data of the second signal to obtain Q pst =Q(t+dt).

进一步的,差值步长dt可以取小于ADC采样周期Ts的固定值,一般可以取Ts/3。Further, the difference step size dt may take a fixed value smaller than the ADC sampling period Ts, generally Ts/3.

实际应用中,可以采用拉格朗日插值法等方法进行第二信号的插值计算。In practical applications, methods such as Lagrangian interpolation method may be used to perform the interpolation calculation of the second signal.

步骤102:分别确定第一信号和第二信号的第一相关性、所述第一信号的差分值与所述第二信号的差分值的第二相关性、所述第一信号的差分值与所述第二信号前向插值结果的差分值的第三相关性、以及所述第一信号的差分值与所述第二信号后向插值结果的差分值的第四相关性;Step 102: Determine the first correlation between the first signal and the second signal, the second correlation between the difference value of the first signal and the difference value of the second signal, and the difference value of the first signal and the difference value of the second signal. a third correlation of the difference value of the forward interpolation result of the second signal, and a fourth correlation of the difference value of the first signal and the difference value of the backward interpolation result of the second signal;

这里,可以由DSP中的运算单元进行数据处理;所述第一信号为I信号,第二信号为Q信号;可以计算I信号和Q信号的第一相关性λ;计算I信号差分后和Q的差分后的第二相关性γ;计算I信号差分后和Q信号的前向插值数据Qpre的差分后的第三相关性γpre;计算I差分后和Qpst差分后的第四相关性γpst;其中,所述差分可以采用如表达式f'(n)=f(n+1)-f(n)的方式,f'(n)表示后一个信号数据f(n+1)与前一个信号数据f(n)的差分。Here, data processing can be performed by the arithmetic unit in the DSP; the first signal is an I signal, and the second signal is a Q signal; the first correlation λ between the I signal and the Q signal can be calculated; after calculating the difference between the I signal and the Q signal The second correlation γ after the difference of γ p st; wherein, the difference can be in the form of the expression f'(n)=f(n+1)-f(n), where f'(n) represents the next signal data f(n+1) Difference from the previous signal data f(n).

进一步的,通常可以认为差分运算是一种简化的高通滤波器;可以将I信号经过低通滤波器后和Q信号经过低通滤波器后的相关性,确定为第一相关性λ;将I信号经过高通滤波器后与Q信号经过高通滤波器后的相关性,确定为第二相关性γ;将I信号经过高通滤波器后与Q信号前向插值结果经过高通滤波器后相关性γpre,确定为第三相关性;将I信号经过高通滤波器后与Q信号后向插值结果经过高通滤波器后的相关性,确定为第四相关性γpst;现有的时差测量通常需要较高的频偏,才能取得较高的测量精度;通过高通滤波器和低通滤波器,可以提高对频偏的适应能力,即使较小的频偏同样可以取得较高的测量精度;这里所述高通滤波器和低通滤波器可以使用常用结构,如实2或3抽头的FIR滤波器。Further, it can be generally considered that the differential operation is a simplified high-pass filter; the correlation between the I signal after passing through the low-pass filter and the Q signal after passing through the low-pass filter can be determined as the first correlation λ; I The correlation between the signal after the high-pass filter and the Q signal after the high-pass filter is determined as the second correlation γ; the correlation between the I signal after the high-pass filter and the forward interpolation result of the Q signal after the high-pass filter is γ pre , determined as the third correlation; the correlation between the I signal after passing through the high-pass filter and the backward interpolation result of the Q signal after passing through the high-pass filter is determined as the fourth correlation γ pst ; the existing time difference measurement usually requires a higher The high-pass filter and the low-pass filter can improve the adaptability to the frequency offset, and even a small frequency offset can achieve high measurement accuracy; the high-pass filter described here Filters and low-pass filters can use common structures, such as a 2- or 3-tap FIR filter.

更进一步的,可以累加预设累加次数N的相关性值,并取平均值作为最终的相关性值;将预设累加次数N的I信号经过低通滤波器后和第二信号经过低通滤波器后的相关性的平均值,确定为第一相关性λ;将预设累加次数N的将I信号经过高通滤波器后与Q信号经过高通滤波器后的相关性的平均值,确定为第二相关性γ;将预设累加次数N的I信号经过高通滤波器后与Q信号前向插值结果经过高通滤波器后相关性的平均值,确定为第三相关性γpre;将预设累加次数N的I信号经过高通滤波器后与Q信号后向插值结果经过高通滤波器后的相关性的平均值,确定为第四相关性γpst;其中选择的预设累加次数N要适应IQ时差的变化速度;由于器件特性变化很慢,只要能够每0.1s输出一组结果就可以跟上IQ时差的变化了,因此可以选择一个较大的N值,如214等,提高平均效果。Further, the correlation value of the preset accumulation times N can be accumulated, and the average value is taken as the final correlation value; the I signal of the preset accumulation times N is subjected to a low-pass filter and the second signal is subjected to a low-pass filter. The average value of the correlation after the filter is determined as the first correlation λ; the average value of the correlation between the I signal after the high-pass filter and the Q signal after the high-pass filter for the preset accumulation times N is determined as the first Two correlations γ; the I signal of the preset accumulation times N is passed through the high-pass filter and the Q signal forward interpolation result is passed through the high-pass filter. The average value of the correlation is determined as the third correlation γ pre ; the preset accumulation The average value of the correlation between the I signal of the number N and the backward interpolation result of the Q signal after the high-pass filter is passed through the high-pass filter, and is determined as the fourth correlation γ pst ; wherein the selected preset accumulation number N is to adapt to the IQ time difference Since the device characteristics change very slowly, as long as a set of results can be output every 0.1s, it can keep up with the change of IQ time difference, so a larger N value, such as 2 14 , can be selected to improve the average effect.

步骤103:根据第二相关性与第一相关性的第一差值、和/或第三相关性与第一相关性的第二差值、和/或第四相关性与第一相关性的第三差值,依照预设调整规则,调整时差补偿值;所述时差补偿值用于调整所述第一信号和第二信号的时差;Step 103: According to the first difference between the second correlation and the first correlation, and/or the second difference between the third correlation and the first correlation, and/or the difference between the fourth correlation and the first correlation For the third difference, the time difference compensation value is adjusted according to a preset adjustment rule; the time difference compensation value is used to adjust the time difference between the first signal and the second signal;

这里,可以首先确定第二相关性γ与第一相关性λ的第一差值δ、第三相关性γpre与第一相关性λ的第二差值δpre、和第四相关性γpst与第一相关性λ的第三差值δpst;可以将第二相关性γ减去第一相关性λ,得到第一差值δ;将第三相关性γpre减去第一相关性λ,得到第二差值δpre;将第四相关性γpst减去第一相关性λ,得到第三差值δpstHere, the first difference δ between the second correlation γ and the first correlation λ, the second difference δ pre between the third correlation γ pre and the first correlation λ, and the fourth correlation γ pst may be determined first. The third difference δ pst with the first correlation λ; the first correlation λ can be subtracted from the second correlation γ to obtain the first difference δ; the first correlation λ is subtracted from the third correlation γ pre , obtain the second difference δ pre ; subtract the first correlation λ from the fourth correlation γ pst to obtain the third difference δ pst ;

所述预设的调整规则,可以是根据第一差值、第二差值和第三差值与预设的阈值的比较结果,调整所述时差补偿值;所述第一差值、第二差值和第三差值与阈值的比较结果反映出了第一信号和第二信号的时差,因此,可以根据所述比较结果来调整所述时差补偿值。所述依照预设调整规则,调整时差补偿值,包括:当第一差值δ大于第一预设阈值,且第二差值δpre大于第二预设阈值,第三差值δpst小于第二预设阈值时,增加当前时差补偿值;当第一差值δ大于第一预设阈值,且第二差值δpre小于第二预设阈值,第三差值δpst大于第二预设阈值时,减小当前时差补偿值;The preset adjustment rule may be to adjust the time difference compensation value according to the comparison result of the first difference, the second difference and the third difference and a preset threshold; the first difference, the second difference The comparison result between the difference value and the third difference value and the threshold value reflects the time difference between the first signal and the second signal, so the time difference compensation value can be adjusted according to the comparison result. The adjusting the time difference compensation value according to the preset adjustment rule includes: when the first difference δ is greater than the first preset threshold, the second difference δ pre is greater than the second preset threshold, and the third difference δ pst is less than the first When there are two preset thresholds, the current time difference compensation value is increased; when the first difference δ is greater than the first preset threshold, the second difference δ pre is smaller than the second preset threshold, and the third difference δ pst is greater than the second preset When the threshold is set, reduce the current time difference compensation value;

其中,所述第一预设阈值和第二预设阈值可以通过试验数据确定,其中所述第一预设阈值可以是5/10000,所述第二预设阈值可以是3/1000,所述时差补偿调整的步长可以采用ADC采样周期的1/512;Wherein, the first preset threshold and the second preset threshold may be determined through experimental data, wherein the first preset threshold may be 5/10000, the second preset threshold may be 3/1000, the The step size of the time difference compensation adjustment can be 1/512 of the ADC sampling period;

这里,由于以第一相关性是I信号经过低通滤波器后和Q信号经过低通滤波器后的第一相关性作为比较基数;如此,相对于现有的以0为比较基数,可以提高对信号相差的容忍度,可以在相差补偿前使用本发明实施例提供的时差补偿方法。Here, since the first correlation is the first correlation between the I signal after passing through the low-pass filter and the Q signal after passing through the low-pass filter as the comparison base; in this way, compared with the existing comparison base of 0, it is possible to improve the For the tolerance of signal phase difference, the time difference compensation method provided by the embodiment of the present invention may be used before phase difference compensation.

如此,完成了时差补偿值的调整,根据所述时差补偿值对第一信号和第二信号进行时差补偿;并采用这种实时反馈的方式不断调整第一信号和第二信号的时差;从而提高了第一信号和第二信号的同步性。In this way, the adjustment of the time difference compensation value is completed, and the time difference compensation is performed on the first signal and the second signal according to the time difference compensation value; and the time difference between the first signal and the second signal is continuously adjusted by this real-time feedback method; thereby improving the The synchronization of the first signal and the second signal is achieved.

下面结合具体示例对本发明产生的积极效果作进一步详细的描述;The positive effects produced by the present invention are described in further detail below in conjunction with specific examples;

本发明实施例提供的时差补偿方法,可以分别对采取传统时差补偿方法进行时差补偿后的XI和XQ、YI和YQ进行时差测量,再根据时差测量的结果调整时差补偿值,从而更精确地调整时差;可以分别针对XI和XQ、YI和YQ各设置一个时差补偿调整装置。各个时差补偿调整装置的设置位置可以如图3所示;时差补偿调整装置可以设置在传统时差补偿之后,调整时差补偿值;The time difference compensation method provided by the embodiment of the present invention can separately measure the time difference of XI, XQ, YI and YQ after the time difference compensation is performed by the traditional time difference compensation method, and then adjust the time difference compensation value according to the result of the time difference measurement, so as to adjust the time difference more accurately. Time difference; a time difference compensation adjustment device can be set for XI and XQ, YI and YQ respectively. The setting positions of each time difference compensation adjustment device can be as shown in Figure 3; the time difference compensation adjustment device can be set after the traditional time difference compensation to adjust the time difference compensation value;

时差补偿调整装置中测量相关性差值的逻辑结构图可以如图4所示:The logical structure diagram of measuring the correlation difference in the time difference compensation adjustment device can be shown in Figure 4:

逻辑结构图中有两个相同的低通滤波器(LPF,Low Pass Filter),还有四个相同的高通滤波器(HPF,High Pass Filter);LPF和HPF可以使用常用结构,实测效果上只需要2或3抽头的FIR滤波器就可以了;合适的滤波器可以提高时差测量模块的性能;There are two identical low-pass filters (LPF, Low Pass Filter) and four identical high-pass filters (HPF, High Pass Filter) in the logic structure diagram; LPF and HPF can use common structures, and the measured effect is only A 2- or 3-tap FIR filter is sufficient; a suitable filter can improve the performance of the time difference measurement module;

逻辑结构图中还有两个相同的插值模块,一个为ITPpre,负责把输入的Q(t)数据进行前向插值,得到Qpre=Q(t-dt);另一个为ITPpst,负责把输入的Q(t)数据进行后向插值,得到Qpst=Q(t+dt);其中dt可以取小于ADC采样周期Ts的固定值,可以取Ts/3;There are two identical interpolation modules in the logical structure diagram, one is ITP pre , which is responsible for forward interpolation of the input Q(t) data to obtain Q pre =Q(t-dt); the other is ITPpst, which is responsible for the The input Q(t) data is back-interpolated to obtain Q pst =Q(t+dt); where dt can take a fixed value smaller than the ADC sampling period Ts, and can take Ts/3;

I和Q分别经过LPF滤波后,相乘累加N次求平均,得到相关值λ;After I and Q are filtered by LPF respectively, they are multiplied and accumulated for N times to obtain the correlation value λ;

I和Qpre分别经过HPF滤波后,相乘累加N次求平均,得到相关值γpre;然后减去λ,得到δpreAfter I and Q pre are filtered by HPF respectively, they are multiplied and accumulated for N times and averaged to obtain the correlation value γ pre ; then λ is subtracted to obtain δ pre ;

I和Q分别经过HPF滤波后,相乘累加N次求平均,得到相关值γ,然后减去λ,得到δ;After I and Q are filtered by HPF respectively, they are multiplied and accumulated N times to obtain the correlation value γ, and then subtract λ to obtain δ;

I和Qpst分别经过HPF滤波后,相乘累加N次求平均,得到相关值γpst,然后减去λ,得到δpstAfter I and Q pst are filtered by HPF respectively, they are multiplied and accumulated N times for averaging to obtain the correlation value γ pst , and then subtract λ to obtain δ pst ;

每处理N组IQ数据,可以得到一组δpre、δ、δpst,选择的N值要适应IQ时差的变化速度;器件特性变化很慢,只要能够每0.1s输出一组结果就可以跟上IQ时差的变化了,因此可以选择一个较大的N值,提高平均效果;For each processing of N groups of IQ data, a group of δ pre , δ and δ pst can be obtained. The selected N value should adapt to the change speed of the IQ time difference; the device characteristics change very slowly, as long as a group of results can be output every 0.1s, it can keep up. The IQ time difference has changed, so a larger N value can be selected to improve the average effect;

如果|δ|>th1,且|δpre|>th2,且|δpst|<th2,增加当前的时差补偿值;If |δ|>th1, and |δ pre |>th2, and |δ pst |<th2, increase the current time difference compensation value;

如果|δ|>th1,且|δpre|<th2,且|δpst|>th2,减小当前的时差补偿值;If |δ|>th1, and |δ pre |<th2, and |δ pst |>th2, reduce the current time difference compensation value;

其中,th1和th2是分别是第一预设阈值和第二预设阈值,可以通过试验数据确定,th1可以是5/10000,th2可以是3/1000,所述时差补偿值的步长可以采用ADC采样周期的1/512。Wherein, th1 and th2 are the first preset threshold and the second preset threshold respectively, which can be determined by experimental data, th1 can be 5/10000, th2 can be 3/1000, and the step size of the time difference compensation value can be 1/512 of the ADC sampling period.

本发明实施例提供的时差补偿装置,如图5所示,所述装置包括:第一确定模块51、第二确定模块52和调整模块53;其中,The time difference compensation device provided by the embodiment of the present invention, as shown in FIG. 5 , the device includes: a first determination module 51, a second determination module 52, and an adjustment module 53; wherein,

所述第一确定模块51,用于获取第一信号和第二信号,并确定所述第二信号的前向插值结果和后向插值结果;The first determination module 51 is configured to acquire the first signal and the second signal, and determine the forward interpolation result and the backward interpolation result of the second signal;

现有相干光接收机前端的框图如图2所示;相干光接收机收到的光信号与本地激光器输出的光信号混频,分为XI、XQ、YI、YQ四路,然后分别进行O/E、TIA和ADC,最后进入DSP;传统时差补偿可以由DSP进行;根据在相干光接收机前端安装时进行定标,测出IQ信号之间的时差;可由维护人员根据该时差在DSP中设定时差补偿值,由DSP进行补偿;The block diagram of the front end of the existing coherent optical receiver is shown in Figure 2; the optical signal received by the coherent optical receiver is mixed with the optical signal output by the local laser, and divided into XI, XQ, YI, and YQ four channels, and then O /E, TIA and ADC, and finally enter the DSP; the traditional time difference compensation can be performed by the DSP; according to the calibration at the front-end installation of the coherent optical receiver, the time difference between the IQ signals can be measured; the maintenance personnel can calculate the time difference in the DSP according to the time difference Set the time difference compensation value, which is compensated by DSP;

这里,可以获取经过传统时差补偿后的第一信号和第二信号,其中,所述第一信号和第二信号分别为同一偏振面的I信号和Q信号;可以通过在IQ信号通信线路上连接旁路线路等获取所述第一信号和第二信号;Here, the first signal and the second signal after the traditional time difference compensation can be obtained, wherein the first signal and the second signal are the I signal and the Q signal of the same polarization plane respectively; obtain the first signal and the second signal through a bypass line or the like;

获取所述第一信号和第二信号后,可以对所述第二信号,即Q信号进行插值处理;可以由DSP中的运算单元进行数据处理;假设Q信号的函数为Q(t),其中t为时间变量,首先,可以将Q(t)数据进行前向插值,得到第二信号的前向插值数据Qpre=Q(t-dt),再将输入的Q(t)数据进行后向插值,得到第二信号的后向插值数据得到Qpst=Q(t+dt)。After acquiring the first signal and the second signal, interpolation processing can be performed on the second signal, that is, the Q signal; data processing can be performed by the arithmetic unit in the DSP; it is assumed that the function of the Q signal is Q(t), where t is a time variable. First, the Q(t) data can be forward-interpolated to obtain the forward-interpolated data of the second signal Q pre =Q(t-dt), and then the input Q(t) data can be backward-interpolated. Interpolate to obtain backward interpolation data of the second signal to obtain Q pst =Q(t+dt).

进一步的,差值步长dt可以取小于ADC采样周期Ts的固定值,一般可以取Ts/3。Further, the difference step size dt may take a fixed value smaller than the ADC sampling period Ts, generally Ts/3.

实际应用中,可以采用拉格朗日插值法等方法进行第二信号的插值计算。In practical applications, methods such as Lagrangian interpolation method may be used to perform the interpolation calculation of the second signal.

所述第二确定模块52,用于分别确定第一信号和第二信号的第一相关性、所述第一信号的差分值与所述第二信号的差分值的第二相关性、所述第一信号的差分值与所述第二信号前向插值结果的差分值的第三相关性、以及所述第一信号的差分值与所述第二信号后向插值结果的差分值的第四相关性;The second determining module 52 is configured to respectively determine the first correlation between the first signal and the second signal, the second correlation between the difference value of the first signal and the difference value of the second signal, the The third correlation between the difference value of the first signal and the difference value of the result of forward interpolation of the second signal, and the fourth correlation between the difference value of the first signal and the difference value of the result of backward interpolation of the second signal Correlation;

这里,可以由DSP中的运算单元进行数据处理;所述第一信号为I信号,第二信号为Q信号;可以计算I信号和Q信号的第一相关性λ;计算I信号差分后和Q的差分后的第二相关性γ;计算I信号差分后和Q信号的前向插值数据Qpre的差分后的第三相关性γpre;计算I差分后和Qpst差分后的第四相关性γpst;其中,所述差分可以采用如表达式f'(n)=f(n+1)-f(n)的方式,f'(n)表示后一个信号数据f(n+1)与前一个信号数据f(n)的差分。Here, data processing can be performed by the arithmetic unit in the DSP; the first signal is an I signal, and the second signal is a Q signal; the first correlation λ between the I signal and the Q signal can be calculated; after calculating the difference between the I signal and the Q signal The second correlation γ after the difference of γ p st; wherein, the difference can be in the form of the expression f'(n)=f(n+1)-f(n), where f'(n) represents the next signal data f(n+1) Difference from the previous signal data f(n).

进一步的,通常认为差分运算是一种简化的高通滤波器;可以将I信号经过低通滤波器后和Q信号经过低通滤波器后的相关性,确定为第一相关性λ;将I信号经过高通滤波器后与Q信号经过高通滤波器后的相关性,确定为第二相关性γ;将I信号经过高通滤波器后与Q信号前向插值结果经过高通滤波器后相关性γpre,确定为第三相关性;将I信号经过高通滤波器后与Q信号后向插值结果经过高通滤波器后的相关性,确定为第四相关性γpst;现有的时差测量通常需要较高的频偏,才能取得较高的测量精度;通过高通滤波器和低通滤波器,可以提高对频偏的适应能力,即使较小的频偏同样可以取得较高的测量精度;这里所述高通滤波器和低通滤波器可以使用常用结构,如实2或3抽头的FIR滤波器。Further, it is generally considered that the differential operation is a simplified high-pass filter; the correlation between the I signal after passing through the low-pass filter and the Q signal after passing through the low-pass filter can be determined as the first correlation λ; The correlation between the Q signal after the high-pass filter and the Q signal after the high-pass filter is determined as the second correlation γ; the correlation between the I signal after the high-pass filter and the forward interpolation result of the Q signal after the high-pass filter is passed through the high-pass filter γ pre , It is determined as the third correlation; the correlation between the I signal after passing through the high-pass filter and the backward interpolation result of the Q signal after passing through the high-pass filter is determined as the fourth correlation γ pst ; the existing time difference measurement usually requires a higher The high-pass filter and the low-pass filter can improve the adaptability to the frequency offset, even if the frequency offset is small, high measurement accuracy can be obtained; the high-pass filter described here Common structures, such as 2 or 3-tap FIR filters, can be used for the filter and low-pass filter.

更进一步的,可以累加预设累加次数N的相关性值,并取平均值作为最终的相关性值;将预设累加次数N的I信号经过低通滤波器后和第二信号经过低通滤波器后的相关性的平均值,确定为第一相关性λ;将预设累加次数N的将I信号经过高通滤波器后与Q信号经过高通滤波器后的相关性的平均值,确定为第二相关性γ;将预设累加次数N的I信号经过高通滤波器后与Q信号前向插值结果经过高通滤波器后相关性的平均值,确定为第三相关性γpre;将预设累加次数N的I信号经过高通滤波器后与Q信号后向插值结果经过高通滤波器后的相关性的平均值,确定为第四相关性γpst;其中选择的预设累加次数N要适应IQ时差的变化速度;由于器件特性变化很慢,只要能够每0.1s输出一组结果就可以跟上IQ时差的变化了,因此可以选择一个较大的N值,如214等,提高平均效果。Further, the correlation value of the preset accumulation times N can be accumulated, and the average value is taken as the final correlation value; the I signal of the preset accumulation times N is subjected to a low-pass filter and the second signal is subjected to a low-pass filter. The average value of the correlation after the filter is determined as the first correlation λ; the average value of the correlation between the I signal after the high-pass filter and the Q signal after the high-pass filter for the preset accumulation times N is determined as the first Two correlations γ; the I signal of the preset accumulation times N is passed through the high-pass filter and the Q signal forward interpolation result is passed through the high-pass filter. The average value of the correlation is determined as the third correlation γ pre ; the preset accumulation The average value of the correlation between the I signal of the number N and the backward interpolation result of the Q signal after the high-pass filter is passed through the high-pass filter, and is determined as the fourth correlation γ pst ; wherein the selected preset accumulation number N is to adapt to the IQ time difference Since the device characteristics change very slowly, as long as a set of results can be output every 0.1s, it can keep up with the change of IQ time difference, so a larger N value, such as 2 14 , can be selected to improve the average effect.

所述调整模块53,用于根据第二相关性与第一相关性的第一差值、和/或第三相关性与第一相关性的第二差值、和/或第四相关性与第一相关性的第三差值,依照预设调整规则,调整时差补偿值;所述时差补偿值用于调整所述第一信号和第二信号的时差;The adjustment module 53 is configured to, according to the first difference between the second correlation and the first correlation, and/or the second difference between the third correlation and the first correlation, and/or the fourth correlation and For the third difference value of the first correlation, the time difference compensation value is adjusted according to a preset adjustment rule; the time difference compensation value is used to adjust the time difference between the first signal and the second signal;

这里,可以首先确定第二相关性γ与第一相关性λ的第一差值δ、第三相关性γpre与第一相关性λ的第二差值δpre、和第四相关性γpst与第一相关性λ的第三差值δpst;可以将第二相关性γ减去第一相关性λ,得到第一差值δ;将第三相关性γpre减去第一相关性λ,得到第二差值δpre;将第四相关性γpst减去第一相关性λ,得到第三差值δpstHere, the first difference δ between the second correlation γ and the first correlation λ, the second difference δ pre between the third correlation γ pre and the first correlation λ, and the fourth correlation γ pst may be determined first. The third difference δ pst with the first correlation λ; the first correlation λ can be subtracted from the second correlation γ to obtain the first difference δ; the first correlation λ is subtracted from the third correlation γ pre , obtain the second difference δ pre ; subtract the first correlation λ from the fourth correlation γ pst to obtain the third difference δ pst ;

所述预设的调整规则,可以是根据第一差值、第二差值和第三差值与预设的阈值的比较结果,调整所述时差补偿值;所述第一差值、第二差值和第三差值与阈值的比较结果反映出了第一信号和第二信号的时差,因此,可以根据所述比较结果来调整所述时差补偿值。所述依照预设调整规则,调整时差补偿值,包括:当第一差值δ大于第一预设阈值,且第二差值δpre大于第二预设阈值,第三差值δpst小于第二预设阈值时,增加当前时差补偿值;当第一差值δ大于第一预设阈值,且第二差值δpre小于第二预设阈值,第三差值δpst大于第二预设阈值时,减小当前时差补偿值;The preset adjustment rule may be to adjust the time difference compensation value according to the comparison result of the first difference, the second difference and the third difference and a preset threshold; the first difference, the second difference The comparison result between the difference value and the third difference value and the threshold value reflects the time difference between the first signal and the second signal, so the time difference compensation value can be adjusted according to the comparison result. The adjusting the time difference compensation value according to the preset adjustment rule includes: when the first difference δ is greater than the first preset threshold, the second difference δ pre is greater than the second preset threshold, and the third difference δ pst is less than the first When there are two preset thresholds, the current time difference compensation value is increased; when the first difference δ is greater than the first preset threshold, the second difference δ pre is smaller than the second preset threshold, and the third difference δ pst is greater than the second preset When the threshold is set, reduce the current time difference compensation value;

其中,所述第一预设阈值和第二预设阈值可以通过试验数据确定,其中所述第一预设阈值可以是5/10000,所述第二预设阈值可以是3/1000,所述时差补偿调整的步长可以采用ADC采样周期的1/512;Wherein, the first preset threshold and the second preset threshold may be determined through experimental data, wherein the first preset threshold may be 5/10000, the second preset threshold may be 3/1000, the The step size of the time difference compensation adjustment can be 1/512 of the ADC sampling period;

这里,由于以第一相关性是I信号经过低通滤波器后和Q信号经过低通滤波器后的第一相关性作为比较基数;如此,相对于现有的以0为比较基数,可以提高对信号相差的容忍度,可以在相差补偿前使用本发明实施例提供的时差补偿方法。Here, since the first correlation is the first correlation between the I signal after passing through the low-pass filter and the Q signal after passing through the low-pass filter as the comparison base; in this way, compared with the existing comparison base of 0, it is possible to improve the For the tolerance of signal phase difference, the time difference compensation method provided by the embodiment of the present invention may be used before phase difference compensation.

如此,完成了时差补偿值的调整,根据所述时差补偿值对第一信号和第二信号进行时差补偿;并采用这种实时反馈的方式不断调整第一信号和第二信号的时差;从而提高了第一信号和第二信号的同步性。In this way, the adjustment of the time difference compensation value is completed, and the time difference compensation is performed on the first signal and the second signal according to the time difference compensation value; and the time difference between the first signal and the second signal is continuously adjusted by this real-time feedback method; thereby improving the The synchronization of the first signal and the second signal is achieved.

在实际应用中,所述第一确定模块51、第二确定模块52和调整模块53均可以由光接收机中的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)等实现。In practical applications, the first determination module 51, the second determination module 52 and the adjustment module 53 can all be composed of a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) in the optical receiver ), or Field Programmable Gate Array (FPGA) etc.

以上所述,仅为本发明的最佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the best embodiment of the present invention, and is not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the within the protection scope of the present invention.

Claims (12)

1. A time difference compensation adjustment method, the method comprising:
acquiring a first signal and a second signal, and determining a forward interpolation result and a backward interpolation result of the second signal;
determining a first correlation of a first signal and a second signal, a second correlation of a differential value of the first signal and a differential value of the second signal, a third correlation of a differential value of the first signal and a differential value of a forward interpolation result of the second signal, and a fourth correlation of a differential value of the first signal and a differential value of a backward interpolation result of the second signal, respectively;
adjusting the time difference compensation value according to a preset adjustment rule and a first difference value of the second correlation and the first correlation, and/or a second difference value of the third correlation and the first correlation, and/or a third difference value of the fourth correlation and the first correlation; the time difference compensation value is used for adjusting the time difference of the first signal and the second signal.
2. The method of claim 1, wherein the determining a first correlation of a first signal and a second signal, a second correlation of a differential value of the first signal and a differential value of the second signal, a third correlation of the differential value of the first signal and a differential value of a forward interpolation result of the second signal, and a fourth correlation of the differential value of the first signal and a differential value of a backward interpolation result of the second signal, respectively, comprises:
determining the correlation between the first signal after passing through a low-pass filter and the second signal after passing through the low-pass filter as a first correlation;
determining the correlation between the first signal after passing through a high-pass filter and the second signal after passing through the high-pass filter as a second correlation;
after the first signal passes through a high-pass filter, the first signal and the second signal are subjected to correlation after a forward interpolation result passes through the high-pass filter, and the first signal and the second signal are determined to be third correlation;
and determining the correlation between the first signal after passing through a high-pass filter and the backward interpolation result of the second signal after passing through the high-pass filter as a fourth correlation.
3. The method of claim 1, wherein the determining a first correlation of a first signal and a second signal, a second correlation of a differential value of the first signal and a differential value of the second signal, a third correlation of the differential value of the first signal and a differential value of a forward interpolation result of the second signal, and a fourth correlation of the differential value of the first signal and a differential value of a backward interpolation result of the second signal, respectively, comprises:
determining the average value of the correlation of the first signal after passing through the low-pass filter and the second signal after passing through the low-pass filter for the preset accumulation times as a first correlation;
determining the average value of the correlation between the first signal with preset accumulation times after passing through a high-pass filter and the second signal after passing through the high-pass filter as a second correlation;
determining the average value of the correlation between the first signal with preset accumulation times after passing through a high-pass filter and the second signal forward interpolation result after passing through the high-pass filter as a third correlation;
and determining the average value of the correlation between the first signal with preset accumulation times after passing through a high-pass filter and the backward interpolation result of the second signal after passing through the high-pass filter as a fourth correlation.
4. The method according to any one of claims 1 to 3, wherein the adjusting the moveout compensation value according to a preset adjustment rule comprises:
when the first difference value is larger than a first preset threshold value, the second difference value is larger than a second preset threshold value, and the third difference value is smaller than the second preset threshold value, increasing a current time difference compensation value;
and when the first difference value is greater than a first preset threshold value, the second difference value is less than a second preset threshold value, and the third difference value is greater than the second preset threshold value, reducing the current time difference compensation value.
5. The method of any of claims 1 to 3, wherein determining the forward interpolation result and the backward interpolation result for the second signal comprises:
and taking a time interval smaller than the sampling period of the analog-to-digital conversion ADC to which the second signal belongs as an interpolation step length, and performing forward interpolation processing and backward interpolation processing on the second signal.
6. A method according to any one of claims 1 to 3, wherein the first and second signals are in-phase and quadrature signals, respectively, of the same plane of polarization.
7. A time difference compensation apparatus, characterized in that the apparatus comprises: the device comprises a first determining module, a second determining module and an adjusting module; wherein,
the first determining module is configured to obtain a first signal and a second signal, and determine a forward interpolation result and a backward interpolation result of the second signal;
the second determining module is configured to determine a first correlation between a first signal and a second signal, a second correlation between a differential value of the first signal and a differential value of the second signal, a third correlation between the differential value of the first signal and a differential value of a forward interpolation result of the second signal, and a fourth correlation between the differential value of the first signal and a differential value of a backward interpolation result of the second signal, respectively;
the adjusting module is used for adjusting the time difference compensation value according to a preset adjusting rule and a first difference value between the second correlation and the first correlation, and/or a second difference value between the third correlation and the first correlation, and/or a third difference value between the fourth correlation and the first correlation; the time difference compensation value is used for adjusting the time difference of the first signal and the second signal.
8. The apparatus of claim 7, wherein the second determining module is specifically configured to:
determining the correlation between the first signal after passing through a low-pass filter and the second signal after passing through the low-pass filter as a first correlation;
determining the correlation between the first signal after passing through a high-pass filter and the second signal after passing through the high-pass filter as a second correlation;
after the first signal passes through a high-pass filter, the first signal and the second signal are subjected to correlation after a forward interpolation result passes through the high-pass filter, and the first signal and the second signal are determined to be third correlation;
and determining the correlation between the first signal after passing through a high-pass filter and the backward interpolation result of the second signal after passing through the high-pass filter as a fourth correlation.
9. The apparatus of claim 7, wherein the second determining module is specifically configured to: determining the average value of the correlation of the first signal after passing through the low-pass filter and the second signal after passing through the low-pass filter for the preset accumulation times as a first correlation;
determining the average value of the correlation between the first signal with preset accumulation times after passing through a high-pass filter and the second signal after passing through the high-pass filter as a second correlation;
determining the average value of the correlation between the first signal with preset accumulation times after passing through a high-pass filter and the second signal forward interpolation result after passing through the high-pass filter as a third correlation;
and determining the average value of the correlation between the first signal with preset accumulation times after passing through a high-pass filter and the backward interpolation result of the second signal after passing through the high-pass filter as a fourth correlation.
10. The apparatus according to any one of claims 7 to 9, wherein the adjustment module is specifically configured to:
when the first difference value is larger than a first preset threshold value, the second difference value is larger than a second preset threshold value, and the third difference value is smaller than the second preset threshold value, increasing a current time difference compensation value;
and when the first difference value is greater than a first preset threshold value, the second difference value is less than a second preset threshold value, and the third difference value is greater than the second preset threshold value, reducing the current time difference compensation value.
11. The apparatus according to any one of claims 7 to 9, wherein the first determining module is specifically configured to:
and taking a time interval smaller than the sampling period of the analog-to-digital conversion ADC to which the second signal belongs as an interpolation step length, and performing forward interpolation processing and backward interpolation processing on the second signal.
12. The apparatus of any one of claims 7 to 9, wherein the first and second signals are in-phase and quadrature signals, respectively, of the same plane of polarization.
CN201710289414.4A 2017-04-27 2017-04-27 A time difference compensation method and device Active CN108809438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710289414.4A CN108809438B (en) 2017-04-27 2017-04-27 A time difference compensation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710289414.4A CN108809438B (en) 2017-04-27 2017-04-27 A time difference compensation method and device

Publications (2)

Publication Number Publication Date
CN108809438A CN108809438A (en) 2018-11-13
CN108809438B true CN108809438B (en) 2020-03-06

Family

ID=64069081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710289414.4A Active CN108809438B (en) 2017-04-27 2017-04-27 A time difference compensation method and device

Country Status (1)

Country Link
CN (1) CN108809438B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109884633B (en) * 2019-02-21 2021-03-05 中国科学院电子学研究所 A time difference compensation method, device and storage medium
CN111010181B (en) * 2019-12-19 2023-11-10 深圳市联洲国际技术有限公司 DDR signal time sequence calibration method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076002A (en) * 2006-05-17 2007-11-21 大唐移动通信设备有限公司 Method and apparatus for acquiring circulating prefix-length information
CN101621337A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Delay adjustment device and method
CN101636921A (en) * 2007-03-15 2010-01-27 高通股份有限公司 Adjacent channel interference detection for wireless communication
CN102006073A (en) * 2010-12-24 2011-04-06 复旦大学 Fast convergence multichannel time interweaving analog-to-digital (A/D) converter and calibrating system thereof
CN102113172A (en) * 2008-07-18 2011-06-29 相量解决方案有限公司 Phased array antenna and method of operating phased array antenna
US8886051B2 (en) * 2011-01-22 2014-11-11 Viasat, Inc. Skew compensation and tracking in communications systems
CN104159286A (en) * 2014-07-08 2014-11-19 中国人民解放军信息工程大学 Uplink time synchronization method of LTE system of GEO satellite
CN105631149A (en) * 2016-01-05 2016-06-01 西南民族大学 Method for solving time difference based on correlation
CN106357335A (en) * 2015-07-17 2017-01-25 深圳市中兴微电子技术有限公司 Signal time delay adjusting method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2760730C (en) * 2009-07-03 2015-01-27 Huawei Technologies Co., Ltd. Adaptive filter

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076002A (en) * 2006-05-17 2007-11-21 大唐移动通信设备有限公司 Method and apparatus for acquiring circulating prefix-length information
CN101636921A (en) * 2007-03-15 2010-01-27 高通股份有限公司 Adjacent channel interference detection for wireless communication
CN101621337A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Delay adjustment device and method
CN102113172A (en) * 2008-07-18 2011-06-29 相量解决方案有限公司 Phased array antenna and method of operating phased array antenna
CN102006073A (en) * 2010-12-24 2011-04-06 复旦大学 Fast convergence multichannel time interweaving analog-to-digital (A/D) converter and calibrating system thereof
US8886051B2 (en) * 2011-01-22 2014-11-11 Viasat, Inc. Skew compensation and tracking in communications systems
CN104159286A (en) * 2014-07-08 2014-11-19 中国人民解放军信息工程大学 Uplink time synchronization method of LTE system of GEO satellite
CN106357335A (en) * 2015-07-17 2017-01-25 深圳市中兴微电子技术有限公司 Signal time delay adjusting method and device
CN105631149A (en) * 2016-01-05 2016-06-01 西南民族大学 Method for solving time difference based on correlation

Also Published As

Publication number Publication date
CN108809438A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN101615010B (en) FPGA-based multi-channel data acquisition system
CN107508668B (en) Continuous variable quantum key distribution key parameter real-time monitoring method
WO2018076501A1 (en) Optical power and gain detection apparatus and method for optical amplifier in burst mode
CN107436383B (en) A kind of high-precision pulse signal time difference measuring device and measurement method
WO2017215481A1 (en) Optical power detection method, apparatus and device, and optical module
CN108809438B (en) A time difference compensation method and device
US9444588B1 (en) On-chip bathtub BER measurement for high-speed serdes diagnostics
JP4716004B2 (en) Photon detection circuit and noise elimination method
JP5915426B2 (en) Optical receiver and light receiving current monitoring method
CN107104674B (en) Noise power estimation device in electric parameter measurement process
CN106850055A (en) A kind of wideband low noise analog front circuit for optical fiber hit detecting system
CN109557365B (en) Grid voltage frequency and phase angle detection method and system, single-phase grid detection system
CN105866557B (en) A kind of realization GHZThe time of pulse percent of pass, energy bispectrum synchronized measurement system
TW201644243A (en) Sample phase difference compensating device and method, and communication device capable of compensating for sample phase difference
CN110470388B (en) High-speed acquisition circuit for pulse laser average power quasi-real-time monitoring
RU2687273C1 (en) Method of generating a value of cn by displaying gmp settings in an optical transport network otn
US8571095B2 (en) Equalization filter and distortion compensating method
CN108880693B (en) A method for coherent detection using a single photodiode
CN108366037A (en) Multichannel TIADC aberration emendation methods based on IQ transceiver communication systems
Yu et al. OSNR monitoring by using single sampling channel generated 2-D phase portrait
WO2017177422A1 (en) Differential signal compensation method and apparatus
CN110048769B (en) Self-adaptive frequency response characteristic testing device and method
CN105846822A (en) Method and system for measuring mismatch error of time-interleaved analog-to-digital conversion system
Hongmei et al. An efficient digital calibration technique for timing mismatch in time-interleaved ADCs
CN107798162B (en) Method and device for estimating positive sequence voltage component and negative sequence voltage component of power grid

Legal Events

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