Summary of the invention
Embodiments provide a kind of DC offset compensation method and device, in order to improve the precision of DC compensation skew, ensure the accuracy of DC-offset compensation.
The embodiment of the present invention provides a kind of DC offset compensation method, and described method comprises:
Signal receiver receives the signal comprising pilot signal that described apparatus for transmitting signal sends;
When setting cycle arrives, described signal receiver, according to the pilot signal received in local pilot signal and this cycle, calculates amplitude gain; Described local pilot signal is that described signal receiver generates local pilot signal generation according to the agreement parameter between apparatus for transmitting signal;
Described signal receiver, according to described amplitude gain, the average of pilot signal received in this cycle, the average of local pilot signal, calculates DC offset; Or, according to described amplitude gain, the pilot signal received in this cycle, local pilot signal, calculate DC offset;
The each signal received in this cycle is subtracted described DC offset by described signal receiver, obtains the signal after DC compensation.
The embodiment of the present invention also provides a kind of DC-offset compensation device, comprising:
Signal pre-processing module, generates local pilot signal for the agreement parameter between basis and apparatus for transmitting signal;
Amplitude gain calculates module, for when setting cycle arrives, according to the local pilot signal of the pilot signal received in this cycle and described signal processing CMOS macro cell, calculates amplitude gain;
DC offset calculates module, for the average according to described amplitude gain, the average of pilot signal received in this cycle, the local pilot signal of generation, calculates DC offset; Or, according to described amplitude gain, receive pilot signal in this cycle, the local pilot signal of generation, calculate DC offset;
DC offset compensation module, for each signal received in this cycle is subtracted described DC offset, obtains the signal after DC compensation.
Compared with prior art, the above embodiment of the present invention has following Advantageous Effects:
In the DC-offset compensation scheme that the embodiment of the present invention provides, by generating local pilot signal by DC-offset compensation device, when setting cycle arrives, according to the pilot signal received in the local pilot signal generated and this cycle, calculate amplitude gain, and according to the average of the average of the pilot signal received in amplitude gain, this cycle, the local pilot signal of generation, calculate DC offset; Or, local pilot signal according to the pilot signal received in amplitude gain, this cycle, generation, calculate DC offset, and the signal received is subtracted DC offset, obtain the signal after DC compensation, DC offset affects little by statistical sample number and signal primary characteristic, it is to increase the precision of direct current bias estimation value, ensures the accuracy of DC-offset compensation.
Embodiment
For the problems referred to above that prior art exists, embodiments provide the pilot signal calculating DC offset that a kind of utilization receives, and according to the DC offset calculated, carry out the scheme of DC compensation to the received signal, improve the precision of direct current bias estimation value, ensure the accuracy of DC-offset compensation. Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
The embodiment of the present invention is applied to the radio communication system comprising apparatus for transmitting signal and signal receiver, and signal receiver is provided with DC-offset compensation device, and DC-offset compensation device passes through Implement of Function Module usually. Apparatus for transmitting signal is used for sending signal (comprising pilot signal) to signal receiver; The agreement parameter that DC-offset compensation device is used between basis and apparatus for transmitting signal generates local pilot signal, and utilize local pilot signal and the pilot signal received, calculate DC offset, and carry out DC compensation to the received signal according to calculating DC offset.
In embodiments of the present invention, the territory of setting numeral in advance is as the collection period of signal, such as, numeral territory can be 1 subframe or gap when 1, in embodiments of the present invention, taking 1 subframe (5ms) for digital territory, the frequency of Received signal strength Rx is 1000Hz is example, then the quantity of the sampling point in this numeral territory is 500, that is, can receive 500 signal Rx within 1 second.
The ultimate principle of the Received signal strength DC-offset compensation scheme that the embodiment of the present invention provides is as follows:
The pilot signal that signal receiver receives is R (n), DC-offset compensation device generates local pilot signal T (n) according to the agreement parameter between apparatus for transmitting signal, and local pilot signal T (n) is the pilot signal that apparatus for transmitting signal sends. In signals transmission, the pilot signal R (n) that signal receiver receives is subject to the impact of channel gain a, white Gaussian noise N (n) and direct current offset d c_offset, and the pass between pilot signal R (n), channel gain a, white Gaussian noise N (n) and direct current offset d c_offset is:
R (n)=aT (n)+N (n)+dc_offset(1)
DC-offset compensation device calculates the conjugation of local pilot signal T (n), obtains conjugation signal T (n)*After, pilot signal R (n) and the T (n) that will receive*Relevant, and get mathematical expection, obtain formula (2):
E{R(n)��T(n)*}=E{(a��T(n)+N(n)+dc_offset)��T(n)*}=a �� E{ | | T (n) | |2}+E{N(n)��T(n)*}+dc_offset��E{T(n)*(2)
Due to local pilot signal T (n) be generally through randomization after signal, when the quantity of sample point is enough, E{T (n) } level off to 0, with managing E{T (n)*Also 0 is leveled off to.
DC offset dc_offset is relative to the energy of local pilot signal | | T (n) | |2Very little, that is,
dc_offset��E{T(n)*}<<����E{||T(n)||2(3)
In addition, owing to white Gaussian noise N (n) is uncorrelated with local pilot signal T (n), it is possible to obtain formula (4):
E{N(n)��T(n)*�� 0(4)
In conjunction with formula (2), (3) and (4), it is possible to obtain formula (5):
According to formula (1) and (5), it is possible to obtain formula (6):
Dc_offset=E{R (n) }-a �� E{T (n) }-E{N (n) } (6)
Owing to noise has the characteristic that average is 0, that is, E{N (n) } �� 0, therefore, it is possible to formula (6) is deformed into formula (7):
Dc_offset �� E{R (n) }-a �� E{T (n) } (7)
In addition, according to formula (2), (4) and (5), it is possible to obtain formula (8):
With reason, owing to noise has the characteristic that average is 0, that is, E{N (n) } �� 0, and when sample point is enough, E{T (n)*Also 0 is leveled off to therefore, it is possible to formula (8) is deformed into formula (9):
Derive by above-mentioned formula it will be seen that local pilot signal T (n) is the generation of the agreement parameter between basis and apparatus for transmitting signal, it is known signal, utilize formula (6) or (8) that direct current skew can be calculated. Utilizing the performance that formula (6) or (8) obtain only to be correlated with white Gaussian noise N (n), when statistical sample number is more many, or white Gaussian noise N (n) is more hour, E{N (n) �� T (n)*And E{N (n) more level off to 0, therefore, the direct current bias estimation error calculated by formula (6) or (8) is more little, and the result of DC compensation is more accurate.
In actual applications, apparatus for transmitting signal can send with road pilot signal usually, and pilot signal is control signal, for measuring and monitoring and controlling channels information, ensures system synchronization and channel estimating. The embodiment of the present invention make use of the pilot signal in Received signal strength to carry out direct current bias estimation, and carries out DC-offset compensation. Below in conjunction with Fig. 1, DC-offset compensation flow process being described in detail, this flow process comprises the following steps:
Step 101, DC-offset compensation device Received signal strength sends the signal Rx that equipment sends, and signal Rx comprises data signal and pilot signal Rp��
Step 102, when setting cycle arrives, DC-offset compensation device is according to the pilot signal R received in this cyclepWith local pilot signal Tp, calculate amplitude gain a.
Concrete, DC-offset compensation device generates local pilot signal according to the agreement parameter between apparatus for transmitting signal, generates local pilot signal TpStep can regard as and carry out DC compensation pre-treatment step, local pilot signal TpSpecific algorithm be prior art, do not repeat them here.
Within this cycle, the pilot signal R that DC-offset compensation device will receivepWith local pilot signal TpConjugation signal Tp *It is correlated with and sues for peace, obtain the first constant Corr, that is,Wherein, Rp(n) pilot signal sequence for receiving in this cycle;
TpN local pilot signal sequence that () generates for DC-offset compensation device in this cycle; TpN () * is the conjugation signal of the local pilot signal sequence that DC-offset compensation device generates; N is sampling point index, and 1��n��N, N is the sampling point quantity of the signal that described signal receiver receives within this cycle.
DC-offset compensation device is by local pilot signal TpDelivery is asked square again, then result is finally added up, and calculates local pilot signal TpTotal energy E_tx, that is:
Wherein, Rp(n) pilot signal sequence for receiving in this cycle; TpN local pilot signal sequence that () generates for DC-offset compensation device in this cycle; TpN () * is the conjugation signal of the local pilot signal sequence that DC-offset compensation device generates; N is sampling point index, and 1��n��N, N is the sampling point quantity of the signal received in this cycle.
DC-offset compensation device is by calculating the first constant Corr and local pilot signal TpThe ratio of total energy E_tx, obtain amplitude gain a, that is,
Step 103, DC-offset compensation device calculates DC offset.
Preferably, DC-offset compensation device can calculate DC offset by following two kinds of modes:
Mode one, according to amplitude gain a, the pilot signal R that receives in this cyclepAverage, local pilot signal TpAverage, calculate DC offset dc_offset.
Concrete, DC-offset compensation device calculates the pilot signal R received in this cycle respectivelypWith local pilot signal TpAverage:
Therefore, according to aforesaid formula derivation it will be seen that DC offset dc_offset can be obtained by following formula:
This shows, calculating DC offset by mode one, data processing process is simple.
Mode two, according to amplitude gain a, the pilot signal R that receives in this cyclep, the local pilot signal T of apparatus for transmitting signalp, calculate DC offset dc_offset.
Concrete, DC-offset compensation device is to local pilot signal TpConjugation Tp *Summation, that is,Wherein, n is sampling point index, and 1��n��N, N is the sampling point quantity of the signal received in this cycle.
Therefore, according to aforesaid formula derivation it will be seen that DC offset dc_offset can be obtained by following formula:
Wherein, dc_offset is DC offset; Rp(n) pilot signal sequence for receiving in this cycle; TpN () is pilot signal sequence local in this cycle; TpN () * is the conjugation signal of local pilot signal sequence; N is sampling point index, and 1��n��N, N is the sampling point quantity of the signal received in this cycle.
This shows, being calculated the DC offset obtained by mode two relative to mode one, more accurately, performance is better.
Step 104, each signal Rx (n) received in this cycle is subtracted DC offset dc_offset by DC-offset compensation device, obtains signal Rx_comp (n) after DC compensation.
In one-period, the DC offset dc_offset of each Received signal strength is identical, after DC-offset compensation device calculates DC offset dc_offset, it is possible to respectively Received signal strength Rx (n) each in this cycle is carried out DC compensation. The signal Rx received is subtracted DC offset dc_offset, obtains signal Rx_comp:Rx_comp (n) after corresponding DC compensation=Rx (n)-dc_offset.
By above-mentioned DC-offset compensation flow process it may be seen that the embodiment of the present invention utilizes the pilot signal received, the DC offset calculated affects little by statistical sample number and signal primary characteristic, and precision is higher, ensure that the accuracy of DC-offset compensation.
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of DC-offset compensation device, and as shown in Figure 2, this equipment comprises:
Signal pre-processing module 21, generates local pilot signal for the agreement parameter between basis and apparatus for transmitting signal;
Amplitude gain calculates module 22, for when setting cycle arrives, according to the local pilot signal that the pilot signal received in this cycle and described signal pre-processing module 21 generate, calculating amplitude gain;
DC offset calculates module 23, for the average according to described amplitude gain, the average of pilot signal received in this cycle, the local pilot signal of generation, calculates DC offset; Or, according to described amplitude gain, receive pilot signal in this cycle, the local pilot signal of generation, calculate DC offset;
DC offset compensation module 24, for each signal received in this cycle is subtracted described DC offset, obtains the signal after DC compensation.
Amplitude gain calculate module 22 specifically for, by following formulae discovery amplitude gain:
Wherein, a is amplitude gain; Rp(n) pilot signal sequence for receiving in this cycle; TpN () is pilot signal sequence local in this cycle; TpN () * is the conjugation signal of local pilot signal sequence; N is sampling point index, and 1��n��N, N is the sampling point quantity of the signal received in this cycle.
DC offset calculate module 23 specifically for, by following formulae discovery DC offset:
Wherein, dc_offset is DC offset; Rp(n) pilot signal sequence for receiving in this cycle; TpN () is pilot signal sequence local in this cycle; N is sampling point index, and 1��n��N, N is the sampling point quantity of the signal received in this cycle.
DC offset calculate module 23 specifically for, by following formulae discovery DC offset:
Wherein, dc_offset is DC offset; Rp(n) pilot signal sequence for receiving in this cycle; TpN () is pilot signal sequence local in this cycle; TpN () * is the conjugation signal of local pilot signal sequence; N is sampling point index, and 1��n��N, N is the sampling point quantity of the signal received in this cycle.
Through the above description of the embodiments, the technician of this area can be well understood to the present invention and can realize by the mode that software adds required general hardware platform, naturally it is also possible to by hardware, but in a lot of situation, the former is better enforcement mode. Based on such understanding, the technical scheme of the present invention in essence or says that part prior art contributed can embody with the form of software product, this computer software product is stored in a storage media, comprise some instructions with so that a station terminal equipment (can be mobile phone, Personal Computer, server, or the network equipment etc.) perform the method described in each embodiment of the present invention.
The above is only the preferred embodiment of the present invention; it is noted that for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.