CN102590837B - A method for correcting phase error of GPS signal source - Google Patents

A method for correcting phase error of GPS signal source Download PDF

Info

Publication number
CN102590837B
CN102590837B CN201110394219.0A CN201110394219A CN102590837B CN 102590837 B CN102590837 B CN 102590837B CN 201110394219 A CN201110394219 A CN 201110394219A CN 102590837 B CN102590837 B CN 102590837B
Authority
CN
China
Prior art keywords
phase
frequency control
time interval
control word
value
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 - Fee Related
Application number
CN201110394219.0A
Other languages
Chinese (zh)
Other versions
CN102590837A (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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201110394219.0A priority Critical patent/CN102590837B/en
Publication of CN102590837A publication Critical patent/CN102590837A/en
Application granted granted Critical
Publication of CN102590837B publication Critical patent/CN102590837B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

本发明涉及模拟产生GPS信号源的技术领域,具体涉及一种用于校正GPS信号源的相位误差的方法。本发明技术方案在利用输入的多普勒频率参数算出浮点格式的频率控制字后,将其定点化并计算校正时间间隔内产生的总误差,进而用定点化以后的频率控制字来控制相位累加,如果达到了校正时间,则将累加结果加上总误差并保存和输出,反之直接保存并输出。如果达到了参数更新时间间隔,则根据当前时刻的多普勒频率重新计算浮点格式的频率控制字并重复上述步骤,反之继续进行相位累加。本发明技术方案折中的兼顾了浮点实现的高精度和定点实现的简便低成本,同时能够对定点实现过程中的有限字长效应进行校正。

The invention relates to the technical field of simulating and generating a GPS signal source, in particular to a method for correcting the phase error of the GPS signal source. The technical scheme of the present invention uses the input Doppler frequency parameter to calculate the frequency control word in floating point format, then converts it to a fixed point and calculates the total error generated in the correction time interval, and then uses the frequency control word after the fixed point to control the phase Accumulation, if the correction time is reached, the accumulation result will be added to the total error and saved and output, otherwise it will be directly saved and output. If the parameter update time interval is reached, recalculate the frequency control word in floating-point format according to the Doppler frequency at the current moment and repeat the above steps, otherwise continue to perform phase accumulation. The technical scheme of the present invention compromises the high precision of floating-point implementation and the simplicity and low cost of fixed-point implementation, and can correct the limited word length effect in the process of fixed-point implementation.

Description

一种用于校正GPS信号源的相位误差的方法A method for correcting phase error of GPS signal source

技术领域 technical field

本发明涉及模拟产生GPS信号源的技术领域,具体涉及一种用于校正GPS信号源的相位误差的方法。The invention relates to the technical field of simulating and generating a GPS signal source, in particular to a method for correcting the phase error of the GPS signal source.

背景技术 Background technique

GPS信号源可以为卫星导航领域的各项研究、仿真和测试提供可重复的模拟信号,有助于研究工作的推进。同时,在不便于架设天线的环境中,如偏远山区和气候恶劣的地区,GPS信号源也可以保证导航终端的正常工作,大大降低了架设天线的建设成本和维护费用。The GPS signal source can provide repeatable analog signals for various researches, simulations and tests in the field of satellite navigation, which is helpful for the advancement of research work. At the same time, in environments where it is not convenient to install antennas, such as remote mountainous areas and areas with harsh climates, the GPS signal source can also ensure the normal operation of the navigation terminal, greatly reducing the construction and maintenance costs of installing antennas.

在GPS信号源模拟产生GPS信号的过程中,需要计算出中频载波的频率控制字,C/A码的频率控制字和导航电文的频率控制字,进而分别用这三个频率控制字去控制相位累加,分别得到中频载波、C/A码和导航电文的相位。In the process of simulating the generation of GPS signals by the GPS signal source, it is necessary to calculate the frequency control word of the intermediate frequency carrier, the frequency control word of the C/A code and the frequency control word of the navigation message, and then use these three frequency control words to control the phase respectively. Accumulated to obtain the phases of IF carrier, C/A code and navigation message respectively.

计算上述频率控制字和进行相位累加的方法主要包括如下步骤:The method for calculating the above-mentioned frequency control word and performing phase accumulation mainly includes the following steps:

步骤1:利用多普勒频率参数计算中频载波的频率控制字、C/A码的频率控制字和导航电文的频率控制字;Step 1: Calculate the frequency control word of the intermediate frequency carrier, the frequency control word of the C/A code and the frequency control word of the navigation message by using the Doppler frequency parameter;

步骤2:按照采样间隔,利用步骤1得到的频率控制字进行相位累加,得到中频载波、C/A码和导航电文的相位。Step 2: According to the sampling interval, use the frequency control word obtained in Step 1 to perform phase accumulation to obtain the phases of the intermediate frequency carrier, C/A code and navigation message.

其中,利用多普勒频率参数计算中频载波的频率控制字FCW_Carrier_Float的公式为:Among them, the formula for calculating the frequency control word FCW_Carrier_Float of the intermediate frequency carrier by using the Doppler frequency parameter is:

FCWFCW __ CarrierCarrier __ FloatFloat == ff II ++ ff dd ff sthe s

fI表示中频频率,fd表示多普勒频率,fs表示信号采样频率。f I represents the intermediate frequency, f d represents the Doppler frequency, and f s represents the signal sampling frequency.

利用多普勒频率参数计算C/A码的频率控制字FCW_Code_Float的公式为:The formula for calculating the frequency control word FCW_Code_Float of the C/A code using the Doppler frequency parameter is:

FCWFCW __ CodeCode __ FloatFloat == ff CC ++ ff dd ×× (( ff CC // ff TT )) ff sthe s

fC为C/A码的码率,fT为GPS信号载波频率。f C is the code rate of the C/A code, and f T is the carrier frequency of the GPS signal.

利用多普勒频率参数计算计算导航电文的频率控制字FCW_Data_Float的公式为:The formula for calculating the frequency control word FCW_Data_Float of the navigation message by using the Doppler frequency parameter is:

FCWFCW __ DataData __ FloatFloat == ff DD. ++ ff dd ×× (( ff DD. // ff TT )) ff sthe s

fD表示导航电文码率。f D represents the code rate of the navigation message.

步骤2在用频率控制字进行相位累加时,如果所用的多普勒频率对该颗卫星而言是第一次计算得到的,则应该从GPS信号的初始相位开始累加,否则就在上次累加得到的相位累加值基础上继续累加。In step 2, when using the frequency control word for phase accumulation, if the Doppler frequency used is calculated for the first time for this satellite, it should be accumulated from the initial phase of the GPS signal, otherwise it should be accumulated at the last time Continue to accumulate based on the obtained phase accumulation value.

由此可见,对于计算GPS信号源的中频载波、C/A码和导航电文的相位而言,多普勒频率和该GPS卫星信号的初始相位是其基本的输入参数,这两个参数一般是由GPS信号源的其他模块计算生成并输出给相位计算模块。It can be seen that for the calculation of the phase of the intermediate frequency carrier, C/A code and navigation message of the GPS signal source, the Doppler frequency and the initial phase of the GPS satellite signal are its basic input parameters. These two parameters are generally It is calculated and generated by other modules of the GPS signal source and output to the phase calculation module.

在一个数字平台上具体实现上述步骤时,既可以采用定点的数字平台,也可以采用浮点的数字平台。我们经过分析发现,无论单纯采用哪种平台来实现,都存在如下难点:如果采用定点平台来实现,则意味着用一个有限长的二进制串来表示中频载波频率控制字、C/A码频率控制字和导航电文频率控制字时,这就存在表示误差,即:其定点方式表示的值与理想值之间存在偏差。这使得模拟产生的GPS信号和真实的信号之间存在差距。并且,随着时间的增加,这个差距可能逐渐变大,导致性能进一步恶化。如果在浮点平台上来表示和处理数据,可以大大降低有限字长效应引起的误差,但这必将增大实现的难度、硬件平台的成本和整个系统的功耗。When implementing the above steps on a digital platform, either a fixed-point digital platform or a floating-point digital platform can be used. After analysis, we found that no matter which platform is used to implement, there are the following difficulties: if a fixed-point platform is used to implement, it means that a finite length binary string is used to represent the IF carrier frequency control word and the C/A code frequency control word. When it is used with the frequency control word of the navigation message, there is a representation error, that is, there is a deviation between the value represented by the fixed-point method and the ideal value. This creates a gap between the simulated GPS signal and the real one. And, as time increases, this gap may gradually become larger, leading to further deterioration of performance. If the data is represented and processed on a floating-point platform, the error caused by the finite word length effect can be greatly reduced, but this will inevitably increase the difficulty of implementation, the cost of the hardware platform, and the power consumption of the entire system.

从国内外公开的文献来看,我们没有找到能够同时有效的解决上述两方面技术问题的技术方案。Judging from the published literature at home and abroad, we have not found a technical solution that can effectively solve the above two technical problems at the same time.

发明内容 Contents of the invention

本发明提出的一种用于校正GPS信号源的相位误差的方法,其特征是依次包括如下步骤:A kind of method for correcting the phase error of GPS signal source that the present invention proposes is characterized in that comprising the following steps successively:

步骤1:设定数字平台的字长为LW,中频载波、C/A码和导航电文信号各自最大可容忍的相位误差为Max_Phase_Err,参数更新时间间隔Tu,有限字长效应校正的时间间隔Te,信号的采样时间间隔TsStep 1: Set the word length of the digital platform to be L W , the maximum tolerable phase error of the IF carrier, C/A code and navigation message signal to be Max_Phase_Err, the parameter update time interval T u , and the time interval for correction of the finite word length effect T e , signal sampling time interval T s ;

步骤2:利用当前时刻的多普勒频率参数,计算浮点格式的频率控制字;Step 2: use the Doppler frequency parameter at the current moment to calculate the frequency control word in floating point format;

步骤3:将步骤2得到的浮点格式的频率控制字转换成字长为LW的定点格式的频率控制字,记录单次转换产生的误差,并计算在有限字长效应校正的时间间隔Te内产生的误差的总和,然后将该误差总和以定点格式保存;Step 3: Convert the frequency control word in floating-point format obtained in step 2 into a frequency control word in a fixed-point format with a word length of L W , record the error generated by a single conversion, and calculate the time interval T for correcting the finite word length effect The sum of the errors generated in e , and then save the sum of errors in fixed-point format;

步骤4:用步骤3得到的定点格式的频率控制字,以信号的采样时间间隔Ts为时间节拍,对信号的相位进行累加,然后判断累加过程的时间是否达到有限字长效应校正的时间间隔Te,如果达到了该间隔,则先用该相位累加值加上步骤3得到的误差总和,得到相位误差校正值,将该相位误差校正值对

Figure BSA00000627448800031
取模后保存并输出,然后进入步骤5,如果没有达到,则直接将相位累加值对
Figure BSA00000627448800032
取模后保存并输出该结果,然后进入步骤5;Step 4: Use the frequency control word in the fixed-point format obtained in step 3, take the sampling time interval T s of the signal as the time beat, accumulate the phase of the signal, and then judge whether the time of the accumulation process reaches the time interval of the correction of the finite word length effect T e , if the interval is reached, add the sum of errors obtained in step 3 to the phase accumulation value to obtain the phase error correction value, and compare the phase error correction value to
Figure BSA00000627448800031
After taking the modulus, save and output, and then go to step 5, if not, directly add the phase accumulation value to
Figure BSA00000627448800032
After taking the modulus, save and output the result, and then go to step 5;

步骤5:判断是否达到参数更新时间间隔Tu,如果达到,则返回步骤2;如果没有达到,则返回步骤4。Step 5: Judging whether the parameter update time interval T u is reached, if so, return to step 2; if not, return to step 4.

参数更新时间间隔Tu大于或者等于有限字长效应校正的时间间隔TeThe parameter updating time interval T u is greater than or equal to the time interval T e of finite word length effect correction.

参数更新时间间隔Tu是有限字长效应校正的时间间隔Te的整数倍。The parameter update time interval T u is an integer multiple of the time interval T e for finite word length effect correction.

所述频率控制字为中频载波频率控制字、C/A码频率控制字和导航电文频率控制字中的一个。The frequency control word is one of the intermediate frequency carrier frequency control word, the C/A code frequency control word and the navigation message frequency control word.

有限字长效应校正的时间间隔Te采用如下方法确定:The time interval T e for correcting the finite word length effect is determined by the following method:

1)对于每一个所述的频率控制字,分别根据所述的能够容忍的最大相位误差Max_Phase_Err计算其所需要的最小累积次数Min_N=Max_Phase_Err/Max_ΔFCW,其中,Max_ΔFCW为所述步骤3中将浮点格式的频率控制字转换成定点格式的频率控制字时可能导致的最大误差的绝对值,对于采用小数位四舍五入方式的转换方法,Max_ΔFCW=0.5,对于采用直接去除小数位的转换方法,Max_ΔFCW=1;1) For each of the frequency control words, calculate the required minimum number of accumulations Min_N=Max_Phase_Err/Max_ΔFCW according to the maximum tolerable phase error Max_Phase_Err respectively, wherein, Max_ΔFCW is the floating point in the step 3 The absolute value of the maximum error that may be caused when the frequency control word in the fixed-point format is converted into the frequency control word in the fixed-point format. For the conversion method that uses the decimal place rounding method, Max_ΔFCW=0.5, and for the conversion method that directly removes the decimal place, Max_ΔFCW=1 ;

2)对于每一个所述的频率控制字,分别计算Te=Ts×Min_N,其中Ts为所述的信号的采样时间间隔;2) For each of the frequency control words, calculate T e =T s ×Min_N respectively, where T s is the sampling time interval of the signal;

3)取2)步得到的三个Te中的最小值,即为有限字长效应校正的时间间隔Te3) Take the minimum value among the three T e obtained in step 2), which is the time interval T e for correction of the finite word length effect.

