Random access method, terminal device, and network device
A method includes: performing, by a terminal device, data transmission based on a configuration parameter of a currently activated first bandwidth part BWP, where the configuration parameter of the first BWP includes at least one of a first resource offset, a first bandwidth, and a first subcarrier spacing; determining, by the terminal device, a first random access resource and a second configuration parameter for random access, where the second configuration parameter includes at least one of a second resource offset, a second bandwidth, and a second subcarrier spacing; sending, by the terminal device, a random access request to the network device on the first random access resource; and receiving, by the terminal device, a random access response based on the second configuration parameter, where the random access response is sent by the network device based on the random access request.
1. A method, comprising:
performing, by a terminal device, data transmission according to a first configuration parameter of a currently activated first bandwidth part (BWP), wherein the first configuration parameter of the currently activated first BWP comprises a first resource offset and a first bandwidth;
determining, by the terminal device, a first random access resource and a second configuration parameter for random access if the currently activated first BWP does not include a random access resource when a random access procedure is initiated, wherein the second configuration parameter comprises a second resource offset and a second bandwidth, wherein a configuration parameter of a second BWP comprises the first random access resource and the second configuration parameter;
sending, by the terminal device, a random access request to a network device on the first random access resource; and
receiving, by the terminal device, a random access response according to the second configuration parameter, wherein receiving the random access response according to the second configuration parameter comprises:
determining first scheduling information according to the second configuration parameter, wherein the first scheduling information indicates a first resource; and
receiving, by the terminal device on the first resource, the random access response from the network device;
parsing, by the terminal device based on the second configuration parameter, second scheduling information carried in the random access response;
sending a random access message to the network device based on the second scheduling information; and
forcibly stopping, by the terminal device, in response to the terminal device receiving indication information for deactivating the currently activated first BWP, a random access procedure.
2. The method according to claim 1 , wherein:
information about the first random access resource or information about the second configuration parameter is carried in a system broadcast message.
3. The method according to claim 2 , wherein a radio resource control (RRC) reconfiguration message or the system broadcast message carries the configuration parameter of the second BWP.
4. The method according to claim 1 , wherein the first configuration parameter of the currently activated first BWP further comprises a first subcarrier spacing, and the configuration parameter of the second BWP further comprises a second subcarrier spacing.
5. A device, comprising:
a processor; and
a non-transitory memory, wherein the non-transitory memory stores an execution instruction; and when the processor executes the execution instruction to enable the device to:
perform data transmission according to a first configuration parameter of a currently activated first bandwidth part (BWP), wherein the first configuration parameter of the currently activated first BWP comprises a first resource offset and a first bandwidth;
determine a first random access resource and a second configuration parameter for random access if the currently activated first BWP does not include a random access resource when a random access procedure is initiated, wherein the second configuration parameter comprises a second resource offset and a second bandwidth, wherein a configuration parameter of a second BWP comprises the first random access resource and the second configuration parameter;
send a random access request to a network device on the first random access resource; and
receive a random access response according to the second configuration parameter, wherein the instructions to receive the random access response according to the second configuration parameter comprise instructions to:
determine first scheduling information according to the second configuration parameter, wherein the first scheduling information indicates a first resource; and
receive, on the first resource, the random access response from the network device;
parse based on the second configuration parameter, second scheduling information carried in the random access response;
send a random access message to the network device based on the second scheduling information; and
forcibly stop, in response to the device receiving indication information for deactivating the currently activated first BWP, a random access procedure.
6. The device according to claim 5 , wherein:
information about the first random access resource or information about the second configuration parameter is carried in a system broadcast message.
7. The device according to claim 6 , wherein a radio resource control (RRC) reconfiguration message or the system broadcast message carries the configuration parameter of the second BWP.
8. The device according to claim 5 , wherein the first configuration parameter of the currently activated first BWP further comprises a first subcarrier spacing, and the configuration parameter of the second BWP further comprises a second subcarrier spacing.
9. A non-transitory computer-readable storage medium having processor-executable instructions stored thereon, wherein the processor-executable instructions, when executed, facilitate:
performing, by a terminal device, data transmission according to a first configuration parameter of a currently activated first bandwidth part (BWP), wherein the first configuration parameter of the currently activated first BWP comprises a first resource offset and a first bandwidth;
determining, by the terminal device, a first random access resource and a second configuration parameter for random access if the currently activated first BWP does not include a random access resource when a random access procedure is initiated, wherein the second configuration parameter comprises a second resource offset and a second bandwidth, wherein a configuration parameter of a second BWP comprises the first random access resource and the second configuration parameter;
sending, by the terminal device, a random access request to a network device on the first random access resource; and
receiving, by the terminal device, a random access response according to the second configuration parameter, wherein receiving the random access response according to the second configuration parameter comprises:
determining first scheduling information according to the second configuration parameter, wherein the first scheduling information indicates a first resource; and
receiving, by the terminal device on the first resource, the random access response from the network device;
parsing, by the terminal device based on the second configuration parameter, second scheduling information carried in the random access response;
sending a random access message to the network device based on the second scheduling information; and
forcibly stopping, by the terminal device, in response to the terminal device receiving indication information for deactivating the currently activated first BWP, a random access procedure.
10. The non-transitory computer-readable storage medium according to claim 9 , wherein the first configuration parameter of the currently activated first BWP further comprises a first subcarrier spacing, and the configuration parameter of the second BWP further comprises a second subcarrier spacing.
11. The non-transitory computer-readable storage medium according to claim 9 , wherein information about the first random access resource or information about the second configuration parameter is carried in a system broadcast message.
12. The non-transitory computer-readable storage medium according to claim 11 , wherein a radio resource control (RRC) reconfiguration message or the system broadcast message carries the configuration parameter of the second BWP.