Method for determining transmission priority and terminal device

By determining the priority rules in the terminal device based on the data type with the highest priority of the uplink data, the deadlock problem in the priority decision-making for uplink and sidelink data packet transmission is solved, a more reasonable data packet transmission sequence is achieved, and the efficiency is improved Communication system stability.

CN115379582BActive Publication Date: 2024-09-20GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211020762.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-13
Publication Date
2024-09-20
Estimated Expiration
2040-02-13

AI Technical Summary

Technical Problem

In the transmission priority decision between upstream and sidelink packets, the existing technology may lead to a deadlock phenomenon because the transmission priority rules cannot be reasonably determined.

Method used

This method is implemented by obtaining the corresponding priority rule in the terminal device according to the data type with the highest priority in the uplink data, determining the sending order of the uplink and sidelink data, and using the processor and the memory to execute the computer program.

Benefits of technology

It effectively avoids the deadlock problem, ensures that the priority rules for sending uplink and sidelink data are more reasonable, and improves the stability of the communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115379582B
    Figure CN115379582B
Patent Text Reader

Abstract

The present application relates to a method for determining transmission priority and a terminal device. The method for determining transmission priority includes: the terminal device obtains a corresponding priority rule according to the data with the highest priority in the uplink data, and determines the order of sending the uplink data and the sidelink data. By using the priority rule corresponding to the data with the highest priority in the uplink data, it can be more reasonably determined whether to send the uplink data or the sidelink data first, thereby avoiding the deadlock problem caused by unreasonable transmission priority rules between the uplink and the sidelink.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the PCT national phase application with a filing date of February 13, 2020 and national application number 2020800897650. Technical Field

[0002] The present application relates to the field of communications, and more specifically, to a method for determining a transmission priority and a terminal device. Background Art

[0003] The uplink MAC (Media Access Control) PDU (Packet Data Unit) may include TYPE1 (first type) MAC CE (Control Element), TYPE 2 (second type) MAC CE and MAC SDU (Service Data Unit) at the same time.

[0004] In this case, if a decision needs to be made between the uplink MAC PDU and the sidelink prioritized data packet, according to the current sending priority rules, the terminal device may not know whether to send uplink data or sidelink data, that is, a deadlock phenomenon occurs. Summary of the invention

[0005] The embodiments of the present application provide a method for determining transmission priority and a terminal device, which can avoid the deadlock problem caused by unreasonable transmission priority rules between uplink and sidelink.

[0006] The present application provides a method for determining a transmission priority, including:

[0007] The terminal device obtains the corresponding priority rule according to the data with the highest priority in the uplink data, and determines the sending order of the uplink data and the sidelink data.

[0008] The embodiment of the present application provides a terminal device, including 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 above-mentioned method for determining the transmission priority.

[0009] An embodiment of the present application provides a chip for implementing the above-mentioned method for determining transmission priority.

[0010] Specifically, the chip includes: a processor, which is used to call and run a computer program from a memory, so that a device equipped with the chip executes the above-mentioned method for determining the transmission priority.

[0011] An embodiment of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute the above-mentioned method for determining a transmission priority.

[0012] An embodiment of the present application provides a computer program product, including computer program instructions, which enable a computer to execute the above-mentioned method for determining transmission priority.

[0013] An embodiment of the present application provides a computer program, which, when executed on a computer, enables the computer to execute the above-mentioned method for determining the transmission priority.

[0014] In the embodiment of the present application, by utilizing the priority rules corresponding to the highest priority data in the uplink data, it can be more reasonably determined whether to give priority to sending the uplink data or the sidelink data, thereby avoiding the deadlock problem caused by unreasonable sending priority rules between the uplink and sidelink. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a schematic diagram of an application scenario of an embodiment of the present application.

[0016] Figure 2 It is a schematic flowchart of a method for determining transmission priority according to an embodiment of the present application.

[0017] Figure 3 It is a schematic flowchart of a method for determining transmission priority according to another embodiment of the present application.

[0018] Figure 4 It is a schematic flowchart of a method for determining transmission priority according to another embodiment of the present application.

[0019] Figure 5 It is a schematic structural diagram of a terminal device according to an embodiment of the present application.

[0020] Figure 6 It is a schematic structural diagram of a terminal device according to another embodiment of the present application.

[0021] Figure 7 It is a schematic structural diagram of a communication device according to an embodiment of the present application.

[0022] Figure 8 is a schematic structural diagram of a chip according to an embodiment of the present application.

[0023] Fig. 9 It is a schematic block diagram of a communication system according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0025] The technical solutions of 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), 5th-Generation (5G) system or other communication systems.

[0026] 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.

[0027] 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.

[0028] 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.

