[go: up one dir, main page]

CN111565084A - A satellite timing system and method based on frequency estimation - Google Patents

A satellite timing system and method based on frequency estimation Download PDF

Info

Publication number
CN111565084A
CN111565084A CN202010353727.3A CN202010353727A CN111565084A CN 111565084 A CN111565084 A CN 111565084A CN 202010353727 A CN202010353727 A CN 202010353727A CN 111565084 A CN111565084 A CN 111565084A
Authority
CN
China
Prior art keywords
1pps
time
frequency
signal
satellite
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.)
Granted
Application number
CN202010353727.3A
Other languages
Chinese (zh)
Other versions
CN111565084B (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.)
Air Force Engineering University of PLA
Original Assignee
Air Force Engineering University of PLA
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 Air Force Engineering University of PLA filed Critical Air Force Engineering University of PLA
Priority to CN202010353727.3A priority Critical patent/CN111565084B/en
Publication of CN111565084A publication Critical patent/CN111565084A/en
Application granted granted Critical
Publication of CN111565084B publication Critical patent/CN111565084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0644External master-clock
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS
    • G04R20/04Tuning or receiving; Circuits therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

The satellite time service and time keeping system based on frequency estimation comprises a main control computer, a satellite receiver, a constant temperature crystal oscillator and an FPGA module. The FPGA module consists of a frequency multiplier, a continuous time counter, a 1PPS signal time interval measurer and a local 1PPS signal generator, and the modules are all realized through a programmable logic unit in the FPGA. A working method of the satellite time service time keeping system based on frequency estimation is also provided. The system and the method of the invention receive the 1PPS second pulse signal from the satellite receiver, filter and eliminate non-points, fill up missing points and reduce random fluctuation, and then output a stable 1PPS second pulse signal; the frequency of a clock signal output by a constant-temperature crystal oscillator is measured and estimated, and when the 1PPS signal output by a satellite receiver is in abnormal states such as interruption, translation, out-of-tolerance and the like, the system utilizes the estimated frequency of the clock signal to keep time so as to ensure the stability of the local 1PPS signal, thereby realizing the method. The invention has the advantages of strong universality, simple circuit structure, high locking speed of 1PPS signals and the like.

Description

一种基于频率估计的卫星授时守时系统及方法A satellite timing system and method based on frequency estimation

技术领域technical field

本发明涉及通信技术领域技术,具体涉及一种基于频率估计的卫星授时守时系统及方法。The present invention relates to the technology in the field of communication technologies, in particular to a satellite timing system and method based on frequency estimation.

背景技术Background technique

利用卫星进行授时和守时,其本质是对时钟的驯服过程。通过对时钟进行驯服,授时守时系统可实现对卫星时间的跟随,输出UTC时(协调世界时)。通常采用的方法是:晶振频率校准法,即利用卫星授时接收机提供的固定频率信号,与本地晶体振荡器产生的振荡信号进行比对,获得频率差;再通过对本地晶体振荡器的调节,使振荡频率与卫星振荡频率基本一致(《卫星授时原理与应用》第1版杨俊、单庆晓著国防工业出版社2013年8月第129页),据此产生秒脉冲信号(1PPS信号),实现时间同步。The use of satellites for timing and punctuality is essentially the process of taming the clock. By taming the clock, the timing system can follow the satellite time and output UTC time (Coordinated Universal Time). The commonly used method is: the crystal oscillator frequency calibration method, that is, the fixed frequency signal provided by the satellite timing receiver is used to compare with the oscillating signal generated by the local crystal oscillator to obtain the frequency difference; and then through the adjustment of the local crystal oscillator, Make the oscillation frequency basically the same as the oscillation frequency of the satellite (the first edition of "The Principle and Application of Satellite Timing" by Yang Jun and Shan Qingxiao, National Defense Industry Press, August 2013, p. 129), and then generate a second pulse signal (1PPS signal) , to achieve time synchronization.

采用上述方法的卫星授时守时系统通常由卫星接收机、主控制芯片(常见为FPGA)、晶振、D/A转换器、时钟接口电路等部分组成(《卫星授时原理与应用》第1版杨俊、单庆晓著国防工业出版社2013年8月第143页)。The satellite timing system using the above method is usually composed of satellite receiver, main control chip (usually FPGA), crystal oscillator, D/A converter, clock interface circuit, etc. Jun, Shan Qingxiao, National Defense Industry Press, August 2013, p. 143).

发明内容SUMMARY OF THE INVENTION

针对现有技术存在的问题,本发明提供一种基于频率估计的卫星授时守时系统,包括主控计算机、卫星接收机、恒温晶振和FPGA模块;其中In view of the problems existing in the prior art, the present invention provides a satellite timing system based on frequency estimation, including a main control computer, a satellite receiver, a constant temperature crystal oscillator and an FPGA module; wherein

卫星接收机,其对天线接收的卫星信号进行处理、变换;实现卫星信号的捕获、跟踪、载波恢复和解调;向FPGA模块输出“1PPS卫星信号”和授时电文信息;The satellite receiver, which processes and transforms the satellite signal received by the antenna; realizes the capture, tracking, carrier recovery and demodulation of the satellite signal; outputs "1PPS satellite signal" and timing message information to the FPGA module;

恒温晶振,其向FPGA模块提供时钟基准;An oven-controlled crystal oscillator, which provides a clock reference to the FPGA module;

FPGA模块,其用于实现集成倍频器和连续时间计数器,形成本地连续时间标准;对卫星接收机送来的1PPS信号的时间间隔进行测量;输出滤波后的本地1PPS信号,也就是“1PPS滤波”;The FPGA module is used to realize the integrated frequency multiplier and continuous time counter to form a local continuous time standard; to measure the time interval of the 1PPS signal sent by the satellite receiver; to output the filtered local 1PPS signal, that is, "1PPS filter" ";

主控计算机,其用于全系统提供计算和显示控制服务,实现授时守时系统滤波算法;主控计算机获取FPGA模块中1PPS信号时间间隔测量器输出的“1PPS时标”,“1PPS时标”对应为“1PPS卫星信号”上升沿到来时的本地时标计数;依据“1PPS”脉冲在长稳态下均值误差为零的特点,主控计算机对各秒的“时标”信息进行统计滤波处理,估计出恒温晶振的中心频率与标称频率的误差大小,并对下一个“1PPS”秒脉冲的输出位置进行预测,形成新的本地1PPS预测秒数据“(n+1)秒数据”,输出给FPGA模块中的本地1PPS信号产生器;当卫星信号异常时,主控计算机将各寄存器参数固化,进入守时状态,保持“1PPS滤波”信号的稳定输出。The main control computer is used to provide calculation and display control services for the whole system, and realize the filtering algorithm of the timing system; the main control computer obtains the "1PPS time scale" and "1PPS time scale" output by the 1PPS signal time interval measurer in the FPGA module. Corresponds to the local time scale count when the rising edge of the "1PPS satellite signal" arrives; according to the characteristic that the mean error of the "1PPS" pulse is zero in the long steady state, the main control computer performs statistical filtering on the "time scale" information of each second. , estimate the error between the center frequency of the constant temperature crystal oscillator and the nominal frequency, and predict the output position of the next "1PPS" second pulse to form a new local 1PPS predicted second data "(n+1) second data", output To the local 1PPS signal generator in the FPGA module; when the satellite signal is abnormal, the main control computer solidifies the parameters of each register, enters the punctual state, and maintains the stable output of the "1PPS filter" signal.

在本发明的一个实施例中,FPGA模块由倍频器、连续时间计数器、1PPS信号时间间隔测量器和本地1PPS信号产生器组成,这些模块均通过FPGA中的可编程逻辑单元实现,其中In one embodiment of the present invention, the FPGA module is composed of a frequency multiplier, a continuous time counter, a 1PPS signal time interval measurer, and a local 1PPS signal generator, and these modules are all implemented by programmable logic units in the FPGA, wherein

倍频器为一个数字锁相环,其将恒温晶振输出的10MHz频率倍频成高频时钟信号CLKHR并输出;The frequency multiplier is a digital phase-locked loop, which multiplies the 10MHz frequency output by the constant temperature crystal oscillator into a high-frequency clock signal CLK HR and outputs it;

连续时间计数器,其对来自倍频器的CLKHR频率信号进行连续时间计算,形成本地连续时间基准;为了减少时标步长,倍频器输出CLKHR_0和CLKHR_pi两路时钟信号,这两个信号在相位上相差180°,分别控制两个独立的连续时间计数器进行计数,形成本地时标1和本地时标2,每路时标最小步长为1/CLKHR,联合步长为1/2CLKHR;时标1分为两路,一路输出给1PPS信号时间间隔测量器,另一路输出给本地1PPS信号产生器;时标2输出给1PPS信号时间间隔测量器;Continuous time counter, which performs continuous time calculation on the CLK HR frequency signal from the frequency multiplier to form a local continuous time reference; in order to reduce the time scale step, the frequency multiplier outputs two clock signals CLK HR _0 and CLK HR _pi, which are The two signals differ by 180° in phase, respectively control two independent continuous time counters to count, forming local time stamp 1 and local time stamp 2, the minimum step size of each time stamp is 1/CLK HR , and the joint step size is 1/2CLK HR ; Time stamp 1 is divided into two channels, one is output to the 1PPS signal time interval measurer, and the other is output to the local 1PPS signal generator; Time stamp 2 is output to the 1PPS signal time interval measurer;

1PPS信号时间间隔测量器,其对来自卫星接收机的“1PPS卫星”信号的前沿进行测量,形成“1PPS时标”信息送至主控计算机;1PPS signal time interval measurer, which measures the leading edge of the "1PPS satellite" signal from the satellite receiver, forms "1PPS time scale" information and sends it to the main control computer;

本地1PPS信号产生器,其接收来自连续时间计数器的“时标1”信息和主控计算机的“(n+1)秒数据”信息,当“时标1”与“(n+1)秒数据”相等时,形成“1PPS滤波”信号。The local 1PPS signal generator, which receives the "time stamp 1" information from the continuous time counter and the "(n+1) second data" information from the main control computer, when the "time stamp 1" and "(n+1) second data" information When equal, a "1PPS filtered" signal is formed.

在本发明的一个具体实施例中,本地时标1和本地时标2,每路时标最小步长为5ns,联合步长为2.5ns。In a specific embodiment of the present invention, for local time scale 1 and local time scale 2, the minimum step size of each channel time scale is 5ns, and the joint step size is 2.5ns.

还提供一种基于频率估计的卫星授时守时系统的工作方法,步骤如下:A working method of a satellite timing system based on frequency estimation is also provided, and the steps are as follows:

步骤1:连接系统Step 1: Connect the System

将如权利要求1至3的任何一项所述的系统的各部分进行连接;connecting parts of a system as claimed in any one of claims 1 to 3;

步骤2:初始化Step 2: Initialize

系统上电后,进行系统初始化,该步骤细分为5个步骤:After the system is powered on, perform system initialization, which is subdivided into 5 steps:

(a2)直通输出(a2) Thru output

上电后至滤波算法收敛前,为迅速给出UTC时间,采用直通方式,将卫星接收机送来的1PPS秒脉冲信号直接作为“1PPS滤波”信号输出;After power-on and before the convergence of the filtering algorithm, in order to quickly give the UTC time, the 1PPS second pulse signal sent by the satellite receiver is directly output as a "1PPS filtering" signal by using a pass-through method;

