Communication resource switching method, terminal device, network device and storage medium

By coordinating the switching of communication resources between terminal devices and network devices, the problem of access failure caused by high or poor quality of random access resources in sixth-generation mobile communication systems is solved, thereby improving the success rate of random access.

WO2026236933A1PCT designated stage Publication Date: 2026-11-19GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/094661
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-13
Publication Date
2026-11-19

AI Technical Summary

Technical Problem

In sixth-generation mobile communication systems, how to switch the communication resources used for random access after the random access process is initiated is an issue that urgently needs to be studied, especially when the communication resource load is high or the quality is poor, which can easily lead to random access failure and reduce the success rate.

Method used

The terminal device switches to use the second communication resource for random access under preset conditions. The preset conditions include judgment of communication quality and load threshold, as well as indication information sent by the network device to guide the switching of communication resources.

Benefits of technology

By switching communication resources, random access failures caused by poor communication quality and high load are avoided, thus improving the success rate of random access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025094661_19112026_PF_FP_ABST
    Figure CN2025094661_19112026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a communication resource switching method, a terminal device, a network device and a storage medium. The method is applied to a terminal device. The method comprises: using a first communication resource to perform random access; and when a preset condition is satisfied, using a second communication resource to continue to perform random access. In the present application, during a random access procedure, when a switching condition for random access communication resources is satisfied, a terminal device may switch the random access communication resources in use, which avoids random access failures caused by poor communication quality and / or high load corresponding to the communication resources in use, thereby improving the random access success rate.
Need to check novelty before this filing date? Find Prior Art

Description

Communication resource switching methods, terminal equipment, network equipment and storage media Technical Field

[0001] This application relates to the field of communication technology, and in particular to a communication resource switching method, terminal equipment, network equipment, and storage medium. Background Technology

[0002] The random access procedure is a crucial process for establishing a connection between a terminal device and network equipment. Therefore, before random access, the terminal device needs to determine the communication resources to be used. In 5G New Radio (NR) mobile communication technology, the communication resources used for random access remain unchanged after the random access procedure is initiated. In 6G mobile communication technology systems, how the communication resources are used for random access after the random access procedure is initiated is a problem that urgently needs to be studied. Summary of the Invention

[0003] According to various embodiments of this application, a communication resource switching method, terminal device, network device, and storage medium are provided, which enable the switching of communication resources during random access.

[0004] The first aspect of this application provides a communication resource switching method, which is applied to a terminal device. The method includes: using a first communication resource for random access; and, under preset conditions, using a second communication resource to continue random access.

[0005] A second aspect of this application provides a communication resource switching method, which is applied to a network device. The method includes: during a random access process, sending indication information to the terminal device, the indication information being used to indicate random access communication resource switching.

[0006] A third aspect of this application provides a terminal device, comprising: a first random access module for performing random access using first communication resources; and a second random access module for continuing to perform random access using second communication resources when preset conditions are met.

[0007] A fourth aspect of this application provides a network device, including: a sending module, configured to send indication information to the terminal device during random access, the indication information being used to indicate a switch of random access communication resources.

[0008] The fifth aspect of this application provides a terminal device, including a transceiver, a memory, and a processor;

[0009] The memory is used to store computer programs, and the processor is used to invoke the computer programs and control the transceiver to receive or send signals so that the terminal device executes the method provided in the first aspect.

[0010] A sixth aspect of this application provides a network device, including a transceiver, a memory, and a processor;

[0011] The memory is used to store computer programs, and the processor is used to invoke the computer programs and control the transceiver to receive or send signals so that the network device performs the method provided in the second aspect.

[0012] A seventh aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described above.

[0013] The eighth aspect of this application provides a chip that includes programmable logic circuitry and / or program instructions, which, when running, can execute the methods described above in the embodiments of this application.

[0014] In this application, the terminal device uses a first communication resource for random access, and then uses a second communication resource to continue random access if preset conditions are met. By switching the random access communication resource according to the conditions, the device can switch between the used random access communication resources, thus avoiding random access failures caused by poor communication quality and / or high or heavy load corresponding to the used communication resources, thereby improving the success rate of random access.

[0015] Details of one or more embodiments of this application are set forth in the following drawings and description. Other features, objects, and advantages of this application will become apparent from the specification, drawings, and claims. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the conventional technology, the drawings used in the description of the embodiments or the conventional technology will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the disclosed drawings without creative effort.

[0017] Figure 1 is a schematic diagram of a network architecture provided in an embodiment of this application;

[0018] Figure 2 is a flowchart illustrating a communication resource switching method provided in an embodiment of this application;

[0019] Figure 3 is a flowchart illustrating another communication resource switching method provided in an embodiment of this application;

[0020] Figure 4 is a flowchart illustrating another communication resource switching method provided in an embodiment of this application;

[0021] Figure 5 is a flowchart illustrating another communication resource switching method provided in an embodiment of this application;

[0022] Figure 6 is an interactive schematic diagram of a communication resource switching method provided in an embodiment of this application;

[0023] Figure 7 is a structural schematic diagram of a terminal device provided in an embodiment of this application;

[0024] Figure 8 is a schematic diagram of the structure of a network device provided in an embodiment of this application;

[0025] Figure 9 is a schematic diagram of the structure of another terminal device provided in an embodiment of this application;

[0026] Figure 10 is a schematic diagram of another network device provided in an embodiment of this application. Detailed Implementation

[0027] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0028] To better understand the embodiments of this application, the network architecture used in the embodiments of this application will be described below.

[0029] Figure 1 is a schematic diagram of a network architecture provided in an embodiment of this application. As shown in Figure 1, the network architecture may include a terminal device 101 and a network device 102. The terminal device 101 and the network device 102 communicate with each other through a network.

[0030] Communication between terminal device 101 and network device 102 can include uplink communication (i.e., communication from terminal device 101 to network device 102) and downlink communication (i.e., communication from network device 102 to terminal device 101). In uplink communication, terminal device 101 sends uplink signals to network device 102; network device 102 receives uplink signals from terminal device 101. The uplink signals can be uplink control information. For example, uplink control information can be transmitted via a Physical Uplink Control Channel (PUCCH). Uplink signals can also be uplink data. For example, uplink data can be transmitted via a Physical Uplink Share Channel (PUSCH). In downlink communication, network device 102 sends downlink signals to terminal device 101; terminal device 101 receives downlink signals from network device 102. The downlink signals can be downlink control information. For example, downlink control information can be transmitted via the Physical Downlink Control Channel (PDCCH). Downlink signals can also be downlink data. For example, downlink data can be transmitted via the Physical Downlink Share Channel (PDSCH).

[0031] Terminal equipment, also known as user equipment (UE), subscriber station (STA), mobile station (MS), mobile terminal (MT), etc., is a device that provides voice and / or data connectivity to users. Terminal devices can include handheld terminals, Very Small Aperture Terminals (VSATs), laptops, Customer Premise Equipment (CPE) laptops, subscriber units, cellular phones, smartphones, wireless data cards, Personal Digital Assistant (PDA) computers, tablet computers, handheld devices, laptop computers, cordless phones, Wireless Local Loop (WLL) stations, Machine Type Communication (MTC) terminals, wearable devices (such as smartwatches, smart bracelets, pedometers, etc.), in-vehicle equipment (such as cars, bicycles, electric vehicles, airplanes, ships, trains, high-speed trains, etc.), Virtual Reality (VR) devices, Augmented Reality (AR) devices, wireless terminals in industrial control, smart home devices (such as refrigerators, televisions, air conditioners, electricity meters, etc.), intelligent robots, workshop equipment, and self-driving vehicles. Wireless terminals in applications such as driving, telemedicine, smart grids, transportation safety, smart cities, or smart homes; flying devices (such as intelligent robots, hot air balloons, drones, airplanes, etc.); or other devices capable of accessing networks. This application does not limit the specific technology or form of the terminal device.

