Random access method and apparatus, terminal and storage medium
The application discloses a random access method and apparatus, a terminal, and a storage medium. The method includes: determining, by a terminal, a random access occasion (RO) time domain position group; and selecting a first RO from the RO time domain position group and calculating a random access radio network temporary identifier (RA-RNTI) of the first RO. The RO time domain position group includes at least one of the following: a transmittable frame number group and a first slot number group, or a second slot number group.
1 . A random access method, comprising:
determining, by a terminal, a random access occasion (RO) time domain position group; and
selecting a first RO from the RO time domain position group, and calculating a random access radio network temporary identifier (RA-RNTI) of the first RO,
wherein the RO time domain position group comprises at least one of the following:
a transmittable frame number group and a first slot number group, and
a second slot number group,
wherein the transmittable frame number group is used to indicate a transmittable frame, and the transmittable frame is a radio frame wherein an RO that is used to transmit a preamble is located;
the first slot number group is used to indicate a first slot that is based on a first subcarrier spacing and in which the RO is located in the transmittable frame; and
the second slot number group is used to indicate a second slot that is based on a second subcarrier spacing and in which the RO is located in the first slot,
wherein the determining, by the terminal, the random access occasion (RO) time domain position group comprises:
obtaining a random access channel (RACH) configuration table according to at least one of the frequency range for sending a physical random access channel (PRACH), the subcarrier spacing of the PRACH, and the frequency band characteristic for sending a PRACH;
searching the RACH configuration table according to a PRACH configuration index indicated by a network, to obtain the transmittable frame number group, the first slot number group, and a size M2 of the second slot number group in which the RO is located; and
determining that the second slot number group is M2 values predefined between 0 and N−1,
wherein N is a ratio of the second subcarrier spacing to the first subcarrier spacing; and
the M2 values of the second slot number group are one or more combinations of M2 values obtained from 0 to N−1.
2 . The random access method according to claim 1 , wherein the first subcarrier spacing or the second subcarrier spacing is related to at least one of the following:
a subcarrier spacing for sending a physical random access channel (PRACH);
a frequency range for sending a PRACH;
a format for sending a PRACH; or
a sequence length for sending a PRACH.
3 . The random access method according to claim 1 , wherein the first slot number group is related to at least one of the following:
a subcarrier spacing for sending a PRACH;
a frequency range for sending a PRACH;
a frequency band characteristic for sending a PRACH;
a format for sending a PRACH;
a sequence length for sending a PRACH;
a PRACH configuration index;
the first subcarrier spacing;
a number L of slots that are based on the first subcarrier spacing and that are contained in each radio frame;
a size M1 of the first slot number group; or
a configuration index of the first slot number group.
4 . The random access method according to claim 1 , wherein the second slot number group is related to at least one of the following:
a subcarrier spacing for sending a PRACH; or
a size M2 of the second slot number group.
5 . The random access method according to claim 1 , wherein that the M2 values of the second slot number group are one or more combinations of M2 values obtained from 0 to N−1 comprises one or more of the following: the first M2 values from 0 to N−1; the last M2 values from 0 to N−1; all or a part of X satisfying X mod (rounded up or rounded down value of N/M2)=Y, wherein X is an integer value between 0 and N−1, and Y is one or more predefined values; M2 consecutive values between 0 and N−1; or multiple M2 consecutive values between 0 and N−1.
6 . The random access method according to claim 1 , wherein the calculating the random access radio network temporary identifier (RA-RNTI) of the first RO comprises:
determining a time domain number corresponding to the first RO; and
calculating a RA-RNTI of the first RO based on the time domain number.
7 . The random access method according to claim 6 , wherein the time domain number is a third slot number based on a third subcarrier spacing, wherein the third subcarrier spacing is determined by one of the following:
when the subcarrier spacing of the PRACH belongs to a first set, the third subcarrier spacing is the subcarrier spacing of the PRACH; otherwise, the third subcarrier spacing is the fourth subcarrier spacing, wherein the fourth subcarrier spacing is a predefined subcarrier spacing.
8 . The random access method according to claim 6 , wherein the calculating the RA-RNTI of the first RO based on the time domain number comprises:
calculating the RA-RNTI of the first RO based on the time domain number by using one of the following formulas:
RA
‐
RNTI
=
1
+
s_id
+
14
×
t_id
+
1
4
×
X
×
f_id
+
1
4
×
X
×
8
×
ul_carrier
_id
formula
1
wherein X is obtained by the following method:
a size of a slot set in which an RO is sent within a frame
wherein s_id is a first OFDM symbol index of the first RO;
t_id is a time domain number corresponding to the first RO;
f_id is a frequency domain number corresponding to the first RO; and
ul_carrier_id is an uplink carrier used to transmit the preamble, 0 means a normal uplink carrier, and 1 means a supplementary uplink carrier.
9 . The random access method according to claim 8 , wherein the size of the slot set in which the RO is transmitted within a frame is the first slot set size multiplied by a second slot set size.
10 . The random access method according to claim 8 , further comprising:
determining, by the terminal according to a size of X, whether it is necessary to determine, based on a first indication of the network, a received random access response (RAR) scheduled by a physical downlink control channel (PDCCH), or determining, by the terminal, a size of the first indication according to a size of X.
11 . The random access method according to claim 10 , wherein the first indication comprises at least one of the following:
an ID of a group of the slot set in which the RO is sent within a frame;
an ID of a group of a slot set in which an RO is sent in a configurable frame in a RACH configuration table obtained according to at least one of the frequency range for sending a PRACH, the subcarrier spacing of the PRACH, and the frequency band characteristic for sending a PRACH; or
a rounded up value of (1+s_id+14×t_id+14×X×f_id+14×X×8×ul_carrier_id)/A.
12 . A terminal, comprising:
a memory storing a computer program; and
a processor coupled to the memory and configured to execute the computer program to perform operations comprising:
determining a random access occasion (RO) time domain position group; and
selecting a first RO from the RO time domain position group, and calculating a random access radio network temporary identifier (RA-RNTI) of the first RO,
wherein the RO time domain position group comprises at least one of the following:
a transmittable frame number group and a first slot number group, and
a second slot number group,
wherein the transmittable frame number group is used to indicate a transmittable frame, and the transmittable frame is a radio frame wherein an RO that is used to transmit a preamble is located;
the first slot number group is used to indicate a first slot that is based on a first subcarrier spacing and in which the RO is located in the transmittable frame; and
the second slot number group is used to indicate a second slot that is based on a second subcarrier spacing and in which the RO is located in the first slot,
wherein the determining the random access occasion (RO) time domain position group comprises:
obtaining a random access channel (RACH) configuration table according to at least one of the frequency range for sending a physical random access channel (PRACH), the subcarrier spacing of the PRACH, and the frequency band characteristic for sending a PRACH;
searching the RACH configuration table according to a PRACH configuration index indicated by a network, to obtain the transmittable frame number group, the first slot number group, and a size M2 of the second slot number group in which the RO is located; and
determining that the second slot number group is M2 values predefined between 0 and N−1,
wherein N is a ratio of the second subcarrier spacing to the first subcarrier spacing; and
the M2 values of the second slot number group are one or more combinations of M2 values obtained from 0 to N−1.
13 . The terminal according to claim 12 , wherein the second slot number group is related to at least one of the following:
a subcarrier spacing for sending a PRACH; or
a size M2 of the second slot number group.
14 . The terminal according to claim 12 , wherein the calculating the random access radio network temporary identifier (RA-RNTI) of the first RO comprises:
determining a time domain number corresponding to the first RO; and
calculating a RA-RNTI of the first RO based on the time domain number.
15 . The terminal according to claim 14 , wherein the time domain number is a third slot number based on a third subcarrier spacing, wherein the third subcarrier spacing is determined by one of the following:
when the subcarrier spacing of the PRACH belongs to a first set, the third subcarrier spacing is the subcarrier spacing of the PRACH; otherwise, the third subcarrier spacing is the fourth subcarrier spacing, wherein the fourth subcarrier spacing is a predefined subcarrier spacing.
16 . The terminal according to claim 14 , wherein the calculating the RA-RNTI of the first RO based on the time domain number comprises:
calculating the RA-RNTI of the first RO based on the time domain number by using one of the following formulas:
RA
‐
RNTI
=
1
+
s_id
+
14
×
t_id
+
1
4
×
X
×
f_id
+
1
4
×
X
×
8
×
ul_carrier
_id
formula
1
wherein X is obtained by the following method:
a size of a slot set in which an RO is sent within a frame
wherein s_id is a first OFDM symbol index of the first RO;
t_id is a time domain number corresponding to the first RO;
f_id is a frequency domain number corresponding to the first RO; and
ul_carrier_id is an uplink carrier used to transmit the preamble, 0 means a normal uplink carrier, and 1 means a supplementary uplink carrier.
17 . A non-transitory computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor of a terminal, causes the processor to perform operations comprising:
determining a random access occasion (RO) time domain position group; and
selecting a first RO from the RO time domain position group, and calculating a random access radio network temporary identifier (RA-RNTI) of the first RO,
wherein the RO time domain position group comprises at least one of the following:
a transmittable frame number group and a first slot number group, and
a second slot number group,
wherein the transmittable frame number group is used to indicate a transmittable frame, and the transmittable frame is a radio frame wherein an RO that is used to transmit a preamble is located;
the first slot number group is used to indicate a first slot that is based on a first subcarrier spacing and in which the RO is located in the transmittable frame; and
the second slot number group is used to indicate a second slot that is based on a second subcarrier spacing and in which the RO is located in the first slot,
wherein the determining the random access occasion (RO) time domain position group comprises:
obtaining a random access channel (RACH) configuration table according to at least one of the frequency range for sending a physical random access channel (PRACH), the subcarrier spacing of the PRACH, and the frequency band characteristic for sending a PRACH;
searching the RACH configuration table according to a PRACH configuration index indicated by a network, to obtain the transmittable frame number group, the first slot number group, and a size M2 of the second slot number group in which the RO is located; and
determining that the second slot number group is M2 values predefined between 0 and N−1,
wherein N is a ratio of the second subcarrier spacing to the first subcarrier spacing; and
the M2 values of the second slot number group are one or more combinations of M2 values obtained from 0 to N−1.
18 . The random access method according to claim 7 , wherein
when the subcarrier spacing of the PRACH is 15 KHz, 30 KHz, or 120 KHz, the third subcarrier spacing is the subcarrier spacing of the PRACH; otherwise, the third subcarrier spacing is 120 KHz.
19 . The terminal according to claim 15 , wherein
when the subcarrier spacing of the PRACH is 15 KHz, 30 KHz, or 120 KHz, the third subcarrier spacing is the subcarrier spacing of the PRACH; otherwise, the third subcarrier spacing is 120 KHz.
20 . The terminal according to claim 12 , wherein the first slot number group is related to at least one of the following:
a subcarrier spacing for sending a PRACH;
a frequency range for sending a PRACH;
a frequency band characteristic for sending a PRACH;
a format for sending a PRACH;
a sequence length for sending a PRACH;
a PRACH configuration index;
the first subcarrier spacing;
a number L of slots that are based on the first subcarrier spacing and that are contained in each radio frame;
a size M1 of the first slot number group; or
a configuration index of the first slot number group.