Method for generating data, method for configuring logical channels, terminal device, and chip

By configuring multiple carriers and logical channels in the terminal device and determining the carrier and logical channels for transmission according to priority, the problem of multi-carrier scene download wave selection is solved, and data transmission efficiency and reliability are improved.

CN110771243BActive Publication Date: 2025-06-17GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201880041426.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-04-04
Filing Date
2018-04-24
Publication Date
2025-06-17
Estimated Expiration
2038-04-24

AI Technical Summary

Technical Problem

In multi-carrier scenarios, how to effectively select carriers in the Internet of Vehicles system has become an urgent issue.

Method used

By configuring a plurality of carriers and m logical channels in the terminal device, each logical channel has a priority, and k logical channels are determined according to the priority of the n logical channels and the priority associated with the first carrier, thereby generating a MAC PDU transmitted on the first carrier.

Benefits of technology

It realizes that the terminal equipment effectively selects carriers in multi-carrier scenarios, improves the efficiency and reliability of data transmission, and is compatible with the MAC PDU packet grouping rules in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110771243B_ABST
    Figure CN110771243B_ABST
Patent Text Reader

Abstract

Provided are a method for generating data, a method for configuring a logical channel, a terminal device, and a chip. The terminal device has m logical channels and multiple carriers, and each of the m logical channels is configured with a priority. Each of the multiple carriers is associated with the priority of at least one of the m logical channels, where m>0. The method includes: receiving RLC data on n logical channels, where the n logical channels belong to the m logical channels, and m≥n>0; determining k logical channels from the n logical channels according to the priorities of the n logical channels and the priority associated with a first carrier among the multiple carriers, where n≥k>0; generating a MAC protocol data unit (PDU), where the MAC PDU includes RLC PDUs on the k logical channels. This enables the terminal device to determine the carrier for transmitting the MAC PDU during the process of assembling the MAC PDU.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the PCT patent application titled "Method for Generating Data and Terminal Device" with the application number PCT / CN2017 / 103763 filed with the Chinese Patent Office on September 27, 2017, and the priority of the PCT patent application titled "Method for Generating Data and Terminal Device" with the application number PCT / CN2018 / 082046 filed with the Chinese Patent Office on April 4, 2018. The entire content of which is incorporated herein by reference. Technical Field

[0002] Embodiments of the present invention relate to the field of communications, and more particularly, to a method for generating data, a method for configuring a logical channel, a terminal device, and a chip. Background Art

[0003] The vehicle-to-everything (V2X) system is a sidelink (SL) transmission technology based on Long Term Evolution Vehicle-to-Vehicle (LTE D2D). Different from the way of receiving or sending communication data through a base station in a traditional LTE system, the V2X system adopts a direct terminal-to-terminal communication method. Therefore, it has higher spectral efficiency and lower transmission delay.

[0004] In the 3rd Generation Partnership Project (3GPP) Rel-14, the vehicle-to-everything (V2X) technology in the vehicle networking technology was standardized, and two transmission modes were defined: Mode 3 and Mode 4. Specifically, in Mode 3, as Figure 1 shown, the transmission resources of the vehicle-mounted terminals (vehicle-mounted terminal 121 and vehicle-mounted terminal 122) are allocated by the base station 110, and the vehicle-mounted terminals send data on the sidelink according to the resources allocated by the base station 110; the base station 110 can allocate resources for single transmission to the terminal or allocate semi-static transmission resources to the terminal. In Mode 4, as Figure 2 shown, the vehicle-mounted terminals (vehicle-mounted terminal 131 and vehicle-mounted terminal 132) adopt a transmission method of sensing plus reservation. Specifically, the terminal autonomously selects transmission resources on the resources of the sidelink to generate data.

[0005] However, with the evolution of the mobile Internet of Things technology (e.g., Rel.15), the enhanced vehicle-to-everything (eV2X) has been extended to multi-carrier scenarios, that is, a terminal device can simultaneously transmit and receive on more than one carrier.

[0006] Therefore, an urgent problem to be solved is how to perform carrier selection. Summary of the Invention

[0007] A method for generating data, a method for configuring logical channels, a terminal device, and a chip are provided, which can enable the terminal device to determine the carrier for transmitting the MAC PDU during the MAC PDU packet assembly process.

[0008] In a first aspect, a method for generating data is provided, which is applied to a terminal device. The terminal device has m logical channels and multiple carriers. Each logical channel among the m logical channels is configured with a priority, and each carrier among the multiple carriers is associated with the priority of at least one logical channel among the m logical channels, where m>0;

[0009] The method includes:

[0010] Receiving radio link control protocol (RLC) data on n logical channels, where the n logical channels belong to the m logical channels, and m≥n>0; determining k logical channels among the n logical channels according to the priorities of the n logical channels and the priority associated with a first carrier among the multiple carriers, where n≥k>0; generating a media access control (MAC) protocol data unit (PDU), where the MAC PDU includes the RLC PDUs on the k logical channels.

[0011] In an embodiment of the present invention, when the terminal device receives RLC data on n logical channels, it can select k logical channels from the n logical channels according to the priorities of the n logical channels and the priority associated with a first carrier among the multiple carriers possessed by the terminal device, and then generate a MAC PDU to be transmitted on the first carrier.

[0012] In some possible implementation manners, the determining k logical channels among the n logical channels according to the priorities of the n logical channels and the priority associated with a first carrier among the multiple carriers includes:

[0013] Determining the k logical channels among the n logical channels, where the priority of each logical channel among the k logical channels belongs to the priority associated with the first carrier.

[0014] In some possible implementation manners, when the priority associated with the second carrier among the multiple carriers includes the priority of the first logical channel among the m logical channels, the priority associated with the second carrier further includes the priorities of the logical channels among the m logical channels that are lower than the priority of the first logical channel.

[0015] In the embodiments of the present invention, referring to the packet assembly rules of the MAC PDU in the prior art, the priorities associated with each of the multiple carriers of the terminal device are designed. In this way, the current process of generating the MAC PDU can be kept unchanged, and thus the compatibility between the embodiments of the present invention and the prior art can be maximally improved.

[0016] In some possible implementation manners, determining k logical channels among the n logical channels according to the priorities of the n logical channels and the priority associated with the first carrier among the multiple carriers includes:

[0017] Determining a second logical channel among the n logical channels, where the priority of the second logical channel belongs to the priority associated with the first carrier; determining the k logical channels according to the priority of the second logical channel.

[0018] In some possible implementation manners, determining the k logical channels according to the priority of the second logical channel includes:

[0019] Among the n logical channels, determining the logical channels with priorities lower than the priority of the second logical channel as the k logical channels.

[0020] In some possible implementation manners, determining the k logical channels according to the priority of the second logical channel includes:

[0021] Among the n logical channels, determining the logical channels with priorities higher than the priority of the second logical channel as the k logical channels.

[0022] In some possible implementation manners, the priorities associated with each of the multiple carriers do not overlap.

[0023] In some possible implementation manners, determining k logical channels among the n logical channels according to the priorities of the n logical channels and the priority associated with the first carrier among the multiple carriers includes:

[0024] Determining the k logical channels among the n logical channels, where the priority of each logical channel among the k logical channels is lower than the priority associated with the first carrier.

[0025] In some possible implementations, determining k logical channels from the n logical channels according to the priorities of the n logical channels and the priority associated with the first carrier among the multiple carriers includes:

[0026] Determining the k logical channels from the n logical channels, where the priority of each logical channel in the k logical channels is higher than the priority associated with the first carrier.

[0027] In some possible implementations, each carrier among the multiple carriers is associated with only one priority.

[0028] In some possible implementations, the priority associated with each carrier among the multiple carriers is a priority configured by a network device.

[0029] In some possible implementations, the priority associated with each carrier among the multiple carriers is a pre-configured priority.

[0030] In some possible implementations, the method further includes:

[0031] Judging whether to allow carrier reselection according to the channel busy rate of the first carrier and a first threshold.

[0032] In some possible implementations, the priority of each logical channel is respectively associated with a threshold.

[0033] In some possible implementations, the first threshold is the highest value among the thresholds associated with the priorities of the k logical channels.

[0034] In some possible implementations, the first threshold is the lowest value among the thresholds associated with the priorities of the k logical channels.