(b2)参数初始化(b2) Parameter initialization

授时滤波器算法模型如下:The timing filter algorithm model is as follows:

x(n|n)=x(n|n-1)+α[y(n)-x(n|n-1)]x(n|n)=x(n|n-1)+α[y(n)-x(n|n-1)]

Figure BSA0000207667020000031
Figure BSA0000207667020000031

Figure BSA0000207667020000041
Figure BSA0000207667020000041

其中,x(n|n)为第n拍滤波值,x(n|n-1)为第n-1拍对第n拍预测值,

Figure BSA0000207667020000042
为第n拍频率滤波值,y(n)为第n拍测量值,x(n+1|n)为第n周期对第n+1周期预测值;α、β分别是“1PPS滤波”信号时差和频差的权系数;Among them, x(n|n) is the filter value of the nth beat, x(n|n-1) is the prediction value of the n-1th beat to the nth beat,
Figure BSA0000207667020000042
is the frequency filter value of the nth beat, y(n) is the measured value of the nth beat, x(n+1|n) is the predicted value of the nth cycle for the n+1th cycle; α and β are the “1PPS filter” signals respectively Weights of time difference and frequency difference;

T0时刻滤波值:x(0|0)=y(0);Filter value at time T 0 : x(0|0)=y(0);

T0时刻频率滤波值:

Figure BSA0000207667020000043
Frequency filter value at time T 0 :
Figure BSA0000207667020000043

T1时刻预测值:

Figure BSA0000207667020000044
Predicted value at time T1 :
Figure BSA0000207667020000044

(c)T0时刻测量值y(0)的有效判决(c) Effective decision of the measured value y(0) at time T 0

具体包括下列步骤:Specifically include the following steps:

1)卫星接收机送出“授时正常”报文;1) The satellite receiver sends a "time service normal" message;

2)恒温晶振稳定后,连续取3拍测量值,定义为:y(-3)、y(-2)、y(-1);2) After the constant temperature crystal oscillator is stable, take 3 consecutive beats of the measured values, which are defined as: y(-3), y(-2), y(-1);

3)滤波算法预启动,根据步骤2中(b)步中的算法模型外推x(-2|-3)、x(-1|-2)、x(0|-1)的值;3) The filtering algorithm is pre-started, and the values of x(-2|-3), x(-1|-2), and x(0|-1) are extrapolated according to the algorithm model in step (b) in step 2;

4)y(0)有效判决,如T-3、T-2、T-1时刻均未出现非点,取第4拍观察值作为y(0);4) y(0) is a valid judgment, if no non-point occurs at T -3 , T -2 , and T -1 , the observation value of the fourth beat is taken as y(0);

注意:①非点判决方法见步骤4;②在“y(0)有效判决”期间,1PPS脉冲一直保持直通输出,直到滤波正常启动后,1PPS才按滤波算法预测值;③考虑到初始化时,晶振未充分稳定,晶振频率滤波值可能也不够准确,故在y(0)判断上,非点判决条件:“|y(n)-x(n|n-1)|≥3σ/τ”放宽为“y(n)-x(n|n-1)|≥5σ/τ”),σ为卫星接收机1PPS脉冲的随机误差,τ为y(n)的量化精度;Note: ① For the non-point judgment method, see step 4; ② During the period of "y(0) valid judgment", the 1PPS pulse is always output straight through, and the 1PPS does not predict the value according to the filtering algorithm until the filtering starts normally; ③ Considering the initialization, The crystal oscillator is not sufficiently stable, and the crystal oscillator frequency filter value may not be accurate enough. Therefore, in the judgment of y(0), the non-point judgment condition: "|y(n)-x(n|n-1)|≥3σ/τ" is relaxed is "y(n)-x(n|n-1)|≥5σ/τ"), σ is the random error of the 1PPS pulse of the satellite receiver, and τ is the quantization accuracy of y(n);

步骤3:读入测量值y(n)Step 3: Read in the measured value y(n)

读入卫星接收机输出的1PPS脉冲信号上升沿对应的本地时标;该步骤细分为2个步骤:Read in the local time scale corresponding to the rising edge of the 1PPS pulse signal output by the satellite receiver; this step is subdivided into 2 steps:

(a3)y(n)计算加权(a3)y(n) calculation weight

系统对1PPS脉冲的测量是通过对两个相位相差180°的时钟CLKHR计数得到的,为防止连续时间计数器溢出,测量值信息字宽度≥48bit,两个时标分别输出两组测量值:y1(n),y2(n);The measurement of the 1PPS pulse by the system is obtained by counting two clocks CLK HR with a phase difference of 180°. In order to prevent the continuous time counter from overflowing, the width of the measured value information word is ≥48 bits, and the two time stamps output two sets of measured values: y 1 (n), y 2 (n);

当|y1(n)-y2(n)|≤1时,y(n)=[y1(n)+y2(n)]/2;When |y 1 (n)-y 2 (n)|≤1, y(n)=[y 1 (n)+y 2 (n)]/2;

当|y1(n)-y2(n)|>1时,When |y 1 (n)-y 2 (n)|>1,

Figure BSA0000207667020000051
Figure BSA0000207667020000051

(b3)非点剔除(b3) Non-point culling

根据北斗板1PPS输出的脉冲精度,当|y(n)-x(n|n-1)|≥3σ/τ时,舍弃y(n),令x(n|n)=x(n|n-1),

Figure BSA0000207667020000052
According to the pulse precision of the Beidou board 1PPS output, when |y(n)-x(n|n-1)|≥3σ/τ, discard y(n), let x(n|n)=x(n|n -1),
Figure BSA0000207667020000052

步骤4:更新第n拍滤波值x(n|n)Step 4: Update the filter value x(n|n) for the nth beat

依据步骤2中(b)步中的算法模型,通过卫星1PPS脉冲信号的测量值y(n),获取系统1PPS秒脉冲信号平滑后的本地时标x(n|n);According to the algorithm model in step (b) in step 2, through the measured value y(n) of the satellite 1PPS pulse signal, obtain the smoothed local time scale x(n|n) of the system 1PPS second pulse signal;

步骤5:更新第n周期对第n+1周期预测值x(n+1|n)Step 5: Update the predicted value x(n+1|n) of the nth cycle for the n+1th cycle

依据步骤2中(b)步中的算法模型,通过第n拍滤波值x(n|n)和晶振频率的第n拍滤波值

Figure BSA0000207667020000053
计算第n周期对第n+1周期预测值x(n+1|n);According to the algorithm model in step (b) in step 2, the filter value x(n|n) of the nth beat and the filter value of the nth beat of the crystal frequency are
Figure BSA0000207667020000053
Calculate the predicted value x(n+1|n) of the nth cycle to the n+1th cycle;

步骤6:更新晶振频率估计值f(n)Step 6: Update the crystal frequency estimate f(n)

依据卫星1PPS脉冲信号的测量值y(n),采用一元线性回归模型对f(n)进行求取:According to the measured value y(n) of the satellite 1PPS pulse signal, f(n) is calculated by using a linear regression model:

Figure BSA0000207667020000061
Figure BSA0000207667020000061

其中:in:

f(n)为第n拍晶振频率估计值;f(n) is the estimated value of the crystal oscillator frequency of the nth beat;

xi为第i个有效的1PPS脉冲序号,即xi=i,i=1,2,3,4,……,n,如果存在第k拍为非点,则序号xk舍弃,即xi序列变为:……xk-2,xk-1,xk+1,xk+2……;x i is the i-th effective 1PPS pulse sequence number, that is, x i =i, i=1, 2, 3, 4,..., n, if there is a non-point in the k-th beat, the sequence number x k is discarded, that is, x The i sequence becomes: ... x k-2 , x k-1 , x k+1 , x k+2 ......;

Figure BSA0000207667020000062
size(x)为序号总数,如果存在j个非点,序号总数size(x)=n-j,
Figure BSA0000207667020000063
也应对应剔除j个非点所对应的序号;
Figure BSA0000207667020000062
size(x) is the total number of serial numbers. If there are j non-points, the total number of serial numbers size(x)=nj,
Figure BSA0000207667020000063
The serial numbers corresponding to j non-points should also be eliminated correspondingly;

yi为第i拍的1PPS脉冲的观测值y(i);如果第k拍为非点,yk舍弃,同时,对应序号xk也舍弃,即如果y5为非点时,xi序列变为:1,2,3,4,6,7……;size(x)=n-1;y i is the observed value y(i) of the 1PPS pulse in the i-th beat; if the k-th beat is a non-point, y k is discarded, and at the same time, the corresponding serial number x k is also discarded, that is, if y 5 is a non-point, the x i sequence Becomes: 1, 2, 3, 4, 6, 7...; size(x)=n-1;

Figure BSA0000207667020000064
size(y)为观测值总点数,size(y)=size(x);
Figure BSA0000207667020000064
size(y) is the total number of observations, size(y)=size(x);

注意:Notice:

①参与计算的

Figure BSA0000207667020000066
均为有效y(n)值;①Participate in the calculation
Figure BSA0000207667020000066
All are valid y(n) values;

②在守时状态f(n)暂停计算,退出守时后,历史点仍可正常使用,继续计算;② In the punctuality state f(n), the calculation is suspended, and after exiting the punctuality, the historical point can still be used normally, and the calculation continues;

③如果受计算规模限制,需要对y(n)进行抽样时,可按如下步骤进行:③ If it is limited by the calculation scale, when y(n) needs to be sampled, the following steps can be performed:

当计算规模为k点,扩散次数为q次时,则扩散完成持续时间r为:When the calculation scale is k points and the number of diffusion is q times, the diffusion completion duration r is:

Figure BSA0000207667020000065
Figure BSA0000207667020000065

具体步骤如下:Specific steps are as follows:

Step1:定义第一个有效观测为y1=y(1),序号为x1=x(1)=1,i=1;Step1: Define the first valid observation as y 1 =y(1), the serial number is x 1 =x(1)=1, i=1;

Step2:i≤k时,根据实际点数,实时计算y(n);Step2: When i≤k, calculate y(n) in real time according to the actual number of points;

Step3:k<i≤2k时,滑窗计算y(n);Step3: When k<i≤2k, the sliding window calculates y(n);

Step4:2k<i≤3k时,开始第1次扩散,扩散规则为:Step4: When 2k<i≤3k, start the first diffusion, and the diffusion rule is:

①i=2k+1时,取k+1、k+3、k+4、k+5、k+6、...、2k、2k+1;①When i=2k+1, take k+1, k+3, k+4, k+5, k+6,..., 2k, 2k+1;

②i=2k+2时,取k+1、k+3、k+5、k+6、...、2k、2k+1、2k+2;②When i=2k+2, take k+1, k+3, k+5, k+6,..., 2k, 2k+1, 2k+2;

③以此类推;③ and so on;

④i=3k-1,i=3k时,取k+1、k+3、...、3k-3、3k-1第1次扩散完成;④ When i=3k-1, i=3k, take k+1, k+3, ..., 3k-3, 3k-1 to complete the first diffusion;

Step5:3k<i≤4k,开始第2次扩散,扩散规则为:Step5: 3k<i≤4k, start the second diffusion, the diffusion rule is:

①i=3k+1,i=3k+2时,取k+1、k+4、k+7、k+9、k+11、k+13、...、3k-1、3k+1;①When i=3k+1, i=3k+2, take k+1, k+4, k+7, k+9, k+11, k+13,..., 3k-1, 3k+1;

