Data transmission method, related device, and system
11317404 · 2022-04-26
Assignee
Inventors
Cpc classification
H04L5/0053
ELECTRICITY
H04W72/0453
ELECTRICITY
H04L1/0042
ELECTRICITY
International classification
H04W4/00
ELECTRICITY
Abstract
Embodiments of the present invention describe a data transmission method, a related device, and a system. The method may include sending, by a terminal, uplink data to a network device. The uplink data is scrambled by using a scrambling sequence, and the scrambling sequence is generated based on information about a radio resource used by the terminal to send the uplink data. According to the embodiments of the present invention, it can be ensured that scrambling and descrambling on the uplink data are successfully implemented when the network device does not obtain an identifier of the terminal in a cell.
Claims
1. A data transmission method, comprising: generating, by a terminal, a scrambling sequence based on information about a radio resource used by the terminal to send uplink data to a network device; and sending, by the terminal, the uplink data to the network device, wherein the uplink data is scrambled using the scrambling sequence, wherein the radio resource comprises a pilot used to send the uplink data, or the radio resource comprises a frequency domain of a time-frequency resource and the pilot, and wherein when the radio resource comprises the pilot, an initial sequence generation value C.sub.init of the scrambling sequence meets a formula 1, a formula 2, or a formula 3, comprising:
c.sub.init=n.sub.RS.Math.2.sup.13+└n.sub.s/2┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 1:
c.sub.init=n.sub.RS.Math.2.sup.14+q.Math.2.sup.13+└(j.sub.0+j)N.sub.acc mod 10┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 2:
c.sub.init=(└n.sub.s/2┘+1).Math.(2N.sub.ID.sup.cell+1)2.sup.x+n.sub.RS Formula 3: wherein in the formula 1, the formula 2, and the formula 3, n.sub.RS is an identifier of the pilot, q is determined based on a quantity of code words in a subframe, n.sub.s is a quantity of timeslots in a frame, N.sub.ID.sup.cell is an identifier of a cell in which the terminal is located, j.sub.0=└i.sub.0/N.sub.acc┘, i.sub.0 is a subframe sequence number obtained through counting from a first PUSCH subframe to a subframe used for current data transmission, N.sub.acc is a preset value indicating a quantity of subframes, j represents a sequence number of a code block in N.sub.acc subframes that needs to be scrambled currently, and x is determined based on a quantity of bits occupied by a number n.sub.RS of the pilot.
2. The method according to claim 1, wherein the radio resource comprises at least one of a time-frequency resource used to send the uplink data, the frequency domain of the time-frequency resource, the pilot used to send the uplink data, a spread spectrum sequence used to send the uplink data, and an interleaving pattern used to send the uplink data.
3. The method according to claim 2, wherein the radio resource further comprises: the time-frequency resource; or the frequency domain of the time-frequency resource and the spread spectrum sequence; or the frequency domain of the time-frequency resource and the interleaving pattern.
4. The method according to claim 2, wherein the time-frequency resource used to send the uplink data does not need to be instantly scheduled by the network device.
5. The method according to claim 2, wherein the time-frequency resource used to send the uplink data is selected by the terminal from a plurality of to-be-selected time-frequency resources according to a preset rule, or is preconfigured by the network device for the terminal by using a signaling message.
6. The method according to claim 1, wherein when the radio resource comprises the frequency domain of the time-frequency resource and the pilot, an initial sequence generation value C.sub.init of the scrambling sequence meets a formula 4, a formula 5, or a formula 6, comprising:
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.RS.Math.2.sup.13+└n.sub.s/2┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 4:
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.RS.Math.2.sup.14+q.Math.2.sup.13+└(j+j)N.sub.acc mod 10┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 5:
c.sub.init=(└n.sub.s/2┘+1).Math.(2N.sub.ID.sup.cell+1)2.sup.y+n.sub.Feq2.sup.x+n.sub.RS Formula 6: wherein in the formula 4, the formula 5, and the formula 6, n.sub.Feq is an identifier of the frequency domain, n.sub.RS is a number of the pilot, q is determined based on a quantity of code words in a subframe, n.sub.S is a quantity of timeslots in a frame, N.sub.ID.sup.cell is an identifier of a cell in which the terminal is located, j.sub.0=└i.sub.0/N.sub.acc┘, i.sub.0 is a subframe sequence number obtained through counting from a first PUSCH subframe to a subframe used for current data transmission, N.sub.acc is a preset value indicating a quantity of subframes, j represents a sequence number of a code block in N.sub.acc subframes that needs to be scrambled currently, x is determined based on a quantity of bits occupied by the number n.sub.RS of the pilot, and y is determined based on x and a quantity of bits occupied by the identifier n.sub.Feq of the frequency domain.
7. A terminal, comprising: a memory; a transceiver; and at least one processor, communicatively coupled with the memory and the processor, configured to: generate a scrambling sequence based on information about a radio resource used by the terminal to send uplink data to a network device, and send, using the transceiver, the uplink data to the network device, wherein the uplink data is scrambled using the scrambling sequence, wherein the radio resource comprises a pilot used to send the uplink data, or the radio resource comprises a frequency domain of a time-frequency resource and the pilot, and wherein when the radio resource comprises the pilot, an initial sequence generation value C.sub.init of the scrambling sequence generated by the at least one processor meets a formula 1, a formula 2, or a formula 3, comprising:
c.sub.init=n.sub.RS.Math.2.sup.13+└n.sub.s/2┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 1:
c.sub.init=n.sub.RS.Math.2.sup.14+q.Math.2.sup.13+└(j.sub.0+j)N.sub.acc mod 10┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 2:
c.sub.init=(└n.sub.s/2┘+1).Math.(2N.sub.ID.sup.cell+1)2.sup.x+n.sub.RS Formula 3: wherein in the formula 1, the formula 2, and the formula 3, n.sub.RS is an identifier of the pilot, q is determined based on a quantity of code words in a subframe, n.sub.s is a quantity of timeslots in a frame, N.sub.ID.sup.cell is an identifier of a cell in which the terminal is located, j.sub.0=└i.sub.0/N.sub.acc┘, i.sub.0 is a subframe sequence number obtained through counting from a first PUSCH subframe to a subframe used for current data transmission, N.sub.acc is a preset value indicating a quantity of subframes, j represents a sequence number of a code block in N.sub.acc subframes that needs to be scrambled currently, and x is determined based on a quantity of bits occupied by a number n.sub.RS of the pilot.
8. The terminal according to claim 7, wherein the radio resource comprises at least one of a time-frequency resource used to send the uplink data, the frequency domain of the time-frequency resource, the pilot used to send the uplink data, a spread spectrum sequence used to send the uplink data, and an interleaving pattern used to send the uplink data.
9. The terminal according to claim 8, wherein the radio resource further comprises: the time-frequency resource; or the frequency domain of the time-frequency resource and the spread spectrum sequence; or the frequency domain of the time-frequency resource and the interleaving pattern.
10. The terminal according to claim 8, wherein the time-frequency resource used to send the uplink data does not need to be instantly scheduled by the network device.
11. The terminal according to claim 8, wherein the time-frequency resource used to send the uplink data is selected by the at least one processor from a plurality of to-be-selected time-frequency resources according to a preset rule, or is preconfigured by the network device for the terminal by using a signaling message received by the transceiver.
12. The terminal according to claim 7, wherein when the radio resource comprises the frequency domain of the time-frequency resource and the pilot, an initial sequence generation value C.sub.init of the scrambling sequence generated by the at least one processor meets a formula 4, a formula 5, or a formula 6, comprising:
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.RS.Math.2.sup.13+└n.sub.s/2┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 4:
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.RS.Math.2.sup.14+q.Math.2.sup.13+└(j+j)N.sub.acc mod 10┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 5:
c.sub.init=(└n.sub.s/2┘+1).Math.(2N.sub.ID.sup.cell+1)2.sup.y+n.sub.Feq2.sup.x+n.sub.RS Formula 6: wherein in the formula 4, the formula 5, and the formula 6, n.sub.Feq is an identifier of the frequency domain, n.sub.RS is a number of the pilot, q is determined based on a quantity of code words in a subframe, n.sub.s is a quantity of timeslots in a frame, N.sub.ID.sup.cell is an identifier of a cell in which the terminal is located, j.sub.0=└i.sub.0/N.sub.acc┘, i.sub.0 is a subframe sequence number obtained through counting from a first PUSCH subframe to a subframe used for current data transmission, N.sub.acc is a preset value indicating a quantity of subframes, j represents a sequence number of a code block in N.sub.acc subframes that needs to be scrambled currently, x is determined based on a quantity of bits occupied by the number n.sub.RS of the pilot, and y is determined based on x and a quantity of bits occupied by the identifier n.sub.Feq of the frequency domain.
13. A non-transitory computer readable storage medium, wherein the computer readable storage medium stores an instruction, which when the instruction is executed by at least one processor a terminal, the at least one processor causes the terminal to perform operations, generating a scrambling sequence based on information about a radio resource used by the terminal to send uplink data to a network device; and sending the uplink data to the network device, wherein the uplink data is scrambled using the scrambling sequence, wherein the radio resource comprises a pilot used to send the uplink data, or the radio resource comprises a frequency domain of a time-frequency resource and the pilot, and wherein when the radio resource comprises the pilot, an initial sequence generation value C.sub.init of the scrambling sequence meets a formula 1, a formula 2, or a formula 3, comprising:
c.sub.init=n.sub.RS.Math.2.sup.13+└n.sub.s/2┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 1:
c.sub.init=n.sub.RS.Math.2.sup.14+q.Math.2.sup.13+└(j.sub.0+j)N.sub.acc mod 10┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 2:
c.sub.init=(└n.sub.s/2┘+1).Math.(2N.sub.ID.sup.cell+1)2.sup.x+n.sub.RS Formula 3: wherein in the formula 1, the formula 2, and the formula 3, n.sub.RS is an identifier of the pilot, q is determined based on a quantity of code words in a subframe, n.sub.s is a quantity of timeslots in a frame, N.sub.ID.sup.cell is an identifier of a cell in which the terminal is located, j.sub.0=└i.sub.0/N.sub.acc┘, i.sub.0 is a subframe sequence number obtained through counting from a first PUSCH subframe to a subframe used for current data transmission, N.sub.acc is a preset value indicating a quantity of subframes, j represents a sequence number of a code block in N.sub.acc subframes that needs to be scrambled currently, and x is determined based on a quantity of bits occupied by a number n.sub.RS of the pilot.
14. The non-transitory computer readable storage medium according to claim 13, wherein the radio resource comprises at least one of a time-frequency resource used to send the uplink data, the frequency domain of the time-frequency resource, the pilot used to send the uplink data, a spread spectrum sequence used to send the uplink data, and an interleaving pattern used to send the uplink data.
15. The non-transitory computer readable storage medium according to claim 14, wherein the radio resource further comprises: the time-frequency resource; or the frequency domain of the time-frequency resource and the spread spectrum sequence; or the frequency domain of the time-frequency resource and the interleaving pattern.
16. The non-transitory computer readable storage medium according to claim 14, wherein the time-frequency resource used to send the uplink data does not need to be instantly scheduled by the network device.
17. The non-transitory computer readable storage medium according to claim 13, wherein when the radio resource comprises the frequency domain of the time-frequency resource and the pilot, an initial sequence generation value C.sub.init of the scrambling sequence meets a formula 4, a formula 5, or a formula 6, comprising:
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.RS.Math.2.sup.13+└n.sub.s/2┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 4:
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.RS.Math.2.sup.14+q.Math.2.sup.13+└(j+j)N.sub.acc mod 10┘.Math.2.sup.9+N.sub.ID.sup.cell Formula 5:
c.sub.init=(└n.sub.s/2┘+1).Math.(2N.sub.ID.sup.cell+1)2.sup.y+n.sub.Feq2.sup.x+n.sub.RS Formula 6: wherein in the formula 4, the formula 5, and the formula 6, n.sub.Feq is an identifier of the frequency domain, n.sub.RS is a number of the pilot, q is determined based on a quantity of code words in a subframe, n.sub.s is a quantity of timeslots in a frame, N.sub.ID.sup.cell is an identifier of a cell in which the terminal is located, j.sub.0=└i.sub.0/N.sub.acc┘, i.sub.0 is a subframe sequence number obtained through counting from a first PUSCH subframe to a subframe used for current data transmission, N.sub.acc is a preset value indicating a quantity of subframes, j represents a sequence number of a code block in N.sub.acc subframes that needs to be scrambled currently, x is determined based on a quantity of bits occupied by the number n.sub.RS of the pilot, and y is determined based on x and a quantity of bits occupied by the identifier n.sub.Feq of the frequency domain.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) To describe the technical solutions in the embodiments of the present invention or in the background more clearly, the following briefly describes the accompanying drawings required for describing the embodiments of the present invention or the background.
(2)
(3)
(4)
(5)
(6)
(7)
DESCRIPTION OF EMBODIMENTS
(8) The embodiments of the present invention are described in the following with reference to the accompanying drawings in the embodiments of the present invention.
(9)
(10)
(11) Step S201: A terminal sends uplink data to a network device.
(12) Specifically, the uplink data is scrambled by using a scrambling sequence, and the scrambling sequence is generated based on information about a radio resource used by the terminal to send the uplink data. Currently, a person skilled in the art is studying a transmission scheme based on a contention transmission unit (CTU). The network device defines one or more CTUs for each managed cell. Each CTU includes one or more multiple access resources (MAR), and one MAR includes a multiple access physical resource (MAPR) and a multiple access signature (MAS). Optionally, the target time-frequency resource may be the multiple access resource MAR described herein. Certainly, the target time-frequency resource may alternatively be a time-frequency resource in another form. In this embodiment of this application, before sending the uplink data, the terminal first determines a time-frequency resource used to send the uplink data. The time-frequency resource, determined by the terminal, used to send the uplink data, may be referred to as a target time-frequency resource for ease of subsequent description. Optionally, the target time-frequency resource needs to be instantly scheduled by the network device. Optionally, the target time-frequency resource does not need to be instantly scheduled by the network device.
(13) Optionally, when the target time-frequency resource does not need to be instantly scheduled by the network device, the terminal needs to determine the target time-frequency resource in another manner. Optionally, the terminal may randomly select a time-frequency resource from a plurality of preset time-frequency resources as the target time-frequency resource. Alternatively, the terminal may select a time-frequency resource from a plurality of preset time-frequency resources as the target time-frequency resource according to a preset rule. Specific content included in the preset rule is not limited herein (for example, the preset rule may define information such as an algorithm used during selection or a factor that needs to be considered). Alternatively, the target time-frequency resource may be preconfigured for the terminal to transmit the uplink data. For example, the network device or another device uses signaling to preconfigure the target time-frequency resource (not configured when there is uplink data to be transmitted) for the terminal.
(14) It may be understood that the target time-frequency resource is a radio resource used by the terminal to send the uplink data, time domain occupied by the target time-frequency resource is also a radio resource used by the terminal to send the uplink data, and frequency domain occupied by the target time-frequency resource is also a radio resource used by the terminal to send the uplink data. In this embodiment of this application, the terminal may further use a pilot to send the uplink data, and when the pilot is used, the used pilot is also a radio resource used by the terminal to send the uplink data. The terminal may further use a spread spectrum sequence to send the uplink data, and when the spread spectrum sequence is used, the used spread spectrum sequence is also a radio resource used by the terminal to send the uplink data. The terminal may further use an interleaving pattern to send the uplink data, and when the interleaving pattern is used, the used interleaving pattern is also a radio resource used by the terminal to send the uplink data.
(15) After determining the radio resource used by the terminal to send the uplink data, the terminal generates the scrambling sequence based on the radio resource. The terminal generates the scrambling sequence based on at least one of radio resources used by the terminal. For example, the terminal uses a target time-frequency resource, a pilot, a spread spectrum sequence, and an interleaving pattern to send the uplink data. In this case, the terminal generates the scrambling sequence based on at least one of a to-be-used target time-frequency resource, frequency domain of the target time-frequency resource, time domain of the target time-frequency resource, the pilot, the spread spectrum sequence, and the interleaving pattern. It may be understood that if the terminal does not need to use spectrum spreading to send the uplink data, the spectrum spreading is not used during calculation of the scrambling sequence. If the terminal does not need to use the interleaving pattern to send the uplink data, the interleaving pattern is not used during the calculation of the scrambling sequence, and so on. For ease of understanding, several possible schemes are exemplified in the following description.
(16) Scheme 1: The scrambling sequence is generated based on the target time-frequency resource, and when the scrambling sequence is calculated, information about the target time-frequency resource is used. In this embodiment of the present invention, the one time-frequency resource and one signature may constitute one multiple access resource, and multiple access resource that includes the target time-frequency resource used to send the uplink data and a signature used to send the uplink data may be referred to as a target multiple access resource. The target multiple access resource is only some of a plurality of predetermined multiple access resources, and each of the plurality of multiple access resources has respective identifier (or number). Identifiers of any two of the multiple access resources are different. Identifiers of the plurality of multiple access resources are divided in a plurality of manners, and only one of the optional division manners is used herein as an example. Details are as follows: It is assumed that there may be S signatures such as s.sub.1,s.sub.2,K s.sub.S.sub.
(17)
(18) N, n, m, and k each are a positive integer. After the terminal determines the identifier of the target multiple access resource, the identifier of the target multiple access resource may be considered as a factor for calculating a scrambling sequence. For example, an initial sequence generation value C.sub.init is first calculated based on the identifier of the target multiple access resource (it may be understood that a scrambling sequence is a Gold sequence generated by using two m sequences, and the initial sequence generation value C.sub.init is an initial value of the second m sequence in the two m sequences), and then the scrambling sequence used to scramble the uplink data is calculated based on the initial sequence generation value C.sub.init. A calculation formula for the initial sequence generation value C.sub.init may be:
c.sub.init=n.sub.MAR.Math.2.sup.13+└n.sub.s/2┘.Math.2.sup.9+N.sub.ID.sup.cell (Formula 1-1)
(19) Alternatively, for scrambling performed by a BL/CE user, a calculation formula for the C.sub.init of the scrambling sequence may be:
c.sub.init=n.sub.MAR.Math.2.sup.14+q.Math.2.sup.13+└(j.sub.0+j)N.sub.acc mod 10┘.Math.2.sup.9+N.sub.ID.sup.cell (Formula 1-2)
(20) Alternatively, for scrambling on a physical uplink control channel (Physical Uplink Control CHannel, PUCCH) Format 2/3/4/5, a calculation formula for the C.sub.init may be:
c.sub.init=(└n.sub.s/2┘+1).Math.(2N.sub.ID.sup.cell+1)2.sup.x+n.sub.MAR (Formula 1-3)
(21) In formulas 1-1, 1-2, and 1-3, n.sub.MAR is the identifier of the target multiple access resource used to transmit the uplink data, q is determined based on a quantity of code words in a subframe, n.sub.s is a quantity of timeslots in a frame, N.sub.ID.sup.cell is an identifier of a cell in which the terminal is located, j.sub.0=└i.sub.0/N.sub.acc┘, i.sub.0 is a subframe sequence number obtained through counting from a first PUSCH subframe to a subframe used for current data transmission, N.sub.acc is a preset value indicating a quantity of subframes, j indicates a sequence number of a code block in N.sub.acc subframes that needs to be scrambled currently, and x is determined based on a total quantity Σ.sub.n=1.sup.NS.sub.n of the multiple access resources. When there are N.sub.MAR=Σ.sub.n=1.sup.NS.sub.n multiple access resources in a time-frequency resource in total, x is a positive integer greater than or equal to ┌ log.sub.2 N.sub.MAR┐. A larger total quantity Σ.sub.n=1.sup.NS.sub.n of the multiple access resources indicates a larger quantity of bits occupied by the identifier n.sub.MAR of the target multiple access resource. Therefore, it may alternatively be considered that x is determined based on a quantity of bits occupied by the identifier n.sub.MAR of the target multiple access resource. Optionally, a setting rule of N.sub.acc is as follows: When the terminal is a bandwidth-reduced low-complexity or coverage enhanced (bandwidth reduced low complexity and coverage enhancement, BL/CE) user and is configured with a mode CE Mode A (coverage enhancement mode A), N.sub.acc=1. When the terminal is a BL/CE user and is configured with a mode CE Mode B (coverage enhancement mode B), if a frame structure type is 1 (namely, a type 1), N.sub.acc=4; and if the frame structure type is 2 (namely, a type 2), N.sub.acc=5.
(22) Scheme 2: The scrambling sequence is generated based on a pilot used by the terminal to send the uplink data, and when the scrambling sequence is calculated, an identifier of the pilot is used. There may be a plurality of pilots in a communications system, and each of the plurality of pilots has respective identifier. The pilot used when the terminal sends the uplink data is a part of the plurality of pilots. Identifiers of the plurality of pilots are divided in a plurality of manners, and only one of the optional division manners is used herein as an example. Details of embodiments are as follows: It is assumed that the plurality of pilots are p.sub.1, p.sub.2, K p.sub.P, and are P pilots in total. Identifiers of the pilots p.sub.1, p.sub.2, K p.sub.P, are 0,1,K,P−1 respectively. If the pilot used by the terminal to send the uplink data is a pilot p.sub.m, an identifier of the pilot p.sub.m is n.sub.RS=m−1, and both P and m are positive integers. After the terminal determines the identifier n.sub.RS of the pilot p.sub.m that needs to be used to send the uplink data, the identifier n.sub.RS of the pilot p.sub.m may be considered as a factor for calculating a scrambling sequence. For example, an initial sequence generation value C.sub.init is first calculated based on the identifier of the pilot (it may be understood that a scrambling sequence is a Gold sequence generated by using two m sequences, and the initial sequence generation value C.sub.init is an initial value of the second m sequence in the two m sequences), and then the scrambling sequence used to scramble the uplink data is calculated based on the initial sequence generation value C.sub.init. A calculation formula for the initial sequence generation value C.sub.init may be:
c.sub.init=n.sub.RS.Math.2.sup.13+└n.sub.s/2┘.Math.2.sup.9+N.sub.ID.sup.cell (Formula 2-1)
(23) Alternatively, for scrambling performed by a BL/CE user, a calculation formula for the C.sub.init may be:
c.sub.init=n.sub.RS.Math.2.sup.14+q.Math.2.sup.13+└(j.sub.0+j)N.sub.acc mod 10┘.Math.2.sup.9+N.sub.ID.sup.cell (Formula 2-2)
(24) Alternatively, for scrambling on a PUCCH Format 2/3/4/5, a calculation formula for the C.sub.init may be:
c.sub.init=(└n.sub.s/2┘+1).Math.(2N.sub.ID.sup.cell+1)2.sup.x+n.sub.RS (Formula 2-3)
(25) In the formula 2-1 (namely, formula 1), the formula 2-2 (namely, formula 2), and the formula 2-3 (namely, formula 3), n.sub.RS is the identifier of the pilot used by the terminal to send the uplink data, and x is determined based on a total quantity P of pilots. When there are P pilots in total, x is a positive integer greater than or equal to ┌ log.sub.2 P┐. A larger total quantity P of the pilots indicates a larger quantity of bits occupied by the identifier n.sub.RS of the pilot. Therefore, it may alternatively be considered that x is determined based on a quantity of bits occupied by the identifier n.sub.RS of the pilot. Another variable is described above, and details are not described herein again.
(26) Scheme 3: The scrambling sequence is generated based on a frequency domain of the target time-frequency resource and a pilot used by the terminal to send the uplink data, and when the scrambling sequence is generated, an identifier of the frequency domain of the target time-frequency resource and an identifier of the pilot used by the terminal to send the uplink data are used. There may be a plurality of frequency domains in a communications system, and each of the plurality of frequency domains has respective identifier. The frequency domain occupied by the target time-frequency resource is a part of the plurality of frequency domains. There may be a plurality of pilots in the communications system, and each of the plurality of pilots has respective identifier. The pilot used by the terminal to send the uplink data is a part of the plurality of pilots. Identifiers of the plurality of frequency domains and identifiers of the plurality of pilots are divided in a plurality of manners, and only one of the optional division manners is used herein as an example. Details of embodiments are as follows: It is assumed that the plurality of frequency domains are a frequency domain 1, a frequency domain 2, a frequency domain 3, . . . , a frequency domain f, . . . , a frequency domain F−1 and a frequency domain F, and are F frequency domains in total. Identifiers of the frequency domain 1, the frequency domain 2, the frequency domain 3, . . . , the frequency domain f, . . . , the frequency domain F−1 and the frequency domain F are 0,1,K,F−1 respectively. There are P.sub.f pilots on a frequency domain f (1≤f≤F) in total, such as p.sub.1, p.sub.2,K p.sub.P.sub.
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.RS.Math.2.sup.13+└n.sub.s/2┘.Math.2.sup.9+N.sub.ID.sup.cell (Formula 3-1)
(27) Alternatively, for scrambling performed by a BL/CE user, a calculation formula for the C.sub.init may be:
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.RS.Math.2.sup.14+q.Math.2.sup.13+└(j.sub.0+j)N.sub.acc mod 10┘.Math.2.sup.9+N.sub.ID.sup.cell (Formula 3-2)
(28) Alternatively, for scrambling on a PUCCH Format 2/3/4/5, a calculation formula for the C.sub.init may be:
c.sub.init=(└n.sub.s/2┘+1).Math.(2N.sub.ID.sup.cell+1)2.sup.y+n.sub.Feq2.sup.x+n.sub.RS (Formula 3-3)
(29) In formulas 3-1, 3-2, and 3-3, n.sub.Feq is the identifier of the frequency domain of the target time-frequency resource, n.sub.RS is the identifier of the pilot used by the terminal to send the uplink data, and x is determined based on a maximum quantity P.sub.max=max(P.sub.f) of pilots (a maximum quantity of pilots on one of the F frequency domains, which is larger than any maximum quantity of pilots on another frequency domain of the F frequency domains, is the maximum quantity P.sub.max of pilots). When there are a maximum of P.sub.max pilots on a single frequency domain, x is a positive integer greater than or equal to └ log.sub.2 P.sub.max┘. A larger maximum quantity P.sub.max=max(P.sub.f) of pilots indicates a larger quantity of bits occupied by the identifier n.sub.RS of the pilot. Therefore, it may alternatively be considered that x is determined based on a quantity of bits occupied by the identifier n.sub.RS of the pilot, and y is determined based on x and a total quantity F of frequency domains. When there are F frequency domains, y is a positive integer greater than or equal to └ log.sub.2 n.sub.Feq┘+x. A larger total quantity F of frequency domains indicates a larger quantity of bits occupied by the identifier n.sub.Feq of the frequency domain. Therefore, it may alternatively be considered that y is determined based on x and the quantity of bits occupied by the identifier n.sub.Feq of the frequency domain. Another variable is described above, and details are not described herein again.
(30) Scheme 4: The scrambling sequence is generated based on a frequency domain of the target time-frequency resource and a spread spectrum sequence used by the terminal to send the uplink data, and when the scrambling sequence is generated, an identifier of the frequency domain of the target time-frequency resource and an identifier of the spread spectrum sequence used by the terminal to send the uplink data are used. There may be a plurality of frequency domains in a communications system, and each of the plurality of frequency domains has respective identifier. The frequency domain occupied by the target time-frequency resource is a part of the plurality of frequency domains. There may be a plurality of spread spectrum sequences in the communications system, and each of the plurality of spread spectrum sequences has respective identifier. The spread spectrum sequence used by the terminal to send the uplink data is a part of the plurality of spread spectrum sequences. Identifiers of the plurality of frequency domains and identifiers of the plurality of spread spectrum sequences are divided in a plurality of manners, and only one of the optional division manners is used herein as an example. Details are as follows: It is assumed that the plurality of frequency domains are a frequency domain 1, a frequency domain 2, a frequency domain 3, . . . , a frequency domain f, . . . , a frequency domain F−1 and a frequency domain F, and are F frequency domains in total. Identifiers of the frequency domain 1, the frequency domain 2, the frequency domain 3, . . . , the frequency domain f, . . . , the frequency domain F−1 and the frequency domain F are f(1≤f≤F) respectively. There are L f spread spectrum sequences on a frequency domain f(1≤f≤F) in total, such as l.sub.1,l.sub.2,K l.sub.L.sub.
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.Seq.Math.2.sup.13+└n.sub.s/2┘.Math.2.sup.9+N.sub.ID.sup.cell (Formula 4-1)
(31) Alternatively, for scrambling performed by a BL/CE user, a calculation formula for the C.sub.init may be:
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.Seq.Math.2.sup.14+q.Math.2.sup.13+└(j.sub.0+j)N.sub.acc mod 10┘.Math.2.sup.9+N.sub.ID.sup.cell (Formula 4-2)
(32) Alternatively, for scrambling on a PUCCH Format 2/3/4/5, a calculation formula for the C.sub.init may be:
c.sub.init=(└n.sub.s/2┘+1).Math.(2N.sub.ID.sup.cell+1)2.sup.y+n.sub.Feq2.sup.x+n.sub.Seq (Formula 4-3)
(33) In formulas 4-1, 4-2, and 4-3, n.sub.Feq is the identifier of the frequency domain of the target time-frequency resource, n.sub.Seq is the identifier of the spread spectrum sequence used by the terminal to send the uplink data, and x is determined based on a maximum quantity L.sub.max=max(L.sub.f) of spread spectrum sequences (a maximum quantity of spread spectrum sequences on one of the F frequency domains, which is larger than any maximum quantity of spread spectrum sequences on another frequency domain of the F frequency domains, is the maximum quantity L.sub.max of spread spectrum sequences). When there are a maximum of L.sub.max spread spectrum sequences on a single frequency domain, x is a positive integer greater than or equal to ┌ log.sub.2 L.sub.max┘. A larger maximum quantity L.sub.max=max(L.sub.f) of spread spectrum sequences indicates a larger quantity of bits occupied by the identifier n.sub.Seq of the spread spectrum sequence. Therefore, it may alternatively be considered that x is determined based on a quantity of bits occupied by the identifier n.sub.Seq of the spread spectrum sequence, and y is determined based on x and a total quantity F of frequency domains. When there are F frequency domains, y is a positive integer greater than or equal to ┌ log.sub.2 F┐+x. A larger total quantity F of frequency domains indicates a larger quantity of bits occupied by the identifier n.sub.Feq of the frequency domain. Therefore, it may alternatively be considered that y is determined based on x and the quantity of bits occupied by the identifier n.sub.Feq of the frequency domain. Another variable is described above, and details are not described herein again.
(34) Scheme 5: The scrambling sequence is generated based on a frequency domain of the target time-frequency resource and an interleaving pattern used by the terminal to send the uplink data, and when the scrambling sequence is generated, an identifier of the frequency domain of the target time-frequency resource and an identifier of the interleaving pattern used by the terminal to send the uplink data are used. There may be a plurality of frequency domains in a communications system, and each of the plurality of frequency domains has respective identifier. The frequency domain occupied by the target time-frequency resource is a part of the plurality of frequency domains. There may be a plurality of interleaving patterns in the communications system, and each of the plurality of interleaving patterns has respective identifier. The interleaving pattern used by the terminal to send the uplink data is a part of the plurality of interleaving patterns. Identifiers of the plurality of frequency domains and identifiers of the plurality of interleaving patterns are divided in a plurality of manners, and only one of the optional division manners is used herein as an example. Details are as follows: It is assumed that the plurality of frequency domains are a frequency domain 1, a frequency domain 2, a frequency domain 3, . . . , a frequency domain f, . . . , a frequency domain F−1 and a frequency domain F, and are F frequency domains in total. Identifiers of the frequency domain 1, the frequency domain 2, the frequency domain 3, . . . , the frequency domain f, . . . , the frequency domain F−1 and the frequency domain F are 0,1,K,F−1 respectively. There are L f interleaving patterns on a frequency domain f(1≤f≤F) in total, such as l.sub.1,l.sub.2,K l.sub.L.sub.
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.Seq.Math.2.sup.13+└n.sub.s/2┘.Math.2.sup.9+N.sub.ID.sup.cell (Formula 5-1)
(35) Alternatively, for scrambling performed by a BL/CE user, a calculation formula for the C.sub.init may be:
c.sub.init=n.sub.Feq.Math.2.sup.x+n.sub.Seq.Math.2.sup.14+q.Math.2.sup.13+└(j.sub.0+j)N.sub.acc mod 10┘.Math.2.sup.9+N.sub.ID.sup.cell (Formula 5-2)
(36) Alternatively, for scrambling on a PUCCH Format 2/3/4/5, a calculation formula for the C.sub.init may be:
c.sub.init=(└n.sub.s/2┘+1).Math.(2N.sub.ID.sup.cell+1)2.sup.y+n.sub.Feq2.sup.x+n.sub.Seq (Formula 5-3)
(37) In formulas 5-1, 5-2, and 5-3, n.sub.Feq is the identifier of the frequency domain of the target time-frequency resource, n.sub.Seq is the identifier of the interleaving pattern used to send the uplink data, and x is determined based on a maximum quantity Q.sub.max=max(Q.sub.f) of interleaving patterns (a maximum quantity of interleaving patterns on one of the F frequency domains, which is larger than any maximum quantity of interleaving patterns on another frequency domain of the F frequency domains, is the maximum quantity Q.sub.max of interleaving patterns). When there is a maximum of Q.sub.max interleaving patterns in a single frequency domain, x is a positive integer greater than or equal to ┌ log.sub.2 Q.sub.max┐. A larger maximum quantity Q.sub.max=max(Q.sub.f) of interleaving patterns indicates a larger quantity of bits occupied by the identifier n.sub.Seq of the interleaving pattern. Therefore, it may alternatively be considered that x is determined based on a quantity of bits occupied by the identifier n.sub.Seq of the interleaving pattern, and y is determined based on x and a total quantity F of frequency domains. When there are F frequency domains, y is a positive integer greater than or equal to └ log.sub.2 F┐+x. A larger total quantity F of frequency domains indicates a larger quantity of bits occupied by the identifier n.sub.Feq of the frequency domain. Therefore, it may alternatively be considered that y is determined based on x and the quantity of bits occupied by the identifier n.sub.Feq of the frequency domain. Another variable is described above, and details are not described herein again.
(38) Step S202: The network device receives the uplink data sent by the terminal.
(39) Specifically, when receiving the uplink data, the network device may detect a time-frequency resource used to transmit the uplink data. Therefore, the network device may determine the target time-frequency resource. If the terminal uses a pilot when sending the uplink data, the network device also detects the pilot used by the terminal to send the uplink data. If the terminal uses a spread spectrum sequence when sending the uplink data, the network device also detects the spread spectrum sequence used by the terminal to send the uplink data. If the terminal uses an interleaving pattern when sending the uplink data, the network device also detects the interleaving pattern used by the terminal to send the uplink data. In other words, a radio resource used by the terminal to send the uplink data is detected by the network device.
(40) In this embodiment of the present invention, because the network device may detect the radio resource used by the terminal to send the uplink data, the network device may also generate, based on the radio resource, a descrambling sequence used to descramble the uplink data. It may be understood that a principle of generating the descrambling sequence is the same as a principle of generating the scrambling sequence, so that it can be ensured that the generated descrambling sequence can successfully descramble the uplink data. For example, the terminal uses the scheme 1 to generate a scrambling sequence, and the network device also uses a principle of the scheme 1 to generate a descrambling sequence; or the terminal uses the scheme 2 to generate a scrambling sequence, and the network device also uses a principle of the scheme 2 to generate a descrambling sequence; or the terminal uses the scheme 3 to generate a scrambling sequence by, and the network device also uses a principle of the scheme 3 to generate a descrambling sequence; or the terminal uses the scheme 4 to generate a scrambling sequence, and the network device also uses a principle of the scheme 4 to generate a descrambling sequence; or the terminal uses of the scheme 5 to generate a scrambling sequence, and the network device also uses a principle of the scheme 5 to generate a descrambling sequence. After generating the descrambling sequence, the network device descrambles the uplink data by using the descrambling sequence.
(41) In the method described in
(42) The methods in the embodiments of the present invention are described in detail above, and apparatuses in the embodiments of the present invention are provided in the following.
(43)
(44) It should be noted that for embodiments of implementation of units, refer to corresponding descriptions in the method embodiment shown in
(45) In the terminal 30 described in
(46)
(47) It should be noted that for embodiments of implementation of units, refer to corresponding descriptions in the method embodiment shown in
(48) In the network device 40 described in
(49)
(50) The memory 502 includes but is not limited to a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (e.g., a compact disc read-only memory (CD-ROM)). The memory 502 is configured to a related instruction and related data. The transceiver 503 is configured to receive and send data.
(51) The processor 501 may be one or more central processing units (CPU). When the processor 701 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
(52) The processor 501 in the terminal 50 is configured to read program code stored in the memory 502, to perform the following operation.
(53) The processor 501 controls the transceiver 503 to send uplink data to a network device. The uplink data is scrambled by using a scrambling sequence, and the scrambling sequence is generated based on information about a radio resource used by the terminal to send the uplink data.
(54) It should be noted that for embodiments of implementation of operations, refer to corresponding descriptions in the method embodiment shown in
(55) In the terminal 50 described in
(56)
(57) The memory 602 includes but is not limited to a RAM, a ROM, an EPROM, or a portable read-only memory. The memory 602 is configured to a related instruction and related data. The transceiver 603 is configured to receive and send data.
(58) The processor 601 may be one or more central processing units CPU. When the processor 701 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
(59) The processor 601 in the network device 60 is configured to read program code stored in the memory 602, to perform the following operation.
(60) The processor 601 controls the transceiver 603 to receive uplink data sent by a terminal. The uplink data is scrambled by using a scrambling sequence, and the scrambling sequence is generated based on information about a radio resource used by the network device to send the uplink data.
(61) It should be noted that for embodiments of implementation of operations, refer to corresponding descriptions in the method embodiment shown in
(62) In the device 60 described in
(63) An embodiment of the present invention further provides a chip system. The chip system includes at least one processor, a memory, and an interface circuit. The memory, a transceiver, and the at least one processor are interconnected by using a line. The at least one memory stores an instruction, and when the instruction is executed by the processor, a terminal including the chip system sends uplink data to a network device. The uplink data is scrambled by using a scrambling sequence, and the scrambling sequence is generated based on information about a radio resource used by the terminal to send the uplink data. For details about sending the uplink data by the terminal to the network device, refer to the descriptions in the method embodiment shown in
(64) An embodiment of the present invention further provides a chip system. The chip system includes at least one processor, a memory, and an interface circuit. The memory, the transceiver, and the at least one processor are interconnected by using a line. The at least one memory stores an instruction, and when the instruction is executed by the processor, a network device including the chip system receives uplink data sent by a terminal. The uplink data is scrambled by using a scrambling sequence, and the scrambling sequence is generated based on information about a radio resource used by the terminal to send the uplink data. For details about receiving, by the network device, the uplink data sent by the terminal, refer to the descriptions in the method embodiment shown in
(65) An embodiment of the present invention further provides a computer readable storage medium. The computer readable storage medium stores an instruction, and when the instruction is run on a terminal, the terminal sends uplink data to a network device. The uplink data is scrambled by using a scrambling sequence, and the scrambling sequence is generated based on information about a radio resource used by the terminal to send the uplink data. For details about sending the uplink data by the terminal to the network device, refer to the descriptions in the method embodiment shown in
(66) An embodiment of the present invention further provides a computer readable storage medium. The computer readable storage medium stores an instruction, and when the instruction is run on a network device, the network device receives uplink data sent by a terminal. The uplink data is scrambled by using a scrambling sequence, and the scrambling sequence is generated based on information about a radio resource used by the terminal to send the uplink data. For details about receiving, by the network device, the uplink data sent by the terminal, refer to the descriptions in the method embodiment shown in
(67) An embodiment of the present invention further provides a computer program product, and when the computer program product is run on a terminal, the terminal sends uplink data to a network device. The uplink data is scrambled by using a scrambling sequence, and the scrambling sequence is generated based on information about a radio resource used by the terminal to send the uplink data. For details about sending the uplink data by the terminal to the network device, refer to the descriptions in the method embodiment shown in
(68) An embodiment of the present invention further provides a computer program product, and when the computer program product is run on a network device, the network device receives uplink data sent by a terminal. The uplink data is scrambled by using a scrambling sequence, and the scrambling sequence is generated based on information about a radio resource used by the terminal to send the uplink data. For details about receiving, by the network device, the uplink data sent by the terminal, refer to the descriptions in the method embodiment shown in
(69) In conclusion, in the embodiments of the present invention, the scrambling sequence used by the terminal to scramble the uplink data is generated by the terminal based on the radio resource used to send the uplink data, and the network device may also detect the radio resource when receiving the uplink data. Therefore, the network device may also generate, based on the radio resource, a descrambling sequence used to descramble the uplink data. According to this method, it can be ensured that when the network device does not obtain an identifier of the terminal in a cell, the terminal can still scramble the uplink data, and the scrambled uplink data can still be successfully descrambled by the network device.
(70) A person of ordinary skill in the art may understand that all or some of the processes of the methods in the embodiments may be implemented by instructing relevant hardware by a computer program. The program may be stored in a computer readable storage medium. When the program is executed, the processes of the method embodiments are performed. The foregoing storage medium includes any medium that can store program code, such as a ROM or a random access memory RAM, a magnetic disk or an optical disc.