[0029] The embodiments of the present application describe various embodiments in combination with network devices and terminal 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 (STAION, 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.

[0030] 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.

[0031] 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, a network device (gNB) in an NR network, or a network device in a future evolved PLMN network, etc.

[0032] 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.

[0033] Figure 1 One network device 110 and two terminal devices 120 are shown exemplarily. Optionally, the wireless communication system 100 may include multiple network devices 110, and each network device 110 may include another number of terminal devices 120 within its coverage area, which is not limited in the embodiments of the present application.

[0034] Optionally, the wireless communication system 100 may also include other network entities such as a mobility management entity (Mobility Management Entity, MME), an access and mobility management function (Access and Mobility Management Function, AMF), etc., which is not limited in the embodiments of the present application.

[0035] 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.

[0036] Figure 2FIG. 2 is a schematic flow chart of a method 200 for determining a transmission priority according to an embodiment of the present application. The method may optionally be applied to Figure 1 The system shown in the figure is not limited thereto. The method includes at least part of the following contents.

[0037] S210. The terminal device obtains a corresponding priority rule according to the data with the highest priority in the uplink data, and determines the order in which the uplink data and the sidelink data are sent.

[0038] Specifically, the uplink data may include one type of data or multiple types of data. If the uplink data includes only one type of data, it can be considered that the data has the highest priority. If the uplink data includes multiple types of data, it can be determined which type of data has the highest priority according to the type of data.

[0039] For example, the uplink data may be an uplink MAC (Media Access Control) PDU (Packet Data Unit). If the uplink MAC PDU includes a TYPE1 MAC CE (Control Element) and the uplink MAC PDU also includes a TYPE2 MAC CE and / or a MAC SDU (Service Data Unit), it can be considered that the TYPE1 MAC CE has the highest priority.

[0040] For another example, if the uplink MAC PDU does not include TYPE1 MAC CE and TYPE2 MAC CE, but includes MAC SDU, the MAC SDU has the highest priority.

[0041] For another example, if the uplink MAC PDU only includes TYPE2 MAC CE, then TYPE2 MAC CE has the highest priority.

[0042] In the case where the data to be sent includes uplink data and sidelink data, a corresponding priority rule can be determined according to the type of the highest priority data included in the uplink data, and then the priority rule is used to determine whether to send the uplink data first or the sidelink data first. In the embodiment of the present application, the data to be sent first can be determined according to the priority rule, so the priority rule can also be called a sending priority rule.

[0043] Optionally, in the embodiment of the present application, Figure 3 As shown, in the method 200 for determining transmission priority, it also includes: S310, the terminal device obtains the data with the highest priority in the uplink data and the data with the highest priority in the sidelink data.

[0044] Specifically, the data with the highest priority can be first determined from the uplink data and the sidelink data, and then the priority rule corresponding to the data with the highest priority included in the uplink data can be used to compare the data with the highest priority in the uplink data and the data with the highest priority in the sidelink data, so as to determine whether to send the uplink data or the sidelink data first.

[0045] Optionally, in an embodiment of the present application, the priority rule is determined in a manner including: when MAC SDU is the data with the highest priority in the uplink data, the priority rule is a first priority rule. For example, when the terminal device does not include TYPE1 MAC CE and TYPE2 MAC CE in the uplink MAC PDU and includes MAC SDU, the priority rule is a first priority rule. In this case, the data with the highest priority in the uplink MAC PDU is MAC SDU, and the corresponding priority rule is a first priority rule.

[0046] Optionally, in an embodiment of the present application, the first priority rule includes: when the uplink data is not prioritized in the uplink direction and the sidelink data is prioritized in the sidelink direction, the sidelink data is sent first; otherwise, the uplink data is sent first.

[0047] Optionally, in the embodiment of the present application, after determining that the priority rule is the first priority rule, in S210, the terminal device determines the order of sending the uplink data and the sidelink data according to the priority rule corresponding to the data with the highest priority in the uplink data, which may include at least one of the following methods:

[0048] Method 1: According to the first priority rule, when the MAC SDU in the uplink MAC PDU is prioritized in the uplink direction, the terminal device ignores the sidelink MAC PDU and gives priority to sending the uplink MAC PDU.

[0049] Optionally, in the embodiment of the present application, the situation where the MAC SDU in the uplink MAC PDU is prioritized in the uplink direction includes at least one of the following:

[0050] The uplink MAC PDU includes a MAC SDU whose priority value is less than a first threshold;

[0051] Sending the uplink MAC PDU via a third message MESSAGE 3 of the random access procedure;

[0052] The uplink MAC PDU includes high-priority data that the higher layer requires to be sent.

[0053] For example, the value of the priority in the uplink direction may range from 1 to 16, with a value of 1 being the highest priority. The first threshold may be 8. If the value of the priority of the MAC SDU included in the uplink MAC PDU is 3, which is less than the first threshold 8 in the uplink direction, the MAC SDU is prioritized in the uplink direction.

[0054] For another example, if the uplink MAC PDU is sent via MESSAGE 3 of the random access process, it can be considered that the MAC SDU in the uplink MAC PDU is prioritized in the uplink direction, and the thresholds in the above example may no longer be compared.

[0055] For another example, if the uplink MAC PDU includes high-priority data such as public safety data required to be sent by the upper layer, it can be considered that the MAC SDU in the uplink MAC PDU is prioritized in the uplink direction. The thresholds in the above example may no longer be compared.

[0056] Method 2: According to the first priority rule, the terminal device gives priority to sending the sidelink MAC PDU when the MAC SDU in the uplink MAC PDU is not prioritized in the uplink direction and the sidelink MAC PDU is prioritized in the sidelink direction.

[0057] Method three: the terminal device gives priority to sending the uplink MAC PDU according to the first priority rule when the MAC SDU in the uplink MAC PDU is not prioritized in the uplink direction and the sidelink MAC PDU is not prioritized in the sidelink direction.

[0058] Optionally, in the embodiment of the present application, the situation where the MAC SDU in the uplink MAC PDU is not prioritized in the uplink direction includes:

[0059] The uplink MAC PDU includes a MAC SDU whose priority value is greater than or equal to a first threshold;

[0060] The uplink MAC PDU is not sent through the third message MESSAGE 3 of the random access procedure;

[0061] The uplink MAC PDU does not include high priority data that the higher layer requires to be sent.

[0062] Optionally, in an embodiment of the present application, the priority rule is determined in a manner including: when TYPE2MAC CE is the data with the highest priority in the uplink data, the priority rule is a second priority rule. For example, when the terminal device includes only the second type TYPE2 MAC CE in the uplink MAC PDU, the priority rule is a second priority rule.

[0063] Optionally, in an embodiment of the present application, the second priority rule includes: when the sidelink data is prioritized in the sidelink direction, ignoring the priority of the TYPE2 MAC CE in the uplink data, and giving priority to sending the sidelink data.

[0064] Optionally, in the embodiment of the present application, after determining that the priority rule is the second priority rule, in S210, the terminal device determines the order of sending the uplink data and the sidelink data according to the priority rule corresponding to the data with the highest priority in the uplink data, which may include at least one of the following methods:

[0065] Method 4: According to the second priority rule, when the sidelink MAC PDU is prioritized in the sidelink direction, the terminal device ignores the priority of the TYPE2 MAC CE in the uplink MAC PDU and gives priority to sending the sidelink MAC PDU.

[0066] Optionally, in the embodiment of the present application, the situation where the sideline MAC PDU is prioritized in the sideline direction includes: the sideline MAC PDU includes a logical channel or MAC CE whose priority value is less than a second threshold. For example, the priority value in the sideline direction may range from 1 to 8, with a value of 1 being the highest priority. The second threshold may be 4. If the priority value of the logical channel included in the sideline MAC PDU is 2, which is less than the second threshold 4, the sideline MAC PDU is prioritized in the sideline direction.

[0067] Method 5: The terminal device gives priority to sending the uplink MAC PDU according to the second priority rule when the sidelink MAC PDU is not prioritized in the sidelink direction.

[0068] Optionally, in an embodiment of the present application, the situation where the sidelink MAC PDU is not prioritized in the sidelink direction is: the sidelink MAC PDU includes a logical channel or MAC CE whose priority value is greater than or equal to a second threshold.

[0069] Optionally, in this embodiment of the present application, the TYPE2 MAC CE includes at least one of the following:

[0070] MAC CE for Recommended bit rate query;

[0071] MAC CE for BSR included for padding;

[0072] MAC CE for SL-BSR included for padding.

[0073] Optionally, in an embodiment of the present application, the priority rule is determined in a manner including: when TYPE2 MAC CE is the data with the highest priority in the uplink data, the priority rule is a second priority rule. For example, when the terminal device includes TYPE1 MAC CE in the uplink MAC PDU, the priority rule is a third priority rule.

[0074] Optionally, in an embodiment of the present application, the third priority rule includes: the uplink sending priority of TYPE1 MAC CE is the highest.

[0075] Optionally, in an embodiment of the present application, the terminal device determines the order in which the uplink data and the sidelink data are sent according to a priority rule corresponding to the data with the highest priority in the uplink data, including:

[0076] The terminal device sends the uplink MAC PDU preferentially according to the third priority rule.

[0077] Optionally, in this embodiment of the present application, the TYPE1 MAC CE includes at least one of the following:

[0078] C-RNTI (Cell Radio Network Temporary Identity) MAC CE;

[0079] Confirmation of resource pre-configuration (Configured Grant Confirmation) MAC CE;

[0080] BSR (Buffer Status Report);

[0081] SL BSR;

[0082] PHR (Power Headroom Report).

[0083] By adopting the method for determining the transmission priority of the embodiment of the present method and utilizing the priority rules corresponding to the data with the highest priority in the uplink data, it can be more reasonably determined whether to give priority to sending the uplink data or the sidelink data, thereby avoiding the deadlock problem and making the transmission priority rules between the uplink and the sidelink more reasonable.

[0084] In the case where only TYPE2 MAC CE is included in the uplink data, the second priority rule can be used to ignore the priority of TYPE2 MAC CE in the uplink data and give priority to sending the side data when the side data is given priority in the side direction. Therefore, deadlock can be avoided when TYPE1 MAC CE and TYPE2 MAC SDU are included in the uplink data.

[0085] In the case where the uplink data includes TYPE1 MAC CE, the uplink data is directly sent with priority using the third priority rule. Therefore, deadlock can be avoided when the uplink data includes TYPE1 MAC CE and TYPE2 MAC SDU.

[0086] The following is an exemplary description of specific application scenarios of the embodiments of the present application:

[0087] In 3GPP (3rd Generation Partnership Project), each logical channel in the MAC layer has a logical channel priority. The order of priority between the MAC CE in the MAC layer and the MAC SDU including the logical channel is fixed. One MAC SDU carries one logical channel. The priority of the logical channel is the priority of the MAC SDU carrying the logical channel. Each logical channel has a priority value. Among them, the logical channels may include CCCH (Common Control CHannel), DCCH (Dedicated Control CHannel) and DTCH (Dedicated Transmission CHannel), etc.

[0088] Among them, the priority of the logical channel sending CCCH and the priority of the MAC CE including C-RNTI (Cell Radio Network Temporary Identifier) ​​are the highest. Between TYPE2 MAC SDU and the highest priority are some MAC CEs, such as BSR (buffer status report), PHR (power headroom report), etc. These belong to TYPE1 MAC CE.

[0089] There are also some MAC CEs whose priority is lower than that of DCCH and DTCH, such as padding (additional) BSR, etc. These belong to TYPE2 MAC CE.

[0090] A priority threshold is also configured in the MAC layer protocol. If the priority value of a logical channel is less than this threshold, it is considered that this logical channel is prioritized in the uplink direction. A priority threshold is also configured on the MAC layer of the sidelink. If the priority value of the MAC SDU or MAC CE carrying the sidelink logical channel is less than this threshold, it is considered that this sidelink logical channel or MAC CE is prioritized in the sidelink direction.

[0091] If the terminal device has limited capabilities and cannot send data in both the uplink and sidelink directions at the same time, the following priority rule can be used to determine the data to be sent first: If the uplink data is not prioritized in the uplink direction, and the sidelink data is prioritized in the sidelink direction, the terminal device will prioritize sending the sidelink data, otherwise it will prioritize sending the uplink data. This rule can be called sending priority rule 1. The uplink data of sending priority rule 1 may not include the uplink MAC CE.

[0092] The uplink MAC CE may be subject to transmission priority rule 2: if the sidelink data is prioritized in the sidelink direction, the sidelink data is preferentially transmitted regardless of the priority of the uplink MAC CE. The MAC CE in transmission priority rule 2 includes TYPE1 MAC CE and TYPE2 MAC CE.

[0093] An important function of the MAC layer of 3GPP is the multiplexing function. That is, when the MAC layer generates MAC CE and MAC SDU, as long as the allocated wireless resources are sufficient, these MAC CE and MAC SDU will be combined into a MAC PDU and sent together. A supplement to the transmission priority rule 1 is that when the MAC PDU is sent through the third message in the random access process, or the logical channel carries high-priority data required to be sent by the high-level protocol, it is considered that the uplink has priority and no longer needs to be compared with the uplink threshold.

[0094] If the uplink MAC PDU includes both TYPE1 MAC CE and TYPE 2 MAC SDU, a deadlock may occur when a decision needs to be made between the uplink MAC PDU and the prioritized data packet on the sidelink. For example, the uplink MAC CE includes a BSR, the MAC SD carries a DTCH, and the priority value of the logical channel is less than the uplink priority threshold. In addition, there is a MAC SDU in the sidelink direction, and the priority value of the logical channel it includes is less than the sidelink priority threshold. According to the MAC layer protocol, the priority of the BSR is fixedly higher than that of the uplink MAC SDU. However, according to the sending priority rule 1, the priority of the uplink MAC SDU is higher than that of the sidelink MAC SDU. According to the sending priority rule 2, the priority of the sidelink MAC SDU is higher than that of the BSR. In this case, the UE does not know whether it should send uplink data or sidelink data, and a deadlock may occur.

[0095] In one example, the above-mentioned transmission priority rule 2 can be modified, for example, it is stipulated that the uplink MAC CE in the rule 2 is only applicable to TYPE2 MAC CE. The modified rule can be called transmission priority rule 2a: if the sidelink data is prioritized in the sidelink direction, the sidelink data is preferentially transmitted regardless of the priority of the uplink TYPE2 MAC CE. In addition, it can be stipulated that the priority of TYPE1 MAC CE is absolutely higher than that of the sidelink data, that is, regardless of whether the sidelink data is prioritized in the sidelink direction, the UE preferentially transmits TYPE1 MAC CE. This rule can be called transmission priority rule 3.

[0096] In this way, the deadlock phenomenon can be broken by using the transmission priority rule 3. Continuing with the above example, according to the transmission priority rule 3, the priority of BSR and the priority of uplink MAC SDU are higher than that of sidelink data, so the UE should send uplink data first.

[0097] In the above example, other combinations may also appear in the MAC PDU, for example, the priority value of the TYPE2 MAC SDU may be higher than or equal to the configured threshold. In this case, the priority of the sidelink data may be higher than the uplink MAC SDU. Therefore, not all MAC CEs or MAC SDUs have a higher priority than the sidelink. In this case, Figure 4 As shown, in the method 400 for determining the transmission priority of this embodiment, the following steps may be used to determine the transmission priority:

[0098] Step S410: Select the MAC CE or MAC SDU with the highest priority in the uplink MAC PDU and the sidelink MAC PDU as the comparison object in the respective directions.

[0099] Step S420: Determine in which direction the MAC PDU is to be sent first according to the sending priority rule applicable to the determined comparison object, such as one of the sending priority rule 1, priority rule 2a and priority rule 3 mentioned above.

[0100] Embodiment 1:

[0101] The uplink MAC PDU includes at least TYPE1 MAC CE. TYPE1 MAC CE includes but is not limited to C-RNTI MAC CE, Configured Grant Confirmation (pre-configured resource confirmation) MAC CE, BSR, SL BSR, PHR, etc. The applicable transmission priority rule 3 can be determined according to the TYPE1 MAC CE included in the uplink MAC PDU: The priority of TYPE1 MACCE is absolutely higher than that of sidelink data.

[0102] In this embodiment, the uplink MAC PDU may also include other MAC SDUs and TYPE2 MAC CE. The content of the MAC PDU in the sidelink direction is not limited.

[0103] Then, according to the sending priority rule 3, the priority of TYPE1 MAC CE is absolutely higher than the sidelink data, so the uplink direction is prioritized and the uplink MAC PDU is sent first.

[0104] Embodiment 2:

[0105] The uplink MAC PDU does not include TYPE1 MAC CE, but at least includes a MAC SDU with a priority value less than the threshold, or the MAC PDU is sent through MESSAGE 3 of the random access process, or the MAC PDU includes high-priority data required to be sent by the upper layer. Therefore, it can be determined first that the data with the highest priority included in the uplink MAC PDU is the MAC SDU, so it is determined that the applicable transmission priority rule 1: If the uplink data is not prioritized in the uplink direction, and the sidelink data is prioritized in the sidelink direction, the terminal device will give priority to sending the sidelink data, otherwise it will give priority to sending the uplink data.

[0106] The uplink MAC PDU includes at least a MAC SDU whose priority value is less than a threshold, or the MAC PDU is sent through MESSAGE 3 of the random access process, or the MAC PDU includes high-priority data required to be sent by the upper layer, indicating that the MAC SDU of the uplink MAC PDU is prioritized in the uplink direction.

[0107] In this embodiment, there is a MAC PDU in the sideways direction, and the content is not limited.

[0108] Therefore, according to the sending priority rule 1, the MAC SDU of the uplink MAC PDU is prioritized in the uplink direction, and the uplink MAC PDU is sent first.

[0109] Embodiment 3:

[0110] The uplink MAC PDU does not include TYPE1 MAC CE, nor does it include a MAC SDU with a priority value less than a threshold, or the MAC PDU is sent through MESSAGE 3 of the random access process, or the MAC PDU includes high-priority data required to be sent by the upper layer, but includes a MAC SDU with a priority value greater than or equal to the threshold. It can be determined first that the highest priority data included in the uplink MAC PDU is the MAC SDU, so it is determined that the applicable transmission priority rule 1: If the uplink data is not prioritized in the uplink direction, and the sidelink data is prioritized in the sidelink direction, the terminal device will give priority to sending the sidelink data, otherwise it will give priority to sending the uplink data.

[0111] The uplink MAC PDU does not include a MAC SDU with a priority value less than a threshold, or the MAC PDU is sent through MESSAGE 3 of the random access process, or the MAC PDU includes high-priority data required to be sent by the upper layer, but includes a MAC SDU with a priority value greater than or equal to the threshold, indicating that the uplink data is not prioritized in the uplink direction.

[0112] In this embodiment, there is a MAC PDU in the sideways direction, the content of which includes a logical channel or a MAC CE whose priority value is less than the sideways threshold, indicating that the sideways data is prioritized in the sideways direction.

[0113] According to the transmission priority rule 1, since the uplink data is not prioritized in the uplink direction and the sidelink data is prioritized in the sidelink direction, the sidelink MAC PDU is sent preferentially.

[0114] Embodiment 4:

[0115] The uplink MAC PDU does not include TYPE1 MAC CE, nor does it include a MAC SDU with a priority value less than a threshold, or the MAC SDU is sent through MESSAGE 3 of the random access process, or the MAC SDU includes high-priority data required to be sent by the upper layer, but includes a MAC SDU with a priority value greater than or equal to the threshold. It can be determined first that the highest priority data included in the uplink MAC PDU is the MAC SDU, so it is determined that the applicable transmission priority rule 1: If the uplink data is not prioritized in the uplink direction, and the sidelink data is prioritized in the sidelink direction, the terminal device will give priority to sending the sidelink data, otherwise it will give priority to sending the uplink data.

[0116] The uplink MAC PDU does not include a MAC SDU with a priority value less than a threshold, or the MAC PDU is sent through MESSAGE 3 of the random access process, or the MAC PDU includes high-priority data required to be sent by the upper layer, but includes a MAC SDU with a priority value greater than or equal to the threshold, indicating that the uplink data is not prioritized in the uplink direction.

[0117] In this embodiment, there is a MAC PDU in the sideways direction, the content of which includes a logical channel or a MAC CE whose priority value is greater than or equal to the sideways threshold, indicating that the sideways data is not prioritized in the sideways direction.

[0118] According to the sending priority rule 1, since the uplink data is not prioritized in the uplink direction, and the sidelink data is not prioritized in the sidelink direction, it is also considered that the uplink direction is prioritized, and the uplink MAC PDU is sent first.

[0119] Embodiment 5:

[0120] Only TYPE2 MAC CE is included in the uplink MAC PDU. TYPE2 MAC CE includes but is not limited to MAC CE for Recommended bit rate query, MAC CE for BSR included for padding, and MAC CE for SL-BSR included for padding. The applicable sending priority rule 2a can be determined based on the fact that only TYPE2 MAC CE is included in the uplink MAC PDU: If the sidelink data is prioritized in the sidelink direction, the sidelink data shall be sent first regardless of the priority of the uplink TYPE2 MAC CE.

[0121] In this embodiment, there is a MAC PDU in the sideways direction, and the content includes a logical channel or a MAC CE whose priority value is less than the sideways threshold, indicating that the sideways data is prioritized in the sideways direction.

[0122] According to the sending priority rule 2a, the sidelink data is given priority in the sidelink direction, the TYPE2 MAC CE in the uplink MAC PDU is ignored, and the sidelink MAC PDU is sent first.

[0123] Embodiment 6:

[0124] Only TYPE2 MAC CE is included in the uplink MAC PDU. TYPE2 MAC CE includes but is not limited to MAC CE for Recommended bit rate query, MAC CE for BSR included for padding, and MAC CE for SL-BSR included for padding. The applicable sending priority rule 2a can be determined based on that only TYPE2 MAC CE is included in the uplink MAC PDU: If the sidelink data is prioritized in the sidelink direction, the sidelink data shall be sent first regardless of the priority of the uplink TYPE2 MAC CE.

[0125] In this embodiment, there is a MAC PDU in the sideways direction, the content of which includes a logical channel or a MAC CE whose priority value is greater than or equal to the sideways threshold, indicating that the sideways data is not prioritized in the sideways direction.

[0126] According to the sending priority rule 2a, the sidelink data is prioritized in the lateral direction, and the uplink direction is prioritized, and the uplink MAC PDU is sent first.

[0127] By adopting the method for determining the transmission priority of each embodiment of the present method, the above-mentioned deadlock problem can be avoided, making the transmission priority rules between the uplink and the sidelink more reasonable.

[0128] Figure 5 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application. The terminal device 500 may include:

[0129] The first determination module 510 is used to determine the sending order of the uplink data and the sidelink data according to the priority rule corresponding to the data with the highest priority in the uplink data.

[0130] Optionally, in the embodiment of the present application, Figure 6 As shown, the terminal device also includes:

[0131] An acquisition module 520, configured to acquire the data with the highest priority in the uplink data and the data with the highest priority in the sidelink data;

[0132] Optionally, in the embodiment of the present application, the terminal device further includes:

[0133] The second determination module 530 is used to determine the priority rule in the following manner: MAC SDU is the data with the highest priority in the uplink data, and the priority rule is the first priority rule.

[0134] Optionally, in an embodiment of the present application, the second determination module is also used to, when the uplink MAC PDU does not include TYPE1 MAC CE and TYPE2 MAC CE and includes MAC SDU, the priority rule is the first priority rule.

[0135] Optionally, in an embodiment of the present application, the first priority rule includes: when the uplink data is not prioritized in the uplink direction and the sidelink data is prioritized in the sidelink direction, the sidelink data is sent first; otherwise, the uplink data is sent first.

[0136] Optionally, in an embodiment of the present application, the first determination module 510 is also used to ignore the sidelink MAC PDU and give priority to sending the uplink MAC PDU according to the first priority rule when the MAC SDU in the uplink MAC PDU is prioritized in the uplink direction.

[0137] Optionally, in the embodiment of the present application, the situation where the MAC SDU in the uplink MAC PDU is prioritized in the uplink direction includes at least one of the following:

[0138] The uplink MAC PDU includes a MAC SDU whose priority value is less than a first threshold;

[0139] The uplink MAC PDU is sent through MESSAGE 3 (third message) of the random access procedure;

[0140] The uplink MAC PDU includes high-priority data that the higher layer requires to be sent.

[0141] Optionally, in an embodiment of the present application, the first determination module 510 is also used to prioritize sending the sidelink MAC PDU according to the first priority rule when the MAC SDU in the uplink MAC PDU is not prioritized in the uplink direction and the sidelink MAC PDU is prioritized in the sidelink direction.

[0142] Optionally, in an embodiment of the present application, the first determination module 510 is also used to give priority to sending the uplink MAC PDU according to the first priority rule when the MAC SDU in the uplink MAC PDU is not prioritized in the uplink direction and the sidelink MAC PDU is not prioritized in the sidelink direction.

[0143] Optionally, in the embodiment of the present application, the situation where the MAC SDU in the uplink MAC PDU is not prioritized in the uplink direction includes:

[0144] The uplink MAC PDU includes a MAC SDU whose priority value is greater than or equal to a first threshold;

[0145] The uplink MAC PDU is not sent through MESSAGE 3 of the random access process;

[0146] The uplink MAC PDU does not include high priority data that the higher layer requires to be sent.

[0147] Optionally, in the embodiment of the present application, the terminal device further includes:

[0148] The third determination module 540 is configured to determine a priority rule in the following manner: when TYPE2 MAC CE is data with the highest priority in the uplink data, the priority rule is a second priority rule.

[0149] Optionally, in an embodiment of the present application, the third determination module is further used for: when the uplink MAC PDU only includes the second type TYPE2 MAC CE, the priority rule is the second priority rule.

[0150] Optionally, in an embodiment of the present application, the second priority rule includes: when the sidelink data is prioritized in the sidelink direction, ignoring the priority of the TYPE2 MAC CE in the uplink data, and giving priority to sending the sidelink data.

[0151] Optionally, in an embodiment of the present application, the first determination module 510 is further used to ignore the priority of the TYPE2 MAC CE in the uplink MAC PDU and give priority to sending the sidelink MAC PDU according to the second priority rule when the sidelink MAC PDU is prioritized in the sidelink direction.

[0152] Optionally, in an embodiment of the present application, the situation in which the sidelink MAC PDU is prioritized in the sidelink direction includes: the sidelink MAC PDU includes a logical channel or MAC CE whose priority value is less than a second threshold.

[0153] Optionally, in the embodiment of the present application, the first determination module 510 is further used to give priority to sending the uplink MAC PDU according to the second priority rule when the sidelink MAC PDU is not prioritized in the sidelink direction.

[0154] Optionally, in an embodiment of the present application, the situation where the sidelink MAC PDU is not prioritized in the sidelink direction is: the sidelink MAC PDU includes a logical channel or MAC CE whose priority value is greater than or equal to a second threshold.

[0155] Optionally, in this embodiment of the present application, the TYPE2 MAC CE includes at least one of the following:

[0156] MAC CE for requesting a recommended rate;

[0157] MAC CE with BSR attached;

[0158] MAC CE with SL-BSR attached.

[0159] Optionally, in the embodiment of the present application, the terminal device further includes:

[0160] The fourth determination module 550 is used to determine the priority rule in the following manner: when TYPE1 MAC CE is the data with the highest priority in the uplink data, the priority rule is the third priority rule.

[0161] Optionally, in an embodiment of the present application, the fourth determination module is further used for: when the uplink MAC PDU includes a TYPE1 MAC CE, the priority rule is a third priority rule.

[0162] Optionally, in an embodiment of the present application, the third priority rule includes: the uplink sending priority of TYPE1 MAC CE is the highest.

[0163] Optionally, in an embodiment of the present application, the first determination module is also used by the terminal device to determine to send the uplink MAC PDU first according to the third priority rule.

[0164] Optionally, in this embodiment of the present application, the TYPE1 MAC CE includes at least one of the following:

[0165] C-RNTI MAC CE;

[0166] Confirmation MAC CE of resource pre-configuration;

[0167] BSR;

[0168] SL BSR;

[0169] PHR.

[0170] The terminal device adopting the embodiment of the present method can more reasonably determine whether to give priority to sending the uplink data or the sidelink data by utilizing the priority rules corresponding to the data with the highest priority in the uplink data, thereby avoiding the deadlock problem caused by unreasonable sending priority rules between the uplink and the sidelink, and making the sending priority rules between the uplink and the sidelink more reasonable.

[0171] In the case where only TYPE2 MAC CE is included in the uplink data, the second priority rule can be used to ignore the priority of TYPE2MAC CE in the uplink data and give priority to sending the side data when the side data is given priority in the side direction. Therefore, deadlock can be avoided when TYPE1 MAC CE and TYPE2 MAC SDU are included in the uplink data.

[0172] In the case where the uplink data includes TYPE1 MAC CE, the uplink data is directly sent with priority using the third priority rule. Therefore, deadlock can be avoided when the uplink data includes TYPE1 MAC CE and TYPE2 MAC SDU.

[0173] It should be understood that the above and other operations and / or functions of each unit in the terminal device according to the embodiments of the present application are respectively for implementing the corresponding processes of the terminal device in method 200, method 400, etc. in the above embodiments, and for the sake of brevity, they will not be repeated here.

[0174] Figure 7 It is a schematic structural diagram of a communication device 600 according to an embodiment of the present application. Figure 7 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.

[0175] Alternatively, if Figure 7 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.

[0176] The memory 620 may be a separate device independent of the processor 610 , or may be integrated into the processor 610 .

[0177] Alternatively, if Figure 7 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.

[0178] 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.

[0179] Optionally, the communication device 600 may be a terminal device of an embodiment of the present application, and the communication device 600 may implement the corresponding processes implemented by the 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.

[0180] Figure 8 is a schematic structural diagram of a chip 700 according to an embodiment of the present application. Figure 8 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.

[0181] Alternatively, if Figure 8 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.

[0182] The memory 720 may be a separate device independent of the processor 710 , or may be integrated into the processor 710 .

[0183] 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.

[0184] 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.

[0185] Optionally, the chip can be applied to the terminal device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0186] 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.