②i=3k+3,i=3k+4时,取k+1、k+4、k+7、k+10、k+13、...、3k-1、3k+1、3k+3;②When i=3k+3, i=3k+4, take k+1, k+4, k+7, k+10, k+13,..., 3k-1, 3k+1, 3k+3;

③以此类推;③ and so on;

④i=4k-1,i=4k时,取k+1、K+4、k+7...、4k-5、4k-2第2次扩散完成;④ When i=4k-1, i=4k, take k+1, K+4, k+7..., 4k-5, 4k-2 and the second diffusion is completed;

Step6:依照4~5步所描述方法,当4k<i≤5k,开始进行第3次扩散;Step6: According to the method described in steps 4 to 5, when 4k<i≤5k, start the third diffusion;

Step7:依照4~5步所描述方法,当5k<i≤6k,开始进行第4次扩散;Step7: According to the method described in steps 4 to 5, when 5k<i≤6k, start the fourth diffusion;

Step8:以此类推,当(q+1)k<i≤(q+2)k,开始进行第q次扩散;Step8: By analogy, when (q+1)k<i≤(q+2)k, start the qth diffusion;

Step9:i=(q+2)k时,第,q次扩散完成,已形成点距为q+1的等间隔抽样,当i≥(q+2)k时,按第q次扩散后的抽样状态,即使用固定点距为q+1,滑窗计算y(n);Step9: When i=(q+2)k, the qth diffusion is completed, and the sampling at equal intervals with a point distance of q+1 has been formed. When i≥(q+2)k, according to the qth diffusion Sampling state, that is, using a fixed point distance of q+1, the sliding window calculates y(n);

对上述抽样算法的几点说明:A few notes on the sampling algorithm above:

①如果在以上过程中,进入守时状态,算法暂停运行,退出守时后,方能继续使用有效的yn参与y(n)计算,注意:序号xi始终与绝对时间对应;①If you enter the punctual state during the above process, the algorithm suspends operation. After exiting punctuality, you can continue to use the valid y n to participate in the y(n) calculation. Note: the serial number x i always corresponds to the absolute time;

②第1次扩散在1h后进行,此时晶振稳定度应达到标称值,渡过晶振的不稳定期;②The first diffusion is carried out after 1h, at this time, the stability of the crystal oscillator should reach the nominal value, and the unstable period of the crystal oscillator will pass;

③第1次扩散开始后,直到第14次扩散完成,所有的数据均参与了y(n)的计算,故应严格检查y(n)抽样逻辑,避免非点等影响y(n)的计算精度;③ After the first diffusion starts, until the 14th diffusion is completed, all data participate in the calculation of y(n), so the sampling logic of y(n) should be strictly checked to avoid non-points and other influences on the calculation of y(n) precision;

步骤7:守时状态Step 7: Punctuality Status

当卫星接收机输出的1PPS脉冲信号不稳定或中断时,系统进入守时状态;守时状态可细分为如下3个步骤:When the 1PPS pulse signal output by the satellite receiver is unstable or interrupted, the system enters the punctual state; the punctual state can be subdivided into the following three steps:

(a7)守时状态下的参数赋值(a7) Parameter assignment in punctual state

x(n|n)=x(n|n-1),

Figure BSA0000207667020000081
x(n|n)=x(n|n-1),
Figure BSA0000207667020000081

(b7)守时状态的进入条件(b7) Entry conditions for the punctual state

满足下列条件之一,进入守时状态:One of the following conditions is met to enter the punctual state:

①卫星接收机送出“授时不正常”报文;①The satellite receiver sends out the message "Time service is abnormal";

②连续3拍出现非点时,进入守时模式;②When there is a non-point in 3 consecutive beats, enter the time-keeping mode;

(c7)f(n)的使用原则(c7) Principles of use of f(n)

1)系统启动后恒温晶振温度稳定前,满足守时条件时,f(n)使用出厂装订频率或连续24h测量的f(n)更新值;1) After the system is started and before the temperature of the constant temperature crystal oscillator is stable, when the punctuality conditions are met, f(n) is updated using the factory binding frequency or f(n) measured continuously for 24 hours;

2)系统启动后,有效的y(n)大于3600点且满足守时条件时,使用当前频率估计值f(n)进行守时,否则,仍然使用出厂装订的Y(n)值或连续24h测量的Y(n)更新值。2) After the system is started, when the effective y(n) is greater than 3600 points and the punctuality condition is met, use the current frequency estimate f(n) for punctuality, otherwise, still use the factory-bound Y(n) value or continue for 24h Measured Y(n) update value.

在本发明的一个具体实施例中,α、β分别为0.4和0.1。In a specific embodiment of the present invention, α and β are 0.4 and 0.1, respectively.

在本发明的另一个具体实施例中,k=1800,q=14,r=8h。In another specific embodiment of the present invention, k=1800, q=14, and r=8h.

本发明的系统及方法通过卫星接收机输出的1PPS脉冲对恒温晶振频率进行估计,然后直接依据估计的频率值形成本地秒脉冲信号,从而实现对UCT时间跟踪和同步,并对卫星时间进行授时和守时滤波。该系统和方法无需使用D/A转换器对恒温晶振进行驯服,晶振可快速进入稳定期,约30s就可完成对1PPS信号的锁定,其锁定速度优于晶振频率校准法一个数量级以上。The system and method of the present invention estimate the frequency of the constant temperature crystal oscillator through the 1PPS pulse output by the satellite receiver, and then directly form a local second pulse signal according to the estimated frequency value, thereby realizing the tracking and synchronization of the UCT time, and the timing and synchronization of the satellite time. Punctuality filtering. The system and method do not need to use a D/A converter to tame the constant temperature crystal oscillator, the crystal oscillator can quickly enter a stable period, and the 1PPS signal can be locked in about 30s, and the locking speed is more than an order of magnitude better than the crystal oscillator frequency calibration method.

本发明的系统及方法在接收来自卫星接收机的1PPS秒脉冲信号之后,对其进行滤波并剔除非点、补齐漏点和减小随机起伏后,输出稳定的1PPS秒脉冲信号;对恒温晶振输出的时钟信号频率进行测量和估计,当卫星接收机输出的1PPS信号出现中断、平移、超差等非正常状态时,系统利用时钟信号的估计频率进行守时,以保证本地1PPS信号的平稳。本发明具有通用性强,电路结构简单,1PPS信号锁定速度快等优点。After receiving the 1PPS second pulse signal from the satellite receiver, the system and method of the invention outputs a stable 1PPS second pulse signal after filtering and eliminating the non-points, filling the missing points and reducing random fluctuations; The frequency of the output clock signal is measured and estimated. When the 1PPS signal output by the satellite receiver has abnormal states such as interruption, translation, and out-of-tolerance, the system uses the estimated frequency of the clock signal to keep time to ensure the stability of the local 1PPS signal. The invention has the advantages of strong versatility, simple circuit structure, fast locking speed of 1PPS signal and the like.

附图说明Description of drawings

图1为实现基于频率估计的卫星授时守时系统工作原理图;Fig. 1 is the working principle diagram of realizing the satellite time service punctuality system based on frequency estimation;

图2示出基于频率估计的卫星授时守时系统方法工作流程。FIG. 2 shows the workflow of the satellite timing system method based on frequency estimation.

具体实施方法Specific implementation method

下面结合附图对本发明的基于频率估计的卫星授时守时系统进行详细说明。The satellite timing system based on frequency estimation of the present invention will be described in detail below with reference to the accompanying drawings.

如图1所示,本发明提供一种基于频率估计的卫星授时守时系统,包括主控计算机、卫星接收机、恒温晶振和FPGA模块,具体如下所述。As shown in FIG. 1 , the present invention provides a satellite timing system based on frequency estimation, including a main control computer, a satellite receiver, a constant temperature crystal oscillator and an FPGA module, as described below.

卫星接收机,对天线接收的卫星信号进行处理、变换;实现卫星信号的捕获、跟踪、载波恢复和解调;向FPGA模块输出1PPS秒脉冲信号(以下简称为“1PPS卫星信号”)和授时电文等信息。The satellite receiver processes and transforms the satellite signal received by the antenna; realizes the capture, tracking, carrier recovery and demodulation of the satellite signal; outputs the 1PPS second pulse signal (hereinafter referred to as "1PPS satellite signal") and the timing message to the FPGA module and other information.

恒温晶振,向FPGA模块提供时钟基准,常见输出频率为10MHz,频率稳定度0.1~10ppb。The constant temperature crystal oscillator provides the clock reference to the FPGA module. The common output frequency is 10MHz, and the frequency stability is 0.1 to 10ppb.

FPGA模块,用于实现集成倍频器和连续时间计数器,形成本地连续时间标准;对卫星接收机送来的1PPS信号的时间间隔进行测量;输出滤波后的本地1PPS信号,该信号简称为“1PPS滤波”。The FPGA module is used to realize the integrated frequency multiplier and continuous time counter to form a local continuous time standard; measure the time interval of the 1PPS signal sent by the satellite receiver; output the filtered local 1PPS signal, which is referred to as "1PPS" for short filter".

在本发明的系统中,FPGA模块由倍频器、连续时间计数器、1PPS信号时间间隔测量器和本地1PPS信号产生器组成,这些模块均通过FPGA中的可编程逻辑单元实现,其中In the system of the present invention, the FPGA module is composed of a frequency multiplier, a continuous time counter, a 1PPS signal time interval measurer and a local 1PPS signal generator, and these modules are all implemented by programmable logic units in the FPGA, wherein

倍频器为一个数字锁相环,其将恒温晶振输出的10MHz频率倍频成高频时钟信号CLKHR并输出,本例中CLKHR的振荡频率为200MHz,也可依据系统设计需求设定其他合适时钟频率。The frequency multiplier is a digital phase-locked loop, which multiplies the 10MHz frequency output by the constant temperature crystal oscillator into a high-frequency clock signal CLK HR and outputs it. In this example, the oscillation frequency of CLK HR is 200MHz. Others can also be set according to the system design requirements. appropriate clock frequency.

连续时间计数器,其对来自倍频器的CLKHR频率信号进行连续时间计算,形成本地连续时间基准。为了减少时标步长,倍频器输出CLKHR_0和CLKHR_pi两路时钟信号,这两个信号在相位上相差180°,分别控制两个独立的连续时间计数器进行计数,形成本地时标1和本地时标2,每路时标最小步长为1/CLKHR(例如5ns),联合步长为1/2CLKHR(例如2.5ns)。本地时标由连续时间计数器(其计数时钟为恒温晶振)产生,稳定性很高。时标1分为两路,一路输出给1PPS信号时间间隔测量器,另一路输出给本地1PPS信号产生器;时标2输出给1PPS信号时间间隔测量器。A continuous time counter that performs continuous time calculations on the CLK HR frequency signal from the frequency multiplier to form a local continuous time reference. In order to reduce the time scale step size, the frequency multiplier outputs two clock signals CLK HR _0 and CLK HR _pi, which are 180° out of phase in phase, respectively control two independent continuous time counters to count, forming a local time scale 1 and local time stamp 2, the minimum step size of each time stamp is 1/CLK HR (for example, 5ns), and the combined step size is 1/2CLK HR (for example, 2.5ns). The local time scale is generated by a continuous time counter (its counting clock is a constant temperature crystal oscillator), and the stability is very high. Time stamp 1 is divided into two channels, one is output to the 1PPS signal time interval measurer, and the other is output to the local 1PPS signal generator; the time stamp 2 is output to the 1PPS signal time interval measurer.