[0035] In some possible implementations, the first threshold is the highest value among the thresholds associated with the priority associated with the first carrier.

[0036] In some possible implementations, the first threshold is the lowest value among the thresholds associated with the priority associated with the first carrier.

[0037] In some possible implementations, the first threshold is the highest value among the thresholds associated with the following priorities:

[0038] The priority associated with the first carrier, and the priorities lower than the priority associated with the first carrier.

[0039] In some possible implementations, the first threshold is the lowest value among the thresholds associated with the following priorities:

[0040] The priority associated with the first carrier, and the priorities lower than the priority associated with the first carrier.

[0041] In some possible implementation manners, the first threshold is the highest value among the thresholds associated with the following priorities:

[0042] The priority associated with the first carrier, and the priorities higher than the priority associated with the first carrier.

[0043] In some possible implementation manners, the first threshold is the lowest value among the thresholds associated with the following priorities:

[0044] The priority associated with the first carrier, and the priorities higher than the priority associated with the first carrier.

[0045] In some possible implementation manners, determining k logical channels from the n logical channels according to the priorities of the n logical channels and the priority associated with the first carrier among the multiple carriers includes:

[0046] Determining a third logical channel and a fourth logical channel from the n logical channels, where the third logical channel and the fourth logical channel are used for packet data convergence protocol (PDCP) data replication;

[0047] Selecting only one logical channel from the third logical channel and the fourth logical channel as the logical channel among the k logical channels.

[0048] In some possible implementation manners, selecting only one logical channel from the third logical channel and the fourth logical channel as the logical channel among the k logical channels includes:

[0049] When a first condition is satisfied, selecting the third logical channel from the third logical channel and the fourth logical channel as the logical channel among the k logical channels.

[0050] In some possible implementation manners, the first condition includes:

[0051] The fourth logical channel has no data to be transmitted.

[0052] In some possible implementation manners, the first condition includes:

[0053] Both the third logical channel and the fourth logical channel have data to be transmitted.

[0054] In some possible implementation manners, the first condition includes:

[0055] The third logical channel is associated with the first carrier.

[0056] In some possible implementations, the association relationship between the third logical channel and the first carrier is determined by the terminal device, or the association relationship between the third logical channel and the first carrier is configured by the network device.

[0057] In some possible implementations, the third logical channel and the fourth logical channel are determined by the terminal device, or the third logical channel and the fourth logical channel are configured by the network device.

[0058] In a second aspect, a terminal device is provided. The terminal device has m logical channels and multiple carriers. Each of the m logical channels is configured with a priority, and each of the multiple carriers is associated with the priority of at least one of the m logical channels, where m > 0;

[0059] The terminal device includes:

[0060] a transceiver unit, configured to receive radio link control (RLC) data on n logical channels, where the n logical channels belong to the m logical channels, and m ≥ n > 0;

[0061] a processing unit, where the processing unit is configured to:

[0062] determine k logical channels from the n logical channels according to the priorities of the n logical channels and the priority associated with the first carrier among the multiple carriers, where n ≥ k > 0; and generate a media access control (MAC) protocol data unit (PDU), where the MAC PDU includes the RLC PDUs on the k logical channels.

[0063] In a third aspect, a terminal device is provided. The terminal device has m logical channels and multiple carriers. Each of the m logical channels is configured with a priority, and each of the multiple carriers is associated with the priority of at least one of the m logical channels, where m > 0;

[0064] The terminal device includes:

[0065] a transceiver, configured to receive radio link control (RLC) data on n logical channels, where the n logical channels belong to the m logical channels, and m ≥ n > 0;

[0066] a processor, where the processor is configured to:

[0067] determine k logical channels from the n logical channels according to the priorities of the n logical channels and the priority associated with the first carrier among the multiple carriers, where n ≥ k > 0; and generate a media access control (MAC) protocol data unit (PDU), where the MAC PDU includes the RLC PDUs on the k logical channels.

[0068] In a fourth aspect, a chip is provided for performing the method in any possible implementation of the first aspect above.

[0069] In some possible implementations, the chip includes: a processor for calling and running a computer program from a memory, the computer program including: instructions for performing the method in any possible implementation of the first aspect above.

[0070] In some possible implementations, the chip further includes: a memory.

[0071] In a fifth aspect, a computer-readable medium is provided for storing a computer program, the computer program including: instructions for performing the method in any possible implementation of the first aspect above.

[0072] In a sixth aspect, a method for generating data is provided, which is applied to a terminal device configured with a third logical channel, a fourth logical channel, and at least one carrier, where the third logical channel and the fourth logical channel are used for packet data convergence protocol (PDCP) data replication;

[0073] The method includes:

[0074] When a first condition is satisfied, for a first carrier among the at least one carrier, generating a media access control (MAC) protocol data unit (PDU), the MAC PDU including an RLC PDU of the third logical channel among the third logical channel and the fourth logical channel.

[0075] In some possible implementations, the first condition includes:

[0076] There is no data to be transmitted on the fourth logical channel.

[0077] In some possible implementations, the first condition includes:

[0078] There is data to be transmitted on both the third and fourth logical channels.

[0079] In some possible implementations, the first condition includes:

[0080] The third logical channel is associated with the first carrier.

[0081] In some possible implementations, the association relationship between the third logical channel and the first carrier is determined by the terminal device, or the association relationship between the third logical channel and the first carrier is configured by a network device.

[0082] In some possible implementations, the third logical channel and the fourth logical channel are determined for the terminal device, or the third logical channel and the fourth logical channel are configured by the network device.

[0083] In a seventh aspect, a terminal device is provided. The terminal device is configured with a third logical channel, a fourth logical channel, and at least one carrier. The third logical channel and the fourth logical channel are used for packet data convergence protocol (PDCP) data replication.

[0084] The terminal device includes:

[0085] A processing unit, configured to generate a media access control (MAC) protocol data unit (PDU) for a first carrier among the at least one carrier when a first condition is met. The MAC PDU includes a radio link control (RLC) PDU of the third logical channel among the third logical channel and the fourth logical channel.

[0086] In an eighth aspect, a terminal device is provided. The terminal device is configured with a third logical channel, a fourth logical channel, and at least one carrier. The third logical channel and the fourth logical channel are used for packet data convergence protocol (PDCP) data replication.

[0087] The terminal device includes:

[0088] A processor, configured to generate a media access control (MAC) protocol data unit (PDU) for a first carrier among the at least one carrier when a first condition is met. The MAC PDU includes a radio link control (RLC) PDU of the third logical channel among the third logical channel and the fourth logical channel.

[0089] In a ninth aspect, a chip is provided for performing the method in any possible implementation of the foregoing sixth aspect.

[0090] In some possible implementations, the chip includes: a processor, configured to call and run a computer program from a memory. The computer program includes instructions for performing the method in any possible implementation of the foregoing sixth aspect.

[0091] In some possible implementations, the chip further includes: a memory.

[0092] In a tenth aspect, a computer-readable medium is provided for storing a computer program. The computer program includes instructions for performing the method in any possible implementation of the foregoing sixth aspect.

[0093] In an eleventh aspect, a method for configuring a logical channel is provided, which is applied to a terminal device. The terminal device is configured with at least one logical channel, and the at least one logical channel includes a first logical channel, and the first logical channel is associated with at least one first reliability requirement.

[0094] In some possible implementation manners, the method further includes:

[0095] Determine whether to associate the first logical channel with the logical channel group according to the association relationship between the logical channel group configured by the network and at least one second reliability requirement.

[0096] In some possible implementation manners, the determining whether to associate the first logical channel with the logical channel group according to the association relationship between the logical channel group configured by the network and at least one second reliability requirement includes:

[0097] When at least one of the at least one second reliability requirements includes at least one of the at least one first reliability requirement, determine to associate the first logical channel with the logical channel group.

[0098] In some possible implementation manners, the determining whether to associate the first logical channel with the logical channel group according to the association relationship between the logical channel group configured by the network and at least one second reliability requirement includes:

[0099] When at least one of the at least one second reliability requirements does not include at least one of the at least one first reliability requirement, determine not to associate the first logical channel with the logical channel group.

[0100] In some possible implementation manners, the method further includes:

[0101] Trigger a data cache report according to the reliability requirements associated with the at least one logical channel.

[0102] In some possible implementation manners, the triggering a data cache report according to the reliability requirements associated with the at least one logical channel includes:

[0103] When data arrives at the first logical channel, if the reliability requirement associated with the first logical channel is higher than that of other logical channels with existing data to be transmitted, trigger a data cache report.

[0104] In some possible implementation manners, the other logical channels with existing data to be transmitted and the first logical channel are for the same destination address.

[0105] In some possible implementation manners, the other logical channels with existing data to be transmitted are associated with the logical channel group.

[0106] In some possible implementations, the first logical channel is associated with a logical channel group.

[0107] In some possible implementations, the logical channel group associated with the first logical channel is different from the logical channel groups associated with the other existing logical channels with data to be transmitted.

[0108] In some possible implementations, the reliability requirement associated with the logical channel group associated with the first logical channel is higher than the reliability requirement of the logical channel groups associated with the other existing logical channels with data to be transmitted.

[0109] In a twelfth aspect, a terminal device is provided. The terminal device is configured with at least one logical channel, and the at least one logical channel includes a first logical channel, and the first logical channel is associated with at least one first reliability requirement.

[0110] In a thirteenth aspect, a computer-readable medium is provided for storing a computer program, and the computer program includes instructions for executing the method embodiments of the eleventh aspect above.

[0111] In a fourteenth aspect, a chip is provided, and the chip is used for the method of generating data in the eleventh aspect above and various implementation manners.

[0112] In some possible implementations, the chip includes: for calling and running a computer program from a memory, and the computer program includes: instructions for executing the method in any possible implementation manner of the sixteenth aspect above.

[0113] In some possible implementations, the chip further includes: a memory.

[0114] In a fifteenth aspect, a communication system is provided, including the terminal device described above.

[0115] In a sixteenth aspect, a computer program product is provided, including computer program instructions, and the computer program instructions cause a computer to execute the method in any of the above method embodiments or its implementation manners.

[0116] In a seventeenth aspect, a computer program is provided, and when it runs on a computer, it causes the computer to execute the method in any of the above method embodiments or its implementation manners. BRIEF DESCRIPTION OF THE DRAWINGS

[0117] Figure 1 is a schematic framework diagram of the transmission mode of the embodiments of the present invention;

[0118] Figure 2 is a schematic framework diagram of another transmission mode of the embodiments of the present invention;

[0119] Figure 3 is a schematic flowchart of the method for the listening resource pool according to an embodiment of the present invention;

[0120] Figure 4 is a schematic flowchart of the method for generating data according to an embodiment of the present invention;

[0121] Figure 5 is a schematic block diagram of a terminal device according to an embodiment of the present invention;

[0122] Figure 6 is a schematic block diagram of another terminal device according to an embodiment of the present invention;

[0123] Figure 7 is a schematic block diagram of a chip according to an embodiment of the present invention. Detailed implementation manners

[0124] With the evolution of the mobile Internet of Things technology, eV2X has been extended to multi-carrier scenarios, that is, a terminal device can simultaneously transmit and receive on more than one carrier. Therefore, an urgent problem to be solved is how to perform carrier selection. Thus, an embodiment of the present invention proposes a method for generating data, enabling the terminal device to effectively select a carrier for generating data from multiple carriers based on data priorities.

[0125] Next, the technical solutions in the embodiments of the present invention will be described with reference to the accompanying drawings.

[0126] The embodiments of the present invention can be applied to any communication framework from terminal device to terminal device. For example, vehicle to vehicle (V2V), vehicle to everything (V2X), device to device (D2D), etc. That is to say, Figure 1 or Figure 2 the system framework of the in-vehicle terminal to in-vehicle terminal shown is only an example of the embodiments of the present invention, and the embodiments of the present invention are not limited thereto.

[0127] Among them, the terminal device in the embodiments of the present invention can be any device or apparatus configured with a physical layer and a media access control layer, and the terminal device can also be referred to as an access terminal. For example, a user equipment (UE), a user unit, a user station, a mobile station, a mobile device, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user device. The access terminal can be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication capabilities, a computing device, or other linear processing devices connected to a wireless modem, a vehicle-mounted device, a wearable device, and so on. The embodiments of the present invention are described by taking a vehicle-mounted terminal as an example, but are not limited thereto.

[0128] The method for the terminal device in the embodiments of the present invention to obtain transmission resources is introduced below.

[0129] Figure 3 It is a schematic flowchart of the method for the terminal device in the embodiments of the present invention to listen to a resource pool.

[0130] As Figure 3 shown, it is assumed that each carrier corresponds to at least one sidelink process. For example, in 3GPP rel-14, one carrier corresponds to two sidelink processes. When a new data packet arrives at time n, the terminal device needs to select resources. The terminal will select resources within the interval [n + T1, n + T2] according to the listening results in the past period (for example, 1 s). Specifically, the terminal device can select resources in the selection window by detecting the channel quality information corresponding to the resources within the listening window.

[0131] Among them, T1 ≤ 4 ms; 20 ms ≤ T2 ≤ 100 ms.

[0132] In addition, the channel quality information corresponding to the resource may be the channel quality (e.g., received power or received quality) of the Physical Sidelink Shared Channel (PSSCH) corresponding to the Physical Sidelink Control Channel (PSCCH). The terminal device can also detect the Receive Signal Strength Indicator (RSSI) of the resources in the transmission resource set to obtain the channel quality information corresponding to each resource in the transmission resource set.

[0133] It should be noted that the value ranges of T1 and T2 are only taken as an example and should not limit this embodiment.

[0134] Since the services in the vehicle-to-everything (V2X) system have periodic characteristics. Therefore, in the embodiments of the present invention, the terminal device can adopt a semi-static transmission mode.

[0135] Specifically, when the terminal device selects a resource for transmission, the terminal device will continuously use and reserve this resource Cresel times. Each time data is transmitted, Cresel is decremented by 1. When Cresel is decremented to 0, the terminal will randomly generate a random number between [0, 1] and compare it with the parameter (probResourceKeep). If it is greater than the parameter, the terminal performs resource reselection. If it is less than the parameter, the terminal continues to use this resource and resets Cresel.

[0136] That is, the terminal device will carry the information of reserving the next transmission resource in the control information of this transmission, so that other terminal devices can determine whether this resource is reserved and used by this terminal device by detecting the control information of this terminal device, achieving the purpose of reducing resource conflicts. In other words, after selecting a transmission resource, the terminal device in the embodiments of the present invention can continuously use this resource in multiple transmission cycles, thereby reducing the probability of resource reselection and resource conflicts.

[0137] It should be understood that Figure 3 The method for the terminal device to listen to the resource pool shown is an exemplary description of how the terminal device obtains resources, and the embodiments of the present invention do not make specific limitations. For example, the network device can also allocate transmission resources for the terminal device.

[0138] Next, the method for generating data in the embodiments of the present invention will be introduced.

[0139] Figure 4 is a schematic flowchart of the method for generating data in the embodiments of the present invention.

[0140] AsFigure 4 As shown, the method includes:

[0141] 210. Receive Radio Link Control (RLC) data on n logical channels.

[0142] 220. Determine k logical channels among the n logical channels according to the priorities of the n logical channels and the priority associated with the first carrier among the multiple carriers of the terminal device.

[0143] 230. Generate a Media Access Control (MAC) protocol data unit (PDU), where the MAC PDU includes the RLC PDUs on the k logical channels.

[0144] Specifically, the terminal device receives RLC data on n logical channels, where the n logical channels belong to the m logical channels, m ≥ n > 0; determines k logical channels among the n logical channels according to the priorities of the n logical channels and the priority associated with the first carrier among the multiple carriers, n ≥ k > 0; and generates a MAC protocol data unit PDU, where the MAC PDU includes the RLC PDUs on the k logical channels.

[0145] In short, the terminal device selects k logical channels from the n logical channels and generates a MAC PDU to be transmitted on the first carrier based on the k logical channels.

[0146] It should be noted that since the MAC PDU packet assembly rule is related to the priority of the data.

[0147] Therefore, there is a prerequisite for the method of generating data in the embodiments of the present invention, that is, the terminal device is configured with m logical channels and multiple carriers, each of the m logical channels is configured with a priority, and each of the multiple carriers is associated with the priority of at least one of the m logical channels, m > 0.