[0032] Network equipment provides wireless access for terminal devices. Examples include base stations, which are primarily responsible for functions such as air interface-side radio resource management, Quality of Service (QoS) flow management, data compression, and encryption. Network equipment can be, in New Radio (NR) systems, next-generation NodeBs (gNBs), Transmission Reception Points (TRPs), evolved Node Bs (eNBs), Radio Network Controllers (RNCs), Node Bs (NBs), Base Station Controllers (BSCs), Base Transceiver Stations (BTSs), home base stations (e.g., Home evolved NodeBs or Home Node Bs (HNBs), Base Band Units (BBUs), or WiFi Access Points (APs).

[0033] It should be noted that the network architecture shown in Figure 1 is not limited to the terminal devices and network devices shown in the figure, but may also include other terminal devices and network devices not shown in the figure, and may also include core network devices, which will not be listed here in this application.

[0034] The aforementioned network architecture can be applied to Long Term Evolution (LTE) systems, 5G or NR systems, Non-Terrestrial Network (NTN) systems, Narrow Band-Internet of Things (NB-IoT) systems, Global System for Mobile Communications (GSM), Enhanced Data Rate for GSM Evolution (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access 2000 (CDMA2000), Time Division-Synchronization Code Division Multiple Access (TD-SCDMA), and communication systems evolving after 5G, such as 6G.

[0035] To better understand the technical solutions provided in this application, the relevant technologies of the embodiments of this application will be described below.

[0036] The random access procedure is a crucial process for establishing a connection between terminal devices and network devices. It can be used for initial access, connection reconstruction, and synchronization recovery after uplink synchronization failures, which will be explained in detail below.

[0037] During initial access, i.e. when the terminal device is powered on or enters the connected state from the idle state, the terminal device can establish uplink synchronization with the network device and obtain system information through random access in order to carry out subsequent data transmission.

[0038] In connection reconstruction, that is, after the terminal device’s wireless link fails, the terminal device can rebuild its connection with the network device through random access.

[0039] In the process of uplink synchronization loss recovery, that is, if the uplink timing of the terminal device loses synchronization during data transmission, the terminal device can resynchronize uplink through random access.

[0040] Random access can be either contention-based or non-contention-based, and these will be explained in detail below.

[0041] In contention-based random access, multiple terminal devices can simultaneously compete for the same random access resources. Contention-based random access procedures are applicable to most random access scenarios, such as initial access and connection reconstruction. Contention-based random access can be a two-step or a four-step process. The following explanation uses a four-step random access process as an example. A contention-based random access procedure may include the following steps.

[0042] 1. The terminal device sends a preamble to the network device.

[0043] Accordingly, the network device receives the preamble from the terminal device.

[0044] Terminal devices can obtain random access configuration information from system broadcast messages. This configuration information may include a preamble set, transmission power, etc. The terminal device can randomly select a preamble from the preamble set and then send a random access preamble message (Message, Msg)1 to the network device via the Random Access Channel (RACH). The random access preamble message includes the selected preamble.

[0045] 2. The network device sends a Random Access Response (RAR) message to the terminal device.

[0046] Accordingly, the terminal device receives RAR messages from the network device.

[0047] After receiving the preamble from the terminal device, the network device can send a RAR message, Msg2, to the terminal device via PDSCH. The RAR message can include Timing Advance (TA), Temporary Cell-Radio Network Temporary Identifier (TC-RNTI), and uplink (UL) grant information. Upon receiving the RAR message, the terminal device can adjust the uplink transmission timing based on the TA and determine uplink resources based on the uplink grant information.

[0048] 3. The terminal device sends a connection request message to the network device.

[0049] Accordingly, the network device receives connection request messages from the terminal device.

[0050] Terminal devices can use the uplink resources determined by the uplink scheduling information in the RAR to send a connection request message, i.e., Msg3, to the network device. The connection request message can include information such as the terminal device's identifier and the reason for the connection request. The connection request message can be a Layer 2 message or a Layer 3 message. It is used to request the network device to establish a connection or to perform other related signaling interactions. The terminal device's identifier can be a Cell-Radio Network Temporary Identifier (C-RNTI), a Short Temporary Mobile Subscriber Identity (S-TMSI), or other information that uniquely identifies the terminal device.

[0051] 4. The network device sends a contention resolution message to the terminal device.

[0052] Accordingly, the terminal device receives a contention resolution message from the terminal device.

[0053] After receiving a connection request message, the network device can process it according to the information included in the message. Then, it can send a contention resolution message (Msg4) to the terminal device via PDSCH. If multiple terminal devices send preambles simultaneously, the network device can determine which terminal device successfully connects using a contention resolution mechanism. The contention resolution message can include information such as the identifier of the winning terminal device. The terminal device can use the contention resolution message to determine whether it has successfully acquired the connection.

[0054] In non-contention-based random access, network devices can allocate dedicated random access resources to specific terminal devices. These terminal devices can then use these allocated resources for random access without competing with other terminal devices. Non-contention-based random access is primarily used in scenarios such as handover.

[0055] In non-contention-based random access, network devices can pre-allocate specific preambles and uplink resources to terminal devices. Terminal devices can then use the allocated uplink resources to send the preamble and subsequent messages without contention. Non-contention-based random access is similar to contention-based random access, but it lacks contention resolution steps.

[0056] The random access process ensures that terminal devices can quickly and reliably access the network, and enables functions such as uplink synchronization and resource allocation, laying the foundation for subsequent data transmission and signaling interaction.

[0057] When a terminal device performs random access in a cell configured with both uplink (UL) and supplementary uplink (SUL), the network device can indicate via signaling which UL or SUL to use. When a terminal device performs random access in a cell not configured with SUL, it can use SUL for random access if the downlink (DL) quality is below a threshold.

[0058] Before random access, the terminal device can determine the uplink communication resources. Once the random access process begins, the uplink communication resources used by the terminal device will remain unchanged. However, high load on the used communication resources may lead to random access failure, thus reducing the success rate of random access. Therefore, improving the success rate of random access has become an urgent problem to be solved.

[0059] Figure 2 is a flowchart illustrating a communication resource switching method provided in an embodiment of this application. This communication resource switching method is described from the perspective of a terminal device. As shown in Figure 2, the communication resource switching method may include the following steps.

[0060] 201. Use the first communication resource for random access.

[0061] Communication resources are resources used for communication, that is, resources used for communication between terminal devices and network devices.

[0062] The first communication resource can be the communication resource used by the terminal device when it begins random access, or the communication resource used by the terminal device during the random access process. The communication resources used by the terminal device when it begins random access can be the same as or different from the communication resources used during the random access process.

[0063] When the first communication resource is the communication resource used by the terminal device when it initiates random access, the terminal device can determine the first communication resource before performing random access, and then use the first communication resource for random access. The terminal device can determine the first communication resource based on its corresponding communication quality, its location, or both the communication quality and its location. The communication quality corresponding to the communication resource can be understood as the signal quality or the link quality. The signal quality can be understood as the quality of the signal transmitted by the communication resource. Signal quality can be the Reference Signal Received Power (RSRP), Reference Signal Received Quality (RSRQ), Received Signal Strength Indicator (RSSI), or other parameters that characterize signal quality. The link quality can be understood as the quality of the link corresponding to the communication resource. The terminal device's location is its current location.

[0064] When determining the first communication resource based on the communication quality corresponding to the communication resource, the terminal device can determine the communication quality corresponding to the communication resource. It can determine the first communication resource as the one with the highest corresponding communication quality, or it can first select a communication resource with a corresponding communication quality greater than or equal to a quality threshold. If only one communication resource is selected, the first communication resource can be the selected communication resource. If multiple communication resources are selected, the first communication resource can be the one with the highest corresponding communication quality among these multiple communication resources, or it can be any one of these multiple communication resources. When determining the first communication resource based on the location of the terminal device, the terminal device can determine the coverage area corresponding to the communication resource. It can select a communication resource whose coverage area includes the location of the terminal device from the communication resources to obtain the first communication resource. When determining the first communication resource based on both the communication quality corresponding to the communication resource and the location of the terminal device, the terminal device can determine both the communication quality and the coverage area corresponding to the communication resource. It can select a communication resource whose coverage area includes the location of the terminal device and whose corresponding communication quality is either the one with the highest or greater than or equal to a quality threshold from the communication resources to obtain the first communication resource. The coverage area corresponding to a communication resource can be understood as the coverage area of ​​the carrier corresponding to the communication resource.

[0065] It should be understood that the above is an exemplary description of how a terminal device determines the first communication resource, and is not intended to limit it.

[0066] If the first communication resource is the communication resource used by the terminal device during the random access process, and it is different from the communication resource used at the beginning of the random access, the terminal device can determine the first communication resource after performing random access, and then use the first communication resource to continue random access. That is, the communication resource used for random access is switched to the first communication resource and then random access is continued.

[0067] The first communication resource can be an uplink communication resource, or it can be both an uplink communication resource and a downlink communication resource.

[0068] When the first communication resource is an uplink communication resource, the terminal device can use the first communication resource to send information to the network device. For example, the terminal device can use the first communication resource to send a preamble to the network device.

[0069] When the first communication resource is both uplink and downlink communication resources, the terminal device can use the first communication resource to send information to the network device and also use the first communication resource to receive information from the network device.

[0070] 202. If the preset conditions are met, continue random access using the second communication resource.

[0071] The preset conditions are pre-defined conditions used to trigger the handover of random access communication resources, i.e., pre-set triggering conditions for the handover of random access communication resources. Random access communication resources are the communication resources used for random access, i.e., the communication resources used for random access. The second communication resource can be an uplink communication resource, a downlink communication resource, or both. The first and second communication resources can be the same or different.

[0072] During random access by a terminal device, the terminal device can determine whether preset conditions are met in real time, periodically, or at regular intervals. If the preset conditions are met, the terminal device can continue random access using second communication resources, that is, switching the communication resources for random access from the first communication resources to the second communication resources before continuing random access. If the preset conditions are not met, the terminal device can continue to use the first communication resources for random access.

[0073] The preset conditions may include one condition or multiple conditions. When the preset conditions include one condition, the terminal device may determine whether the condition is met in real time, periodically, or at regular intervals. If the condition is met, the second communication resource can be used to continue random access; if the condition is not met, the first communication resource can be used to continue random access.

[0074] When multiple preset conditions are present, the terminal device can determine in real time, periodically, or at regular intervals whether all conditions are met simultaneously. If all conditions are met, the second communication resource can be used to continue random access. If the first communication resource is not met, random access can continue to be performed.

[0075] In the method shown in Figure 2 above, during the random access process, the terminal device can switch the communication resources used for random access if the switching conditions for random access communication resources are met. This can avoid the situation where the communication quality of the communication resources used is poor and / or the load is high or heavy, which would lead to random access failure, thereby improving the success rate of random access.

[0076] Figure 3 is a flowchart illustrating another communication resource switching method provided in an embodiment of this application. This communication resource switching method is described from the perspective of a terminal device. As shown in Figure 3, the communication resource switching method may include the following steps.

[0077] 301. Use the first communication resource for random access.

[0078] The first communication resource may include one or more of the following: carrier, link, frequency point, and band. A carrier is an electromagnetic wave of a specific frequency used to carry information. A link is a logical communication path between two communication devices. For example, the two communication devices can be a terminal device and a network device. A frequency point is a specific frequency value or number used to identify the absolute location of a carrier or channel. A band is the continuous frequency range occupied by a carrier or channel.

[0079] When the first communication resource is the communication resource used by the terminal device during random access, the first communication resource can be the communication resource of the random access after the terminal device switches over when the preset conditions are met last time.

[0080] For further detailed description of step 301, please refer to the description of step 201.

[0081] 302. If one or more preset conditions are met, including receiving an indication message, the communication quality corresponding to the first communication resource being less than a first threshold, the communication quality corresponding to the second communication resource being greater than or equal to the first threshold, the load corresponding to the first communication resource being greater than or equal to a second threshold, the load corresponding to the second communication resource being less than the second threshold, the association between the first and second communication resources, and sending a first message, the second communication resource shall continue to be used for random access.

[0082] The preset conditions may include receiving indication information for random access communication resource switching, the communication quality corresponding to the first communication resource being less than a first threshold, the communication quality corresponding to the second communication resource being greater than or equal to the first threshold, the load corresponding to the first communication resource being greater than or equal to a second threshold, the load corresponding to the second communication resource being less than the second threshold, the association between the first and second communication resources, and sending one or more of the first messages, which will be described separately below. The second communication resource may include one or more of the following: carrier, link, frequency point, frequency band, etc.

[0083] In some embodiments, the preset conditions may include receiving indication information for instructing a handover of random access communication resources. The indication information is information for instructing a handover of random access communication resources, that is, information for instructing a handover of the communication resources for random access, or information for instructing a handover of the communication resources for random access.

[0084] After receiving an indication from the network device during the random access process, the terminal device indicates that the preset conditions are met and the second communication resource can be determined. Then, the communication resource can be switched from the first communication resource to the second communication resource, and the second communication resource can be used to continue random access.

[0085] The indication information may or may not specify the communication resource to be used after the handover. When the indication information indicates the communication resource to be used after the handover, the terminal device can determine the second communication resource based on the indication information. When the indication information indicates the communication resource to be used after the handover, it may be explicitly or implicitly indicated. The indication information may indicate one or more communication resources. When the indication information indicates one communication resource, the second communication resource can be that communication resource. When the indication information indicates multiple communication resources, the second communication resource can be one of those multiple communication resources.

[0086] When the indication information indicates the communication resources to be used after the handover, the indication information may include indication information of the second communication resource, uplink scheduling information, or indication information of a first value. When the indication information explicitly indicates the second communication resource, the indication information includes indication information of the second communication resource. When the indication information implicitly indicates the second communication resource, the indication information includes indication information of uplink scheduling information or indication information of a first value.

[0087] The indication information for the second communication resource is information that indicates the second communication resource. This indication information can be an identifier for the second communication resource or a bitmap used to indicate the second communication resource. The identifier for the second communication resource is information that can uniquely identify the second communication resource. The number of bits allocated to the identifier and bitmap in this indication information is related to the number of communication resources. For example, when the number of communication resources is 4, the identifier for the second communication resource can occupy 2 bits. When the identifier for the second communication resource is 00, the second communication resource is communication resource #1; when the identifier for the second communication resource is 01, the second communication resource is communication resource #2; when the identifier for the second communication resource is 10, the second communication resource is communication resource #3; and when the identifier for the second communication resource is 11, the second communication resource is communication resource #4. For example, when the number of communication resources is 4, the bitmap can occupy 4 bits. When the bitmap is 1000, the second communication resource is communication resource #1; when the bitmap is 0100, the second communication resource is communication resource #2; when the bitmap is 0010, the second communication resource is communication resource #3; and when the bitmap is 0001, the second communication resource is communication resource #4. The number of communication resources can be the total number of communication resources in the network device, the number of communication resources available for random access in the network device, the number of currently idle communication resources in the network device, the total number of communication resources configured by the network device for the terminal device, or the number of communication resources configured by the network device for the terminal device for random access.

[0088] Uplink scheduling information refers to information from network devices that schedule uplink communication resources for terminal devices. Uplink scheduling information can be associated with secondary communication resources.

[0089] The indication information for the first value is information used to indicate the first value. This indication information can be an index of the first value, a bitmap indicating the first value, or other information indicating the first value. The first value is the probability value for the terminal device to switch communication resources.

[0090] When the indication information includes indication information of the second communication resource, the terminal device can determine the second communication resource based on the indication information of the second communication resource.

[0091] When the indication information includes uplink scheduling information, the terminal device can determine the second communication resource based on the uplink scheduling information, i.e., based on the communication resources associated with or scheduled by the uplink scheduling information. The terminal device can determine that the communication resource scheduled by the uplink scheduling information is the second communication resource, or it can determine that the communication resource associated with the communication resource scheduled by the uplink scheduling information is the second communication resource. The uplink scheduling information can schedule one communication resource or multiple communication resources. When the uplink scheduling information schedules one communication resource, the terminal device can determine that the second communication resource is that communication resource, or it can determine that the second communication resource is the communication resource associated with that communication resource. When the uplink scheduling information schedules multiple communication resources, the terminal device can select one communication resource from these multiple communication resources, and can determine that the second communication resource is the selected communication resource, or it can determine that the second communication resource is the communication resource associated with the selected communication resource. The terminal device can select based on the communication quality and / or load corresponding to the communication resource, or it can select randomly, or it can select through other methods.

[0092] When the indication information includes an indication of a first value, the terminal device can determine the first value based on the indication of the first value, and can determine the second communication resource based on the first value. The terminal device can determine a numerical range based on the first value, and can randomly select a value from the numerical range to determine the second communication resource as the communication resource corresponding to the selected value. The first value is related to the number of communication resources. The number of selectable values ​​included in the numerical range is the same as the number of communication resources. For example, assuming the starting value of the numerical range is 0, the number of communication resources is 4, the first value can be 3, the numerical range is [0,3], and the selectable values ​​in the numerical range are 0, 1, 2, and 3, which correspond one-to-one with the four communication resources. Since the value corresponding to the second communication resource is randomly selected by the terminal device, the first communication resource and the second communication resource determined in this way can be the same or different.

[0093] If the indication information does not specify the communication resources to be used after the handover, the indication information may include information about the randomly accessed communication resources during the handover. If the indication information does not specify the communication resources to be used after the handover, the terminal device may determine, based on one or more of the following: the association between the first communication resource and the second communication resource; the communication quality corresponding to the communication resource, which is a communication resource other than the first communication resource that can be used by the terminal device; and the load corresponding to the communication resource, which is a communication resource other than the first communication resource that can be used by the terminal device, as explained below.

[0094] When communication resources are associated, the terminal device can obtain the association relationship corresponding to the first communication resource, that is, obtain the association relationship between the first and second communication resources. Based on the association relationship of the first communication resource, it can determine the second communication resource, thus determining that the second communication resource is a communication resource associated with the first communication resource. The second communication resource is a communication resource associated with the first communication resource; that is, there is an association relationship between the first and second communication resources. The association relationship between the first and second communication resources can be protocol-defined (i.e., predefined) or pre-configured. If the association relationship between the first and second communication resources is predefined, the terminal device can obtain the association relationship corresponding to the first communication resource from the predefined association relationships. If the association relationship between the first and second communication resources is pre-configured, the terminal device can obtain pre-configuration information and determine the association relationship between the first and second communication resources based on the pre-configuration information. The pre-configuration information is the configuration information pre-configured by the network device for the terminal device.

[0095] The terminal device can also determine the second communication resource based on the communication quality corresponding to the existing communication resource. In one scenario, the terminal device can determine the communication quality corresponding to one or more communication resources, and can determine the second communication resource as the one with the highest corresponding communication quality among these one or more communication resources. In another scenario, the terminal device can determine the communication quality corresponding to one or more communication resources, and can select communication resources from the one or more communication resources whose corresponding communication quality is greater than or equal to a quality threshold. If only one communication resource is selected, the second communication resource can be the selected communication resource. If multiple communication resources are selected, the second communication resource can be the one with the highest corresponding communication quality among these multiple communication resources, or it can be any one of these multiple communication resources. The communication quality corresponding to the communication resource can be measured by the terminal device or indicated by the network device. When the communication quality corresponding to the communication resource is measured by the terminal device, the terminal device can measure the communication quality corresponding to the communication resource in real time, periodically, at regular intervals, or as needed. When the communication quality corresponding to the communication resource is indicated by the network device, the communication quality corresponding to the communication resource can be indicated by the aforementioned indication information or by other indication information. The quality threshold can be a first threshold or other values.

[0096] The terminal device can also determine the second communication resource based on the load corresponding to the existing communication resource. In one scenario, the terminal device can determine the load corresponding to one or more communication resources, and can determine the second communication resource as the one with the lowest corresponding load among these one or more communication resources. In another scenario, the terminal device can determine the load corresponding to one or more communication resources, and can select a communication resource from the one or more communication resources whose corresponding load is less than a load threshold. If only one communication resource is selected, the second communication resource can be the selected communication resource. If multiple communication resources are selected, the second communication resource can be the one with the lowest corresponding load among these multiple communication resources, or it can be any one of these multiple communication resources. The load corresponding to the communication resource can be indicated by the network device. The load corresponding to the communication resource can be indicated by the aforementioned indication information, or it can be indicated by other indication information. The load threshold can be a second threshold, or it can be any other value.

[0097] The terminal device can also determine the second communication resource based on the communication quality and load corresponding to the existing communication resource. The terminal device can determine the communication quality and load corresponding to one or more communication resources, and can select communication resources from the one or more communication resources whose corresponding communication quality is greater than or equal to a quality threshold and whose corresponding load is less than a load threshold. If only one communication resource is selected, the second communication resource can be determined as that selected communication resource. If multiple communication resources are selected, the second communication resource can be determined as any one of those multiple communication resources.

[0098] The terminal device can also determine a second communication resource based on the coverage area corresponding to the communication resource and the location of the terminal device. The terminal device can determine the coverage area corresponding to the communication resource and select a communication resource whose coverage area includes the location of the terminal device to obtain the second communication resource. The coverage area corresponding to the communication resource can be understood as the coverage area of ​​the carrier wave included in the communication resource.

[0099] It should be understood that the above is an exemplary description of determining the second communication resource when the indication information does not indicate the communication resource to be used after the switch, and is not intended to limit the scope of the invention.

[0100] Indication information can be carried in the feedback message of the uplink message of the terminal device during random access, or it can be carried in the control information. The feedback message can be Msg2, Msg4, or MsgB. The control information can be downlink control information (DCI) or media access control (MAC) control element (CE).

[0101] It is evident that during random access, terminal devices can switch the communication resources used for random access according to the instructions of the network device. This can avoid situations where the communication quality of the communication resources used is poor and / or the load is high, which may lead to random access failure, thereby improving the success rate of random access.

[0102] In some embodiments, the preset conditions may include the communication quality corresponding to the first communication resource being less than a first threshold.

[0103] During random access using the first communication resource, the terminal device can determine the communication quality corresponding to the first communication resource in real time, periodically, or at regular intervals. It can then determine whether the communication quality of the first communication resource is less than a first threshold. If the communication quality is less than the first threshold, it indicates that the communication quality of the currently used communication resource is poor, and continuing to use the first communication resource may lead to random access failure. To improve the success rate of random access, the communication resource can be switched from the first communication resource to the second communication resource, and then the second communication resource can be used to continue random access. If the communication quality of the first communication resource is greater than or equal to the first threshold, it indicates that the communication quality of the currently used communication resource is good, and the first communication resource can continue to be used for random access.

[0104] It is evident that during random access, terminal devices can monitor the communication quality of the communication resources used. If the communication quality of the used communication resources is poor, the terminal device can switch to the communication resources used for random access, thus avoiding the failure of random access due to poor communication quality of the used communication resources and improving the success rate of random access.

[0105] In some embodiments, the preset conditions may include communication quality corresponding to the second communication resource being greater than or equal to a first threshold.

[0106] During random access using the first communication resource, the terminal device can determine the communication quality of the second communication resource in real time, periodically, or at regular intervals. It can then determine whether the communication quality of the second communication resource is greater than or equal to a first threshold. If the communication quality of the second communication resource is greater than or equal to the first threshold, it indicates the existence of a communication resource with better communication quality. To improve the success rate of random access, the communication resource can be switched from the first to the second communication resource, and random access can then be continued using the second communication resource. If the communication quality of the second communication resource is less than the first threshold, it indicates that no communication resource with better communication quality exists, and random access can continue using the first communication resource.

[0107] It is evident that during random access, if a terminal device detects a communication resource with good communication quality, it can switch to the communication resource for random access. This avoids situations where the communication resource has poor communication quality, causing random access to fail, thereby improving the success rate of random access.

[0108] In some embodiments, the preset conditions may include the load corresponding to the first communication resource being greater than or equal to a second threshold.

[0109] During random access using the first communication resource, the terminal device can determine the load corresponding to the first communication resource in real time, periodically, or at regular intervals. It can then determine whether the load of the first communication resource is greater than or equal to a second threshold. If the load is greater than or equal to the second threshold, it indicates that the load of the currently used communication resource is high, and continuing to use the first communication resource may lead to random access failure. To improve the success rate of random access, the communication resource can be switched from the first to the second communication resource, and then the second communication resource can be used to continue random access. If the load of the first communication resource is less than the second threshold, it indicates that the load of the currently used communication resource is low, and the first communication resource can continue to be used for random access.

[0110] It is evident that during random access, terminal devices can monitor the load of the communication resources being used. If the load of the communication resources being used is high, the device can switch to the communication resources used for random access, thus avoiding the failure of random access due to the high load of the communication resources being used, thereby improving the success rate of random access.

[0111] In some embodiments, the preset condition may include the load corresponding to the second communication resource being less than a second threshold.

[0112] During random access using the first communication resource, the terminal device can determine the load corresponding to the second communication resource in real time, periodically, or at regular intervals. It can then determine whether the load of the second communication resource is less than a second threshold. If the load is less than the second threshold, it indicates the existence of a communication resource with low load. To improve the success rate of random access, the communication resource can be switched from the first to the second communication resource, and random access can then continue using the second communication resource. If the load of the second communication resource is greater than or equal to the second threshold, it indicates the absence of a communication resource with low load, and random access can continue using the first communication resource.

[0113] It is evident that during random access, if a terminal device detects a communication resource with a low load, it can switch to the communication resource for random access. This avoids situations where the communication resource being used has a high load, causing random access to fail, thereby improving the success rate of random access.

[0114] In some embodiments, the preset conditions may include the association between the first communication resource and the second communication resource.

[0115] After a terminal device performs random access using the first communication resource, it can determine whether there is a correlation between the first and second communication resources. Specifically, it can determine if there are any communication resources that are correlated with the first communication resource. If a correlation exists, the communication resource can be switched from the first to the second communication resource, and then the second communication resource can be used to continue random access. If no correlation exists, the first communication resource can continue to be used for random access.

[0116] For example, the feedback message of the uplink message sent by the terminal device through the first link can be transmitted through the second link; that is, the terminal device sends the uplink message on the first link and listens for the feedback message of the uplink message on the second link. The first communication resource includes the first link. The second communication resource includes the second link.

[0117] It is evident that during random access, if there are communication resources associated with the currently used communication resources, the terminal device can switch to the communication resources for random access. This can avoid situations where the communication quality of the communication resources used is poor or the load of the communication resources is high, which may lead to random access failure, thereby improving the success rate of random access.

[0118] In some embodiments, the preset conditions may include sending a first message.

[0119] The first message is the message sent by the terminal device to the network device during the random access process. The first message can be either the first message sent by the terminal device during the random access process or the second message sent by the terminal device during the random access process. The first message can be msg1 or msgA. The second message can be msg3. The first and second messages constitute the first and second messages in one round of random access. For example, assuming the random access is a four-step random access process, in one round of random access, the terminal device can send msg1 to the network device, the network device can respond to msg1 by sending msg2 to the terminal device, the terminal device can respond to msg2 by sending msg3 to the network device, and the network device can respond to msg3 by sending msg4 to the terminal device. If msg4 indicates that the random access process has failed, the terminal device can proceed to the next round of random access.

[0120] During random access, the terminal device can monitor whether a first message has been sent to the network device. If a first message is detected, the communication resource can be switched from the first communication resource to the second communication resource, and then the second communication resource can be used to continue random access. If no first message is detected, the first communication resource can continue to be used for random access.

[0121] As can be seen, during the random access process, each time a terminal device sends a message to the network device, it can switch the communication resources used for random access, ensuring that the appropriate communication resources are used each time, thus improving the success rate of random access.

[0122] In some embodiments, the preset conditions may include the communication quality corresponding to the first communication resource being less than a first threshold, and the communication quality corresponding to the second communication resource being greater than or equal to the first threshold.

[0123] During random access using the first communication resource, the terminal device can determine the communication quality of the first and second communication resources in real time, periodically, or at regular intervals. It can determine whether the communication quality of the first communication resource is less than a first threshold, and whether the communication quality of the second communication resource is greater than or equal to the first threshold. If the communication quality of the first communication resource is less than the first threshold, and the communication quality of the second communication resource is greater than or equal to the first threshold, it indicates that the currently used communication resource has poor communication quality, while a better communication resource exists. To improve the success rate of random access, the communication resource can be switched from the first communication resource to the second communication resource, and then the second communication resource can be used to continue random access. If the communication quality of the first communication resource is greater than or equal to the first threshold, or the communication quality of the second communication resource is less than the first threshold, the first communication resource can continue to be used for random access.

[0124] It is evident that during random access, terminal devices can monitor the communication quality of communication resources. If the communication quality of the currently used communication resource is poor, but a communication resource with better quality is available, the terminal device can switch to the communication resource for random access. This can prevent random access failure due to the poor communication quality of the currently used communication resource, thereby improving the success rate of random access.

[0125] In some embodiments, the preset conditions may include the communication quality corresponding to the first communication resource being less than a first threshold, and the load corresponding to the first communication resource being greater than or equal to a second threshold.

[0126] During random access using the first communication resource, the terminal device can determine the communication quality and load corresponding to the first communication resource in real time, periodically, or at regular intervals. It can determine whether the communication quality of the first communication resource is less than a first threshold and whether the load of the first communication resource is greater than or equal to a second threshold. If the communication quality of the first communication resource is less than the first threshold and the load of the first communication resource is greater than or equal to the second threshold, it indicates that the communication quality of the currently used communication resource is poor and the load is high. To improve the success rate of random access, the communication resource can be switched from the first communication resource to the second communication resource, and then the second communication resource can be used to continue random access. If the communication quality of the first communication resource is greater than or equal to the first threshold, or the load of the first communication resource is less than the second threshold, the terminal device can continue to use the first communication resource for random access.

[0127] It is evident that during random access, terminal devices can monitor the communication quality and load of the communication resources used. If the communication quality of the used communication resources is poor and the load is high, the terminal device can switch to the communication resources used for random access. This can prevent random access failure due to poor communication quality and high load of the used communication resources, thereby improving the success rate of random access.

[0128] In some embodiments, the preset conditions may include the load corresponding to the first communication resource being greater than or equal to the second threshold, and the load corresponding to the second communication resource being less than the second threshold.

[0129] During random access using the first communication resource, the terminal device can determine the load corresponding to the first and second communication resources in real time, periodically, or at regular intervals. It can determine whether the load corresponding to the first communication resource is greater than or equal to a second threshold, and whether the load corresponding to the second communication resource is less than the second threshold. If the load corresponding to the first communication resource is greater than or equal to the second threshold, or the load corresponding to the second communication resource is less than the second threshold, it indicates that the currently used communication resource has a heavy load, while there are communication resources with lower loads. To improve the success rate of random access, the communication resource can be switched from the first communication resource to the second communication resource, and then the second communication resource can be used to continue random access. If the load corresponding to the first communication resource is less than the second threshold, or the load corresponding to the second communication resource is greater than or equal to the second threshold, the first communication resource can continue to be used for random access.

[0130] It is evident that during random access, terminal devices can monitor the load of communication resources. If the load of the communication resource being used is high, while there is a communication resource with a lower load, the terminal device can switch to the communication resource for random access. This can prevent random access failure caused by the high load of the communication resource being used, thereby improving the success rate of random access.

[0131] In some embodiments, the preset conditions may include the communication quality corresponding to the second communication resource being greater than or equal to the first threshold, and the load corresponding to the second communication resource being less than the second threshold.

[0132] During random access using the first communication resource, the terminal device can determine the communication quality and load of the second communication resource in real time, periodically, or at regular intervals. It can determine whether the communication quality of the second communication resource is greater than or equal to a first threshold, and whether the load of the second communication resource is less than a second threshold. If the communication quality of the second communication resource is greater than or equal to the first threshold, and the load of the second communication resource is less than the second threshold, it indicates the existence of a communication resource with good communication quality and low load. To improve the success rate of random access, the communication resource can be switched from the first communication resource to the second communication resource, and then the second communication resource can be used to continue random access. If the communication quality of the second communication resource is less than the first threshold, or the load of the second communication resource is greater than or equal to the second threshold, the terminal device can continue to use the first communication resource for random access.

[0133] It is evident that during random access, terminal devices can monitor the communication quality and load of communication resources. When there are communication resources with good quality and low load, they can switch to the communication resources used for random access, thus avoiding the failure of random access due to poor communication quality and / or high load of the communication resources used, thereby improving the success rate of random access.

[0134] In some embodiments, the preset conditions may include communication quality corresponding to the first communication resource being less than a first threshold, communication quality corresponding to the second communication resource being greater than or equal to the first threshold, load corresponding to the first communication resource being greater than or equal to a second threshold, and load corresponding to the second communication resource being less than the second threshold.

[0135] During random access using the first communication resource, the terminal device can determine the communication quality and load corresponding to the first and second communication resources in real time, periodically, or at regular intervals. It can determine whether the communication quality of the first communication resource is less than a first threshold, whether the communication quality of the second communication resource is greater than or equal to the first threshold, whether the load of the first communication resource is greater than or equal to a second threshold, and whether the load of the second communication resource is less than the second threshold. If the communication quality of the first communication resource is less than the first threshold, the communication quality of the second communication resource is greater than or equal to the first threshold, the load of the first communication resource is greater than or equal to the second threshold, and the load of the second communication resource is less than the second threshold, it indicates that the currently used communication resource has poor communication quality and high load, and there is a communication resource with better communication quality and lower load. The communication resource can be switched from the first communication resource to the second communication resource, and the second communication resource can then be used for continued random access. If the communication quality of the first communication resource is greater than or equal to the first threshold, the communication quality of the second communication resource is less than the first threshold, the load of the first communication resource is less than the second threshold, or the load of the second communication resource is greater than or equal to the second threshold, the terminal device can continue to use the first communication resource for random access.

[0136] It is evident that during random access, terminal devices can monitor the communication quality and load of the communication resources. If the communication quality of the currently used communication resource is poor and the load is high, and there is a communication resource with better communication quality and lower load, the terminal device can switch to the communication resource for random access. This can prevent random access failure caused by the poor communication quality and high load of the currently used communication resource, thereby improving the success rate of random access.

[0137] In some embodiments, the preset conditions may include receiving indication information for instructing a random access communication resource switch. The preset conditions may also include one or more of the following: the communication quality corresponding to the first communication resource is less than a first threshold; the communication quality corresponding to the second communication resource is greater than or equal to the first threshold; the load corresponding to the first communication resource is greater than or equal to a second threshold; and the load corresponding to the second communication resource is less than the second threshold.

[0138] After receiving the indication information, the terminal device can use the second communication resource to continue random access only if the communication quality corresponding to the first communication resource is less than the first threshold, and / or the communication quality corresponding to the second communication resource is greater than or equal to the first threshold, and / or the load corresponding to the first communication resource is greater than or equal to the second threshold, and / or the load corresponding to the second communication resource is less than the second threshold. This avoids situations where communication resources are switched due to the use of communication resources with better communication quality and / or lower load, and / or the absence of communication resources with better communication quality and / or lower load. This reduces unnecessary communication resource switching and improves the utilization rate of communication resources while ensuring the success rate of random access.

[0139] In some embodiments, the preset conditions may include the association between the first communication resource and the second communication resource. The preset conditions may also include one or more of the following: the communication quality corresponding to the first communication resource is less than a first threshold; the communication quality corresponding to the second communication resource is greater than or equal to the first threshold; the load corresponding to the first communication resource is greater than or equal to a second threshold; and the load corresponding to the second communication resource is less than the second threshold.

[0140] After a terminal device performs random access using the first communication resource, it can first determine whether there is a correlation between the first and second communication resources. If a correlation exists, and the communication quality corresponding to the first communication resource is less than a first threshold, and / or the communication quality corresponding to the second communication resource is greater than or equal to the first threshold, and / or the load corresponding to the first communication resource is greater than or equal to the second threshold, and / or the load corresponding to the second communication resource is less than the second threshold, then the second communication resource can be used to continue random access. This avoids situations where communication resources are switched due to the use of communication resources with better communication quality and / or lower load, and / or the absence of communication resources with better communication quality and / or lower load. This reduces unnecessary communication resource switching, thereby improving the utilization rate of communication resources while ensuring the success rate of random access.

[0141] In some embodiments, the preset conditions may include sending a first message. The preset conditions may also include one or more of the following: the communication quality corresponding to a first communication resource is less than a first threshold; the communication quality corresponding to a second communication resource is greater than or equal to the first threshold; the load corresponding to a first communication resource is greater than or equal to a second threshold; and the load corresponding to a second communication resource is less than the second threshold.

[0142] During random access, the terminal device can monitor whether a first message has been sent to the network device. If the communication quality corresponding to the first communication resource is less than a first threshold, and / or the communication quality corresponding to the second communication resource is greater than or equal to the first threshold, and / or the load corresponding to the first communication resource is greater than or equal to a second threshold, and / or the load corresponding to the second communication resource is less than the second threshold, then the second communication resource can be used to continue random access. This avoids situations where communication resources are switched due to the use of communication resources with better communication quality and / or lower load, and / or the absence of communication resources with better communication quality and / or lower load. This reduces unnecessary communication resource switching and thus improves the utilization rate of communication resources while ensuring the success rate of random access.

[0143] It should be understood that the above embodiments are exemplary of combinations of preset conditions, and other combinations of preset conditions are also possible, which will not be elaborated here.

[0144] It should be understood that, in the absence of indication information in the preset conditions, the way the terminal device determines the second communication resource is the same as the way it determines the communication resource to be used after the handover when the indication information does not indicate it. For a detailed description, please refer to the relevant description above.

[0145] When the communication quality and / or load corresponding to a communication resource are indicated by the network device, the terminal device may receive one or more of the following from the network device: quality information corresponding to a first communication resource, load information corresponding to a first communication resource, quality information corresponding to a second communication resource, and load information corresponding to a second communication resource. The quality information corresponding to the communication resource is information related to the quality of the communication resource. The load information corresponding to the communication resource is information related to the load of the communication resource.

[0146] The terminal device can determine the communication quality corresponding to the first communication resource based on the quality information corresponding to the first communication resource, determine the load corresponding to the first communication resource based on the load information corresponding to the first communication resource, determine the communication quality corresponding to the second communication resource based on the quality information corresponding to the second communication resource, and determine the load corresponding to the second communication resource based on the load information corresponding to the second communication resource.

[0147] In some embodiments, continued random access by the terminal device may include one or more of the following:

[0148] Random access is performed using access resources, which are determined based on the second communication resource.

[0149] The transmission power and / or number of transmissions are determined based on the stored variables associated with the first communication resource;

[0150] The transmission power and / or number of transmissions are determined based on the stored variables associated with the second communication resource.

[0151] Access resources are resources used for random access and may include Physical Random Access Channel (PRACH), PUCCH, PUSCH, PDCCH, PDSCH, etc.

[0152] After the terminal device switches its random access communication resource from the first communication resource to the second communication resource, the access resource can be determined based on the second communication resource. Then, the access resource can be used for random access, i.e., random access continues. It can be determined that the access resource is the access resource associated with the second communication resource.

[0153] The transmission count refers to the number of times the preamble has been transmitted. The terminal device can determine the transmission count based on either a stored variable associated with a first communication resource or a stored variable associated with a second communication resource. The stored variable associated with the communication resource can include a counter. This communication resource-associated counter is a counter for the number of preamble transmissions and is used to count the number of preamble transmissions. The terminal device can determine the transmission count based on this communication resource-associated counter.

[0154] As can be seen, after the communication resource is switched from the first communication resource to the second communication resource, the terminal device can continue to use the counter associated with the first communication resource to count the number of transmissions, or it can use the counter associated with the second communication resource to count the number of transmissions. When continuing to use the counter associated with the first communication resource to count the number of transmissions, the number of transmissions includes the number of preamble transmissions before the switch to the second communication resource. When using the counter associated with the second communication resource to count the number of transmissions, the number of transmissions does not include the number of preamble transmissions before the switch to the second communication resource; that is, counting restarts after the switch to the second communication resource.

[0155] Transmission power refers to the power at which signals are sent to network devices, i.e., the transmission power of the terminal device. The terminal device can determine the transmission power based on stored variables associated with a first communication resource, or it can determine the transmission power based on stored variables associated with a second communication resource. Alternatively, the terminal device can determine the transmission power based on a counter associated with a communication resource.

[0156] For example, when the transmission power is determined based on a counter associated with the second communication resource, the initial transmission power can be set when the terminal device first uses the second communication resource to send a signal to the network device. Each time the preamble is sent to the network device again, the transmission power value increases by a preset power threshold until the number of transmissions exceeds or equals the number of transmissions threshold, indicating a random access failure. The number of transmissions threshold is the maximum number of times the terminal device is allowed to send the preamble.

[0157] When the transmission power is determined based on a counter associated with the first communication resource, the transmission power can be either the transmission power before it has climbed or the transmission power after it has climbed.

[0158] When the transmission power is at a non-increased level, the terminal device can determine the transmission power based on the number of transmissions counted by the counter associated with the first communication resource. Therefore, the transmission power of the terminal device after switching to the second communication resource is the same as that before switching. Since the transmission power remains unchanged after switching to the second communication resource, the increase in the terminal device's transmission power can be avoided, thereby saving energy consumption of the terminal device.

[0159] When the transmission power is the increased transmission power, the terminal device can determine the transmission power based on the sum of the number of transmissions counted by the counter associated with the first communication resource and 1. It is evident that the transmission power of the terminal device after switching to the second communication resource is greater than the transmission power of the terminal device before switching to the second communication resource. Since the transmission power of the terminal device increases after switching to the second communication resource, the probability that the signal transmitted by the terminal device during random access is successfully received by the network device can be increased. Therefore, the success rate of random access by the terminal device can be further improved.

[0160] For further details on step 302, please refer to the relevant descriptions above, and they will not be repeated here.

[0161] Figure 4 is a flowchart illustrating another communication resource switching method provided in an embodiment of this application. This communication resource switching method is described from the perspective of a terminal device. As shown in Figure 4, the communication resource switching method may include the following steps.

[0162] 401. Use the first communication resource for random access.

[0163] For a detailed description of step 401, please refer to the description of step 301, which will not be repeated here.

[0164] 402. If the battery power of the terminal device is less than the power threshold and / or the temperature of the terminal device is greater than or equal to the temperature threshold, random access shall continue using the second communication resource.

[0165] The power consumption corresponding to the first communication resource is greater than the power consumption corresponding to the second communication resource, that is, the power consumption of the terminal device when using the first communication resource is greater than the power consumption when using the second communication resource.

[0166] During random access using the first communication resource, the terminal device can monitor its battery level in real time, periodically, or at regular intervals. It can determine if the battery level is below a threshold. If the battery level is below the threshold, indicating low battery power, the device can switch from the first communication resource to a second communication resource (i.e., from a high-power resource to a low-power resource) to extend battery life. The second communication resource can then be used for continued random access. If the battery level is greater than or equal to the threshold, indicating high battery power, the first communication resource can be used for continued random access.

[0167] During random access using the first communication resource, the terminal device can monitor its temperature in real time, periodically, or at regular intervals. It can determine whether the temperature is greater than or equal to a temperature threshold. If the temperature is greater than or equal to the threshold, it indicates a high temperature. To prevent further temperature increases, power consumption needs to be reduced. Therefore, to lower power consumption, the communication resource can be switched from the first to the second communication resource, allowing continued random access. If the temperature is less than the threshold, it indicates a low temperature, and the first communication resource can continue to be used for random access.

[0168] During random access using the first communication resource, the terminal device can also monitor its battery level and temperature in real time, periodically, or at regular intervals. It can determine whether the battery level is below a threshold and whether the temperature is above or equal to a threshold. If the battery level is below the threshold and the temperature is above or equal to the threshold, it indicates that the battery is low and the temperature is high. To extend the terminal device's battery life and prevent further temperature increases, the communication resource can be switched from the first to the second communication resource, allowing continued random access. If the battery level is above or equal to the threshold, or the temperature is below the threshold, it indicates that the battery level is high or the temperature is low, allowing continued random access using the first communication resource.

[0169] For further details on step 402, please refer to the relevant descriptions above, and they will not be repeated here.

[0170] In the method shown in Figure 4 above, the terminal device can adjust the communication resources used for random access based on the real-time battery level and / or real-time temperature of the terminal device, which can improve the user experience and device performance while increasing the success rate of random access.

[0171] Figure 5 is a flowchart illustrating another communication resource switching method provided in an embodiment of this application. This communication resource switching method is described from the perspective of a network device. As shown in Figure 5, the communication resource switching method may include the following steps.

[0172] 501. During random access, send indication information to the terminal device to indicate the switching of random access communication resources.

[0173] The indication information is used to indicate the switching of random access communication resources, that is, to indicate the switching of communication resources for random access, or to indicate the switching of communication resources for random access.

[0174] Network devices can send indication information to terminal devices periodically, at regular intervals, or under specific conditions. The terminal device is one that is in the process of random access.

[0175] When periodically sending indication information to terminal devices, the network device can determine whether the current time is the periodic sending time of the indication information. If the current time is the periodic sending time of the indication information, the network device can send the indication information to the terminal device.

[0176] A network device can start a timer when or after the last time it sends an indication message. When the timer expires, the network device can send an indication message to the terminal device and can restart the timer. The duration of this timer is the duration of the indication message sending cycle.

[0177] When sending instruction information to terminal devices at regular intervals, the network device can determine whether the current time is the scheduled time. If the current time is the scheduled time, it can send instruction information to the terminal device.

[0178] When sending instruction information to terminal devices periodically, network devices can also determine whether the current time belongs to the periodic time. If the current time belongs to the periodic time, instruction information can be sent to the terminal devices.

[0179] For example, a network device may send instruction information to a terminal device during peak usage periods or times.

[0180] The first condition is the triggering condition for the network device to send instruction information to the terminal device, that is, the condition that triggers the network device to send instruction information to the sending terminal device.

[0181] During the random access process of terminal devices, network devices can determine whether the first condition is met. If the first condition is met, the network device can send an indication message to the terminal device. If the first condition is not met, the network device can choose not to send an indication message to the terminal device.

[0182] As can be seen, network devices can send instruction information to terminal devices so that the terminal devices can switch the communication resources used for random access according to the instruction information, so that the terminal devices can use communication resources with lower load and / or better communication quality for random access, thereby improving the success rate of random access of terminal devices.

[0183] The indication information may or may not indicate the communication resources to be used after the handover, or the indication information may indicate the communication resources to be used after the handover.

[0184] When the indication information specifies the communication resources to be used after the handover, the indication information may include indication information for the second communication resource, uplink scheduling information, or indication information for a first value. The indication information may explicitly or implicitly indicate the communication resources to be used after the handover. When the indication information explicitly indicates the second communication resource, it includes indication information for the second communication resource. When the indication information implicitly indicates the second communication resource, it includes indication information for uplink scheduling information or a first value. The second communication resource is a random access communication resource used by the terminal device after the handover.

[0185] The indication information for the second communication resource is information indicating the second communication resource. This indication information can be an identifier of the second communication resource or a bitmap used to indicate the second communication resource. For a detailed description, please refer to the relevant description below step 302.

[0186] Uplink scheduling information is used to schedule uplink communication resources for terminal devices. Uplink scheduling information can be associated with secondary communication resources.

[0187] The indication information for the first value is information used to indicate the first value. The indication information for the first value can be an index of the first value or a bitmap used to indicate the first value. The first value is the probability value for the terminal device to switch communication resources. The first value is used to determine the second communication resource.

[0188] If the indication information does not specify the communication resources to be used after the handover, the indication information may include information about the random access communication resources to be used after the handover.

[0189] If the indication information does not specify the communication resources to be used after the handover, the first condition may include that the communication quality corresponding to the first communication resource is less than a first threshold, and / or the load corresponding to the first communication resource is greater than or equal to a second threshold. The first communication resource is the communication resource currently used by the terminal device.

[0190] When the indication information indicates the communication resources to be used after the switch, the first condition may include one or more of the following: the communication quality corresponding to the first communication resource is less than a first threshold, the load corresponding to the first communication resource is greater than or equal to a second threshold, the communication quality corresponding to the second communication resource is greater than or equal to the first threshold, and the load corresponding to the second communication resource is less than the second threshold.

[0191] During the random access process of a terminal device, the network device can determine the communication quality corresponding to the first communication resource. Then, it can determine whether the communication quality corresponding to the first communication resource is less than a first threshold. If the communication quality is less than the first threshold, it indicates that the communication quality of the communication resource currently being used by the terminal device is poor, and continuing to use the first communication resource may lead to random access failure. To improve the success rate of random access, an indication message can be sent to the terminal device. If the communication quality corresponding to the first communication resource is greater than or equal to the first threshold, it indicates that the communication quality of the currently used communication resource is good, and no indication message needs to be sent to the terminal device.

[0192] It is evident that during the random access process of a terminal device, the network device can monitor the communication quality corresponding to the communication resources used by the terminal device. If the communication quality corresponding to the communication resources used by the terminal device is poor, the network device can send an indication message to the terminal device so that the terminal device can switch to the communication resources used for random access according to the indication message. This can avoid the situation where the communication quality corresponding to the communication resources used is poor, which would cause the random access to fail, thereby improving the success rate of random access.

[0193] During the random access process of a terminal device, the network device can determine the load corresponding to the first communication resource. Then, it can determine whether the load corresponding to the first communication resource is greater than or equal to a second threshold. If the load corresponding to the first communication resource is greater than or equal to the second threshold, it indicates that the communication resource currently being used by the terminal device has a high load, and continuing to use the first communication resource may lead to random access failure. To improve the success rate of random access, an indication message can be sent to the terminal device. If the load corresponding to the first communication resource is less than the second threshold, no indication message needs to be sent to the terminal device.

[0194] It is evident that during the random access process of a terminal device, the network device can monitor the load of the communication resources used by the terminal device. When the load of the communication resources used by the terminal device is high, the network device can send an indication message to the terminal device so that the terminal device can switch the communication resources used for random access according to the indication message. This can avoid the situation where the communication resources used are overloaded and the random access fails, thereby improving the success rate of random access.

[0195] When the indication information specifies the communication resources to be used after the handover, during the random access process of the terminal device, the network device can determine the communication quality corresponding to the first and second communication resources. It can then determine whether the communication quality corresponding to the first communication resource is less than a first threshold, and whether the communication quality corresponding to the second communication resource is greater than or equal to the first threshold. If the communication quality corresponding to the first communication resource is less than the first threshold, and the communication quality corresponding to the second communication resource is greater than or equal to the first threshold, it indicates that the communication quality of the communication resource currently used by the terminal device is poor, while a communication resource with better communication quality exists. To improve the success rate of random access, an indication information can be sent to the terminal device. If the communication quality corresponding to the first communication resource is greater than or equal to the first threshold, or the communication quality corresponding to the second communication resource is less than the first threshold, no indication information needs to be sent to the terminal device.

[0196] It is evident that during the random access process of a terminal device, the network device can monitor the communication quality corresponding to the communication resources. If the communication quality of the communication resources used by the terminal device is poor, and there are communication resources with better communication quality available, the network device can send an indication message to the terminal device. This allows the terminal device to switch to the communication resource with better communication quality based on the indication message and continue random access. This avoids the situation where random access fails due to the poor communication quality of the communication resources used, thereby improving the success rate of random access.

[0197] During the random access process of a terminal device, the network device can determine the communication quality and load corresponding to the first communication resource. It can then determine whether the communication quality corresponding to the first communication resource is less than a first threshold, and whether the load corresponding to the first communication resource is greater than or equal to a second threshold. If the communication quality corresponding to the first communication resource is less than the first threshold, and the load corresponding to the first communication resource is greater than or equal to the second threshold, it indicates that the communication quality of the communication resource currently used by the terminal device is poor and the load is high. To improve the success rate of random access, an indication message can be sent to the terminal device. If the communication quality corresponding to the first communication resource is greater than or equal to the first threshold, or the load corresponding to the first communication resource is less than the second threshold, no indication message needs to be sent to the terminal device.

[0198] It is evident that during the random access process of a terminal device, the network device can monitor the communication quality and load of the communication resources used by the terminal device. If the communication quality of the communication resources used by the terminal device is poor and the load is high, the network device can send an indication message to the terminal device so that the terminal device can switch to a communication resource with better communication quality and lower load to continue random access. This can avoid the situation where the random access fails due to the poor communication quality and high load of the communication resources used, thereby improving the success rate of random access.

[0199] It should be understood that the above is an exemplary description of the combination of the first condition, and there may be other combinations of the first condition, which will not be elaborated here.

[0200] Indication information can be carried in the feedback message of the uplink message of the terminal device during random access, or it can be carried in the control information. The feedback message can be Msg2, Msg4, or MsgB. The control information can be DCI or MAC CE.

[0201] The second communication resource may include one or more of the following: carrier, link, frequency point, frequency band, etc. For a detailed description, please refer to the relevant description below step 301.

[0202] In some embodiments, the network device may send one or more of the following to the terminal device: quality information corresponding to the first communication resource, load information corresponding to the first communication resource, quality information corresponding to the second communication resource, and load information corresponding to the second communication resource.

[0203] If the terminal device requires communication quality and / or load corresponding to communication resources during random access, the network device may send the terminal device one or more of the following: quality information corresponding to the first communication resource, load information corresponding to the first communication resource, quality information corresponding to the second communication resource, and load information corresponding to the second communication resource. For a detailed description, please refer to the relevant description below step 302.

[0204] Figure 6 is an interactive schematic diagram of a communication resource switching method provided in an embodiment of this application. This communication resource switching method is described from the perspective of a terminal device and a network device. As shown in Figure 6, the communication resource switching method may include the following steps.

[0205] 601. The terminal device uses the first communication resource to randomly access the network device.

[0206] In some embodiments, step 601 may include:

[0207] 6011. During random access, the network device sends an indication message to the terminal device to indicate the switching of random access communication resources.

[0208] Accordingly, the terminal device receives indication information from the network device to indicate the switching of random access communication resources.

[0209] For example, when the first communication resource is an uplink communication resource and a downlink communication resource, step 601 may include step 6011.

[0210] For example, when the indication information is carried in the feedback message of the uplink message during the random access process of the terminal device, step 601 may include step 6011.

[0211] In other embodiments, the communication resource switching method may further include:

[0212] 603. During random access, the network device sends an indication message to the terminal device to indicate the switching of random access communication resources.

[0213] Accordingly, the terminal device receives indication information from the network device to indicate the switching of random access communication resources.

[0214] For example, when the first communication resource is an uplink communication resource, the communication resource switching method may further include step 603.

[0215] For example, when the instruction information is carried in the control information, the communication resource switching method may further include step 603.

[0216] It should be understood that the above is an exemplary description of the logical relationship between step 601 and the instruction information transmission step, and is not intended to limit it.

[0217] For detailed descriptions of steps 601, 6011, and 603, please refer to the relevant descriptions above, and they will not be repeated here.

[0218] Step 601 can be replaced by: The terminal device uses the first communication resource to randomly access the network device.

[0219] 602. If preset conditions are met, including receiving indication information for indicating a switch of random access communication resources, the terminal device continues to perform random access to the network device using the second communication resource.

[0220] Preset conditions may include indication information used to indicate the switching of random access communication resources.

[0221] The preset conditions may also include one or more of the following: the communication quality corresponding to the first communication resource is less than the first threshold; the communication quality corresponding to the second communication resource is greater than or equal to the first threshold; the load corresponding to the first communication resource is greater than or equal to the second threshold; the load corresponding to the second communication resource is less than the second threshold; the association between the first communication resource and the second communication resource; and sending the first message.

[0222] The terminal device using the second communication resource to continue to randomly access the network device can be replaced by the terminal device using the second communication resource to continue to randomly access the network device.

[0223] For a detailed description of step 602, please refer to the relevant description above, and it will not be repeated here.

[0224] In the method shown in Figure 6 above, the network device can send instruction information to the terminal device, and the terminal device can switch the communication resources used for random access according to the instruction information, so that the terminal device can use communication resources with lower load and / or better communication quality for random access, thereby improving the success rate of random access of the terminal device.

[0225] It should be understood that although the steps in Figures 2-6 are shown sequentially, these steps are not necessarily executed in the order shown. Unless explicitly stated herein, there is no strict order constraint on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in Figures 2-6 may include multiple steps or stages, which are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.

[0226] It should be understood that the same or corresponding information in different embodiments can be referenced to each other.

[0227] Figure 7 is a schematic diagram of a terminal device provided in an embodiment of this application. As shown in Figure 7, the terminal device may include:

[0228] The first random access module 701 is used to perform random access using the first communication resources; the second random access module 702 is used to continue performing random access using the second communication resources when preset conditions are met.

[0229] In one embodiment, the preset conditions may include one or more of the following: receiving indication information for indicating random access communication resource switching; the communication quality corresponding to the first communication resource is less than a first threshold; the communication quality corresponding to the second communication resource is greater than or equal to the first threshold; the load corresponding to the first communication resource is greater than or equal to a second threshold; the load corresponding to the second communication resource is less than the second threshold; the association relationship between the first communication resource and the second communication resource; and sending a first message.

[0230] In one embodiment, the indication information may include one of the following: indication information for a second communication resource; uplink scheduling information associated with the second communication resource; indication information for a first value, wherein the second communication resource is determined based on the first value; and information for switching random access communication resources.

[0231] In one embodiment, the indication information is carried in the feedback message or control information of the uplink message during the random access process.

[0232] In one embodiment, the control information is DCI or MAC CE.

[0233] In one embodiment, the first message is either the first message or the second message sent by the terminal device during the random access process.

[0234] In one embodiment, the second communication resource is determined based on one or more of the following: the association between the first communication resource and the second communication resource; the communication quality corresponding to the communication resource, which is a communication resource that can be used by the terminal device other than the first communication resource; and the load corresponding to the communication resource, which is a communication resource that can be used by the terminal device other than the first communication resource.

[0235] In one embodiment, the association is determined based on pre-configuration information or protocol agreement.

[0236] In one embodiment, the first communication resource and the second communication resource include one or more of carrier, link, frequency point and bandwidth.

[0237] In one embodiment, the second random access module 702 continues to perform random access including one or more of the following: performing random access using access resources, the access resources being determined based on the second communication resources; determining the transmission power and / or the number of transmissions based on the storage variables associated with the first communication resources; determining the transmission power and / or the number of transmissions based on the storage variables associated with the second communication resources; the number of transmissions being the number of times the preamble is transmitted.

[0238] Figure 8 is a schematic diagram of the structure of a network device provided in an embodiment of this application. As shown in Figure 8, the network device may include:

[0239] The sending module 801 is used to send indication information to the terminal device during the random access process. The indication information is used to indicate the switching of random access communication resources.

[0240] In one embodiment, the indication information may include: indication information for a second communication resource; uplink scheduling information associated with the second communication resource; indication information for a first value used to determine the second communication resource; information on switching random access communication resources; the second communication resource is a random access communication resource used by the terminal device after switching.

[0241] In one embodiment, the indication information is carried in the feedback message or control information of the uplink message during the random access process of the terminal device.

[0242] In one embodiment, the control information is DCI or MAC CE.

[0243] In one embodiment, the second communication resource includes one or more of carrier, link, frequency point, and bandwidth.

[0244] Specific limitations regarding terminal devices or network devices can be found in the limitations of the corresponding communication resource switching methods described above, and will not be repeated here. Each module in the aforementioned terminal device or network device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the device in hardware form or independent of it, or stored in the memory of the device in software form, so that the processor can call and execute the operations corresponding to each module.

[0245] In one embodiment, FIG9 is a schematic diagram of another terminal device provided in an embodiment of this application. The terminal device 900 shown in FIG9 includes: at least one processor 901, a memory 902, at least one network interface 904, and a user interface 903. The various components in the terminal device 900 are coupled together through a bus system 905. It is understood that the bus system 905 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 905 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 905 in FIG9. In addition, in this embodiment of the application, a transceiver 906 is also included. The transceiver 906 may be multiple elements, including a transmitter and a receiver, providing a unit for communicating with various other devices over a transmission medium.

[0246] The user interface 903 may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).

[0247] In this embodiment, the memory 902 stores a computer program, and the processor 901 invokes the computer program and controls the transceiver 906 to receive or send signals, so that the terminal device executes the above method. For a detailed description, please refer to the relevant description of the terminal device above.

[0248] In one embodiment, FIG10 is a schematic diagram of the structure of another network device provided in an embodiment of this application. FIG10 is a schematic diagram of the structure of a network device provided in an embodiment of this application. The network device 1000 shown in FIG10 includes: at least one processor 1001, a memory 1002, and at least one network interface 1003. The various components in the network device 1000 are coupled together through a bus system 1004. It is understood that the bus system 1004 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 1004 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 1004 in FIG10. In addition, in this embodiment of the application, a transceiver 1005 is also included. The transceiver 1005 may be multiple elements, including a transmitter and a receiver, providing a unit for communicating with various other devices over a transmission medium.

[0249] In this embodiment, the memory 1002 stores a computer program, and the processor 1001 invokes the computer program and controls the transceiver 1005 to receive or send signals, so that the network device executes the above method. For a detailed description, please refer to the relevant description of the network device.

[0250] The memory in this application embodiment can be volatile memory or non-volatile memory, or it can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate Synchronous DRAM (DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memory.

[0251] In one embodiment, a communication system is also provided, including a terminal device and a network device. Detailed descriptions of the terminal device and the network device can be found in the corresponding steps of the method embodiments described above.

[0252] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0253] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0254] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0255] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A communication resource switching method, characterized by, The method is applied to a terminal device, and the method includes: Random access is performed using the first communication resource; If the preset conditions are met, random access will continue using the second communication resource.