1PPS信号时间间隔测量器对来自卫星接收机的“1PPS卫星”信号的前沿进行测量,形成“1PPS时标”信息送至主控计算机。The 1PPS signal time interval measurer measures the leading edge of the "1PPS satellite" signal from the satellite receiver to form the "1PPS time scale" information and send it to the main control computer.

本地1PPS信号产生器,接收来自连续时间计数器的“时标1”信息和主控计算机的“(n+1)秒数据”信息,当“时标1”与“(n+1)秒数据”相等时,形成“1PPS滤波”信号。The local 1PPS signal generator receives the "time stamp 1" information from the continuous time counter and the "(n+1) second data" information from the main control computer, when the "time stamp 1" and "(n+1) second data" information When equal, a "1PPS filtered" signal is formed.

主控计算机,用于全系统提供计算和显示控制服务,实现授时守时系统滤波算法。考虑到系统实时性、鲁棒性及程序编写可实现性需求,授时滤波器采用α~β滤波算法(《一种改进的α~β滤波算法》贺利文现代电子技术2012年第21期),守时滤波器采用一元线性回归算法(《应用回归分析》第5版何晓群、刘文卿编著中国人民大学出版社2019年7月第15~24页)。主控计算机获取FPGA模块中1PPS信号时间间隔测量器输出的1PPS时标,“1PPS时标”对应为1PPS卫星信号上升沿到来时的本地时标计数。依据“1PPS”脉冲在长稳态下均值误差为零的特点,主控计算机对各秒的“时标”信息进行统计滤波处理,估计出恒温晶振的中心频率与标称频率的误差大小,并对下一个“1PPS”秒脉冲的输出位置进行预测,形成新的本地1PPS预测秒数据“(n+1)秒数据”,输出给FPGA模块中的本地1PPS信号产生器。当卫星信号异常时,主控计算机将各寄存器参数固化,进入守时状态,保持“1PPS滤波”信号的稳定输出。由于频率源的高稳定性,可以有效保证本地时间的守时精度。The main control computer is used to provide calculation and display control services for the whole system, and realize the filtering algorithm of the timing system. Considering the system's real-time performance, robustness and program writing achievability requirements, the timing filter adopts α-β filtering algorithm ("An Improved α-β Filtering Algorithm" Holliman Modern Electronic Technology, 2012, No. 21), The punctual filter adopts the univariate linear regression algorithm (the fifth edition of "Applied Regression Analysis" edited by He Xiaoqun and Liu Wenqing, Renmin University of China Press, July 2019, pp. 15-24). The main control computer obtains the 1PPS time stamp output by the 1PPS signal time interval measurer in the FPGA module, and "1PPS time stamp" corresponds to the local time stamp count when the rising edge of the 1PPS satellite signal arrives. According to the characteristic that the mean error of "1PPS" pulse is zero in the long steady state, the main control computer performs statistical filtering processing on the "time scale" information of each second, and estimates the error between the center frequency of the constant temperature crystal oscillator and the nominal frequency, and Predict the output position of the next "1PPS" second pulse, form new local 1PPS predicted second data "(n+1) second data", and output it to the local 1PPS signal generator in the FPGA module. When the satellite signal is abnormal, the main control computer solidifies the parameters of each register, enters the punctual state, and maintains the stable output of the "1PPS filter" signal. Due to the high stability of the frequency source, the punctuality accuracy of the local time can be effectively guaranteed.

本发明的卫星授时守时系统通过高稳定频率源(恒温晶振)对卫星接收机输出的秒脉冲信号“1PPS卫星”进行滤波优化,补齐漏点、剔除非点、滤除相位噪声后,通过主控计算机和FPGA模块输出稳定度满足系统指标要求的本地秒脉冲信号“1PPS滤波”。同时,通过对“1PPS卫星”信号的长期统计,对恒温晶振的中心频率进行测量和估计,保证系统卫星信号异常时,守时模块继续正常输出秒脉冲信号,并保持“1PPS滤波”信号的输出稳定,满足守时精度要求。The satellite timing system of the present invention filters and optimizes the second pulse signal "1PPS satellite" output by the satellite receiver through a high-stable frequency source (constant temperature crystal oscillator). The main control computer and the FPGA module output the local pulse-per-second signal "1PPS filter" whose stability meets the requirements of the system index. At the same time, through the long-term statistics of the "1PPS satellite" signal, the center frequency of the constant temperature crystal oscillator is measured and estimated to ensure that when the system satellite signal is abnormal, the timing module continues to output the second pulse signal normally, and maintains the output of the "1PPS filtered" signal. Stable and meet the requirements of punctual accuracy.

如图2所示,本发明的基于频率估计的卫星授时守时系统的工作方法步骤如下:As shown in Figure 2, the working method steps of the satellite timing system based on frequency estimation of the present invention are as follows:

步骤1:连接系统Step 1: Connect the System

将本发明的系统各部分按图1所示关系连接;Each part of the system of the present invention is connected according to the relationship shown in Figure 1;

步骤2:初始化Step 2: Initialize

系统上电后,进行系统初始化,该步骤可细分为5个步骤:After the system is powered on, perform system initialization, which can be subdivided into 5 steps:

(a)直通输出(a) Thru output

上电后至滤波算法收敛前,为迅速给出UTC时间,采用直通方式,将卫星接收机送来的1PPS秒脉冲信号直接作为“1PPS滤波”信号输出;After power-on and before the convergence of the filtering algorithm, in order to quickly give the UTC time, the 1PPS second pulse signal sent by the satellite receiver is directly output as a "1PPS filtering" signal by using a pass-through method;

(b)参数初始化(b) parameter initialization

授时滤波器算法模型如下:The timing filter algorithm model is as follows:

x(n|n)=x(n|n-1)+α[y(n)-x(n|n-1)]x(n|n)=x(n|n-1)+α[y(n)-x(n|n-1)]

Figure BSA0000207667020000121
Figure BSA0000207667020000121

Figure BSA0000207667020000122
Figure BSA0000207667020000122

其中,x(n|n)为第n拍滤波值,x(n|n-1)为第n-1拍对第n拍预测值,

Figure BSA0000207667020000123
为第n拍频率滤波值,y(n)为第n拍测量值,x(n+1|n)为第n周期对第n+1周期预测值。α、β分别是“1PPS滤波”信号时差和频差的权系数,推荐值为0.4和0.1。Among them, x(n|n) is the filter value of the nth beat, x(n|n-1) is the prediction value of the n-1th beat to the nth beat,
Figure BSA0000207667020000123
is the frequency filtering value of the nth beat, y(n) is the measured value of the nth beat, and x(n+1|n) is the predicted value of the nth cycle to the n+1th cycle. α and β are the weight coefficients of the time difference and frequency difference of the "1PPS filtering" signal, respectively, and the recommended values are 0.4 and 0.1.

T0时刻滤波值:x(0|0)=y(0);Filter value at time T 0 : x(0|0)=y(0);

T0时刻频率滤波值:

Figure BSA0000207667020000124
Frequency filter value at time T 0 :
Figure BSA0000207667020000124

T1时刻预测值:

Figure BSA0000207667020000125
Predicted value at time T1 :
Figure BSA0000207667020000125

(c)T0时刻测量值y(0)的有效判决(c) Effective decision of the measured value y(0) at time T 0

1)卫星接收机送出“授时正常”报文;1) The satellite receiver sends a "time service normal" message;

2)恒温晶振稳定后(通常为180~600s),连续取3拍测量值,定义为:y(-3)、y(-2)、y(-1);2) After the constant temperature crystal oscillator is stable (usually 180-600s), take 3 consecutive beats of the measured value, which are defined as: y(-3), y(-2), y(-1);

3)滤波算法预启动,根据步骤2中(b)步中的算法模型外推x(-2|-3)、x(-1|-2)、x(0|-1)的值;3) The filtering algorithm is pre-started, and the values of x(-2|-3), x(-1|-2), and x(0|-1) are extrapolated according to the algorithm model in step (b) in step 2;

4)y(0)有效判决,如T-3、T-2、T-1时刻均未出现非点,取第4拍观察值作为y(0)。4) y(0) is a valid judgment. For example, there is no non-point at time T -3 , T -2 , and T -1 , and the observation value of the fourth beat is taken as y(0).

(注意:①非点判决方法见步骤4;②在“y(0)有效判决”期间,1PPS脉冲一直保持直通输出,直到滤波正常启动后,1PPS才按滤波算法预测值;③考虑到初始化时,晶振未充分稳定,晶振频率滤波值可能也不够准确,故在y(0)判断上,非点判决条件:“|y(n)-x(n|n-1)|≥3σ/τ”可放宽为“y(n)-x(n|n-1)|≥5σ/τ”),σ为卫星接收机1PPS脉冲的随机误差,τ为y(n)的量化精度,本例中例如为联合步长2.5ns。(Note: ① For the non-point judgment method, see step 4; ② During the period of "y(0) valid judgment", the 1PPS pulse is always output straight through, and the 1PPS will not predict the value according to the filtering algorithm until the filtering starts normally; ③ Considering the initialization , the crystal oscillator is not sufficiently stable, and the crystal oscillator frequency filter value may not be accurate enough, so in the judgment of y(0), the non-point judgment condition: "|y(n)-x(n|n-1)|≥3σ/τ" It can be relaxed to "y(n)-x(n|n-1)|≥5σ/τ"), σ is the random error of the satellite receiver 1PPS pulse, and τ is the quantization accuracy of y(n). In this example, for example is the joint step size of 2.5ns.

步骤3:读入测量值y(n)Step 3: Read in the measured value y(n)

读入卫星接收机输出的1PPS脉冲信号上升沿对应的本地时标。该步骤可细分为2个步骤:Read in the local time scale corresponding to the rising edge of the 1PPS pulse signal output by the satellite receiver. This step can be subdivided into 2 steps:

(a)y(n)计算加权(a)y(n) calculation weight

系统对1PPS脉冲的测量是通过对两个相位相差180°的时钟CLKHR计数得到的,当CLKHR时钟频率为200MHz时,理论上测量精度±2.5ns,为了防止连续时间计数器溢出,测量值信息字宽度应尽量宽,以≥48bit为宜(如选48bit,即390h一次单向循环),两个时标分别输出两组测量值:y1(n),y2(n);The measurement of the 1PPS pulse by the system is obtained by counting the two clocks CLK HR with a phase difference of 180°. When the CLK HR clock frequency is 200MHz, the theoretical measurement accuracy is ±2.5ns. In order to prevent the continuous time counter from overflowing, the measurement value information The word width should be as wide as possible, preferably ≥48bit (if 48bit is selected, that is, a one-way cycle of 390h), the two time scales output two sets of measurement values: y 1 (n), y 2 (n);

当|y1(n)-y2(n)|≤1时,y(n)=[y1(n)+y2(n)]/2;When |y 1 (n)-y 2 (n)|≤1, y(n)=[y 1 (n)+y 2 (n)]/2;

当|y1(n)-y2(n)|>1时,When |y 1 (n)-y 2 (n)|>1,

Figure BSA0000207667020000141
Figure BSA0000207667020000141

(b)非点剔除(b) Non-point culling

根据北斗板1PPS输出的脉冲精度,当|y(n)-x(n|n-1)|≥3σ/τ时,舍弃y(n),令x(n|n)=x(n|n-1),