[0148] Thus, when the terminal device receives RLC data on n logical channels, it can select k logical channels from the n logical channels according to the priorities of the n logical channels and the priority associated with the first carrier among the multiple carriers of the terminal device, and then generate a MAC PDU to be transmitted on the first carrier.

[0149] Those skilled in the art can understand that the data that enters each sublayer without being processed is called a service data unit (SDU), and the data formed after being processed by the sublayer and having a specific format is called a protocol data unit (PDU).

[0150] That is to say, the PDU formed by this layer is the SDU of the next layer.

[0151] For example, each logical channel of a terminal device has an RLC entity. The data received by the RLC entity from the MAC layer or sent to the MAC layer can be called an RLC PDU (or a MAC SDU).

[0152] The following introduces the implementation manner for the terminal device to determine the k logical channels among the n logical channels in the embodiments of the present invention.

[0153] Optionally, as an embodiment, the terminal device can determine the k logical channels among the n logical channels, and the priority of each logical channel among the k logical channels belongs to the priority associated with the first carrier.

[0154] Specifically, when generating a MAC PDU, the terminal device can determine the k logical channels among the n logical channels, and the priority of each logical channel among the k logical channels belongs to the priority associated with the first carrier, and then generate a MAC PDU transmitted on the first carrier based on the k logical channels.

[0155] It should be noted that in the prior art, the terminal device generates a MAC PDU according to certain principles. For example, when the priority of the RLC SDU in the MAC PDU includes X, assuming that the priority of X is higher than that of Y, the priority of Y is higher than that of Z, and both Y and Z are the priorities of the logical channels that the terminal device has, the MAC PDU will also include the RLC SDUs with priorities of Y and Z.

[0156] Therefore, in order to improve the compatibility and application scope of the method for generating data in the embodiments of the present invention with the prior art. In the embodiments of the present invention, the priority associated with each carrier among the multiple carriers that the terminal device has can be designed by referring to the packet assembly rules of the MAC PDU in the prior art. In this way, the current process of generating the MAC PDU can be kept unchanged, and thus the compatibility between the embodiments of the present invention and the prior art can be maximally improved.

[0157] As an example but not by way of limitation, each carrier among the multiple carriers can associate the priority of the logical channel according to the following rules:

[0158] When the priority associated with the second carrier among the multiple carriers includes the priority of the first logical channel, the priority associated with the second carrier further includes the priorities of the logical channels among the m logical channels that are lower than the priority of the first logical channel. The second carrier is any one of the multiple carriers, and the first logical channel is any one of the m logical channels.

[0159] That is to say, when determining the associated priority of the second carrier, once it is determined that the second carrier will be associated with priority X, then all priorities lower than X should be associated with the second carrier.

[0160] For example, assume that the terminal device has 8 logical channels, and each logical channel corresponds to a priority. For example, assume that the priority of logical channel 1 is 1, the priority of logical channel 2 is 2, and so on, and the priority of logical channel 8 is 8. If the terminal device has 3 carriers. For example, carrier 1, carrier 2, and carrier 3.

[0161] Then, the 3 carriers can associate the priorities of the logical channels in the following form:

[0162] The priorities associated with carrier 1 include: 1, 2, 3, 4, 5, 6, 7, 8.

[0163] The priorities associated with carrier 2 include: 5, 6, 7, 8.

[0164] The priorities associated with carrier 3 include: 7, 8.

[0165] It should be understood that in the embodiments of the present invention, when the terminal device determines the k logical channels among the n logical channels, it can determine the k logical channels by analyzing which logical channels among the n logical channels have priorities included in the priorities associated with the first carrier. The terminal device can also determine the k logical channels by other means, and the embodiments of the present invention do not make specific limitations.

[0166] The following is an exemplary description.

[0167] Optionally, as an embodiment, the terminal device can determine the k logical channels by analyzing the priorities of some of the n logical channels.

[0168] Specifically, the terminal device may first determine a second logical channel among the n logical channels, and the priority of the second logical channel belongs to the priority associated with the first carrier; then determine the k logical channels according to the priority of the second logical channel. The second logical channel in the embodiments of the present invention may be any logical channel among the n logical channels that belongs to the priority associated with the first carrier. More specifically, the terminal device may determine the k logical channels by comparing the priority associated with the first carrier with the priorities of some of the n logical channels.

[0169] For example, among the n logical channels, the terminal device may determine the logical channels with priorities lower than that of the second logical channel as the k logical channels.

[0170] For another example, among the n logical channels, the terminal device may determine the logical channels with priorities higher than that of the second logical channel as the k logical channels.

[0171] In this case, each carrier among the multiple carriers may associate with the priorities of logical channels according to the following rules:

[0172] The priorities associated with each carrier among the multiple carriers do not overlap.

[0173] For example, assume that the terminal device has 8 logical channels, and each logical channel corresponds to a priority. For example, assume that the priority of logical channel 1 is 1, the priority of logical channel 2 is 2, and so on, and the priority of logical channel 8 is 8. If the terminal device has 3 carriers. For example, carrier 1, carrier 2, and carrier 3.

[0174] Then, the 3 carriers may associate with the priorities of logical channels in the following form:

[0175] The priorities associated with carrier 1 include: 1, 2, 3, 4.

[0176] The priorities associated with carrier 2 include: 5, 6.

[0177] The priorities associated with carrier 3 include: 7, 8.

[0178] In the embodiments of the present invention, since only the priority of the second logical channel is compared with the priority associated with the first carrier, and then the MAC PDU transmitted on the first carrier is determined, which does not conflict with the packet assembly criterion of the MAC PDU in the prior art, therefore, the compatibility between the embodiments of the present invention and the prior art can be maximally improved.

[0179] As another embodiment, the terminal device may determine the k logical channels by comparing the priority associated with the first carrier with the priorities of each of the n logical channels.

[0180] For example, the terminal device determines the k logical channels among the n logical channels, and the priority of each logical channel among the k logical channels is lower than the priority associated with the first carrier.

[0181] For another example, the terminal device determines the k logical channels among the n logical channels, and the priority of each logical channel among the k logical channels is higher than the priority associated with the first carrier.

[0182] In this case, each carrier among the multiple carriers may associate the priority of the logical channel according to the following rules:

[0183] Each carrier among the multiple carriers is only associated with one priority.

[0184] For example, assume that the terminal device has 8 logical channels, and each logical channel corresponds to a priority. For example, assume that the priority of logical channel 1 is 1, the priority of logical channel 2 is 2, and so on, and the priority of logical channel 8 is 8. If the terminal device has 3 carriers. For example, carrier 1, carrier 2, and carrier 3.

[0185] Then, the 3 carriers may associate the priority of the logical channel in the following form:

[0186] The priorities associated with carrier 1 include: 1.

[0187] The priorities associated with carrier 2 include: 5.

[0188] The priorities associated with carrier 3 include: 7.

[0189] In the embodiments of the present invention, since only the priority of each logical channel among the n logical channels is compared with the priority associated with the first carrier, and then the MAC PDU transmitted on the first carrier is determined, it does not conflict with the packet assembly criterion of the MAC PDU in the prior art. Therefore, the compatibility between the embodiments of the present invention and the prior art can be maximally improved.

[0190] It should be understood that each number in this embodiment is for illustrative purposes. The original intention of the embodiments of the present invention is to illustrate the implementation manner of associating the priority of the logical channel with the carrier, and the implementation manner of determining the carrier for transmitting the MAC PDU during the process of assembling the MAC PDU by the terminal device.

[0191] In an embodiment of the present invention, a method for generating data applicable to a Packet Data Convergence Protocol (PDCP) data replication scenario is further provided. The terminal device is configured with a third logical channel, a fourth logical channel, and at least one carrier. The third logical channel and the fourth logical channel are used for Packet Data Convergence Protocol (PDCP) data replication. Optionally, the third logical channel and the fourth logical channel are associated with the same PDCP entity, and support the PDCP entity to perform PDCP replication transmission. Optionally, the priorities of the third logical channel and the fourth logical channel are the same.

[0192] Specifically, the terminal device may, when a first condition is met, generate a Medium Access Control (MAC) protocol data unit (PDU) for a first carrier among the at least one carrier, where the MAC PDU includes the Radio Link Control (RLC) PDU of the third logical channel among the third logical channel and the fourth logical channel.