2. The method of claim 1, wherein, The preset conditions include one or more of the following: Received indication information for switching random access communication resources; The communication quality corresponding to the first communication resource is less than the first threshold. The communication quality corresponding to the second communication resource is greater than or equal to the first threshold; The load corresponding to the first communication resource is greater than or equal to the second threshold. The load corresponding to the second communication resource is less than the second threshold; The association between the first communication resource and the second communication resource; Send the first message.

3. The method of claim 2, wherein, The instruction information includes one of the following: Indication information for the second communication resource; Uplink scheduling information, wherein the uplink scheduling information is associated with the second communication resource; The first value indicates the information, and the second communication resource is determined based on the first value; Switch information on random access communication resources.

4. The method according to claim 2 or 3, characterized in that, The indication information is carried in the feedback message or control information of the uplink message during the random access process.

5. The method of claim 4, wherein, The control information is either downlink control information (DCI) or media access control (MAC) control unit (CE).

6. The method of claim 2, wherein, The first message is either the first message or the second message sent by the terminal device during the random access process.

7. The method according to any one of claims 2 to 6, characterized in that, The second communication resource is determined according to one or more of the following: The association between the first communication resource and the second communication resource; The communication quality corresponding to the communication resources, wherein the communication resources are communication resources that can be used by the terminal device other than the first communication resource; The load corresponding to the communication resources, wherein the communication resources are communication resources other than the first communication resources that can be used by the terminal device.