Figure BSA0000207667020000142
According to the pulse precision of the Beidou board 1PPS output, when |y(n)-x(n|n-1)|≥3σ/τ, discard y(n), let x(n|n)=x(n|n -1),
Figure BSA0000207667020000142

步骤4:更新第n拍滤波值x(n|n)Step 4: Update the filter value x(n|n) for the nth beat

依据步骤2中(b)步中的算法模型,通过卫星1PPS脉冲信号的测量值y(n),获取系统1PPS秒脉冲信号平滑后的本地时标x(n|n)。According to the algorithm model in step (b) of step 2, through the measured value y(n) of the satellite 1PPS pulse signal, obtain the smoothed local time scale x(n|n) of the system 1PPS second pulse signal.

步骤5:更新第n周期对第n+1周期预测值x(n+1|n)Step 5: Update the predicted value x(n+1|n) of the nth cycle for the n+1th cycle

依据步骤2中(b)步中的算法模型,通过第n拍滤波值x(n|n)和晶振频率的第n拍滤波值

Figure BSA0000207667020000143
计算第n周期对第n+1周期预测值x(n+1|n)。According to the algorithm model in step (b) in step 2, the filter value x(n|n) of the nth beat and the filter value of the nth beat of the crystal frequency are
Figure BSA0000207667020000143
Calculate the predicted value x(n+1|n) for the nth cycle versus the n+1th cycle.

步骤6:更新晶振频率估计值f(n)Step 6: Update the crystal frequency estimate f(n)

依据卫星1PPS脉冲信号的测量值y(n),采用一元线性回归模型对f(n)进行求取:According to the measured value y(n) of the satellite 1PPS pulse signal, f(n) is calculated by using a linear regression model:

Figure BSA0000207667020000144
Figure BSA0000207667020000144

其中:in:

f(n)为第n拍晶振频率估计值;f(n) is the estimated value of the crystal oscillator frequency of the nth beat;

xi为第i个有效的1PPS脉冲序号,即xi=i,i=1,2,3,4,……,n,如果存在第k拍为非点,则序号xk舍弃,即xi序列变为:……xk-2,xk-1,xk+1,xk+2……;x i is the i-th effective 1PPS pulse sequence number, that is, x i =i, i=1, 2, 3, 4,..., n, if there is a non-point in the k-th beat, the sequence number x k is discarded, that is, x The i sequence becomes: ... x k-2 , x k-1 , x k+1 , x k+2 ......;

Figure BSA0000207667020000145
size(x)为序号总数,如果存在j个非点,序号总数size(x)=n-j,
Figure BSA0000207667020000151
也应对应剔除j个非点所对应的序号;
Figure BSA0000207667020000145
size(x) is the total number of serial numbers. If there are j non-points, the total number of serial numbers size(x)=nj,
Figure BSA0000207667020000151
The serial numbers corresponding to j non-points should also be eliminated correspondingly;

yi为第i拍的1PPS脉冲的观测值y(i);如果第k拍为非点,yk舍弃,同时,对应序号xk也舍弃,即如果y5为非点时,xi序列变为:1,2,3,4,6,7……;size(x)=n-1;y i is the observed value y(i) of the 1PPS pulse in the i-th beat; if the k-th beat is a non-point, y k is discarded, and at the same time, the corresponding serial number x k is also discarded, that is, if y 5 is a non-point, the x i sequence Becomes: 1, 2, 3, 4, 6, 7...; size(x)=n-1;

Figure BSA0000207667020000152
size(y)为观测值总点数,size(y)=size(x);
Figure BSA0000207667020000152
size(y) is the total number of observations, size(y)=size(x);

注意:Notice:

①参与计算的y(n)均为有效y(n)值;①The y(n) involved in the calculation are all valid y(n) values;

②在守时状态f(n)暂停计算,退出守时后,历史点仍可正常使用,继续计算;② In the punctuality state f(n), the calculation is suspended, and after exiting the punctuality, the historical point can still be used normally, and the calculation continues;

③如果受计算规模限制,需要对y(n)进行抽样时,可按如下步骤进行:③ If it is limited by the calculation scale, when y(n) needs to be sampled, the following steps can be performed:

下面以计算规模k=1800点,扩散次数14次为例,扩散完成持续时间为8h。The following takes the calculation scale k=1800 points, the diffusion times 14 times as an example, and the diffusion completion duration is 8h.

1、定义第一个有效观测为y1=y(1),序号为x1=x(1)=1,i=1;1. Define the first valid observation as y 1 =y(1), the serial number is x 1 =x(1)=1, i=1;

2、i≤k时,根据实际点数,实时计算y(n);2. When i≤k, calculate y(n) in real time according to the actual number of points;

3、k<i≤2k时,滑窗计算y(n);3. When k<i≤2k, the sliding window calculates y(n);

4、2k<i≤3k时,开始第1次扩散,扩散规则为:4. When 2k<i≤3k, the first diffusion starts, and the diffusion rule is:

①i=2k+1时,取k+1、k+3、k+4、k+5、k+6、...、2k、2k+1;①When i=2k+1, take k+1, k+3, k+4, k+5, k+6,..., 2k, 2k+1;

②i=2k+2时,取k+1、k+3、k+5、k+6、...、2k、2k+1、2k+2;②When i=2k+2, take k+1, k+3, k+5, k+6,..., 2k, 2k+1, 2k+2;

③以此类推;③ and so on;

④i=3k-1,i=3k时,取k+1、k+3、...、3k-3、3k-1第1次扩散完成;④ When i=3k-1, i=3k, take k+1, k+3, ..., 3k-3, 3k-1 to complete the first diffusion;

5、3k<i≤4k,开始第2次扩散,扩散规则为:5. 3k<i≤4k, start the second diffusion, the diffusion rule is:

①i=3k+1,i=3k+2时,取k+1、k+4、k+7、k+9、k+11、k+13、...、3k-1、3k+1;①When i=3k+1, i=3k+2, take k+1, k+4, k+7, k+9, k+11, k+13,..., 3k-1, 3k+1;

②i=3k+3,i=3k+4时,取k+1、k+4、k+7、k+10、k+13、...、3k-1、3k+1、3k+3;②When i=3k+3, i=3k+4, take k+1, k+4, k+7, k+10, k+13,..., 3k-1, 3k+1, 3k+3;

③以此类推;③ and so on;

④i=4k-1,i=4k时,取k+1、K+4、k+7...、4k-5、4k-2第2次扩散完成;④ When i=4k-1, i=4k, take k+1, K+4, k+7..., 4k-5, 4k-2 and the second diffusion is completed;

6、依照4~5步所描述方法,当4k<i≤5k,开始进行第3次扩散;6. According to the method described in steps 4 to 5, when 4k<i≤5k, start the third diffusion;

7、依照4~5步所描述方法,当5k<i≤6k,开始进行第4次扩散;7. According to the method described in steps 4 to 5, when 5k<i≤6k, start the fourth diffusion;

8、以此类推,当15k<i≤16k,开始进行第14次扩散;8. By analogy, when 15k<i≤16k, the 14th diffusion begins;

9、i=16k时,第14次扩散完成,已形成点距为15的等间隔抽样,当i≥16k时,按第14次扩散后的抽样状态(即使用固定点距为15)滑窗计算y(n);9. When i=16k, the 14th diffusion is completed, and the sampling at equal intervals with a point distance of 15 has been formed. When i≥16k, the sliding window is performed according to the sampling state after the 14th diffusion (that is, a fixed point distance of 15 is used). compute y(n);

对上述抽样算法的几点说明:A few notes on the sampling algorithm above:

①如果在以上过程中,进入守时状态,算法暂停运行,退出守时后,方能继续使用有效的yn参与y(n)计算,注意:序号xi始终与绝对时间对应;①If you enter the punctual state during the above process, the algorithm suspends operation. After exiting punctuality, you can continue to use the valid y n to participate in the y(n) calculation. Note: the serial number x i always corresponds to the absolute time;

②第1次扩散在1h后进行,此时晶振稳定度应达到标称值,渡过晶振的不稳定期;②The first diffusion is carried out after 1h. At this time, the stability of the crystal oscillator should reach the nominal value, and the unstable period of the crystal oscillator will pass;

③第1次扩散开始后,直到第14次扩散完成,所有的数据均参与了y(n)的计算,故应严格检查y(n)抽样逻辑,避免非点等影响y(n)的计算精度。③ After the first diffusion starts, until the 14th diffusion is completed, all data participate in the calculation of y(n), so the sampling logic of y(n) should be strictly checked to avoid non-points and other influences on the calculation of y(n) precision.

步骤7:守时状态Step 7: Punctuality Status

当卫星接收机输出的1PPS脉冲信号不稳定或中断时,系统进入守时状态。守时状态可细分为如下3个步骤:When the 1PPS pulse signal output by the satellite receiver is unstable or interrupted, the system enters the punctual state. The punctuality status can be subdivided into the following 3 steps:

(a)守时状态下的参数赋值(a) Parameter assignment in punctual state

x(n|n)=x(n|n-1),

Figure BSA0000207667020000171
x(n|n)=x(n|n-1),
Figure BSA0000207667020000171

(b)守时状态的进入条件(b) Entry conditions for the punctual state

满足下列条件之一,进入守时状态:One of the following conditions is met to enter the punctual state:

①卫星接收机送出“授时不正常”报文;①The satellite receiver sends out the message "Time service is abnormal";

②连续3拍出现非点时,进入守时模式。②When there is a non-point in 3 consecutive beats, enter the time-keeping mode.

(c)f(n)的使用原则(c) Principles for the use of f(n)

1)系统启动后恒温晶振温度稳定前,满足守时条件时,f(n)使用出厂装订频率或连续24h测量的f(n)更新值。1) After the system is started and before the temperature of the constant temperature crystal oscillator is stable, when the punctuality condition is met, f(n) is updated using the factory binding frequency or f(n) measured continuously for 24 hours.

2)系统启动后,有效的y(n)大于3600点且满足守时条件时,使用当前频率估计值f(n)进行守时,否则,仍然使用出厂装订的Y(n)值或连续24h测量的Y(n)更新值。2) After the system is started, when the effective y(n) is greater than 3600 points and the punctuality condition is met, use the current frequency estimate f(n) for punctuality, otherwise, still use the factory-bound Y(n) value or continue for 24h Measured Y(n) update value.

本发明的方法具备如下优点:The method of the present invention has the following advantages:

本发明的系统及方法接收来自卫星接收机的1PPS秒脉冲信号,进行滤波并剔除非点、补齐漏点和减小随机起伏后,输出稳定的1PPS秒脉冲信号;对恒温晶振输出的时钟信号频率进行测量和估计,当卫星接收机输出的1PPS信号出现中断、平移、超差等非正常状态时,系统利用时钟信号的估计频率进行守时,以保证本地1PPS信号的平稳,从而实现本发明。该方法具有通用性强,无需使用D/A转换器对恒温晶振进行驯服,1PPS信号锁定速度快等优点。The system and method of the present invention receive the 1PPS second pulse signal from the satellite receiver, filter and eliminate the non-points, fill in the missing points and reduce random fluctuations, and then output a stable 1PPS second pulse signal; The frequency is measured and estimated. When the 1PPS signal output by the satellite receiver has abnormal states such as interruption, translation, and out of tolerance, the system uses the estimated frequency of the clock signal to be punctual to ensure the stability of the local 1PPS signal, thereby realizing the present invention. . The method has the advantages of strong versatility, no need to use a D/A converter to tame the constant temperature crystal oscillator, and fast locking speed of the 1PPS signal.