所述步骤3将浮点格式的频率控制字转换成字长为LW的定点格式的步骤包括:Said step 3 converts the frequency control word of the floating-point format into the fixed-point format whose word length is L W and includes:

4)将所述浮点格式的频率控制字乘以

Figure BSA00000627448800041
4) multiply the frequency control word in the floating-point format by
Figure BSA00000627448800041

5)将1)步得到的值进行小数位四舍五入的取整数运算或者将1)步得到的值直接去除小数位的取整运算。5) The value obtained in step 1) is rounded off to an integer or the value obtained in step 1) is directly removed from the decimal place.

步骤3所述的在有限字长效应校正的时间间隔Te内产生的误差的总和=所述单次转换产生的误差×Te/TsThe sum of the errors generated in the time interval T e of the finite word length effect correction described in step 3 = the error generated by the single conversion×T e /T s .

所述步骤4对信号的相位进行累加的方法是循环执行下面的公式:相位累加值=相位累加值+所述步骤3得到的定点格式的频率控制字,如果对于当前模拟的这颗GPS卫星而言是第一次计算其多普勒频率参数,则相位累加值的初值为信号的初始相位值,否则,相位累加值的初值为所述步骤4中的保存下来的相位累加值。The method for accumulating the phase of the signal in the step 4 is to execute the following formula cyclically: phase accumulation value=phase accumulation value+the frequency control word in the fixed-point format obtained in the step 3, if for the current simulated GPS satellite If it is the first time to calculate its Doppler frequency parameter, the initial value of the phase accumulation value is the initial phase value of the signal; otherwise, the initial value of the phase accumulation value is the phase accumulation value saved in step 4.

