Disclosure of Invention
The embodiment of the invention provides a method for obtaining an orthogonal variable spreading factor code by user equipment which does not support multiple input multiple output and the user equipment.
In order to solve the technical problem, the embodiment of the invention is realized by the following technical scheme:
the method for obtaining the orthogonal variable spreading factor code provided by the embodiment of the invention comprises the following steps:
descrambling the received signal;
respectively correlating the descrambled received signals with 2 nd to 256 orthogonal variable spreading factor codes with the spreading factor of 256;
respectively accumulating the correlated 255 paths of signals by correlation values with the length of 256;
respectively carrying out accumulation averaging with the length of a first preset value on 255 paths of signals after the correlation values are accumulated;
respectively obtaining the energy of 255 paths of signals subjected to the accumulated averaging by the first preset value, and respectively carrying out the accumulated averaging with the length being the second preset value on the 255 paths of energy signals;
and accumulating and averaging the energy signals according to 255 paths of second preset values to obtain the orthogonal variable spreading factor code of the auxiliary pilot frequency.
The embodiment of the invention also provides a method for obtaining the orthogonal variable spreading factor code, which comprises the following steps:
descrambling the received signal;
respectively correlating the descrambled received signals with k orthogonal variable spreading factor codes with spreading factors of k, wherein k is a positive integer;
respectively accumulating the correlated k paths of signals by the correlation values with the length of k;
accumulating and averaging the k paths of signals after the correlation values are accumulated, wherein the length of the k paths of signals is a third preset value;
respectively obtaining the energy of the k paths of signals after the accumulated averaging of the third preset values, and respectively carrying out the accumulated averaging with the length of the fourth preset value on the k paths of obtained energy signals;
acquiring a first orthogonal variable spreading factor code which generates an orthogonal variable spreading factor code of the auxiliary pilot frequency and has a spreading factor of k according to the k paths of energy signals accumulated and averaged by the fourth preset values;
correlating the 2 nd to 256 th orthogonal variable spreading factor codes in the orthogonal variable spreading factors with the spreading factor of 256 generated by the first orthogonal variable spreading factor code with the descrambled received signal respectively;
respectively accumulating the 256/k-1 paths of signals after correlation by correlation values with the length of 256;
respectively carrying out accumulation averaging with the length of a fifth preset value on 256/k-1 paths of signals after the correlation values are accumulated;
respectively obtaining 256/k-1 paths of energy of signals after the accumulation and the averaging of the fifth preset value, and respectively carrying out the accumulation and the averaging with the length of a sixth preset value on the obtained energy signals;
and obtaining the orthogonal variable spreading factor code of the secondary pilot frequency according to the 256/k-1 paths of energy signals after the accumulation and the average of the sixth preset value.
An embodiment of the present invention further provides a user equipment, which includes:
a first receiving unit for descrambling a received signal;
a first correlation unit, configured to correlate the descrambled received signal with 2 nd to 256 kinds of orthogonal variable spreading factor codes with a spreading factor of 256, respectively;
the first correlation value accumulation unit is used for respectively accumulating the correlation values with the length of 256 of the 255 correlated signals;
the first accumulation and averaging unit is used for respectively carrying out accumulation and averaging with the length being a first preset value on the 255 paths of signals after the correlation values are accumulated;
the first obtaining unit is used for respectively obtaining the energy of 255 paths of signals accumulated and averaged by the first preset value;
the second accumulation and averaging unit is used for respectively carrying out accumulation and averaging with the length being a second preset value on the obtained 255 paths of energy signals;
and the second obtaining unit is used for obtaining the orthogonal variable spreading factor code of the secondary pilot frequency according to the 255 paths of energy signals accumulated and averaged by the second preset value.
An embodiment of the present invention further provides a user equipment, which includes:
a second receiving unit for descrambling the received signal;
a second correlation unit, configured to correlate the descrambled received signal with k orthogonal variable spreading factor codes with spreading factor k, where k is a positive integer;
the second correlation value accumulation unit is used for respectively accumulating the correlation values with the length of k for the k paths of correlated signals;
the third accumulation and averaging unit is used for respectively carrying out accumulation and averaging with the length of a third preset value on the k paths of signals after the correlation values are accumulated;
a third obtaining unit, configured to obtain energies of the signals after the k paths of third preset values are accumulated and averaged, respectively;
the fourth accumulation and averaging unit is used for respectively carrying out accumulation and averaging with the length being a fourth preset value on the obtained k paths of energy signals;
a fourth obtaining unit, configured to obtain, according to k channels of energy signals obtained by accumulating and averaging fourth preset values, a first orthogonal variable spreading factor code with a spreading factor k and generating an orthogonal variable spreading factor code for the secondary pilot;
the second correlation unit is further configured to correlate the 2 nd to 256 th/k th orthogonal variable spreading factors among the orthogonal variable spreading factors with spreading factors of 256 generated by the first orthogonal variable spreading factor code with the descrambled received signal, respectively;
the second correlation value accumulation unit is also used for respectively accumulating the correlation values with the length of 256 for the correlated 256/k-1 paths of signals;
the third accumulation and averaging unit is further used for respectively carrying out accumulation and averaging with the length being a fifth preset value on the 256/k-1 paths of signals after the correlation values are accumulated;
the third obtaining unit is further configured to obtain energy of 256/k-1 paths of signals after the fifth preset value is accumulated and averaged, and perform accumulated averaging with a length of a sixth preset value on the obtained energy signals;
the fourth obtaining unit is further configured to obtain an orthogonal variable spreading factor code of the secondary pilot according to the 256/k-1 paths of energy signals after the accumulated average of the sixth preset values.
According to the embodiment of the invention, interference of other channels can be counteracted to a certain degree by correlating the descrambled signals with 255 OVSF with a spreading factor of 256 and accumulating the correlation values, so that the property of sending fixed symbols by the auxiliary pilot frequency is enhanced, the signal energy after accumulating the correlation values is larger, and further, the OVSF code of the auxiliary pilot frequency can be obtained by accumulating the averaged energy signals according to the second preset value, so that user equipment which does not support multiple input and multiple output can obtain the OVSF code of the auxiliary pilot frequency according to the received signals.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a method for obtaining an orthogonal variable spreading factor code and user equipment. In order to better understand the technical solution of the present invention, the following detailed description of the embodiments of the present invention is provided with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of a method for obtaining orthogonal variable spreading factor codes according to an embodiment of the present invention.
In this embodiment of the present invention, a user equipment receives a signal transmitted by a base station, a primary pilot and a secondary pilot are inserted into the signal transmitted by the base station, and different orthogonal variable spreading factor codes are used for the primary pilot and the secondary pilot respectively to perform spreading, where the method for obtaining an orthogonal variable spreading factor code provided in this embodiment of the present invention may include:
101. descrambling is performed on the received signal.
Specifically, the user equipment descrambles the received signal.
102. The descrambled received signal is correlated with 2 nd to 256 kinds of orthogonal variable spreading factor codes with a spreading factor of 256, respectively.
Specifically, the ue correlates the descrambled received signal with 2 nd to 256 orthogonal variable spreading factor codes with a spreading factor of 256, respectively, to obtain 255 channels of correlated signals.
In the embodiment of the present invention, the 1 st orthogonal variable spreading factor code with a spreading factor of 256 is the orthogonal variable spreading factor code used when the primary pilot is spread at the transmitting end.
103. And accumulating the correlated 255 paths of signals by correlation values with the length of 256.
Specifically, the ue may accumulate the correlated 255 channels of signals with correlation values having a length of 256, so as to despread the SF-256 orthogonal variable spreading factor code.
104. And respectively carrying out accumulation averaging with the length being a first preset value on the 255 paths of signals after the correlation values are accumulated.
Specifically, the user equipment performs accumulation averaging with a length of a first preset value on 255 paths of signals after the correlation values are accumulated. The purpose of the accumulation averaging is to improve the quality of the received signal, the first preset value can be determined according to the speed of channel change, and if the channel change is faster, the first preset value is smaller, and if the channel change is slower, the first preset value is larger.
105. And respectively obtaining the energy of the 255 paths of signals subjected to the accumulated averaging by the first preset value, and respectively carrying out the accumulated averaging with the length being the second preset value on the 255 paths of energy signals.
Specifically, the user equipment obtains the energy of the 255 paths of signals after the accumulated and averaged first preset values respectively, and then performs the accumulated and averaged length of the 255 paths of energy signals to be the second preset value respectively.
The embodiment of the invention can reduce the variation range of noise energy in the signal by performing accumulation averaging and reduce the influence of noise on the final judgment result. The second preset value can be determined according to the specific implementation cost, and if more accurate orthogonal variable spreading factor codes need to be obtained, a larger second preset value is set.
106. And accumulating and averaging the energy signals according to 255 paths of second preset values to obtain the orthogonal variable spreading factor code of the auxiliary pilot frequency.
Specifically, the user equipment obtains the orthogonal variable spreading factor code of the secondary pilot frequency according to 255 paths of energy signals accumulated and averaged by the second preset value.
In the embodiment of the invention, because the OVSF codes are orthogonal, a signal obtained by despreading the descrambled signal by using a correct OVSF code has higher energy, in addition, because the secondary pilot frequency transmits a fixed symbol, and other channels except the primary pilot frequency do not transmit the fixed symbol, the embodiment of the invention can ensure that the interference of other channels can be counteracted to a certain extent by correlating the descrambled signal with 255 OVSF with the spreading factor of 256 and accumulating the correlation values, thereby enhancing the property of the fixed symbol transmitted by the secondary pilot frequency, ensuring that the signal energy after accumulating the correlation values is larger, further obtaining the OVSF code of the secondary pilot frequency by accumulating the averaged energy signal according to a second preset value, and ensuring that user equipment which does not support multiple input and multiple output can obtain the OVSF code of the secondary pilot frequency according to the received signal.
The method for acquiring orthogonal variable spreading factor codes provided by the embodiment of the invention can be used in a mode that the current cell is configured as the main and auxiliary pilot frequencies, and at the moment, user equipment which does not support MIMO can eliminate the interference of the auxiliary antenna of the base station according to the OVSF of the auxiliary pilot frequency after acquiring the OVSF of the auxiliary pilot frequency of the cell. In addition, the embodiment of the present invention may also use, in a scenario where the neighboring cell is configured as the primary and secondary pilot mode, the OVSF of the secondary pilot of the neighboring cell, which is obtained by the user equipment of the cell, so as to eliminate the interference of the secondary antenna of the base station of the neighboring cell according to the OVSF of the secondary pilot of the neighboring cell.
Further, in the method for obtaining an orthogonal variable spreading factor code according to the first embodiment of the present invention, the step of obtaining the orthogonal variable spreading factor code of the secondary pilot by accumulating the averaged energy signals according to the 255 channels of second preset values is specifically implemented by the following manner:
1) if the maximum value M1 in the current values of the 255 paths of energy signals accumulated and averaged by the second preset values is larger than the first preset multiple of the second maximum value M2, the orthogonal variable spreading factor code corresponding to the maximum value M1 is obtained.
Specifically, the user equipment may obtain the maximum value M1 and the second largest value M2 of the 255 current values of the energy signal accumulated and averaged by the second preset values. If the maximum value M1 is greater than the first predetermined multiple of the second largest value M2, it indicates that the ovsf code corresponding to the maximum value is the ovsf code of the secondary pilot, and the ue can obtain the ovsf code corresponding to the maximum value M1.
2) And continuously obtaining N maximum values of the energy signal after 255 paths of second preset values are accumulated and averaged in preset N periods, and if the continuous occurrence frequency of the same maximum value in the N maximum values is greater than or equal to the first preset frequency and the orthogonal variable spreading factor codes corresponding to the same maximum value are the same, obtaining the orthogonal variable spreading factor code corresponding to the maximum value.
In the embodiment of the present invention, the first preset number and the first preset multiple may be determined according to the accuracy of the decision, and if the accuracy of the orthogonal variable spreading factor code of the secondary pilot obtained in the embodiment of the present invention is required to be higher, the first preset number and the first preset multiple are set to be larger, otherwise, the first preset number and the first preset multiple are set to be smaller.
It should be noted that, in the embodiment of the present invention, the method for obtaining the orthogonal variable spreading factor code of the secondary pilot by accumulating the energy signals averaged according to the 255 paths of second preset values is not limited to the two methods provided above, and other methods may also be used.
In the embodiment of the invention, after the orthogonal variable spreading factor code of the secondary pilot frequency is obtained, scrambling and despreading can be carried out on the received signal according to the orthogonal variable spreading factor code of the secondary pilot frequency, and channel estimation can be carried out on the descrambled and despread signal, so that the interference generated by the signal transmitted by the secondary antenna of the base station can be eliminated.
For a more detailed understanding of the embodiments of the present invention, a specific derivation procedure for eliminating interference generated by signals transmitted from the secondary antennas of the base station according to the obtained orthogonal variable spreading factor codes of the secondary pilots is given below.
The user equipment receiving signal may be expressed as:
<math>
<mrow>
<mi>r</mi>
<mo>=</mo>
<mi>Hx</mi>
<mo>+</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>K</mi>
</munderover>
<msub>
<mi>H</mi>
<mi>i</mi>
</msub>
<msub>
<mi>x</mi>
<mi>i</mi>
</msub>
<mo>+</mo>
<mi>n</mi>
</mrow>
</math>
where r is the received signal, x is the desired signal, H is the channel of the desired signal, xiFor interfering signals, HiThe channel of the interfering signal, n, is gaussian white noise.
Then the Linear Minimum Mean Square Error (LMMSE) algorithm equalization vector can be expressed as:
<math>
<mrow>
<mo>=</mo>
<msup>
<mi>H</mi>
<mi>T</mi>
</msup>
<msup>
<mrow>
<mo>(</mo>
<msup>
<mi>HH</mi>
<mi>H</mi>
</msup>
<msubsup>
<mi>σ</mi>
<mi>x</mi>
<mn>2</mn>
</msubsup>
<mo>+</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>K</mi>
</munderover>
<msub>
<mi>H</mi>
<mi>i</mi>
</msub>
<msubsup>
<mi>H</mi>
<mi>i</mi>
<mi>H</mi>
</msubsup>
<msubsup>
<mi>σ</mi>
<msub>
<mi>x</mi>
<mi>i</mi>
</msub>
<mn>2</mn>
</msubsup>
<mo>+</mo>
<msubsup>
<mi>σ</mi>
<mi>n</mi>
<mn>2</mn>
</msubsup>
<mi>I</mi>
<mo>)</mo>
</mrow>
<mrow>
<mo>-</mo>
<mn>1</mn>
</mrow>
</msup>
</mrow>
</math>
wherein,
in order to be able to expect the signal power,
for the power of the i-th interfering signal,
is the noise power. R
xyIs a cross-correlation matrix, R, of the transmitted and received signals
yyIs the autocorrelation matrix of the received signal, H
HIs the conjugate transpose of the channel estimation matrix, I stands for the unit matrix.
Because the channel estimation matrix is obtained through the pilot frequency, only the OVSF of the pilot frequency is known, the pilot frequency can be descrambled and despread correctly, and then the channel estimation is carried out, and then the equalization vector is obtained for carrying out interference elimination.
The embodiment of the invention filters the received signal by using the equalization vector, and the filtered signal is y ═ wr, namely the signal after the interference is eliminated.
Example two
Referring to fig. 2, fig. 2 is a flowchart of a method for obtaining orthogonal variable spreading factor codes according to a second embodiment of the present invention.
The method for obtaining an orthogonal variable spreading factor code provided in the second embodiment of the present invention may include:
201. descrambling is performed on the received signal.
Specifically, the execution process of step 201 is the same as that of step 101 in the first embodiment, and refer to the first embodiment for details.
202. And respectively correlating the descrambled received signals with k orthogonal variable spreading factor codes with spreading factors of k, wherein k is a positive integer.
In the embodiment of the invention, the user equipment respectively correlates the descrambled received signals with k orthogonal variable spreading factor codes with spreading factor k, wherein k is a positive integer, and k paths of correlated signals are obtained. Wherein, the spreading factor k may take 2, 4, 8, 16, 32, 64 or 128.
203. And respectively accumulating the correlated k paths of signals by the correlation values with the length of k.
Specifically, the ue performs correlation value accumulation with a length of k on the correlated k channels of signals, so as to implement despreading of the SF-k orthogonal variable spreading factor code.
204. And accumulating and averaging the k paths of signals after the correlation values are accumulated, wherein the length of the k paths of signals is a third preset value.
Specifically, the user equipment respectively performs the accumulation averaging with the length of a third preset value on the k paths of signals after the correlation values are accumulated. The purpose of the cumulative averaging is to improve the quality of the received signal. The third preset value can be determined according to the channel change speed, and if the channel change speed is higher, the third preset value is smaller, and if the channel change speed is lower, the third preset value is larger.
205. And respectively obtaining the energy of the signals after the k paths of third preset values are accumulated and averaged, and respectively carrying out the accumulated and average on the obtained k paths of energy signals with the length of a fourth preset value.
Specifically, the user equipment may obtain the energy of the signals after the k paths of signals are accumulated and averaged by the third preset value, and perform the accumulated and averaged length of the obtained k paths of energy signals to the fourth preset value.
The accumulated average can reduce the variation range of noise energy in the signal and reduce the influence of noise on the final judgment result. The fourth preset value can be determined according to the specific implementation cost, and if a more accurate orthogonal variable spreading factor code needs to be obtained, a larger fourth preset value is set.
206. And acquiring a first orthogonal variable spreading factor code meeting a second preset condition according to the k paths of energy signals accumulated and averaged by the fourth preset values.
In the embodiment of the invention, the secondary pilot frequency is sent by fixed symbols and orthogonal OVSF codes. Through carrying out correlation and correlation value accumulation on a received signal and k kinds of OVSF codes with spreading factors of k, the interference of the OVSF codes used by other channels to the auxiliary pilot frequency is reduced, so that the property of the auxiliary pilot frequency for sending fixed symbols is enhanced, and further the OVSF code with the SF being k generated on the OVSF code tree can be obtained according to the energy signal accumulated and averaged by the second preset value.
In the embodiment of the present invention, after step 206 is executed, it is known that the range of the OVSF code of the secondary pilot is the orthogonal variable spreading factor code in SF 265 generated by the first orthogonal variable spreading factor code.
207. And respectively correlating the 2 nd to 256 th/k orthogonal variable spreading factor codes in the orthogonal variable spreading factor codes with the spreading factor of 256 generated by the first orthogonal variable spreading factor code with the descrambled received signal.
The number of the orthogonal variable spreading factor codes with the spreading factor of 256 generated by the first orthogonal variable spreading factor code is 256/k, and the user equipment correlates the 2 nd to 256 th/k orthogonal variable spreading factor codes in the orthogonal variable spreading factor codes with the descrambled received signal respectively in the 256/k SF-256 orthogonal variable spreading factor codes. In addition, 256/k denotes 256 divided by k, and "/" denotes a division number.
Wherein the first orthogonal variable spreading factor code with SF equal to 256 is the orthogonal variable spreading factor code of the primary pilot.
208. And respectively accumulating the 256/k-1 paths of signals after correlation by correlation values with the length of 256.
In the embodiment of the present invention, after the correlation value accumulation, despreading of the SF-256 orthogonal variable spreading factor code can be achieved. Where 256/k-1 represents the quotient of 256 divided by k minus 1.
209. And accumulating and averaging the 256/k-1 paths of signals after the correlation values are accumulated, wherein the length of the signals is the fifth preset value.
And the user equipment respectively carries out accumulation averaging with the length of a fifth preset value on the 256/k-1 paths of signals after the correlation values are accumulated. The purpose of the accumulation averaging is to improve the quality of the received signal, the fifth preset value can be determined according to the speed of channel change, and if the channel change is faster, the fifth preset value is smaller, and if the channel change is slower, the fifth preset value is larger.
210. Respectively obtaining 256/k-1 paths of energy of signals after the accumulation and the averaging of the fifth preset value, and respectively carrying out the accumulation and the averaging with the length of the sixth preset value on the obtained energy signals.
The accumulated average can reduce the variation range of noise energy in the signal and reduce the influence of noise on the final judgment result. The sixth preset value can be determined according to the specific implementation cost, and if a more accurate orthogonal variable spreading factor code needs to be obtained, a larger sixth preset value is set.
211. And obtaining the orthogonal variable spreading factor code of the secondary pilot frequency according to the 256/k-1 paths of energy signals after the accumulation and the average of the sixth preset value.
Specifically, the ue may obtain a maximum value L1 and a second maximum value L2 in current values of the energy signals accumulated and averaged by the 256/k-1 paths of sixth preset values, and if L1 is greater than a second preset multiple of L2, determine the orthogonal variable spreading factor code corresponding to the maximum L1 as the orthogonal variable spreading factor code of the secondary pilot, and obtain the orthogonal variable spreading factor code corresponding to the maximum L1.
In addition, in the embodiment of the present invention, when step 211 is executed, N maximum values of the energy signal after the k-path fourth preset values are accumulated and averaged in preset N periods may also be continuously obtained, where N is an integer greater than 1. If the number of times that the same maximum value among the N maximum values continuously appears is greater than or equal to a second preset number of times, and the orthogonal variable spreading factor codes corresponding to the same maximum value are the same, the orthogonal variable spreading factor code corresponding to the maximum value is an orthogonal variable spreading factor code of the secondary pilot frequency, and the user equipment obtains a first orthogonal variable spreading factor code whose spreading factor is k and corresponding to the same maximum value.
In the embodiment of the present invention, since the OVSF codes are orthogonal, a signal obtained by despreading the descrambled signal by using the correct OVSF code has higher energy, and in addition, because the secondary pilot frequency transmits fixed symbols, and other channels except the primary pilot frequency transmit non-fixed symbols, the embodiment of the invention can enable the interference of other channels to be offset to a certain degree by correlating the descrambled signal with 256 OVSF with the spreading factor of 256 and accumulating the correlation values, thereby enhancing the property of the fixed symbol sent by the auxiliary pilot frequency, leading the signal energy after the accumulation of the correlation value to be larger, further, the averaged energy signal can be accumulated according to a second preset value to obtain the OVSF code of the secondary pilot, therefore, the user equipment which does not support MIMO can obtain the OVSF code of the secondary pilot frequency according to the received signal.
Compared with the first embodiment of the invention, the second embodiment of the invention needs to correlate the descrambled signal with the orthogonal variable spreading factor code for k-1+256/k times, and compared with the first embodiment which needs to correlate for 255 times, the second embodiment of the invention has lower realization cost for obtaining the orthogonal variable spreading factor code of the auxiliary pilot frequency.
Further, in the method for obtaining an orthogonal variable spreading factor code according to the second embodiment of the present invention, the obtaining of the first orthogonal variable spreading factor code satisfying the second preset condition according to the energy signal accumulated and averaged by the k fourth preset values (step 206) may be specifically implemented by:
1) and if the maximum value L1 in the current values of the energy signals after the k paths of fourth preset values are accumulated and averaged is larger than the second preset multiple of the second maximum value L2, obtaining a first orthogonal variable spreading factor code with the spreading factor k corresponding to the maximum value L1.
Specifically, the ue may obtain a maximum value L1 and a second largest value L2 of current values of the energy signal after the k paths of second preset values are accumulated and averaged. If the maximum value L1 is greater than the second predetermined multiple of the second largest value L2, it indicates that the ovsf code corresponding to the maximum value is the ovsf code of the secondary pilot, and the ue can obtain the ovsf code corresponding to the maximum value L1.
2) And continuously obtaining N maximum values of the energy signal after accumulating and averaging k paths of fourth preset values in preset N periods, and if the continuous occurrence frequency of the same maximum value in the N maximum values is greater than or equal to a second preset frequency and the orthogonal variable spreading factor codes corresponding to the same maximum value are the same, obtaining a first orthogonal variable spreading factor code of which the spreading factor corresponding to the same maximum value is k, wherein N is an integer greater than 1.
In the embodiment of the present invention, the second preset number may be determined according to the accuracy of the second preset multiple, and if the accuracy of the orthogonal variable spreading factor code of the secondary pilot obtained in the embodiment of the present invention is required to be higher, the second preset number and the second preset multiple are set to be larger, otherwise, the second preset number and the second preset multiple are set to be smaller.
It should be noted that, in the embodiment of the present invention, the method for obtaining the orthogonal variable spreading factor code of the secondary pilot by accumulating the averaged energy signals according to the k fourth preset values is not limited to the two methods provided above, and other methods may also be used.
The method for obtaining an orthogonal variable spreading factor code according to the embodiment of the present invention is described in detail above, and the following provides a device corresponding to the embodiment of the method of the present invention.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a user equipment according to a third embodiment of the present invention.
The user equipment provided by the third embodiment of the invention comprises:
a first receiving unit 301 configured to descramble a received signal;
a first correlation unit 302, configured to correlate the descrambled received signal with 2 nd to 256 kinds of orthogonal variable spreading factor codes with spreading factors of 256, respectively;
a first correlation value accumulation unit 303, configured to perform correlation value accumulation with a length of 256 on the 255 correlated signals respectively;
a first accumulation and averaging unit 304, configured to perform accumulation and averaging with a length of a first preset value on the 255 signals after the correlation values are accumulated;
a first obtaining unit 305, configured to obtain energy of 255 paths of signals after the signals are accumulated and averaged by using the first preset value;
a second accumulation and averaging unit 306, configured to perform accumulation and averaging on the 255 energy signals with a length equal to a second preset value;
a second obtaining unit 307, configured to obtain the orthogonal variable spreading factor code of the secondary pilot according to the 255 channels of energy signals accumulated and averaged by the second preset value.
The user equipment provided by the third embodiment of the present invention may be used in the method for obtaining an orthogonal variable spreading factor code provided by the first embodiment, and the detailed implementation process refers to the above method embodiment, and is not described again here.
Further, in the user equipment according to the third embodiment of the present invention, the second obtaining unit 307 obtains the orthogonal variable spreading factor code of the secondary pilot according to the 255 paths of energy signals accumulated and averaged by the second preset value, including:
the second obtaining unit 307 is specifically configured to obtain a first orthogonal variable spreading factor code with a spreading factor k corresponding to the maximum value M1 when the maximum value M1 in the current values of the k paths of energy signals accumulated and averaged by the fourth preset value is greater than a first preset multiple of the second maximum value M2; or, continuously obtaining N maximum values of the energy signal after accumulated averaging of k fourth preset values in preset N periods, and if the number of times that the same maximum value among the N maximum values continuously appears is greater than or equal to a first preset number of times and orthogonal variable spreading factor codes corresponding to the same maximum value are the same, obtaining a first orthogonal variable spreading factor code whose spreading factor corresponding to the same maximum value is k, where N is a positive integer greater than 1.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a user equipment according to a fourth embodiment of the present invention.
The user equipment provided by the fourth embodiment of the present invention includes:
a second receiving unit 401, configured to descramble a received signal;
a second correlation unit 402, configured to correlate the descrambled received signal with k orthogonal variable spreading factor codes with spreading factors k, where k is a positive integer;
a second correlation value accumulation unit 403, configured to perform correlation value accumulation with a length of k on the correlated k channels of signals respectively;
a third accumulation and averaging unit 404, configured to perform accumulation and averaging with a length of a third preset value on the k paths of signals after the correlation values are accumulated;
a third obtaining unit 405, configured to obtain energy of the k paths of signals after the accumulated average of the third preset values, respectively;
a fourth accumulating and averaging unit 406, configured to perform accumulating and averaging on the obtained k paths of energy signals with a length equal to a fourth preset value, respectively;
a fourth obtaining unit 407, configured to obtain, according to k channels of energy signals obtained by accumulating and averaging the fourth preset values, a first orthogonal variable spreading factor code with a spreading factor k and generating an orthogonal variable spreading factor code of the secondary pilot;
the second correlation unit 402 is further configured to correlate the 2 nd to 256 th orthogonal variable spreading factors of the orthogonal variable spreading factors with the spreading factor of 256 generated by the first orthogonal variable spreading factor code with the descrambled received signal, respectively;
the second correlation value accumulation unit 403 is further configured to perform correlation value accumulation with a length of 256 on the correlated 256/k-1 channels of signals respectively;
the third accumulation and averaging unit 404 is further configured to perform accumulation and averaging with a length of a fifth preset value on the 256/k-1 paths of signals after the correlation values are accumulated;
the third obtaining unit 405 is further configured to obtain energy of 256/k-1 paths of signals after the cumulative averaging of the fifth preset value, and perform the cumulative averaging with a length of a sixth preset value on the obtained energy signals;
the fourth obtaining unit 407 is further configured to obtain an orthogonal variable spreading factor code of the secondary pilot according to the 256/k-1 paths of energy signals after the cumulative averaging of the sixth preset value.
The ue according to the fourth embodiment of the present invention may use the method for obtaining an orthogonal variable spreading factor code according to the second embodiment, and refer to the above method embodiment for details of the implementation process, which is not described repeatedly herein.
Further, in the user equipment according to the fourth embodiment of the present invention, the obtaining unit 407 obtains the energy signal accumulated and averaged according to the k channels of the fourth preset value to obtain the first orthogonal variable spreading factor code with spreading factor k and generating the orthogonal variable spreading factor code of the secondary pilot, including:
the fourth obtaining unit 407 is specifically configured to, when a maximum value M1 of current values of the k paths of energy signals accumulated and averaged by the fourth preset values is greater than a second preset multiple of the second largest value M2, obtain a first orthogonal variable spreading factor code with a spreading factor k corresponding to the maximum value M1, or obtain a first orthogonal variable spreading factor code with a spreading factor k corresponding to the maximum value M1
The fourth obtaining unit 407 continuously obtains N maximum values of the energy signal after the k paths of fourth preset values are accumulated and averaged in preset N periods, and if the number of times that the same maximum value among the N maximum values continuously appears is greater than or equal to the second preset number of times and orthogonal variable spreading factor codes corresponding to the same maximum value are the same, obtains a first orthogonal variable spreading factor code whose spreading factor corresponding to the same maximum value is k, where N is a positive integer greater than 1.
It should be noted that, because the content of information interaction, execution process, and the like between the units in the user equipment is based on the same concept as the method embodiment of the present invention, specific content may refer to the description in the method embodiment of the present invention, and is not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware that is related to instructions of a computer program, and the program can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The foregoing detailed description of the method and the user equipment for obtaining an orthogonal variable spreading factor code according to the present invention is provided, and for those skilled in the art, there may be variations in the specific implementation and application scope according to the ideas of the embodiments of the present invention, and the content of the present specification should not be construed as limiting the present invention.