CN116033539A - Base station GNSS clock synchronization method and system based on EPLD - Google Patents
Base station GNSS clock synchronization method and system based on EPLD Download PDFInfo
- Publication number
- CN116033539A CN116033539A CN202211130831.1A CN202211130831A CN116033539A CN 116033539 A CN116033539 A CN 116033539A CN 202211130831 A CN202211130831 A CN 202211130831A CN 116033539 A CN116033539 A CN 116033539A
- Authority
- CN
- China
- Prior art keywords
- epld
- module
- pp1s
- ocxo
- clock
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
技术领域technical field
本发明公开一种方法及系统,涉及信号同步技术领域,具体地说是一种基于EPLD的基站GNSS时钟同步方法及系统。The invention discloses a method and a system, and relates to the technical field of signal synchronization, in particular to an EPLD-based base station GNSS clock synchronization method and system.
背景技术Background technique
TDD系统,由于空口信号的上下行同频,使用不同的时隙来实现,所以TDD系统是一个强自干扰系统,如果不同基站之间时钟不同步,偏差大于1.5us,基站之间就存在相互干扰的问题。保证空口同步的方式是使用GNSS同步方案。但现有的GNSS时钟同步系统可能存在GPS跑偏、相差震荡等缺陷。而GPS跑偏、相差震荡等缺陷成了外场基站的噩梦,各地运维团队都面临很大压力。In the TDD system, since the uplink and downlink signals of the air interface are at the same frequency, different time slots are used to realize the TDD system. Therefore, the TDD system is a strong self-interference system. If the clocks of different base stations are not synchronized, and the deviation is greater than 1.5us, there will be mutual interference between the base stations. The problem of interference. The way to ensure air interface synchronization is to use the GNSS synchronization solution. However, the existing GNSS clock synchronization system may have defects such as GPS deviation and phase difference oscillation. However, defects such as GPS deviation and phase difference oscillation have become a nightmare for outfield base stations, and the operation and maintenance teams in various places are under great pressure.
发明内容Contents of the invention
本发明针对现有技术的问题,提供一种基于EPLD的基站GNSS时钟同步方法及系统,具有通用性强、实施简便等特点,具有广阔的应用前景。Aiming at the problems of the prior art, the present invention provides an EPLD-based base station GNSS clock synchronization method and system, which has the characteristics of strong versatility, simple implementation, etc., and has broad application prospects.
本发明提出的具体方案是:The concrete scheme that the present invention proposes is:
本发明提供一种基于EPLD的基站GNSS时钟同步方法,利用基站GNSS时钟同步系统进行时钟同步,所述基站GNSS时钟同步系统包括GNSS时钟处理模块和同步码流定时模块,The present invention provides a base station GNSS clock synchronization method based on EPLD, which uses a base station GNSS clock synchronization system to perform clock synchronization. The base station GNSS clock synchronization system includes a GNSS clock processing module and a synchronization stream timing module.
所述GNSS时钟处理模块包括GNSS接收模块、EPLD鉴相模块、CPU、dac、OCXO时钟源和EPLD分频模块,Described GNSS clock processing module comprises GNSS receiving module, EPLD phase detection module, CPU, dac, OCXO clock source and EPLD frequency division module,
所述同步码流定时模块包括PLL、EPLD分频模块和SCC模块,The timing module of the synchronous stream includes PLL, EPLD frequency division module and SCC module,
通过GNSS接收模块接收GPS卫星信号,输出GPS PP1S信号至EPLD鉴相模块,通过OCXO时钟源输出两路10MHz信号,其中一路10MHz信号经GNSS时钟处理模块内EPLD分频模块分频为OCXO PP1S信号并输送至EPLD鉴相模块,通过EPLD鉴相模块将OCXO PP1S信号和GPSPP1S信号进行鉴相处理,生成相位超前或滞后标志,并计算OCXO PP1S和GPS PP1S的差值,通过EPLD鉴相模块将差值发送至CPU,通过CPU处理差值后控制DAC输出相应的电压值,调整OCXO时钟源的频率输出,The GPS satellite signal is received by the GNSS receiving module, and the GPS PP1S signal is output to the EPLD phase detection module, and two 10MHz signals are output through the OCXO clock source, and one 10MHz signal is divided into OCXO PP1S signal by the EPLD frequency division module in the GNSS clock processing module. It is sent to the EPLD phase detection module, and the OCXO PP1S signal and the GPSPP1S signal are subjected to phase detection processing through the EPLD phase detection module to generate a phase lead or lag flag, and calculate the difference between the OCXO PP1S and GPS PP1S, and pass the difference value through the EPLD phase detection module Send it to the CPU, control the DAC to output the corresponding voltage value after processing the difference through the CPU, and adjust the frequency output of the OCXO clock source.
通过OCXO时钟源输出的另一路10MHz信号进入PLL,通过PLL倍频后输出多路时钟信号,其中一路时钟信号接入EPLD鉴相模块,作为EPLD鉴相模块的鉴相时钟,另一路时钟信号经同步码流定时模块中EPLD分频模块分频得到40ms信号并输送至SSC模块,用于同步码流定时输出,通过EPLD鉴相模块输送PP1S信号至同步码流定时模块中EPLD分频模块,所述PP1S信号为OCXO PP1S的单脉冲信号,通过将所述PP1S信号作为同步码流的40ms定时输出的同步复位信号,用于清除外部干扰造成的40ms时钟偏移。The other 10MHz signal output by the OCXO clock source enters the PLL, and multiple clock signals are output after the PLL is multiplied. One of the clock signals is connected to the EPLD phase detection module as the phase detection clock of the EPLD phase detection module, and the other clock signal is passed through The EPLD frequency division module in the synchronous code stream timing module divides the frequency to obtain a 40ms signal and sends it to the SSC module for timing output of the synchronous code stream. The PP1S signal is sent to the EPLD frequency division module in the synchronous code stream timing module through the EPLD phase detection module. The PP1S signal is a single pulse signal of the OCXO PP1S, which is used to remove the 40ms clock offset caused by external interference by using the PP1S signal as a 40ms timing output synchronous reset signal of the synchronous code stream.
进一步,所述的一种基于EPLD的基站GNSS时钟同步方法中所述通过EPLD鉴相模块将OCXO PP1S信号和GPS PP1S信号进行鉴相处理,生成相位超前或滞后标志,包括:Further, in the described a kind of EPLD-based base station GNSS clock synchronization method, OCXO PP1S signal and GPS PP1S signal are carried out phase identification process by EPLD phase identification module, generate phase lead or lag sign, comprising:
若生成相位超前标志,则OCXO PP1S信号超前于GPS PP1S信号,说明OCXO时钟源运行频率高于10MHz,If the phase advance flag is generated, the OCXO PP1S signal is ahead of the GPS PP1S signal, indicating that the operating frequency of the OCXO clock source is higher than 10MHz.
若生成相位滞后标志,则OCXO PP1S信号滞后于GPS PP1S信号,说明OCXO时钟源运行频率低于10MHz。If the phase lag flag is generated, the OCXO PP1S signal lags behind the GPS PP1S signal, indicating that the operating frequency of the OCXO clock source is lower than 10MHz.
优选地,所述的一种基于EPLD的基站GNSS时钟同步方法中所述通过CPU处理差值后控制DAC输出相应的电压值,调整OCXO时钟源的频率输出,包括:Preferably, in the EPLD-based base station GNSS clock synchronization method, the CPU processes the difference and controls the DAC to output a corresponding voltage value to adjust the frequency output of the OCXO clock source, including:
通过CPU对差值进行滤波处理,再根据处理后差值通过SPI写寄存器控制DAC输出相应的电压值,调整OCXO时钟源的频率输出。Filter the difference through the CPU, and then control the DAC to output the corresponding voltage value through the SPI write register according to the processed difference, and adjust the frequency output of the OCXO clock source.
优选地,所述的一种基于EPLD的基站GNSS时钟同步方法中通过GNSS接收模块利用SMA天线接收GPS卫星信号,输出GPS PP1S信号,通过CPU利用UART接口对GNSS接收模块进行初始化配置,读取相关信号。Preferably, in the described a kind of base station GNSS clock synchronization method based on EPLD, utilize SMA antenna to receive GPS satellite signal by GNSS receiving module, output GPS PP1S signal, utilize UART interface to carry out initialization configuration to GNSS receiving module by CPU, read relevant Signal.
优选地,所述的一种基于EPLD的基站GNSS时钟同步方法中所述PLL为AD9523,内部有2级锁相环,输出61.44MHz时钟信号用于同步码流和鉴相使用。Preferably, in the EPLD-based base station GNSS clock synchronization method, the PLL is AD9523, which has a two-stage phase-locked loop inside, and outputs a 61.44MHz clock signal for synchronizing code streams and phase detection.
本发明还提供一种基于EPLD的基站GNSS时钟同步系统,所述基站GNSS时钟同步系统包括GNSS时钟处理模块和同步码流定时模块,The present invention also provides a base station GNSS clock synchronization system based on EPLD, wherein the base station GNSS clock synchronization system includes a GNSS clock processing module and a synchronization stream timing module,
所述GNSS时钟处理模块包括GNSS接收模块、EPLD鉴相模块、CPU、dac、OCXO时钟源和EPLD分频模块,Described GNSS clock processing module comprises GNSS receiving module, EPLD phase detection module, CPU, dac, OCXO clock source and EPLD frequency division module,
所述同步码流定时模块包括PLL、EPLD分频模块和SCC模块,The timing module of the synchronous stream includes PLL, EPLD frequency division module and SCC module,
GNSS接收模块接收GPS卫星信号,输出GPS PP1S信号至EPLD鉴相模块,OCXO时钟源输出两路10MHz信号,其中一路10MHz信号经GNSS时钟处理模块内EPLD分频模块分频为OCXOPP1S信号并输送至EPLD鉴相模块,EPLD鉴相模块将OCXO PP1S信号和GPS PP1S信号进行鉴相处理,生成相位超前或滞后标志,并计算OCXO PP1S和GPS PP1S的差值,EPLD鉴相模块将差值发送至CPU,CPU处理差值后控制DAC输出相应的电压值,调整OCXO时钟源的频率输出,The GNSS receiving module receives GPS satellite signals, outputs GPS PP1S signals to the EPLD phase detection module, and the OCXO clock source outputs two 10MHz signals, of which one 10MHz signal is divided into OCXOPP1S signals by the EPLD frequency division module in the GNSS clock processing module and sent to the EPLD The phase detection module, the EPLD phase detection module performs phase detection processing on the OCXO PP1S signal and the GPS PP1S signal, generates a phase lead or lag flag, and calculates the difference between the OCXO PP1S and GPS PP1S, and the EPLD phase detection module sends the difference to the CPU, After processing the difference, the CPU controls the DAC to output the corresponding voltage value, and adjusts the frequency output of the OCXO clock source.
OCXO时钟源输出的另一路10MHz信号进入PLL,PLL倍频后输出多路时钟信号,其中一路时钟信号接入EPLD鉴相模块,作为EPLD鉴相模块的鉴相时钟,另一路时钟信号经同步码流定时模块中EPLD分频模块分频得到40ms信号并输送至SSC模块,用于同步码流定时输出,EPLD鉴相模块输送PP1S信号至同步码流定时模块中EPLD分频模块,所述PP1S信号为OCXO PP1S的单脉冲信号,将所述PP1S信号作为同步码流的40ms定时输出的同步复位信号,用于清除外部干扰造成的40ms时钟偏移。The other 10MHz signal output by the OCXO clock source enters the PLL, and the PLL outputs multiple clock signals after frequency multiplication. One of the clock signals is connected to the EPLD phase detection module as the phase detection clock of the EPLD phase detection module, and the other clock signal passes through the synchronization code. The EPLD frequency division module in the stream timing module divides the frequency to obtain a 40ms signal and sends it to the SSC module for synchronous code stream timing output. The EPLD phase detection module sends the PP1S signal to the EPLD frequency division module in the synchronous code stream timing module. The PP1S signal It is the single pulse signal of OCXO PP1S, and the PP1S signal is used as the synchronous reset signal of the 40ms timing output of the synchronous code stream to remove the 40ms clock offset caused by external interference.
进一步,所述的一种基于EPLD的基站GNSS时钟同步系统中所述EPLD鉴相模块将OCXO PP1S信号和GPS PP1S信号进行鉴相处理,生成相位超前或滞后标志,包括:Further, the EPLD phase detection module described in the base station GNSS clock synchronization system based on EPLD carries out phase detection processing with the OCXO PP1S signal and the GPS PP1S signal, and generates a phase leading or lagging sign, including:
若生成相位超前标志,则OCXO PP1S信号超前于GPS PP1S信号,说明OCXO时钟源运行频率高于10MHz,If the phase advance flag is generated, the OCXO PP1S signal is ahead of the GPS PP1S signal, indicating that the operating frequency of the OCXO clock source is higher than 10MHz.
若生成相位滞后标志,则OCXO PP1S信号滞后于GPS PP1S信号,说明OCXO时钟源运行频率低于10MHz。If the phase lag flag is generated, the OCXO PP1S signal lags behind the GPS PP1S signal, indicating that the operating frequency of the OCXO clock source is lower than 10MHz.
优选地,所述的一种基于EPLD的基站GNSS时钟同步系统中CPU处理差值后控制DAC输出相应的电压值,调整OCXO时钟源的频率输出,包括:Preferably, the CPU in the EPLD-based base station GNSS clock synchronization system controls the DAC to output a corresponding voltage value after processing the difference, and adjusts the frequency output of the OCXO clock source, including:
通过CPU对差值进行滤波处理,再根据处理后差值通过SPI写寄存器控制DAC输出相应的电压值,调整OCXO时钟源的频率输出。Filter the difference through the CPU, and then control the DAC to output the corresponding voltage value through the SPI write register according to the processed difference, and adjust the frequency output of the OCXO clock source.
优选地,所述的一种基于EPLD的基站GNSS时钟同步系统中GNSS接收模块利用SMA天线接收GPS卫星信号,输出GPS PP1S信号,CPU利用UART接口对GNSS接收模块进行初始化配置,读取相关信号。Preferably, in the described a kind of EPLD-based base station GNSS clock synchronization system, the GNSS receiving module utilizes the SMA antenna to receive the GPS satellite signal, outputs the GPS PP1S signal, and the CPU utilizes the UART interface to initialize the configuration of the GNSS receiving module and read relevant signals.
优选地,所述的一种基于EPLD的基站GNSS时钟同步系统中所述PLL为AD9523,内部有2级锁相环,输出61.44MHz时钟信号用于同步码流和鉴相使用。Preferably, the PLL in the EPLD-based base station GNSS clock synchronization system is AD9523, which has a two-stage phase-locked loop inside and outputs a 61.44MHz clock signal for synchronizing code streams and phase detection.
本发明的有益之处是:The benefits of the present invention are:
本发明提供一种基于EPLD的基站GNSS时钟同步方法,针对基站上GNSS时钟的GPS跑偏、相差震荡等缺陷问题,进行了GNSS时钟同步系统改进,采用成本较低的EPLD做为鉴相器和分频器,和CPU以及DAC、OCXO芯片组成一个大的锁相环,大的锁相环内没有嵌套小的锁相环,不会造成锁相环震荡,EPLD鉴相器的PP1S是OCXO PP1S的单脉冲信号,将其引进到SSC同步码流模块,每秒都会与GNSS时钟处理模块的PP1S进行同步,定时清除了外部干扰造成的时钟偏移,解决GPS跑偏问题,本基站GNSS时钟同步还结合了GNSS的长稳特性和OCXO的短稳特性,为整个基站设备提供了一个稳定可靠的时钟源。The present invention provides a base station GNSS clock synchronization method based on EPLD. Aiming at defects such as GPS deviation and phase difference oscillation of the GNSS clock on the base station, the GNSS clock synchronization system is improved, and the low-cost EPLD is used as a phase detector and The frequency divider, CPU, DAC, and OCXO chip form a large phase-locked loop. There is no nested small phase-locked loop in the large phase-locked loop, which will not cause the phase-locked loop to oscillate. The PP1S of the EPLD phase detector is an OCXO The single pulse signal of PP1S is introduced into the SSC synchronous code stream module, which will be synchronized with the PP1S of the GNSS clock processing module every second, and the clock offset caused by external interference is regularly removed, and the problem of GPS deviation is solved. The GNSS clock of this base station Synchronization also combines the long-term stable characteristics of GNSS and the short-term stable characteristics of OCXO, providing a stable and reliable clock source for the entire base station equipment.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明系统模块结构及交互示意图。Fig. 1 is a schematic diagram of the system module structure and interaction of the present invention.
图2是EPLD鉴相模块中处理信号检测框图。Fig. 2 is a block diagram of processing signal detection in the EPLD phase identification module.
图3是基站板卡中时钟同步系统状态切换示意图。FIG. 3 is a schematic diagram of state switching of a clock synchronization system in a base station board.
具体实施方式Detailed ways
GNSS时钟同步系统可能存在GPS跑偏、相差震荡等缺陷。GPS跑偏故障表现为从BBU侧看,时钟系统处于LOCK状态,但从基站的RRU设备上获得的信息是IOT过高,通过逐一关闭干扰区域中心位置的站点,可以定位到具体的干扰站点。相差震荡表现为,在时钟处于LOCK状态时,突然鉴相器的DIF值出现跳变,如从“0”跳变到“3”或者“4”,随后开始振荡,从LOCK状态进入了“异常”状态。The GNSS clock synchronization system may have defects such as GPS deviation and phase difference oscillation. The GPS deviation fault shows that the clock system is in the LOCK state from the BBU side, but the information obtained from the RRU device of the base station is that the IOT is too high. By closing the stations at the center of the interference area one by one, the specific interference station can be located. The performance of phase difference oscillation is that when the clock is in the LOCK state, the DIF value of the phase detector suddenly jumps, such as jumping from "0" to "3" or "4", and then starts to oscillate, and enters the "abnormal" state from the LOCK state. "state.
本发明针对基站中GPS跑偏、相差震荡等问题,提供一种基于EPLD的基站GNSS时钟同步方法可以解决上述问题。The invention aims at the problems of GPS deviation, phase difference oscillation and the like in the base station, and provides an EPLD-based base station GNSS clock synchronization method to solve the above problems.
下面结合附图和具体实施例对本发明作进一步说明,以使本领域的技术人员可以更好地理解本发明并能予以实施,但所举实施例不作为对本发明的限定。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the examples given are not intended to limit the present invention.
本发明提供一种基于EPLD的基站GNSS时钟同步方法,利用基站GNSS时钟同步系统进行时钟同步,所述基站GNSS时钟同步系统包括GNSS时钟处理模块和同步码流定时模块,The present invention provides a base station GNSS clock synchronization method based on EPLD, which uses a base station GNSS clock synchronization system to perform clock synchronization. The base station GNSS clock synchronization system includes a GNSS clock processing module and a synchronization stream timing module.
所述GNSS时钟处理模块包括GNSS接收模块、EPLD鉴相模块、CPU、dac、OCXO时钟源和EPLD分频模块,Described GNSS clock processing module comprises GNSS receiving module, EPLD phase detection module, CPU, dac, OCXO clock source and EPLD frequency division module,
所述同步码流定时模块包括PLL、EPLD分频模块和SCC模块,The timing module of the synchronous stream includes PLL, EPLD frequency division module and SCC module,
通过GNSS接收模块接收GPS卫星信号,输出GPS PP1S信号至EPLD鉴相模块,通过OCXO时钟源输出两路10MHz信号,其中一路10MHz信号经GNSS时钟处理模块内EPLD分频模块分频为OCXO PP1S信号并输送至EPLD鉴相模块,通过EPLD鉴相模块将OCXO PP1S信号和GPSPP1S信号进行鉴相处理,生成相位超前或滞后标志,并计算OCXO PP1S和GPS PP1S的差值,通过EPLD鉴相模块将差值发送至CPU,通过CPU处理差值后控制DAC输出相应的电压值,调整OCXO时钟源的频率输出,The GPS satellite signal is received by the GNSS receiving module, and the GPS PP1S signal is output to the EPLD phase detection module, and two 10MHz signals are output through the OCXO clock source, and one 10MHz signal is divided into OCXO PP1S signal by the EPLD frequency division module in the GNSS clock processing module. It is sent to the EPLD phase detection module, and the OCXO PP1S signal and the GPSPP1S signal are subjected to phase detection processing through the EPLD phase detection module to generate a phase lead or lag flag, and calculate the difference between the OCXO PP1S and GPS PP1S, and pass the difference value through the EPLD phase detection module Send it to the CPU, control the DAC to output the corresponding voltage value after processing the difference through the CPU, and adjust the frequency output of the OCXO clock source.
通过OCXO时钟源输出的另一路10MHz信号进入PLL,通过PLL倍频后输出多路时钟信号,其中一路时钟信号接入EPLD鉴相模块,作为EPLD鉴相模块的鉴相时钟,另一路时钟信号经同步码流定时模块中EPLD分频模块分频得到40ms信号并输送至SSC模块,用于同步码流定时输出,通过EPLD鉴相模块输送PP1S信号至同步码流定时模块中EPLD分频模块,所述PP1S信号为OCXO PP1S的单脉冲信号,通过将所述PP1S信号作为同步码流的40ms定时输出的同步复位信号,用于清除外部干扰造成的40ms时钟偏移。The other 10MHz signal output by the OCXO clock source enters the PLL, and multiple clock signals are output after the PLL is multiplied. One of the clock signals is connected to the EPLD phase detection module as the phase detection clock of the EPLD phase detection module, and the other clock signal is passed through The EPLD frequency division module in the synchronous code stream timing module divides the frequency to obtain a 40ms signal and sends it to the SSC module for timing output of the synchronous code stream. The PP1S signal is sent to the EPLD frequency division module in the synchronous code stream timing module through the EPLD phase detection module. The PP1S signal is a single pulse signal of the OCXO PP1S, which is used to remove the 40ms clock offset caused by external interference by using the PP1S signal as a 40ms timing output synchronous reset signal of the synchronous code stream.
进一步优选的方案中,可参考本发明方法的一些实施例,比如本发明方法改进的基站GNSS时钟同步系统包括GNSS时钟处理模块和同步码流定时模块,In a further preferred solution, reference may be made to some embodiments of the method of the present invention, such as the improved base station GNSS clock synchronization system of the method of the present invention including a GNSS clock processing module and a synchronization stream timing module,
所述GNSS时钟处理模块包括GNSS接收模块、EPLD鉴相模块、CPU、dac、OCXO时钟源和EPLD分频模块,Described GNSS clock processing module comprises GNSS receiving module, EPLD phase detection module, CPU, dac, OCXO clock source and EPLD frequency division module,
所述同步码流定时模块包括PLL、EPLD分频模块和SCC模块,参考图1,Described synchronous stream timing module comprises PLL, EPLD frequency division module and SCC module, with reference to Fig. 1,
GNSS接收模块通过SMA天线接收GPS卫星信号,输出GPS PP1S信号,通过UART接口与CPU进行通信,CPU通过此接口对GNSS接收模块进行初始化配置,读取相关信号。The GNSS receiving module receives GPS satellite signals through the SMA antenna, outputs GPS PP1S signals, and communicates with the CPU through the UART interface. The CPU initializes the GNSS receiving module through this interface and reads related signals.
OCXO时钟源输出高精度的10MHz信号,经过一分四的时钟Buffer,输出一路10MHz信号给PLL,用于同步码流定时模块,输出另一路10MHz信号给GNSS时钟处理模块中EPLD分频模块,EPLD分频模块内部分频成1Hz,即OCXO PP1S,如图1所示。The OCXO clock source outputs a high-precision 10MHz signal. After a clock buffer divided into four, it outputs a 10MHz signal to the PLL for synchronizing the stream timing module, and outputs another 10MHz signal to the EPLD frequency division module in the GNSS clock processing module. EPLD The internal frequency division of the frequency division module is divided into 1Hz, that is, OCXO PP1S, as shown in Figure 1.
OCXO PP1S信号和GPS PP1S信号在EPLD鉴相模块内部完成鉴相处理,生成相位超前和滞后标志,如果OCXO PP1S超前于GPS PP1S,说明OCXO运行频率高于10MHz;如果OCXOPP1S滞后于GPS PP1S,说明OCXO运行频率低于10MHz。可以利用OCXO PP1S Middle信号,复位超前和滞后状态标志,参考图2所示。OCXO PP1S signal and GPS PP1S signal complete the phase detection process inside the EPLD phase detection module, and generate phase lead and lag signs. If OCXO PP1S is ahead of GPS PP1S, it means that the operating frequency of OCXO is higher than 10MHz; if OCXOPP1S lags behind GPS PP1S, it means that OCXO The operating frequency is below 10MHz. You can use the OCXO PP1S Middle signal to reset the leading and lagging status flags, as shown in Figure 2.
OCXO PP1S和GPS PP1S在EPLD鉴相模块内部完成鉴相处理后,计算的差值DIF信号进入CPU内,CPU先进行滤波处理,再通过SPI写寄存器控制DAC输出相应电压值,根据超前或者滞后情况,及时调整OCXO的频率输出。After the OCXO PP1S and GPS PP1S complete the phase detection processing inside the EPLD phase detection module, the calculated difference DIF signal enters the CPU, and the CPU performs filtering processing first, and then controls the DAC to output the corresponding voltage value through the SPI write register, according to the lead or lag situation , adjust the frequency output of the OCXO in time.
而时钟buffer输出的一路10MHz信号,进入PLL中,PLL将10MHz信号倍频后输出多路61.44MHz时钟信号,其中一路61.44MHz接入EPLD鉴相模块上,作为EPLD鉴相器工作的鉴相时钟;And a 10MHz signal output by the clock buffer enters the PLL, and the PLL outputs multiple 61.44MHz clock signals after multiplying the frequency of the 10MHz signal. One of the 61.44MHz signals is connected to the EPLD phase detector module as the phase detector clock for the EPLD phase detector. ;
另一路61.44MHz用于同步码流设置,其经过同步码流定时模块中EPLD分频模块得到40ms信号,EPLD鉴相模块的PP1S是OCXO PP1S的单脉冲信号,将其引进到40ms的EPLD分频模块,作为40ms计数器的同步复位信号,这样,用于产生同步码流的40ms定时信号,每秒都会与OCXO的PP1S的进行同步,定时清除外部干扰造成的40ms时钟偏移。使用此改进后的同步系统,可处理GPS跑偏问题故障。The other channel 61.44MHz is used for synchronous code stream setting, which gets a 40ms signal through the EPLD frequency division module in the synchronous code stream timing module, and the PP1S of the EPLD phase detection module is the single pulse signal of the OCXO PP1S, which is introduced into the 40ms EPLD frequency division The module is used as the synchronous reset signal of the 40ms counter. In this way, the 40ms timing signal used to generate the synchronous code stream will be synchronized with the PP1S of the OCXO every second, and the 40ms clock offset caused by external interference will be cleared regularly. With this improved synchronization system, it is possible to deal with GPS deviation problems.
优选地,本发明方法的实施例中所述PLL可为AD9523,内部有2级锁相环,输出61.44MHz时钟信号用于同步码流和鉴相使用。Preferably, the PLL in the embodiment of the method of the present invention can be AD9523, which has a two-stage phase-locked loop inside and outputs a 61.44MHz clock signal for synchronizing code stream and phase detection.
GNSS接收模块可使用ublox的LEA-M8T-0GNSS授时模块,可输出的时间脉冲频率为0.25Hz到10MHz。时间脉冲精度在Clear sky模式下小于20ns,在Indoor模式下小于等于500ns。The GNSS receiving module can use ublox's LEA-M8T-0GNSS timing module, and the output time pulse frequency is 0.25Hz to 10MHz. The time pulse accuracy is less than 20ns in Clear sky mode, and less than or equal to 500ns in Indoor mode.
EPLD可使用LCMXO2280,是LatTlce公司的Mach XO系列。具有多达271个IO,sysMEM嵌入区块RAM,多达7.7KB的分布式RAM,支持IEEE标准1149.1的边界扫描,工作电压支持3.3V、1.8V。EPLD can use LCMXO2280, which is the Mach XO series of LatTlce Company. It has up to 271 IOs, sysMEM embedded block RAM, up to 7.7KB distributed RAM, supports IEEE standard 1149.1 boundary scan, and the working voltage supports 3.3V and 1.8V.
OXCO时钟源可为OC22L5D39-10MHz,压控范围0-5V,初始频率精度0.1ppm,频率温度稳定度小于3ppb,电源电压频率稳定度小于1ppb,负载频率稳定度小于1ppb。The OXCO clock source can be OC22L5D39-10MHz, the voltage control range is 0-5V, the initial frequency accuracy is 0.1ppm, the frequency temperature stability is less than 3ppb, the power supply voltage frequency stability is less than 1ppb, and the load frequency stability is less than 1ppb.
CPU可以选用X86,CPU通过UART对GNSS模块进行初始化配置,CPU接收来自的EPLD鉴相后的信号,对该信号进行滤波处理,通过SPI接口控制DAC芯片的输出,DAC输出变化的电压控制OCXO的输出频率。DAC可为DAC8550,CPU通过SPI接口调节其输出。The CPU can choose X86. The CPU initializes the GNSS module through UART. The CPU receives the signal from the EPLD after phase detection, filters the signal, and controls the output of the DAC chip through the SPI interface. The voltage of the DAC output changes to control the OCXO. Output frequency. The DAC can be DAC8550, and the CPU adjusts its output through the SPI interface.
本发明方法中改进的基站GNSS时钟同步系统在应用中,GNSS接收模块状态可分成STARTUP、WARMUP、FAST、LOCK、HOLDOVER、HOLDOVERTIMEOUT和ABNORMAL。GNSS接收模块持续输出PP1S,CPU判定连续5次时钟可用,GNSS接收模块从STARTUP状态进入FAST状态。在FAST状态下,如果连续30次满足锁定条件(正负10个单位),那么GNSS接收模块进入LOCK状态;否则,时钟不可用,状态停留在FAST中,相差过大时复位EPLD相差。在LOCK状态下,如果时钟不可用直接进入HOLDOVER状态;如果连续时钟30次不满足锁定条件(正负30个单位),那么从LOCK状态下进入ABNORMAL异常状态。进入HOLDOVER状态后,如果时钟连续5次时钟可用后开始判断相差,连续300次满足锁定条件(正负10个单位)且时钟可用,那么可以重新进入LOCK态。时钟不可用超过8个小时,则从HOLDOVER状态进入HOLDOVERTIMEOUT状态;HOLDOVER出厂复位进入最初的STARTUP状态。当前HOLDOVERTIMEOUT状态,如果每等10s后判断1次;连续6次判断时钟可用,那么GNSS接收模块进入WARMUP状态。如果当前ABNORMAL异常状态,异常超过10s,则进入WARMUP状态。In the application of the improved base station GNSS clock synchronization system in the method of the present invention, the states of the GNSS receiving module can be divided into STARTUP, WARMUP, FAST, LOCK, HOLDOVER, HOLDOVERTIMEOUT and ABNORMAL. The GNSS receiving module continues to output PP1S, the CPU determines that the clock is available for 5 consecutive times, and the GNSS receiving module enters the FAST state from the STARTUP state. In the FAST state, if the locking condition is met 30 times in a row (plus or minus 10 units), then the GNSS receiving module enters the LOCK state; otherwise, the clock is unavailable, the state stays in FAST, and the EPLD difference is reset when the difference is too large. In the LOCK state, if the clock is unavailable, directly enter the HOLDOVER state; if the continuous clock does not meet the lock condition (plus or minus 30 units) for 30 consecutive times, then enter the ABNORMAL abnormal state from the LOCK state. After entering the HOLDOVER state, if the clock is available 5 times in a row and starts to judge the phase difference, and the lock condition is met 300 times in a row (plus or minus 10 units) and the clock is available, then you can re-enter the LOCK state. If the clock is unavailable for more than 8 hours, it will enter the HOLDOVERTIMEOUT state from the HOLDOVER state; the HOLDOVER factory reset will enter the initial STARTUP state. In the current HOLDOVERTIMEOUT state, if it is judged once every 10s, and the clock is available for 6 consecutive judgments, then the GNSS receiving module enters the WARMUP state. If the current ABNORMAL abnormal state exceeds 10s, it will enter the WARMUP state.
GNSS接收模块的状态,CPU通过UART接口可随时获知,当GNSS接收模块锁定时,其输出稳定的PP1S和TOD信息。输出的GPS PP1S和PLLAD9523输出的OCXO PP1S都进入EPLD中,在EPLD中进行鉴相处理,处理后的结果进入CPU中进行滤波处理,处理后,CPU通过SPI接口调节DAC的输出,最后DAC通过压控引脚调节OCXO的频率输出。即EPLD PD、CPU、DAC和OCXO组成一个大的PLL,而数字PLLAD9523并未牵扯到大PLL中,数字PLLAD9523输出的61.44MHz,用于同步码流定时输出,输出多路的SSC和SCK到BBU各个基带板,从而保证整个基站系统的时钟同步。The status of the GNSS receiving module can be known by the CPU at any time through the UART interface. When the GNSS receiving module is locked, it outputs stable PP1S and TOD information. Both the GPS PP1S output and the OCXO PP1S output by PLLAD9523 enter the EPLD, and the phase detection process is carried out in the EPLD. The processed result enters the CPU for filtering processing. After processing, the CPU adjusts the output of the DAC through the SPI interface, and finally the DAC passes the pressure The control pin adjusts the frequency output of the OCXO. That is, EPLD PD, CPU, DAC and OCXO form a large PLL, and the digital PLLAD9523 is not involved in the large PLL. The 61.44MHz output by the digital PLLAD9523 is used for synchronous code stream timing output, and outputs multiple channels of SSC and SCK to the BBU Each baseband board ensures the clock synchronization of the entire base station system.
本发明方法针对基站中GNSS时钟的GPS跑偏、相差震荡问题,进行了方案设计,通过EPLD和CPU软件鉴相滤波,将GNSS的长稳特性和OCXO的短稳特性结合,为整个基站设备提供一个稳定可靠的时钟源。The method of the present invention aims at the GPS deviation and phase difference oscillation problems of the GNSS clock in the base station, and carries out a scheme design. Through EPLD and CPU software phase detection and filtering, the long-term stability characteristics of GNSS and the short-term stability characteristics of OCXO are combined to provide the entire base station equipment A stable and reliable clock source.
本发明还提供一种基于EPLD的基站GNSS时钟同步系统,所述基站GNSS时钟同步系统包括GNSS时钟处理模块和同步码流定时模块,The present invention also provides a base station GNSS clock synchronization system based on EPLD, wherein the base station GNSS clock synchronization system includes a GNSS clock processing module and a synchronization stream timing module,
所述GNSS时钟处理模块包括GNSS接收模块、EPLD鉴相模块、CPU、dac、OCXO时钟源和EPLD分频模块,Described GNSS clock processing module comprises GNSS receiving module, EPLD phase detection module, CPU, dac, OCXO clock source and EPLD frequency division module,
所述同步码流定时模块包括PLL、EPLD分频模块和SCC模块,The timing module of the synchronous stream includes PLL, EPLD frequency division module and SCC module,
GNSS接收模块接收GPS卫星信号,输出GPS PP1S信号至EPLD鉴相模块,OCXO时钟源输出两路10MHz信号,其中一路10MHz信号经GNSS时钟处理模块内EPLD分频模块分频为OCXOPP1S信号并输送至EPLD鉴相模块,EPLD鉴相模块将OCXO PP1S信号和GPS PP1S信号进行鉴相处理,生成相位超前或滞后标志,并计算OCXO PP1S和GPS PP1S的差值,EPLD鉴相模块将差值发送至CPU,CPU处理差值后控制DAC输出相应的电压值,调整OCXO时钟源的频率输出,The GNSS receiving module receives GPS satellite signals, outputs GPS PP1S signals to the EPLD phase detection module, and the OCXO clock source outputs two 10MHz signals, of which one 10MHz signal is divided into OCXOPP1S signals by the EPLD frequency division module in the GNSS clock processing module and sent to the EPLD The phase detection module, the EPLD phase detection module performs phase detection processing on the OCXO PP1S signal and the GPS PP1S signal, generates a phase lead or lag flag, and calculates the difference between the OCXO PP1S and GPS PP1S, and the EPLD phase detection module sends the difference to the CPU, After processing the difference, the CPU controls the DAC to output the corresponding voltage value, and adjusts the frequency output of the OCXO clock source.
OCXO时钟源输出的另一路10MHz信号进入PLL,PLL倍频后输出多路时钟信号,其中一路时钟信号接入EPLD鉴相模块,作为EPLD鉴相模块的鉴相时钟,另一路时钟信号经同步码流定时模块中EPLD分频模块分频得到40ms信号并输送至SSC模块,用于同步码流定时输出,EPLD鉴相模块输送PP1S信号至同步码流定时模块中EPLD分频模块,所述PP1S信号为OCXO PP1S的单脉冲信号,将所述PP1S信号作为同步码流的40ms定时输出的同步复位信号,用于清除外部干扰造成的40ms时钟偏移。The other 10MHz signal output by the OCXO clock source enters the PLL, and the PLL outputs multiple clock signals after frequency multiplication. One of the clock signals is connected to the EPLD phase detection module as the phase detection clock of the EPLD phase detection module, and the other clock signal passes through the synchronization code. The EPLD frequency division module in the stream timing module divides the frequency to obtain a 40ms signal and sends it to the SSC module for synchronous code stream timing output. The EPLD phase detection module sends the PP1S signal to the EPLD frequency division module in the synchronous code stream timing module. The PP1S signal It is the single pulse signal of OCXO PP1S, and the PP1S signal is used as the synchronous reset signal of the 40ms timing output of the synchronous code stream to remove the 40ms clock offset caused by external interference.
上述系统内的各模块之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。The information interaction and execution process among the various modules in the above system are based on the same concept as the method embodiment of the present invention, and the specific content can refer to the description in the method embodiment of the present invention, and will not be repeated here.
同样地,本发明系统针对基站上GNSS时钟的GPS跑偏、相差震荡等缺陷问题,进行了GNSS时钟同步系统改进,采用成本较低的EPLD做为鉴相器和分频器,和CPU以及DAC、OCXO芯片组成一个大的锁相环,大的锁相环内没有嵌套小的锁相环,不会造成锁相环震荡,EPLD鉴相器的PP1S是OCXO PP1S的单脉冲信号,将其引进到SSC同步码流模块,每秒都会与GNSS时钟处理模块的PP1S进行同步,定时清除了外部干扰造成的时钟偏移,解决GPS跑偏问题,本基站GNSS时钟同步还结合了GNSS的长稳特性和OCXO的短稳特性,为整个基站设备提供了一个稳定可靠的时钟源。Similarly, the system of the present invention has improved the GNSS clock synchronization system for defects such as GPS deviation and phase difference oscillation of the GNSS clock on the base station, and adopted EPLD with lower cost as phase detector and frequency divider, and CPU and DAC , The OCXO chip forms a large phase-locked loop. There is no nested small phase-locked loop in the large phase-locked loop, which will not cause the phase-locked loop to oscillate. The PP1S of the EPLD phase detector is the single pulse signal of the OCXO PP1S. Introduced into the SSC synchronous code stream module, it will be synchronized with the PP1S of the GNSS clock processing module every second, regularly clearing the clock offset caused by external interference, and solving the problem of GPS deviation. The GNSS clock synchronization of this base station also combines the long-term stability of GNSS characteristics and the short-term stable characteristics of OCXO provide a stable and reliable clock source for the entire base station equipment.
需要说明的是,上述各流程和各系统结构中不是所有的步骤和模块都是必须的,可以根据实际的需要忽略某些步骤或模块。各步骤的执行顺序不是固定的,可以根据需要进行调整。上述各实施例中描述的系统结构可以是物理结构,也可以是逻辑结构,即,有些模块可能由同一物理实体实现,或者,有些模块可能分由多个物理实体实现,或者,可以由多个独立设备中的某些部件共同实现。It should be noted that not all steps and modules in the above processes and system structures are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structures described in the above embodiments may be physical structures or logical structures, that is, some modules may be realized by the same physical entity, or some modules may be realized by multiple physical entities, or may be realized by multiple Certain components in individual devices are implemented together.
以上所述实施例仅是为充分说明本发明而所举的较佳的实施例,本发明的保护范围不限于此。本技术领域的技术人员在本发明基础上所作的等同替代或变换,均在本发明的保护范围之内。本发明的保护范围以权利要求书为准。The above-mentioned embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or transformations made by those skilled in the art on the basis of the present invention are all within the protection scope of the present invention. The protection scope of the present invention shall be determined by the claims.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211130831.1A CN116033539A (en) | 2022-09-16 | 2022-09-16 | Base station GNSS clock synchronization method and system based on EPLD |
PCT/CN2023/082115 WO2024055547A1 (en) | 2022-09-16 | 2023-03-17 | Epld-based base station gnss clock synchronization method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211130831.1A CN116033539A (en) | 2022-09-16 | 2022-09-16 | Base station GNSS clock synchronization method and system based on EPLD |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116033539A true CN116033539A (en) | 2023-04-28 |
Family
ID=86069565
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211130831.1A Pending CN116033539A (en) | 2022-09-16 | 2022-09-16 | Base station GNSS clock synchronization method and system based on EPLD |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116033539A (en) |
WO (1) | WO2024055547A1 (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6731667B1 (en) * | 1999-11-18 | 2004-05-04 | Anapass Inc. | Zero-delay buffer circuit for a spread spectrum clock system and method therefor |
KR20040028288A (en) * | 2002-09-30 | 2004-04-03 | 주식회사 현대시스콤 | Apparatus and Method for controlling of frequency using GPS receiver |
CN101179371B (en) * | 2006-11-09 | 2010-04-07 | 大唐移动通信设备有限公司 | Clock phase-locked method to extract synchronous clock of global positioning system and clock phase-locked loop |
CN101572543A (en) * | 2008-05-04 | 2009-11-04 | 华为技术有限公司 | Method and device for stabilizing clock |
CN108259035B (en) * | 2016-12-29 | 2022-03-25 | 国家无线电监测中心检测中心 | Reference clock determining method and device |
CN110581742B (en) * | 2018-06-08 | 2020-12-04 | 大唐移动通信设备有限公司 | Clock synchronization method, system and base station |
-
2022
- 2022-09-16 CN CN202211130831.1A patent/CN116033539A/en active Pending
-
2023
- 2023-03-17 WO PCT/CN2023/082115 patent/WO2024055547A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
WO2024055547A1 (en) | 2024-03-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101958710B (en) | PLL circuit and communication device | |
CA2001775C (en) | Mobile telephone system with intermittent control of receiver components in standby state | |
CN101098220B (en) | Digital phase-locked loop based clock synchronization method and system thereof | |
US7263153B2 (en) | Clock offset compensator | |
KR101520206B1 (en) | Base station clock device, base station system and clock synchronization method | |
AU653121B2 (en) | Local oscillating frequency synthesizer for use in a TDMA system | |
CN102781090B (en) | Multimode base station and implementation method | |
CN112532333B (en) | Signal synchronization method, signal synchronization device, light distribution system and storage medium | |
US6954506B2 (en) | Clock signal recovery circuit used in receiver of universal serial bus and method of recovering clock signal | |
US9094908B1 (en) | Device and method for synchronization in a mobile communication system | |
US7734000B2 (en) | Clock and data recovery circuits | |
CN108112069A (en) | A kind of synchronization keeping method and system of TDD-LTE equipment | |
EP2837117B1 (en) | Clock switching algorithm based on preferred clock source | |
CN116033539A (en) | Base station GNSS clock synchronization method and system based on EPLD | |
CN103686981A (en) | Multi-standby or multi-pass mobile terminal and frequency deviation adjusting method thereof | |
JPH1098763A (en) | Method and circuit for synchronizing pilot signal between base stations | |
US20010012318A1 (en) | Synchronizing circuit | |
JP2005354660A (en) | Apparatus and method for generating dummy pilot signal for hard handover | |
CN210578427U (en) | Three-channel frequency synthesis device | |
CN209982502U (en) | TDD synchronous signal transmission device | |
CN102271424A (en) | AFC (Automatic Frequency Control) device and method for multimode wireless terminal | |
JP2979811B2 (en) | Clock output circuit | |
KR100379464B1 (en) | Demultiply circuit | |
JP2998796B2 (en) | AFC device for orbiting satellite communication and frequency converter for orbiting satellite communication | |
CN114520656A (en) | Time-frequency signal generation method with phase self-synchronization capability |
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 |