本发明的技术方案在浮点实现和定点实现上进行了很好的折中,结合了浮点实现的精确性和定点实现的简单性,同时考虑了浮点格式转定点格式过程中由于有限字长效应引进的误差,并对其进行了校正。在本技术方案的步骤3之前,参数的计算频率较低(等于参数更新间隔Tu),使用浮点实现,以更准确的根据当前时刻卫星信号的多普勒频率来计算平率控制字的值;步骤3之后,计算频率较高(主要是按采样间隔Ts进行相位累加计算),使用定点实现,可以更简单快速的产生卫星信号。同时,还计算了有限字长效应引起的相位累积误差,并且在定点实现部分的参数更新间隔Te处进行了校正,保证了定点实现的准确性。The technical scheme of the present invention makes a good compromise between the floating-point implementation and the fixed-point implementation, combines the accuracy of the floating-point implementation and the simplicity of the fixed-point implementation, and considers the limited word Errors introduced by long effects were corrected for. Before step 3 of this technical solution, the calculation frequency of the parameters is relatively low (equal to the parameter update interval Tu ), and the floating-point implementation is used to calculate the average rate control word more accurately according to the Doppler frequency of the satellite signal at the current moment. value; after step 3, the calculation frequency is relatively high (mainly the phase accumulation calculation is carried out according to the sampling interval T s ), and the fixed-point implementation can be used to generate satellite signals more simply and quickly. At the same time, the phase accumulation error caused by the finite word length effect is also calculated, and corrected at the parameter update interval Te of the fixed-point implementation part, which ensures the accuracy of the fixed-point implementation.