[0187] The processor mentioned above may be a general-purpose processor, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC) or other programmable logic devices, transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor mentioned above may be a microprocessor or any conventional processor, etc.

[0188] The memory mentioned above may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM) or a flash memory. The volatile memory may be a random access memory (RAM).

[0189] 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.

[0190] Fig. 9 8 is a schematic block diagram of a communication system 800 according to an embodiment of the present application. Fig. 9 As shown, the communication system 800 includes a terminal device 810 and a network device 820 .

[0191] The terminal device 810 determines the order in which the uplink data and the sidelink data are sent according to the priority rule corresponding to the data with the highest priority in the uplink data.

[0192] The terminal device 810 can be used to implement the corresponding functions implemented by the terminal device in the above method. For the sake of brevity, it will not be described here.

[0193] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction can be transmitted from a website site, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center integrated with one or more available media. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0194] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0195] Technical personnel in the relevant field 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.

[0196] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present 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 method for determining a transmission priority, comprising: The terminal device obtains the corresponding priority rule according to the data with the highest priority in the uplink data, and determines the sending order of the uplink data and the sidelink data. The priority rule is determined in the following manner: When MAC SDU is the data with the highest priority among the uplink data, the priority rule is the first priority rule, and when TYPE1 MAC CE is the data with the highest priority among the uplink data, the priority rule is the third priority rule, wherein, when the terminal device includes TYPE1 MAC CE in the uplink MAC PDU, TYPE1MAC CE is the data with the highest priority among the uplink data, The terminal device obtains a corresponding priority rule according to the data with the highest priority in the uplink data, and determines the order in which the uplink data and the sidelink data are sent, including: The terminal device, according to the first priority rule, preferentially sends the uplink MAC PDU when the MAC SDU in the uplink MAC PDU is prioritized in the uplink direction, and according to the third priority rule, preferentially sends the uplink MAC PDU, The situation in which the MAC SDU in the uplink MAC PDU is prioritized in the uplink direction includes at least one of the following: The value of the highest priority of the logical channel of the MAC SDU in the uplink MAC PDU is less than the first threshold; Sending the uplink MAC PDU through a third message MESSAGE 3 of the random access process; The uplink MAC PDU includes high-priority data that the higher layer requires to be sent.

