Wireless communication method and terminal device
Through the terminal equipment's repackaging and competition random access process of MAC PDU and C-RNTI MAC CE, the problem of data transmission and conflict identification when the terminal equipment does not select a reference signal that meets the conditions in the new air interface system is solved, ensuring that Smooth data transfer and conflict resolution.
Patent Information
- Application Number
- CN201980099420.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-10-23
AI Technical Summary
In the new air interface system, when the terminal device does not select a reference signal that meets the conditions, how to transmit data so that the network device can identify the terminal device and resolve contention conflicts.
The terminal device repackages the cached MAC PDU and C-RNTI MAC CE, and sends the target MAC PDU to the network device through a competition-based random access process, so that the network device can identify the terminal device based on the C-RNTI MAC CE and solve the problem. Competitive conflicts.
When the terminal device does not select a reference signal that meets the conditions, uplink message transmission through packet reassembly and competition for random access processes is realized, ensuring that the network device can identify the terminal device and resolve competition conflicts, ensuring the smooth progress of data transmission.
Smart Images

Figure CN114246013B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communications, and more specifically, to a wireless communication method and a terminal device. Background Art
[0002] The New Radio (NR) system can support a contention based two-step random access (Random Access) process (CBRA for short). In the two-step CBRA, message 1 (Message 1, Msg 1) and message 3 (Msg 3) in the four-step random access process can be sent as the first message (Message A, Msg A) in the two-step CBRA, and message 2 (Msg 2) and message 4 (Msg 4) in the four-step random access process can be sent as the second message (Message B, Msg B) in the two-step CBRA, where Msg3 can be used for the network device to identify the UE to resolve contention conflicts.
[0003] The NR system also supports a non-contention (Contention Free) two-step random access process (CFRA for short). In the two-step CFRA process, Msg1 and Msg3 in MsgA are both UE-specific, that is, the network device can identify the terminal device based on the received Msg1.
[0004] In some cases, if the terminal device wants to initiate a two-step CFBA but fails to select a suitable beam, it needs to fall back to a contention-based random access process. In this case, how the terminal device transmits data so that the network device can identify the terminal device and resolve contention conflicts is an urgent problem that needs to be solved. Summary of the invention
[0005] The embodiment of the present application provides a wireless communication method and a terminal device, and the terminal device can repackage the cached MAC PDU and C-RNTI MAC CE, so that the network device can identify the terminal device according to the C-RNTI MAC CE in the new package, and further can resolve the contention conflict according to the C-RNTI MAC CE.
[0006] In a first aspect, a wireless communication method is provided, the method comprising: a terminal device measures at least one reference signal to determine a target reference signal for a non-contention two-step random access process; if there is no reference signal that meets the conditions in the at least one reference signal, the terminal device determines to adopt a contention-based random access process; the terminal device indicates that a multiplexing and packaging entity includes a cell radio network temporary identifier C-RNTI MAC control element CE and at least one media access control MAC sub-protocol data unit PDU to obtain a target MAC PDU, wherein the at least one MAC sub-PDU includes a MAC service data unit SDU in a cached MAC PDU and the cached MAC PDU does not include a C-RNTI MAC CE; the terminal device initiates a contention-based random access process and sends the target MAC PDU carried in a physical uplink shared channel PUSCH to a network device.
[0007] In a second aspect, a terminal device is provided for executing the method in the above-mentioned first aspect or its various implementation modes.
[0008] Specifically, the terminal device includes a functional module for executing the method in the above-mentioned first aspect or its various implementation modes.
[0009] In a third aspect, a terminal device is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method in the first aspect or its implementations.
[0010] In a fourth aspect, a device is provided for implementing the method in the above-mentioned first aspect or its various implementation modes.
[0011] Specifically, the apparatus includes: a processor, configured to call and run a computer program from a memory, so that a device equipped with the apparatus executes the method in the above-mentioned first aspect or its various implementation modes.
[0012] In a fifth aspect, a computer-readable storage medium is provided for storing a computer program, wherein the computer program enables a computer to execute the method in the above-mentioned first aspect or its various implementations.
[0013] In a sixth aspect, a computer program product is provided, comprising computer program instructions, wherein the computer program instructions enable a computer to execute the method in the above-mentioned first aspect or its various implementations.
[0014] In a seventh aspect, a computer program is provided, which, when executed on a computer, enables the computer to execute the method in the first aspect or its various implementations.
[0015] Through the above technical solution, when the terminal device wants to initiate a two-step CFBA but fails to select a reference signal that meets the conditions, the terminal device determines to initiate random access using a contention-based random access process. Prior to this, since the terminal device has packaged the data to be transmitted and placed it in a cache, and the MAC PDU in the cache does not include the C-RNTI MACCE, when determining to initiate a contention-based random access process, the terminal device can instruct the multiplexing and packaging entity to re-package the cached MAC PDU and C-RNTI MAC CE, which can be further sent to the network device via an uplink message in the random access process, so that the network device can resolve contention conflicts based on the C-RNTI MAC CE. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of a communication system architecture provided in an embodiment of the present application.
[0017] Figure 2 It is a schematic diagram of a four-step random access provided in an embodiment of the present application.
[0018] Figure 3 It is a schematic diagram of converting four-step random access to two-step random access according to an embodiment of the present application.
[0019] Figure 4 It is a schematic flowchart of a wireless communication method provided according to an embodiment of the present application.
[0020] Figure 5 It is a schematic block diagram of a terminal device provided according to an embodiment of the present application.
[0021] Figure 6 It is a schematic block diagram of a communication device provided according to an embodiment of the present application.
[0022] Figure 7 It is a schematic block diagram of a chip provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. For the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] The embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, Advanced Long Term Evolution (LTE-A) system, New Radio (NR) system, NR system evolution system, LTE on unlicensed spectrum (LTE-U) system, NR on unlicensed spectrum (NR-based access to unlicensed spectrum, NR-U) system, Universal Mobile Telecommunication System (UMTS), Wireless Local Area Networks (WLAN), Wireless Fidelity (WiFi), next generation communication system or other communication systems, etc.
[0025] Generally speaking, traditional communication systems support a limited number of connections and are easy to implement. However, with the development of communication technology, mobile communication systems will not only support traditional communications, but will also support, for example, device to device (Device to Device, D2D) communication, machine to machine (Machine to Machine, M2M) communication, machine type communication (Machine Type Communication, MTC), and vehicle to vehicle (Vehicle to Vehicle, V2V) communication, etc. The embodiments of the present application can also be applied to these communication systems.
[0026] Optionally, the communication system in the embodiment of the present application can be applied to a carrier aggregation (CA) scenario, a dual connectivity (DC) scenario, or a standalone (SA) networking scenario.
[0027] The embodiments of the present application do not limit the spectrum to which they are applied. For example, the embodiments of the present application can be applied to licensed spectrum or unlicensed spectrum.
[0028] For example, the communication system 100 used in the embodiment of the present application is as follows: Figure 1 The communication system 100 may include a network device 110, which may be a device that communicates with a terminal device 120 (or a communication terminal or terminal). The network device 110 may provide communication coverage for a specific geographical area and may communicate with terminal devices located in the coverage area.
[0029] Figure 1 One network device and two terminal devices are shown exemplarily. Optionally, the communication system 100 may include multiple network devices and each network device may include another number of terminal devices within its coverage area, which is not limited in the embodiments of the present application.
[0030] Optionally, the communication system 100 may also include other network entities such as a network controller and a mobility management entity, which is not limited in the embodiments of the present application.
[0031] It should be understood that the device with communication function in the network / system in the embodiment of the present application can be referred to as a communication device. Figure 1 Taking the communication system 100 shown as an example, the communication equipment may include a network device 110 and a terminal device 120 with communication functions. The network device 110 and the terminal device 120 may be the specific devices described above and will not be repeated here. The communication equipment may also include other devices in the communication system 100, such as a network controller, a mobile management entity and other network entities, which is not limited in the embodiments of the present application.
[0032] It should be understood that the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0033] The embodiments of the present application describe various embodiments in combination with terminal devices and network devices, wherein: the terminal device may also be referred to as user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc. The terminal device may be a station (ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, and a next-generation communication system, for example, a terminal device in an NR network or a terminal device in a future evolved Public Land Mobile Network (PLMN) network, etc.
[0034] As an example but not limitation, in the embodiments of the present application, the terminal device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.
[0035] The network device can be a device used to communicate with a mobile device. The network device can be an access point (AP) in WLAN, a base station (Base Transceiver Station, BTS) in GSM or CDMA, a base station (NodeB, NB) in WCDMA, an evolved base station (Evolutional Node B, eNB or eNodeB) in LTE, or a relay station or access point, or a vehicle-mounted device, a wearable device, and a network device or base station (gNB) in an NR network, or a network device in a future evolved PLMN network, etc.
[0036] In an embodiment of the present application, a network device provides services for a cell, and a terminal device communicates with the network device through transmission resources (e.g., frequency domain resources, or spectrum resources) used by the cell. The cell may be a cell corresponding to a network device (e.g., a base station). The cell may belong to a macro base station or a base station corresponding to a small cell. The small cells here may include: a metro cell, a micro cell, a picocell, a femtocell, etc. These small cells have the characteristics of small coverage and low transmission power, and are suitable for providing high-speed data transmission services.
[0037] After the cell search process, the terminal device has achieved downlink synchronization with the cell, so the terminal device can receive downlink data. However, the terminal device can only perform uplink transmission after achieving uplink synchronization with the cell. The terminal device can establish a connection with the cell and achieve uplink synchronization through the random access procedure. In order to facilitate the understanding of the solution of the embodiment of the present application, the following will be combined with Figure 2 Briefly introduce the random access process.
[0038] The random access process can usually be triggered by the following events:
[0039] (1) Initial Access
[0040] The terminal device can enter the RRC connected state (RRC_CONNECTED) from the Radio Resource Control (RRC) idle state (RRC_IDLE state).
[0041] (2)RRC Connection Re-establishment procedure
[0042] (3)Handover.
[0043] At this point, the terminal device is in a connected state and needs to establish uplink synchronization with the new cell.
[0044] (4) In RRC_CONNECTED state, when DL or UL data arrives, the uplink is in the "non-synchronised" state (DL or UL data arrival during RRC_CONNECTED when UL synchronisation status is "non-synchronised").
[0045] (5) In the RRC connected state, when uplink data arrives, there are no available physical uplink control channel (PUCCH) resources for scheduling request (SR) transmission (UL data arrival during RRC_CONNECTED when there are no PUCCH resources for SR available).
[0046] (6)SR failure.
[0047] (7)Request by RRC upon synchronous reconfiguration.
[0048] (8) The terminal device transitions from the RRC inactive state (Transition from RRC_INACTIVE).
[0049] (9) To establish time alignment at SCell addition.
[0050] (10) The terminal device requests other system information (OSI).
[0051] (11) The terminal device needs to perform beam failure recovery.
[0052] In the NR system, two random access methods can be supported: contention-based random access method and non-contention random access method. The following briefly describes the four-step random access process based on contention, such as Figure 2 As shown, the four-step random access process includes:
[0053] Step 1: The terminal device sends a random access preamble (Preamble, also known as message 1, Msg1) to the network device.
[0054] Among them, the random access preamble code may also be called a preamble code, a random access preamble code sequence, a preamble code sequence, etc.
[0055] Specifically, the terminal device can select a physical random access channel (PRACH) resource, which can include time domain resources, frequency domain resources, and code domain resources. Next, the terminal device can send the selected Preamble on the selected PRACH resource. The network device can estimate the transmission delay between it and the terminal device based on the Preamble and calibrate the uplink timing, and can roughly determine the size of the resources required for the terminal device to transmit Message 3 (Msg 3).
[0056] Step 2: The network device sends a random access response (Random Access Response, RAR, also known as message 2, Msg2) to the terminal device.
[0057] After the terminal device sends the Preamble to the network device, it can open a RAR window, in which the corresponding Physical Downlink Control Channel (PDCCH) is detected according to the Random Access Radio Network Temporary Identifier (RA-RNTI). If the terminal device detects the PDCCH scrambled by the RA-RNTI, it can obtain the Physical Downlink Shared Channel (PDSCH) scheduled by the PDCCH. The PDSCH includes the RAR corresponding to the Preamble.
[0058] If the RAR returned by the network device is not received within the RAR window, the terminal device may consider that the random access process has failed. It should be understood that both the terminal device and the network device need to uniquely determine the value of RA-RNTI, otherwise the terminal device cannot decode the RAR.
[0059] Optionally, in the embodiment of the present application, the RA-RNTI value can be calculated by the time-frequency position of the Preamble that is clear to both the sender and the receiver. For example, the RA-RNTI associated with the Preamble can be calculated by Formula 1:
[0060] RA-RNTI=1+s_id+14×t_id+14×80×f_id+14×80×8×ul_c_id Formula 1
[0061] Among them, s_id is the index of the first orthogonal frequency division multiplexing (Orthogonal Frequency Division Multiplexing, OFDM) symbol of the PRACH resource (0≤s_id<14), t_id is the index of the first time slot of the PRACH resource in a system frame (0≤t_id<80), f_id is the index of the PRACH resource in the frequency domain (0≤f_id<8), ul_c_id is the uplink carrier used to transmit the Preamble (0 represents the normal uplink (NUL) carrier, 1 represents the supplementary uplink (SUL) carrier). For frequency division duplexing (FDD), there is only one PRACH resource per subframe, so f_id is fixed to 0.
[0062] In other words, since the time-frequency position of the Preamble sent by the terminal device is determined, the network device also obtains the time-frequency position of the Preamble when decoding the Preamble, and can then know the RA-RNTI that needs to be used in the RAR. When the terminal device successfully receives a RAR (decoded using a determined RA-RNTI), and the Random Access Preamble Identifier (RAPID) in the RAR is the same as the Preamble index sent by the terminal device, it can be considered that the RAR has been successfully received, and the terminal device can stop detecting the PDCCH encrypted with RA-RNTI.
[0063] Step 3: The terminal device sends Msg 3.
[0064] After receiving the RAR message, the terminal device determines whether the RAR is its own RAR message. For example, the terminal device can use the preamble code index for verification. After determining that it is its own RAR message, it can generate Msg 3 at the RRC layer and send Msg 3 to the network device, which needs to carry the identification information of the terminal device.
[0065] Msg 3 is mainly used to notify the network device of the triggering event of the random access. For different random access triggering events, the Msg 3 sent by the terminal device in step 3 may include different contents.
[0066] For example, for the initial access scenario, Msg 3 may include an RRC connection request message (RRCSetup Request) generated by the RRC layer. In addition, Msg3 may also carry, for example, the 5G-serving temporary mobile user identity (Serving-Temporary Mobile Subscriber Identity, S-TMSI) of the terminal device or a random number.
[0067] For another example, for an RRC connection reestablishment scenario, Msg 3 may include an RRC connection reestablishment request message (RRC Reestabilshment Request) generated by the RRC layer. In addition, Msg 3 may also carry, for example, a Cell Radio Network Temporary Identifier (C-RNTI) and the like.
[0068] For another example, for a handover scenario, Msg 3 may include an RRC handover confirmation message (RRCHandover Confirm) generated by the RRC layer, which carries the C-RNTI of the terminal device. In addition, Msg 3 may also carry information such as a buffer status report (BSR). For other triggering events such as the arrival of uplink / downlink data, Msg 3 may at least include the C-RNTI of the terminal device.
[0069] Step 4: The network device sends a contention resolution message, namely Msg4, to the terminal device.
[0070] The network device sends Msg 4 to the terminal device, and the terminal device correctly receives Msg 4 to complete contention resolution. For example, during the RRC connection establishment process, Msg 4 may carry the RRC connection establishment message.
[0071] Since the terminal device in step 3 can carry its own unique identifier in Msg 3, the network device will carry the unique identifier of the terminal device in Msg4 in the contention resolution mechanism to specify the terminal device that won the contention. Other terminal devices that did not win the contention resolution will re-initiate random access.
[0072] In some embodiments of the present application, there are two ways to resolve contention conflicts:
[0073] Method 1: If the terminal device carries C-RNTI in Msg 3, Msg4 can be scheduled with PDCCH scrambled by C-RNTI.
[0074] Method 2: If the terminal device does not carry C-RNTI in Msg 3, such as initial access, Msg 4 can be scheduled with PDCCH scrambled by TC-RNTI. At this time, the contention conflict can be resolved by the terminal device receiving the PDSCH of Msg 4, obtaining the conflict resolution ID, and matching the conflict resolution ID with the common control channel (CCCH) service data unit (SDU) in Msg 3 to determine whether the conflict is resolved.
[0075] The delay of four-step random access is relatively large and cannot meet the requirements of low-latency and high-reliability services in 5G NR systems. Therefore, a two-step random access process is proposed. Figure 3 As shown, the two-step random access process is equivalent to combining the first step and the third step of the four-step random access process into the first step of the two-step random access process, and combining the second step and the fourth step of the four-step random access process into the second step of the two-step random access process. This random access process can be called a contention-based two-step random access process (2-step CBRA).
[0076] More specifically, the two-step random access process may include:
[0077] Step 1: The terminal device sends the first message (Msg A) to the network device.
[0078] Among them, Msg A can be composed of Preamble and payload, Preamble is the Preamble of four-step random access, the Preamble is transmitted on PRACH resources, and Payload mainly carries the information in Msg 3 in four-step random access. For example, it can include CCCH SDU, such as corresponding to random access in RRC idle state, and it can also include C-RNTI Media Access Control Control Element (MAC CE), such as mainly corresponding to random access in RRC connected state. Payload can be carried on an uplink channel, and the uplink channel can be, for example, a physical uplink shared channel (Physical Uplink Shared Channel, PUSCH).
[0079] It should be understood that Msg A can carry part or all of the information carried in the Preamble and Msg 3 in the four-step random access process.
[0080] Step 2: The network device sends the second message (Msg B) to the terminal device.
[0081] If the network device successfully receives Msg A sent by the terminal device, it can send Msg B to the terminal device. The Msg B may include part or all of the information carried in Msg 2 and Msg 4 in the four-step random access process. It should be understood that the embodiments of the present application do not limit the names of Msg A and Msg B, that is, they can also be expressed as other names. For example, the first message can also be called a random access request message or a new Msg 1, and the second message can also be called a random access response message or a new Msg 2.
[0082] It should be understood that Figure 3 It is only a specific implementation of the two-step random access process and should not limit the protection scope of this application.
[0083] In the NR system, a non-competitive random access process, namely two-step CFRA (or 2-step CFRA), is also supported. Msg1 (i.e. Preamble) and Msg3 (such as PUSCH) in MsgA in the two-step CFRA can be UE-specific. For example, the network device can pre-configure the Preamble and C-RNTI to the terminal device. Specifically, the network device can configure the Preamble and C-RNTI through a handover command (Handover Command), so that the network device can identify the terminal device according to Msg1 received by the terminal device.
[0084] If the terminal device wants to initiate two-step CFBA, the terminal device can measure the reference signal used for two-step CFBA (such as the Synchronization Signal Block (SSB) or the Channel State Information Reference Signal (CSI-RS)) to determine a reference signal that meets the conditions, so that the reference signal can be used to initiate two-step CFBA.
[0085] However, if the terminal device fails to select a reference signal that meets the conditions, in this case, the terminal device needs to fall back to a contention-based random access process. Prior to this, since the terminal device wants to initiate non-contention random access, the terminal device has packaged the data to be transmitted to generate a Media Access Control (MAC) Protocol Data Unit (PDU) and stored it in a cache. Since the terminal device wants to initiate non-contention random access, the MAC PDU in the cache does not include the UE ID. In this case, when the terminal device falls back to the contention-based random access process, how the terminal device transmits data so that the network device can distinguish the terminal device and thereby compete is an urgent problem that needs to be solved.
[0086] Figure 4 is a schematic flow chart of a wireless communication method 200 according to an embodiment of the present application, such as Figure 4 As shown, the method 200 may include the following contents:
[0087] S210, the terminal device measures at least one reference signal to determine a target reference signal for a non-contention two-step random access process;
[0088] S220, if there is no reference signal satisfying the condition in the at least one reference signal, the terminal device determines to adopt a contention-based random access process;
[0089] S230, the terminal device instructs the multiplexing and packaging entity to include a cell radio network temporary identifier C-RNTI MAC control element CE and at least one medium access control MAC sub-protocol data unit PDU to obtain a target MAC PDU, wherein the at least one MAC sub-PDU includes a MAC service data unit SDU in a cached MAC PDU and the cached MAC PDU does not include a C-RNTI MAC CE;
[0090] S240, the terminal device initiates a contention-based random access process, and sends the target MAC PDU carried in a physical uplink shared channel PUSCH to a network device.
[0091] It should be understood that the cached MAC PDU is generated and stored in the cache before the terminal device initiates a non-competitive two-step random access process. For example, the MAC PDU is generated before measuring the at least one reference signal, or generated during the measurement of the at least one reference signal. That is, before the terminal device determines to fall back to the contention-based random access process, the terminal device has generated a MAC PDU for the data to be transmitted and stored it in the cache.
[0092] As can be seen from the previous description, for non-competitive two-step random access, the network device can distinguish UEs based on the UE-specific Preamble. Therefore, the data to be transmitted (ie, payload) does not need to include the UE's identification information, that is, the MAC PDU generated by the terminal device may not include the UE's identification information.
[0093] In an embodiment of the present application, the C-RNTI MAC CE can be used to identify the terminal device, that is, the network device can identify the terminal device according to the C-RNTI MAC CE in the received PUSCH, so as to perform conflict resolution in the contention-based random access process.
[0094] It should be understood that the embodiments of the present application may also replace the C-RNTI MAC CE with other identification information of the terminal device, such as the UE ID. That is to say, the terminal device may also repackage the cached MAC PDU and other identification information of the terminal device to obtain the target MAC PDU, so as to facilitate the network device to resolve conflicts.
[0095] In the embodiment of the present application, the terminal device is configured with resources for non-contention two-step random access, recorded as 2-step CFRA resources, and the 2-step CFRA resources may include:
[0096] A random access channel (RACH) resource dedicated to 2-step CFRA, used to send a random access preamble (i.e., preamble), for example, the RACH resource may include a RACH opportunity (RO) resource and a reference signal resource, such as an SSB or a CSI-RS, wherein the RACH resource may also be referred to as a PRACH resource;
[0097] PUSCH resources dedicated to 2-step CFRA, such as PUSCH opportunity (PO) resources, are used to send data to be transmitted, such as Msg3.
[0098] Optionally, the 2-step CFRA resource can be configured by the network device. For example, the network device can configure the 2-step CFRA resource through a handover command (Handover command, HO command). In a specific implementation, the relevant configuration of the 2-step CFRA resource can be carried in the reconfiguration and synchronization information (ReconfigurationWithSync).
[0099] In an embodiment of the present application, the terminal device may determine a target RACH resource for initiating 2-step CFRA from the configured 2-step CFRA resources.
[0100] For example, the terminal device may measure at least one reference signal configured for 2-step CFRA, and determine the target RACH resource based on the measured value of the at least one reference signal, wherein the at least one reference signal is at least one reference signal associated with the RACH resource in the 2-step CFRA resource.
[0101] In an implementation manner, the terminal device may determine the target RACH resource according to the measurement value of the at least one reference signal in combination with a first corresponding relationship, wherein the first corresponding relationship is a corresponding relationship between a reference signal and a RACH resource.
[0102] For example, the terminal device may determine a reference signal from the reference signals whose measurement values meet the condition, and determine the RACH resource corresponding to the reference signal as the target RACH resource.
[0103] Optionally, the condition may include that a measured value of the reference signal is greater than or equal to a first threshold.
[0104] Optionally, the first threshold is preconfigured or configured by a network device.
[0105] Optionally, the reference signal may be an SSB or a CSI-RS, that is, the first corresponding relationship may be a corresponding relationship between an SSB and a RACH resource, or may be a corresponding relationship between a CSI-RS and a RACH resource.
[0106] It should be understood that when the reference signal is the SSB or CSI-RS, the first threshold used may be the same or different.
[0107] Optionally, the measurement value of the reference signal may refer to a reference signal received power (Reference Signal Receiving Power, RSRP), a reference signal received quality (Reference Signal Receiving Quality, RSRQ), or a carrier to interference plus noise ratio (Carrier to Interference plus Noise Ratio, SR-SINR) of the reference signal, etc.
[0108] In some embodiments, in the first corresponding relationship, the reference signal and the RACH resource can be in one-to-one correspondence, many-to-one correspondence, or one-to-many correspondence, that is, the SSB and the RACH resource can be in one-to-one correspondence, many-to-one correspondence, or one-to-many correspondence, or the CSI-RS and the RACH resource can be in one-to-one correspondence, many-to-one correspondence, or one-to-many correspondence.
[0109] Optionally, in an embodiment of the present application, the first corresponding relationship is preconfigured or configured by a network device.
[0110] For example, the first corresponding relationship is configured by the network device through common RACH resource configuration information (RACH-ConfigCommon) and / or dedicated RACH resource configuration information (RACH-ConfigDedicated).
[0111] The following describes the subsequent processes in combination with the results of the reference signal selection.
[0112] Case 1: the terminal device selects a reference signal that meets the condition from the at least one reference signal. In this case, the terminal device may perform 2-step CFRA.
[0113] In some embodiments, the terminal device may generate a MAC PDU based on the PO resource in the 2-step CFRA resource and store it in a cache. Specifically, the hybrid automatic repeat request (HARQ) entity of the terminal device may instruct the multiplexing and assembly entity to generate the MAC PDU, and further, after the target reference signal meets the conditions, 2-step CFRA may be performed to transmit the cached MAC PDU to the network device.
[0114] For the non-competitive random access process, the network device can distinguish the UE through the Preamble, so Msg3 does not need to include identification information for distinguishing the UE, such as C-RNTI, that is, the cached MAC PDU does not need to include the C-RNTI Media Access Control Contol Element (MAC CE).
[0115] Optionally, in some embodiments, if there are remaining PO resources, the MAC PDU generated by the terminal device may also include a handover complete (Handover Complete, HO Complete) message and / or user plane data.
[0116] Case 2: If the at least one reference signal does not meet the conditions, the terminal device may determine a target RACH resource in the contention-based RACH resources, and further initiate a contention-based random access process.
[0117] The following describes the subsequent process in conjunction with the type of contention-based RACH resources configured on the terminal device.
[0118] For the convenience of distinction and description, the contention-based RACH resource configured on the terminal device is recorded as a first candidate RACH resource, and the first candidate RACH resource can be used by the terminal device to initiate a contention-based random access process.
[0119] Case 2.1: If the first candidate RACH resources only include RACH resources for contention-based two-step random access (2-step CBRA resources), the terminal device may determine the target RACH resource from the 2-step CBRA resources and further perform 2-step CBRA.
[0120] Among them, the first candidate RACH resource only includes RACH resources for contention-based two-step random access, which may refer to the uplink bandwidth part (Bandwidth Part, BWP) corresponding to the first activated uplink BWP identifier (firstActiveUplinkBWP-Id) indicated in the HO command of the network device, which is only configured with 2-step CBRA resources, that is, no 4-stepCBRA resources are configured. Of course, random access resources for non-contention can also be configured, which is not limited here.
[0121] Case 2.2: If the first candidate RACH resources only include RACH resources for four-step random access (4-stepRACH resources), the terminal device can determine the target RACH resource in the 4-step RACH resources and further perform a contention-based four-step random access process, namely, 4-step CBRA.
[0122] Among them, the first candidate RACH resource only includes resources for 4-step RACH, which may refer to the uplink BWP corresponding to the first activated uplink BWP identifier (firstActiveUplinkBWP-Id) indicated in the HOcommand of the network device, which is only configured with 4-step RACH resources, that is, no 2-step CBRA resources are configured. Of course, it can also be configured for non-competitive random access resources, which is not limited here.
[0123] Case 2.3: If the first candidate RACH resource includes a 2-step CBRA resource and a 4-step RACH resource, the terminal device may first determine the target random access type before determining the target reference signal, and may further determine the target RACH resource in the configured contention-based RACH resources according to the target random access type, and further perform the corresponding random access process.
[0124] For example, if the determined target random access type is 2-step CBRA, the target RACH resources can be determined in the configured 2-step CBRA resources, and the 2-step CBRA process can be further initiated; or, if the determined target random access type is 4-step CBRA, the target RACH resources can be determined in the configured 4-step CBRA resources, and the 4-step CBRA process can be further initiated.
[0125] Optionally, in some embodiments, the terminal device may determine the target random access type based on the downlink path loss. For example, the terminal device may determine the target random access type based on the current downlink path loss and a preset threshold. As an example, if the current downlink path loss is greater than or equal to the preset threshold, the target random access type is determined to be 2-step CBRA, otherwise it is 4-step CBRA. That is, when the downlink path loss is large, selecting the contention-based two-step random access is beneficial to reducing the access delay. When the downlink path loss is small, selecting the contention-based four-step random access is beneficial to increasing the probability of successful access.
[0126] In an embodiment of the present application, if it is determined to adopt contention-based access, the terminal device instructs the multiplexing and packaging entity to include C-RNTI MAC CE and at least one MAC sub-PDU to obtain a target MAC PDU, wherein the at least one MAC sub PDU includes a MAC service data unit SDU in a cached MAC PDU and the cached MAC PDU does not include a C-RNTI MAC CE.
[0127] That is to say, the terminal device can assemble the C-RNTI MAC CE and the cached MAC PDU to obtain the target MAC PDU. Specifically, the HARQ entity of the terminal device can instruct the multiplexing and assembly entity to assemble the C-RNTI MAC CE and the cached MAC PDU to obtain the target MAC PDU. Furthermore, the terminal device can initiate a contention-based random access process and send the target MAC PDU to the network device. Since the MAC PDU includes a C-RNTI MAC CE for distinguishing UEs, the network device can resolve contention conflicts based on the C-RNTI MAC CE.
[0128] Optionally, in an embodiment of the present application, if it is determined to use 2-step CBRA to initiate random access, the terminal device may also determine the preamble group used by 2-step CBRA based on the size of the data to be transmitted (payload), wherein the data to be transmitted includes the cached MAC PDU and the C-RNTI MAC CE.
[0129] Optionally, in an embodiment of the present application, if it is determined to use 4-step CBRA to initiate random access, the terminal device may receive an uplink grant (UL grant) from the RAR, and further transmit the repackaged target MAC PDU through the uplink resources indicated by the uplink grant.
[0130] In some embodiments, if the uplink resources have sufficient remaining resources to transmit the HO complete message in addition to transmitting the cached MAC PDU and C-RNTI MAC CE, then the target MAC PDU may also include the HOcomplete message, that is, the HOcomplete message may be packaged into the target MAC PDU and transmitted through the uplink resources indicated by the uplink authorization; in other embodiments, if the remaining resources are not sufficient to transmit the HO complete message, the HO complete message may also be transmitted through the first uplink authorization after the random access is successful.
[0131] Therefore, in an embodiment of the present application, when the terminal device wants to initiate a two-step CFBA but fails to select a reference signal that meets the conditions, the terminal device can fall back to a contention-based random access process. Prior to this, since the terminal device has packaged the data to be transmitted and placed it in a cache, and since the MAC PDU in the cache does not include a C-RNTI MAC CE, in this case, when the terminal device determines to initiate a contention-based random access process, the terminal device can instruct the multiplexing and packaging entity to re-package the cached MAC PDU and C-RNTI MAC CE, which can be further sent to the network device via an uplink message in the random access process, so that the network device can resolve the contention based on the C-RNTI MAC CE.
[0132] Figure 5 FIG. 4 shows a schematic block diagram of a terminal device 400 according to an embodiment of the present application. Figure 5 As shown, the terminal device 400 includes:
[0133] The processing module 410 is configured to measure at least one reference signal to determine a target reference signal for a non-contention two-step random access process; if there is no reference signal satisfying the condition in the at least one reference signal, the terminal device determines to adopt a contention-based random access process; and
[0134] Instructing the multiplexing and packaging entity to include a cell radio network temporary identifier C-RNTI MAC control element CE and at least one medium access control MAC sub-protocol data unit PDU to obtain a target MAC PDU, wherein the at least one MAC sub-PDU includes a MAC service data unit SDU in a buffered MAC PDU and the buffered MAC PDU does not include the C-RNTI MAC CE;
[0135] The communication module 420 is used to initiate a contention-based random access process, and send the target MAC PDU carried in a physical uplink shared channel PUSCH to a network device.
[0136] Optionally, in some embodiments, the processing module 410 is further configured to:
[0137] A target RACH resource for a contention-based random access procedure is determined according to a configured first candidate random access RACH resource, wherein the first candidate RACH resource is used for a contention-based random access procedure, and the target RACH resource is used to send a random access preamble.
[0138] Optionally, in some embodiments, the processing module 410 is specifically used to:
[0139] If the first candidate RACH resources only include RACH resources used for a four-step random access procedure, determining the target RACH resource from the RACH resources used for the four-step random access procedure; or
[0140] If the first candidate RACH resources include only RACH resources used for a contention-based two-step random access procedure, determining the target RACH resource from the RACH resources used for a contention-based two-step random access procedure; or
[0141] If the first candidate RACH resources include RACH resources for a contention-based two-step random access procedure and RACH resources for a four-step random access procedure, a target random access type is determined, and the target RACH resource is determined according to the target random access type.
[0142] Optionally, in some embodiments, the processing module 410 is further configured to:
[0143] If the current downlink path loss is greater than or equal to the first path loss threshold, determine that the target random access type is a contention-based two-step random access process, and determine the target RACH resource in the RACH resources used for the contention-based two-step random access process; or
[0144] If the current downlink path loss is less than the first path loss threshold, the random access type is determined to be a four-step random access process, and the target RACH resource is determined in the RACH resources used for the four-step random access process.
[0145] Optionally, in some embodiments, the communication module 420 is further used to:
[0146] If the target RACH resource is a RACH resource used for a contention-based two-step random access procedure, initiating a contention-based two-step random access procedure; or
[0147] If the target RACH resource is a RACH resource used for a four-step random access procedure, a four-step random access procedure is initiated.
[0148] Optionally, in some embodiments, the processing module 410 is further configured to:
[0149] If it is determined to adopt a contention-based two-step random access process, the preamble code group of the contention-based two-step random access process is determined according to the size of the data to be transmitted, wherein the data to be transmitted includes the cached MAC PDU and the C-RNTI MAC CE, and different sizes of data to be transmitted correspond to corresponding preamble code groups.
[0150] Optionally, in some embodiments, the processing module 410 is further configured to:
[0151] If there is a reference signal satisfying the condition in the at least one reference signal, it is determined to adopt a non-contention two-step random access process.
[0152] Optionally, in some embodiments, the processing module 410 is further configured to:
[0153] A target RACH resource for a non-contention two-step random access procedure is determined according to a reference signal that meets the condition and a first corresponding relationship, wherein the first corresponding relationship is a corresponding relationship between a reference signal and a RACH resource.
[0154] Optionally, in some embodiments, the processing module 410 is specifically used to:
[0155] The RACH resource corresponding to the reference signal that meets the condition in the first corresponding relationship is determined as the target RACH resource.
[0156] Optionally, in some embodiments, the condition includes a measured value of the reference signal being greater than or equal to a first threshold.
[0157] Optionally, in some embodiments, the communication module may be a communication interface or a transceiver, or an input / output interface of a communication chip or a system on chip. The processing module may be one or more processors.
[0158] It should be understood that the terminal device 400 according to the embodiment of the present application may correspond to the terminal device in the method embodiment of the present application, and the above and other operations and / or functions of each unit in the terminal device 400 are respectively to implement Figure 4 For the sake of brevity, the corresponding process of the terminal device in the method 200 is not repeated here.
[0159] Figure 6 It is a schematic structural diagram of a communication device 600 provided in an embodiment of the present application. Figure 6 The communication device 600 shown includes a processor 610, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.
[0160] Alternatively, if Figure 6 As shown, the communication device 600 may further include a memory 620. The processor 610 may call and run a computer program from the memory 620 to implement the method in the embodiment of the present application.
[0161] The memory 620 may be a separate device independent of the processor 610 , or may be integrated into the processor 610 .
[0162] Alternatively, if Figure 6 As shown, the communication device 600 may further include a transceiver 630, and the processor 610 may control the transceiver 630 to communicate with other devices, specifically, may send information or data to other devices, or receive information or data sent by other devices.
[0163] The transceiver 630 may include a transmitter and a receiver. The transceiver 630 may further include an antenna, and the number of the antennas may be one or more.
[0164] Optionally, the communication device 600 may specifically be a network device of an embodiment of the present application, and the communication device 600 may implement the corresponding processes implemented by the network device in each method of the embodiment of the present application, which will not be described in detail here for the sake of brevity.
[0165] Optionally, the communication device 600 may specifically be a mobile terminal / terminal device of an embodiment of the present application, and the communication device 600 may implement the corresponding processes implemented by the mobile terminal / terminal device in each method of the embodiment of the present application, which will not be described in detail here for the sake of brevity.
[0166] Figure 7 It is a schematic structural diagram of the chip of an embodiment of the present application. Figure 7 The chip 700 shown includes a processor 710, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.
[0167] Alternatively, if Figure 7 As shown, the chip 700 may further include a memory 720. The processor 710 may call and run a computer program from the memory 720 to implement the method in the embodiment of the present application.
[0168] The memory 720 may be a separate device independent of the processor 710 , or may be integrated into the processor 710 .
[0169] Optionally, the chip 700 may further include an input interface 730. The processor 710 may control the input interface 730 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.
[0170] Optionally, the chip 700 may further include an output interface 740. The processor 710 may control the output interface 740 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.
[0171] Optionally, the chip can be applied to the network device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the network device in each method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0172] Optionally, the chip can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0173] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0174] It should be understood that the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and performed. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, and other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0175] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0176] It should be understood that the above-mentioned memory is exemplary but not restrictive. For example, the memory in the embodiments of the present application may also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM), etc. That is to say, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.
[0177] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program.
[0178] Optionally, the computer-readable storage medium can be applied to the network device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the network device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0179] Optionally, the computer-readable storage medium can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0180] An embodiment of the present application also provides a computer program product, including computer program instructions.
[0181] Optionally, the computer program product can be applied to the network device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the network device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0182] Optionally, the computer program product can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0183] The embodiment of the present application also provides a computer program.
[0184] Optionally, the computer program can be applied to the network device in the embodiments of the present application. When the computer program runs on a computer, the computer executes the corresponding processes implemented by the network device in the various methods in the embodiments of the present application. For the sake of brevity, they are not described here.
[0185] Optionally, the computer program can be applied to the mobile terminal / terminal device in the embodiments of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0186] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0187] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0188] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0189] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0190] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0191] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0192] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A wireless communication method, characterized in that: include: The terminal device measures at least one reference signal to determine a target reference signal for a non-contention two-step random access process; If there is no reference signal satisfying the condition in the at least one reference signal, the terminal device determines to adopt a contention-based random access process; The terminal device indicates that the multiplexing and packaging entity includes a cell radio network temporary identifier C-RNTI MAC control element CE and at least one media access control MAC sub-protocol data unit PDU to obtain a target MAC PDU, wherein the at least one MAC sub-PDU includes a MAC service data unit SDU in a cached MAC PDU, and the cached MAC PDU does not include the C-RNTI MAC CE; the terminal device indicates that the multiplexing and packaging entity includes a cell radio network temporary identifier C-RNTI MAC control element CE and at least one media access control MAC sub-protocol data unit PDU to obtain a target MAC PDU, including: the terminal device re-packaging the C-RNTI MAC CE and the cached MAC PDU to obtain the target MAC PDU; The terminal device initiates a contention-based random access process, and sends the target MAC PDU carried in a physical uplink shared channel PUSCH to a network device; Wherein, when there are remaining resources in the uplink shared channel, a handover completion HO complete message is packaged into the target MAC PDU.
2. The method according to claim 1, characterized in that The method further comprises: The terminal device determines a target RACH resource for a contention-based random access procedure based on a configured first candidate random access RACH resource, wherein the first candidate RACH resource is used for a contention-based random access procedure and the target RACH resource is used to send a random access preamble.
3. The method according to claim 2, characterized in that The terminal device determines, according to the configured first candidate random access RACH resource, a target RACH resource for a contention-based random access process, including: If the first candidate RACH resources only include RACH resources used for a four-step random access procedure, the terminal device determines the target RACH resource from the RACH resources used for the four-step random access procedure; or If the first candidate RACH resources only include RACH resources used for a contention-based two-step random access procedure, the terminal device determines the target RACH resource from the RACH resources used for a contention-based two-step random access procedure; or If the first candidate RACH resources include RACH resources for a contention-based two-step random access procedure and RACH resources for a four-step random access procedure, the terminal device determines a target random access type, and determines the target RACH resource according to the target random access type.
4. The method according to claim 3, characterized in that The terminal device determines a target random access type, and determines the target RACH resource according to the target random access type, including: If the current downlink path loss is greater than or equal to the first path loss threshold, determine that the target random access type is a contention-based two-step random access process, and determine the target RACH resource in the RACH resources used for the contention-based two-step random access process; or If the current downlink path loss is less than the first path loss threshold, the random access type is determined to be a four-step random access process, and the target RACH resource is determined in the RACH resources used for the four-step random access process.
5. The method according to any one of claims 2 to 4, characterized in that The terminal device initiates a contention-based random access process, including: If the target RACH resource is a RACH resource used for a contention-based two-step random access procedure, the terminal device initiates a contention-based two-step random access procedure; or If the target RACH resource is a RACH resource used for a four-step random access procedure, the terminal device initiates a four-step random access procedure.
6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: If it is determined to adopt a contention-based two-step random access process, the terminal device determines the preamble code group of the contention-based two-step random access process according to the size of the data to be transmitted, wherein the data to be transmitted includes the cached MAC PDU and the C-RNTI MAC CE, and different sizes of data to be transmitted correspond to corresponding preamble code groups.
7. The method according to any one of claims 1 to 4, characterized in that The method further comprises: If there is a reference signal satisfying the condition in the at least one reference signal, the terminal device determines to adopt a non-contention two-step random access process.
8. The method according to claim 7, characterized in that The method further comprises: The terminal device determines a target RACH resource for a non-contention two-step random access process according to a reference signal that meets the condition and a first corresponding relationship, wherein the first corresponding relationship is a corresponding relationship between a reference signal and a RACH resource.
9. The method according to claim 8, characterized in that The terminal device determines, according to the reference signal satisfying the condition and the first corresponding relationship, a target RACH resource for a non-contention two-step random access process, wherein the first corresponding relationship is a corresponding relationship between the reference signal and the RACH resource, including: The terminal device determines the RACH resource corresponding to the reference signal that meets the condition in the first corresponding relationship as the target RACH resource.
10. The method according to any one of claims 1 to 4, 8 and 9, characterized in that: The condition includes a measured value of the reference signal being greater than or equal to a first threshold.
11. A terminal device, characterized in that: include: a processing module, configured to measure at least one reference signal to determine a target reference signal for a non-contention two-step random access process; If there is no reference signal satisfying the condition in the at least one reference signal, the terminal device determines to adopt a contention-based random access process; and indicating that the multiplexing and packaging entity includes a cell radio network temporary identifier C-RNTI MAC control element CE and at least one media access control MAC sub-protocol data unit PDU to obtain a target MAC PDU, wherein the at least one MAC sub-PDU includes a MAC service data unit SDU in a cached MAC PDU and the cached MAC PDU does not include the C-RNTI MAC CE; the terminal device indicating that the multiplexing and packaging entity includes a cell radio network temporary identifier C-RNTI MAC control element CE and at least one media access control MAC sub-protocol data unit PDU to obtain a target MAC PDU, including: the terminal device repackaging the C-RNTI MAC CE and the cached MAC PDU to obtain the target MAC PDU; The communication module is used to initiate a contention-based random access process, and send the target MAC PDU to the network device by carrying it in the physical uplink shared channel PUSCH; wherein, when there are remaining resources in the uplink shared channel, the handover completion HO complete message is packaged into the target MAC PDU.
12. The terminal device according to claim 11, characterized in that: The processing module is also used for: A target RACH resource for a contention-based random access procedure is determined according to a configured first candidate random access RACH resource, wherein the first candidate RACH resource is used for a contention-based random access procedure, and the target RACH resource is used to send a random access preamble.
13. The terminal device according to claim 12, characterized in that: The processing module is specifically used for: If the first candidate RACH resources only include RACH resources used for a four-step random access procedure, determining the target RACH resource from the RACH resources used for the four-step random access procedure; or If the first candidate RACH resources include only RACH resources used for a contention-based two-step random access procedure, determining the target RACH resource from the RACH resources used for the contention-based two-step random access procedure; or If the first candidate RACH resources include RACH resources for a contention-based two-step random access procedure and RACH resources for a four-step random access procedure, a target random access type is determined, and the target RACH resource is determined according to the target random access type.
14. The terminal device according to claim 13, characterized in that: The processing module is also used for: If the current downlink path loss is greater than or equal to the first path loss threshold, determine that the target random access type is a contention-based two-step random access process, and determine the target RACH resource in the RACH resources used for the contention-based two-step random access process; or If the current downlink path loss is less than the first path loss threshold, the random access type is determined to be a four-step random access process, and the target RACH resource is determined in the RACH resources used for the four-step random access process.
15. The terminal device according to any one of claims 12 to 14, characterized in that: The communication module is also used for: If the target RACH resource is a RACH resource used for a contention-based two-step random access procedure, initiating a contention-based two-step random access procedure; or If the target RACH resource is a RACH resource used for a four-step random access procedure, a four-step random access procedure is initiated.
16. The terminal device according to any one of claims 11 to 14, characterized in that: The processing module is also used for: If it is determined to adopt a contention-based two-step random access process, the preamble code group of the contention-based two-step random access process is determined according to the size of the data to be transmitted, wherein the data to be transmitted includes the cached MAC PDU and the C-RNTI MAC CE, and different sizes of data to be transmitted correspond to corresponding preamble code groups.
17. The terminal device according to any one of claims 11 to 14, characterized in that: The processing module is also used for: If there is a reference signal satisfying the condition in the at least one reference signal, it is determined to adopt a non-contention two-step random access process.
18. The terminal device according to claim 17, characterized in that: The processing module is also used for: A target RACH resource for a non-contention two-step random access procedure is determined according to a reference signal that meets the condition and a first corresponding relationship, wherein the first corresponding relationship is a corresponding relationship between a reference signal and a RACH resource.
19. The terminal device according to claim 18, characterized in that: The processing module is specifically used for: The RACH resource corresponding to the reference signal that meets the condition in the first corresponding relationship is determined as the target RACH resource.
20. The terminal device according to any one of claims 11 to 14, 18 and 19, characterized in that: The condition includes a measured value of the reference signal being greater than or equal to a first threshold.
21. A terminal device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 10.
22. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 10.
23. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 10.
24. A computer program product, characterized in that The method comprises computer program instructions which cause a computer to execute the method as claimed in any one of claims 1 to 10.
