A random access method performed by a terminal device, the method comprising: a.) performing data transmission based on a first configuration parameter of a currently activated first bandwidth part, BWP, wherein the first configuration parameter of the first BWP comprises at least one of a first resource offset, a first bandwidth, and a first subcarrier spacing; b.) determining (503, 505) a first random access resource and a second configuration parameter for random access, wherein the second configuration parameter comprises at least one of a second resource offset, a second bandwidth, and a second subcarrier spacing, wherein the first random access resource and the second configuration parameter are associated with a second BWP; c.) sending a random access request to the network device on the first random access resource; d.) receiving a random access response based on the second configuration parameter, wherein the random access response is from the network device based on the random access request; e.) sending a random access message 3 to the network device based on the random access response, wherein the sending the random access message 3 to the network device based on the random access response comprises: ∘ parsing, by the terminal device based on the second configuration parameter, scheduling information carried in the random access response, wherein the scheduling information is used to indicate a first resource; and ∘ sending the random access message 3 to the network device on the first resource, wherein, when the terminal device performs the random access procedure, the method further comprises: • if the terminal device receives indication information for deactivating the first BWP from the network device, stopping the random access procedure, or determining that the current random access procedure fails. a.) performing data transmission based on a first configuration parameter of a currently activated first bandwidth part, BWP, wherein the first configuration parameter of the first BWP comprises at least one of a first resource offset, a first bandwidth, and a first subcarrier spacing; b.) determining (503, 505) a first random access resource and a second configuration parameter for random access, wherein the second configuration parameter comprises at least one of a second resource offset, a second bandwidth, and a second subcarrier spacing, wherein the first random access resource and the second configuration parameter are associated with a second BWP; c.) sending a random access request to the network device on the first random access resource; d.) receiving a random access response based on the second configuration parameter, wherein the random access response is from the network device based on the random access request; e.) sending a random access message 3 to the network device based on the random access response, wherein the sending the random access message 3 to the network device based on the random access response comprises: ∘ parsing, by the terminal device based on the second configuration parameter, scheduling information carried in the random access response, wherein the scheduling information is used to indicate a first resource; and ∘ sending the random access message 3 to the network device on the first resource, wherein, when the terminal device performs the random access procedure, the method further comprises: • if the terminal device receives indication information for deactivating the first BWP from the network device, stopping the random access procedure, or determining that the current random access procedure fails. ∘ parsing, by the terminal device based on the second configuration parameter, scheduling information carried in the random access response, wherein the scheduling information is used to indicate a first resource; and ∘ sending the random access message 3 to the network device on the first resource, • if the terminal device receives indication information for deactivating the first BWP from the network device, stopping the random access procedure, or determining that the current random access procedure fails.