附图说明 Description of drawings

附图1为本发明提出的一种用于校正GPS信号源的相位误差的方法的总体流程图。Accompanying drawing 1 is the overall flowchart of a method for correcting the phase error of the GPS signal source proposed by the present invention.

具体实施方式 Detailed ways

下面具体说明本发明技术方案的实施方式。The implementation manner of the technical solution of the present invention will be described in detail below.

步骤1:初始化,具体包括:设定参数,包括GPS信号载波频率fT=1575.42MHz,C/A码率fC=1.023MHz,导航电文码率fD=50Hz,采样频率fs=16.384MHz,采样间隔Ts=1/16.384us,中频fI=5.12MHz,数字平台的字长LW=32bit,,三个频率控制字误差引起的最大相位误差容忍值为均8192,采用四舍五入的方法实现定点化,即Max_ΔFCW=0.5,由此得到的有限字长效应校正间隔Te=1ms,校正间隔内的数据点数Ne=Te/Ts=16384,另外,设参数更新间隔Tu=2ms,Nu=Tu/Te=2。Step 1: Initialization, specifically including: setting parameters, including GPS signal carrier frequency f T =1575.42MHz, C/A code rate f C =1.023MHz, navigation message code rate f D =50Hz, sampling frequency f s =16.384MHz , the sampling interval T s =1/16.384us, the intermediate frequency f I =5.12MHz, the word length L W of the digital platform =32bit, the maximum phase error tolerance value caused by the three frequency control word errors is 8192, and the rounding method is adopted Realize fixed-point, that is, Max_ΔFCW=0.5, the finite word length effect correction interval T e =1ms obtained from this, the number of data points in the correction interval N e =T e /T s =16384, in addition, set the parameter update interval T u = 2 ms, N u =T u /T e =2.

步骤2:根据当前时刻的多普勒频率计算出浮点格式的频率控制字Step 2: Calculate the frequency control word in floating point format according to the Doppler frequency at the current moment

(a)计算中频载波的频率控制字FCW_Carrier_Float,即(a) Calculate the frequency control word FCW_Carrier_Float of the intermediate frequency carrier, namely

FCWFCW __ CarrierCarrier __ FloatFloat == 5.125.12 MHzMHz ++ ff dd 16.38416.384 MHzMHz

(b)计算C/A码的频率控制字FCW_Code_Float,即(b) Calculate the frequency control word FCW_Code_Float of the C/A code, namely

