In this embodiment of this application, slot indexes in any one of the following items (1) to (49) in Table 1 are configured by considering three factors: First, a slot identified by the slot index is in the second half of an uplink-downlink configuration period. Second, a slot identified by the slot index is a slot other than an optional slot of an SSB. Third, in all optional configurations of a CORESET, a slot identified by the slot index is a slot having a smallest collision probability with an optional time domain position of the CORESET. The slot indexes in the following items (1) to (49) are as follows:
(1) the slot indexes {17, 19, 37, 39} in the PRACH configuration index 4;
(2) the slot indexes {17, 19, 37, 39} in the PRACH configuration index 5;
(3) the slot indexes {13, 15, 21, 23, 29, 31, 37, 39} in the PRACH configuration index 23;