8. The method according to any one of claims 2 to 7, characterized in that, The association is determined based on pre-configured information or protocol agreement.

9. The method according to any one of claims 1 to 8, characterized in that, The first communication resource and the second communication resource include one or more of carrier, link, frequency point and bandwidth.

10. The method according to any one of claims 1 to 9, characterized in that, The continued random access includes one or more of the following: Random access is performed using access resources, which are determined based on the second communication resource; The transmission power and / or number of transmissions are determined based on the storage variables associated with the first communication resource; The transmission power and / or number of transmissions are determined based on the storage variables associated with the second communication resource; The number of times the preamble is sent refers to the number of times the preamble is sent.

11. A communication resource handover method, characterized by, The method is applied to a network device, and the method includes: During the random access process, an indication message is sent to the terminal device, which is used to indicate the switching of random access communication resources.

12. The method of claim 11, wherein, The instruction information includes one of the following: Indication information for the second communication resource; Uplink scheduling information, which is associated with a second communication resource; The first value is an indication information, used to determine the second communication resource; Switch information on random access communication resources; The second communication resource is the random access communication resource used by the terminal device after switching.

13. The method according to claim 11 or 12, characterized in that, The indication information is carried in the feedback message or control information of the uplink message during the random access process of the terminal device.

14. The method of claim 13, wherein, The control information is either downlink control information (DCI) or media access control (MAC) control unit (CE).