FCWFCW __ CodeCode __ FloatFloat == 1.0231.023 MHzMHz ++ ff dd ×× (( 1.0231.023 // 1575.421575.42 )) 16.38416.384 MHzMHz

(c)计算导航电文的频率控制字FCW_Data_Float,即(c) Calculate the frequency control word FCW_Data_Float of the navigation message, namely

FCWFCW __ DataData __ FloatFloat == 5050 HzHz ++ ff dd ×× (( 5050 HzHz // 1575.421575.42 MHzMHz )) 16.38416.384 MHzMHz

其中fd为多普勒频率。where f d is the Doppler frequency.

步骤3:对频率控制字进行定点化处理,并记录有限字长效应引起的误差,具体包括如下步骤:Step 3: Perform fixed-point processing on the frequency control word, and record the error caused by the finite word length effect, specifically including the following steps:

步骤3-1:对浮点格式的中频频率控制字FCW_Carrier_Float乘以后进行对小数位的四舍五入,得到定点格式的中频频率控制字FCW_Carrier,即Step 3-1: Multiply the IF frequency control word FCW_Carrier_Float in floating point format by Afterwards, the decimal place is rounded to obtain the intermediate frequency frequency control word FCW_Carrier in the fixed-point format, namely

FCW_Carrier=round{FCW_Carrier_Float×232}FCW_Carrier=round{FCW_Carrier_Float×2 32 }

计算在有限字长效应校正间隔Te内,由有限字长效应引起的中频载波相位累积误差ΔPhase_Carrier,仍用定点格式表示,即Calculate the intermediate frequency carrier phase cumulative error ΔPhase_Carrier caused by the finite word length effect within the correction interval T e of the finite word length effect, which is still expressed in a fixed-point format, namely

ΔPhase_Carrier=round{(FCW_Carrier_Float×232-FCW_Carrier)×16384}ΔPhase_Carrier=round{(FCW_Carrier_Float×2 32 -FCW_Carrier)×16384}

步骤3-2:对浮点格式的C/A码频率控制字FCW_Code_Float乘以

Figure BSA00000627448800065
后进行对小数位的四舍五入,得到定点格式的C/A码频率控制字FCW_Code,即Step 3-2: Multiply the C/A code frequency control word FCW_Code_Float in floating point format by
Figure BSA00000627448800065
Carry out the rounding to decimal places afterward, obtain the C/A code frequency control word FCW_Code of fixed-point format, namely

FCW_Code=round{FCW_Code_Float×232}FCW_Code=round{FCW_Code_Float×2 32 }

计算有限字长效应校正间隔Te内,由有限字长效应引起的C/A码相位累积误差ΔPhase_Code,仍用定点格式表示,即Calculate the C/A code phase cumulative error ΔPhase_Code caused by the finite word length effect within the correction interval T e of the finite word length effect, which is still expressed in a fixed-point format, namely

ΔPhase_Code=round{(FCW_Code_Float×232-FCW_Code)×16384}ΔPhase_Code=round{(FCW_Code_Float×2 32 -FCW_Code)×16384}

步骤3-3:对浮点格式的导航电文频率控制字FCW_Data_Float乘以

Figure BSA00000627448800066
后进行对小数位的四舍五入,得到定点格式的导航电文频率控制字FCW_Data,即Step 3-3: Multiply the navigation message frequency control word FCW_Data_Float in floating point format by
Figure BSA00000627448800066
Afterwards, the decimal place is rounded to obtain the frequency control word FCW_Data of the navigation message in fixed-point format, namely

FCW_Data=round{FCW_Data_Float×232}FCW_Data=round{FCW_Data_Float×2 32 }

计算有限字长效应校正间隔Te内,由有限字长效应引起的导航电文相位累积误差ΔPhase_Data,仍用定点格式表示,即Calculate the cumulative error ΔPhase_Data of the navigation message phase caused by the finite word length effect within the correction interval T e of the finite word length effect, which is still expressed in a fixed-point format, namely

ΔPhase_Data=round{(FCW_Data_Float×232-FCW_Data)×16384}ΔPhase_Data=round{(FCW_Data_Float×2 32 -FCW_Data)×16384}

上述公式中的round{}运算,表示对小数位的四舍五入操作,除了采用对小数位四舍五入的方式来完成浮点格式到定点格式的转换外,还可以直接将小数位舍弃,即只保留整数位的做法来转换成定点格式的频率控制字,如果采用这种方法,Max_ΔFCW=1,与Max_ΔFCW相关的其他参数,也应该做相应的改变。The round{} operation in the above formula indicates the rounding operation of decimal places. In addition to using the method of rounding decimal places to complete the conversion from floating-point format to fixed-point format, the decimal place can also be discarded directly, that is, only integer places are reserved. Convert the frequency control word into a fixed-point format by using this method. If this method is used, Max_ΔFCW=1, and other parameters related to Max_ΔFCW should also be changed accordingly.

步骤4:利用定点格式的频率控制字进行相位累加,具体包括如下步骤:Step 4: Use the frequency control word in fixed-point format to carry out phase accumulation, specifically including the following steps:

步骤4-1:利用中频载波的频率控制字进行相位累加,即Step 4-1: Use the frequency control word of the intermediate frequency carrier to perform phase accumulation, namely

Phase_Carrier=Phase_Carrier+FCW_CarrierPhase_Carrier = Phase_Carrier + FCW_Carrier

步骤4-2:利用C/A码的频率控制字进行相位累加,即Step 4-2: Use the frequency control word of the C/A code to perform phase accumulation, namely

Phase_Code=Phase_Code+FCW_CodePhase_Code=Phase_Code+FCW_Code

步骤4-3:利用导航电文的频率控制字进行相位累加,即Step 4-3: Use the frequency control word of the navigation message to perform phase accumulation, namely

Phase_Data=Phase_Data+FCW_DataPhase_Data = Phase_Data + FCW_Data

在用频率控制字对相位进行累加开始前,需要判断所采用的多普勒频率对该颗卫星而言是否是第一次计算得到的,如果是,则上面三个累加公式中的相位的初始值为该卫星信号的初相;如果不是,则则上面三个累加公式中的相位的初始值为上一次累加以后保存下来的相位累加值。Before starting to accumulate the phase with the frequency control word, it is necessary to judge whether the adopted Doppler frequency is calculated for the first time for this satellite. If so, the initial phase of the above three accumulation formulas The value is the initial phase of the satellite signal; if not, the initial value of the phase in the above three accumulation formulas is the accumulated phase value saved after the last accumulation.

步骤5:如果到达有限字长效应校正间隔Te,则利用累积误差量对有限字长效应进行校正,并将校正以后的累加结果保存,具体包括如下步骤:Step 5: If the finite word length effect correction interval T e is reached, use the accumulated error amount to correct the finite word length effect, and save the accumulated result after correction, specifically including the following steps:

步骤5-1:校正中频载波相位,即Step 5-1: Correct the IF carrier phase, that is

Phase_Carrier=Phase_Carrier+ΔPhase_CarrierPhase_Carrier = Phase_Carrier + ΔPhase_Carrier

步骤5-2:校正C/A码相位,即Step 5-2: Correct the C/A code phase, namely

Phase_Code=Phase_Code+ΔPhase_CodePhase_Code=Phase_Code+ΔPhase_Code

步骤5-3:校正导航电文相位,即Step 5-3: Correct the navigation message phase, namely

Phase_Data=Phase_Data+ΔPhase_DataPhase_Data = Phase_Data + ΔPhase_Data

如果没有达到有限字长效应校正间隔Te,则直接将累加结果保存。If the finite word length effect correction interval T e is not reached, the accumulation result is directly saved.

步骤6:对步骤5保存的三个相位累加值按232进行取模并输出,具体包括如下步骤:Step 6: Take the modulus of the three phase accumulation values saved in step 5 according to 232 and output them, specifically including the following steps:

步骤6-1:对中频载波相位进行取模,即Step 6-1: Take the modulus of the carrier phase of the intermediate frequency, namely

Phase_Carrier=mod{Phase_Carrier,232}Phase_Carrier = mod{Phase_Carrier, 2 32 }

步骤6-2:对C/A码相位进行取模,即Step 6-2: Take the modulus of the C/A code phase, namely

Phase_Code=mod{Phase_Code,232}Phase_Code = mod{Phase_Code, 2 32 }

步骤6-3:对导航电文相位进行取模,即Step 6-3: Take the modulus of the phase of the navigation message, namely

Phase_Data=mod{Phase_Data,232}Phase_Data = mod{Phase_Data, 2 32 }

在定点实现过程中,取模就是简单的取低位,即对232取模,就是简单地取出相位累加值的低32位即可。In the fixed-point implementation process, the modulus is simply to take the low bit, that is, to take the modulo of 232 , that is, to simply take out the low 32 bits of the phase accumulation value.

步骤7:判断是否达到了参数更新间隔Tu,如果达到,则返回步骤2,否则返回步骤4。Step 7: Judging whether the parameter update interval T u has been reached, if so, return to step 2, otherwise return to step 4.

本具体实施例的步骤2采用浮点方式实现,步骤3、4、5、6采用定点方式实现,从上面的步骤描述可以看出,只有达到了参数更新间隔Tu时,才会要求浮点平台重新计算各个频率控制字,而参数更新间隔Tu的值一般都比有限字长效应校正间隔Te要长,这就很好的兼顾了精度和系统成本,使得高成本和高功耗的浮点运算量比较少,大量的运算放在定点平台实现。因此,本技术方案在具体实现时,建议将浮点实现部分和定点实现部分分开,置于不同的平台上,如采用“DSP+FPGA”的模式,DSP负责浮点相关的计算,FPGA负责相位累加和查表,共同完成模拟GPS信号的任务。Step 2 of this specific embodiment is implemented in a floating-point manner, and steps 3, 4, 5, and 6 are implemented in a fixed-point manner. As can be seen from the above step description, only when the parameter update interval Tu is reached, the floating-point method is required. The platform recalculates each frequency control word, and the value of the parameter update interval T u is generally longer than the finite word length effect correction interval T e , which is a good balance between accuracy and system cost, making high cost and high power consumption The amount of floating-point operations is relatively small, and a large number of operations are implemented on fixed-point platforms. Therefore, in the specific implementation of this technical solution, it is recommended to separate the floating-point implementation part from the fixed-point implementation part and place them on different platforms. For example, if the "DSP+FPGA" mode is adopted, DSP is responsible for floating-point related calculations, and FPGA is responsible for phase Accumulate and look up the table to complete the task of simulating GPS signals together.

Claims (6)

1.一种用于校正GPS信号源的相位误差的方法,其特征是依次包括如下步骤:1. A method for correcting a phase error of a GPS signal source, characterized in that it comprises the steps successively: 步骤1:设定数字平台的字长为Lw,中频载波、C/A码和导航电文信号各自最大可容忍的相位误差为Max_Phase_Err,参数更新时间间隔Tu,有限字长效应校正的时间间隔Te,信号的采样时间间隔TsStep 1: Set the word length of the digital platform as L w , the maximum tolerable phase error of the intermediate frequency carrier, C/A code and navigation message signal as Max_Phase_Err, the parameter update time interval T u , and the time interval for correction of the finite word length effect T e , signal sampling time interval T s ; 步骤2:利用当前时刻的多普勒频率参数,计算浮点格式的频率控制字;Step 2: use the Doppler frequency parameter at the current moment to calculate the frequency control word in floating point format; 步骤3:将步骤2得到的浮点格式的频率控制字转换成字长为Lw的定点格式的频率控制字,记录单次转换产生的误差,并计算在有限字长效应校正的时间间隔Te内产生的误差的总和,然后将该误差总和以定点格式保存;Step 3: Convert the frequency control word in floating-point format obtained in step 2 into a frequency control word in fixed-point format with a word length of Lw , record the error generated by a single conversion, and calculate the time interval T for correcting the finite word length effect The sum of the errors generated in e , and then save the error sum in fixed-point format; 步骤4:用步骤3得到的定点格式的频率控制字,以信号的采样时间间隔Ts为时间节拍,对信号的相位进行累加,然后判断累加过程的时间是否达到有限字长效应校正的时间间隔Te,如果达到了该间隔,则先用该相位累加值加上步骤3得到的误差总和,得到相位误差校正值,将该相位误差校正值对
Figure FSB0000114467210000011
取模后保存并输出,然后进入步骤5,如果没有达到,则直接将相位累加值对
Figure FSB0000114467210000012
取模后保存并输出该结果,然后进入步骤5;
Step 4: Use the frequency control word in the fixed-point format obtained in step 3, take the sampling time interval T s of the signal as the time beat, accumulate the phase of the signal, and then judge whether the time of the accumulation process reaches the time interval of the correction of the finite word length effect T e , if the interval is reached, add the sum of errors obtained in step 3 to the phase accumulation value to obtain the phase error correction value, and compare the phase error correction value to
Figure FSB0000114467210000011
After taking the modulus, save and output, and then go to step 5, if not, directly add the phase accumulation value to
Figure FSB0000114467210000012
After taking the modulus, save and output the result, and then go to step 5;
步骤5:判断是否达到参数更新时间间隔Tu,如果达到,则返回步骤2;如果没有达到,则返回步骤4;Step 5: Judging whether the parameter update time interval T u is reached, if so, return to step 2; if not, return to step 4; 其中,所述频率控制字为中频载波频率控制字、C/A码频率控制字和导航电文频率控制字中的一个;有限字长效应校正的时间间隔Te采用如下方法确定:Wherein, the frequency control word is one of the intermediate frequency carrier frequency control word, the C/A code frequency control word and the navigation message frequency control word; the time interval Te of the finite word length effect correction is determined by the following method: 1)对于每一个所述的频率控制字,分别根据所述的能够容忍的最大相位误差Max_Phase_Err计算其所需要的最小累积次数Min_N=Max_Phase_Err/Max_ΔFCW,其中,Max_ΔFCW为所述步骤3中将浮点格式的频率控制字转换成定点格式的频率控制字时可能导致的最大误差的绝对值,对于采用小数位四舍五入方式的转换方法,Max_ΔFCW=0.5,对于采用直接去除小数位的转换方法,Max_ΔFCW=1;1) For each of the frequency control words, calculate the required minimum number of accumulations Min_N=Max_Phase_Err/Max_ΔFCW according to the maximum tolerable phase error Max_Phase_Err respectively, wherein, Max_ΔFCW is the floating point in the step 3 The absolute value of the maximum error that may be caused when the frequency control word in the fixed-point format is converted into the frequency control word in the fixed-point format. For the conversion method that adopts the rounding method of decimal places, Max_ΔFCW=0.5, and for the conversion method that directly removes decimal places, Max_ΔFCW=1 ; 2)对于每一个所述的频率控制字,分别计算Te=Ts×Min_N,其中Ts为所述的信号的采样时间间隔;2) For each of the frequency control words, calculate Te=Ts×Min_N respectively, where Ts is the sampling time interval of the signal; 3)取2)步得到的三个Te中的最小值,即为有限字长效应校正的时间间隔Te。3) Take the minimum value among the three Te obtained in step 2), which is the time interval Te for correction of the finite word length effect.
2.根据权利要求1所述的一种用于校正GPS信号源的相位误差的方法,其特征是:参数更新时间间隔Tu大于或者等于有限字长效应校正的时间间隔Te2. A method for correcting a phase error of a GPS signal source according to claim 1, characterized in that: the parameter updating time interval T u is greater than or equal to the time interval T e of finite word length effect correction. 3.根据权利要求1所述的一种用于校正GPS信号源的相位误差的方法,其特征是:参数更新时间间隔Tu是有限字长效应校正的时间间隔Te的整数倍。3. A method for correcting a phase error of a GPS signal source according to claim 1, characterized in that: the parameter update time interval T u is an integer multiple of the time interval T e of finite word length effect correction. 4.根据权利要求1所述的一种用于校正GPS信号源的相位误差的方法,其特征是:所述步骤3将浮点格式的频率控制字转换成字长为Lw的定点格式的步骤包括:4. A kind of method for correcting the phase error of GPS signal source according to claim 1, is characterized in that: described step 3 converts the frequency control word of floating-point format into word length and is the fixed-point format of Lw Steps include: 1)将所述浮点格式的频率控制字乘以
Figure FSB0000114467210000021
1) multiply the frequency control word in the floating-point format by
Figure FSB0000114467210000021
;
2)将1)步得到的值进行小数位四舍五入的取整数运算或者将1)步得到的值进行直接去除小数位的取整运算。2) The value obtained in step 1) is subjected to an integer operation of rounding off decimal places, or the value obtained in step 1) is subjected to a rounding operation of directly removing decimal places.
5.根据权利要求1所述的一种用于校正GPS信号源的相位误差的方法,其特征是:涉骤3所述的在有限字长效应校正的时间间隔Te内产生的误差的总和=所述单次转换产生的误差×Te/Ts5. A kind of method for correcting the phase error of GPS signal source according to claim 1, it is characterized in that: refer to the summation of the error that produces in the time interval Te that finite word length effect is corrected described in step 3 = Error produced by said single conversion x T e /T s . 6.根据权利要求1所述的一种用于校正GPS信号源的相位误差的方法,其特征是:所述步骤4对信号的相位进行累加的方法是循环执行下面的公式:相位累加值=相位累加值+所述步骤3得到的定点格式的频率控制字,如果对于当前模拟的这颗GPS卫星而言是第一次计算其多普勒频率参数,则相位累加值的初值为信号的初始相位值,否则,相位累加值的初值为所述步骤4中的保存下来的相位累加值。6. A kind of method that is used to correct the phase error of GPS signal source according to claim 1, is characterized in that: the method that described step 4 is accumulated to the phase of signal is to carry out following formula cyclically: phase accumulative value= Phase accumulation value + the frequency control word in fixed-point format obtained in step 3, if it is the first time to calculate its Doppler frequency parameter for the currently simulated GPS satellite, the initial value of the phase accumulation value is the signal The initial phase value, otherwise, the initial value of the accumulated phase value is the accumulated phase value saved in step 4.
CN201110394219.0A 2011-11-22 2011-11-22 A method for correcting phase error of GPS signal source Expired - Fee Related CN102590837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110394219.0A CN102590837B (en) 2011-11-22 2011-11-22 A method for correcting phase error of GPS signal source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110394219.0A CN102590837B (en) 2011-11-22 2011-11-22 A method for correcting phase error of GPS signal source