[0193] Optionally, the first condition includes: there is no data to be transmitted on the fourth logical channel. In this case, the terminal device may preferentially transmit the RLC PDU of the fourth logical channel. Further optionally, after transmitting the RLC PDU of the fourth logical channel, the RLC PDU of the third logical channel may be transmitted.

[0194] Optionally, the first condition includes: there is data to be transmitted on both the third logical channel and the fourth logical channel. In this case, the terminal device may preferentially transmit the RLC PDU of the third logical channel. Further optionally, after transmitting the RLC PDU of the third logical channel, the RLC PDU of the fourth logical channel may be transmitted.

[0195] Optionally, the first condition includes: the third logical channel is associated with the first carrier.

[0196] Optionally, the association relationship between the third logical channel and the first carrier is determined by the terminal device, or the association relationship between the third logical channel and the first carrier is configured by the network device.

[0197] Optionally, the third logical channel and the fourth logical channel are determined by the terminal device, or the third logical channel and the fourth logical channel are configured by the network device.

[0198] It should also be understood that the above method for generating data in the PDCP data replication scenario can also be incorporated into Figure 4 the method for generating data shown. Specifically, the terminal device may determine the third logical channel and the fourth logical channel among the n logical channels, and then select only one logical channel from the third logical channel and the fourth logical channel as the logical channel among the k logical channels. For the sake of brevity, it will not be elaborated here.

[0199] The above has given an exemplary description of the MAC PDU for the terminal device to determine the first carrier. However, it should be noted that in the embodiments of the present invention, after determining the first carrier, carrier reselection can also be performed. The following gives an exemplary description of the implementation manner that allows the terminal device to perform carrier reselection:

[0200] Optionally, in one implementable manner, the terminal device can determine whether to allow carrier reselection according to the channel busy rate of the first carrier and a first threshold. For example, when the channel busy rate of the first carrier is greater than the first threshold, the terminal device is allowed to perform carrier reselection. For another example, when the busy rate of the first carrier is less than or equal to the first threshold value, the terminal device is not allowed to perform carrier reselection. It should be understood that the above takes the terminal device determining whether to allow carrier reselection by the channel busy rate of the first carrier and the first threshold as an example. In other embodiments, the terminal device can also determine whether it is allowed to perform carrier reselection through other information. For example, the load of the first carrier and the corresponding threshold value.

[0201] The following gives an exemplary description of the value of the first threshold:

[0202] Optionally, the priority of each logical channel is respectively associated with a threshold.

[0203] Optionally, the first threshold is the highest value among the thresholds associated with the priorities of the k logical channels.

[0204] Optionally, the first threshold is the lowest value among the thresholds associated with the priorities of the k logical channels.

[0205] Optionally, the first threshold is the highest value among the thresholds associated with the priority associated with the first carrier.

[0206] Optionally, the first threshold is the lowest value among the thresholds associated with the priority associated with the first carrier.

[0207] Optionally, the first threshold is the highest value among the thresholds associated with the following priorities:

[0208] The priority associated with the first carrier, and the priorities lower than the priority associated with the first carrier.

[0209] Optionally, the first threshold is the lowest value among the thresholds associated with the following priorities:

[0210] The priority associated with the first carrier, and the priorities lower than the priority associated with the first carrier.

[0211] Optionally, the first threshold is the highest value among the thresholds associated with the following priorities:

[0212] The priority associated with the first carrier, and priorities higher than the priority associated with the first carrier.

[0213] Optionally, the first threshold is the lowest value among the thresholds associated with the following priorities:

[0214] The priority associated with the first carrier, and priorities higher than the priority associated with the first carrier.

[0215] In addition, an embodiment of the present invention also provides a method for configuring a logical channel. Among them, this method for configuring a logical channel can be applied to a terminal device. This method for configuring a logical channel can enable the terminal device to be configured with at least one logical channel. At least one of the above logical channels includes a first logical channel, and the first logical channel is associated with at least one first reliability requirement.

[0216] It should be understood that in the embodiments of the present invention, the specific manifestation form of the reliability requirement is not limited. For example, a low value may represent a high reliability requirement. For another example, a high value may represent a low reliability requirement.

[0217] Optionally, the terminal device may determine whether to associate the first logical channel with the logical channel group according to the association relationship between the logical channel group configured by the network and at least one second reliability requirement.

[0218] For example, when at least one of the above at least one second reliability requirements includes at least one of the above at least one first reliability requirements, it is determined to associate the first logical channel with the logical channel group.

[0219] For another example, when at least one of the above at least one second reliability requirements does not include the above at least one first reliability requirements, it is determined not to associate the first logical channel with the logical channel group.

[0220] Optionally, the terminal device may also trigger a data cache report according to the reliability requirements associated with at least one of the above logical channels.

[0221] For example, when data arrives at the first logical channel, if the reliability requirement associated with the first logical channel is higher than that of other logical channels with existing data to be transmitted, a data cache report is triggered.

[0222] In the embodiments of the present invention, taking the reliability requirement associated with the first logical channel being higher than that of other logical channels with existing data to be transmitted as an example, the implementation manner of triggering a data cache report is described. However, it should be understood that in other embodiments, when triggering a data cache report, the terminal device also needs to meet other conditions. The following is an exemplary description:

[0223] Optionally, the above-mentioned other logical channels with existing data to be transmitted and the first logical channel are for the same destination address.

[0224] Optionally, the above-mentioned other logical channels with existing data to be transmitted are associated with a logical channel group.

[0225] Optionally, the first logical channel is associated with a logical channel group.

[0226] Optionally, the logical channel group associated with the first logical channel is different from the logical channel group associated with the above-mentioned other logical channels with existing data to be transmitted.

[0227] Optionally, the reliability requirement associated with the logical channel group associated with the first logical channel is higher than the reliability requirement associated with the logical channel group associated with the above-mentioned other logical channels with existing data to be transmitted.

[0228] Figure 5 It is a schematic block diagram of a terminal device according to an embodiment of the present invention. It should be understood that the terminal device in the embodiment of the present invention has m logical channels and multiple carriers. Each of the m logical channels is configured with a priority, and each of the multiple carriers is associated with the priority of at least one of the m logical channels, where m>0.

[0229] As Figure 5 shown, the terminal device 300 includes:

[0230] A transceiver unit 310, configured to receive radio link control protocol (RLC) data on n logical channels, where the n logical channels belong to the m logical channels, and m≥n>0;

[0231] A processing unit 320, where the processing unit 320 is configured to:

[0232] Determine k logical channels from the n logical channels according to the priorities of the n logical channels and the priority associated with a first carrier among the multiple carriers, where n≥k>0; generate a media access control (MAC) protocol data unit (PDU), and the MAC PDU includes the RLC PDUs on the k logical channels.

[0233] Optionally, the processing unit 320 is specifically configured to:

[0234] Determine the k logical channels from the n logical channels, and the priority of each of the k logical channels belongs to the priority associated with the first carrier.

[0235] Optionally, when the priority associated with a second carrier among the multiple carriers includes the priority of a first logical channel among the m logical channels, the priority associated with the second carrier further includes the priorities of the logical channels among the m logical channels that are lower than the priority of the first logical channel.

[0236] Optionally, the processing unit 320 is specifically configured to:

[0237] Determine a second logical channel among the n logical channels, where the priority of the second logical channel belongs to the priority associated with the first carrier; determine the k logical channels according to the priority of the second logical channel.

[0238] Optionally, the processing unit 320 is more specifically configured to:

[0239] Among the n logical channels, determine the logical channels with priorities lower than that of the second logical channel as the k logical channels.

[0240] Optionally, the processing unit 320 is more specifically configured to:

[0241] Among the n logical channels, determine the logical channels with priorities higher than that of the second logical channel as the k logical channels.

[0242] Optionally, the priorities associated with each of the multiple carriers do not overlap.

[0243] Optionally, the processing unit 320 is specifically configured to:

[0244] Determine the k logical channels among the n logical channels, where the priority of each logical channel in the k logical channels is lower than the priority associated with the first carrier.

[0245] Optionally, the processing unit 320 is specifically configured to:

[0246] Determine the k logical channels among the n logical channels, where the priority of each logical channel in the k logical channels is higher than the priority associated with the first carrier.

[0247] Optionally, each of the multiple carriers is associated with only one priority.

