[go: up one dir, main page]

CN1084479C - Timing method and device based on GPS signals - Google Patents

Timing method and device based on GPS signals Download PDF

Info

Publication number
CN1084479C
CN1084479C CN97108825A CN97108825A CN1084479C CN 1084479 C CN1084479 C CN 1084479C CN 97108825 A CN97108825 A CN 97108825A CN 97108825 A CN97108825 A CN 97108825A CN 1084479 C CN1084479 C CN 1084479C
Authority
CN
China
Prior art keywords
crystal
gps
differing
average
gps signal
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.)
Expired - Lifetime
Application number
CN97108825A
Other languages
Chinese (zh)
Other versions
CN1189622A (en
Inventor
鲁敬农
俞晓龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN97108825A priority Critical patent/CN1084479C/en
Publication of CN1189622A publication Critical patent/CN1189622A/en
Application granted granted Critical
Publication of CN1084479C publication Critical patent/CN1084479C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Position Fixing By Use Of Radio Waves (AREA)
  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

一种基于GPS信号的定时方法和一种采用该方法的设备。该方法引入一张以相差变化值和相差变化率为自变量的二元电压控制表,综合考虑调整晶体的电压值,可在利用三级晶体的情况下解决S.A.干扰以及压控晶体的频率漂移和频率抖动问题,大大降低了设备的成本,并简化了结构。

Figure 97108825

A timing method based on GPS signals and a device using the method. This method introduces a binary voltage control table with phase difference change value and phase difference change rate as independent variables, and comprehensively considers adjusting the voltage value of the crystal, which can solve the SA interference and the frequency drift of the voltage-controlled crystal in the case of using a three-stage crystal. and frequency jitter problems, which greatly reduces the cost of the equipment and simplifies the structure.

Figure 97108825

Description

一种基于GPS信号的定时方法和设备A timing method and device based on GPS signals

本发明涉及通信领域中提供精确时钟的技术,更具体地说,涉及一种基于GPS的定时方法和设备。The present invention relates to the technology of providing accurate clock in the field of communication, more specifically, relates to a timing method and device based on GPS.

美国国防部建立全球定时定位导航卫星系统(NAVSTAR GPS,以下简称GPS系统)为人们提供了任何时候在任何地点精确定时和定位的可能。但美国政府有意在卫星发射的信号中加入了选择性干扰(SELECTIVE AVAILABLITY,以是称S.A.干扰),使普通用户得到的定时定位精度大大下降,定时精度降至±150ns以上。各国大公司相应开发出各种GPS接收设备以从夹杂着S.A干扰的卫星信号中提取一个相对稳定的输出,其中惠普公司的HP58503 GPS时间和频率标准接收机通过长时间(一小时)的平滑滤波以滤去S.A.干扰,取得较好的效果。但该方案需要有一个价格昂贵的长时间稳定晶体(二级以上),才能有效地用长时间平滑滤波来滤除S.A.干扰,否则如果晶体不稳定(例如采用的是三级晶体),一小时内晶体自身的频率漂移已经相当可观了,无法进行长时间的平滑滤波;该方案还需要相应复杂的晶体外围电路以使晶体正常工作;此外,为了进行长时间的平滑滤波,需要大容量的存储器以存储很长间记录的数据,并且在卫星信号质量突然恶化,经过一段时间又恢复的情况下,由于该方案将长时间记录数据进行平均,卫星信号质量恶化时记录的数据也将在很长一段时间内仍作为有效数据被继续使用,使得该设备需要较长时间才能恢复稳定的输出。The U.S. Department of Defense established the global timing and positioning navigation satellite system (NAVSTAR GPS, hereinafter referred to as the GPS system) to provide people with the possibility of precise timing and positioning at any time and anywhere. However, the U.S. government deliberately added selective interference (SELECTIVE AVAILABLY, so called S.A. interference) to the signal transmitted by the satellite, which greatly reduced the timing and positioning accuracy obtained by ordinary users, and the timing accuracy dropped to more than ±150ns. Large companies in various countries have correspondingly developed various GPS receiving devices to extract a relatively stable output from satellite signals mixed with S.A. interference, among which HP58503 GPS time and frequency standard receiver of Hewlett-Packard Company has been smoothed for a long time (one hour) To filter out S.A. interference and achieve better results. However, this solution requires an expensive long-term stable crystal (above the second level) in order to effectively use long-term smoothing filtering to filter out S.A. interference, otherwise if the crystal is unstable (for example, a third-level crystal is used), one hour The frequency drift of the internal crystal itself is already considerable, and it is impossible to perform long-term smoothing and filtering; this scheme also requires correspondingly complex crystal peripheral circuits to make the crystal work normally; in addition, in order to perform long-term smoothing and filtering, a large-capacity memory is required In order to store the data recorded for a long time, and when the satellite signal quality suddenly deteriorates and then recovers after a period of time, since the program averages the long-term recorded data, the recorded data when the satellite signal quality deteriorates will also be in the long-term It is still used as valid data for a period of time, making it take a long time for the device to restore stable output.

本发明的目的就是克服述缺点,提供一种成体低,结构简单,能迅速捕捉GPS信号,并且卫星信号恶化后又恢复的情况迅速恢复稳定输出基于GPS信号的定时方法和设备。The purpose of the present invention is exactly to overcome above-mentioned shortcoming, provide a kind of body is low, simple in structure, can capture GPS signal rapidly, and the situation that recovers again after satellite signal deteriorates recovers rapidly the timing method and equipment based on GPS signal of stable output.

为实现本发明的目的,本发明一方面:一种基于GPS信号的定时方法,包括比较收到的每个GPS脉冲与本地分频脉冲的相位差,并存储该相位差,其特征在于根据有效滤除S.A.干扰和及时调整晶体的要求设定一个数据储量N,存满N个所述相差后,对数据进行平滑处理,调整所述晶体,所述对数据进行平滑处理、调整所述晶体的过程包括以下主要步骤:For realizing the purpose of the present invention, one aspect of the present invention: a kind of timing method based on GPS signal, comprising comparing the phase difference of each GPS pulse received and the local frequency division pulse, and storing this phase difference, it is characterized in that according to effective Filter out S.A. interference and adjust the crystal in time Requirements Set a data storage capacity N, after storing N phase differences, smooth the data, adjust the crystal, smooth the data, adjust the crystal The process includes the following main steps:

(1)计算所存储的N个所述相位差的平均值,得到一个平均相差,并存储该平均相差;(1) Calculate the average value of the N stored phase differences to obtain an average phase difference, and store the average phase difference;

(2)将所述平均相差和一个预先设定的标准相差比较,得到相差变化值E;(2) comparing the average phase difference with a preset standard phase difference to obtain a phase difference change value E;

(3)将本次得到的所述平均相差与上一次所存储的所述平均相差进行比较,得到相差变化率EC;(3) Comparing the average phase difference obtained this time with the average phase difference stored last time to obtain the phase difference change rate EC;

(4)根据所述相差变化值和所述相差变化率,以及预先存放的以所述相差变化值和所述相差变化率为自变量的二元电压控制表确定应施加的晶体控电压差值ΔU;(4) According to the phase difference change value and the phase difference change rate, and the pre-stored binary voltage control table with the phase difference change value and the phase difference change rate as independent variables, determine the crystal control voltage difference that should be applied ΔU;

(5)将所述晶体控制电压差值ΔU加在当前的控制电压上,调整本地秒脉冲。(5) Add the crystal control voltage difference ΔU to the current control voltage to adjust the local second pulse.

本发明另一方面:一种基于GPS信号的定时方法,包括比较收到的每个GPS脉冲与本地分频脉冲的相位差,并存储该相位差,其特征在于根据有效滤除S.A.干扰和及时调整晶体的要求设定一个数据储量N,存满N个所述相差后,对数据进行平滑处理,调整所述晶体,所述对数据进行平滑处理、调整所述晶体的过程包括以下主要步骤:Another aspect of the present invention: a timing method based on GPS signals, including comparing the phase difference between each received GPS pulse and the local frequency-divided pulse, and storing the phase difference, characterized in that it is based on effective filtering of S.A. interference and timely The requirement for adjusting the crystal is to set a data storage capacity N. After storing N phase differences, smooth the data and adjust the crystal. The process of smoothing the data and adjusting the crystal includes the following main steps:

(1)计算所存储的N个所述相位差的平均值,得到一个平均相差,并存储该平均相差;(1) Calculate the average value of the N stored phase differences to obtain an average phase difference, and store the average phase difference;

(2)将所述平均相差和一个预先设定的标准相差比较,得到相差变化值E;(2) comparing the average phase difference with a preset standard phase difference to obtain a phase difference change value E;

(3)将本次得到的所述平均相差与上一次所存储的所述平均相差进行比较,得到相差变化率EC;(3) Comparing the average phase difference obtained this time with the average phase difference stored last time to obtain the phase difference change rate EC;

(4)由公式ΔU=λ1E+λ2EC直接求得所述晶体电压控制差值。(4) The crystal voltage control difference is directly obtained from the formula ΔU=λ 1 E+λ 2 EC .

(5)将所述晶体控制电压差值ΔU加在当前的控制电压上,调整本地秒脉冲。(5) Add the crystal control voltage difference ΔU to the current control voltage to adjust the local second pulse.

本发明的基于GPS信号的定时设备包括GPS接收天线、GPS卡、鉴相器、CPU、RAM、EPROM、D/A转换器、压控晶体、倍频器、以及分频器。所述GPS卡通过所述GPS天线接收卫星信号,从中恢复出GPS脉冲送给所述鉴相器,所述鉴相器比较从卫星信号中恢复的GPS脉冲与本地分频器提供的本地分频脉冲的相位差,将该相位差送给所述CPU,所述CPU将该相位差存于所RAM中,所述RAM存储一定量数据后,所述CPU处理这批数据得到所述相差变化值E和所述相差变化率EC,根据所述相差变化值E和所述相差变化率EC查找所述EPROM中存储的所述二元电压控制表,确定调节所述压控晶体的所述晶体控制电压差值ΔU,通过所述D/A转换器将所述ΔU加在所述压控晶体上,调整所述压控晶体的输出频率。所述压控晶体的输出同时送给所述分频器和所述倍频器,所述分频器产生本发明的基本GPS信号的定时设备的输出,并产生本地分频脉冲,所述倍频器产生65MHZ信号送给所述鉴相器,用65MHZ信号来计数,记录本地分频脉冲与GPS脉冲的相差。The timing device based on the GPS signal of the present invention includes a GPS receiving antenna, a GPS card, a phase detector, a CPU, a RAM, an EPROM, a D/A converter, a voltage-controlled crystal, a frequency multiplier and a frequency divider. The GPS card receives the satellite signal through the GPS antenna, recovers the GPS pulse from it and sends it to the phase detector, and the phase detector compares the GPS pulse recovered from the satellite signal with the local frequency division provided by the local frequency divider The phase difference of the pulse, the phase difference is sent to the CPU, the CPU stores the phase difference in the RAM, and after the RAM stores a certain amount of data, the CPU processes this batch of data to obtain the phase difference change value E and the phase difference change rate EC, look up the binary voltage control table stored in the EPROM according to the phase difference change value E and the phase difference change rate EC, and determine the crystal control for adjusting the voltage-controlled crystal The voltage difference ΔU is added to the voltage-controlled crystal through the D/A converter to adjust the output frequency of the voltage-controlled crystal. The output of the voltage-controlled crystal is sent to the frequency divider and the frequency multiplier at the same time, and the frequency divider produces the output of the timing device of the basic GPS signal of the present invention, and generates local frequency-divided pulses, and the multiplier The frequency converter generates a 65MHZ signal and sends it to the phase detector, uses the 65MHZ signal to count, and records the phase difference between the local frequency division pulse and the GPS pulse.

由于本发明采用的是三级晶体,因此大大降低了本发明设备的成本;同时通过采用本发明方法较好地解决了S.A干扰以及压控晶体的频率漂移和频率抖动问题,使本发明设备的输出精度可与采用了优质晶体(二级以上)的国外同类设备相比拟,经测试表明本发明设备已实现如下性能指标:Because what the present invention adopted is three-stage crystal, therefore greatly reduced the cost of the present invention's equipment; Solved S.A interference and the frequency drift and the frequency jitter problem of voltage-controlled crystal preferably simultaneously by adopting the present invention's method, make the present invention's equipment The output accuracy can be compared with similar foreign equipment using high-quality crystals (above grade 2), and the test shows that the equipment of the present invention has achieved the following performance indicators:

相位漂移特性:        百秒级       <50nsPhase drift characteristics: Hundreds of seconds <50ns

                      千秒级       <100ns                                                                                           

                      最大         <170ns                                                              

频率特性:            短期(抖动)   ≤5×10-10 Frequency characteristics: short-term (jitter) ≤5×10 -10

                      长期         ≤5×10-10 Long-term ≤5×10 -10

此外,本发明设备无需大容量的存储器以及复杂的晶体保护电路,从而使得电路结构简单,并且在GPS信号突然恶化,经过一段时间又恢复的情况下,能将存储的数据很快更新,因此能迅速(大约四分钟)恢复稳定的输出。In addition, the device of the present invention does not need a large-capacity memory and a complicated crystal protection circuit, so that the circuit structure is simple, and when the GPS signal suddenly deteriorates and recovers after a period of time, the stored data can be updated quickly, so it can Quickly (about four minutes) a steady output is restored.

下面结合附图说明本发明的实施例。附图中:Embodiments of the present invention will be described below in conjunction with the accompanying drawings. In the attached picture:

图1为本发明的基本GPS信号的定时设备一个实施例的结构示意图:Fig. 1 is the structural representation of an embodiment of the timing equipment of basic GPS signal of the present invention:

图2为本发明的基本GPS信号的定时方法的流程图;Fig. 2 is the flowchart of the timing method of basic GPS signal of the present invention;

图3为图2中所示快速捕获GPS秒脉冲频率步骤S202流程图;Fig. 3 is the step S202 flow chart of fast capturing GPS second pulse frequency shown in Fig. 2;

图4为图2中所示输出精确频率步骤S206的流程图;Fig. 4 is the flowchart of step S206 of outputting precise frequency shown in Fig. 2;

图5为构造本发明中所述电压控制表的流程图。Fig. 5 is a flow chart of constructing the voltage control table in the present invention.

参见图1,该图示出本发明的基于GPS信号的定时设备包括:GPS接收天线101、GPS卡102、鉴相器103、CPU104、RAM105、EPROM106、D/A转换器107、压控晶体108、倍频器109、以及分频器110。所述GPS卡102(本实施例中为Motorola公司生产的VPONCORE,提供每秒一次的秒脉冲SP)通过所述GPS天线101接收卫星信号,从中恢复出GPS秒脉冲送给所述鉴相器103,所述鉴相器103比较从卫星信号中恢复的秒脉冲SP与本地分频器110提供的1HZ信号的相位差,将得到的相位差送给所述CPU104,所述CPU104将该相位差存于所述RAM105中,所述RAM存满一定量数据后,所述CPU处理这批数据得到相差变化值E和相差变化率EC,根据E和EC查找所找EPROM106中存储的一张以相差变化值和相差变化率为自变量的二元电压控制表(后面将结合图5详述该表的生成),确定调节所述压控晶体108的晶体控制电压差值ΔU,通过所述D/A转换器107将ΔU加在所述压控晶体108上,调整所述压控晶体108的输出频率;所述CPU还与所述GPS卡通信,对GPS卡的状态参量进行设置并从GPS卡读取卫星信号是否正常等信息。所述压控晶体的输出同时送给所述分频器110和所述倍频器109,所述分频器110产生2MHZ和8MHZ的信号作为本发明的基于GPS信号的定时设备的输出,并产生1HZ信号作为本地秒脉冲,所述倍频器109产生65MHZ信号送给所述鉴相器103,用65MHZ信号来计数,记录本地秒脉冲与GPS秒脉冲的相位差,所述RAM105还根据所述CPU的指令存储相差变化值和相差变化率等数据。所述CPU104所需的程序存在所述EPROM106中。Referring to Fig. 1, this figure shows that the timing equipment based on GPS signal of the present invention comprises: GPS receiving antenna 101, GPS card 102, phase detector 103, CPU104, RAM105, EPROM106, D/A converter 107, voltage-controlled crystal 108 , frequency multiplier 109, and frequency divider 110. Described GPS card 102 (the VPONCORE that Motorola Company produces in the present embodiment, provides second pulse SP once per second) receives satellite signal by described GPS antenna 101, recovers GPS second pulse therefrom and sends described phase detector 103 , the phase detector 103 compares the phase difference between the second pulse SP recovered from the satellite signal and the 1HZ signal provided by the local frequency divider 110, and sends the obtained phase difference to the CPU 104, and the CPU 104 stores the phase difference In the RAM105, after the RAM is full of a certain amount of data, the CPU processes the batch of data to obtain the phase difference change value E and the phase difference change rate EC, and searches for one stored in the EPROM106 according to E and EC to change the phase difference value and phase difference change rate of the binary voltage control table of the independent variable (the generation of this table will be described in detail later in conjunction with FIG. The converter 107 adds ΔU to the voltage-controlled crystal 108 to adjust the output frequency of the voltage-controlled crystal 108; the CPU also communicates with the GPS card to set the status parameters of the GPS card and read them from the GPS card Get information such as whether the satellite signal is normal or not. The output of the voltage-controlled crystal is sent to the frequency divider 110 and the frequency multiplier 109 simultaneously, and the frequency divider 110 produces signals of 2MHZ and 8MHZ as the output of the timing device based on GPS signals of the present invention, and Produce 1HZ signal as local second pulse, described frequency multiplier 109 produces 65MHZ signal and send to described phase detector 103, count with 65MHZ signal, record the phase difference of local second pulse and GPS second pulse, described RAM105 also according to the The instructions of the CPU store data such as phase difference change value and phase difference change rate. Programs necessary for the CPU 104 are stored in the EPROM 106 .

本发明的基于GPS信号的定时方法需要每秒一次地比较收到的每个GPS秒脉冲与本地秒脉冲的相位差,并存储该相位差,同时执行如下如图2所示的具体步骤:首先在步骤S201完成初始化工作,包括RAM清零、设备晶体初始工作电压、以及设定要求存储的相位差个数M和N,所述相位差个数反映了对晶体控制电压进行调整的时间间隔,而且M<N,M的取值较小,以满足快速成捕获GPS秒脉冲频率的要求,其最佳范围为2~7,N的取值需满足既能有效滤除S.A干扰、又能及时调整压控晶体的要求,其最佳范围为30--180,之后进到步骤S202:快速捕捉GPS秒脉冲的频率;然后进到步骤S203:判断卫星信号是否正常,如判断为“否”,则经步骤S204复位后重复执行步骤S201;如步骤S203判断为“是”,则执行步骤S205:比较最新收到的GPS秒脉冲与本地秒脉冲的相位差,将此相位差设定为标准相差并存储;然后进到步骤S206:进入锁定态,进一步调整本地秒脉冲,输出精确频率;然后在步骤S207判断卫星信号是否正常,如判断是“是”,则返回执行步骤S206;如步骤S207判断为‘否’,则进到步骤S208:保持在步骤S206中得到的输出,并在需要时利用以前存储的数据对晶体进行调整,然后在步骤S209中判断卫星信号是否正常,如判断为‘否’,则返回执行步骤S208;如步骤S209判断为“是”,则执行步骤S206。需要说明一下,本发明中建立了若干个循环队列的数据结构分别存储记录下的GPS秒脉冲与本地秒脉冲的相位差、晶体电压控制差值等数据,当队列已满时,先存储的数据被自动抹去;本发明存储大约8000个GPS秒脉冲与本地秒脉冲相差,可以在例如卫星信号失常、S.A干扰强烈等特殊情况下利用这些数据对晶体作特殊调整。The timing method based on the GPS signal of the present invention needs to compare the phase difference between each GPS second pulse received and the local second pulse once per second, and store the phase difference, and perform the following specific steps as shown in Figure 2 simultaneously: first Complete the initialization work in step S201, including clearing the RAM, the initial operating voltage of the device crystal, and setting the number of phase differences M and N required to be stored. The number of phase differences reflects the time interval for adjusting the crystal control voltage. And M<N, the value of M is small to meet the requirements of quickly capturing the GPS second pulse frequency. Adjust the requirements of the voltage-controlled crystal, the best range is 30--180, then go to step S202: quickly capture the frequency of the GPS second pulse; then go to step S203: judge whether the satellite signal is normal, if judged as "No", Then step S201 is repeated after being reset in step S204; if step S203 is judged as "yes", then step S205 is executed: compare the phase difference between the newly received GPS second pulse and the local second pulse, and set this phase difference as the standard phase difference And store; Then go to step S206: enter the locked state, further adjust the local second pulse, and output the precise frequency; then judge whether the satellite signal is normal in step S207, if judged to be "yes", then return to execute step S206; as judged in step S207 For 'no', then proceed to step S208: keep the output obtained in step S206, and use the data stored before to adjust the crystal when needed, then judge whether the satellite signal is normal in step S209, as judged as 'No ', then return to step S208; if step S209 judges "Yes", then step S206 is executed. It needs to be explained that the data structures of several circular queues are set up in the present invention to store data such as the phase difference between the recorded GPS second pulse and the local second pulse, crystal voltage control difference, etc. When the queue is full, the first stored data It is automatically erased; the present invention stores about 8,000 GPS second pulses and local second pulse differences, and these data can be used to make special adjustments to the crystal under special circumstances such as abnormal satellite signals and strong S.A interference.

图3示出图2中所示步骤S202所包括的步骤:首先在步骤S301判断是否已存满M个相位差值(M已在步骤S201中设定),如判断为“否”,则在步骤S203中延时1秒后执行步骤S301;如步骤S301判断为“是”,则直接执行步骤S303:将存储的M个相位差值平均,得到一平均相差,并存储该平均相差;然后执行步骤S304:判断是否已存满M个相位差值,如判断为“否”,则在步骤S305中延时1秒后执行步骤S304;如步骤S304判断为“是”,则直接执行步骤S306:将存储的M个相差值平均,得到一平均相差,并且存储的该平均相差;然后进到步骤S307:将此次求得的平均相差与上次存储的平均相差比较得到相差变化值E;接着进到步骤S308:设定相差变化率EC=0;然后在步骤S309中根据所述相差变化值E和相差变化率EC查询电压控制表(电压控制表的构建过程将在结合图5的说明中描述),得到晶体电压控制差值ΔU并存储该差值;接着执行步骤S310:将ΔU加在当前的控制电压上,调整晶体的输出频率:然后执行步骤S311:判断快捕过程是否已完成,如判断为“否”,则返回执行步骤S304;如步骤S311判断为“是”,则进入图2所示的步骤S203。Fig. 3 shows the steps included in step S202 shown in Fig. 2: first in step S301 it is judged whether to store M phase difference values (M has been set in step S201), as judged as "no", then in step S301 Step S301 is executed after a delay of 1 second in step S203; if step S301 judges "Yes", then step S303 is directly executed: average the stored M phase difference values to obtain an average phase difference, and store the average phase difference; then execute Step S304: Judging whether M phase difference values have been stored, if the judgment is "No", then execute Step S304 after a delay of 1 second in Step S305; if the judgment is "Yes" in Step S304, then directly execute Step S306: Average the stored M phase difference values to obtain an average phase difference, and store the average phase difference; then proceed to step S307: compare the average phase difference obtained this time with the average phase difference stored last time to obtain the phase difference change value E; then Proceed to step S308: set phase difference change rate EC=0; Then in step S309 according to described phase difference change value E and phase difference change rate EC query voltage control table (the construction process of voltage control table will be described in conjunction with Fig. 5 description), obtain the crystal voltage control difference ΔU and store the difference; then perform step S310: add ΔU to the current control voltage, adjust the output frequency of the crystal; then perform step S311: judge whether the fast-catching process has been completed, If the judgment is "No", return to step S304; if the judgment is "Yes" in step S311, then enter step S203 shown in FIG. 2 .

参见图4,该图示出图2所示步骤S206所包括的具体步骤:首先在步骤S401判断是否已存满N个相位差值(N已在步骤S201中设定),如判断为“否”,在步骤S402中延时1秒后重复执行步骤S401;如步骤S401判断为“是”,则直接执行步骤S403;将存储的N个相位差值平均,得到一平均相差,并存储该平均相差;然后执行步骤S404;将此次求得的平均相差与步骤S205中设定的标准相差比较得到相差变化值E,接着进到步骤S405;比较这次的平均相差与所存储的上一次的平均相差,得到相差变化率EC(因为在步骤S201中已将RAM清零,第一次执行步骤S405时,所述‘所存储的上一次的平均相差’被设定为0);然后进到步骤S406:根据相差变化值E和相差变化率EC,以及预先存放的以E和EC为自变量的二元电压控制表查出应施加的晶体控制电压差值ΔU;然后执行步骤S407,将ΔU加在当前的控制电压上,调整本地秒脉冲,需要说明一下,在步骤S403求平均相差前,可以先对存储的相差值进行滤波,去掉相差抖动较大的数据。Referring to Fig. 4, this figure shows the specific steps that step S206 shown in Fig. 2 comprises: at first judge whether to have stored N phase difference values (N has been set in step S201) in step S401, as judged as "No ", repeat step S401 after a delay of 1 second in step S402; if step S401 is judged as "yes", then directly execute step S403; average the stored N phase difference values to obtain an average phase difference, and store the average Phase difference; then execute step S404; compare the average phase difference obtained this time with the standard phase difference set in step S205 to obtain the phase difference change value E, then go to step S405; compare the average phase difference this time with the stored last time The average phase difference obtains the phase difference change rate EC (because in step S201 RAM is cleared, when executing step S405 for the first time, the 'average phase difference of the stored last time' is set to 0); then proceed to Step S406: Find out the crystal control voltage difference ΔU that should be applied according to the phase difference change value E, the phase difference change rate EC, and the pre-stored binary voltage control table with E and EC as independent variables; then execute step S407, and set ΔU It is added to the current control voltage to adjust the local pulse per second. It needs to be explained that before calculating the average phase difference in step S403, the stored phase difference value can be filtered to remove the data with large phase difference jitter.

图5示出构建以所述相差变化值和所述相差变化率为自变量的所述二元电压控制表的流程图:首先在步骤S501限定相差变化值E的量化范围(-90ns~90ns),并将该范围划分为X个区间(本例中X取13),然后进到步骤S502:限定相差变化率EC的量化范围(-90ns~90ns),并将该范围划分为Y个区间(本例中Y取13),接着执行步骤S503:限定晶体控制电压差值ΔU的量化范围(-0.002V~0.002V),并将该范围划分为Z个区间(本例中Z取13),然后在步骤S504根据公式ΔU=λ1E+λ2EC(此处λ1、λ2表示对E和EC的加权值)确定对应于每一对所述相差变化值E和所述相差变化率EC的晶体控制电压差值ΔU,即得到一张二元电压控制表,最后在步骤S505中存储该二元电压控制表。Fig. 5 shows the flow chart of constructing the said binary voltage control table with said phase difference change value and said phase difference change rate as independent variables: first, the quantization range (-90ns~90ns) of phase difference change value E is defined in step S501 , and divide this range into X intervals (in this example, X is 13), then proceed to step S502: define the quantization range (-90ns~90ns) of the phase difference change rate EC, and divide this range into Y intervals ( In this example, Y is taken as 13), and then step S503 is executed: limiting the quantization range (-0.002V to 0.002V) of the crystal control voltage difference ΔU, and dividing the range into Z intervals (in this example, Z is taken as 13), Then in step S504, according to the formula ΔU=λ 1 E+λ 2 EC (where λ 1 and λ 2 represent the weighted values of E and EC) to determine the value of change corresponding to each pair of the phase difference E and the rate of change of the phase difference The crystal control voltage difference ΔU of the EC, that is, a binary voltage control table is obtained, and finally the binary voltage control table is stored in step S505.

以上虽已结合实施例描述了本发明,但显然本发明的保护范围并不局限于此,本领域的技术人员还可能作出种种显而易见的变动,例如:在步骤S309中可以不采用查询二元电压控制表的方式,而直接根据公式ΔU=λ1E+λ2EC求得所述晶体电压控制差值ΔU;采用其他公司、其他型号的GPS卡;用其它形式的存储器代替本发明实施例中所使用的RAM和/或EPROM,存储数据时可采用其他形式的数据结构;还可以改变本发明中存储的数据量,所述M和N的保护范围,以及相差变化值、相差变化率、晶体控制电压差值的取值范围和划分的区间,等等。因此,本发明的保护范围仅由权利要求书来确定。Although the present invention has been described above in conjunction with the embodiments, it is obvious that the protection scope of the present invention is not limited thereto, and those skilled in the art may also make various obvious changes, for example: in step S309, the query binary voltage may not be used control table, and directly obtain the crystal voltage control difference ΔU according to the formula ΔU=λ 1 E+λ 2 EC; adopt GPS cards of other companies and models; The used RAM and/or EPROM can adopt other forms of data structures when storing data; the amount of data stored in the present invention can also be changed, the protection range of the M and N, and the phase difference change value, phase difference change rate, crystal Control the value range and division interval of the voltage difference, and so on. Therefore, the protection scope of the present invention is determined only by the claims.

Claims (16)

1. timing method based on gps signal, comprise each the GPS pulse of relatively receiving and the phase differential of local divided pulse, and store this phase differential, it is characterized in that according to effectively a data reserves N is set in filtering S.A. interference and the timely requirement of adjusting crystal, after being filled with N described differing, data are carried out smoothing processing, adjust described crystal, described to data carry out smoothing processing, the process of adjusting described crystal comprises following key step:
(1) calculates the mean value of N the described phase differential stored, obtain one and on average differ, and store this and on average differ;
(2) described on average differing with a predefined standard differed comparison, obtain differing changing value E;
(3) described on average the differing with last described on average differing of being stored that this is obtained compares, and obtains differing rate of change EC;
(4) differ changing value and the described rate of change that differs according to described, and deposit in advance differ changing value and the described rate of change that differs is that the crystal control voltage difference Δ U that should apply is determined in the binary voltages control table of independent variable with described;
(5) described crystal control voltage difference Δ U is added on the current control voltage, adjusts local pulse per second (PPS).
2. the timing method based on gps signal as claimed in claim 1 is characterized in that the step that makes up described binary voltages control table may further comprise the steps again:
-determine the described quantizing range that differs changing value E, and be several class with this scope division;
-determine the described quantizing range that differs rate of change EC, and be several class with this scope division;
-determine the quantizing range of described crystal control voltage difference Δ U, and be several class with this scope division;
-according to formula Δ U=λ 1E+ λ 2EC determines corresponding to each described changing value and the described described crystal control voltage difference Δ U that differs rate of change of differing promptly obtained the binary voltages control table as the Control of Voltage table;
This binary voltages control table of-storage.
3. the timing method based on gps signal as claimed in claim 1, it is characterized in that calculate described ask on average differ before, can carry out filtering to the described phase difference of storage earlier, remove and differ the bigger data of shake.
4. as claim 2 or 3 described timing methods based on gps signal, the span that it is characterized in that described N is 30~180.
5. the timing method based on gps signal as claimed in claim 4, it is characterized in that setting the described quantizing range that differs changing value is-90ns to 90ns, the described quantizing range that differs rate of change is-90ns to 90ns that the quantizing range of described crystal control voltage difference is-0.002V to 0.002V.
6. the timing method based on gps signal as claimed in claim 5, it is characterized in that with describedly differ changing value, the described quantizing range that differs rate of change, described crystal control voltage difference all is divided into 13 class.
7. as claim 1,2,3,5 or 6 described timing methods, it is characterized in that: store described phase differential and the described circle queue data structure that adopted when on average differing based on gps signal.
8. the timing method based on gps signal as claimed in claim 7, its feature also is: can utilize the described phase difference of being preserved to adjust crystal under special circumstances.
9. timing method based on gps signal, comprise each the GPS pulse of relatively receiving and the phase differential of local divided pulse, and store this phase differential, it is characterized in that according to effectively a data reserves N is set in filtering S.A. interference and the timely requirement of adjusting crystal, after being filled with N described differing, data are carried out smoothing processing, adjust described crystal, described to data carry out smoothing processing, the process of adjusting described crystal comprises following key step:
(1) calculates the mean value of N the described phase differential stored, obtain one and on average differ, and store this and on average differ;
(2) described on average differing with a predefined standard differed comparison, obtain differing changing value E;
(3) described on average the differing with last described on average differing of being stored that this is obtained compares, and obtains differing rate of change EC;
(4) by formula Δ U=λ 1E+ λ 2EC directly tries to achieve described crystal current pressure-controlled difference
(5) described crystal control voltage difference Δ U is added on the current control voltage, adjusts local pulse per second (PPS).
10. the timing method based on gps signal as claimed in claim 9, the span that it is characterized in that described N is 30~180.
11. the timing method based on gps signal as claimed in claim 10, it is characterized in that setting the described quantizing range that differs changing value is-90ns to 90ns, the described quantizing range that differs rate of change is-90ns to 90ns that the quantizing range of described crystal control voltage difference is-0.002V to 0.002V.
12. the timing method based on gps signal as claimed in claim 11, it is characterized in that with describedly differ changing value, the described quantizing range that differs rate of change, described crystal control voltage difference all is divided into 13 class.
13., it is characterized in that: store described phase differential and the described circle queue data structure that adopted when on average differing as claim 9,10,11 or 12 described timing methods based on gps signal.
14. the timing method based on gps signal as claimed in claim 13, its feature also is: can utilize the described phase difference of being preserved to adjust crystal under special circumstances.
15. the timing device based on gps signal comprises:
The antenna of-receiving satellite signal (101);
The GPS receiving circuit (102) of-recovery GPS pulse from satellite-signal;
-voltage-controlled crystal (oscillator) (108) and the frequency divider (110) of local divided pulse be provided;
The phase detector (103) of-comparison GPS pulse and local divided pulse phase differential;
The RAM (105) of-storage data;
-data are carried out smoothing processing, provided described crystal to control the CPU (104) of voltage difference;
-described crystal control voltage difference is added in D/A converter (107) on the described voltage-controlled crystal (oscillator) (108);
It is characterized in that this equipment also comprises:
-one storer (106) that is used for stored programme and described binary voltages control table.
16. the timing device based on gps signal as claimed in claim 15 is characterized in that: also comprise a frequency multiplier (109) that produces the 65MHz signal of the phase differential that writes down local divided pulse and GPS pulse.
CN97108825A 1997-01-27 1997-01-27 Timing method and device based on GPS signals Expired - Lifetime CN1084479C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN97108825A CN1084479C (en) 1997-01-27 1997-01-27 Timing method and device based on GPS signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN97108825A CN1084479C (en) 1997-01-27 1997-01-27 Timing method and device based on GPS signals

Publications (2)

Publication Number Publication Date
CN1189622A CN1189622A (en) 1998-08-05
CN1084479C true CN1084479C (en) 2002-05-08

Family

ID=5170672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN97108825A Expired - Lifetime CN1084479C (en) 1997-01-27 1997-01-27 Timing method and device based on GPS signals

Country Status (1)

Country Link
CN (1) CN1084479C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008019605A1 (en) * 2006-08-11 2008-02-21 Huawei Technologies Co., Ltd. A method and device for improving satellite time synchronization pulse hold performance

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6944540B2 (en) * 2002-03-28 2005-09-13 Motorola, Inc. Time determination in satellite positioning system receivers and methods therefor
US7139225B2 (en) * 2003-03-27 2006-11-21 Qualcomm, Incorporated Virtual real-time clock based on time information from multiple communication systems

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0564220A2 (en) * 1992-03-31 1993-10-06 Glenayre Electronics, Inc. Clock synchronization system
CN1086647A (en) * 1993-08-11 1994-05-11 格伦内勒电子有限公司 Method and apparatus for coordinating clocks in a simulcast network
WO1994028433A1 (en) * 1993-05-27 1994-12-08 Stellar Gps Corporation Gps synchronized frequency/time source

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0564220A2 (en) * 1992-03-31 1993-10-06 Glenayre Electronics, Inc. Clock synchronization system
WO1994028433A1 (en) * 1993-05-27 1994-12-08 Stellar Gps Corporation Gps synchronized frequency/time source
CN1086647A (en) * 1993-08-11 1994-05-11 格伦内勒电子有限公司 Method and apparatus for coordinating clocks in a simulcast network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008019605A1 (en) * 2006-08-11 2008-02-21 Huawei Technologies Co., Ltd. A method and device for improving satellite time synchronization pulse hold performance

Also Published As

Publication number Publication date
CN1189622A (en) 1998-08-05

Similar Documents

Publication Publication Date Title
US4780759A (en) Sampling clock generation circuit of video signal
Mills Precision synchronization of computer network clocks
US20180039898A1 (en) Anomaly detection for time series data having arbitrary seasonality
CN109101589A (en) A kind of method, apparatus and system of adjust automatically memory database space size
US20100122257A1 (en) Electronic device and electronic device control method
US20040124884A1 (en) Low gain phase-locked loop circuit
US7778093B2 (en) Memory control circuit capable of dynamically adjusting deglitch windows, and related method
CN1084479C (en) Timing method and device based on GPS signals
CA2053096A1 (en) Device for reducing pointer hopping jitter in a digital telecommunications network
CN106412276A (en) Method for adjusting terminal parameters and mobile terminal
CN109428786A (en) Network performance monitoring method and apparatus
US8810588B2 (en) Display switching apparatus
CN106877963B (en) A kind of synchronised clock holding system and method with learning functionality
CN108920064A (en) Split screen window adjusting method and device, storage medium and electronic equipment
US6621480B1 (en) Phase adjuster, phase adjusting method and display device
US7724812B2 (en) Method and apparatus for de-jittering a clock signal
US20080095292A1 (en) Apparatus and method for clock phase alignment between active and standby clock cards and clock card
CN111477187B (en) Time schedule controller, signal calibration method thereof and display device
US7583124B2 (en) Delaying stage selecting circuit and method thereof
US20140354882A1 (en) Video processing method, video displaying method and video processing device
US20100277407A1 (en) Liquid crystal display module and method for using the same
CN114584821A (en) Video processing method and device
JP4937229B2 (en) Clock adjusting device and image recording device
US20070038690A1 (en) Adjustable time accumulator
CN113922905B (en) A cross-connection device and a clock keeping method and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: HUAWEI TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SHENZHEN HUAWEI TECHNOLOGY CO., LTD

Effective date: 20010629

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20010629

Address after: Guangdong Shenzhen science and Technology Park, HUAWEI road user service center building HUAWEI Technology Co., Ltd. Intellectual Property Department

Applicant after: Huawei Technologies Co., Ltd.

Address before: Zhao Yanzhuan, HUAWEI service center, road, Shenzhen science and Technology Park, China

Applicant before: Huawei Technology Co., Ltd., Shenzhen City

C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20020508

DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Huawei Technologies Co., Ltd.

Document name: Notification of Expiration of Patent Right Duration