Disclosure of Invention
The invention aims to solve the technical problem of providing a calculation method in a time-frequency synchronization process aiming at the defects of the prior art.
The technical scheme for solving the technical problems is as follows: a method of computation in a time-frequency synchronization process, comprising:
step 1, carrying out downsampling processing on received sampling data, carrying out autocorrelation operation in a time domain at different orthogonal frequency division multiple access symbol intervals, carrying out combination of radio frame-to-frame and different symbol intervals on the obtained autocorrelation values, judging whether NPSS exists according to a signal-to-noise ratio and the combined autocorrelation values, and initially calculating time offset and decimal frequency offset according to the combined autocorrelation values;
step 2, if the NPSS exists according to the signal-to-noise ratio and the combined autocorrelation value, performing frequency offset compensation on the sampling data downsampled to the first preset downsampling rate and the small-multiple frequency offset obtained in the step 1, performing coarse cross-correlation calculation on the sampling data and the NPSS sequence which is locally generated and subjected to integer frequency offset compensation, judging whether the NPSS exists according to the signal-to-noise ratio and the coarse cross-correlation calculation result, and calculating the updating time offset and the updating frequency offset according to the coarse cross-correlation calculation result;
and step 3, if judging that NPSS exists according to the signal-to-noise ratio and the coarse cross-correlation calculation result, carrying out two-section fine cross-correlation calculation on the received sampling data and the NPSS sequence which is locally generated and subjected to frequency offset compensation obtained in the step 2 under a second preset sampling rate, carrying out conjugate difference calculation on the two-section fine cross-correlation calculation result, carrying out wireless frame-to-frame combination on the conjugate difference calculation result, and calculating final time offset and frequency offset according to the wireless frame-to-frame combination result.
The beneficial effects of the invention are as follows: the method has the advantages that the presence or absence of the NPSS is judged continuously, the frequency offset is calculated continuously, after the coarse cross correlation and the fine cross correlation are calculated, the range of the time offset and the frequency offset is locked gradually, the window range of blind search in the time domain and the frequency domain can be reduced, the calculated amount can be reduced, the operation amount in the synchronization process can be reduced, the time-frequency synchronization time is reduced, and meanwhile, the correct judgment rate of whether the NPSS exists is improved.
On the basis of the technical scheme, the invention can be improved as follows.
Further, the step 1 specifically comprises the following steps:
step 101, dividing the received sampling data into intervals at equal intervals according to a radio frame with a preset length, executing step 102 when the number of a first radio frame is smaller than a first preset number, and executing step 109 when the number of the first radio frame is larger than the first preset number;
step 102, downsampling the received data to a first preset sampling rate;
step 103, measuring data according to a preset offset from the first wireless frame number sequence;
104, performing autocorrelation calculation on the data according to the preset offset;
step 105, carrying out interframe combination on the result of the autocorrelation calculation;
step 106, combining the inter-frame combining results among different symbol interval correlation values;
step 107, carrying out maximum correlation peak calculation, signal to noise ratio and correlation peak judgment and time offset estimation on the combined autocorrelation vector;
step 108, performing decimal frequency offset estimation according to the maximum correlation peak;
and step 109, judging whether to execute the step 2 according to the result of the correlation peak judgment.
The beneficial effects of adopting the further scheme are as follows: and acquiring initial time offset and frequency offset for further time-frequency synchronous processing through autocorrelation operation.
Further, the step 2 specifically includes:
step 201, if NPSS exists, dividing the sampled data downsampled to the first preset downsampling rate into intervals according to the radio frames with preset lengths at equal intervals, executing step 202 when the number of the second radio frame is smaller than the second preset number, and executing step 210 when the number of the second radio frame is larger than the second preset number;
step 202, extracting first sampling data in step 201 according to the time offset obtained by sliding autocorrelation calculation;
step 203, performing small-multiple frequency offset compensation correction on the first sampling data;
step 204, generating a local time domain NPSS signal sequence according to a protocol;
step 205, performing integer frequency offset compensation on the local time domain NPSS signal sequence;
step 206, performing coarse cross-correlation calculation according to the decimal frequency offset compensated received data and the integer frequency offset compensated local generation sequence;
step 207, performing inter-frame accumulation on the result of the coarse cross-correlation calculation;
step 208, sorting and judging whether the NPSS exists according to the accumulation result of the step 207;
step 209, updating the time offset and the frequency offset according to the accumulation sequencing result in step 208;
and step 210, judging whether to execute the step 3 according to the calculation result of the coarse cross correlation.
The beneficial effects of adopting the further scheme are as follows: further refines the frequency offset time offset calculation and the decision of whether NPSS exists or not through coarse cross correlation.
Further, the step 3 specifically includes:
step 301, if there is an NPSS, dividing the received sampling data into intervals at a second preset sampling rate according to a radio frame with a preset length, executing step 302 when a third radio frame number is smaller than a third preset sequence number, and executing step 308 when the third radio frame number is larger than the third preset sequence number;
step 302, extracting the sampling data including NPSS in step 301 according to the time offset in step 206;
step 303, generating a local time domain NPSS signal sequence according to a protocol;
step 304, performing frequency offset compensation on the local time domain NPSS signal sequence according to the frequency offset in step 209;
step 305, performing fine cross-correlation calculation according to the received data in step 302 and the sequence after the local generation and frequency offset compensation in step 304 in two segments;
step 306, performing conjugate difference product calculation on the result of the two sections of fine cross-correlation calculation;
step 307, performing wireless inter-frame accumulation on the result of the conjugate difference product calculation and the history value;
step 308, performing update calculation processing of time offset and frequency offset on the accumulated result.
The beneficial effects of adopting the further scheme are as follows: the specific values of the time offset and the frequency offset are finally locked through the calculation of the fine cross correlation, so that the data processing amount is reduced, and the calculation rate is improved.
Additional aspects of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
The principles and features of the present invention are described below with reference to the drawings, the illustrated embodiments are provided for illustration only and are not intended to limit the scope of the present invention.
As shown in fig. 1, a flowchart provided by an embodiment of a computing method in a time-frequency synchronization process of the present invention includes:
step 1, carrying out downsampling processing on received sampling data, carrying out autocorrelation operation in a time domain at different orthogonal frequency division multiple access symbol intervals, carrying out combination of radio frame-to-frame and different symbol intervals on the obtained autocorrelation values, judging whether NPSS exists according to a signal-to-noise ratio and the combined autocorrelation values, and initially calculating time offset and decimal frequency offset according to the combined autocorrelation values;
step 2, if the NPSS exists according to the signal-to-noise ratio and the combined autocorrelation value, performing frequency offset compensation on the sampling data downsampled to the first preset downsampling rate and the small-multiple frequency offset obtained in the step 1, performing coarse cross-correlation calculation on the sampling data and the NPSS sequence which is locally generated and subjected to integer frequency offset compensation, judging whether the NPSS exists according to the signal-to-noise ratio and the coarse cross-correlation calculation result, and calculating the updating time offset and the updating frequency offset according to the coarse cross-correlation calculation result;
and step 3, if judging that NPSS exists according to the signal-to-noise ratio and the coarse cross-correlation calculation result, carrying out two-section fine cross-correlation calculation on the received sampling data and the NPSS sequence which is locally generated and subjected to frequency offset compensation obtained in the step 2 under a second preset sampling rate, carrying out conjugate difference calculation on the two-section fine cross-correlation calculation result, carrying out wireless frame-to-frame combination on the conjugate difference calculation result, and calculating final time offset and frequency offset according to the wireless frame-to-frame combination result.
The method has the advantages that the presence or absence of the NPSS is judged continuously, the frequency offset is calculated continuously, after the coarse cross correlation and the fine cross correlation are calculated, the range of the time offset and the frequency offset is locked gradually, the window range of blind search in the time domain and the frequency domain can be reduced, the calculated amount can be reduced, the operation amount in the synchronization process can be reduced, the time-frequency synchronization time is reduced, and meanwhile, the correct judgment rate of whether the NPSS exists is improved.
It should be noted that, in step 1, the data received by the rf front end is data aligned with 1ms of the air interface provided by the GNSS global navigation service, and the downsampling process is performed on the received sampled data to downsample the received signal 8 times of the 1.92MHz sampling rate to a sampling rate of 240 KHz; in step 2, downsampling to a first preset downsampling rate is: the received signal is 8 times downsampled to the sampling rate of 240 KHz; in step 3, the second preset sampling rate is: 1.92MHz sampling rate.
Preferably, in any of the above embodiments, step 1 specifically includes:
step 101, dividing the received sampling data into intervals at equal intervals according to a radio frame with a preset length, executing step 102 when the number of a first radio frame is smaller than a first preset number, and executing step 109 when the number of the first radio frame is larger than the first preset number;
step 102, downsampling the received data to a first preset sampling rate;
step 103, measuring data according to a preset offset from the first wireless frame number sequence;
104, performing autocorrelation calculation on the data;
step 105, carrying out interframe combination on the result of the autocorrelation calculation;
step 106, combining the inter-frame combining results among different symbol interval correlation values;
step 107, carrying out maximum correlation peak calculation, signal to noise ratio, correlation peak judgment and time offset estimation on the combined vector;
step 108, performing decimal frequency offset estimation according to the maximum correlation peak;
and step 109, judging whether to execute the step 2 according to the result of the correlation peak judgment.
It should be noted that, as shown in the sliding autocorrelation flow chart provided in other embodiments of the calculation method in the time-frequency synchronization process of fig. 2, for example:
step 101, dividing the data vector continuously received at the next radio frequency at the second preset sampling rate into intervals according to the equal intervals of 10ms radio frames (i.e. 19200 Samples), and the sampled data input is expressed as:
Fn =[0,1,…Nrf-max ]wherein F isn For radio frame number, Nrf_max A maximum of 10ms frame number for one continuous reception of radio frequency.
When Fn At 128 or less, step 102 is performed, wherein Fn =Fn +1, when Fn If 128, then step 109 is performed directly;
step 102, downsampling the sampled data to a first preset sampling rate at 8-1-mm intervals,
denoted as d '= [ d ]'0 ,d′1 ,…,d′2399 ,…];
Step 103, for the radio frame number Fn Within the 8 times downsampled data, from the offset τ position, 187 sample data in 11 OFDMA symbols are taken for autocorrelation calculation, and a vector composed of the data taken each time is expressed as:
wherein,,
i=0~186,L
NPSS for the data of the sample points in question,
rτ,l =[rτ,17l ,rτ,17l+1 ,…,rτ,17l+16 ],l=0~10
τ=subFrameNum*240+m,subFrameNum∈[0,1,…9],m∈[49,53];
the GNSS global navigation service enables the radio frequency front end to provide data with 1ms of air interface alignment;
104, calculating the autocorrelation result for the tau-fetch data set according to the offset
τ=subFrameNum*240+m,subFrameNum∈[0,1,…9],m∈[49,53],
Wherein F isn For sliding the 10ms index of the autocorrelation, it is initialized to 0 at the beginning of the autocorrelation process, k denotes the different ofdma symbol intervals, sl For the substitution code coverage set 1, -1, -1,1} mth element;
step 105, according to the autocorrelation result
Inter-frame combination is performed, and the reliability of NPSS detection can be further improved by using inter-frame accumulation. The method comprises the following steps:
τ=subFrameNum*240+m,subFrameNum∈[0,1,…9],m∈[49,53];
step 106, combining the different relevant OFDMA symbol intervals k, with the specific formula:
τ=subFrameNum*240+m,subFrameNum∈[0,1,…9],m∈[49,53]
the vector after combination is obtained, and the specific formula is as follows:
step 107, according to the absolute value of the vector and the decision and time offset estimation according to the correlation peak,
the maximum correlation peak is:
average power of noise is
Wherein the method comprises the steps of
τ=subFrameNum*240+m,subFrameNum∈[0,1,…9],m∈[49,53]
The decision formula is Ppeak >Pnoise *ThAR ,ThAR Is an autocorrelation decision threshold;
if so, judging that NPSS exists.
When the decision is established, the time offset is estimated as: TOAR240KHz =τpeak ;
Step 108, performing decimal frequency offset estimation according to the maximum correlation peak:
step 109, the autocorrelation section ends and decides whether to perform the following cross-correlation process according to the decision result.
Preferably, in any of the foregoing embodiments, step 2 specifically includes:
the step 2 specifically comprises the following steps:
step 201, if NPSS exists, dividing the sampled data downsampled to the first preset downsampling rate into intervals according to the radio frames with preset lengths at equal intervals, executing step 202 when the number of the second radio frame is smaller than the second preset number, and executing step 210 when the number of the second radio frame is larger than the second preset number;
step 202, extracting first sampling data in step 201 according to the time offset obtained by sliding autocorrelation calculation;
step 203, performing small-multiple frequency offset compensation correction on the first sampling data;
step 204, generating a local time domain NPSS signal sequence according to a protocol;
step 205, performing integer frequency offset compensation on the local time domain NPSS signal sequence;
step 206, performing coarse cross-correlation calculation according to the decimal frequency offset compensated received data and the integer frequency offset compensated local generation sequence;
step 207, performing inter-frame accumulation on the result of the coarse cross-correlation calculation;
step 208, sorting and judging whether the NPSS exists according to the accumulation result of the step 207;
step 209, updating the time offset and the frequency offset according to the accumulation sequencing result in step 208;
and step 210, judging whether to execute the step 3 according to the calculation result of the coarse cross correlation.
Further elaboration of the calculation of the data such as the frequency offset is performed through coarse cross-correlation.
It should be noted that the first sampling data is sampling data that may include NPSS;
as shown in fig. 3, the specific operation method of step 2 may refer to the following:
step 201, data corresponding to a sampling rate of 240khz after 8 times downsampling of data with a sampling rate of 1.92MHz from a radio frequency front end is:
d″=[d″0 ,d″1 ,…,d″2399 ,…]
Fn =Fn +1,Fn initial value is 0, when Fn When 68 is smaller or smaller, step 202 is executed, when Fn >68, step 210 is performed;
step 202, extracting data containing the primary synchronization signal in step 201 according to sliding autocorrelation timing, and the specific formula is as follows:
step 203, for dτ,k According to FOAR240KHz The decimal frequency offset correction is carried out, and the specific formula is as follows:
λ
k counting the input points corresponding to the received data at a sampling rate of 1.92M;
step 204, generating a local time domain primary synchronization signal sequence according to a protocol synchronization signal generation formula, wherein the specific formula is as follows:
d_localk ,k∈[0,1,2,…,188];
step 205, performing integer frequency offset compensation on the time domain primary synchronization signal sequence, and specifically adopting the following formula:
step 206, calculating coarse cross-correlation, and recording the result as
Fn Representing the number of wireless frames, k is more than or equal to 0 and less than or equal to 188, -Nifo ≤τ≤Nifo ,Nifo =2,i=-1,0,1;
Step 207, inter-frame accumulation of coarse cross-correlation, and the specific formula is as follows:
Fn representing radio frame number, -Nifo ≤τ≤Nifo ,Nifo =2,i=-1,0,1;
Step 208, performing a decision of the primary synchronization signal according to the result in step 207, and specifically the following formula is:
if the following equation is satisfied, it is determined that the primary synchronization signal has been successfully detected and further confirmed,
sumMax32*ThCR > sumE, sumMax32 is the first 32 energy summations of the ordered sequence, sumE is the total energy summations;
step 209, updating the time offset and the frequency offset of the judgment result, wherein the specific formula is as follows:
the updated time bias is: TOCR240KHz =TOAR240KHz +τ_out,
The updated frequency offset is: FO (FO)CR240KHz =FOAR240KHz +IFO,
Wherein the coarse integer frequency offset result is
Step 210, the coarse synchronization cross-correlation section ends and determines whether to perform the following fine synchronization cross-correlation procedure.
Preferably, in any of the foregoing embodiments, step 3 specifically includes:
step 301, if there is an NPSS, dividing the received sampling data into intervals at a second preset sampling rate according to a radio frame with a preset length, executing step 302 when a third radio frame number is smaller than a third preset sequence number, and executing step 308 when the third radio frame number is larger than the third preset sequence number;
step 302, extracting the sampling data including NPSS in step 301 according to the time offset in step 206;
step 303, generating a local time domain NPSS signal sequence according to a protocol;
step 304, performing frequency offset compensation on the local time domain NPSS signal sequence according to the frequency offset in step 209;
step 305, performing fine cross-correlation calculation according to the received data in step 302 and the sequence after the local generation and frequency offset compensation in step 304 in two segments;
step 306, performing conjugate difference product calculation on the result of the two sections of fine cross-correlation calculation;
step 307, performing wireless inter-frame accumulation on the result of the conjugate difference product calculation and the history value;
step 308, performing update calculation processing of time offset and frequency offset on the accumulated result.
It should be noted that, as shown in fig. 4, the specific operation method of step 3 may refer to the following:
step 301, the data corresponding to 1.92Mhz sampling rate from the rf front end is:
d″=[d″0 ,d″1 ,…,d″19199 ],
Fn =Fn +1,Fn initial value is 0, when Fn When 64 is smaller or smaller, step 302 is performed, when Fn At > 64, step 308 is performed;
step 302, extracting data containing a primary synchronization signal from the data corresponding to the sampling rate of 1.92Mhz, wherein the specific formula is as follows:
step 303, generating a local time domain primary synchronization signal sequence according to a generation formula of the protocol primary synchronization signal, wherein the specific formula is as follows:
d_localk ,k∈[0,1,2,…,1507];
step 304, performing frequency offset compensation on the generated data of the primary synchronization signal, where a specific formula is as follows:
step 305, calculating a fine cross-correlation for the data in step 302 and step 304 respectively, and specifically the following formula is as follows:
step 306, performing conjugate differential product on the fine cross-correlation value, and the specific formula is as follows:
CRτ =conj(CRτ,half0 ).*CRτ,half1 ;
step 307, accumulating the numerical value and the history value after the conjugate difference product, and the specific formula is as follows:
wherein->
The initial value is 0;
jump to step 301 for execution;
step 308, updating calculation of time offset and frequency offset,
the reader will appreciate that in the description of this specification, a description of terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
The present invention is not limited to the above embodiments, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and these modifications and substitutions are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.