15. The method according to any one of claims 12-14, characterized in that, The second communication resource includes one or more of carrier, link, frequency, and bandwidth.

16. A terminal device, comprising: include: The first random access module is used to perform random access using the first communication resources; The second random access module is used to continue random access using the second communication resources when preset conditions are met.

17. The terminal device of claim 16, wherein, The preset conditions include one or more of the following: Received indication information for switching random access communication resources; The communication quality corresponding to the first communication resource is less than the first threshold. The communication quality corresponding to the second communication resource is greater than or equal to the first threshold; The load corresponding to the first communication resource is greater than or equal to the second threshold. The load corresponding to the second communication resource is less than the second threshold; The association between the first communication resource and the second communication resource; Send the first message.

18. The terminal device of claim 17, wherein, The instruction information includes one of the following: Indication information for the second communication resource; Uplink scheduling information, wherein the uplink scheduling information is associated with the second communication resource; The first value indicates the information, and the second communication resource is determined based on the first value; Switch information on random access communication resources.

19. The terminal device according to claim 17 or 18, characterized by The indication information is carried in the feedback message or control information of the uplink message during the random access process.

20. The terminal device of claim 19, wherein, The control information is either downlink control information (DCI) or media access control (MAC) control unit (CE).

21. The terminal device of claim 17, wherein, The first message is either the first message or the second message sent by the terminal device during the random access process.