1、通用性强1. Strong versatility

该系统不仅可用于卫星授时系统的时间滤波,也可用于其他授时系统的时间滤波和平滑,通用性强。The system can not only be used for time filtering of satellite timing systems, but also for time filtering and smoothing of other timing systems, with strong versatility.

2、电路结构简单2, the circuit structure is simple

由于采用频率估计方法进行时间滤波和预测,无需使用D/A转换器对晶振频率进行驯服,电路结构较传统授时系统简单。Since the frequency estimation method is used for time filtering and prediction, there is no need to use a D/A converter to tame the frequency of the crystal oscillator, and the circuit structure is simpler than the traditional timing system.

3、1PPS信号锁定速度快3. 1PPS signal locking speed is fast

传统授时系统对晶振频率进行驯服时,需要不断调整D/A转换器的输出电压,恒温晶振稳定时间长,1PPS信号锁定速度慢。采用本发明系统,卫星接收机1PPS信号输出后,利用晶振短期稳定度高的特点,系统算法可快速(30s内)完成1PPS信号锁定;利用卫星1PPS信号长期稳定度高的特点,系统算法进行频率估计,又可保证守时精度满足需求。When the traditional timing system tames the frequency of the crystal oscillator, it is necessary to continuously adjust the output voltage of the D/A converter, the constant temperature crystal oscillator has a long stabilization time, and the 1PPS signal locking speed is slow. Using the system of the invention, after the satellite receiver 1PPS signal is output, the system algorithm can quickly (within 30s) complete the 1PPS signal locking by utilizing the high short-term stability of the crystal oscillator; using the high long-term stability of the satellite 1PPS signal, the system algorithm performs frequency It can also ensure that the punctuality accuracy meets the requirements.

Claims (6)