[0248] Optionally, the priority associated with each of the multiple carriers is a priority configured by a network device.

[0249] Optionally, the priority associated with each of the multiple carriers is a pre-configured priority.

[0250] Optionally, the processing unit 320 is further configured to:

[0251] Judge whether to allow carrier reselection according to the channel busy rate of the first carrier and a first threshold.

[0252] Optionally, the priority of each logical channel is respectively associated with a threshold.

[0253] Optionally, the first threshold is the highest value among the thresholds associated with the priorities of the k logical channels.

[0254] Optionally, the first threshold is the lowest value among the thresholds associated with the priorities of the k logical channels.

[0255] Optionally, the first threshold is the highest value among the thresholds associated with the priorities associated with the first carrier.

[0256] Optionally, the first threshold is the lowest value among the thresholds associated with the priorities associated with the first carrier.

[0257] Optionally, the first threshold is the highest value among the thresholds associated with the following priorities:

[0258] The priority associated with the first carrier, and the priorities lower than the priority associated with the first carrier.

[0259] Optionally, the first threshold is the lowest value among the thresholds associated with the following priorities:

[0260] The priority associated with the first carrier, and the priorities lower than the priority associated with the first carrier.

[0261] Optionally, the first threshold is the highest value among the thresholds associated with the following priorities:

[0262] The priority associated with the first carrier, and the priorities higher than the priority associated with the first carrier.

[0263] Optionally, the first threshold is the lowest value among the thresholds associated with the following priorities:

[0264] The priority associated with the first carrier, and the priorities higher than the priority associated with the first carrier.

[0265] In addition, a terminal device for generating data applicable to a Packet Data Convergence Protocol (PDCP) data replication scenario is provided. The terminal device is configured with a third logical channel, a fourth logical channel, and at least one carrier. The third logical channel and the fourth logical channel are used for Packet Data Convergence Protocol PDCP data replication. The terminal device may include: a processing unit, configured to generate a Medium Access Control MAC protocol data unit PDU for the first carrier among the at least one carrier when a first condition is satisfied, where the MAC PDU includes an RLC PDU of the third logical channel among the third logical channel and the fourth logical channel. Optionally, the third logical channel and the fourth logical channel are associated with the same PDCP entity, and support the PDCP entity to perform PDCP replication transmission. Optionally, the priority of the third logical channel is the same as the priority of the fourth logical channel.

[0266] Optionally, the first condition includes that there is no data to be transmitted on the fourth logical channel. In this case, the terminal device may preferentially transmit the RLC PDUs of the fourth logical channel. Further optionally, after transmitting the RLC PDUs of the fourth logical channel, the RLC PDUs of the third logical channel may be transmitted.

[0267] Optionally, the first condition includes that there is data to be transmitted on both the third and fourth logical channels. In this case, the terminal device may preferentially transmit the RLC PDUs of the third logical channel. Further optionally, after transmitting the RLC PDUs of the third logical channel, the RLC PDUs of the fourth logical channel may be transmitted.

[0268] Optionally, the first condition includes that the third logical channel is associated with the first carrier.

[0269] Optionally, the association relationship between the third logical channel and the first carrier is determined by the terminal device, or the association relationship between the third logical channel and the first carrier is configured by the network device.

[0270] Optionally, the third logical channel and the fourth logical channel are determined by the terminal device, or the third logical channel and the fourth logical channel are configured by the network device.

[0271] Optionally, Figure 5 The terminal device shown may also be incorporated into the terminal device for the PDCP data replication scenario described above. For the sake of brevity, it will not be elaborated here.

[0272] Optionally, Figure 5 The terminal device shown may also be configured with at least one logical channel, and the at least one logical channel includes a first logical channel, and the first logical channel is associated with at least one first reliability requirement.

[0273] Optionally, the terminal device includes:

[0274] A processing unit 320, configured to determine whether to associate the first logical channel with the logical channel group according to the association relationship between the logical channel group configured by the network and at least one second reliability requirement.

[0275] Optionally, the processing unit 320 is specifically configured to:

[0276] When at least one of the at least one second reliability requirements includes at least one of the at least one first reliability requirements, determine to associate the first logical channel with the logical channel group.

[0277] Optionally, the processing unit 320 is specifically configured to:

[0278] When at least one of the above-mentioned second reliability requirements does not include at least one of the above-mentioned first reliability requirements, it is determined not to associate the first logical channel with the logical channel group.

[0279] Optionally, the transceiver unit 310 is configured to trigger a data cache report according to the reliability requirements associated with at least one of the above-mentioned logical channels.

[0280] Optionally, the transceiver unit 310 is specifically configured to:

[0281] When data arrives at the first logical channel, if the reliability requirement associated with the first logical channel is higher than that of other logical channels with existing data to be transmitted, a data cache report is triggered.

[0282] Optionally, the other logical channels with existing data to be transmitted and the first logical channel are for the same destination address.

[0283] Optionally, the other logical channels with existing data to be transmitted are associated with the logical channel group.

[0284] Optionally, the first logical channel is associated with the logical channel group.

[0285] Optionally, the logical channel group associated with the first logical channel is different from the logical channel group associated with the other logical channels with existing data to be transmitted.

[0286] Optionally, the reliability requirement associated with the logical channel group associated with the first logical channel is higher than the reliability requirement associated with the logical channel group associated with the other logical channels with existing data to be transmitted.

[0287] In the embodiments of the present invention, the transceiver unit 310 can be implemented by a transceiver, and the processing unit 320 can be implemented by a processor. As Figure 6 shown, the terminal device 400 may include a processor 410, a transceiver 420, and a memory 430. Among them, the memory 430 can be used to store indication information, and can also be used to store codes, instructions, etc. executed by the processor 410. Each component in the terminal device 400 is connected through a bus system. Among them, the bus system includes not only a data bus, but also a power bus, a control bus, and a status signal bus.

[0288] Figure 6 The terminal device 400 shown is capable of implementing each process implemented by the terminal device in the foregoing Figure 4 method embodiments. To avoid repetition, it will not be elaborated here. That is to say, the method embodiments in the embodiments of the present invention can be applied to the processor or implemented by the processor.

[0289] Figure 7 is a schematic structural diagram of a chip according to an embodiment of the present application.Figure 7 The chip 500 shown includes a processor 510, and the processor 510 can call and run a computer program from a memory to implement the method in the embodiments of the present application.

[0290] Optionally, as Figure 7 shown, the chip 500 may further include a memory 520. Among them, the processor 510 can call and run a computer program from the memory 520 to implement the method in the embodiments of the present application.

[0291] Among them, the memory 520 can be a separate device independent of the processor 510, or can be integrated in the processor 510.

[0292] Optionally, the chip 500 may further include an input interface 530. Among them, the processor 510 can control the input interface 530 to communicate with other devices or chips. Specifically, it can obtain information or data sent by other devices or chips.

[0293] Optionally, the chip 500 may further include an output interface 540. Among them, the processor 510 can control the output interface 540 to communicate with other devices or chips. Specifically, it can output information or data to other devices or chips.

[0294] 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 the various methods of the embodiments of the present application. For the sake of brevity, it will not be elaborated here.

[0295] 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, it will not be elaborated here.

[0296] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0297] In the implementation process, each step of the method embodiment in the embodiments of the present invention can be completed by the integrated logic circuit in the hardware of the processor or the instructions in the form of software. More specifically, the steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by the combination of the hardware and software modules in the decoding processor. The software module can be located in mature storage media in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers, etc. This storage media is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method.

[0298] It should be understood that the processor mentioned in the embodiments of the present invention may be an integrated circuit chip with the ability to process signals, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present invention. For example, the above-mentioned processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, discrete hardware components, and so on. In addition, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0299] In addition, the memory mentioned in the embodiments of the present invention 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), which is used as an external cache. It should be understood that the above memory is for illustrative but not restrictive purposes. For example, the memory in the embodiments of the present invention may also be a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link DRAM (SLDRAM), and a direct rambus random access memory (DR RAM), and so on. That is to say, the memory of the systems and methods described herein is intended to include but not be limited to these and any other suitable types of memory.

[0300] Finally, it should be noted that the terms used in the embodiments of the present invention and the appended claims are only for the purpose of describing specific embodiments and are not intended to limit the embodiments of the present invention.

