Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 2, a schematic diagram of PRS for normal subframes under different antenna configurations and CP (Cyclic Prefix) lengths, where black small boxes represent PRS, and R0 and checkered boxes represent CRS under different antennas. An OFDMA access method is adopted in the LTE system, that is, information of users in a cell is carried on different carriers that are orthogonal to each other, a radio frame length is 10ms in time, and includes 10 subframes, each subframe is 1ms, each subframe includes 2 slots, when a CP of a subframe is a normal CP, each slot includes 7 OFDM symbols, when a CP of a subframe is an extended CP, each slot includes 6 OFDM symbols, and is formed by multiple subcarriers in frequency, one subcarrier under one OFDM symbol is called an RE (Resource Element), 12 subcarriers and one slot constitute one RB (Resource Block ), and each subframe includes two RBs, that is, an RB Block pair. As can be seen from fig. 2, although the distances between the PRSs within each OFDM symbol are the same, the occupied positions in the frequency domain are different, the PRS has 6 different frequency position offsets at the corresponding RE positions in an RB block pair, and the number of cells to be supported in the LTE system is 504, so that at the same time, the frequency offset positions of two cells may be the same, which may cause a collision event, and therefore, after the PRS is randomized by scrambling the PRS, the collision probability when the PRS of different cells reaches the UE is reduced, thereby enabling accurate positioning.
In order to greatly reduce mutual interference among PRSs of different cells and improve accuracy of positioning a UE, an embodiment of the present invention provides a scrambling method for a positioning reference signal, where for convenience of description, a scrambling sequence in an embodiment of the present invention is performed by taking a Gold sequence as an example, and referring to fig. 3, the method includes:
101: obtaining time slot serial number nsOFDM symbol sequence number l, cell identification NID cellCP Length identifier NCPAnd acquiring frequency offset information v of PRSshift;
Wherein, as previously mentioned, ns、l、NID cellAnd NCPIs information that is well-defined by the protocol in the LTE system, and is not described herein again.
Since each cell uses different frequency offset information in each positioning subframe, when the base station is required to issue the current positioning subframe to the UE, the base station acquires the frequency offset information used by the positioning subframe, that is, the base station is required to acquire the frequency offset information of the currently issued PRS. Wherein the frequency offset information vshiftThe obtaining method can be as follows:
wherein,
or the following steps:
or the following steps:
<math>
<mrow>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>-</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mrow>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>9</mn>
</mrow>
</munderover>
<mi>c</mi>
<mrow>
<mo>(</mo>
<mi>k</mi>
<mo>)</mo>
</mrow>
<msup>
<mn>2</mn>
<mrow>
<mi>k</mi>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<msub>
<mi>N</mi>
<mi>sb</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<msub>
<mi>N</mi>
<mi>sb</mi>
</msub>
<mo>;</mo>
</mrow>
</math>
wherein N issb=6,
vshift(-1)=0,
Or the following steps:
wherein,
or the following steps:
<math>
<mrow>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>-</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mrow>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>9</mn>
</mrow>
</munderover>
<mi>c</mi>
<mrow>
<mo>(</mo>
<mi>k</mi>
<mo>)</mo>
</mrow>
<msup>
<mn>2</mn>
<mrow>
<mi>k</mi>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>5</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>6</mn>
<mo>,</mo>
</mrow>
</math>
wherein,
or the following steps:
<math>
<mrow>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mo>(</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>-</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mrow>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>9</mn>
</mrow>
</munderover>
<mi>c</mi>
<mrow>
<mo>(</mo>
<mi>k</mi>
<mo>)</mo>
</mrow>
<msup>
<mn>2</mn>
<mrow>
<mi>k</mi>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>5</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>6</mn>
<mo>+</mo>
<msubsup>
<mi>N</mi>
<mi>Cell</mi>
<mi>ID</mi>
</msubsup>
<mo>)</mo>
<mi>mod</mi>
<mn>6</mn>
<mo>,</mo>
</mrow>
</math>
wherein v isshift(-1)=0
Or the following steps:
wherein, <math>
<mrow>
<mi>w</mi>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mrow>
<mo>(</mo>
<mi>w</mi>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>-</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mrow>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>9</mn>
</mrow>
</munderover>
<mi>c</mi>
<mrow>
<mo>(</mo>
<mi>k</mi>
<mo>)</mo>
</mrow>
<msup>
<mn>2</mn>
<mrow>
<mi>k</mi>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>5</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>6</mn>
<mo>,</mo>
</mrow>
</math>
w(-1)=0
in acquiring frequency offset information vshiftIn various expressions of (1), c (-) is a Gold sequence and the initialization value of c (-) is NCell IDT, j and k represent variables of the number of calculations, mod represents a remainder, i represents a subframe number, and 6 represents 6 frequency position shift patterns.
As can be known by those skilled in the art, the frequency offset information may be obtained in the above several manners, or may be obtained in other manners, which is not limited in this embodiment of the present invention.
As mentioned above, since there are only 6 frequency offset patterns of PRS in the LTE system, and the number of base stations supported by the LTE system is 504, the frequency offset positions of PRS of two base stations received at the same time may be the same for the UE, which easily causes the PRS to interfere with each other, and causes a collision event to the PRS received by the UE, so that accurate positioning of the UE cannot be achieved. In order to effectively avoid the above problems, scrambling processing needs to be performed on the PRS, according to the method provided by the embodiment of the present invention, a Gold sequence is obtained based on the contents obtained in the above steps 101 and 102, and the PRS is scrambled according to the Gold sequence, so that the degree of randomization for the sent PRS is increased, and the occurrence of collision events on the PRS is further reduced. See below for details:
102: according to the acquired time slot serial number nsOFDM symbol sequence number l, cell identification NID cellCP Length identifier NCPAnd the frequency offset information of the PRS, generating a scrambling sequence;
103: and scrambling the PRS according to the generated scrambling sequence.
In the embodiment of the invention, according to the acquired ns、l、NID cell、NCPAnd vshiftGenerating a scrambling sequence, comprising:
acquiring an initialization value of a first m sequence;
according to the obtained ns、l、NID cell、NCPAnd vshiftObtaining the initialization value c of the second m sequenceinit;
And generating a scrambling sequence according to the initialization value of the first m sequence and the initialization value of the second m sequence.
As shown in fig. 1, the initialization value of the first m-sequence generating a Gold sequence is fixed, so the initialization value of the second m-sequence generating a Gold sequence directly affects the generated Gold sequence.
Thus, from n obtaineds、l、NID cell、NCPAnd vshiftObtaining the initialization value c of the second m sequenceinitThe specific implementation mode can be as follows:
1)、 <math>
<mrow>
<msub>
<mi>c</mi>
<mi>init</mi>
</msub>
<mo>=</mo>
<msup>
<mn>2</mn>
<mn>10</mn>
</msup>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>7</mn>
<mo>·</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>n</mi>
<mi>s</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mi>l</mi>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>·</mo>
<mn>2</mn>
<mo>·</mo>
<msubsup>
<mi>N</mi>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mn>2</mn>
<mo>·</mo>
<msubsup>
<mi>N</mi>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<msub>
<mi>N</mi>
<mi>CP</mi>
</msub>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>2</mn>
<mo>)</mo>
</mrow>
</mrow>
</math>
in the formula (2), cinitTo generate an initialization value for the second m-sequence of Gold sequences, nsIs time slot number, l is OFDM symbol number, NID cellIs cell identity, NCPIs identified for CP Length, vshiftIs the frequency offset information.
Or,
2)、 <math>
<mrow>
<msub>
<mi>c</mi>
<mi>init</mi>
</msub>
<mo>=</mo>
<msup>
<mn>2</mn>
<mn>10</mn>
</msup>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>7</mn>
<mo>·</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>n</mi>
<mi>s</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mi>l</mi>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>·</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>2</mn>
<msubsup>
<mrow>
<mo>·</mo>
<mi>N</mi>
</mrow>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mn>2</mn>
<mo>·</mo>
<msubsup>
<mi>N</mi>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<msub>
<mi>N</mi>
<mi>CP</mi>
</msub>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>3</mn>
<mo>)</mo>
</mrow>
</mrow>
</math>
in the formula (3), cinitTo generate an initialization value for the second m-sequence of Gold sequences, nsIs time slot number, l is OFDM symbol number, NID cellIs cell identity, NCPIs identified for CP Length, vshiftIs the frequency offset information.
It should be noted that, the embodiment of the present invention only lists two formulas (2) and (3) for obtaining the initialization value of the second m-sequence, but is not limited to these two formulas (2) and (3).
In summary, the frequency offset information is used as an element of a scrambling sequence (Gold sequence in this embodiment) for scrambling the PRS, so as to increase the degree of randomization for the transmitted PRS, and further reduce the occurrence of collision events in the PRS.
CRS scrambling formula of prior art <math>
<mrow>
<msub>
<mi>c</mi>
<mi>init</mi>
</msub>
<mo>=</mo>
<msup>
<mn>2</mn>
<mn>10</mn>
</msup>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>7</mn>
<mo>·</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>n</mi>
<mi>s</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mi>l</mi>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>2</mn>
<mo>·</mo>
<msubsup>
<mi>N</mi>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mn>2</mn>
<mo>·</mo>
<msubsup>
<mi>N</mi>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<msub>
<mi>N</mi>
<mi>CP</mi>
</msub>
</mrow>
</math> In, due to ns19 or less, l is 6 or less, NID cellLess than or equal to 503, NCP1 or less, c can be obtainedinit≤228-1, i.e. the initialization value of the second m-sequence generating Gold sequence ranges from 0 to (2)28-1), while in equations (2) and (3) provided by embodiments of the present invention with the frequency offset information of the PRS as the scrambling sequence element to scramble the PRS, since n iss19 or less, l is 6 or less, NID cellLess than or equal to 503, NCP1, v or lessshiftC is 5 or less, c can be obtainedinit≤230-1, i.e. the initialization value of the second m-sequence generating Gold sequence ranges from 0 to (2)30-1), it is obvious that the range of initialization values of the second m-sequence for generating the Gold sequence is greatly increased compared with the prior art, and due to the close relationship between the Gold sequence and the initialization value of the second m-sequence, the range of the generated Gold sequence is greatly increased after the range of initialization values of the second m-sequence is increased, and after the PRS is scrambled by using the Gold sequence, the randomness of the PRS is increased, the collision probability of the PRS received by the UE at the same time is reduced, and thus the accuracy of positioning the UE is increased. And c obtained from the prior artinit≤228As can be seen in-1, only 28 registers are used among 31 registers provided by the Gold sequence, so that the prior art scrambling scheme does not fully utilize the 31-bit registers of the Gold sequence, whereas c calculated from the scrambling apparatus provided by the embodiment of the present inventioninit≤230As seen from the figure-1, the scrambling apparatus provided by the embodiment of the present invention uses 30 registers, and compared with the prior art, the registers of the Gold sequence are fully utilized, thereby reducing the resource waste.
In this embodiment, the scheme provided by the prior art and the scheme provided by the embodiment of the present invention are compared through simulation, where the simulation condition is that the system bandwidth is 10M, the PRS uses a frequency offset mode when a normal subframe is transmitted on a normal CP and two antennas, a sliding window is 4 OFDM symbols (the sliding window is several consecutive OFDM symbols for transmitting the PRS), a target base station is cell0, an impact base station is cell1 to cell503, the simulation extends for 20 time slots, and the simulation result is shown in table 1:
TABLE 1
|
|
Impact event |
Probability of collision |
| Prior Art |
20 |
5.16e-4 |
| Examples of the invention |
13 |
3.36e-4 |
It can be seen from table 1 that, after the scrambling scheme in the prior art is adopted, the collision event occurring in the PRS received by the UE is 20, and the collision probability is 5.16e-4, whereas with the scrambling apparatus provided in the embodiment of the present invention, the initialization value of the second m-sequence is obtained first, then the Gold sequence is generated, and then the PRS is scrambled by using the Gold sequence, so that the collision event occurring in the PRS received by the UE is 13, and the collision probability is 3.36 e-4.
The embodiment of the invention uses the frequency offset information as the element of the scrambling sequence, so that the initialization value of the second m sequence is greatly increased, the range of the generated Gold sequence is greatly increased, and after the Gold sequence is used for scrambling the PRS, the randomness of the PRS is greatly increased, thereby greatly reducing the collision probability, reducing the collision event, weakening the mutual interference among PRSs received by the UE at the same moment, and improving the positioning precision of the UE; further, since the frequency offset information is known, the complexity of generating the scrambling sequence is not increased; moreover, because the frequency offset information is added, the initialization value range of the second m sequence is enlarged, so that compared with the prior art, the scrambling scheme provided by the embodiment of the invention fully uses the register of the Gold sequence, and the resource waste is reduced.
Example 2
An embodiment of the present invention provides an apparatus for scrambling a positioning reference signal, where a scrambling sequence in the embodiment of the present invention is performed by taking a Gold sequence as an example, and referring to fig. 4, the apparatus includes: an information acquisition module 201, a scrambling sequence generation module 202 and a scrambling module 203;
an information obtaining module 201, configured to obtain a time slot number nsOFDM symbol sequence number l, cell identification NID cellCP Length identifier NCPAnd also for acquiring frequency offset information v of PRSshift;
Wherein, as previously mentioned, ns、l、NID cellAnd NCPIs information that is well-defined by the protocol in the LTE system, and is not described herein again. Because the frequency offset information adopted by each positioning subframe by each cell is different, when the base station is required to issue the current positioning subframe to the UE, the base station is required to acquire the frequency offset information adopted by the positioning subframe, that is, the frequency offset information of the currently issued PRS needs to be acquired. Wherein the frequency offset information vshiftIs obtained byThe taking mode can be as follows:
wherein,
or the following steps:
or the following steps:
<math>
<mrow>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>-</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mrow>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>9</mn>
</mrow>
</munderover>
<mi>c</mi>
<mrow>
<mo>(</mo>
<mi>k</mi>
<mo>)</mo>
</mrow>
<msup>
<mn>2</mn>
<mrow>
<mi>k</mi>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<msub>
<mi>N</mi>
<mi>sb</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<msub>
<mi>N</mi>
<mi>sb</mi>
</msub>
<mo>;</mo>
</mrow>
</math>
wherein N issb=6,
vshift(-1)=0,
Or the following steps:
or the following steps:
<math>
<mrow>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>-</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mrow>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>9</mn>
</mrow>
</munderover>
<mi>c</mi>
<mrow>
<mo>(</mo>
<mi>k</mi>
<mo>)</mo>
</mrow>
<msup>
<mn>2</mn>
<mrow>
<mi>k</mi>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>5</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>6</mn>
</mrow>
</math>
or the following steps:
<math>
<mrow>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mo>(</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>-</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mrow>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>9</mn>
</mrow>
</munderover>
<mi>c</mi>
<mrow>
<mo>(</mo>
<mi>k</mi>
<mo>)</mo>
</mrow>
<msup>
<mn>2</mn>
<mrow>
<mi>k</mi>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>5</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>6</mn>
<mo>+</mo>
<msubsup>
<mi>N</mi>
<mi>Cell</mi>
<mi>ID</mi>
</msubsup>
<mo>)</mo>
<mi>mod</mi>
<mn>6</mn>
</mrow>
</math>
vshift(-1)=0
or the following steps:
wherein, <math>
<mrow>
<mi>w</mi>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mrow>
<mo>(</mo>
<mi>w</mi>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>-</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mrow>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>9</mn>
</mrow>
</munderover>
<mi>c</mi>
<mrow>
<mo>(</mo>
<mi>k</mi>
<mo>)</mo>
</mrow>
<msup>
<mn>2</mn>
<mrow>
<mi>k</mi>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mi>i</mi>
<mo>·</mo>
<mn>10</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>5</mn>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mi>mod</mi>
<mn>6</mn>
</mrow>
</math>
w(-1)=0
in acquiring frequency offset information vshiftIn various expressions of (1), c (-) is a Gold sequence and the initialization value of c (-) is NCell IDT, j and k represent variables of the number of calculations, mod represents a remainder, i represents a subframe number, and 6 represents 6 frequency position shift patterns.
As can be known by those skilled in the art, the frequency offset information may be obtained in the above several manners, or may be obtained in other manners, which is not limited in this embodiment of the present invention.
As mentioned above, since there are only 6 frequency offset patterns of PRS in the LTE system, and the number of base stations supported by the LTE system is 504, the frequency offset positions of PRS of two base stations received at the same time may be the same for the UE, which easily causes the PRS to interfere with each other, and causes a collision event to the PRS received by the UE, so that accurate positioning of the UE cannot be achieved. In order to effectively avoid the above problem, the PRS needs to be scrambled, the apparatus provided in the embodiment of the present invention obtains a Gold sequence based on the content acquired by the information acquisition module 201, and scrambles the PRS by using the Gold sequence, so as to increase the degree of randomization for the transmitted PRS, and further reduce the occurrence of collision events for the PRS. See scrambling sequence generation module 202 for details:
a scrambling sequence generation module 202, configured to generate n according to the n obtained by the information obtaining module 201s、l、NID cell、NCPAnd vshiftGenerating a scrambling sequence;
a scrambling module 203, configured to scramble the PRS according to the scrambling sequence generated by the scrambling sequence generating module 202.
The scrambling sequence generating module 202 specifically includes:
a first obtaining unit, configured to obtain an initialization value of a first m-sequence;
a second obtaining unit, configured to obtain n according to the information obtaining module 201s、l、NID cell、NCPAnd vshiftObtaining the initialization value c of the second m sequenceinit;
And the generating unit is used for generating the scrambling sequence according to the initialization value of the first m sequence acquired by the first acquiring unit and the initialization value of the second m sequence acquired by the second acquiring unit.
As shown in fig. 1, the initialization value of the first m-sequence generating a Gold sequence is fixed, so the initialization value of the second m-sequence generating a Gold sequence directly affects the generated Gold sequence.
Specifically, the second obtaining unit obtains an initialization value c of the second m-sequenceinitThe concrete formula of (1) is as follows:
1)、 <math>
<mrow>
<msub>
<mi>c</mi>
<mi>init</mi>
</msub>
<mo>=</mo>
<msup>
<mn>2</mn>
<mn>10</mn>
</msup>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>7</mn>
<mo>·</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>n</mi>
<mi>s</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mi>l</mi>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>·</mo>
<mn>2</mn>
<mo>·</mo>
<msubsup>
<mi>N</mi>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mn>2</mn>
<mo>·</mo>
<msubsup>
<mi>N</mi>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<msub>
<mi>N</mi>
<mi>CP</mi>
</msub>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>4</mn>
<mo>)</mo>
</mrow>
</mrow>
</math>
in the formula (4), cinitTo generate an initialization value for the second m-sequence of Gold sequences, nsIs time slot number, l is OFDM symbol number, NID cellIs cell identity, NCPIs identified for CP length.
Or,
2)、 <math>
<mrow>
<msub>
<mi>c</mi>
<mi>init</mi>
</msub>
<mo>=</mo>
<msup>
<mn>2</mn>
<mn>10</mn>
</msup>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>7</mn>
<mo>·</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>n</mi>
<mi>s</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mi>l</mi>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>·</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>v</mi>
<mi>shift</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>2</mn>
<mo>·</mo>
<msubsup>
<mi>N</mi>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mn>2</mn>
<mo>·</mo>
<msubsup>
<mi>N</mi>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<msub>
<mi>N</mi>
<mi>CP</mi>
</msub>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>5</mn>
<mo>)</mo>
</mrow>
</mrow>
</math>
in the formula (5), cinitTo generate an initialization value for the second m-sequence of Gold sequences, nsIs time slot number, l is OFDM symbol number, NID cellIs cell identity, NCPIs identified for CP length.
It should be noted that the embodiment of the present invention only illustrates two formulas (4) and (5) for calculating the initialization value of the second m-sequence for generating the Gold sequence, but is not limited to these two formulas (4) and (5).
In summary, the frequency offset information is used as an element of a scrambling sequence (Gold sequence in this embodiment) for scrambling the PRS, so as to increase the degree of randomization for the transmitted PRS, and further reduce the occurrence of collision events in the PRS.
CRS scrambling formula of prior art <math>
<mrow>
<msub>
<mi>c</mi>
<mi>init</mi>
</msub>
<mo>=</mo>
<msup>
<mn>2</mn>
<mn>10</mn>
</msup>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>7</mn>
<mo>·</mo>
<mrow>
<mo>(</mo>
<msub>
<mi>n</mi>
<mi>s</mi>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mi>l</mi>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mn>2</mn>
<mo>·</mo>
<msubsup>
<mi>N</mi>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mn>2</mn>
<mo>·</mo>
<msubsup>
<mi>N</mi>
<mi>ID</mi>
<mi>cell</mi>
</msubsup>
<mo>+</mo>
<msub>
<mi>N</mi>
<mi>CP</mi>
</msub>
</mrow>
</math> In, due to ns19 or less, l is 6 or less, NID cellLess than or equal to 503, NCP1 or less, c can be obtainedinit≤228-1, i.e. the initialization value of the second m-sequence generating Gold sequence ranges from 0 to (2)28-1), while the invention provides equations (6) and (7) with the frequency offset information of the PRS as scrambling sequence elements for scrambling the PRS, since ns19 or less, l is 6 or less, NID cellLess than or equal to 503, NCP1, v or lessshiftC is 5 or less, c can be obtainedinit≤230-1, i.e. the initialization value of the second m-sequence generating Gold sequence ranges from 0 to (2)30-1), it is obvious that the initialization value range of the second m-sequence for generating the Gold sequence is greatly increased compared with the prior art, and since the Gold sequence has a direct relationship with the second m-sequence for generating the Gold sequence, the range of the generated Gold sequence is greatly increased after the initialization value range of the second m-sequence is increased, and after the PRS is scrambled by using the Gold sequence, the randomness of the PRS is increased, the collision probability of the PRS received by the UE at the same time is reduced, and thus the accuracy of UE positioning is increased. And c obtained from the prior artinit≤228As can be seen in-1, only 28 registers are used among 31 registers provided by the Gold sequence, so that the prior art scrambling scheme does not fully utilize the 31-bit registers of the Gold sequence, whereas c calculated from the scrambling apparatus provided by the embodiment of the present inventioninit≤230As seen from the figure-1, the scrambling apparatus provided by the embodiment of the present invention uses 30 registers, and compared with the prior art, the registers of the Gold sequence are fully utilized, thereby reducing the resource waste.
The embodiment of the invention uses the frequency offset information as the element of the scrambling sequence, so that the initialization value of the second m sequence is greatly increased, the range of the generated Gold sequence is greatly increased, and after the Gold sequence is used for scrambling the PRS, the randomness of the PRS is greatly increased, thereby greatly reducing the collision probability, reducing the collision event, weakening the mutual interference among PRSs received by the UE at the same moment, and improving the positioning precision of the UE; further, since the frequency offset information is known, the complexity of generating the scrambling sequence is not increased; moreover, because the frequency offset information is added, the initialization value range of the second m sequence is enlarged, so that compared with the prior art, the scrambling device provided by the embodiment of the invention fully uses the register of the Gold sequence, and the resource waste is reduced.
The embodiments of the present invention may be implemented by software, and the corresponding software program may be stored in a readable storage medium, for example, a hard disk, a cache, or an optical disk of a computer.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.