TD-SCDMA system frequency deviation compensation method and device based on training sequence
Technical field
The present invention relates to a kind of frequency bias compensation method in radio mobile communication field, particularly a kind of TD-SCDMA system frequency deviation compensation method and device based on training sequence.
Background technology
In mobile communication system, the frequency shift (FS) that Doppler causes can reach the hundreds of hertz, and the maximum frequency difference of being introduced by carrier wave can reach KHz, so receiving terminal must carry out frequency correction.Frequency calibration function is finished by the frequency correction loop, and device commonly used has automatic frequency control (AFC, AutoFrequency Control) and phase-locked loop (PLL, Phase Lock Loop).
The frequency correction loop is to come contrary frequency skew, the frequency shift (FS) that can effectively proofread and correct follow-up bursty data by adjusting local frequency.But this correction can't have any improvement to current reception data.Therefore, need carry out the frequency difference compensating operation to current reception data.
In the prior art scheme, as application number is that 97115151.2 patents of invention disclose a kind of " carrier wave recovers and compensates in the spread spectrum communication system method and device thereof ", it is the data hard decision demodulation of being come out by despreading, again carry out quadriphase PSK (QPSK then, Quadrature Phase Shift Keying) modulation, ask for the bit of readjustment and the phase difference between the unsentenced bit, ask frequency deviation with following formula again:
Following formula can be represented by Fig. 1, wherein:
Here think 4.5+i and 5.5+i approximately equal in (1) formula.
After (1) formula of utilization is tried to achieve frequency deviation, be converted into phase place again and refill each symbol, give the decoding unit of back as soft output information.
In the prior art scheme, when frequency shift (FS) is bigger, insert (TD-SCDMA in TD SDMA, Time Division-Synchronous Code Division Multiple Access) in burst time, the subscriber channel environment is constant in the time of no longer can being assumed to be, and the channel impulse response h (t) that obtains by training sequence no longer is applicable to whole burst.Therefore, after carrying out joint-detection, utilize unknown user data to carry out the hard decision demodulation, obtain compensate of frequency deviation, there are the following problems:
1. when frequency shift (FS) is bigger, at TD-SCDMA in burst time, the subscriber channel environment is constant in the time of no longer can being assumed to be, the channel impulse response h (t) that obtains by training sequence no longer is applicable to whole burst, therefore, the decreased performance of joint-detection, thus error rates of data increases after causing despreading.
Since after the despreading error rates of data increase, thereby cause demodulation performance to descend.
3. because demodulation is declared in employing firmly, inevitably introduced and declared loss firmly.
4. when the integral multiple variation appearred in phase place, this scheme can't effectively compensate.
5. under some error situation, declare back demodulation planisphere firmly and appear at round dot, can bring bigger error.
Therefore, before joint-detection, frequency deviation is revised, can effectively be reduced or avoid the problems referred to above.
Summary of the invention
The objective of the invention is to propose a kind of TD-SCDMA system frequency deviation compensation method and device based on training sequence, this method intercepts out training sequence symbols from the digital spread spectrum signal that receives, carry out despreading, demodulation after adding default frequency deviation, because training sequence symbols is known, therefore, can carry out frequency offset estimating according to the cost function of the training sequence symbols of each frequency.And the method for employing weighting correction, the frequency offset estimating of current time slots is revised, make the base station carry out despreading, demodulation fast and accurately.On digital signal processing platform, use method and the less memory cell simplified and obtain accurate frequency offset estimating.
The object of the present invention is achieved like this:
The invention discloses a kind of TD-SCDMA system frequency deviation compensation method, comprise the steps: based on training sequence
(1) selects a receiving data sequence;
(2) from receiving data sequence, intercept training sequence;
(3) at different frequency difference points training sequence is carried out phase compensation, and carry out channel estimating, determine the spreading factor Q of training sequence;
(4) training sequence is carried out despreading, obtain the symbol after the training sequence despreading of each frequency difference point;
(5) handle unusual despread symbols, calculate each frequency difference point, each user's cost function;
(6) calculate the minimum cost functional value, determine best frequency difference point, obtain the frequency offset estimating value of current time slots;
(7) the frequency offset estimating value of current time slots is smoothly revised;
(8) by receiving data sequence is carried out channel estimating, spread spectrum, scrambling, weighting, obtain the mixed channel impulse response;
(9) utilize the frequency offset estimating value of the level and smooth current time slots of revising of process that compensate of frequency deviation is carried out in the mixed channel impulse response.
The unusual despread symbols of described processing comprises the mismark that identifies after the despreading, and abandons mismark.
Described TD-SCDMA system frequency deviation compensation method based on training sequence, default compensate of frequency deviation value is e
-j2 π f i, f wherein
i∈ f, the scope of f is [f
Max, f
Max].
Described frequency offset estimating value to current time slots is smoothly revised and is specially: behind the current time slots frequency offset estimating value weighting P, the addition after the level and smooth last time slot frequency offset estimating value weighting of revising (1-P) with preserving obtains level and smooth revised frequency offset estimating value.
The scope of the frequency difference point of described receiving data sequence is [f
Max, f
Max], the frequency difference point is spaced apart
λ is for estimating number of times.
The spreading factor Q=128/N of described training sequence, N are the training sequence symbols number.
The cost function of described training sequence is:
Wherein, training sequence
i=1,......,λ,
d
n I, kThe actual value of expression training sequence symbols,
The estimated value of expression training sequence symbols, i is an i frequency traversal point, and k is k user, and n=1......N, N are the training sequence symbols number.
Described level and smooth correction is to adopt forgetting factor smoothly to revise to current time slots frequency offset estimating value with through the frequency offset estimating value of the level and smooth last time slot of revising:
Wherein,
Be the frequency offset estimating value of n time slot of k user, t is a slot length, f
Correct kBe the best estimate frequency difference of k user's correspondence, θ
Correct K, n-1Be the level and smooth frequency offset estimating value of revising of warp of n-1 time slot of k user, θ
Correct K, nBe the level and smooth frequency offset estimating value of revising of warp of n time slot of k user, p is the average forgetting factor, is made as between the 0.75-0.9.
The invention also discloses a kind of TD-SCDMA system frequency deviation compensation device based on training sequence, this device comprises that frequency deviation is preset device, multiplier, despreading module, channel estimator, mismark deletes and calculation cost function module, cost function value compare judging module, frequency deviation estimating modules, the level and smooth correcting module of frequency deviation, demodulation module, mixing impulse response module, joint-detection module, spreading code, scrambler, weights generator, wherein, default device of described frequency deviation and multiplier are used for the training sequence that intercepts from receiving data sequence is carried out the frequency deviation pre-estimation; Described channel estimator carries out channel estimating to the training sequence through the overdeviation pre-estimation; Described despreading module is used to obtain training sequence symbols; Deletion of described mismark and calculation cost function module are used to delete the error training sequence symbol after the despreading, and the calculation cost function; Described cost function value comparison judging module is used for the result after a plurality of frequency deviation pre-estimation despreadings of comparison same subscriber, chooses each user's best frequency deviation pre-estimation; Described frequency deviation estimating modules is used to calculate each user's of current time slots frequency deviation; The level and smooth correcting module of described frequency deviation is used for frequency deviation is carried out smoothing processing, obtains level and smooth back frequency offset estimating value; Described channel estimator, spreading code, scrambler, weights generator and multiplier are used to obtain the mixed channel impulse response; Described multiplier also is used for compensate of frequency deviation is carried out in the mixed channel impulse response, the mixed channel impulse response after being compensated; Described joint-detection module, demodulation module are used for data are carried out despreading, demodulation.
The present invention utilizes the method for frequency deviation traversal, before joint-detection, training sequence is carried out despreading, obtains the cost function of the training sequence symbols of different frequency deviation points, because training sequence symbols is known, therefore, can goes out mismark to despreading and delete processing.Compared with prior art, advantage of the present invention is as follows:
1. made full use of the Given information of training sequence, therefore, can delete processing going out mismark after the despreading;
2. because training sequence symbols is known, only need the cost function of calculation training sequence after the default frequency deviation point despreading of difference, demodulation, do not need to carry out demodulation and declare the loss of having avoided demodulation to declare firmly firmly;
3. owing to before joint-detection, carried out compensate of frequency deviation, therefore, improved the performance of joint-detection;
4. owing to adopt the method for frequency deviation traversal, therefore need only in the frequency deviation of setting, just can effectively compensate frequency deviation;
5. bigger frequency deviation is had compensating action preferably, particularly when phase overturn occurring, the compensate of frequency deviation effect is obvious;
6. can effectively improve the SNR of system (Signal Noise Ratio)-BER (Bit ErrorRatio) performance;
7. because the symbol numbers of training sequence can dynamically be set, the symbolic number scope is: 1~9, so amount of calculation is little, practical;
8. known owing to training sequence symbols, so this scheme has been estimated reference role to SNR.
Description of drawings
Fig. 1 is phase place frequency offset calculation schematic diagram in the existing compensate of frequency deviation scheme;
Fig. 2 is the flow chart of the frequency bias compensation method among the present invention;
Fig. 3 is frequency deviation smoothing processing module declaration figure among the present invention.
Embodiment
In the TD-SCDMA system, no matter in the uplink synchronous process, still in the traffic channel transmission process, the known array effective length is 128chips in a time slot.Can utilize this known array to carry out Frequency Estimation.
If known transmission sequence is:
S={s
1,s
2,...,s
n} (4)
Through air traffic channel, corresponding receiving terminal data sequence is:
R={r
1,r
2,...,r
n,...,r
n+W} (5)
According to the agreement of TD-SCDMA, the training sequence that receives at receiving terminal can be equal to data division, is expressed as:
{w
Q kd
1 k,ic
1 k,iv
1,w
Q kd
1 k,ic
2 k,iv
2,...,w
Q kd
1 k,ic
Q k,iv
Q,w
Q kd
2 k,ic
1 k,iv
Q+1,......,w
Q kd
16/Q k,ic
Q k,iv
16,...} (6)
Wherein the symbol value is as follows:
v
i∈{1,j,-1,-j} (8)
c
i∈{1,-1} (9)
Utilize scrambler, spread spectrum principles, sequence can be expressed as
{w
Q kd
1 k,i(c
1 k,iv
1,c
2 k,iv
2,...,c
Q k,iv
Q),w
Q kd
2 k,i(c
1 k,iv
Q+1,...,c
Q k,iv
2Q),...,w
Q kd
16/Q k,i(c
1 k,iv
16-Q+1,...,c
Q k,iv
16),...} (10)
If the possible range of this receiving sequence frequency difference is [f
Max, f
Max], suppose that carrying out λ time in this scope estimates that then frequency difference is spaced apart
The frequency difference point of traversal is
f={0,±f
d,±2f
d,..,±f
max} (11)
Default compensate of frequency deviation value is
F wherein
i∈ f, the scope of f is [f
Max, f
Max].
At different frequency difference points training sequence is carried out phase compensation, because training sequence can think that spreading factor is the data sequence of Q (Q=128/N), therefore training sequence is carried out data separates spread spectrum.Can obtain following training data symbol sebolic addressing at each frequency difference point
Wherein i is an i frequency traversal point, and k is k user, and N is the training sequence symbols number.Because training symbol sequence is known, the cost function of this training symbol sequence is:
Each compensate of frequency deviation point is carried out traversal search, and its cost function is set C.
Wherein best compensate of frequency deviation point cost function is:
The frequency difference of minimum value correspondence point is exactly the best estimate frequency difference of this receiving sequence in the above-mentioned cost function.The frequency offset estimating value of its n time slot is:
Wherein t is a slot length, f
Correct kIt is the best estimate frequency difference of k user's correspondence.
After estimating the best frequency deviation of current time slots,, need smoothly revise the frequency offset estimating of current time slots for effectively utilizing frequency deviation information in the past and reducing amount of calculation.Adopt the iteration forgetting factor that the frequency offset estimating value of current time slots and former time slot is smoothly revised:
Wherein P is the average forgetting factor, generally is made as between 1.75~0.9.
After obtaining revised frequency offset estimating, before joint-detection, mixed channel is impacted the corresponding compensate of frequency deviation that carries out.
Concrete implementation step is as follows:
1. the scope of the frequency difference point of selective reception data sequence is [f
Max, f
Max], the frequency difference point is spaced apart
λ is for estimating number of times;
2. from receive data, intercept training sequence, at different frequency difference points training sequence is carried out the preset phase compensation, and carry out channel estimating;
3. determine the spreading factor Q of training sequence, Q=128/N;
4. training sequence is carried out despreading, obtain the symbol after the training sequence despreading of each frequency difference point;
Therefore 5. because training sequence symbols is known, can identifies the mismark after the despreading, and abandon mismark;
6. calculate the cost function of symbol after each frequency difference point, each user's the training sequence despreading;
7. calculate the minimum cost functional value, judge best frequency difference point, obtain the frequency offset estimating value of current time slots;
8. the frequency offset estimating value of current time slots is smoothly revised;
9. by receiving data sequence is carried out channel estimating, spread spectrum, scrambling, weighting, obtain the mixed channel impulse response;
10. compensate of frequency deviation is carried out in the impulse response of K user's mixed channel respectively, carry out joint-detection, demodulation after the compensation.
Referring to Fig. 2 is frequency bias compensation method of the present invention and device, and this device comprises that mainly frequency deviation presets device 22, multiplier 23, despreading module 24, channel estimator 25, mismark deletion and calculation cost function module 26, cost function value is judging module 28 relatively, frequency deviation estimating modules 29, the level and smooth correcting module 210 of frequency deviation, demodulation module 214 mixes impulse response module 212, joint-detection module 213, spreading code, scrambler, weights generator 211.
According to design objective and requirement, can obtain the possible range of receiving sequence frequency deviation in advance, set the frequency difference point and be spaced apart
λ is for estimating number of times.During reception, can obtain receiving data 21 from antenna end,
From receive data, intercept training sequence, use the training preface of the default 22 pairs of interceptings of device of multiplier 23 and frequency deviation
Row carry out the frequency deviation pre-estimation, adopt 25 pairs of training sequences through the overdeviation pre-estimation of channel estimator to carry out channel estimating, obtain training sequence symbols by despreading module 24; Because training sequence symbols 27 is known, so can delete mismark after the despreadings and calculation cost function by mismark deletion and calculation cost function module 26; By the result after the default despreading of a plurality of frequency deviations of judging module 28 comparison same subscriber, choose each user's best frequency deviation preset 216; Calculate each user's of current time slots frequency deviation 217 by frequency deviation estimating modules 29; Carry out smoothing processing by 210 pairs of frequency deviations of the level and smooth correcting module of frequency deviation, obtain level and smooth back frequency offset estimating value 218.
By channel estimator 25, spreading code, scrambler, weights generator 211 and multiplier 23 obtain mixed channel impulse response 212; With the frequency offset estimating value 218 after level and smooth, carry out compensate of frequency deviation by 23 pairs of mixed channel impulse responses of multiplier 212, the mixed channel impulse response 215 after being compensated; Through joint-detection module 213,214 pairs of data of demodulation module are carried out despreading, demodulation.
Referring to Fig. 3, the frequency deviation smoothing processing is described, the frequency deviation smoothing processing comprises current time slots frequency offset estimation result 31, weighting P34, weighting (1-P) 32, the last time slot frequency offset estimation result 33 of preservation, level and smooth revised frequency offset estimating 36.
After obtaining current time slots frequency offset estimation result 31, it is carried out level and smooth weighted, weights are respectively P34 and (1-P) 32, utilize formula 18, calculate the level and smooth revised frequency offset estimating of current time slots.
In sum, outstanding feature of the present invention is to adopt the method for frequency deviation traversal, takes full advantage of training Sequence will train sequence to be seen as N symbol, introduce cost function, carry out frequency deviation with known symbolic information Estimate, the frequency deviation of current time slots is estimated smoothly to revise, and before joint-detection, frequency deviation is compensated. When fundamentally having avoided after the despreading unknown demodulates information, firmly declare the error of bringing, improved joint-detection Performance and entire system performance, have higher breakthrough.