[0301] For example, the singular forms of "a", "the", "above", and "said" used in the embodiments of the present invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0302] For another example, in the embodiments of the present invention, the terms first carrier and second carrier may be used, but these carriers should not be limited to these terms. These terms are only used to distinguish the carriers from each other.

[0303] For another example, depending on the context, the phrase "when" as used herein may be interpreted as "if" or "when" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determining" or "when detected (stated condition or event)" or "in response to detecting (stated condition or event)".

[0304] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A professional technician can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present invention.

[0305] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0306] In 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 illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For example, 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 displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0307] The unit described as a separation component may or may not be physically separated. The component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0308] In addition, each functional unit in the embodiments of the present invention may be integrated in a processing unit, may exist physically separately for each unit, or two or more units may be integrated in one unit.

[0309] If it is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present invention, in essence, or the part that contributes to the prior art or part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks, or optical discs that can store program codes.

[0310] The above content is only the specific implementation manner of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed in the embodiments of the present invention can easily think of changes or substitutions, which should all be covered by the protection scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for generating data, characterized in that, Applied to a terminal device, the terminal device having m logical channels and a plurality of carriers, each of the m logical channels being configured with a priority, and each of the plurality of carriers being associated with the priority of at least one of the m logical channels, where m > 0; The method includes: Receiving radio link control protocol (RLC) data on n logical channels, the n logical channels belonging to the m logical channels, where m ≥ n > 0; Determining k logical channels among the n logical channels according to the priorities of the n logical channels and the priority associated with a first carrier among the plurality of carriers, where n ≥ k > 0, and the priority of each of the k logical channels belongs to the priority associated with the first carrier; and Generating a media access control (MAC) protocol data unit (PDU), the MAC PDU including the RLC PDUs on the k logical channels, and the RLC PDUs including the data sent from the RLC entities of the k logical channels to the MAC layer.

2. The method according to claim 1, characterized in that, When the priority associated with a second carrier among the plurality of carriers includes the priority of a first logical channel among the m logical channels, the priority associated with the second carrier further includes the priorities of the logical channels among the m logical channels that are lower than the priority of the first logical channel.

3. The method according to claim 1, characterized in that, The determining k logical channels among the n logical channels according to the priorities of the n logical channels and the priority associated with a first carrier among the plurality of carriers includes: Determining a second logical channel among the n logical channels, the priority of the second logical channel belonging to the priority associated with the first carrier; Determining the k logical channels according to the priority of the second logical channel.

4. The method according to claim 3, characterized in that, The determining the k logical channels according to the priority of the second logical channel includes: Among the n logical channels, determining the logical channels with priorities lower than that of the second logical channel as the k logical channels.

5. The method according to claim 3, characterized in that, The determining the k logical channels according to the priority of the second logical channel includes: Among the n logical channels, determining the logical channels with priorities higher than that of the second logical channel as the k logical channels.

6. The method according to any one of claims 3 to 5, characterized in that, The priorities associated with each of the plurality of carriers do not overlap.

7. The method according to claim 1, characterized in that, The determining k logical channels among the n logical channels according to the priorities of the n logical channels and the priority associated with a first carrier among the plurality of carriers includes: Determining the k logical channels among the n logical channels, the priority of each of the k logical channels being lower than the priority associated with the first carrier.

8. The method according to claim 1, characterized in that, The determining k logical channels among the n logical channels according to the priorities of the n logical channels and the priority associated with a first carrier among the plurality of carriers includes: Determining the k logical channels among the n logical channels, the priority of each of the k logical channels being higher than the priority associated with the first carrier.

9. The method according to claim 7 or 8, characterized in that, Each of the plurality of carriers is only associated with one priority.

10. The method according to claim 1, characterized in that, The priority associated with each of the plurality of carriers is a priority configured by a network device.

11. The method according to claim 1, characterized in that, The priority associated with each of the multiple carriers is a pre-configured priority.

12. The method according to claim 1, characterized in that, The method further includes: Determining whether to allow carrier reselection according to the channel busy rate of the first carrier and a first threshold.

13. The method according to claim 12, characterized in that, The priority of each logical channel is respectively associated with a threshold.

14. The method according to claim 12 or 13, characterized in that, The first threshold is the highest value among the thresholds associated with the priorities of the k logical channels.

15. The method according to claim 12 or 13, characterized in that, The first threshold is the lowest value among the thresholds associated with the priorities of the k logical channels.

16. The method according to claim 12 or 13, characterized in that The first threshold is the highest value among the thresholds associated with the priority associated with the first carrier.

17. The method according to claim 12 or 13, characterized in that The first threshold is the lowest value among the thresholds associated with the priority associated with the first carrier.

18. The method according to claim 12 or 13, characterized in that The first threshold is the highest value among the thresholds associated with the following priorities: The priority associated with the first carrier, and the priorities lower than the priority associated with the first carrier.

19. The method according to claim 12 or 13, characterized in that The first threshold is the lowest value among the thresholds associated with the following priorities: The priority associated with the first carrier, and the priorities lower than the priority associated with the first carrier.

20. The method according to claim 12 or 13, characterized in that The first threshold is the highest value among the thresholds associated with the following priorities: The priority associated with the first carrier, and the priorities higher than the priority associated with the first carrier.

21. The method according to claim 12 or 13, characterized in that The first threshold is the lowest value among the thresholds associated with the following priorities: The priority associated with the first carrier, and the priorities higher than the priority associated with the first carrier.

22. The method according to claim 1, characterized in that The determining, according to the priorities of the n logical channels and the priority associated with the first carrier among the multiple carriers, of k logical channels among the n logical channels includes: Determining a third logical channel and a fourth logical channel among the n logical channels, where the third logical channel and the fourth logical channel are used for packet data convergence protocol (PDCP) data replication; Selecting only one logical channel from the third logical channel and the fourth logical channel as the logical channel among the k logical channels.

23. The method according to claim 22, characterized in that The selecting, from the third logical channel and the fourth logical channel, of only one logical channel as the logical channel among the k logical channels includes: Selecting the third logical channel from the third logical channel and the fourth logical channel as the logical channel among the k logical channels when a first condition is satisfied.

24. The method according to claim 23, characterized in that The first condition includes: The fourth logical channel has no data to be transmitted.

25. The method according to claim 23, characterized in that The first condition includes: Both the third logical channel and the fourth logical channel have data to be transmitted.

26. The method according to claim 23, characterized in that The first condition includes: The third logical channel is associated with the first carrier.

27. The method according to claim 26, characterized in that The association relationship between the third logical channel and the first carrier is determined by the terminal device, or the association relationship between the third logical channel and the first carrier is configured by the network device.

28. The method according to any one of claims 22 to 27, characterized in that The third logical channel and the fourth logical channel are determined by the terminal device, or the third logical channel and the fourth logical channel are configured by the network device.

29. A terminal device, characterized in that The terminal device has m logical channels and multiple carriers, each of the m logical channels is configured with a priority, and each of the multiple carriers is associated with the priority of at least one of the m logical channels, where m > 0; The terminal device includes: a transceiver unit, configured to receive Radio Link Control (RLC) data on n logical channels, where the n logical channels belong to the m logical channels, and m ≥ n > 0; a processing unit, where the processing unit is configured to: determine k logical channels from the n logical channels according to the priorities of the n logical channels and the priority associated with a first carrier among the multiple carriers, where n ≥ k > 0, and the priority of each logical channel among the k logical channels belongs to the priority associated with the first carrier; generate a Medium Access Control (MAC) protocol data unit (PDU), where the MAC PDU includes the RLC PDUs on the k logical channels, and the RLC PDUs include the data sent from the RLC entities of the k logical channels to the MAC layer.

30. The terminal device according to claim 29, wherein When the priority associated with a second carrier among the multiple carriers includes the priority of a first logical channel among the m logical channels, the priority associated with the second carrier further includes the priorities of the logical channels among the m logical channels that are lower than the priority of the first logical channel.

31. The terminal device according to claim 29, wherein Specifically, the processing unit is configured to: determine a second logical channel from the n logical channels, where the priority of the second logical channel belongs to the priority associated with the first carrier; determine the k logical channels according to the priority of the second logical channel.

32. The terminal device according to claim 31, wherein More specifically, the processing unit is configured to: among the n logical channels, determine the logical channels with priorities lower than that of the second logical channel as the k logical channels.

