Communication method and apparatus
11582806 · 2023-02-14
Assignee
Inventors
Cpc classification
H04W72/23
ELECTRICITY
H04L5/0053
ELECTRICITY
H04W72/0453
ELECTRICITY
International classification
Abstract
This application discloses a communication method and apparatus. A terminal device determines a frequency position of a random access resource based on at least one of an initial frequency offset, a random access resource configuration period, an uplink channel bandwidth, a bandwidth of the random access resource, a time period of a random access resource, a time period of the random access resource, and a frequency index of the random access resource that are configured by a network device, and the terminal device sends a random access signal to the network device at the determined frequency position.
Claims
1. A method, comprising: generating a random access signal; and sending the random access signal to a network device, wherein the random access signal satisfies the following formula: is a frequency position of a starting subcarrier of the random access preamble; t is a time position of the random access signal; 0≤t<T.sub.SEQ+T.sub.CP; T.sub.SEQ is a time length of the sequence length; and wherein: a format of the random access preamble is a format 3, the subcarrier spacing of the random access preamble is 5 kHz, and a value of φ is 12; or a format of the random access preamble is one of A1, A2, A3, B1, B2, B3, B4, C0, or C2, the subcarrier spacing of the random access preamble is one of 15 kHz, 30 kHz, 60 kHz, or 120 kHz, and a value of φ is 2.
2. The method according to claim 1, wherein sending the random access signal to the receiver comprises: determining a frequency position of a random access resource based on a subcarrier offset and a resource block position of the random access resource; and sending the random access signal to the network device at the frequency position of the random access resource.
3. The method according to claim 2, wherein determining the frequency position of the random access resource based on the subcarrier offset and the resource block position of the random access resource comprises: determining the frequency position of the random access resource that satisfies the following formula: F.sub.SC=F.sub.RB×N.sub.SC.sup.RB+M, wherein F.sub.SC is the frequency position of the random access resource, F.sub.RB is the resource block position of the random access resource, N.sub.SC.sup.RB is a quantity of subcarriers in a resource block (RB), and M is the subcarrier offset.
4. An apparatus, comprising: a processor, configured to generate a random access signal; and a sender, configured to send the random access signal to a network device, wherein the random access signal satisfies the following formula: is a frequency position of a starting subcarrier of the random access preamble; t is a time position of the random access signal; 0≤t<T.sub.SEQ+T.sub.CP; T.sub.SEQ is a time length of the sequence length; and wherein a format of the random access preamble is a format 3, the subcarrier spacing of the random access preamble is 5 kHz, and a value of φ is 12; or a format of the random access preamble is one of A1, A2, A3, B1, B2, B3, B4, C0, or C2, the subcarrier spacing of the random access preamble is one of 15 kHz, 30 kHz, 60 kHz, or 120 kHz, and a value of φ is 2.
5. The apparatus according to claim 4, wherein sending the random access signal to the receiver comprises: determining a frequency position of a random access resource based on a subcarrier offset and a resource block position of the random access resource; and sending the random access signal to the network device at the frequency position of the random access resource.
6. The apparatus according to claim 5, wherein determining the frequency position of the random access resource based on the subcarrier offset and the resource block position of the random access resource comprises: determining the frequency position of the random access resource that satisfies the following formula: F.sub.SC=F.sub.RB×N.sub.SC.sup.RB+M, wherein F.sub.SC is the frequency position of the random access resource, F.sub.RB is the resource block position of the random access resource, N.sub.SC.sup.RB is a quantity of subcarriers in a resource block (RB), and M is the subcarrier offset.
7. An apparatus, comprising: a receiver, configured to receive a random access signal; and a processor, configured to respond to the random access signal, wherein the random access signal satisfies the following formula: is a frequency position of a starting subcarrier of the random access preamble; t is a time position of the random access signal; 0≤t<T.sub.SEQ+T.sub.CP; T.sub.SEQ is a time length of the sequence length; and wherein a format of the random access preamble is a format 3, the subcarrier spacing of the random access preamble is 5 kHz, and a value of φ is 12; or a format of the random access preamble is one of A1, A2, A3, B1, B2, B3, B4, C0, or C2, the subcarrier spacing of the random access preamble is one of 15 kHz, 30 kHz, 60 kHz, or 120 kHz, and a value of φ is 2.
8. The apparatus according to claim 7, wherein receiving the random access signal comprises: determining a frequency position of a random access resource based on a subcarrier offset and a resource block position of the random access resource; and receiving the random access signal from a terminal device at the frequency position of the random access resource.
9. The apparatus according to claim 8, wherein the frequency position of the random access resource satisfies the following formula: F.sub.SC=F.sub.RB×N.sub.SC.sup.RB+M, wherein F.sub.SC is the frequency position of the random access resource, F.sub.RB is the resource block position of the random access resource, N.sub.SC.sup.RB is a quantity of subcarriers in a resource block (RB), and M is the subcarrier offset.
10. A method, comprising: receiving a random access signal; and responding to the random access signal, wherein the random access signal satisfies the following formula: is a frequency position of a starting subcarrier of the random access preamble; t is a time position of the random access signal; 0≤t<T.sub.SEQ+T.sub.CP; T.sub.SEQ is a time length of the sequence length; and wherein a format of the random access preamble is a format 3, the subcarrier spacing of the random access preamble is 5 kHz, and a value of φ is 12; or a format of the random access preamble is one of A1, A2, A3, B1, B2, B3, B4, C0, or C2, the subcarrier spacing of the random access preamble is one of 15 kHz, 30 kHz, 60 kHz, or 120 kHz, and a value of φ is 2.
11. The method according to claim 10, wherein receiving the random access signal comprises: determining a frequency position of a random access resource based on a subcarrier offset and a resource block position of the random access resource; and receive the random access signal from a terminal device at the frequency position of the random access resource.
12. The method according to claim 11, wherein the frequency position of the random access resource satisfies the following formula: F.sub.SC=F.sub.RB×N.sub.SC.sup.RB+M, wherein F.sub.SC is the frequency position of the random access resource, F.sub.RB is the resource block position of the random access resource, N.sub.SC.sup.RB is a quantity of subcarriers in a resource block (RB), and M is the subcarrier offset.
13. A non-transitory memory storage medium comprising computer-executable instructions that, when executed, facilitate an apparatus carrying out operations comprising: generating a random access signal; and sending the random access signal to a network device, wherein the random access signal satisfies the following formula: is a frequency position of a starting subcarrier of the random access preamble; t is a time position of the random access signal; 0≤t<T.sub.SEQ+T.sub.CP; T.sub.SEQ is a time length of the sequence length; and wherein a format of the random access preamble is a format 3, the subcarrier spacing of the random access preamble is 5 kHz, and a value of φ is 12; or a format of the random access preamble is one of A1, A2, A3, B1, B2, B3, B4, C0, or C2, the subcarrier spacing of the random access preamble is one of 15 kHz, 30 kHz, 60 kHz, or 120 kHz, and a value of φ is 2.
14. The non-transitory memory storage medium according to claim 13, wherein the sending the random access signal to a network device comprises: determining a frequency position of a random access resource based on a subcarrier offset and a resource block position of the random access resource; and sending the random access signal to the network device at the frequency position of the random access resource.
15. The non-transitory memory storage medium according to claim 14, wherein determining the frequency position of the random access resource based on the subcarrier offset and the resource block position of the random access resource comprises: determining the frequency position of the random access resource that satisfies the following formula: F.sub.SC=F.sub.RB×N.sub.SC.sup.RB+M, wherein F.sub.SC is the frequency position of the random access resource, F.sub.RB is the resource block position of the random access resource, N.sub.SC.sup.RB is a quantity of subcarriers in a resource block (RB), and M is the subcarrier offset.
16. A non-transitory memory storage medium comprising computer-executable instructions that, when executed, facilitate an apparatus carrying out operations comprising: receiving a random access signal; and responding to the random access signal, wherein the random access signal satisfies the following formula: is a frequency position of a starting subcarrier of the random access preamble; t is a time position of the random access signal; 0≤t<T.sub.SEQ+T.sub.CP; T.sub.SEQ is a time length of the sequence length; and wherein a format of the random access preamble is a format 3, the subcarrier spacing of the random access preamble is 5 kHz, and a value of φ is 12; or a format of the random access preamble is one of A1, A2, A3, B1, B2, B3, B4, C0, or C2, the subcarrier spacing of the random access preamble is one of 15 kHz, 30 kHz, 60 kHz, or 120 kHz, and a value of φ is 2.
17. The non-transitory memory storage medium according to claim 16, wherein receiving the random access signal comprises: determining a frequency position of a random access resource based on a subcarrier offset and a resource block position of the random access resource; and receive the random access signal from a terminal device at the frequency position of the random access resource.
18. A system, comprising: a transmitter; and a receiver; wherein the transmitter is configured to perform the following: sending a random access signal to the receiver, wherein the random access signal satisfies the following formula: is a frequency position of a starting subcarrier of the random access preamble; t is a time position of the random access signal; 0≤t<T.sub.SEQ+T.sub.CP; T.sub.SEQ is a time length of the sequence length; and wherein a format of the random access preamble is a format 3, the subcarrier spacing of the random access preamble is 5 kHz, and a value of φ is 12; or a format of the random access preamble is one of A1, A2, A3, B1, B2, B3, B4, C0, or C2, the subcarrier spacing of the random access preamble is one of 15 kHz, 30 kHz, 60 kHz, or 120 kHz, and a value of φ is 2; and wherein the receiver is configured to receive the random access signal.
19. The system according to claim 18, wherein sending the random access signal to the receiver comprises: determining a frequency position of a random access resource based on a subcarrier offset and a resource block position of the random access resource; and sending the random access signal to the network device at the frequency position of the random access resource.
20. The system according to claim 19, wherein determining the frequency position of the random access resource based on the subcarrier offset and a resource block position of the random access resource comprises: determining the frequency position of the random access resource satisfies the following formula: F.sub.SC=F.sub.RB×N.sub.SC.sup.RB+M, wherein F.sub.SC is the frequency position of the random access resource, F.sub.RB is the resource block position of the random access resource, N.sub.SC.sup.RB is a quantity of subcarriers in a resource block (RB), and M is the subcarrier offset.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for describing the embodiments of the present invention.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
(16) Embodiments of this application may be applied to a wireless communications system. It should be noted that the wireless communications system mentioned in the embodiments of this application includes but is not limited to a narrowband Internet of things (NB-IoT) system, a global system for mobile communications (GSM), an enhanced data rate 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, an NR (new radio) communications system, and three main application scenarios of a next-generation 5G mobile communications system: enhanced mobile broadband (eMBB), URLLC, and massive machine-type communications (mMTC).
(17) In the embodiments of this application, a terminal device includes but is not limited to a mobile station (MS), a mobile terminal device (Mobile Terminal), a mobile telephone, a handset, portable equipment, and the like. The terminal device may communicate with one or more core networks through a radio access network (RAN). For example, the terminal device may be a mobile telephone (or referred to as a “cellular” telephone), or a computer having a wireless communication function, or the terminal device may be a portable, pocket-sized, handheld, computer built-in, or in-vehicle mobile apparatus or device.
(18)
(19) As shown in
(20) The network device 101 may be a device that is configured to communicate with the terminal device, and may be, for example, a base transceiver station (BTS) in a GSM system or CDMA system, or may be a NodeB (NB) in a WCDMA system, or may be an evolved NodeB (eNB or eNodeB) in an LTE system or a network side device in a future 5G network. Also, the network device may be a relay station, an access point, a vehicle-mounted device, or the like. In a terminal device-to-terminal device (D2D) communications system, the network device may also be a terminal device playing a role of a base station. The terminal device may include various handheld devices, vehicle-mounted devices, wearable devices, and computing devices that have a wireless communication function, or other processing devices connected to a wireless modem, and various forms of user equipment (UE), mobile stations (MS), and the like.
(21) In an NR communications system, formats of a random access preamble are classified into two types. When a sequence length is 839, the random access preamble has four formats, which are a format 0 to a format 3 respectively, as shown in Table 1.
(22) TABLE-US-00001 TABLE 1 Random access Sequence Subcarrier Time preamble format length spacing length 0 839 1.25 kHz 1 ms 1 839 1.25 kHz 3 ms 2 839 1.25 kHz 3.5 ms 3 839 5 kHz 1 ms
(23) When the sequence length is 127 or 139, the random access preamble has ten formats, as shown in Table 2.
(24) TABLE-US-00002 TABLE 2 Random access Sequence Subcarrier Quantity of preamble format length spacing OFDM symbols A0 127 or 139 15 × 2″ kHz 1 A1 127 or 139 15 × 2″ kHz 2 A2 127 or 139 15 × 2″ kHz 4 A3 127 or 139 15 × 2″ kHz 6 B1 127 or 139 15 × 2″ kHz 2 B2 127 or 139 15 × 2″ kHz 4 B3 127 or 139 15 × 2″ kHz 6 B4 127 or 139 15 × 2″ kHz 12 C0 127 or 139 15 × 2″ kHz 1 C2 127 or 139 15 × 2″ kHz 4
(25) Herein, u=1, 2 or 3. In addition, bandwidth allocation of a random access resource corresponding to the random access preamble and a quantity of guard subcarriers are further defined in the NR communications system, as shown in Table 3.
(26) TABLE-US-00003 TABLE 3 Subcarrier Quantity of Quantity of Se- spacing on a Uplink RBs allocated guard sub- quence random access subcarrier to a random carriers of a length channel spacing access signal frequency band 839 1.25 15 6 25 839 1.25 30 3 25 839 1.25 60 2 313 839 5 {15, 30, 60} {24, 12, 6} 25 139 15 {15, 30} {12, 6} 5 139 15 60 3 5 139 30 {15, 30, 60} {24, 12, 6} 5 139 60 {60, 120} {12, 6} 5 139 120 {60, 120} {24, 12} 5
(27) Although the random access preamble having a plurality of formats and sizes of allocated bandwidths have been defined in the NR communications system, there is no suitable method for determining a frequency position of the random access resource. To resolve the foregoing problem, an embodiment of the present invention provides a random access signal sending method, including: determining, by a terminal device, a frequency position of a random access resource based on at least one of an initial frequency offset, a random access resource configuration period, an uplink channel bandwidth, a time period of a random access resource, a time period of the random access resource, and a frequency index of the random access resource that are configured by a network device. In this way, the terminal device is prevented from shooting in the dark on a frequency position of a random access resource, and further, the network device can receive the random access signal on the corresponding random access resource, thereby improving efficiency of a random access process.
(28) It should be understood that, the described configuring information by the network device may be configuring a piece of index information, and looking up a table based on an index to obtain specific information, or may be directly configuring a piece of specific information.
(29)
(30) S201. A network device sends configuration information to a terminal device, and the terminal device receives the configuration information from the network device.
(31) Specifically, the configuration information includes at least one of an initial frequency offset, a random access resource configuration period, an uplink channel bandwidth, a bandwidth of a random access resource, a time period of a random access resource, a time period of the random access resource, and a frequency index of the random access resource. The random access resource is a time-frequency resource used for transmitting a random access preamble. The random access resource occupies a particular time in time domain and occupies a particular bandwidth in frequency domain. A random access resource configuration pattern represents distribution of time periods and frequency positions of all available random access resources in a specified time-frequency resource set. The random access resource configuration period is a time length within which the time-frequency resource set periodically recurs, and the random access resource configuration period may be represented through a quantity of system frames, subframes, slots, or OFDM symbols. The random access resource configuration pattern periodically recurs. The uplink channel bandwidth represents a system bandwidth used by the terminal device to perform uplink sending, and a size of the uplink channel bandwidth may be represented through a quantity of RBs. The bandwidth of the random access resource represents a size of a frequency resource occupied by the random access resource in frequency domain, and the bandwidth may be represented through a quantity of RBs. The time period of the random access resource represents a time length occupied by the random access resource in time domain, and the time length may be represented through a quantity of subframes, slots, or OFDM symbols. Also, the time period of the random access resource represents an absolute time position of the random access resource, including a system frame number, a subframe number in a system frame, a slot number in a subframe, an OFDM symbol in a slot, or a time position in an OFDM symbol (where a basic time unit is used as a granularity); or represents a relative position of the random access resource within the random access resource configuration period, to be specific, the random access resource exists on T time positions within the random access resource configuration period, where the time period of the random access resource refers to relative positions 0, 1, . . . , and T−1. The frequency index of the random access resource represents an index of the random access resource in frequency domain.
(32) The terminal device may be directly notified by the network device of values of various parameters in the configuration information, or the network device sends indexes of the parameters to the terminal device. The parameters in the configuration information may be carried in one message, or may be carried in a plurality of messages. For example, the network device sends a time period of the random access resource through at least one of RRC signaling, SI, RMSI, NR SIB1, MAC CE signaling, DCI (downlink control information), a PBCH, and a PDCCH order. The time period of the random access resource may be an absolute time, or may be an index of the time period (for example, a system frame number, a subframe number in a system frame, a slot number in a subframe, or an OFDM symbol in a slot).
(33) For the random access resource configuration pattern, a time length of the random access resource configuration pattern is K slots in a subcarrier spacing corresponding to the random access preamble, where K is a positive integer. Optionally, the time length of the random access resource configuration pattern is determined based on at least one actually transmitted downlink signal. When the at least one actually transmitted downlink signal is larger and more random access resources are associated with the at least one actually transmitted downlink signal, the time length of the random access resource configuration pattern is longer. Otherwise, an actual length of the random access resource configuration pattern is shorter. Optionally, the random access resource configuration period is at least one of 0.125 ms, 0.25 ms, 0.5 ms, 2 ms, 1 ms, 5 ms, 10 ms, 20 ms, 40 ms, 80 ms, 160 ms, and 320 ms, where 0.125 ms is one slot corresponding to 120 kHz, 0.25 ms is one slot corresponding to 60 kHz or two slots corresponding to 120 kHz. The network device may directly notify the terminal device of the time length of the random access resource configuration period, for example, directly notify the terminal device of 0.125 ms. Also, the network device may notify the terminal device of an index of the time length. For example, an index of 0.125 ms is 1, an index of 0.25 ms is 2, and so on. When the network device configures the time length of the random access resource configuration period as 0.125 ms, the network device notifies the terminal device of the index 1 of 0.125 ms. Optionally, the random access resource configuration period and the time length of the random access resource configuration pattern are both configured by the network device. Optionally, the random access resource configuration period and the time length of the random access resource configuration pattern are separately obtained based on a random access resource configuration index. Optionally, the random access resource configuration period is obtained based on a random access resource configuration index, and the time length of the random access resource configuration pattern is obtained based on the configuration information of the network device. Optionally, the time length of the random access resource configuration pattern is obtained based on a random access resource configuration index, and the random access resource configuration period is obtained based on the configuration information of the network device.
(34) The configuration information may be indicated through at least one of RRC (Radio Resource Control) signaling, SI (system information), RMSI (remaining minimum system information), NR SIB1 (new radio system information block type 1), MAC CE (media access control-control element) signaling, DCI (downlink control information), a PBCH (physical broadcast channel), and a PDCCH order (physical downlink control channel order).
(35) For example,
(36) In a possible implementation, the configuration information further includes a frequency hopping offset.
(37) Specifically, the frequency hopping offset represents a frequency offset between two random access resources adjacent to each other within a same time period in a time-frequency resource set corresponding to the random access resource. For example, referring to
(38) In a possible implementation, the network device may indicate the initial frequency offset f.sub.start and/or the frequency hopping offset f.sub.offset based on the following system information (SI): prach-FreqOffset INTEGER(0, . . . , N1)optional prach-HoppingOffset INTERGER(0, . . . , N2)optional where prach-FreqOffset is the initial frequency offset with a value range of 0 to N1; and prach-HoppingOffset is the frequency hopping offset with a value range of 0 to N2, where both N1 and N2 are positive integers.
(39) In another possible implementation, the frequency hopping offset f.sub.offset is determined based on indication information of the network device and/or at least one of the bandwidth N.sub.RA of the random access resource, a subcarrier spacing SCS.sub.BWP of an initial active uplink band, and a subcarrier spacing SCS.sub.UL of the uplink channel bandwidth. For example, when the indication information of the network device is X, f.sub.offset=X×N.sub.RA, f.sub.offset=N.sub.RA×└N.sub.RB/X┘, f.sub.offset=X×SCS.sub.BWP, or f.sub.offset=X×SCS.sub.UL.
(40) S202. The terminal device determines a frequency position of the random access resource based on the configuration information.
(41) Specifically, the frequency position of the random access resource represents an absolute position of the random access resource in frequency domain, the frequency position of the random access resource uses an RB or an RB group as a granularity, and a starting frequency of the random access resource is aligned with a starting frequency of an RB. For example, when a bandwidth of the random access resource is a fixed value, the frequency position of the random access resource may be represented through a frequency position of a starting RB or a frequency position of a middle RB of the random access resource.
(42) In a possible implementation, the terminal device determines the frequency position of the random access resource based on the initial frequency offset, the time period of the random access resource, the random access resource configuration period, the bandwidth of the random access resource, the uplink channel bandwidth, and a value N configured by the network device or a standard preset constant N. For example, when N=2, the frequency position of the random access resource may be determined based on the following first formula.
(43) First Formula:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=(f.sub.start+f.sub.offset+N.sub.RA×f.sub.RA)mod N.sub.RB, where
(44) └ ┘ represents a rounding down operator; mod represents a modulo operator; F.sub.RB is the frequency position of the random access resource; f.sub.start is the initial frequency offset; T.sub.RA is the random access resource configuration period; N.sub.RB is the uplink channel bandwidth, may be understood as a channel bandwidth in which an uplink random access process is performed, and may be an initial active uplink bandwidth part (initial active uplink bandwidth part); N.sub.RA is the bandwidth of the random access resource; t.sub.RA is the time period of the random access resource; and f.sub.RA is the frequency index of the random access resource. As shown in the following figure, in another implementation, the initial frequency offset f.sub.start is fixed to 0, and does not need to be configured.
(45)
(46) In this embodiment of the present invention, T.sub.RA may be understood as the absolute time length of the random access resource configuration period. In this case, t.sub.RA may be understood as the absolute time of the random access resource. Also, T.sub.RA may be understood as a quantity of random access resources in time within the random access resource configuration period. In this case, t.sub.RA may be understood as an index of a relative time or a logical time of the random access resource within N random access resource configuration periods. Also, T.sub.RA may be understood as a quantity of random access resources in time and frequency within the random access resource configuration period. In this case, t.sub.RA may be understood as an index of a relative or logical resource of the random access resource within N random access resource configuration periods, where N>1. For example, T.sub.RA and/or t.sub.RA are one or more indexes of an absolute time or a logical time within a frame, a subframe, a slot, or an OFDM symbol.
(47) In another possible implementation, the terminal device determines the frequency position of the random access resource based on the time period of the random access resource, the random access resource configuration period, the frequency index of the random access resource, the initial frequency offset, the uplink channel bandwidth, the bandwidth of the random access resource, and a value N configured by the network device or a preset constant N. For example, when N=2, the frequency position of the random access resource may be determined based on the following second formula.
(48) Second formula:
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘;
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1);
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=0, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1); or
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘, where
(49) └ ┘ represents a rounding down operator, mod represents a modulo operator, F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(50) In another possible implementation, the terminal device determines the frequency position of the random access resource based on the time period of the random access resource, the random access resource configuration period, the bandwidth of the random access resource, the initial frequency offset, the frequency index of the random access resource, the frequency hopping offset, and a value N configured by the network device or a preset constant N. For example, when N=2, the frequency position of the random access resource may be determined based on the following third formula.
(51) Third Formula:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=(f.sub.start+f.sub.offset+N.sub.RA×f.sub.RA)mod N.sub.RB, where
(52) └ ┘ represents a rounding down operator, mod represents a modulo operator, F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, f.sub.RA is the frequency index of the random access resource, and f.sub.offset is the frequency hopping offset.
(53) In this embodiment of the present invention, the frequency index f.sub.RA of the random access resource may be understood as a logical frequency index of the random access resource in time. f.sub.RA is in a one-to-one correspondence with a physical frequency of the random access resource. In a possible implementation, f.sub.RA increases with an increasing quantity of physical frequency positions of the random access resource. In another implementation, the physical frequency position corresponding to the random access resource whose index is f.sub.RA is determined based on a preset rule, a pattern, and a formula. In an implementation, f.sub.RA is an index of an uplink carrier frequency, an uplink channel bandwidth, an initial access uplink channel bandwidth part, or a logical frequency of an uplink channel bandwidth part. For example, f.sub.RA is an index of an initial access uplink channel bandwidth part of the random access resource. For another example, f.sub.RA is an index of at least one initial access uplink channel bandwidth part in an uplink carrier of the random access resource, to be specific, if the uplink carrier (and/or a corresponding uplink channel bandwidth) includes a plurality of initial access uplink channel bandwidth parts, random access resources on the plurality of initial access uplink channel bandwidth parts may be indexed together. For another example, f.sub.RA is an index of at least one initial access uplink channel bandwidth part in an uplink carrier of the random access resource, to be specific, if the uplink carrier or an uplink channel bandwidth includes a plurality of initial access uplink channel bandwidth parts, random access resources on the plurality of initial access uplink channel bandwidth parts may be indexed together. For another example, there are a plurality of uplink carriers in a cell, and f.sub.RA is a logical frequency index of each of all uplink random access resources.
(54) In this embodiment of the present invention, if the random access resource has only one frequency, that is, the index f.sub.RA=0, it may be considered that the frequency position of the random access resource is determined without using the index.
(55) In another possible implementation, the configuration information further includes a mapping relationship between at least one actually sent downlink signal and a random access resource in a random access resource configuration pattern.
(56) Specifically, the actually sent downlink signal is a signal used by the network device to perform downlink synchronization sending, and the downlink signal includes but is not limited to any one of an SS/PBCH block, a DMRS, and a CSI-RS.
(57) The SS/PBCH block includes an SS (synchronization signal) and a PBCH, and the SS includes a PSS (primary synchronization signal) and an SSS (secondary synchronization signal). The SS/PBCH block may further have other names, for example, an SS block.
(58) The network device determines the frequency position of the random access resource based on the mapping relationship between the at least one actually sent downlink signal and the random access resource in the random access resource configuration pattern.
(59) Optionally, when the at least one actually sent downlink signal and a plurality of random access resources in the random access resource configuration pattern have a mapping relationship, the terminal device determines the frequency position of the random access resource based on an index of the random access resource, the initial frequency offset, the frequency index of the random access resource, the uplink channel bandwidth, and the bandwidth of the random access resource, and for example, determines the frequency position of the random access resource based on the following fourth formula.
(60) Fourth Formula:
when n.sub.RO mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA.sup.RO; or
when n.sub.RO mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA.sup.RO+1), where
(61) mod represents a modulo operator, F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, f.sub.offset is the frequency hopping offset, n.sub.RO is the index of the random access resource, t.sub.RA.sup.RO represents the time period of the random access resource, and may be represented through a quantity of slots, subframes, or OFDM symbols, f.sub.RA.sup.RO is the frequency index of the random access resource, N.sub.RA is the bandwidth of the random access resource, and N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs.
(62) Also, the terminal device determines the frequency position of the random access resource based on the initial frequency offset, the time period of the random access resource, the frequency hopping offset, the bandwidth of the random access resource, the frequency index of the random access resource, and the uplink channel bandwidth, and for example, determines the frequency position of the random access resource based on the following fifth formula.
(63) Fifth Formula:
F.sub.RB=(f.sub.start+t.sub.RA.sup.RO×f.sub.offset+N.sub.RA×f.sub.RA.sup.RO)mod N.sub.RB, where
(64) mod represents a modulo operator, F.sub.RB is the frequency position of the random access resource, f.sub.start, is the initial frequency offset, n.sub.RO is an index of the random access resource, t.sub.RA.sup.RO is the time period of the random access resource, and may be represented through a quantity of slots, subframes, or OFDM symbols, f.sub.offset represents the frequency hopping offset, N.sub.RA is the bandwidth of the random access resource, and N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs.
(65) Also, the terminal device determines the frequency position of the random access resource based on the time period of the random access resource, the initial frequency offset, the bandwidth of the random access resource, the frequency index of the random access resource, and the uplink channel bandwidth, and for example, determines the frequency position of the random access resource based on the following sixth formula.
(66) Sixth Formula:
when t.sub.RA.sup.RO mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA.sup.RO; or
when t.sub.RA.sup.RO mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA.sup.RO+1), where
(67) mod represents a modulo operator, F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, n.sub.RO is an index of the random access resource, t.sub.RA.sup.RO represents the time period of the random access resource, and may be represented through a quantity of slots, subframes, or OFDM symbols, f.sub.RA.sup.RO is the frequency index of the random access resource, N.sub.RA is the bandwidth of the random access resource, and N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs.
(68) Also, the terminal device determines the frequency position of the random access resource based on the time period of the random access resource, the initial frequency offset, the frequency index of the random access resource, the frequency hopping offset, and the uplink channel bandwidth, and for example, determines the frequency position of the random access resource based on the following seventh formula.
(69) Seventh Formula:
when t.sub.RA.sup.RO mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA.sup.RO; or
when t.sub.RA.sup.RO mod 2=1, F.sub.RB=(f.sub.start+t.sub.RA.sup.RO+f.sub.offset+N.sub.RA×f.sub.RA.sup.RO)mod N.sub.RB, where
(70) mod represents a modulo operator, F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, f.sub.offset is the frequency hopping offset, n.sub.RO is an index of the random access resource, t.sub.RA.sup.RO represents the time period of the random access resource, and may be represented through a quantity of slots, subframes, or OFDM symbols, f.sub.RA.sup.RO is the frequency index of the random access resource, N.sub.RA is the bandwidth of the random access resource, and N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs.
(71) For another example, when the at least one actually sent downlink signal and a random access resource in the random access resource configuration pattern have a mapping relationship, the terminal device determines the frequency position of the random access resource based on any one of the foregoing first to third formulas.
(72) In a possible implementation, the frequency position of the random access resource is determined based on a format of the random access preamble and the at least one actually transmitted downlink signal.
(73) Specifically, when the random access preamble has a length of 839, the random access preamble is defined to have four formats, which are a format 0 to a format 3 respectively. When the random access preamble has a length of 127 or 139, the random access preamble is defined to have ten formats, which are A0, A1, A2, A3, B1, B2, B3, B4, C0, and C2 respectively.
(74) For example, when the format of the random access preamble is any one of A0, A1, B1, and C0, the terminal device determines the frequency position of the random access resource based on the first formula or the second formula. When the format of the random access preamble is none of A0, A1, B1, and C0, the terminal device determines the frequency position of the random access resource based on the third formula.
(75) For another example, when the format of the random access preamble is any one of A0, A1, B1, and C0, and the quantity of actually sent downlink signals is less than or equal to M, the terminal device determines the frequency position of the random access resource based on the first formula or the second formula. Otherwise, the terminal device determines the frequency position of the random access resource based on the third formula. M is an integer greater than 0, and a value of M may be configured by the network device, or may be a predefined value.
(76) In this embodiment of the present invention, the index n.sub.RO of the random access resource may be a logical index of the random access resource in the random access resource configuration period or in a random access resource configuration pattern of the random access resource configuration period. The index n.sub.RO of the random access resource may also be an absolute time or a frequency index of the random access resource in the random access resource configuration period or in a random access resource configuration pattern of the random access resource configuration period. The index n.sub.RO of the random access resource may also be jointly represented by the frequency index f.sub.RA of the random access resource and the time index t.sub.RA of the random access resource.
(77) In a possible implementation, the frequency position of the random access resource is determined based on a frame structure type or a duplex mode.
(78) Specifically, frame structures used by the terminal device include a TDD (time division duplex) frame or an FDD (frequency division duplex) frame. The duplex mode includes full duplex, time division duplex, or frequency division duplex.
(79) For example, when the terminal device uses the FDD frame or the frequency division duplex to send the random access signal, the terminal device determines the frequency position of the random access resource based on the first formula or the second formula. When the terminal device uses the TDD frame or the time division duplex to send the random access signal, the terminal device determines the frequency position of the random access resource based on the third formula. When the terminal device uses the full duplex to send the random access signal, the terminal device determines the frequency position of the random access resource based on the sixth formula.
(80) In an implementation, the terminal device determines the frequency position of the random access resource based on the time period of the random access resource, uplink/downlink configuration information, the initial frequency offset, the bandwidth of the random access resource, the frequency index of the random access resource, and the uplink channel bandwidth. The uplink/downlink configuration information includes at least one of an uplink slot, a downlink slot, information about a quantity of undetermined slots, and period information T.sub.DL/UL. For example, the frequency position of the random access resource is determined based on the following eighth formula.
(81) Eighth Formula:
when └t.sub.RA/T.sub.DL/UL┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.DL/UL┘ mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA+1), where
(82) └ ┘ represents a rounding down operator, mod represents a modulo operator, F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T.sub.DL/UL represents the uplink/downlink configuration information, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(83) In a possible implementation, the terminal device determines the frequency position of the random access resource based on the time period of the random access resource, uplink/downlink configuration information, the frequency index of the random access resource, the initial frequency offset, and the bandwidth of the random access resource, and for example, determines the frequency position of the random access resource based on the following ninth formula.
(84) Ninth Formula:
when └t.sub.RA/T.sub.DL/UL┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘;
when └t.sub.RA/T.sub.DL/UL┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1);
when └t.sub.RA/T.sub.DL/UL┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1); or
when └t.sub.RA/T.sub.DL/UL┘ mod 2=1, and f.sub.RA mod 2=1, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘, where
(85) mod represents a modulo operator, └ ┘ represents a rounding down operator, F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T.sub.DL/UL represents the uplink/downlink configuration information, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(86) In a possible implementation, the terminal device determines the frequency position of the random access resource based on the time period of the random access resource, uplink/downlink configuration information, the initial frequency offset, the bandwidth of the random access resource, the frequency index of the random access resource, the frequency hopping offset, and the uplink channel bandwidth, and for example, determines the frequency position of the random access resource based on the following tenth formula.
(87) Tenth Formula:
when └t.sub.RA/T.sub.DL/UL┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.DL/UL┘ mod 2=1, F.sub.RB=(f.sub.start+f.sub.offset+N.sub.RA×f.sub.RA)mod N.sub.RB, where
(88) mod represents a modulo operator, └ ┘ represents a rounding down operator, F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T.sub.DL/UL represents the uplink/downlink configuration information, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, f.sub.RA is the frequency index of the random access resource, and f.sub.offset is the frequency hopping offset.
(89) In an implementation, the terminal device determines the frequency position of the random access resource based on the time period of the random access resource, a time period configured by the network device or a preset time period, the initial frequency offset, the bandwidth of the random access resource, and the frequency index of the random access resource. The time period T configured by the network device or the preset time period T is an absolute time, to be specific, a quantity of OFDM symbols, a quantity of slots, a quantity of subframes, a quantity of frames, and a quantity of milliseconds, such as 0.125 ms, 0.25 ms, 0.5 ms, 2 ms, 1 ms, 5 ms, 10 ms, 20 ms, 40 ms, 80 ms, 160 ms, and 320 ms. Optionally, T is a quantity of random access resources in a random access resource configuration pattern, or T is a quantity of downlink signals associated with the random access resource. For example, the terminal device determines the frequency position of the random access resource based on the following eleventh formula.
(90) Eleventh Formula:
when └t.sub.RA/T┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T┘ mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA+1), where
(91) mod represents a modulo operator, └ ┘ represents a rounding down operator, F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T represents the quantity of random access resources in the random access resource configuration pattern, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(92) For another example, the terminal device determines the frequency position of the random access resource based on the following twelfth formula.
(93) Twelfth Formula:
when └t.sub.RA/T┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘;
when └t.sub.RA/T┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1);
when └t.sub.RA/T┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1); or
when └t.sub.RA/T┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘, where
(94) mod represents a modulo operator, └ ┘ represents a rounding down operator, F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T represents the quantity of random access resources in the random access resource configuration pattern, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(95) For another example, the terminal device determines the frequency position of the random access resource based on the following thirteenth formula.
(96) Thirteenth Formula:
when └t.sub.RA/T┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T┘ mod 2=1, F.sub.RB=(f.sub.start+f.sub.offset+N.sub.RA×f.sub.RA)mod N.sub.RB, where
(97) mod represents a modulo operator, └ ┘ represents a rounding down operator, F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T represents the quantity of random access resources in the random access resource configuration pattern, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, f.sub.RA is the frequency index of the random access resource, and f.sub.offset is the frequency hopping offset.
(98) S203. The terminal device sends a random access signal to the network device, and the network device receives the random access signal from the terminal device.
(99) Specifically, the terminal device selects one random access preamble from a random access preamble set; maps the selected random access preamble to the frequency position of the random access resource determined in S202, to generate a random access signal; and sends the random access signal to the network device. A rule used by the terminal device to select a to-be-sent random access preamble is not limited in this embodiment.
(100) It should be noted that before receiving the random access signal sent by the terminal device, the network device needs to determine the frequency position of the random access resource based on the configuration information. For a method used by the network device to determine the frequency position of the random access resource based on the configuration information, refer to the method that is used by the terminal device to determine the frequency position of the random access resource based on the configuration information and that is described in S202. Details are not described herein again.
(101) It should be noted that some parameters may be obtained based on other parameters. For example, the random access resource configuration period, the format of the random access preamble, a subcarrier spacing of the random access preamble, and the bandwidth of the random access resource may be obtained based on at least one of the index of the random access resource and a subcarrier spacing of a message 3. For another example, the bandwidth of the random access resource may be determined based on at least one of the format of the random access preamble, a subcarrier spacing of the random access preamble, and a subcarrier spacing of a message 3. For another example, the initial frequency offset and the frequency hopping offset are determined based on at least one of a subcarrier spacing of the random access preamble, a subcarrier spacing of a message 3, and a quantity of random access resources within a same time period.
(102) Based on the embodiment shown in
(103)
(104) S301. A network device sends configuration information to a terminal device, and the terminal device receives the configuration information from the network device.
(105) The configuration information includes at least one of an initial frequency offset, a random access resource configuration period, an uplink channel bandwidth, a bandwidth of a random access resource, a time period of a random access resource, a time period of the random access resource, and a frequency index of the random access resource. The random access resource is a time-frequency resource used for transmitting a random access preamble. The random access resource occupies a particular time in time domain and occupies a particular bandwidth in frequency domain. A random access resource configuration pattern represents a time length within which a specified time-frequency resource set periodically recurs, and the random access resource configuration period may be represented through a quantity of system frames, subframes, slots, or OFDM symbols. The uplink channel bandwidth represents a system bandwidth used by the terminal device to perform uplink sending, and a size of the uplink channel bandwidth may be represented through a quantity of RBs. The bandwidth of the random access resource represents a size of a frequency resource occupied by the random access resource in frequency domain, and the bandwidth may be represented through a quantity of RBs. The time period of the random access resource represents a time length occupied by the random access resource in time domain, and the time length may be represented through a quantity of subframes, slots, or OFDM symbols. The frequency index of the random access resource represents a number of the random access resource in frequency domain.
(106) In a possible implementation, the configuration information further includes a bandwidth of an initial active uplink bandwidth part (initial active uplink bandwidth part). Referring to
(107) S302. The terminal device determines a resource block position of the random access resource based on the configuration information.
(108) The resource block position of the random access resource is only a resource position at which the random access resource is in an initial active uplink bandwidth part. The terminal device further needs to determine an absolute frequency position of the random access resource jointly based on a frequency position at which the initial active uplink bandwidth part is in the uplink channel bandwidth, a resource position in the initial active uplink bandwidth part, a subcarrier offset, and a frequency position on an uplink channel.
(109) The random access resource is a time-frequency resource used for transmitting a random access preamble. The random access resource occupies a particular time in time domain and occupies a particular bandwidth in frequency domain. A random access resource configuration pattern represents position distribution of all available random access resources in a specified time-frequency resource set. The random access resource configuration period is a time length of the time-frequency resource set, and the random access resource configuration period may be represented through a quantity of system frames, subframes, slots, or OFDM symbols. The random access resource configuration pattern periodically recurs, and a repetition period is the random access resource configuration period. The uplink channel bandwidth represents a system bandwidth used by the terminal device to perform uplink sending. A size of the uplink channel bandwidth may be represented through a quantity of RBs. The bandwidth of the random access resource represents a size of a frequency resource occupied by the random access resource in frequency domain, and the bandwidth may be represented through a quantity of RBs. The time period of the random access resource represents a time length occupied by the random access resource in time domain, and the time length may be represented through a quantity of subframes, slots, or OFDM symbols. The frequency index of the random access resource represents an index of the random access resource in frequency domain. Identical random access resources have a same frequency index.
(110) For the random access resource configuration pattern, a time length of the random access resource configuration pattern is K slots in a subcarrier spacing corresponding to the random access preamble, where K is a positive integer. Optionally, the time length of the random access resource configuration pattern is determined based on at least one actually transmitted downlink signal. When the at least one actually transmitted downlink signal is larger and more random access resources are associated with the at least one actually transmitted downlink signal, the time length of the random access resource configuration pattern is longer. Otherwise, an actual length of the random access resource configuration pattern is shorter. Optionally, the random access resource configuration period is at least one of 0.125 ms, 0.25 ms, 0.5 ms, 2 ms, 1 ms, 5 ms, 10 ms, 20 ms, 40 ms, 80 ms, 160 ms, and 320 ms, where 0.125 ms is one slot corresponding to 120 kHz, 0.25 ms is one slot corresponding to 60 kHz or two slots corresponding to 120 kHz. Optionally, the random access resource configuration period and the time length of the random access resource configuration pattern are both configured by the network device. Optionally, the random access resource configuration period and the time length of the random access resource configuration pattern are separately obtained based on a random access resource configuration index.
(111) Optionally, the random access resource configuration period is obtained based on a random access resource configuration index, and the time length of the random access resource configuration pattern is obtained based on the configuration information of the network device.
(112) Optionally, the time length of the random access resource configuration pattern is obtained based on a random access resource configuration index, and the random access resource configuration period is obtained based on the configuration information of the network device.
(113) The configuration information may be indicated through at least one of RRC signaling, SI, RMSI, NR SIB0, NR SIB1, MAC CE signaling, DCI, a PBCH, and a PDCCH order.
(114) In a possible implementation, the configuration information further includes a frequency hopping offset.
(115) Specifically, for explanations and descriptions of the frequency hopping offset, refer to the foregoing descriptions. Details are not described herein again.
(116) In another possible implementation, the initial frequency offset f.sub.offset is determined based on indication information of the network device and/or the bandwidth N.sub.RA of the random access resource. For example, when the indication information of the network device is X, f.sub.offset=X×N.sub.RA or f.sub.offset=R.sub.RA×└N.sub.RB/X┘.
(117) Method 1: The terminal device may determine the resource block position of the random access resource based on the following fourteenth formula.
(118) Fourteenth Formula:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA+1), where
(119) └ ┘ represents a rounding down operation, mod represents a modulo operation, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(120) Method 2: The terminal device determines the resource block position of the random access resource based on the following fifteenth formula.
(121) Fifteenth Formula:
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘;
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1);
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=0, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1); or
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘, where
(122) └ ┘ represents a rounding down operator, mod represents a modulo operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(123) Method 3: The terminal device determines the resource block position of the random access resource based on the following sixteenth formula.
(124) Sixteenth Formula:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=(f.sub.start+f.sub.offset+N.sub.RA×f.sub.RA)mod N.sub.RB, where
(125) └ ┘ represents a rounding down operator, mod represents a modulo operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, f.sub.RA is the frequency index of the random access resource, and f.sub.offset is the frequency hopping offset.
(126) Method 4: The configuration information further includes a mapping relationship between at least one actually sent downlink signal and a random access resource in a random access resource configuration pattern.
(127) Specifically, the actually sent downlink signal is a signal used by the network device to perform downlink synchronization sending, and the downlink signal includes but is not limited to any one of an SS/PBCH block, a DMRS, and a CSI-RS.
(128) The network device determines the resource block position of the random access resource based on the mapping relationship between the at least one actually sent downlink signal and the random access resource in the random access resource configuration pattern.
(129) For example, when the at least one actually sent downlink signal and a plurality of random access resources in the random access resource configuration pattern have a mapping relationship, the terminal device determines the resource block position of the random access resource based on the following seventeenth formula.
(130) Seventeenth Formula:
when n.sub.RO mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA.sup.RO; or
when n.sub.RO mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA.sup.RO+1), where
(131) mod represents a modulo operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, f.sub.offset is the frequency hopping offset, n.sub.RO is an index of the random access resource, t.sub.RA.sup.RO represents the time period of the random access resource, and may be represented through a quantity of slots, subframes, or OFDM symbols, f.sub.RA.sup.RO is the frequency index of the random access resource, N.sub.RA is the bandwidth of the random access resource, and N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs.
(132) Method 5: The terminal device determines the resource block position of the random access resource based on the following eighteenth formula.
(133) Eighteenth Formula:
F.sub.RB=(f.sub.start+f.sub.RA.sup.RO×f.sub.offset+N.sub.RA×f.sub.RA.sup.RO)mod N.sub.RB, where
(134) mod represents a modulo operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, n.sub.RO is the index of the random access resource, t.sub.RA.sup.RO represents the time period of the random access resource, and may be represented through a quantity of slots, subframes, or OFDM symbols, f.sub.offset represents the frequency hopping offset, N.sub.RA is the bandwidth of the random access resource, and N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs.
(135) Method 6: The terminal device determines the resource block position of the random access resource based on the following nineteenth formula.
(136) Nineteenth Formula:
when t.sub.RA.sup.RO mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA.sup.RO; or
when t.sub.RA.sup.RO mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA.sup.RO+1), where
(137) mod represents a modulo operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, n.sub.RO is an index of the random access resource, t.sub.RA.sup.RO represents the time period of the random access resource, and may be represented through a quantity of slots, subframes, or OFDM symbols, f.sub.RA.sup.RO is the frequency index of the random access resource, N.sub.RA is the bandwidth of the random access resource, and N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs.
(138) Method 7: The terminal device determines the resource block position of the random access resource based on the following twentieth formula.
(139) Twentieth Formula:
when t.sub.RA.sup.RO mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA.sup.RO; or
when t.sub.RA.sup.RO mod 2=1, F.sub.RB=(f.sub.start+t.sub.RA.sup.RO×f.sub.offset+N.sub.RA×f.sub.RA.sup.RO)mod N.sub.RB, where
(140) mod represents a modulo operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, f.sub.offset is the frequency hopping offset, n.sub.RO is an index of the random access resource, t.sub.RA.sup.RO represents the time period of the random access resource, and may be represented through a quantity of slots, subframes, or OFDM symbols, f.sub.RA.sup.RO is the frequency index of the random access resource, N.sub.RA is the bandwidth of the random access resource, and N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs.
(141) For another example, when the at least one actually sent downlink signal and a random access resource in the random access resource configuration pattern have a mapping relationship, the terminal device determines the resource block position of the random access resource based on any one of the foregoing first formula to third formula.
(142) Method 8: The resource block position of the random access resource is determined based on a format of the random access preamble and the at least one actually transmitted downlink signal.
(143) Specifically, when the random access preamble has a length of 839, the random access preamble is defined to have four formats, which are a format 0 to a format 3 respectively. When the random access preamble has a length of 127 or 139, the random access preamble is defined to have ten formats, which are A0, A1, A2, A3, B1, B2, B3, B4, C0, and C2 respectively.
(144) For example, when the format of the random access preamble is any one of A0, A1, B1, and C0, the terminal device determines the resource block position of the random access resource based on the fourteenth formula or the fifteenth formula. When the format of the random access preamble is none of A0, A1, B1, and C0, the terminal device determines the resource block position of the random access resource based on the sixteenth formula.
(145) For another example, when the format of the random access preamble is any one of A0, A1, B1, and C0, and the quantity of actually sent downlink signals is less than or equal to M, the terminal device determines the resource block position of the random access resource based on the first formula or the second formula. Otherwise, the terminal device determines the resource block position of the random access resource based on the third formula. M is an integer greater than 0, and a value of M may be configured by the network device, or may be a predefined value.
(146) Method 9: The resource block position of the random access resource is determined based on a frame structure type or a duplex mode.
(147) Specifically, frame structures used by the terminal device include a TDD (time division duplex) frame or an FDD (frequency division duplex) frame. The duplex mode includes full duplex, time division duplex, or frequency division duplex.
(148) For example, when the terminal device uses the FDD frame or the frequency division duplex to send a random access signal, the terminal device determines the resource block position of the random access resource based on the first formula or the second formula. When the terminal device uses the TDD frame or the time division duplex to send a random access signal, the terminal device determines the resource block position of the random access resource based on the third formula. When the terminal device uses the full duplex to send a random access signal, the terminal device determines the frequency position of the random access resource based on the nineteenth formula.
(149) In another possible implementation, the terminal device further determines the resource block position of the random access resource based on uplink/downlink configuration information and/or a duplex mode. The uplink/downlink configuration information includes at least one of an uplink slot, a downlink slot, information about a quantity of undetermined slots, and period information T.sub.DL/UL. Specifically, the frequency position is determined based on the following twenty-first formula.
(150) Twenty-First Formula:
when └t.sub.RA/T.sub.DL/UL┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.DL/UL┘ mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA+1), where
(151) mod represents a modulo operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T.sub.DL/UL represents the uplink/downlink configuration information, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(152) For another example, the terminal device determines the frequency position based on the following twenty-second formula.
(153) Twenty-Second Formula:
when └t.sub.RA/T.sub.DL/UL┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘;
when └t.sub.RA/T.sub.DL/UL┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1);
when └t.sub.RA/T.sub.DL/UL┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1); or
when └t.sub.RA/T.sub.DL/UL┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=f.sub.start+N.sub.RA×┘f.sub.RA/2┘, where
(154) mod represents a modulo operator, └ ┘ represents a rounding down operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T.sub.DL/UL represents the uplink/downlink configuration information, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(155) For another example, the terminal device determines the frequency position based on the following twenty-third formula.
(156) Twenty-Third Formula:
when └t.sub.RA/T.sub.DL/UL┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.DL/UL┘ mod 2=1, F.sub.RB=(f.sub.start+f.sub.offset+N.sub.RA×f.sub.RA)mod N.sub.RB, where
(157) mod represents a modulo operator, └ ┘ represents a rounding down operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T.sub.DL/UL represents the uplink/downlink configuration information, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(158) In another possible implementation, the terminal device further determines the resource block position of the random access resource based on a time period T configured by the network device or a preset time period T. Optionally, T is an absolute time, to be specific, a quantity of OFDM symbols, a quantity of slots, a quantity of subframes, a quantity of frames, and a quantity of milliseconds, such as 0.125 ms, 0.25 ms, 0.5 ms, 2 ms, 1 ms, 5 ms, 10 ms, 20 ms, 40 ms, 80 ms, 160 ms, and 320 ms. For another example, T is a quantity of random access resources. For example, the terminal device determines the frequency position of the random access resource based on the following twenty-fourth formula.
(159) Twenty-Fourth Formula:
when └t.sub.RA/T┘ mod 2=, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when t.sub.RA/T┘ mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA+1), where
(160) mod represents a modulo operator, └ ┘ represents a rounding down operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T represents the quantity of random access resources in the random access resource configuration pattern, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(161) For another example, the terminal device determines the frequency position of the random access resource based on the following twenty-fifth formula.
(162) Twenty-Fifth Formula:
when └t.sub.RA/T┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘;
when └t.sub.RA/T┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1);
when └t.sub.RA/T┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1); or
when └t.sub.RA/T┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘, where
(163) mod represents a modulo operator, └ ┘ represents a rounding down operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T represents the quantity of random access resources in the random access resource configuration pattern or T is a quantity of downlink signals associated with the random access resource, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(164) For another example, the terminal device determines the frequency position of the random access resource based on the following twenty-sixth formula.
(165) Twenty-Sixth Formula:
when └t.sub.RA/T┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T┘ mod 2=1, F.sub.RB=(f.sub.start+f.sub.offset+N.sub.RA×f.sub.RA)mod N.sub.RB, where
(166) mod represents a modulo operator, └ ┘ represents a rounding down operator, F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T represents the quantity of random access resources in the random access resource configuration pattern, N.sub.RA is the bandwidth of the random access resource, N.sub.RB represents the uplink channel bandwidth, which, for example, is represented through a quantity of RBs, t.sub.RA represents the time period of the random access resource, f.sub.RA is the frequency index of the random access resource, and f.sub.offset is the frequency hopping offset.
(167) It should be noted that the foregoing determined resource block position of the random access resource is only a resource position at which the random access resource is in an initial active uplink bandwidth part. The terminal device further needs to determine an absolute frequency position of the random access resource jointly based on a frequency position at which the initial active uplink bandwidth part is in the uplink channel bandwidth, a resource position in the initial active uplink bandwidth part, a subcarrier offset, and a frequency position on an uplink channel.
(168) In all embodiments of the present invention, the initial frequency offset f.sub.start may be a value configured or indicated by the network device or a preset value, for example, preset to 0. It should be noted that all conditions for determining that X mod 2 is equal to 0 or 1 in the present invention are only for illustrative description. In practice, it may be that X mod K is equal to 0, 1, . . . , or K−1, where K is an integer not less than 2.
(169) A method used by the terminal device to obtain the subcarrier offset may be: determining the subcarrier offset based on an offset of the at least one actually sent downlink signal (for example, an SS block), where the offset of the at least one actually sent downlink signal is the same as the subcarrier offset; if a subcarrier spacing SCS 1 of a downlink signal (or a downlink initial access bandwidth part) is different from a subcarrier spacing SCS 2 of the random access resource or the initial active uplink bandwidth part (or the uplink channel bandwidth), the subcarrier offset of the random access resource needs to be determined jointly based on the SCS 1, the subcarrier offset Offset, and the SCS 2, for example, the offset is M=Offset×SCS1/SCS2. Also, the subcarrier offset is a preconfigured or prestored value. Also, the subcarrier offset is related to a frequency index and/or a carrier frequency of an initial available random access resource in the random access resource configuration pattern. Also, the subcarrier offset is different from the offset of the at least one downlink signal, and indication information indicating the subcarrier offset is different from indication information indicating the offset of the at least one actually sent downlink signal, where the indication information indicating the subcarrier offset includes at least one of RRC signaling, SI, RMSI, NR SIB0, NR SIB1, MAC CE signaling, DCI, a PBCH, and a PDCCH order.
(170) S303. The terminal device determines the frequency position of the random access resource based on the subcarrier offset and the resource block position.
(171) The frequency position of the random access resource represents an absolute position of the random access resource in frequency domain, and the frequency position of the random access resource uses a subcarrier or an RE as a granularity. A starting frequency of the random access resource is aligned with a starting frequency of a subcarrier or an RE. For example, the frequency position of the random access resource may be represented through a frequency position of a starting subcarrier or a frequency position of a middle subcarrier.
(172) In a possible implementation, the terminal device determines the frequency position of the random access resource based on the following twenty-seventh formula.
(173) Twenty-Seventh Formula:
F.sub.SC=F.sub.RB×N.sub.SC.sup.RB+M, where
(174) F.sub.SC is the frequency position of the random access resource, and uses a subcarrier or an RE as a granularity; F.sub.RB is the resource block position of the random access resource, and uses an RB or an RB group as a granularity; N.sub.SC.sup.RB is a quantity of subcarriers included in one RB; and M is the subcarrier offset.
(175) It should be noted that if in a random access resource configuration period or a random access resource configuration pattern, one downlink signal is mapped to a plurality of random access resources, the terminal device may select one of the plurality of random access resources randomly or according to a predefined rule as the random access resource for random access. The predefined rule may be: selecting, based on a minimum bandwidth capability of the terminal device, any random access resource in the supported bandwidth; or selecting a corresponding random access resource based on a size of a message 3 of the terminal device, receive power (or a path loss or transmit power) of a downlink signal, a preset threshold, and a correspondence between the random access resource and the threshold; or selecting, by the terminal device, a random access resource according to another rule. This embodiment imposes no limitation thereon.
(176) S304. The terminal device sends a random access signal to the network device at the frequency position of the random access resource, and the network device receives the random access signal from the terminal device.
(177) Specifically, the terminal device selects one random access preamble from a random access preamble set; maps the selected random access preamble to the frequency position of the random access resource determined in S303, to generate a random access signal; and sends the random access signal to the network device. A rule used by the terminal device to select a to-be-sent random access preamble is not limited in this embodiment.
(178) It should be noted that before receiving the random access signal sent by the terminal device, the network device needs to determine the frequency position of the random access resource based on the resource block position and the subcarrier offset of the random access resource. For a process of determining the frequency position, refer to the process of determining the frequency position of the random access resource by the terminal device in
(179) The terminal device may generate the random access signal based on the following twenty-eighth formula.
(180)
where
(181) s(t) is the random access signal; β.sub.PRACH is an amplitude adjustment factor of the random access signal, and is used to control transmit power of the random access signal; N.sub.ZC is a sequence length of a random access preamble; x.sub.u,v(n) represents a ZC sequence; T.sub.CP represents a length of a cyclic prefix; and t represents a time period of a preamble, starts from 0, and includes the sequence length and the length of the CP: 0≤t<T.sub.SEQ+T.sub.CP.
(182) Δf.sub.RA represents a subcarrier spacing of the random access preamble; K=Δf/Δf.sub.RA, where Δf represents a subcarrier spacing of an initial active uplink bandwidth part (IAU BWP) or an active uplink bandwidth part (BWP); t is a time position of the random access resource; and a value of φ is shown in Table 4.
(183) TABLE-US-00004 TABLE 4 Random access preamble format Δf.sub.RA φ 0, 1, 2 1250 Hz K1 3 5000 Hz K2 A0, A1, A2, A3, B1, {15, 30, K3 B2, B3, B4, C0, C1 60, 120 kHz
(184) K1 and K2 may be any integers from 0 to 25, and K3 may be any integer from 0 to 5. For example, K1=12, K2=12, and K3=2. For another example, K1=13, K2=13, and K3=3.
(185) For example, when K1=12, K2=12, and K3=2, the random access signal may also be generated based on the following twenty-ninth formula.
(186) A person skilled in the art should understand that, some parameters in the twenty-eighth formula are consistent with parameters in a random access signal generation formula in an LTE protocol. For example, meanings of the parameters may be understood as follows:
(187) s(t) is the random access signal, and β.sub.PRACH is an amplitude adjustment factor of the random access signal, and is used to control transmit power of the random access signal.
(188) N.sub.ZC is a sequence length of a random access preamble, where based on records in Table 3, the sequence length may be 839 or 139.
(189) x.sub.u,v(n) represents a sequence for generating the random access preamble, and may be, for example, a ZC sequence.
(190) T.sub.CP represents an absolute time length of a cyclic prefix according to an LTE standard, and T.sub.SEQ represents an absolute time length of the sequence. As shown in Table 3A, different preamble formats correspond to different time lengths, where T.sub.RA=1/(15000×2048) seconds.
(191) TABLE-US-00005 TABLE 3A Preamble format T.sub.CP T.sub.SEQ 0 3168 .Math. T.sub.s .sup. 24576 .Math. T.sub.s 1 21024 .Math. T.sub.s .sup. 24576 .Math. T.sub.s 2 6240 .Math. T.sub.s 2 .Math. 24576 .Math. T.sub.s 3 21024 .Math. T.sub.s 2 .Math. 24576 .Math. T.sub.s 4 448 .Math. T.sub.s .sup. 4096 .Math. T.sub.s
(192) t represents an absolute time of a preamble, starts from 0, and includes the sequence length and the length of the CP, and 0≤t<T.sub.SEQ+T.sub.CP.
(193) t−T.sub.CP represents the absolute time of the preamble minus the absolute time of the cyclic prefix, that is, a time length of the sequence.
(194) Δf.sub.RA represents a subcarrier spacing of the random access preamble.
(195) K=Δf/Δf.sub.RA, where Δf represents a subcarrier spacing of an initial active uplink bandwidth part (IAU BWP) or an uplink access bandwidth part (BWP).
(196) k.sub.0 is a frequency position of a starting subcarrier on a random access channel, and k.sub.0=F.sub.RBN.sub.sc.sup.RB−N.sub.RB.sup.ULN.sub.sc.sup.RB/2 or k.sub.0=F.sub.SC−N.sub.RB.sup.ULN.sub.sc.sup.RB/2, where F.sub.RB is the frequency position (of the resource block) of the random access resource that is obtained in the foregoing embodiment, F.sub.SC is the frequency position (of the resource element or the subcarrier) of the random access resource that is obtained in the foregoing embodiment, N.sub.sc.sup.RB is a quantity of subcarriers in an RB, and a value of N.sub.sc.sup.RB is 12, and N.sub.RB.sup.UL is an uplink channel bandwidth.
(197) φ (where the variant may also be represented through another letter) represents an offset relative to the frequency position of the random access resource (an extra offset on a frequency of the random access channel, where a starting frequency position of the random access channel includes an RB position and the subcarrier offset). A value of φ is shown in Table 4, and details are not described again.
(198)
(199) For descriptions of various parameters in the twenty-ninth formula, refer to the twenty-eighth formula.
(200) For another example, when K1=13, K2=13, and K3=2, the random access signal may also be generated based on the following thirtieth formula.
(201)
(202) For descriptions of various parameters in the thirtieth formula, refer to the twenty-eighth formula.
(203) Based on the embodiment in
(204)
(205) S401. A network device determines a resource block position of a random access resource based on configuration information.
(206) For a process of determining the resource block position of the random access resource by the network device based on the configuration information, refer to the process of determining the resource block position of the random access resource by the terminal device based on the configuration information in
(207) S402. The network device sends the resource block position of the random access resource to a terminal device, and the terminal device receives the resource block position of the random access resource from the network device.
(208) The network device may send the resource block position of the random access resource through at least one of RRC signaling, SI, RMSI, NR SIB0, NR SIB1, MAC CE signaling, DCI, a PBCH, and a PDCCH order.
(209) S403. The terminal device determines a frequency position of the random access resource based on a subcarrier offset and the resource block position.
(210) For a specific process of S403, refer to the descriptions of S303 in
(211) S404. The terminal device sends a random access signal to the network device, and the network device receives the random access signal from the terminal device.
(212) For a specific process of S404, refer to the descriptions of S304 in
(213) Based on the embodiment in
(214) The random access signal sending method in the embodiment of the present invention of
(215) It should be noted that the apparatus 5 shown in
(216) Optionally, the configuration information further includes: a frequency hopping offset.
(217) Optionally, that the processing unit 502 is configured to determine a frequency position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA+1), where
(218) F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(219) Optionally, that the processing unit 502 is configured to determine a frequency position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘;
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1);
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=0, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1); or
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘, where
(220) F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(221) Optionally, that the processing unit 502 is configured to determine a frequency position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=(f.sub.start+f.sub.offset+N.sub.RA×f.sub.RA)mod N.sub.RB, where
(222) F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, f.sub.RA is the frequency index of the random access resource, and f.sub.offset is the frequency hopping offset.
(223) Optionally, the configuration information further includes a mapping relationship between at least one actually sent downlink signal and a random access resource in a random access resource configuration pattern.
(224) Optionally, the configuration information further includes a format of a random access preamble corresponding to the random access signal and/or at least one actually sent downlink signal.
(225) Optionally, the configuration information further includes at least one of a system frame structure, uplink/downlink configuration information, and a duplex mode that are corresponding to the random access preamble.
(226) The apparatus 5 may be a terminal device, or the apparatus 5 may be a field programmable gate array (FPGA), a dedicated integrated chip, a system on chip (SoC), a central processing unit (CPU), a network processor (NP), a digital signal processing circuit, or a micro control unit (MCU) that implements a related function, or may be a programmable logic device (PLD) or another integrated chip.
(227) This embodiment of the present invention and the method embodiment in
(228) It should be noted that a random access signal receiving apparatus (hereinafter briefly referred to as an apparatus 6) shown in
(229) Optionally, the configuration information further includes a frequency hopping offset.
(230) Optionally, that the processing unit 602 is configured to determine a frequency position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA+1), where
(231) F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(232) Optionally, that the processing unit 602 is configured to determine a frequency position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘;
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1);
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=0, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1); or
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘, where
(233) F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(234) Optionally, that the processing unit 602 is configured to determine a frequency position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=(f.sub.start+f.sub.offset+N.sub.RA×f.sub.RA)mod N.sub.RB, where
(235) F.sub.RB is the frequency position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource, and f.sub.offset is the frequency hopping offset.
(236) Optionally, the configuration information further includes a mapping relationship between at least one actually sent downlink signal and a random access resource in a random access resource configuration pattern.
(237) Optionally, the configuration information further includes a format of a random access preamble corresponding to the random access signal and/or at least one actually sent downlink signal.
(238) Optionally, the configuration information further includes at least one of a system frame structure, uplink/downlink configuration information, and a duplex mode that are corresponding to the random access preamble.
(239) The apparatus 6 may be a network device, or the apparatus 6 may be a field programmable gate array (FPGA), a dedicated integrated chip, a system on chip (SoC), a central processing unit (CPU), a network processor (NP), a digital signal processing circuit, or a micro control unit (MCU) that implements a related function, or may be a programmable logic device (PLD) or another integrated chip.
(240) This embodiment of the present invention and the method embodiment in
(241) The random access signal sending method in the embodiments of the present invention of
(242) It should be noted that the apparatus 7 shown in
(243) Optionally, that the processing unit 701 is configured to determine a frequency position of a random access resource based on a subcarrier offset and a resource block position of the random access resource specifically includes:
(244) F.sub.SC=F.sub.RB×N.sub.SC.sup.RB+M, where F.sub.SC is the frequency position of the random access resource, F.sub.RB is the resource block position of the random access resource, N.sub.SC.sup.RB is a quantity of subcarriers in a resource block RB, and M is the subcarrier offset.
(245) Optionally, the subcarrier offset is the same as an offset of at least one actually sent downlink signal; or
(246) the subcarrier offset is related to a frequency index and/or a carrier frequency of an initial random access resource in a random access resource configuration pattern corresponding to the random access resource; or
(247) indication information used to indicate the subcarrier offset is different from indication information used to indicate an offset of at least one actually sent downlink signal.
(248) Optionally, the apparatus 7 further includes a receiving unit (not shown in the figure). The receiving unit is configured to receive configuration information from the network device, where the configuration information includes at least one of an initial frequency offset, a random access resource configuration period, an uplink channel bandwidth, a bandwidth of the random access resource, a time period of a random access resource, a time period of the random access resource, and a frequency index of the random access resource.
(249) The processing unit is further configured to determine the resource block position of the random access resource based on the configuration information.
(250) Also, the receiving unit is configured to receive the resource block position of the random access resource from the network device.
(251) Optionally, the configuration information further includes a frequency hopping offset.
(252) Optionally, that the processing unit 701 is configured to determine the resource block position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA+1), where
(253) F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(254) Optionally, that the processing unit 701 is configured to determine the resource block position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘;
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1);
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=0, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1); or
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘, where
(255) F.sub.RB is the resource block position of the random access resource, f.sub.start, is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(256) Optionally, that the processing unit 701 is configured to determine the resource block position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=(f.sub.start+f.sub.offset+N.sub.RA×f.sub.RA)mod N.sub.RB, where
(257) F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, f.sub.RA is the frequency index of the random access resource, and f.sub.offset is the frequency hopping offset.
(258) Optionally, the configuration information further includes a mapping relationship between at least one actually sent downlink signal and a random access resource in a random access resource configuration pattern.
(259) Optionally, the configuration information further includes a format of a random access preamble corresponding to the random access signal and/or at least one actually sent downlink signal.
(260) Optionally, the configuration information further includes at least one of a frame structure, uplink/downlink configuration information, and a duplex mode.
(261) The apparatus 7 may be a terminal device, or the apparatus 7 may be a field programmable gate array (FPGA), a dedicated integrated chip, a system on chip (SoC), a central processing unit (CPU), a network processor (NP), a digital signal processing circuit, or a micro control unit (MCU) that implements a related function, or may be a programmable logic device (PLD) or another integrated chip.
(262) This embodiment of the present invention and the method embodiments in
(263) It should be noted that a random access signal receiving apparatus (hereinafter briefly referred to as an apparatus 8) shown in
(264) Optionally, that the processing unit 801 is configured to determine a frequency position of a random access resource based on a subcarrier offset and a resource block position of the random access resource specifically includes:
(265) F.sub.SC=F.sub.RB×N.sub.SC.sup.RB+M, where F.sub.SC is the frequency position of the random access resource, F.sub.RB is the resource block position of the random access resource, N.sub.SC.sup.RB is a quantity of subcarriers in a resource block RB, and M is the subcarrier offset.
(266) Optionally, the subcarrier offset is the same as an offset of a downlink signal; or
(267) the subcarrier offset is related to a frequency index and/or a carrier frequency of an initial random access resource in a random access resource configuration pattern corresponding to the random access resource; or
(268) indication information used to indicate the subcarrier offset is different from indication information used to indicate an offset of at least one actually sent downlink signal.
(269) Optionally, the apparatus 8 further includes a sending unit (not shown in the figure). The sending unit is configured to send configuration information to the terminal device, where the configuration information includes at least one of an initial frequency offset, a random access resource configuration period, an uplink channel bandwidth, a bandwidth of the random access resource, a time period of a random access resource, a time period of the random access resource, and a frequency index of the random access resource.
(270) Also, the processing unit 801 is further configured to determine the resource block position of the random access resource, where the configuration information includes at least one of an initial frequency offset, a random access resource configuration period, an uplink channel bandwidth, a bandwidth of the random access resource, a time period of a random access resource, a time period of the random access resource, and a frequency index of the random access resource.
(271) The sending unit is configured to send the resource block position of the random access resource to the terminal device.
(272) Optionally, the configuration information further includes a frequency hopping offset.
(273) Optionally, that the processing unit 801 is configured to determine the resource block position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(f.sub.RA+1), where
(274) F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(275) Optionally, that the processing unit 801 is configured to determine the resource block position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘;
when └t.sub.RA/T.sub.RA┘ mod 2=0 and f.sub.RA mod 2=1, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1);
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=0, F.sub.RB=N.sub.RB−f.sub.start−N.sub.RA×(└f.sub.RA/2┘+1); or
when └t.sub.RA/T.sub.RA┘ mod 2=1 and f.sub.RA mod 2=1, F.sub.RB=f.sub.start+N.sub.RA×└f.sub.RA/2┘, where
(276) F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, and f.sub.RA is the frequency index of the random access resource.
(277) Optionally, that the processing unit 801 is configured to determine the resource block position of the random access resource based on the configuration information specifically includes:
when └t.sub.RA/T.sub.RA┘ mod 2=0, F.sub.RB=f.sub.start+N.sub.RA×f.sub.RA; or
when └t.sub.RA/T.sub.RA┘ mod 2=1, F.sub.RB=(f.sub.start+f.sub.offset+N.sub.RA×f.sub.RA)mod N.sub.RB, where
(278) F.sub.RB is the resource block position of the random access resource, f.sub.start is the initial frequency offset, T.sub.RA is the random access resource configuration period, N.sub.RB is the uplink channel bandwidth, N.sub.RA is the bandwidth of the random access resource, t.sub.RA is the time period of the random access resource, f.sub.RA is the frequency index of the random access resource, and f.sub.offset is the frequency hopping offset.
(279) Optionally, the configuration information further includes a mapping relationship between at least one actually sent downlink signal and a random access resource in a random access resource configuration pattern.
(280) Optionally, the configuration information further includes a format of a random access preamble corresponding to the random access signal and/or at least one actually sent downlink signal.
(281) Optionally, the configuration information further includes at least one of a frame structure, uplink/downlink configuration information, and a duplex mode.
(282) The apparatus 8 may be a network device, or the apparatus 8 may be a field programmable gate array (FPGA), a dedicated integrated chip, a system on chip (SoC), a central processing unit (CPU), a network processor (NP), a digital signal processing circuit, or a micro control unit (MCU) that implements a related function, or may be a programmable logic device (PLD) or another integrated chip.
(283) This embodiment of the present invention and the method embodiments in
(284)
(285) The memory 902 may be an independent physical unit, and may be connected to the processor 901, the transmitter 904, and the receiver 903 through a bus. Also, the memory 902, the processor 901, the transmitter 904, and the receiver 903 may be integrated together, and are implemented through hardware and the like.
(286) The transmitter 904 and the receiver 903 may further be connected to an antenna. The receiver 903 receives, through the antenna, information sent by another device. Correspondingly, the transmitter 904 sends information to another device through the antenna.
(287) The memory 902 is configured to store a program for implementing the foregoing method embodiments or various units in the apparatus embodiments. The processor 901 invokes the program, to perform an operation in the foregoing method embodiments.
(288) Optionally, when a part or all of a random access method in the foregoing embodiments is implemented through software, a random access apparatus may also include only a processor. A memory configured to store a program is located outside the random access apparatus, and the processor is connected to the memory through a circuit/a cable, and is configured to read and execute the program stored in the memory.
(289) The processor may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.
(290) The processor may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
(291) The memory may include a volatile memory (volatile memory), for example, a random access memory (RAM). The memory may also include a non-volatile memory (non-volatile memory), for example, a flash memory (flash memory), a hard disk drive (HDD), or a solid-state drive (SSD). The memory may further include a combination of the foregoing types of memories.
(292) In the foregoing embodiments, the sending unit or the transmitter performs sending steps in the foregoing method embodiments, the receiving unit or the receiver performs receiving steps in the foregoing method embodiments, and other steps are performed by another unit or the processor. The sending unit and the receiving unit may constitute a transceiver unit, and the receiver and the transmitter may constitute a transceiver.
(293) An embodiment of this application further provides a computer-readable storage medium, storing a computer program, where the computer program is used to perform the random access method provided in the foregoing embodiments.
(294) An embodiment of this application further provides a computer program product including an instruction. When the computer program product is run on a computer, the computer is enabled to perform the random access method provided in the foregoing embodiments.
(295) A person skilled in the art should understand that the embodiments of this application may be provided as a method, a system, or a computer program product. Therefore, this application may use a form of hardware only embodiments, software only embodiments, or embodiments with a combination of software and hardware. Moreover, this application may use a form of a computer program product that is implemented on one or more computer-usable storage media (including but not limited to a disk memory, a CD-ROM, an optical memory, and the like) that include computer usable program code.
(296) This application is described with reference to the flowcharts and/or block diagrams of the method, the device (system), and the computer program product according to the embodiments of this application. It should be understood that computer program instructions may be used to implement each process and/or each block in the flowcharts and/or the block diagrams and a combination of a process and/or a block in the flowcharts and/or the block diagrams. These computer program instructions may be provided for a general-purpose computer, a dedicated computer, an embedded processor, or a processor of any other programmable data processing device to generate a machine, so that the instructions executed by a computer or a processor of any other programmable data processing device generate an apparatus for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
(297) These computer program instructions may be stored in a computer readable memory that can instruct the computer or any other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory generate an artifact that includes an instruction apparatus. The instruction apparatus implements a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
(298) These computer program instructions may be loaded onto a computer or another programmable data processing device, so that a series of operations and steps are performed on the computer or the another programmable device, thereby generating computer-implemented processing. Therefore, the instructions executed on the computer or the another programmable device provide steps for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.