Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of auto gain control method for diversity reception and device, can support single antenna receiver module and the work of double antenna receiver module simultaneously, and improves the performance of single antenna receiver module and double antenna receiver module.
In order to address the above problem, the invention provides a kind of automatic gain control equipment for diversity reception, be positioned at the mobile terminal that comprises diversity reception module, described automatic gain control equipment comprises the sub-device of more than one automatic gain control, the sub-device of each automatic gain control is connected with a terminal antenna, and each automatic gain control system device is all connected with diversity reception module; The sub-device of described automatic gain control comprises analog to digital converter, summation module; Described summation module, exports as gain amplifier for adding up to the received signal; Each automatic gain control system device also comprises delayer, and the input of delayer is connected with the output of summation module; Described automatic gain control equipment also comprises gain balance module, the output of each delayer is all connected with the first input end of described gain balance module, and the output of the analog to digital converter of each automatic gain control system device is all connected with the second input of described gain balance module; Described delayer, carries out inputing to described gain balance module after time delay for the gain amplifier signal to receiving; Described gain balance module, for adjusting each railway digital signal according to the digital signal receiving from each analog-to-digital conversion module and the gain amplifier signal receiving from described delayer, reduces the gain difference between each digital signal.
Further, said apparatus also has following characteristics:
The sub-device of described automatic gain control also comprises variable gain amplifier, the input input aerial signal of described variable gain amplifier, and output is connected to the input of described analog to digital converter; The output of described summation module is connected to the input of the gain amplifier of described variable gain amplifier; Described delayer, for the gain amplifier signal receiving is carried out to time delay, make the signal of this delayer output arrive the time of described gain balance module, be transferred to variable gain amplifier and come into force with the gain amplifier signal of described summation module output, and first arrives alignment time of advent of the aerial signal of described gain balance module through amplification and after by analog-to-digital conversion module.
Further, said apparatus also has following characteristics:
Described gain balance module, also, for when the aerial signal of the total n of described automatic gain control equipment road, carry out signal processing according to following formula:
gain=min(gain
1,...,gain
n)
data
i=input
i*factor
i
N is greater than 0 integer, input
ithe input of i road analog to digital converter to gain balance module, data
ithe i road output of gain balance module, gain
ithe output after delayer of the gain amplifier of i road summation module output, factor
ifor the balance factor of gain balance module to i road aerial signal, 1≤i≤n, abs is the operation that takes absolute value.
Further, said apparatus also has following characteristics:
In described terminal, also comprise single antenna receiver module, in described automatic gain control equipment, the analog to digital converter of a sub-device of automatic gain control inputs to output signal the single antenna receiver module of described terminal.
In order to address the above problem, the present invention also provides a kind of automatic gain control equipment for diversity reception, be positioned at the mobile terminal that comprises diversity reception module, described automatic gain control equipment comprises the sub-device of more than one automatic gain control, the sub-device of each automatic gain control is connected with a terminal antenna, and each automatic gain control system device is all connected with diversity reception module; The sub-device of described automatic gain control comprises connected successively analog to digital converter, power estimation module, error calculating module, summation module; Described summation module, exports as gain amplifier for adding up to the received signal; Each automatic gain control system device also comprises delayer, and the input of delayer is connected with the output of summation module; Described automatic gain control equipment also comprises gain balance module, the output of each delayer is all connected with the first input end of described gain balance module, and the output of the analog to digital converter of each automatic gain control system device is all connected with the second input of described gain balance module; Described delayer, carries out inputing to described gain balance module after time delay for the gain amplifier signal to receiving; Described gain balance module, for adjusting each railway digital signal according to the digital signal receiving from each analog-to-digital conversion module and the gain amplifier signal receiving from described delayer, reduces the gain difference between each digital signal; Described automatic gain control equipment also comprises the power signal processing module that input is all connected with each power estimation module and output is all connected with each error calculating module; Described power signal processing module, for determining that according to the power signal of each power estimation module output an amplitude occupy the compromise of one between each power signal maximum amplitude and minimum amplitude power signal as the output signal of each power estimation module and exports corresponding error calculating module to; Described automatic gain control equipment also comprises a control module that is connected with the Enable Pin of each gain balance module and is connected with the Enable Pin of each power signal processing module; Described control module, enables for controlling each gain balance module, simultaneously power ratio control signal processing module disable; Or for controlling each gain balance module disable, power ratio control signal processing module enables simultaneously.
Further, said apparatus also has following characteristics:
The sub-device of described automatic gain control also comprises variable gain amplifier, the input input aerial signal of described variable gain amplifier, and output is connected to the input of described analog to digital converter; The output of described summation module is connected to the input of the gain amplifier of described variable gain amplifier; Described delayer, for the gain amplifier signal receiving is carried out to time delay, make the signal of this delayer output arrive the time of described gain balance module, be transferred to variable gain amplifier and come into force with the gain amplifier signal of described summation module output, and first arrives alignment time of advent of the aerial signal of described gain balance module through amplification and after by analog-to-digital conversion module.
Further, said apparatus also has following characteristics:
Described gain balance module, also, for when the aerial signal of the total n of described automatic gain control equipment road, carry out signal processing according to following formula:
gain=min(gain
1,...,gain
n)
data
i=input
i*factor
i
N is greater than 0 integer, input
ithe input of i road analog to digital converter to gain balance module, data
ithe i road output of gain balance module, gain
ithe output after delayer of the gain amplifier of i road summation module output, factor
ifor the balance factor of gain balance module to i road aerial signal, 1≤i≤n, abs is the operation that takes absolute value.
Further, said apparatus also has following characteristics:
Described power signal processing module, also, for when the aerial signal of the total n of described automatic gain control equipment road, is defined as by the value of following formula the power signal of compromising:
α*power
1+β*max(power
1,...,power
n)+γ*min(power
1,...,power
n);
N is greater than 0 integer, power
iit is the output signal of power estimation module in the sub-device of automatic gain control that i road aerial signal is corresponding, 1≤i≤n, α, β, γ are the real numbers as power estimation coefficient, min is for getting minimum value operation, max is for getting maxima operation, α, β, γ are the real numbers as power estimation coefficient, and meet alpha+beta+γ=1.
In order to address the above problem, the present invention also provides a kind of auto gain control method for diversity reception, the automatic gain control equipment of terminal comprises the sub-device of more than one automatic gain control, and the sub-device of each automatic gain control is connected with a terminal antenna; Described automatic gain control equipment comprises a gain balance module; Gain amplifier signal to summation module output in each automatic gain control system device carries out time delay, make the signal of this delayer output arrive the time of described gain balance module, be transferred to variable gain amplifier and come into force with the gain amplifier signal of described summation module output, and first arrives alignment time of advent of the aerial signal of described gain balance module through amplification and after by analog-to-digital conversion module; Gain balance module is adjusted each railway digital signal according to the digital signal receiving from each analog-to-digital conversion module and the gain amplifier signal receiving from described delayer, reduces the gain difference between each digital signal.
Further, said method also has following characteristics:
When described gain balance module has n road aerial signal in described automatic gain control equipment, carry out signal processing according to following formula:
gain=min(gain
1,...,gain
n)
data
i=input
i*factor
i
N is greater than 0 integer, input
ithe input of i road analog to digital converter to gain balance module, data
ithe i road output of gain balance module, gain
ithe output after delayer of the gain amplifier of i road summation module output, factor
ifor the balance factor of gain balance module to i road aerial signal, 1≤i≤n, abs is the operation that takes absolute value.
The present invention preferably resolves separate gain control and causes diversity module performance to decline, and the technical problem that the simple control of single cover AGC may cause single antenna module performance to decline, improve the performance of single antenna receiver module and double antenna receiver module, and possess hard-wired high degree of flexibility simultaneously, and there is following beneficial effect:
1, can support single antenna receiver module and the work of double antenna receiver module simultaneously.
2, support two kinds of mode of operations, when pattern 0, ensure the stable of single antenna module by signal, ensure again the unanimous on the whole of Double-antenna module noise amplitude simultaneously, take into account both performances; When pattern 1, the output of power signal processing module is adjustable continuously between the power of two paths of signals, can between single antenna module and Double-antenna module, compromise.
3, support different radio-frequency devices;
4, the flexibility of height, is convenient to be regulated and worked in best mode by model selection and parameter according to actual conditions.
Embodiment
Automatic gain control equipment in the present invention adopts respectively the sub-device of an automatic gain control for controlling the automatic gain of this aerial signal to tackling each antenna.
Embodiment mono-:
As shown in Figure 1, the mobile terminal that comprises diversity reception module also comprises the automatic gain control equipment for diversity reception, and this device comprises the sub-device of more than one automatic gain control.In figure, only show the structure chart of the sub-device of a set of automatic gain control to explain, in the present embodiment, in automatic gain control equipment, can comprise the sub-device of two or more automatic gain controls.
The sub-device of each automatic gain control is connected with a terminal antenna, and each automatic gain control system device is all connected with diversity reception module; The sub-device of automatic gain control comprises variable gain amplifier, analog to digital converter, power estimation module, error calculating module, filter, summation module successively; The output of described summation module is also connected to the gain amplifier input of variable gain amplifier;
Variable gain amplifier, for according to the gain amplifier of summation module output to export analog to digital converter to from the analog signal of antenna reception is amplified;
Analog to digital converter, for being converted to digital signal by the analog signal of variable gain amplifier output;
Power estimation module, estimates and power output estimated signal for the signal of analog to digital converter output is carried out to power;
For example, when the total two-way of the aerial signal of terminal, power estimation module is estimated respectively the power power1 of two ways of digital signals, and power2 can adopt directly power read group total to received signal according to following formula:
In formula, N is parameter, determines the control cycle of AGC; r
1i, r
2ifor the reception signal from two antennas.Also can adopt according to following formula the summation rated output of signal mode:
Signal asks mould can adopt approximate calculation to carry out, to eliminate multiplying.After estimating power, this module is carried out Logarithmic calculation according to following formula to the power estimating, and transforms to log-domain:
power1=log
2(p1)
(3)
power2=log
2(p2)
Logarithmic calculation generally adopts approximate calculation to carry out, and as sectional broken line method, repeats no more here.Error calculating module, for calculating the power estimated signal that receives and the difference power value signal of reference power signal;
Filter, carries out filtering for the difference power value signal to receiving, and filtering result is amplified and obtained filtering signal;
Summation module, for adding up and export as gain amplifier the filtering signal receiving;
In each automatic gain control system device, also comprise delayer, the input of delayer is connected with the output of summation module;
Automatic gain control equipment also comprises gain balance module, the output of each delayer is connected with the first input end of described gain balance module, and the output of the analog to digital converter of each automatic gain control system device is all connected with the second input of described gain balance module;
Described delayer, carries out inputing to described gain balance module after time delay for the gain amplifier signal to receiving; Can there be multiple value the time that this delayer carries out time delay to the gain amplifier signal receiving, preferably mode is: make the signal of this delayer output arrive the time of described gain balance module, be transferred to variable gain amplifier and come into force with the gain amplifier signal of described summation module output, and first arrives alignment time of advent of the aerial signal of described gain balance module through amplification and after by analog-to-digital conversion module;
Described gain balance module, for adjusting each railway digital signal according to the digital signal receiving from each analog-to-digital conversion module and the gain amplifier signal receiving from described delayer, reduces the gain difference between each digital signal.
When the aerial signal of terminal has n (n is greater than 0 integer) road, gain balance module is carried out the gain balance of n road signal according to following formula:
gain=min(gain
1,...,gain
n)
data
i=input
i*factor
i
Wherein, input
ithe input of i road analog to digital converter to gain balance module, data
ithe i road output of gain balance module, gain
ithe output after delayer of the gain amplifier of i road summation module output, 1≤i≤n, factor
ifor the balance factor of gain balance module to i road aerial signal, abs is the operation that takes absolute value.
For example, when the total two-way of the aerial signal of terminal, the gain amplifier of the summation module output that two-way aerial signal is corresponding is respectively gain1, gain2, and gain balance module is carried out the gain balance of two paths of signals according to following formula:
factor=2
-abs(gain1-gain2)
cond=(gain1>=gain2) (5)
data1=input1*(cond*factor+not(cond))
data2=input2*(not(cond)*factor+cond)
Input1 in formula, input2 is the input of gain balance module, data1, data2 is output; Cond=(gain1 >=gain2) is conditional expression, value 1 when gain1 >=gain2 sets up, otherwise be 0; Not represents to get non-.The index of gain modifying factor factor calculates owing to there being decimal in index, need to adopt approximate calculation, conventionally also adopts sectional broken line method, repeats no more here.
Gain1, gain2 is used for weighing radio circuit actual multiplication factor to received signal, if radio frequency multiplication factor is respectively F1, F2, gain1=log2 (F1), gain2=log2 (F2).
In described automatic gain control equipment, the analog to digital converter of a sub-device of automatic gain control inputs to output signal the single antenna receiver module of described terminal.
In this embodiment mono-, the method for aerial signal being carried out to automatic gain control comprises the following steps:
1) variable gain amplifier in each automatic gain control system device adopts corresponding aerial signal from the gain amplifier of summation module the analog signal receiving is amplified;
2) analog to digital converter in each automatic gain control system device is converted to digital signal by the analog signal after amplifying and is input to power estimation module;
3) an optional road aerial signal inputs to the signal of its analog to digital converter output the single antenna receiver module of terminal;
4) power of power estimation module calculating input signal, can adopt formula (1) directly to calculate or employing formula (2) is calculated by approximation method, and is transformed into log-domain, is input to error signal calculation module;
5) signal receiving and reference power signal are made the poor input filter after difference power value signal that obtains by error calculating module;
6) filter carries out filtering to the difference power value signal receiving, and filtering result is amplified and obtained filtering signal and be input to summation module;
7) summation module adds up and outputs to variable gain amplifier and delayer as gain amplifier the filtering signal receiving;
8) delayer will be sent into gain balance module after gain amplifier time delay, make the signal of this delayer output arrive the time of described gain balance module, be transferred to variable gain amplifier and come into force with the gain amplifier signal of described summation module output, and first arrives alignment time of advent of the aerial signal of described gain balance module through amplification and after by analog-to-digital conversion module;
9) gain balance module is adjusted each railway digital signal according to the digital signal receiving from each analog-to-digital conversion module, reduces the gain difference between each digital signal.
When the aerial signal of terminal has two-way, it is poor that gain balance module is done two-way gain, calculate absolute value negate, carry out again index and calculate gain modifying factor, then adopt modifying factor and gain amplifier compared with the correction that gains of great mono-road signal multiplication, the gain of two paths of signals is remained basically stable, shown in (5);
10) gain balance module is inputted diversity module by output signal and is carried out input.
The present embodiment one, reduces by the gain difference of delayer and gain balance module Shi Ge road aerial signal, and the difference of the noise amplitude in each aerial signal is reduced, and improves the performance of diversity reception module.The present embodiment one is except being applied to the terminal of only supporting diversity reception module, can also be applied to the terminal of simultaneously supporting diversity reception module and single antenna receiver module, in the present embodiment, each aerial signal is carried out respectively to automatic gain control, can ensure the basicly stable of single aerial signal, and then keep the stable of single antenna module performance; And improve the performance of diversity reception module by delayer and gain balance module, can take into account the performance of this two module, and ensure the hardware realization of high flexible.
Embodiment bis-:
As shown in Figure 2, be positioned at the mobile terminal that the comprises diversity reception module automatic gain control equipment for diversity reception, comprise the sub-device of more than one automatic gain control.In figure, only show the structure chart of the sub-device of a set of automatic gain control to explain, in the present embodiment, in automatic gain control equipment, can comprise the sub-device of two or more automatic gain controls.
In the sub-device of automatic gain control, except the composition module described in comprising embodiment mono-, also comprise the power signal processing module that input is all connected with each power estimation module and output is all connected with each error calculating module; Also comprise
the control module that the Enable Pin of each gain balance module is connected and is connected with the Enable Pin of each power signal processing module.Enable by control module ride gain balance module, when power signal processing module disable, carry out the described scheme of embodiment mono-(can be described as pattern 0), the signal of power estimation module output is directly inputted to error calculating module by power signal processing module; By control module ride gain balance module disable, when power signal processing module enables, carry out scheme described below (can be described as the scheme of pattern 1).
Specifically describe the detailed content of execution pattern 1 scheme in embodiment bis-below:
When execution pattern 1 scheme, power signal processing module, for determining that according to the power signal of each power estimation module output an amplitude occupy the compromise of one between each power signal maximum amplitude and minimum amplitude power signal as the output signal of each power estimation module and exports corresponding error calculating module to.
When the aerial signal of terminal has n (n is greater than 0 integer) road, power signal processing module is carried out the processing of n road signal according to following formula:
out
1=...=out
i=...=out
n (6)
=α*power
1+β*max(power
1,...,power
n)+γ*min(power
1,...,power
n)
1≤i≤n, out
ithe output signal of power estimation module in the sub-device of automatic gain control that n road aerial signal is corresponding, power
ibe the output signal of power estimation module in the sub-device of automatic gain control that i road aerial signal is corresponding, min is for getting minimum value operation, and max is for getting maxima operation, and α, β, γ are the real numbers as power estimation coefficient, and meet alpha+beta+γ=1.
When the aerial signal of terminal has two-way, power signal processing module input/output relation following out1=out2=α * power1+ β * max (power1, power2)+γ * min (power1, power2) (7)
Power1 is the output signal of power estimation module in the sub-device of automatic gain control that first via aerial signal is corresponding, power2 is the output signal of power estimation module in the sub-device of automatic gain control that the second road aerial signal is corresponding, and out1 is that power output signal that the first via aerial signal of power signal processing module output is corresponding is for inputting the error calculating module of the sub-device of automatic gain control that first via aerial signal is corresponding; Out2 is that power output signal that the second road aerial signal of power signal processing module output is corresponding is for inputting the error calculating module of the sub-device of automatic gain control that the second road aerial signal is corresponding.α, beta, gamma is the adjustable parameter between [0,1], conventionally ensures that three meets to be related to alpha+beta+γ=1.Now two-way output equates, and value can, by changing parameter at min (power1, power2), change between max (power1, power2) continuously.
In described automatic gain control equipment, the analog to digital converter of a sub-device of automatic gain control inputs to output signal the single antenna receiver module of described terminal.
When the scheme of execution pattern 1, the method for aerial signal being carried out to automatic gain control comprises the following steps:
1) variable gain amplifier in each automatic gain control system device adopts corresponding aerial signal from the gain amplifier of summation module the analog signal receiving is amplified;
2) analog to digital converter in each automatic gain control system device is converted to digital signal by the analog signal after amplifying and is input to power estimation module;
3) an optional road aerial signal inputs to the signal of its analog to digital converter output the single antenna receiver module of terminal;
4) power of power estimation module calculating input signal, can adopt formula (1) directly to calculate or employing formula (2) is calculated by approximation method, and is transformed into log-domain, is input to error signal calculation module;
5) power signal processing module determines that according to the power signal of each power estimation module output an amplitude occupy the compromise power signal between maximum amplitude and minimum amplitude in each power signal as the output signal of each power estimation module and exports corresponding error calculating module to.
When the aerial signal of terminal has two-way, each input power is converted, α, beta, gamma can configure as required; Out1, out2 value can, at min (power1, power2), change continuously, and two paths of signals adopt identical gain to amplify signal all the time between max (power1, power2) by changing parameter;
6) signal receiving and reference power signal are made the poor input filter after difference power value signal that obtains by error calculating module;
7) filter carries out filtering to the difference power value signal receiving, and filtering result is amplified and obtained filtering signal and be input to summation module;
8) summation module adds up and outputs to variable gain amplifier as gain amplifier the filtering signal receiving;
9) each variable gain amplification adopts corresponding aerial signal from the gain amplifier of summation module the analog signal receiving is amplified;
10) each analog to digital converter is converted to digital signal by the analog signal after amplifying and is input to diversity reception module.
When the scheme of execution pattern 1, Dui Ge road aerial signal adopts identical multiplication factor to carry out amplitude control, ensure that two paths of signals has roughly the same noise amplitude, improve the performance of diversity reception module, by the parameter at conditioned power signals processing module place, make the performance of single antenna receiver module and diversity reception module obtain best compromise.
In embodiment bis-, adopt gain balance, two kinds of optional mode of operations of power estimation function conversion realize the automatic gain control to multiple antennas, fully ensure the flexibility of AGC (automatic gain control) hardware controls module, and taken into account the performance of single antenna receiver module and double antenna receiver module simultaneously.
Automatic gain control in the present invention can be applicable to WCDMA, TD-SCDMA, employing receive diversities such as LTE and need to simultaneously support the mobile communication terminal of single antenna module.
Certainly; the present invention also can have other various embodiments; without prejudice to spirit of the present invention and essence thereof in the situation that, those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to protection scope of the present invention.