33. The terminal device according to claim 31, wherein More specifically, the processing unit is configured to: among the n logical channels, determine the logical channels with priorities higher than that of the second logical channel as the k logical channels.

34. The terminal device according to any one of claims 31 to 33, wherein The priorities associated with each of the multiple carriers do not overlap.

35. The terminal device according to claim 29, wherein Specifically, the processing unit is configured to: determine the k logical channels from the n logical channels, where the priority of each logical channel among the k logical channels is lower than the priority associated with the first carrier.

36. The terminal device according to claim 29, wherein Specifically, the processing unit is configured to: determine the k logical channels from the n logical channels, where the priority of each logical channel among the k logical channels is higher than the priority associated with the first carrier.

37. The terminal device according to claim 35 or 36, wherein Each of the multiple carriers is only associated with one priority.

38. The terminal device according to claim 29, wherein The priority associated with each of the multiple carriers is a priority configured by a network device.

39. The terminal device according to claim 29, wherein The priority associated with each of the multiple carriers is a pre-configured priority.

40. The terminal device according to claim 29, wherein The processing unit is further configured to: judge whether to allow carrier reselection according to the channel busy rate of a first carrier and a first threshold.

41. The terminal device according to claim 40, wherein The priority of each logical channel is respectively associated with a threshold.

42. The terminal device according to claim 40 or 41, wherein The first threshold is the highest value among the thresholds associated with the priorities of the k logical channels.

43. The terminal device according to claim 40 or 41, wherein The first threshold is the lowest value among the thresholds associated with the priorities of the k logical channels.

44. The terminal device according to claim 40 or 41, characterized in that The first threshold is the highest value among the thresholds associated with the priority associated with the first carrier.

45. The terminal device according to claim 40 or 41, characterized in that The first threshold is the lowest value among the thresholds associated with the priority associated with the first carrier.

46. The terminal device according to claim 40 or 41, characterized in that The first threshold is the highest value among the thresholds associated with the following priorities: The priority associated with the first carrier, and the priorities lower than the priority associated with the first carrier.

47. The terminal device according to claim 40 or 41, characterized in that The first threshold is the lowest value among the thresholds associated with the following priorities: The priority associated with the first carrier, and the priorities lower than the priority associated with the first carrier.

48. The terminal device according to claim 40 or 41, characterized in that The first threshold is the highest value among the thresholds associated with the following priorities: The priority associated with the first carrier, and the priorities higher than the priority associated with the first carrier.

49. The terminal device according to claim 40 or 41, characterized in that The first threshold is the lowest value among the thresholds associated with the following priorities: The priority associated with the first carrier, and the priorities higher than the priority associated with the first carrier.

50. The terminal device according to claim 29, characterized in that The processing unit is specifically configured to: Determine a third logical channel and a fourth logical channel among the n logical channels, where the third logical channel and the fourth logical channel are used for packet data convergence protocol (PDCP) data replication; Select only one logical channel from the third logical channel and the fourth logical channel as the logical channel among the k logical channels.

51. The terminal device according to claim 50, characterized in that The processing unit is specifically configured to: When a first condition is satisfied, select the third logical channel from the third logical channel and the fourth logical channel as the logical channel among the k logical channels.

52. The terminal device according to claim 51, characterized in that The first condition includes: The fourth logical channel has no data to be transmitted.

53. The terminal device according to claim 51, characterized in that The first condition includes: Both the third logical channel and the fourth logical channel have data to be transmitted.

54. The terminal device according to claim 51, characterized in that The first condition includes: The third logical channel is associated with the first carrier.

55. The terminal device according to claim 54, characterized in that The association relationship between the third logical channel and the first carrier is determined by the terminal device, or the association relationship between the third logical channel and the first carrier is configured by the network device.

56. The terminal device according to any one of claims 50 to 55, characterized in that The third logical channel and the fourth logical channel are determined by the terminal device, or the third logical channel and the fourth logical channel are configured by the network device.

57. A terminal device, characterized in that Includes: A memory, a processor, an input interface, and an output interface, where the memory, the processor, the input interface, and the output interface are connected through a bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory and is used to execute the method according to any one of claims 1 to 28.

58. A chip, characterized in that, Includes: A processor, which is used to call and run a computer program from a memory, and the computer program includes: instructions for executing the method according to any one of claims 1 to 28.

59. A storage medium, characterized in that, The storage medium is used to store a computer program, and the computer program includes: instructions for executing the method according to any one of claims 1 to 28.

60. A method for generating data, characterized in that, Applied to a terminal device, the terminal device has m logical channels and at least one carrier, each of the m logical channels is configured with a priority, each of the at least one carriers is associated with the priority of at least one of the m logical channels, and a third logical channel and a fourth logical channel among the m logical channels are used for packet data convergence protocol (PDCP) data replication; The method includes: When the first condition is satisfied, for the first carrier among the at least one carrier, k logical channels are determined from the n logical channels according to the priorities of the n logical channels and the priority associated with the first carrier, and a Medium Access Control (MAC) protocol data unit (PDU) is generated, where n≥k>0. The priority of each of the k logical channels belongs to the priority associated with the first carrier. The n logical channels include the third logical channel and the fourth logical channel. The MAC PDU includes the RLC PDUs of the k logical channels, and the k logical channels are the third logical channel.

61. The method according to claim 60, characterized in that, The first condition includes: There is no data to be transmitted on the fourth logical channel.

62. The method according to claim 60, characterized in that, The first condition includes: There is data to be transmitted on both the third logical channel and the fourth logical channel.

63. The method according to claim 60, characterized in that, The first condition includes: The third logical channel is associated with the first carrier.

64. The method according to claim 63, characterized in that, The association relationship between the third logical channel and the first carrier is determined by the terminal device, or the association relationship between the third logical channel and the first carrier is configured by the network device.

65. The method according to any one of claims 60 to 64, characterized in that, The third logical channel and the fourth logical channel are determined by the terminal device, or the third logical channel and the fourth logical channel are configured by the network device.

66. A terminal device, characterized in that, The terminal device has m logical channels and at least one carrier. Each of the m logical channels is configured with a priority. Each of the at least one carrier is associated with the priority of at least one of the m logical channels. The third logical channel and the fourth logical channel among the m logical channels are used for Packet Data Convergence Protocol (PDCP) data replication. The terminal device includes: A processing unit, configured to, when the first condition is satisfied, for the first carrier among the at least one carrier, determine k logical channels from the n logical channels according to the priorities of the n logical channels and the priority associated with the first carrier, and generate a Medium Access Control (MAC) protocol data unit (PDU), where n≥k>0. The priority of each of the k logical channels belongs to the priority associated with the first carrier. The n logical channels include the third logical channel and the fourth logical channel. The MAC PDU includes the RLC PDUs of the k logical channels, and the k logical channels are the third logical channel.

67. The terminal device according to claim 66, characterized in that, The first condition includes: There is no data to be transmitted on the fourth logical channel.

68. The terminal device according to claim 66, characterized in that, The first condition includes: There is data to be transmitted on both the third logical channel and the fourth logical channel.

69. The terminal device according to claim 66, characterized in that, The first condition includes: The third logical channel is associated with the first carrier.

70. The terminal device according to claim 69, characterized in that, The association relationship between the third logical channel and the first carrier is determined by the terminal device, or the association relationship between the third logical channel and the first carrier is configured by the network device.

71. The terminal device according to any one of claims 66 to 70, characterized in that, The third logical channel and the fourth logical channel are determined by the terminal device, or the third logical channel and the fourth logical channel are configured by the network device.

72. A terminal device, characterized in that, Includes: A memory, a processor, an input interface, and an output interface, wherein the memory, the processor, the input interface, and the output interface are connected through a bus system, the memory is configured to store instructions, and the processor is configured to execute the instructions stored in the memory and is used to execute the method according to any one of claims 60 to 64.

73. A chip, characterized in that, Comprising: A processor, configured to call and run a computer program from a memory, the computer program comprising: instructions for executing the method according to any one of claims 60 to 65.

74. A storage medium, characterized in that, The storage medium is configured to store a computer program, the computer program comprising: instructions for executing the method according to any one of claims 60 to 65.

Citation Information

Patent Citations

  • Method for processing priority

    CN102036390A