Publications (2)

Publication Number Publication Date
CN102590837A CN102590837A (en) 2012-07-18
CN102590837B true CN102590837B (en) 2014-01-08

Family

ID=46479747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110394219.0A Expired - Fee Related CN102590837B (en) 2011-11-22 2011-11-22 A method for correcting phase error of GPS signal source

Country Status (1)

Country Link
CN (1) CN102590837B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132027B (en) * 2019-12-30 2023-02-10 江西联智集成电路有限公司 Method and apparatus for correcting operating frequency of radio transmitter

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4445118A (en) * 1981-05-22 1984-04-24 The United States Of America As Represented By The Administrator Of The National Aeronautics And Space Administration Navigation system and method
US5194871A (en) * 1982-03-01 1993-03-16 Western Atlas International, Inc. System for simultaneously deriving position information from a plurality of satellite transmissions
GB2245445A (en) * 1990-06-18 1992-01-02 Philips Electronic Associated Method of and apparatus for obtaining vehicle heading information
US5418538A (en) * 1993-05-21 1995-05-23 Trimble Navigation Limited Rapid satellite signal acquisition in a satellite positioning system

Also Published As

Publication number Publication date
CN102590837A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
JP2013527439A5 (en)
CN104993827A (en) Device and method for correcting error estimation of analog-digital converter
CN102968552A (en) Satellite orbit data estimation and correction method
CN106209103B (en) The bearing calibration of TIADC gain and time error based on spectrum analysis
CN103278826B (en) Beidou B1 frequency point intermediate frequency signal simulation method
CN102288974A (en) System for generating satellite navigation occultation signal
CN101509968A (en) High dynamic high precision intermediate frequency simulation satellite signal generating method
CN103760522A (en) Method and system used for time difference estimation and multi-station clock error correction
CN103684949A (en) High-precision Baud rate universal serial port
CN105974997A (en) A Digital Realization Method of Sine Wave Signal
CN102590837B (en) A method for correcting phase error of GPS signal source
CN104375006A (en) Rapid synchronous phasor correction method
CN110186533A (en) A kind of short-term tide prediction method in high-precision river mouth
CN103793618A (en) Thermosphere atmospheric density correction method
CN116009040B (en) An Ultra-short-term EOP Parameter Prediction Method Combined with Effective Angular Momentum and IGS Ultra-fast Solution
CN104833373A (en) Procrustes-based geomagnetic matching navigation method
CN102510327A (en) Method and device for improving synchronous precision of long-range two-way time comparison modulator-demodulator
CN103986465A (en) Method of Error Measurement and Correction Based on Parallel Time Alternate Data Acquisition System
KR101590473B1 (en) Apparatus for generating satellite navigation signal
CN108287328A (en) Step response rise time test method based on pulse train and Waveform Reconstructing
CN111275090A (en) Novel GNSS ultra-fast clock error forecasting method
CN102801501A (en) Identification method of code parameter of BCH (broadcast channel) shortened code
TW200740123A (en) Methods for adjusting sampling clock of sampling circuit and related apparatuses
CN114322930A (en) Method for calculating altitude according to GPS height in combination with air pressure
WO2008139933A1 (en) Method for predicting xenon vibration and computer program for predicting xenon vibration

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140108

Termination date: 20161122

CF01 Termination of patent right due to non-payment of annual fee