22. The terminal device according to any one of claims 17-21, characterized by, The second communication resource is determined according to one or more of the following: The association between the first communication resource and the second communication resource; The communication quality corresponding to the communication resources, wherein the communication resources are communication resources that can be used by the terminal device other than the first communication resource; The load corresponding to the communication resources, wherein the communication resources are communication resources other than the first communication resources that can be used by the terminal device.

23. The terminal device according to any of the claims 17-22, characterized by The association is determined based on pre-configured information or protocol agreement.

24. The terminal device according to any of claims 16-23, characterized by The first communication resource and the second communication resource include one or more of carrier, link, frequency point and bandwidth.

25. The terminal device according to any of the claims 16-24, characterized by The second random access module continues to perform random access, including one or more of the following: Random access is performed using access resources, which are determined based on the second communication resource; The transmission power and / or number of transmissions are determined based on the storage variables associated with the first communication resource; The transmission power and / or number of transmissions are determined based on the storage variables associated with the second communication resource; The number of times the preamble is sent refers to the number of times the preamble is sent.

26. A network device, comprising: include: The sending module is used to send indication information to the terminal device during the random access process, the indication information being used to indicate the switching of random access communication resources.

27. The network device of claim 26, wherein, The instruction information includes one of the following: Indication information for the second communication resource; Uplink scheduling information, which is associated with a second communication resource; The first value is an indication information, used to determine the second communication resource; Switch information on random access communication resources; The second communication resource is the random access communication resource used by the terminal device after switching.

28. The network device of claim 26 or 27, wherein, The indication information is carried in the feedback message or control information of the uplink message during the random access process of the terminal device.

29. The network device of claim 28, wherein, The control information is either downlink control information (DCI) or media access control (MAC) control unit (CE).

30. The network device of any of claims 27-29, wherein, The second communication resource includes one or more of carrier, link, frequency, and bandwidth.

31. A terminal device, comprising: Includes transceiver, memory, and processor; The memory is used to store computer programs, and the processor is used to invoke the computer programs and control the transceiver to receive or send signals so that the terminal device performs the method as described in any one of claims 1-10.

32. A network device, comprising: Includes transceiver, memory, and processor; The memory is used to store a computer program, and the processor is used to invoke the computer program and control the transceiver to receive or send signals so that the network device performs the method as described in any one of claims 11-15.

33. A computer readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 15.