SEQUENCE SENDING METHOD AND APPARATUS
20230292378 · 2023-09-14
Assignee
Inventors
Cpc classification
H04W28/00
ELECTRICITY
H04L5/0053
ELECTRICITY
H04W74/008
ELECTRICITY
International classification
Abstract
A sequence sending method and an apparatus, to reduce a probability of a sequence conflict. The method includes: a terminal device sends, in a first time period, a first sequence to a network device, where the first sequence is determined based on a first parameter; the terminal device performs scrambling processing on a second sequence based on the first parameter, to generate a scrambled second sequence; the terminal device sends, in a second time period, the scrambled second sequence to the network device; the terminal device performs scrambling processing on an N.sup.th sequence based on an (N−1).sup.th parameter, to generate a scrambled N.sup.th sequence, where an (N−1).sup.th sequence is determined based on the (N−1).sup.th parameter, and N is an integer greater than 2; and the terminal device sends, in an N.sup.th time period, the scrambled N.sup.th sequence to the network device.
Claims
1. A sequence sending method, applied to random access of a terminal device, wherein the method comprises: sending, by the terminal device in a first time period, a first sequence to a network device, wherein the first sequence is determined based on a first parameter; performing, by the terminal device, scrambling processing on a second sequence based on the first parameter, to generate a scrambled second sequence; sending, by the terminal device in a second time period, the scrambled second sequence to the network device; performing, by the terminal device, scrambling processing on an N.sup.th sequence based on an (N−1).sup.th parameter, to generate a scrambled N.sup.th sequence, wherein an (N−1).sup.th sequence is determined based on the (N−1).sup.th parameter, and N is an integer greater than 2; and sending, by the terminal device in an N.sup.th time period, the scrambled N.sup.th sequence to the network device.
2. The sequence sending method according to claim 1, wherein before sending, by the terminal device, the first sequence to the network device, the method further comprises: receiving, by the terminal device, indication information sent by the network device; and selecting, by the terminal device, the first sequence, the second sequence, the (N−1).sup.th sequence, and the N.sup.th sequence from a resource pool based on the indication information.
3. The sequence sending method according to claim 1, wherein performing, by the terminal device, scrambling processing on the second sequence based on the first parameter, to generate the scrambled second sequence further comprises: generating, by the terminal device, a first scrambling sequence based on the first parameter; and performing, by the terminal device, scrambling processing on the second sequence based on the first scrambling sequence, to generate the scrambled second sequence.
4. The sequence sending method according to claim 1, further comprising: receiving, by the terminal device, a random access response message sent by the network device.
5. The sequence sending method according to claim 1, wherein the first sequence, the second sequence, the N.sup.th sequence, and the first scrambling sequence are any one of the following sequences: a Zadoff-Chu (ZC) sequence, a longest linear shift register m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence.
6. A sequence sending method, applied to random access of a terminal device, wherein the method comprises: receiving, by a network device in a first time period, a first sequence sent by the terminal device, wherein the first sequence is determined based on a first parameter; receiving, by the network device in a second time period, a scrambled second sequence sent by the terminal device, wherein the scrambled second sequence is a sequence obtained by performing, by the terminal device, scrambling processing on a second sequence based on the first parameter; descrambling, by the network device, the scrambled second sequence based on the first parameter, to obtain the second sequence; receiving, by the network device in an N.sup.th time period, a scrambled N.sup.th sequence sent by the terminal device, wherein the scrambled N.sup.th sequence is a sequence obtained by performing, by the terminal device, scrambling processing on an N.sup.th sequence based on an (N−1).sup.th parameter, an (N−1).sup.th sequence is determined based on the (N−1).sup.th parameter, and N is an integer greater than 2; and descrambling, by the network device, the scrambled N.sup.th sequence based on the (N−1)′h parameter, to obtain the N.sup.th sequence.
7. The sequence sending method according to claim 6, wherein before receiving, by the network device, the first sequence sent by the terminal device, the method further comprises: sending, by the network device, indication information to the terminal device, wherein the indication information indicates the terminal device to select the first sequence, the second sequence, the (N−1).sup.th sequence, and the N.sup.th sequence from a resource pool.
8. The sequence sending method according to claim 6, wherein descrambling, by the network device, the scrambled second sequence based on the first parameter, to obtain the second sequence further comprises: generating, by the network device, a first descrambling sequence based on the first parameter; and descrambling, by the network device, the scrambled second sequence based on the first descrambling sequence, to obtain the second sequence.
9. The sequence sending method according to claim 6, further comprising: sending, by the network device, a random access response message to the terminal device based on the first sequence, the second sequence, and the N.sup.th sequence.
10. The sequence sending method according to claim 6, wherein the first sequence, the second sequence, the N.sup.th sequence, and the first descrambling sequence are any one of the following sequences: a Zadoff-Chu (ZC) sequence, a longest linear shift register m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence.
11. A device, comprising: a transceiver; a processor; and a non-transitory computer-readable storage medium storing a program to be executed by the processor, the program including instructions to: send, in a first time period, a first sequence to a network device, wherein the first sequence is determined based on a first parameter; perform scrambling processing on a second sequence based on the first parameter, to generate a scrambled second sequence; send, in a second time period, the scrambled second sequence to the network device; perform scrambling processing on an N.sup.th sequence based on an (N−1).sup.th parameter, to generate a scrambled N.sup.th sequence, wherein an (N−1).sup.th sequence is determined based on the (N−1)′h parameter, and N is an integer greater than 2; and send, in an N.sup.th time period, the scrambled N.sup.th sequence to the network device.
12. The device according to claim 1, wherein the non-transitory computer-readable storage medium further comprises instructions to: receive, by the terminal device, indication information sent by the network device; and select, by the terminal device, the first sequence, the second sequence, the (N−1).sup.th sequence, and the N.sup.th sequence from a resource pool based on the indication information.
13. The device according to claim 1, wherein the non-transitory computer-readable storage medium further comprises instructions to: generate a first scrambling sequence based on the first parameter; and perform scrambling processing on the second sequence based on the first scrambling sequence, to generate the scrambled second sequence.
14. The device according to claim 1, wherein the non-transitory computer-readable storage medium further comprises instructions to: receive a random access response message sent by the network device.
15. The device according to claim 1, wherein the first sequence, the second sequence, the N.sup.th sequence, and the first scrambling sequence are any one of the following sequences: a Zadoff-Chu (ZC) sequence, a longest linear shift register m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0049] The following describes the embodiments with reference to accompanying drawings.
[0050] The embodiments may be applied to various communication systems, for example, a sidelink communication system, a vehicle to everything (V2X) system, a wireless local area network (WLAN) system, a narrowband Internet of things NB-IoT) system, a global system for mobile communications (GSM), an enhanced data rates for GSM evolution (EDGE) system, a wideband code division multiple access (WCDMA) system, a code division multiple access 2000 (CDMA2000) system, a time division-synchronization code division multiple access (TD-SCDMA) system, a long term evolution (LTE) system, satellite communication, a 5th generation (5G) system, or a new communication system that appears in the future.
[0051] A terminal device in the embodiments may be a device that includes a wireless transceiver function and that can provide a communication service for a user. The terminal device may be a device in a V2X system, a device in a device to device (D2D) system, a device in a machine type communication (MTC) system, or the like. The terminal device may include various handheld devices, vehicle-mounted devices, wearable devices, or computing devices that have a wireless communication function, or other processing devices connected to a wireless modem. A terminal may be a mobile station (MS), a subscriber unit, user equipment (UE), a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a smartphone, a wireless data card, a personal digital assistant (PDA) computer, a tablet computer, a wireless modem, a handset device, a laptop computer, a machine type communication (MTC) terminal, or the like.
[0052] In a conventional cellular network mobile communication system, for example, an LTE system or a new radio (NR) system, there may be a plurality of types of terminals, for example, an enhanced mobile broadband (eMBB) terminal, an ultra-reliable low-latency communication (URLLC) terminal, and a massive machine type communication (mMTC) terminal. The terminals respectively correspond to three scenarios: an eMBB scenario, a URLLC scenario, and an mMTC scenario.
[0053] A characteristic of the mMTC scenario may be that there are a large quantity of terminals, a small data packet, and a large packet arrival interval. For example, there are tens of thousands to millions of terminals per square kilometer, a data packet arrival interval of each terminal is several hours or even several days, and a size of each packet is several to dozens of bytes. In this scenario, a conventional scheduling-based uplink transmission method is not suitable because in conventional scheduling-based uplink transmission, a terminal first needs to enter a connected state through random access (RA), sends a scheduling request (SR) to a base station, then monitors an uplink grant sent by the base station, and sends a data packet to the base station based on scheduling information in the uplink grant. In this process, the terminal consumes a large quantity of delays and power for establishing a connection, sending the SR, monitoring the scheduling information, and the like, and duration used for actual data transmission is very short, resulting in extremely low data transmission efficiency. In this case, a more efficient uplink small-packet transmission method may be considered, for example, uplink grant-free (GF) transmission, early data transmission (EDT), and 2-step random access channel (RACH).
[0054] The uplink grant-free transmission means that a terminal sends an uplink data packet to a base station on a physical uplink shared channel (PUSCH) resource preconfigured by the base station and does not need to monitor a dynamic grant of the base station before sending the data packet. The PUSCH also includes a pilot signal, for example, a demodulation reference signal (DMRS). The pilot signal is used by the base station to detect whether the terminal sends data. For example, when detecting a reference signal, the base station considers that a terminal sends data by using the reference signal, and the base station may estimate an uplink shared channel based on the detected reference signal and demodulate the terminal data. Therefore, sending of the reference signal plays an important role in the uplink grant-free transmission.
[0055] The early data transmission is a method for sending uplink data in a 4-step random access process. When a terminal needs to send data, the terminal sends a Msg1 to a base station, such as, sends a random access preamble on a physical random access channel (PRACH). After detecting the preamble, the base station sends a Msg2, such as, a random access response (RAR) message, to the terminal, where the RAR carries timing advance (TA) and an uplink grant used for scheduling a Msg3. After monitoring the RAR message, the terminal sends the Msg3 based on the uplink grant in the RAR message, where the Msg3 carries the uplink data. After receiving the Msg3, the base station sends a contention resolution message to the terminal. A difference between the EDT and conventional 4-step random access is that the Msg3 in the EDT may carry the uplink data, but in a conventional 4-step random access process, the terminal cannot send the uplink data to the base station. It can be learned from the EDT process that sending and detection of the preamble are critical, because the base station can send the RAR message for the preamble only after detecting the preamble, and then the terminal can send the Msg3 carrying the data.
[0056] The 2-step random access is a further simplified uplink small-packet transmission method for the early data transmission. The 2-step RACH includes two steps: a MsgA and a MsgB. When a terminal needs to send data, the terminal sends the MsgA to a base station. The MsgA includes two parts: a PRACH and a PUSCH. The PRACH carries a preamble, the PUSCH carries uplink data, and the PUSCH further includes a DMRS, where the DMRS is used by the base station to perform channel estimation. After the base station detects the MsgA (detection of the MsgA is detection of the preamble), if the base station also correctly receives the data in the MsgA, the base station sends the MsgB, where the MsgB includes a contention resolution message. When the base station detects the MsgA but does not correctly receive the uplink data in the MsgA, the base station may send an RAR message to the terminal to schedule the terminal to retransmit the uplink data. Similarly, the sending and detection of the preamble are also important for the 2-step RACH.
[0057] Both the DMRS and the preamble may be sequences. When more than one terminal sends a same sequence on a same time-frequency resource, such as, when a sequence conflict occurs, performance of detecting the terminal by the base station deteriorates. For example, the base station fails to detect the sequence, or the base station detects the sequence but cannot determine a quantity of terminals which send the sequence. This affects sending and receiving of the uplink data. When a quantity of available sequences is fixed, a larger quantity of terminals indicates that a sequence conflict is more likely to occur.
[0058] The preamble in the random access process may use a Zadoff-Chu (ZC) sequence:
[0059] L.sub.RA is a prime number, n is a sequence length, u is a root sequence index, v is a cyclic shift index, x.sub.u(i) is a root sequence determined based on the root sequence index, C.sub.v is a cyclic shift value, and C.sub.v=Ncs*v, where Ncs is a cyclic shift interval, and Ncs is greater than or equal to 0. The terminal device determines the root sequence based on the root sequence index configured by the base station, and then determines different preamble sequences based on different cyclic shift values.
[0060] Each cell in both the NR system and the LTE system supports a maximum of 64 preamble sequences. A quantity of preamble sequences that can be generated by each root sequence is determined based on the cyclic shift interval. When a quantity of preamble sequences generated by one root sequence is less than 64, the terminal continues to generate preamble sequences based on another root sequence until the quantity of preambles reaches 64. It can be learned that a quantity Q of preambles that can be determined depends on two factors: one is a quantity n of root sequences, and the other is a quantity K of preambles that can be generated by each root sequence. In other words, the total quantity Q of preamble sequences that can be generated is equal to n*K.
[0061] Considering that preamble sequences generated by different root sequences are not orthogonal to each other, a same cell may be prevented from using a plurality of root sequences. In this case, a total quantity of available preamble sequences for each cell is limited, for example, 64 in the LTE system and the NR system. In this case, a preamble sent by the terminal when the terminal performs 4-step random access, 2-step random access, or early data transmission may be randomly selected from all available preambles. Therefore, for a large quantity of terminals, a probability that more than one terminal selects a same preamble may be high, and consequently, detection performed by the base station may fail.
[0062] Currently, a 2-stage-based preamble sending solution is provided, so that the quantity of available preambles can be increased to Q.sup.2.
[0063] The preamble-1 and the preamble-2 cannot be randomly selected. Otherwise, a false alarm occurs on a base station side. For example, it is assumed that indexes (numbers) of a preamble-1 and a preamble-2 that are randomly selected by a terminal device 1 from a preamble resource pool are respectively x1 and y1, and indexes (numbers) of two preambles that are randomly selected by a terminal device 2 from the resource pool are respectively x2 and y2. The base station device detects preambles whose indexes are x1 and x2 in a time period 1 and detects preambles whose indexes are y1 and y2 in a time period 2. In this case, the base station cannot determine whether a terminal device selects a combination of the preambles whose indexes are respectively x1 and y2 or x2 and y1. To avoid the false alarm, the following method for determining the preamble-1 and the preamble-2 is provided. Steps include: [0064] (1) the terminal randomly selects the preamble-1 from the preamble resource pool; [0065] (2) the terminal randomly selects a preamble-x from the preamble resource pool, calculates an S sequence based on the index of the preamble-1 in the resource pool, and scrambles the preamble-x by using the obtained S sequence (where herein the scrambling processing may be that a corresponding element in the S sequence is multiplied by a corresponding element in the preamble-x), to obtain the preamble-2; and [0066] (3) the terminal sends the preamble-1 in the time period 1 and sends the preamble-2 in the time period 2.
[0067] After detecting the preamble-1 in the time period 1, the base station determines the S sequence according to a same rule. The base station descrambles, by using the obtained S sequence, a signal received in the time period 2, and then detects the preamble-x from the signal.
[0068] Because generation of the preamble-2 is related to the preamble-1, the false alarm can be avoided. For example, assuming that an index of a preamble-1 selected by the terminal device 1 in the time period 1 is x1, an index of a preamble-x selected in the time period 2 is y1, and an S sequence determined by the terminal device based on x1 is s1, the terminal device determines a preamble-2 based on s1 and the preamble whose index is y1. In addition, assuming that an index of a preamble-1 selected by the terminal device 2 in the time period 1 is x2, an index of a preamble-x selected in the time period 2 is y2, and an S sequence determined by the terminal device based on x2 is s2, the terminal determines a preamble-2 based on s2 and the preamble whose index is y2. The base station side detects the preambles whose indexes are x1 and x2 in the time period 1, then detects, based on s1, the preamble-x whose index is y1 in the time period 2, and detects, based on s2, the preamble-2 whose index is y2 in the time period 2. In this way, the base station determines that there is no terminal 3 that separately selects a combination of the preamble whose index is x1 and the preamble whose index is y2 in both the time period 1 and the time period 2, because the base station fails to detect, based on s1, the preamble whose index is y2 in the time period 2. In addition, because the preamble-x used for generating the preamble-2 is also randomly selected by the terminal from the sequence resource pool, in this method, the total quantity of available sequences may be increased from Q to Q.sup.2.
[0069] On a 2-phase PRACH, although the total quantity of available sequences may be increased from Q to Q.sup.2, when Q is small, for example, when a cell radius is large and a subcarrier spacing is large, a quantity of available preamble sequences in a single cell is small, and a probability of a preamble conflict is still high.
[0070] Therefore, the embodiments may provide a sequence sending method, so that when a sequence resource pool is given, a quantity of available sequences can be increased, and a probability of a sequence conflict can be reduced.
[0071] The solutions may be applied to a 5G NR system, or may be applied to another communication system, provided that an entity in the communication system sends configuration information to another entity and sends data to the another entity, or receives data sent by another entity; and the another entity receives the configuration information sent by the entity, and sends data to the entity based on the configuration information, or receives the data sent by the entity.
[0072]
[0073] In addition, the UE 4 to the UE 6 may also form a communication system. In this case, both a sending entity and a receiving entity of configuration information may be terminal devices. For example, in an Internet of Vehicles system, a terminal device 1 sends configuration information to a terminal device 2, and receives data sent by the terminal device 2. The terminal device 2 receives the configuration information sent by the terminal device 1 and sends the data to the terminal device 1.
[0074] For a transmission scenario, the embodiments may be used for random access, including 2-step-based random access 2-step RACH, 4-step-based random access 4-step RACH, 4-step-based early data transmission EDT, uplink grant-free GF transmission, transmission based on a preconfigured uplink resource, and transmission based on a configured grant.
[0075] The embodiments may be applied to a terminal device in a connected state or an active state or may be applied to a terminal device in a disconnected state or an idle state.
[0076] The embodiments may be used for a random access preamble in a random access process, or may be used for various reference signals, for example, a DMRS sequence, a sounding reference signal (SRS), a channel state information reference signal (CSI-RS), and a phase tracking reference signal (PTRS).
[0077]
[0078] 310: A terminal device selects a first sequence from a resource pool, and the terminal device sends, in a first time period, the first sequence to a network device, where the first sequence is determined based on a first parameter. The network device is an entity configured to send/receive a signal, for example, a base station.
[0079] Optionally, before the terminal device sends the first sequence to the network device, the terminal device receives indication information sent by the network device, and the terminal device selects the first sequence from the resource pool based on the indication information sent by the network device. Optionally, the first sequence may alternatively be randomly selected by the terminal device or may be selected according to another rule.
[0080] The first sequence may be a ZC sequence, or may be any one of the following sequences, or may be another sequence: [0081] (1) longest linear shift register m sequence, where the longest linear shift register m sequence with a length of 2.sup.m−1 (m>1) may be defined as c(n)=(−1).sup.Tr(a.sup.
an example is x(ī+5)=(x(ī+2)+x(ī))mod 2, and 0≤ī≤57, where x(0)=0, x(1)=0, x(2)=0, x(3)=0, x(4)=1; [0082] (2) pseudo noise (PN) sequence, where the PN sequence applied in a 5G NR system is generated by a Gold sequence with a length of 31;
c(n)=(x.sub.1(n+N.sub.C)+x.sub.2(n+N.sub.C))mod 2
x.sub.1(n+31)=(x.sub.1(n+3)+x.sub.1(n))mod 2
x.sub.2(n+31)=(x.sub.2(n+3)+x.sub.2(n+2)+x.sub.2(n+1)+x.sub.2(n))mod 2 [0083] c(n) is a generated PN sequence, a length of c(n) is M.sub.PN, where n=0, 1, . . . , M.sub.PN−1, and N.sub.C=160; an initial value of a first m sequence x.sub.1(n) is x.sub.1(0)=1, x.sub.1(n)=0, n=1, 2, . . . , 30, and an initial value of a second m sequence x.sub.2(n) is c.sub.init=Σ.sub.i=0.sup.30x.sub.2(i).Math.2.sup.i; [0084] (3) discrete Fourier transform (DFT) sequence, where the DFT sequence may be considered as a row or a column in a DFT matrix; an element of the DFT matrix is defined as x.sub.pq=ω.sup.−pq, and ω=e.sup.−2π8/N, where N is a sequence length, i is an imaginary unit, and i.sup.2=−1; [0085] (4) Alltop sequence, where the Alltop sequence is defined as c(γ,ω)=g(γ,ω), for example,
where 0≤n≤L−1 and 0≤w≤L−1; and [0086] (5) Gold sequence, where the Gold sequence is addition modulo 2 of two longest linear shift register m sequences.
[0087] 320: The network device receives, in the first time period, the first sequence sent by the terminal device.
[0088] 330: The terminal device selects a second sequence from the resource pool and performs scrambling processing on the second sequence based on the first parameter used for determining the first sequence, to generate a scrambled second sequence. The second sequence may be selected by the terminal device based on indication information sent by the network device, or may be randomly selected by the terminal device, or may be selected according to another rule. The second sequence may be any one of a ZC sequence, an m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence, or may be another sequence.
[0089] Optionally, the terminal device generates a first scrambling sequence based on the first parameter; and the terminal device performs scrambling processing on the second sequence based on the first scrambling sequence, to generate the scrambled second sequence. The first scrambling sequence may be any one of a ZC sequence, an m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence, or may be another sequence.
[0090] For example, if the first sequence selected by the terminal device from the resource pool is a ZC sequence, the first parameter may be a root sequence index, a cyclic shift index, a cyclic shift interval, or a cyclic shift value. If the first sequence is an m sequence or a Gold sequence, the first parameter may be a cyclic shift value. If the first sequence is an Alltop sequence, the first parameter may be γ or ω.
[0091] A method used by the terminal device to generate the first scrambling sequence S based on a first parameter x includes: generating parameter information y=f(x) of the first scrambling sequence S i based on the first parameter x, where f represents a function, for example, y=x. x may be the foregoing parameter information. For example, when the first scrambling sequence is a ZC sequence, y may be any parameter of a root sequence index, a cyclic shift index, a cyclic shift interval, or a cyclic shift value; when the first scrambling sequence is a PN sequence, y may be cyclic shift information, for example, any parameter information of a cyclic shift index, a cyclic shift interval, or a cyclic shift value; when the first scrambling sequence is an Alltop sequence, y may be γ or ω; and when the first scrambling sequence is an m sequence or a Gold sequence, y may be cyclic shift information, for example, any parameter information of a cyclic shift index, a cyclic shift interval, or a cyclic shift value.
[0092] The terminal device performs scrambling processing on the second sequence based on the first scrambling sequence. An implementation method includes: multiplying the first scrambling sequence by a corresponding element of the second sequence, to generate the scrambled second sequence.
[0093] 340: The terminal device sends, in a second time period, the scrambled second sequence to the network device.
[0094] 350: The network device receives the scrambled second sequence sent by the terminal device.
[0095] 360: The network device descrambles the scrambled second sequence based on the first parameter, to obtain the second sequence.
[0096] The network device determines, based on the first sequence sent by the terminal device, the first parameter used for determining the first sequence, and generates a first descrambling sequence based on the first parameter. The first descrambling sequence and the first scrambling sequence are a same sequence. The network device descrambles the scrambled second sequence based on the first descrambling sequence, to obtain the unscrambled second sequence.
[0097] 370: The terminal device selects an N.sup.th sequence from the resource pool and performs scrambling processing on the N.sup.th sequence based on an (N−1).sup.th parameter used for determining an (N−1).sup.th sequence, to generate a scrambled N.sup.th sequence, where N is an integer greater than 2. In other words, the terminal device separately sends, in at least three time periods, at least three sequences to the network device. The N.sup.th sequence may be selected by the terminal device based on indication information sent by the network device, or may be randomly selected by the terminal device, or may be selected according to another rule. The N.sup.th sequence may be any one of a ZC sequence, an m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence, or may be another sequence.
[0098] Optionally, the terminal device generates an (N−1).sup.th scrambling sequence based on the (N−1).sup.th parameter; and the terminal device performs scrambling processing on the N.sup.th sequence based on the (N−1).sup.th scrambling sequence, to generate the scrambled N.sup.th sequence. The (N−1)th scrambling sequence may be any one of a ZC sequence, an m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence, or may be another sequence.
[0099] 380: The terminal device sends, in an N.sup.th time period, the scrambled N.sup.th sequence to the network device.
[0100] 390: The network device receives the scrambled N.sup.th sequence sent by the terminal device.
[0101] 391: The network device descrambles the scrambled N.sup.th sequence based on the (N−1)th parameter used for determining the (N−1).sup.th sequence, to obtain the N.sup.th sequence.
[0102] The network device determines, based on the (N−1).sup.th sequence sent by the terminal device, the (N−1).sup.th parameter used for determining the (N−1).sup.th sequence, and generates an (N−1)th descrambling sequence based on the (N−1).sup.th parameter. The (N−1).sup.th descrambling sequence and the (N−1).sup.th scrambling sequence are a same sequence. The network device descrambles the scrambled N.sup.th sequence based on the (N−1).sup.th descrambling sequence, to obtain the unscrambled N.sup.th sequence.
[0103] After receiving and obtaining a combination of the first sequence, the second sequence, and the N.sup.th sequence that are sent by the terminal device, the network device performs a subsequent operation for the combination. Optionally, the network device sends a random access response RAR message to the terminal device, and the terminal device receives the RAR message sent by the network device and sends data to the network device based on a time-frequency resource indicated in the RAR message.
[0104] It should be understood that different time periods may be different time units, for example, different symbols, slots, subframes, and radio frames. The different time periods may be consecutive or inconsecutive in time. For example, each phase has one orthogonal frequency division multiplexing (OFDM) symbol, and two time periods may be two adjacent consecutive OFDM symbols or may be two non-adjacent OFDM symbols.
[0105] It should be understood that the second sequence and the N.sup.th sequence may be selected by the terminal device in the first time period or before the first time period or may be separately selected by the terminal device in the second time period and the N.sup.th time period. This is not limited.
[0106] In the embodiments, the terminal device may separately send at least three sequences, including the first sequence, the second sequence, and the N.sup.th sequence, to the network device in different time periods. The first sequence, the second sequence, and the N.sup.th sequence are randomly selected by the terminal device from the resource pool. If a total quantity of available sequences in the resource pool is Q, a quantity of available sequence combinations is at least Q.sup.3. Therefore, the total quantity of available sequences is increased, and a probability of a sequence conflict can be reduced.
[0107] For example, there are three time periods. It is assumed that the network device allocates three time units to the terminal device, and the three time units are used by the terminal device to send a random access preamble sequence. It is assumed that Q sequences included in a sequence resource pool are ZC sequences x.sub.u,v(n), 0≤n≤N−1, where n is a sequence length, u is a root sequence index, and v is a cyclic shift index; and a used scrambling sequence is an m sequence, c.sub.w(n)=c.sub.0 (n+w), where w is a cyclic shift value, and c.sub.0 (n+w) is a period extension of an m sequence with a length of 2m−1, where m=log.sub.2 (N+1). A sequence sending process is as follows.
[0108] Step 1: The terminal device randomly selects a preamble-1 from a preamble resource pool. Assuming that a cyclic shift index of a selected sequence is 2, the sequence may be represented as x.sub.u,2(n), and the terminal device sends, in a first time unit, the sequence o.sub.1(n)=x.sub.u,2(n) to the network device.
[0109] Step 2: The network device receives the sequence o.sub.1(n) sent by the terminal device.
[0110] Step 3: The terminal device randomly selects a preamble-2 from the preamble resource pool. Assuming that a cyclic shift index of a selected sequence is 30, the sequence may be represented as x.sub.u,30(n). The terminal device uses a cyclic shift index value 2 of the preamble-1 selected in step 1 as a cyclic shift value of an m sequence, to generate a first scrambling sequence s.sub.1(n)=c.sub.2(n); the terminal device generates a sequence o.sub.2(n)=x.sub.u,30(n)*c.sub.2(n) based on the first scrambling sequence s.sub.1(n) and the sequence x.sub.u,30(n); and the terminal device sends, in a second time unit, the sequence o.sub.2(n) to the network device.
[0111] Step 4: The network device receives the sequence o.sub.2(n) sent by the terminal device, generates a first descrambling sequence (the first scrambling sequence) s.sub.1(n)=c.sub.2(n) based on the cyclic shift index value of the sequence x.sub.u,2(n) sent by the terminal device in the first time unit, and the network device descrambles, based on the first descrambling sequence, the sequence o.sub.2(n) sent by the terminal device, to obtain the sequence x.sub.u,30(n).
[0112] Step 5: The terminal device randomly selects a preamble-3 from the preamble resource pool. Assuming that a cyclic shift index of a selected sequence is 4, the sequence may be represented as x.sub.u,4(n). The terminal device uses a cyclic shift index value 30 of the preamble-2 selected in step 3 as a cyclic shift value of the m sequence, to generate a second scrambling sequence s.sub.2(n)=c.sub.30(n); the terminal device generates a sequence o.sub.3(n)=x.sub.u,4(n)*c.sub.30(n) based on the second scrambling sequence s.sub.2(n) and the sequence x.sub.u,4(n); and the terminal device sends, in a third time unit, the sequence o.sub.3(n) to the network device.
[0113] Step 6: The network device receives the sequence o.sub.3(n) sent by the terminal device, generates a second descrambling sequence (the second scrambling sequence) s.sub.2(n)=c.sub.30(n) based on the cyclic shift index value of the sequence x.sub.u,30(n) sent by the terminal device in the second time unit, and the network device descrambles, based on the second descrambling sequence, the sequence o.sub.3(n) sent by the terminal device, to obtain the sequence x.sub.u,4(n).
[0114] The following provides a sequence sending instance in which the scrambling sequence is an Alltop sequence. For example, there are three time periods. It is assumed that the network device allocates three time units to the terminal device, and the three time units are used by the terminal device to send a random access preamble sequence. It is assumed that M sequences included in the sequence resource pool are ZC sequences x.sub.u,v(n), 0≤n≤N−1, where n is a sequence length, u is a root sequence index, and v is a cyclic shift index; and a used scrambling sequence is an Alltop sequence c(γ,ω)=g(γ,ω), for example,
where 0≤n≤L−1 and 0≤ω≤L−1. A sequence sending process is as follows.
[0115] Step 1: The terminal device randomly selects a preamble-1 from the preamble resource pool. Assuming that a cyclic shift index of a selected sequence is 2, the sequence may be represented as x.sub.u,v(n), and the terminal device sends the sequence o.sub.1(n)=x.sub.u,2(n) in a first time unit.
[0116] Step 2: The network device receives the sequence o.sub.2(n) sent by the terminal device.
[0117] Step 3: The terminal device randomly selects a preamble-2 from the preamble resource pool. Assuming that a cyclic shift index of a selected sequence is 30, the sequence may be represented as x.sub.u,30(n). The terminal device determines ω and γ of the Alltop sequence based on a root sequence index and/or a cyclic shift index value of the preamble-1 selected in step 1, for example, determines ω=2 and γ=u, to generate a first scrambling sequence s.sub.1(n)=g.sub.u,2(n); the terminal device generates a sequence o.sub.2(n)=x.sub.u,30(n)*g.sub.u,2(n) based on the first scrambling sequence s.sub.1(n) and the sequence x.sub.u,30(n); and the terminal device sends, in a second time unit, the sequence o.sub.2(n) to the network device.
[0118] Step 4: The network device receives the sequence o.sub.2(n) sent by the terminal device, generates a first descrambling sequence (the first scrambling sequence s.sub.1(n)=g.sub.u,2(n) based on the root sequence index and/or the cyclic shift index value of the sequence x.sub.u,2(n) sent by the terminal device in the first time unit, and the network device descrambles, based on the first descrambling sequence, the sequence o.sub.2(n) sent by the terminal device, to obtain the sequence x.sub.u,30(n).
[0119] Step 5: The terminal device randomly selects a preamble-3 from the preamble resource pool. Assuming that a cyclic shift index of a selected sequence is 4, the sequence may be represented as x.sub.u,4(n). The terminal device determines ω and γ of the Alltop sequence based on a root sequence index and/or a cyclic shift index value of the preamble-2 selected in step 3, for example, determines ω=30 and γ=u, to generate a second scrambling sequence s.sub.2(n)=g.sub.u,30(n); the terminal device generates a sequence o.sub.3(n)=x.sub.u,4(n)*g.sub.u,30(n) based on the second scrambling sequence s.sub.2(n) and the sequence x.sub.u,4(n); and the terminal device sends, in a third time unit, the sequence o.sub.3(n) to the network device.
[0120] Step 6: The network device receives the sequence o.sub.3(n) sent by the terminal device, generates a second descrambling sequence (the second scrambling sequence) s2(n)=g.sub.u,30(n) based on the root sequence index and/or the cyclic shift index value of the sequence x.sub.u,30(n) sent by the terminal device in the second time unit, and the network device descrambles, based on the second descrambling sequence, the sequence o.sub.3(n) sent by the terminal device, to obtain the sequence x.sub.u,4(n).
[0121] The network device may determine, based on detection statuses in the three time units, that the terminal device sends a combination of the preamble-1, the preamble-2, and the preamble-3, and the network device performs a subsequent operation for the combination, for example, send an RAR message.
[0122] It should be understood that a larger quantity of time periods allocated by the network device to the terminal device for sending sequences indicates a larger quantity of sequences sent by the terminal device to the network device, and a larger quantity of available sequence combinations.
[0123]
[0124] 410: A terminal device selects M sequences from a resource pool, where the M sequences include a first sequence to an M.sup.th longest linear shift register sequence, the M sequences are respectively determined based on M parameters, the M parameters correspond one-to-one to the M sequences, and M is an integer greater than or equal to 2. The terminal device sends, in a first time period, the M sequences to a network device.
[0125] Optionally, before the terminal device sends the M sequences to the network device, the terminal device receives indication information sent by the network device, and the terminal device selects the M sequences from the resource pool based on the indication information sent by the network device. Optionally, the M sequences may be randomly selected by the terminal device or may be selected according to another rule.
[0126] The M sequences are sequences of a same type. The type of the sequences may be any one of a ZC sequence, an m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence, or may be another sequence.
[0127] 420: The network device receives, in the first time period, the M sequences sent by the terminal device.
[0128] 430: The terminal device selects an N.sup.th sequence from the resource pool and performs scrambling processing on the N.sup.th sequence based on the M parameters used for determining the M sequences, to generate a scrambled N.sup.th sequence, where N is equal to M+1. The N.sup.th sequence may be selected by the terminal device based on indication information sent by the network device, or may be randomly selected by the terminal device, or may be selected according to another rule. The N.sup.th sequence may be any one of a ZC sequence, an m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence, or may be another sequence. It should be understood that the first sequence to the M.sup.th sequence, and the N.sup.th sequence may be sequences of a same type or may be sequences of different types.
[0129] Optionally, the terminal device generates an N.sup.th scrambling sequence based on the M parameters; and the terminal device performs scrambling processing on the N.sup.th sequence based on the N.sup.th scrambling sequence, to generate the scrambled N.sup.th sequence. The N.sup.th scrambling sequence may be any one of a ZC sequence, an m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence, or may be another sequence.
[0130] The M parameters may be respective indexes of the M sequences in the resource pool. For example, if the M sequences selected by the terminal device from the resource pool are ZC sequences, the M parameters may be root sequence indexes, cyclic shift indexes, cyclic shift intervals, or cyclic shift values. If the M sequences are m sequences or Gold sequences, the M parameters may be cyclic shift values. If the M sequences are Alltop sequences, the M parameters may be γ or ω.
[0131] For example, M is equal to 2. A method used by the terminal device to generate the N.sup.th scrambling sequence based on the M parameters includes: generating parameter information y=h(x1, x2) of the N.sup.th scrambling sequence S.sub.N based on a parameter x1 and a parameter x2, where h represents a function, for example, y is equal to a number of a combination (x1, x2) in all possible combinations. x1 and x2 may be the parameter information in the foregoing example. For example, when the N.sup.th scrambling sequence is a ZC sequence, y may be any parameter of a root sequence index, a cyclic shift index, a cyclic shift interval, or a cyclic shift value; when the N.sup.th scrambling sequence is a PN sequence, y may be cyclic shift information, for example, any parameter information of a cyclic shift index, a cyclic shift interval, or a cyclic shift value; when the N.sup.th scrambling sequence is an Alltop sequence, y may be γ or ω; and when the first scrambling sequence is an m sequence or a Gold sequence, y may be cyclic shift information, for example, any parameter information of a cyclic shift index, a cyclic shift interval, or a cyclic shift value.
[0132] The terminal device performs scrambling processing on the N.sup.th sequence based on the N.sup.th scrambling sequence. An implementation method includes: multiplying the N.sup.th scrambling sequence by a corresponding element of the N.sup.th sequence, to generate the scrambled N.sup.th sequence.
[0133] 440: The terminal device sends, in a second time period, the scrambled N.sup.th sequence to the network device.
[0134] 450: The network device receives the scrambled N.sup.th sequence sent by the terminal device.
[0135] 460: The network device descrambles the scrambled N.sup.th sequence based on the M parameters, to obtain the N.sup.th sequence.
[0136] The network device determines, based on the M sequences sent by the terminal device, the M parameters used for determining the M sequences, and generates an N.sup.th descrambling sequence based on the M parameters. The N.sup.th descrambling sequence and the N.sup.th scrambling sequence are a same sequence. The network device descrambles the scrambled N.sup.th sequence, to obtain the unscrambled N.sup.th sequence.
[0137] After receiving and obtaining a combination of the first sequence to the M.sup.th sequence, and the N.sup.th sequence that are sent by the terminal device, the network device performs a subsequent operation for the combination. Optionally, the network device sends a random access response RAR message to the terminal device, and the terminal device receives the RAR message sent by the network device and sends data to the network device based on a time-frequency resource indicated in the RAR message.
[0138] It should be understood that different time periods may be different time units, for example, different symbols, slots, subframes, and radio frames. The different time periods may be consecutive or inconsecutive in time. For example, each phase has one orthogonal frequency division multiplexing (OFDM) symbol, and two time periods may be two adjacent consecutive OFDM symbols, or may be two non-adjacent OFDM symbols.
[0139] It should be understood that the N.sup.th sequence may be selected by the terminal device in the first time period or before the first time period or may be selected in the N.sup.th time period. This is not limited.
[0140] In the embodiments, the terminal device may send at least two sequences to the network device in the first time period and may send one sequence to the network device in the second time period. Sequences sent in a same time period are different, and sequences sent in different time periods may be the same or may be different. If a total quantity of available sequences in the resource pool is Q, a quantity of available sequence combinations is at least Q.sup.2(Q−1). Therefore, the total quantity of available sequences is increased, and a probability of a sequence conflict can be reduced.
[0141] For example, three sequences are sent. It is assumed that the network device allocates two time units to the terminal device, and the two time units are used by the terminal device to send a random access preamble sequence. The network device sends, in a first time unit, two sequences to the terminal device, and the network device sends, in a second time unit, one sequence to the terminal device. It is assumed that Q sequences included in a sequence resource pool 1 are all ZC sequences x.sub.u,v(n), 0≤n≤N−1, where n is a sequence length, u is a root sequence index, and v is a cyclic shift index; and a used scrambling sequence is an m sequence, c.sub.w(n)=c.sub.0 (n+w), where w is a cyclic shift value, and c.sub.0(n+w) is a period extension of an m sequence with a length of 2m−1, where m=log.sub.2 (N+1). A sequence sending process is as follows.
[0142] Step 1: The terminal device randomly selects a preamble-1 and a preamble-2 from a preamble resource pool. Assuming that cyclic shifts of selected sequences are 2 and 5, the sequences are respectively represented as x.sub.u,2(n) and x.sub.u,5(n), and the terminal device sends, in the first time unit, the sequences o.sub.1(n)=x.sub.u,2(n) and o.sub.2(n)=x.sub.u,5(n) to the network device. Because the sequence resource pool includes the Q sequences, or Q cyclic shift indexes, it is assumed that a number of a cyclic index combination (2, 5) in all combinations are index.sub.2,5.
[0143] Step 2: The network device receives the sequences o.sub.1(n) and o.sub.2(n) sent by the terminal device.
[0144] Step 3: The terminal device randomly selects a preamble-3 from the preamble resource pool. Assuming that a cyclic shift index of a selected sequence is 30, the sequence may be represented as x.sub.u,30(n). The terminal device uses the index.sub.2,5 determined in step 1 as a cyclic shift value of the m sequence, to generate an N.sup.th scrambling sequence s.sub.N(n)=c.sub.index.sub.
[0145] Step 4: The network device receives the sequence o.sub.3(n) sent by the terminal device, generates an N.sup.th descrambling sequence (the N.sup.th scrambling sequence) s.sub.N(n)=c.sub.index.sub.
[0146] The following provides a sequence sending instance in which the scrambling sequence is an Alltop sequence. For example, three sequences are sent. It is assumed that the network device allocates two time units to the terminal device, and the two time units are used by the terminal device to send a random access preamble sequence. The network device sends, in a first time unit, two sequences to the terminal device, and the network device sends, in a second time unit, one sequence to the terminal device. It is assumed that Q sequences included in the sequence resource pool 1 are all ZC sequences x.sub.u,v(n), 0≤n≤N−1, where n is a sequence length, u is a root sequence index, and v is a cyclic shift index; and a used scrambling sequence is an Alltop sequence c(γ,ω)=g(γ,ω), for example,
where 0≤n≤L−1 and 0≤ω≤L−1. A sequence sending process is as follows.
[0147] Step 1: The terminal device randomly selects a preamble-1 and a preamble-2 from the preamble resource pool. Assuming that cyclic shifts of selected sequences are 2 and 5, the sequences are respectively represented as x.sub.u,2(n) and x.sub.u,5(n), and the terminal device sends, in the first time unit, the sequences o.sub.1(n)=x.sub.u,2(n) and o.sub.2(n)=x.sub.u,5(n) to the network device. Because the sequence resource pool includes the Q sequences, or Q cyclic shift indexes, it is assumed that a number of a cyclic index combination (2, 5) in all combinations are index.sub.2,5.
[0148] Step 2: The network device receives the sequences o.sub.1(n) and o.sub.2(n) sent by the terminal device.
[0149] Step 3: The terminal device randomly selects a preamble-3 from the preamble resource pool. Assuming that a cyclic shift index of a selected sequence is 30, the sequence may be represented as x.sub.u,30(n). The terminal device determines ω and γ of the Alltop sequence based on the index.sub.2,5 determined in step 1, for example, determines ω=.sub.index.sub.
[0150] Step 4: The network device receives the sequence o.sub.3(n) sent by the terminal device, generates an N.sup.th descrambling sequence (the N.sup.th scrambling sequence) s.sub.N(n)=g.sub.u,index.sub.
[0151] The network device may determine, based on detection statuses in the two time units, that the terminal device sends a combination of the preamble-1, the preamble-2, and the preamble-3, and the network device performs a subsequent operation for the combination, for example, send an RAR message.
[0152] It should be understood that the terminal device may alternatively send, in the first time period, a plurality of sequences to the network device; or send, in the second time period, one or more sequences to the network device; or send, in a third time period, one sequence to the network device; or the like. This is not limited in the embodiments.
[0153] An embodiment may provide a communication apparatus.
[0154] The communication apparatus 500 includes a transceiver unit 510 and a processing unit 520. The transceiver unit 510 is configured to send, in a first time period, a first sequence to a network device, where the first sequence is determined based on a first parameter; [0155] the processing unit 520 is configured to perform scrambling processing on a second sequence based on the first parameter, to generate a scrambled second sequence; [0156] the transceiver unit 510 is further configured to send, in a second time period, the scrambled second sequence to the network device; [0157] the processing unit 520 is further configured to perform scrambling processing on an N.sup.th sequence based on an (N−1).sup.th parameter, to generate a scrambled N.sup.th sequence, where an (N−1)th sequence is determined based on the (N−1).sup.th parameter, and N is an integer greater than 2; and [0158] the transceiver unit 510 is further configured to send, in an N.sup.th time period, the scrambled N.sup.th sequence to the network device.
[0159] Optionally, the transceiver unit 510 is further configured to receive indication information sent by the network device; and the processing unit 520 is further configured to select the first sequence, the second sequence, the (N−1).sup.th sequence, and the N.sup.th sequence from a resource pool based on the indication information.
[0160] Optionally, the processing unit 520 may be configured to: generate a first scrambling sequence based on the first parameter; and perform scrambling processing on the second sequence based on the first scrambling sequence, to generate the scrambled second sequence.
[0161] Optionally, the transceiver unit 510 is further configured to receive a random access response message sent by the network device.
[0162] Optionally, the first sequence, the second sequence, the N.sup.th sequence, and the first descrambling sequence are any one of the following sequences: a Zadoff-Chu (ZC) sequence, an m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence.
[0163] An embodiment may provide another communication apparatus.
[0168] Optionally, the transceiver unit 610 is further configured to send indication information to the terminal device, where the indication information indicates the terminal device to select the first sequence, the second sequence, the (N−1).sup.th sequence, and the N.sup.th sequence from a resource pool.
[0169] Optionally, the processing unit 620 may be configured to: generate a first descrambling sequence based on the first parameter; and descramble the scrambled second sequence based on the first descrambling sequence, to obtain the second sequence.
[0170] Optionally, the transceiver unit 610 is further configured to send a random access response message to the terminal device based on the first sequence, the second sequence, and the N.sup.th sequence.
[0171] Optionally, the first sequence, the second sequence, the N.sup.th sequence, and the first descrambling sequence are any one of the following sequences: a Zadoff-chu ZC sequence, an m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence.
[0172] An embodiment may provide another communication apparatus.
[0175] Optionally, the transceiver unit 710 is further configured to receive indication information sent by the network device; and the processing unit 720 is further configured to select the M sequences and the N.sup.th sequence from a resource pool based on the indication information.
[0176] Optionally, the processing unit 720 may be configured to: generate an N.sup.th scrambling sequence based on the M parameters; and perform scrambling processing on the N.sup.th sequence based on the N.sup.th scrambling sequence, to generate the scrambled N.sup.th sequence.
[0177] Optionally, the transceiver unit 710 is further configured to receive a random access response message sent by the network device.
[0178] Optionally, the M sequences, the N.sup.th sequence, and the N.sup.th scrambling sequence are any one of the following sequences: a Zadoff-Chu (ZC) sequence, an m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence.
[0179] An embodiment may provide another communication apparatus.
[0180] The transceiver unit 810 is configured to receive, in a first time period, M sequences sent by a terminal device, where the M sequences include a first sequence to an M.sup.th longest linear shift register sequence, the M sequences are respectively determined based on M parameters, the M parameters correspond one-to-one to the M sequences, and M is an integer greater than or equal to 2; [0181] the transceiver unit 810 is further configured to receive, in a second time period, a scrambled N.sup.th sequence sent by the terminal device, where the scrambled N.sup.th sequence is a sequence obtained by performing, by the terminal device, scrambling processing on an N.sup.th sequence based on the M parameters, where N is equal to M+1; and [0182] the processing unit 820 is configured to descramble the scrambled N.sup.th sequence based on the M parameters, to obtain the N.sup.th sequence.
[0183] Optionally, the transceiver unit 810 is further configured to send indication information to the terminal device, where the indication information indicates the terminal device to select the M sequences and the N.sup.th sequence from a resource pool.
[0184] Optionally, the processing unit 820 may be configured to: generate an N.sup.th descrambling sequence based on the M parameters; and descramble the scrambled N.sup.th sequence based on the N.sup.th descrambling sequence, to obtain the N.sup.th sequence.
[0185] Optionally, the transceiver unit 810 is further configured to send a random access response message to the terminal device based on the M sequences and the N.sup.th sequence.
[0186] Optionally, the M sequences, the N.sup.th sequence, and the N.sup.th descrambling sequence are any one of the following sequences: a Zadoff-Chu (ZC) sequence, an m sequence, a pseudo noise (PN) sequence, a discrete Fourier transform (DFT) sequence, an Alltop sequence, or a Gold sequence.
[0187] An embodiment may provide a communication device 900.
[0188] The device 900 includes a processor 910 and a transceiver 920. The transceiver 920 is configured to: receive computer code or instructions and transmit the computer code or the instructions to the processor 910. The processor 910 runs the computer code or the instructions, to implement the method in any possible implementation in embodiments.
[0189] The processor 910 may be an integrated circuit chip and may have a signal processing capability. In an implementation process, steps in the foregoing method embodiments can be implemented by using a hardware integrated logical circuit in the processor, or by using instructions in a form of software. The foregoing processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or another programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The processor may implement or perform the methods, the steps, and logical block diagrams that are disclosed in the embodiments. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor or the like. The steps of the method disclosed with reference to the embodiments may be directly performed by a hardware decoding processor or may be performed by using a combination of hardware in a decoding processor and a software module. The software module may be located in a mature storage medium in the art, for example, a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or a register. The storage medium is located in the memory, and a processor reads information in the memory and completes the steps in the foregoing methods in combination with hardware of the processor.
[0190] An embodiment may provide a communication system 1000. The communication system includes a terminal device 1010 and a network device 1020 in the sequence sending method provided in the embodiments.
[0191] An embodiment may further provide a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium stores a computer program configured to implement the method in the foregoing method embodiments. When the computer program is run on a computer, the computer is enabled to implement the method in the foregoing method embodiments.
[0192] In addition, the term “and/or” describes only an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. In addition, the character “/” generally indicates an “or” relationship between the associated objects. The term “at least one” may represent “one” and “two or more”. For example, at least one of A, B, and C may indicate the following seven cases: only A exists, only B exists, only C exists, both A and B exist, both A and C exist, both C and B exist, and A, B, and C exist.
[0193] A person of ordinary skill in the art may be aware that, in combination with the examples described in embodiments, units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and constraint conditions of the solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of the embodiments.
[0194] A person skilled in the art may clearly learn that, for the purpose of convenient and brief descriptions, for a working process of the foregoing system, apparatuses, and units, refer to a corresponding process in the foregoing method embodiments. Details are not described herein again.
[0195] In the several embodiments, it should be understood that the disclosed system, apparatuses, and methods may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, unit division is merely logical function division and may be other division during actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
[0196] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.
[0197] In addition, functional units in the embodiments may be integrated into one processing unit, each of the units may exist alone physically, or two or more units are integrated into one unit.
[0198] When the functions are implemented in the form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such an understanding, the embodiments may be implemented in a form of a software product. The computer software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or some of the steps of the method described in the embodiments. The foregoing storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.
[0199] The foregoing descriptions are merely implementations, but are not intended to limit the scope of the embodiments. Any variation or replacement readily figured out by a person skilled in the art shall fall within the scope of the embodiments.