1.一种基于频率估计的卫星授时守时系统,其特征在于,包括主控计算机、卫星接收机、恒温晶振和FPGA模块;其中1. a satellite timing system based on frequency estimation, is characterized in that, comprises main control computer, satellite receiver, constant temperature crystal oscillator and FPGA module; Wherein 卫星接收机,其对天线接收的卫星信号进行处理、变换;实现卫星信号的捕获、跟踪、载波恢复和解调;向FPGA模块输出“1PPS卫星信号”和授时电文信息;The satellite receiver, which processes and transforms the satellite signal received by the antenna; realizes the capture, tracking, carrier recovery and demodulation of the satellite signal; outputs "1PPS satellite signal" and timing message information to the FPGA module; 恒温晶振,其向FPGA模块提供时钟基准;An oven-controlled crystal oscillator, which provides a clock reference to the FPGA module; FPGA模块,其用于实现集成倍频器和连续时间计数器,形成本地连续时间标准;对卫星接收机送来的1PPS信号的时间间隔进行测量;输出滤波后的本地1PPS信号,也就是“1PPS滤波”;The FPGA module is used to realize the integrated frequency multiplier and continuous time counter to form a local continuous time standard; measure the time interval of the 1PPS signal sent by the satellite receiver; output the filtered local 1PPS signal, that is, "1PPS filter" "; 主控计算机,其用于全系统提供计算和显示控制服务,实现授时守时系统滤波算法;主控计算机获取FPGA模块中1PPS信号时间间隔测量器输出的“1PPS时标”,“1PPS时标”对应为“1PPS卫星信号”上升沿到来时的本地时标计数;依据“1PPS”脉冲在长稳态下均值误差为零的特点,主控计算机对各秒的“时标”信息进行统计滤波处理,估计出恒温晶振的中心频率与标称频率的误差大小,并对下一个“1PPS”秒脉冲的输出位置进行预测,形成新的本地1PPS预测秒数据“(n+1)秒数据”,输出给FPGA模块中的本地1PPS信号产生器;当卫星信号异常时,主控计算机将各寄存器参数固化,进入守时状态,保持“1PPS滤波”信号的稳定输出。The main control computer is used to provide calculation and display control services for the whole system, and realize the filtering algorithm of the timing system; the main control computer obtains the "1PPS time scale" and "1PPS time scale" output by the 1PPS signal time interval measurer in the FPGA module. Corresponds to the local time scale count when the rising edge of the "1PPS satellite signal" arrives; according to the characteristic that the mean error of the "1PPS" pulse is zero in the long steady state, the main control computer performs statistical filtering on the "time scale" information of each second. , estimate the error between the center frequency of the constant temperature crystal oscillator and the nominal frequency, and predict the output position of the next "1PPS" second pulse to form a new local 1PPS predicted second data "(n+1) second data", output To the local 1PPS signal generator in the FPGA module; when the satellite signal is abnormal, the main control computer solidifies the parameters of each register, enters the punctual state, and maintains the stable output of the "1PPS filter" signal. 2.如权利要求1所述的基于频率估计的卫星授时守时系统,其特征在于,FPGA模块由倍频器、连续时间计数器、1PPS信号时间间隔测量器和本地1PPS信号产生器组成,这些模块均通过FPGA中的可编程逻辑单元实现,其中2. the satellite timing system based on frequency estimation as claimed in claim 1, is characterized in that, FPGA module is made up of frequency multiplier, continuous time counter, 1PPS signal time interval measurer and local 1PPS signal generator, these modules All are implemented by programmable logic units in FPGA, where 倍频器为一个数字锁相环,其将恒温晶振输出的10MHz频率倍频成高频时钟信号CLKHR并输出;The frequency multiplier is a digital phase-locked loop, which multiplies the 10MHz frequency output by the constant temperature crystal oscillator into a high-frequency clock signal CLK HR and outputs it; 连续时间计数器,其对来自倍频器的CLKHR频率信号进行连续时间计算,形成本地连续时间基准;为了减少时标步长,倍频器输出CLKHR_0和CLKHR_pi两路时钟信号,这两个信号在相位上相差180°,分别控制两个独立的连续时间计数器进行计数,形成本地时标1和本地时标2,每路时标最小步长为1/CLKHR,联合步长为1/2CLKHR;时标1分为两路,一路输出给1PPS信号时间间隔测量器,另一路输出给本地1PPS信号产生器;时标2输出给1PPS信号时间间隔测量器;Continuous time counter, which performs continuous time calculation on the CLK HR frequency signal from the frequency multiplier to form a local continuous time reference; in order to reduce the time scale step, the frequency multiplier outputs two clock signals CLK HR _0 and CLK HR _pi, which are The two signals differ by 180° in phase, respectively control two independent continuous time counters to count, forming local time stamp 1 and local time stamp 2, the minimum step size of each time stamp is 1/CLK HR , and the joint step size is 1/2CLK HR ; Time stamp 1 is divided into two channels, one is output to the 1PPS signal time interval measurer, and the other is output to the local 1PPS signal generator; Time stamp 2 is output to the 1PPS signal time interval measurer; 1PPS信号时间间隔测量器,其对来自卫星接收机的“1PPS卫星”信号的前沿进行测量,形成“1PPS时标”信息送至主控计算机;1PPS signal time interval measurer, which measures the leading edge of the "1PPS satellite" signal from the satellite receiver, forms "1PPS time scale" information and sends it to the main control computer; 本地1PPS信号产生器,其接收来自连续时间计数器的“时标1”信息和主控计算机的“(n+1)秒数据”信息,当“时标1”与“(n+1)秒数据”相等时,形成“1PPS滤波”信号。The local 1PPS signal generator, which receives the "time stamp 1" information from the continuous time counter and the "(n+1) second data" information from the main control computer, when the "time stamp 1" and "(n+1) second data" information When equal, a "1PPS filtered" signal is formed. 3.如权利要求2所述的基于频率估计的卫星授时守时系统,其特征在于,本地时标1和本地时标2,每路时标最小步长为5ns,联合步长为2.5ns。3 . The satellite timing system based on frequency estimation as claimed in claim 2 , wherein the local time scale 1 and the local time scale 2 have a minimum step size of 5ns for each channel, and a combined step size of 2.5ns. 4 . 4.一种基于频率估计的卫星授时守时系统的工作方法,其特征在于,步骤如下:4. a working method of the satellite timing system based on frequency estimation, is characterized in that, step is as follows: 步骤1:连接系统Step 1: Connect the System 将如权利要求1至3的任何一项所述的系统的各部分进行连接;connecting parts of a system as claimed in any one of claims 1 to 3; 步骤2:初始化Step 2: Initialize 系统上电后,进行系统初始化,该步骤细分为5个步骤:After the system is powered on, perform system initialization, which is subdivided into 5 steps: (a2)直通输出(a2) Thru output 上电后至滤波算法收敛前,为迅速给出UTC时间,采用直通方式,将卫星接收机送来的1PPS秒脉冲信号直接作为“1PPS滤波”信号输出;After power-on and before the convergence of the filtering algorithm, in order to quickly give the UTC time, the 1PPS second pulse signal sent by the satellite receiver is directly output as a "1PPS filtering" signal by using a pass-through method; (b2)参数初始化(b2) Parameter initialization 授时滤波器算法模型如下:The timing filter algorithm model is as follows: x(n|n)=x(n|n-1)+α[y(n)-x(n|n-1)]x(n|n)=x(n|n-1)+α[y(n)-x(n|n-1)]
Figure FSA0000207667010000031
Figure FSA0000207667010000031
Figure FSA0000207667010000032
Figure FSA0000207667010000032
其中,x(n|n)为第n拍滤波值,x(n|n-1)为第n-1拍对第n拍预测值,
Figure FSA0000207667010000033
为第n拍频率滤波值,y(n)为第n拍测量值,x(n+1|n)为第n周期对第n+1周期预测值;α、β分别是“1PPS滤波”信号时差和频差的权系数;
Among them, x(n|n) is the filter value of the nth beat, x(n|n-1) is the prediction value of the n-1th beat to the nth beat,
Figure FSA0000207667010000033
is the frequency filter value of the nth beat, y(n) is the measured value of the nth beat, x(n+1|n) is the predicted value of the nth cycle for the n+1th cycle; α and β are the “1PPS filter” signals respectively Weights of time difference and frequency difference;
T0时刻滤波值:x(0|0)=y(0);Filter value at time T 0 : x(0|0)=y(0); T0时刻频率滤波值:
Figure FSA0000207667010000034
Frequency filter value at time T 0 :
Figure FSA0000207667010000034
T1时刻预测值:
Figure FSA0000207667010000035
Predicted value at time T1 :
Figure FSA0000207667010000035
(c)T0时刻测量值y(0)的有效判决(c) Effective decision of the measured value y(0) at time T 0 具体包括下列步骤:Specifically include the following steps: 1)卫星接收机送出“授时正常”报文;1) The satellite receiver sends a "time service normal" message; 2)恒温晶振稳定后,连续取3拍测量值,定义为:y(-3)、y(-2)、y(-1);2) After the constant temperature crystal oscillator is stable, take 3 consecutive beats of the measured values, which are defined as: y(-3), y(-2), y(-1); 3)滤波算法预启动,根据步骤2中(b)步中的算法模型外推x(-2|-3)、x(-1|-2)、x(0|-1)的值;3) The filtering algorithm is pre-started, and the values of x(-2|-3), x(-1|-2), and x(0|-1) are extrapolated according to the algorithm model in step (b) in step 2; 4)y(0)有效判决,如T-3、T-2、T-1时刻均未出现非点,取第4拍观察值作为y(0);4) y(0) is a valid judgment, if no non-point occurs at T -3 , T -2 , and T -1 , the observation value of the fourth beat is taken as y(0); 注意:①非点判决方法见步骤4;②在“y(0)有效判决”期间,1PPS脉冲一直保持直通输出,直到滤波正常启动后,1PPS才按滤波算法预测值;③考虑到初始化时,晶振未充分稳定,晶振频率滤波值可能也不够准确,故在y(0)判断上,非点判决条件:“|y(n)-x(n|n-1)|≥3σ/τ”放宽为“y(n)-x(n|n-1)|≥5σ/τ”),σ为卫星接收机1PPS脉冲的随机误差,τ为y(n)的量化精度;Note: ① For the non-point judgment method, see step 4; ② During the period of "y(0) valid judgment", the 1PPS pulse is always output straight through, and the 1PPS will not predict the value according to the filtering algorithm until the filtering starts normally; ③ Considering the initialization, The crystal oscillator is not sufficiently stable, and the crystal oscillator frequency filter value may not be accurate enough. Therefore, in the judgment of y(0), the non-point judgment condition: "|y(n)-x(n|n-1)|≥3σ/τ" is relaxed is "y(n)-x(n|n-1)|≥5σ/τ"), σ is the random error of the 1PPS pulse of the satellite receiver, and τ is the quantization accuracy of y(n); 步骤3:读入测量值y(n)Step 3: Read in the measured value y(n) 读入卫星接收机输出的1PPS脉冲信号上升沿对应的本地时标;该步骤细分为2个步骤:Read in the local time scale corresponding to the rising edge of the 1PPS pulse signal output by the satellite receiver; this step is subdivided into 2 steps: (a3)y(n)计算加权(a3)y(n) calculation weight 系统对1PPS脉冲的测量是通过对两个相位相差180°的时钟CLKHR计数得到的,为防止连续时间计数器溢出,测量值信息字宽度≥48bit,两个时标分别输出两组测量值:y1(n),y2(n);The measurement of the 1PPS pulse by the system is obtained by counting two clocks CLK HR with a phase difference of 180°. In order to prevent the continuous time counter from overflowing, the width of the measured value information word is ≥48 bits, and the two time stamps output two sets of measured values: y 1 (n), y 2 (n); 当|y1(n)-y2(n)|≤1时,y(n)=[y1(n)+y2(n)]/2;When |y 1 (n)-y 2 (n)|≤1, y(n)=[y 1 (n)+y 2 (n)]/2; 当|y1(n)-y2(n)|>1时,When |y 1 (n)-y 2 (n)|>1,
Figure FSA0000207667010000041
Figure FSA0000207667010000041
(b3)非点剔除(b3) Non-point culling 根据北斗板1PPS输出的脉冲精度,当|y(n)-x(n|n-1)|≥3σ/τ时,舍弃y(n),令x(n|n)=x(n|n-1),
Figure FSA0000207667010000042
According to the pulse precision of the Beidou board 1PPS output, when |y(n)-x(n|n-1)|≥3σ/τ, discard y(n), let x(n|n)=x(n|n -1),
Figure FSA0000207667010000042
步骤4:更新第n拍滤波值x(n|n)Step 4: Update the filter value x(n|n) for the nth beat 依据步骤2中(b)步中的算法模型,通过卫星1PPS脉冲信号的测量值y(n),获取系统1PPS秒脉冲信号平滑后的本地时标x(n|n);According to the algorithm model in step (b) in step 2, through the measured value y(n) of the satellite 1PPS pulse signal, obtain the smoothed local time scale x(n|n) of the system 1PPS second pulse signal; 步骤5:更新第n周期对第n+1周期预测值x(n+1|n)Step 5: Update the predicted value x(n+1|n) of the nth cycle for the n+1th cycle 依据步骤2中(b)步中的算法模型,通过第n拍滤波值x(n|n)和晶振频率的第n拍滤波值
Figure FSA0000207667010000051
计算第n周期对第n+1周期预测值x(n+1|n);
According to the algorithm model in step (b) in step 2, the filter value x(n|n) of the nth beat and the filter value of the nth beat of the crystal frequency are
Figure FSA0000207667010000051
Calculate the predicted value x(n+1|n) of the nth cycle to the n+1th cycle;
步骤6:更新晶振频率估计值f(n)Step 6: Update the crystal frequency estimate f(n) 依据卫星1PPS脉冲信号的测量值y(n),采用一元线性回归模型对f(n)进行求取:According to the measured value y(n) of the satellite 1PPS pulse signal, f(n) is calculated by using a linear regression model:
Figure FSA0000207667010000052
Figure FSA0000207667010000052
其中:in: f(n)为第n拍晶振频率估计值;f(n) is the estimated value of the crystal oscillator frequency of the nth beat; xi为第i个有效的1PPS脉冲序号,即xi=i,i=1,2,3,4,……,n,如果存在第k拍为非点,则序号xk舍弃,即xi序列变为:……xk-2,xk-1,xk+1,xk+2……;x i is the i-th effective 1PPS pulse sequence number, that is, x i =i, i=1, 2, 3, 4,..., n, if there is a non-point in the k-th beat, the sequence number x k is discarded, that is, x The i sequence becomes: ... x k-2 , x k-1 , x k+1 , x k+2 ......;
Figure FSA0000207667010000053
size(x)为序号总数,如果存在j个非点,序号总数size(x)=n-j,
Figure FSA0000207667010000054
也应对应剔除j个非点所对应的序号;
Figure FSA0000207667010000053
size(x) is the total number of serial numbers. If there are j non-points, the total number of serial numbers size(x)=nj,
Figure FSA0000207667010000054
The serial numbers corresponding to j non-points should also be eliminated correspondingly;
yi为第i拍的1PPS脉冲的观测值y(i);如果第k拍为非点,yk舍弃,同时,对应序号xk也舍弃,即如果y5为非点时,xi序列变为:1,2,3,4,6,7……;size(x)=n-1;y i is the observed value y(i) of the 1PPS pulse in the i-th beat; if the k-th beat is a non-point, y k is discarded, and at the same time, the corresponding serial number x k is also discarded, that is, if y 5 is a non-point, the x i sequence Becomes: 1, 2, 3, 4, 6, 7...; size(x)=n-1;
Figure FSA0000207667010000055
size(y)为观测值总点数,size(y)=size(x);
Figure FSA0000207667010000055
size(y) is the total number of observations, size(y)=size(x);
注意:Notice: ①参与计算的y(n)均为有效y(n)值;①The y(n) involved in the calculation are all valid y(n) values; ②在守时状态f(n)暂停计算,退出守时后,历史点仍可正常使用,继续计算;② In the punctuality state f(n), the calculation is suspended, and after exiting the punctuality, the historical point can still be used normally, and the calculation continues; ③如果受计算规模限制,需要对y(n)进行抽样时,可按如下步骤进行:③ If it is limited by the calculation scale, when y(n) needs to be sampled, the following steps can be performed: 当计算规模为k点,扩散次数为q次时,则扩散完成持续时间r为:When the calculation scale is k points and the number of diffusion is q times, the diffusion completion duration r is:
Figure FSA0000207667010000061
Figure FSA0000207667010000061
具体步骤如下:Specific steps are as follows: Step1:定义第一个有效观测为y1=y(1),序号为x1=x(1)=1,i=1;Step1: Define the first valid observation as y 1 =y(1), the serial number is x 1 =x(1)=1, i=1; Step2:i≤k时,根据实际点数,实时计算y(n);Step2: When i≤k, calculate y(n) in real time according to the actual number of points; Step3:k<i≤2k时,滑窗计算y(n);Step3: When k<i≤2k, the sliding window calculates y(n); Step4:2k<i≤3k时,开始第1次扩散,扩散规则为:Step4: When 2k<i≤3k, start the first diffusion, and the diffusion rule is: ⑤i=2k+1时,取k+1、k+3、k+4、k+5、k+6、...、2k、2k+1;⑤ When i=2k+1, take k+1, k+3, k+4, k+5, k+6,..., 2k, 2k+1; ⑥i=2k+2时,取k+1、k+3、k+5、k+6、...、2k、2k+1、2k+2;⑥ When i=2k+2, take k+1, k+3, k+5, k+6, ..., 2k, 2k+1, 2k+2; ⑦以此类推;⑦ And so on; ⑧i=3k-1,i=3k时,取k+1、k+3、...、3k-3、3k-1第1次扩散完成;⑧ When i=3k-1, i=3k, take k+1, k+3, ..., 3k-3, 3k-1 to complete the first diffusion; Step5:3k<i≤4k,开始第2次扩散,扩散规则为:Step5: 3k<i≤4k, start the second diffusion, the diffusion rule is: ⑤i=3k+1,i=3k+2时,取k+1、k+4、k+7、k+9、k+11、k+13、...、3k-1、3k+1;⑤ When i=3k+1, i=3k+2, take k+1, k+4, k+7, k+9, k+11, k+13,..., 3k-1, 3k+1; ⑥i=3k+3,i=3k+4时,取k+1、k+4、k+7、k+10、k+13、...、3k-1、3k+1、3k+3;⑥ When i=3k+3, i=3k+4, take k+1, k+4, k+7, k+10, k+13,..., 3k-1, 3k+1, 3k+3; ⑦以此类推;⑦ And so on; ⑧i=4k-1,i=4k时,取k+1、K+4、k+7...、4k-5、4k-2第2次扩散完成;⑧ i=4k-1, when i=4k, take k+1, K+4, k+7..., 4k-5, 4k-2 and the second diffusion is completed; Step6:依照4~5步所描述方法,当4k<i≤5k,开始进行第3次扩散;Step6: According to the method described in steps 4 to 5, when 4k<i≤5k, start the third diffusion; Step7:依照4~5步所描述方法,当5k<i≤6k,开始进行第4次扩散;Step7: According to the method described in steps 4 to 5, when 5k<i≤6k, start the fourth diffusion; Step8:以此类推,当(q+1)k<i≤(q+2)k,开始进行第q次扩散;Step8: By analogy, when (q+1)k<i≤(q+2)k, start the qth diffusion; Step9:i=(q+2)k时,第q次扩散完成,已形成点距为q+1的等间隔抽样,当i≥(q+2)k时,按第q次扩散后的抽样状态,即使用固定点距为q+1,滑窗计算y(n);Step9: When i=(q+2)k, the qth diffusion is completed, and the sampling at equal intervals with a point distance of q+1 has been formed. When i≥(q+2)k, the sampling after the qth diffusion is performed. state, that is, using a fixed point distance of q+1, the sliding window calculates y(n); 对上述抽样算法的几点说明:A few notes on the sampling algorithm above: ④如果在以上过程中,进入守时状态,算法暂停运行,退出守时后,方能继续使用有效的yn参与y(n)计算,注意:序号xi始终与绝对时间对应;④If in the above process, enter the punctual state, the algorithm suspends operation, and after exiting punctuality, can continue to use the valid y n to participate in the y(n) calculation, note: the serial number x i always corresponds to the absolute time; ⑤第1次扩散在1h后进行,此时晶振稳定度应达到标称值,渡过晶振的不稳定期;⑤ The first diffusion is carried out after 1h, at this time, the stability of the crystal oscillator should reach the nominal value, and the unstable period of the crystal oscillator will pass; ⑥第1次扩散开始后,直到第14次扩散完成,所有的数据均参与了y(n)的计算,故应严格检查y(n)抽样逻辑,避免非点等影响y(n)的计算精度;⑥After the first diffusion starts, until the 14th diffusion is completed, all data participate in the calculation of y(n), so the sampling logic of y(n) should be strictly checked to avoid non-points and other influences on the calculation of y(n) precision; 步骤7:守时状态Step 7: Punctuality Status 当卫星接收机输出的1PPS脉冲信号不稳定或中断时,系统进入守时状态;守时状态可细分为如下3个步骤:When the 1PPS pulse signal output by the satellite receiver is unstable or interrupted, the system enters the punctual state; the punctual state can be subdivided into the following three steps: (a7)守时状态下的参数赋值(a7) Parameter assignment in punctual state x(n|n)=x(n|n-1),
Figure FSA0000207667010000071
x(n|n)=x(n|n-1),
Figure FSA0000207667010000071
(b7)守时状态的进入条件(b7) Entry conditions for the punctual state 满足下列条件之一,进入守时状态:One of the following conditions is met to enter the punctual state: ①卫星接收机送出“授时不正常”报文;①The satellite receiver sends out the message of "not normal timing"; ②连续3拍出现非点时,进入守时模式;②When there is a non-point in 3 consecutive beats, enter the time-keeping mode; (c7)f(n)的使用原则(c7) Principles of use of f(n) 1)系统启动后恒温晶振温度稳定前,满足守时条件时,f(n)使用出厂装订频率或连续24h测量的f(n)更新值;1) After the system is started and before the temperature of the constant temperature crystal oscillator is stable, when the punctuality condition is met, f(n) uses the factory binding frequency or the updated value of f(n) measured continuously for 24 hours; 2)系统启动后,有效的y(n)大于3600点且满足守时条件时,使用当前频率估计值f(n)进行守时,否则,仍然使用出厂装订的Y(n)值或连续24h测量的Y(n)更新值。2) After the system is started, when the effective y(n) is greater than 3600 points and the punctuality condition is met, use the current frequency estimate f(n) for punctuality, otherwise, still use the factory-bound Y(n) value or continue for 24h Measured Y(n) update value.
5.如权利要求4所述的基于频率估计的卫星授时守时系统的工作方法,其特征在于,α、β分别为0.4和0.1。5 . The working method of the satellite timing system based on frequency estimation according to claim 4 , wherein α and β are respectively 0.4 and 0.1. 6 . 6.如权利要求4所述的基于频率估计的卫星授时守时系统的工作方法,其特征在于,k=1800,q=14,r=8h。6 . The working method of the satellite timing system based on frequency estimation according to claim 4 , wherein k=1800, q=14, and r=8h. 7 .
CN202010353727.3A 2020-04-21 2020-04-21 Satellite time service time keeping system and method based on frequency estimation Active CN111565084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010353727.3A CN111565084B (en) 2020-04-21 2020-04-21 Satellite time service time keeping system and method based on frequency estimation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010353727.3A CN111565084B (en) 2020-04-21 2020-04-21 Satellite time service time keeping system and method based on frequency estimation