2. The method according to claim 1, wherein: Also includes: The terminal device obtains the data with the highest priority in the uplink data and the data with the highest priority in the sidelink data.

3. The method according to claim 1 or 2, wherein: Type 1 MAC CE includes at least one of the following: Cell radio network temporary identifier C-RNTI MAC CE; Confirmation MAC CE of resource pre-configuration; BSR; SL BSR; Power Headroom Report PHR.

4. A terminal device, comprising: A first determination module, configured to obtain a corresponding priority rule according to the data with the highest priority in the uplink data, and determine the order in which the uplink data and the sidelink data are sent; as well as The second determination module is used to: determine that the priority rule is the first priority rule when the MAC SDU is the data with the highest priority in the uplink data, and determine that the priority rule is the third priority rule when the TYPE1 MAC CE is the data with the highest priority in the uplink data, wherein the second determination module is further used to determine that the TYPE1 MAC CE is the data with the highest priority in the uplink data when the uplink MAC PDU includes the TYPE1 MAC CE, The first determining module is further used to: determine, according to the first priority rule, to give priority to sending the uplink MAC PDU when the MAC SDU in the uplink MAC PDU is given priority in the uplink direction, and determine, according to the third priority rule, to give priority to sending the uplink MAC PDU; The situation in which the MAC SDU in the uplink MAC PDU is prioritized in the uplink direction includes at least one of the following: The value of the highest priority of the logical channel of the MAC SDU in the uplink MAC PDU is less than the first threshold; Sending the uplink MAC PDU through a third message MESSAGE 3 of the random access process; The uplink MAC PDU includes high-priority data that the higher layer requires to be sent.

5. The terminal device according to claim 4, wherein: Also includes: The acquisition module is used to acquire the data with the highest priority in the uplink data and the data with the highest priority in the sidelink data.

6. The terminal device according to claim 4 or 5, wherein: The TYPE1 MAC CE includes at least one of the following: Cell radio network temporary identifier C-RNTI MAC CE; Confirmation MAC CE of resource pre-configuration; BSR; SL BSR; Power Headroom Report PHR.

7. A computer-readable storage medium for storing a computer program, the computer program causing a computer to execute the method according to any one of claims 1 to 3.