Publications (2)

Publication Number Publication Date
CN111565084A true CN111565084A (en) 2020-08-21
CN111565084B CN111565084B (en) 2022-08-16

Family

ID=72074464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010353727.3A Active CN111565084B (en) 2020-04-21 2020-04-21 Satellite time service time keeping system and method based on frequency estimation

Country Status (1)

Country Link
CN (1) CN111565084B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702105A (en) * 2020-12-09 2021-04-23 成都天奥信息科技有限公司 Ground-to-air communication radio station time frequency calibration system and method
CN112994822A (en) * 2021-02-09 2021-06-18 成都可为科技股份有限公司 Method and system for realizing time synchronization
CN113015175A (en) * 2021-02-24 2021-06-22 湖北中南鹏力海洋探测系统工程有限公司 Method and equipment for synchronous networking of any working period of high-frequency ground wave radar
CN113419414A (en) * 2021-07-13 2021-09-21 贵州省计量测试院 Standard timing system with GNSS disciplining and interval time keeping capabilities
CN113810108A (en) * 2021-09-14 2021-12-17 中国科学院国家授时中心 A double-layer locked time signal purification method and system for optical fiber time transfer
CN114035213A (en) * 2021-11-09 2022-02-11 陕西天基通信科技有限责任公司 Signal processing method and device, storage medium, and electronic device
CN114137819A (en) * 2021-12-06 2022-03-04 上海珉嵘科技有限公司 Clock frequency deviation adjusting device and method and satellite signal acquisition preprocessing board card
CN115079558A (en) * 2022-06-16 2022-09-20 成都迅翼卫通科技有限公司 Time service and keeping time method based on special synchronous chip
CN115268533A (en) * 2022-08-02 2022-11-01 泰斗微电子科技有限公司 A miniature multifunctional time-frequency module
CN115459807A (en) * 2022-09-15 2022-12-09 微感科技(南通)有限公司 Implementation method of arbitrary frequency TOD based on Beidou timing chip
CN117970373A (en) * 2024-03-29 2024-05-03 北京凯芯微科技有限公司 Satellite navigation chip, rotating speed calculation method thereof, receiver and electronic equipment
CN119107739A (en) * 2024-09-27 2024-12-10 中国民航科学技术研究院 Device and method for detecting alarm response time of perimeter intrusion alarm system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808480A (en) * 2014-01-26 2015-07-29 北京大学 Pulse per second (PPS) generating method and device
CN109150351A (en) * 2017-06-27 2019-01-04 许继集团有限公司 A kind of UTC time realization method and system applied to substation
CN110247697A (en) * 2019-05-30 2019-09-17 西安空间无线电技术研究所 A method of improving low rail communication satellite system frequency efficiency
CN110262210A (en) * 2019-06-28 2019-09-20 北斗天汇(北京)科技有限公司 Crystal oscillator based on counter is kept time method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808480A (en) * 2014-01-26 2015-07-29 北京大学 Pulse per second (PPS) generating method and device
CN109150351A (en) * 2017-06-27 2019-01-04 许继集团有限公司 A kind of UTC time realization method and system applied to substation
CN110247697A (en) * 2019-05-30 2019-09-17 西安空间无线电技术研究所 A method of improving low rail communication satellite system frequency efficiency
CN110262210A (en) * 2019-06-28 2019-09-20 北斗天汇(北京)科技有限公司 Crystal oscillator based on counter is kept time method

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702105B (en) * 2020-12-09 2022-10-21 成都天奥信息科技有限公司 Ground-to-air communication radio station time frequency calibration system and method
CN112702105A (en) * 2020-12-09 2021-04-23 成都天奥信息科技有限公司 Ground-to-air communication radio station time frequency calibration system and method
CN112994822A (en) * 2021-02-09 2021-06-18 成都可为科技股份有限公司 Method and system for realizing time synchronization
CN112994822B (en) * 2021-02-09 2023-02-03 成都可为科技股份有限公司 Method and system for realizing time synchronization
CN113015175B (en) * 2021-02-24 2022-05-03 湖北中南鹏力海洋探测系统工程有限公司 Method and device for any-duty-cycle synchronous networking of high-frequency ground wave radar
CN113015175A (en) * 2021-02-24 2021-06-22 湖北中南鹏力海洋探测系统工程有限公司 Method and equipment for synchronous networking of any working period of high-frequency ground wave radar
CN113419414A (en) * 2021-07-13 2021-09-21 贵州省计量测试院 Standard timing system with GNSS disciplining and interval time keeping capabilities
CN113810108B (en) * 2021-09-14 2022-07-26 中国科学院国家授时中心 Double-layer locking time signal purification method and system for optical fiber time transmission
CN113810108A (en) * 2021-09-14 2021-12-17 中国科学院国家授时中心 A double-layer locked time signal purification method and system for optical fiber time transfer
CN114035213A (en) * 2021-11-09 2022-02-11 陕西天基通信科技有限责任公司 Signal processing method and device, storage medium, and electronic device
CN114137819A (en) * 2021-12-06 2022-03-04 上海珉嵘科技有限公司 Clock frequency deviation adjusting device and method and satellite signal acquisition preprocessing board card
CN114137819B (en) * 2021-12-06 2023-11-03 上海珉嵘科技有限公司 Clock frequency offset adjusting device and method and satellite signal acquisition preprocessing board card
CN115079558A (en) * 2022-06-16 2022-09-20 成都迅翼卫通科技有限公司 Time service and keeping time method based on special synchronous chip
CN115268533A (en) * 2022-08-02 2022-11-01 泰斗微电子科技有限公司 A miniature multifunctional time-frequency module
CN115459807A (en) * 2022-09-15 2022-12-09 微感科技(南通)有限公司 Implementation method of arbitrary frequency TOD based on Beidou timing chip
CN117970373A (en) * 2024-03-29 2024-05-03 北京凯芯微科技有限公司 Satellite navigation chip, rotating speed calculation method thereof, receiver and electronic equipment
CN117970373B (en) * 2024-03-29 2024-06-25 北京凯芯微科技有限公司 Satellite navigation chip, rotating speed calculation method thereof, receiver and electronic equipment
CN119107739A (en) * 2024-09-27 2024-12-10 中国民航科学技术研究院 Device and method for detecting alarm response time of perimeter intrusion alarm system

Also Published As

Publication number Publication date
CN111565084B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CN111565084B (en) Satellite time service time keeping system and method based on frequency estimation
CN105867107B (en) A kind of low power consumption high-precision time dissemination system
CN100395682C (en) Method and device for mutual standby time service using Beidou satellite navigation system and global positioning system
CN202256438U (en) Hardware real time clock (RTC) error compensation system of intelligent electric energy meter
CN102183253A (en) Software time synchronization method for position and orientation system
CN104937504B (en) The punctual method of quartz watch high accuracy
CN103269262B (en) A kind of punctual method of time synchronism apparatus
GB2428799A (en) Compensating the drift of a local clock in a data acquisition apparatus
CN110139236B (en) Synchronous acquisition method based on wireless sensor network
CN101799659B (en) A multi-mode timing system and timing method based on wavelet transform
CN109765583A (en) A kind of clock synchronizing method based on GNSS receiver pulse per second (PPS)
CN108803300A (en) The punctual method of time synchronism apparatus based on constant-temperature crystal oscillator and time synchronism apparatus
CN114740260A (en) Power-specific synchronous acquisition method for real-time detection and adjustment of crystal oscillator output frequency
CN113311694A (en) Method and device for jointly taming rubidium clock by Beidou satellite common vision and unidirectional time service
CN111064536A (en) Power distribution network monitoring device and method based on clock synchronization
CN103546124B (en) A kind of signal trigger instants value acquisition device
CN105721095A (en) Substation device clock synchronization improving method
CN103699001A (en) Method and system for realizing low-cost and high-precision timing through oven controlled crystal oscillator
CN110187237B (en) Grid synchronization acquisition method and device for real-time detection and adjustment of crystal oscillator output frequency
CN117311128A (en) GNSS and TDC-GPX 2-based high-precision time interval measuring instrument
CN114019563A (en) Synchronous acquisition method for seismic exploration based on GPS and 5G dual-channel high-precision timing
CN113419414A (en) Standard timing system with GNSS disciplining and interval time keeping capabilities
CN108599915A (en) Based on number between the send-receive clock of closed loop phase ambiguity estimation and compensation method
JP2000315121A (en) Rtc circuit
CN106647223A (en) Quick stable real-time adjustment method for atomic clock timing

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