Communication method and apparatus

By optimizing the LCP mechanism in terminal devices and determining and managing parameter values ​​to match task-level transmission requirements, the problem of improper resource allocation in task-level transmission of the existing LCP mechanism is solved, thereby improving data transmission performance and communication efficiency.

WO2025242069A1PCT designated stage Publication Date: 2025-11-27HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/095945
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-23
Filing Date
2025-05-20
Publication Date
2025-11-27

Smart Images

  • Figure CN2025095945_27112025_PF_FP_ABST
    Figure CN2025095945_27112025_PF_FP_ABST
Patent Text Reader

Abstract

A communication method and an apparatus. The method comprises: satisfying a first condition, and determining that a value of a first parameter is a first value. The first condition comprises at least one of the following: a first task starting; a first dataset being generated; sending a first message to a network device, wherein the first message comprises information of a request for acknowledgement; acquiring a second message from the network device, wherein the second message comprises information of a positive acknowledgement; or, acquiring a first resource, wherein the first resource is any one of the following: a first resource acquired after the first task starts, a first resource acquired after the first dataset is generated, a first resource acquired after the first message is sent to the network device, or a first resource acquired after the second message from the network device is acquired; and the first parameter is associated with a logical channel priority (LCP). The method can improve data transmission performance.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method and apparatus

[0001] The present application claims priority from the Chinese patent application No. 202410650159.1 filed on May 23, 2024, and entitled "Communication method and apparatus", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the field of communication technology, in particular to a communication method and apparatus. BACKGROUND

[0003] At present, devices can transmit data of various services. For example, in a cloud photographing scenario, after a mobile phone takes a photograph, the mobile phone can send the photograph data to a server, multiple GPUs (graphical processing units) can be deployed on the server to perform image processing to improve the quality of the photograph. After the server processes the photograph data, the server returns the processed photograph data to the mobile phone.

[0004] Services such as cloud photographing can be triggered randomly, and the data volume can be large, for example, 50 megabytes or 100 megabytes. How to ensure the transmission requirements of services and improve the transmission performance is a technical problem to be solved. SUMMARY

[0005] The present application provides a communication method and apparatus for improving data transmission performance.

[0006] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:

[0007] In a first aspect, a communication method is provided. The method can be applied to a terminal device, e.g., a terminal device or a communication module in a terminal device, or a circuit or a chip (e.g., a modem chip, also referred to as a baseband chip, or a system on chip (SoC) chip or a system in package (SIP) chip including a modem core) responsible for communication functions in a terminal device. In an example where the method is applied to a terminal device, in the method, a first condition is met, and a value of a first parameter is determined to be a first value. The first condition includes at least one of the following: a first task starts; a first data set is generated; a first message is sent to a network device, the first message including information requesting an acknowledgement; a second message is obtained from the network device, the second message including information of a positive acknowledgement; or, a first resource is obtained, the first resource being any one of the following: a first resource obtained after the first task starts, a first resource obtained after the first data set is generated, a first resource obtained after the first message is sent to the network device, or a first resource obtained after the second message is obtained from the network device. The first parameter is associated with a logical channel priority (LCP).

[0008] The first condition being met means that the terminal device has a real data transmission requirement. In this application, by triggering the terminal device to determine the value of the first parameter to be the first value when the terminal device has a real data transmission requirement, the first value can be more accurately determined to meet the data transmission requirement of the terminal device, thereby improving the data transmission performance.

[0009] Alternatively, the first condition being met means that the terminal device starts to accumulate the first parameter.

[0010] In a possible design, the determination of the value of the first parameter to be the first value includes initializing the value of the first parameter to the first value.

[0011] In a possible design, the method further includes establishing a first logical channel (LCH) and initializing the value of the first parameter to a second value. The determination of the value of the first parameter to be the first value includes updating the value of the first parameter to the first value.

[0012] In a possible design, the second value is 0.

[0013] In a possible design, the first value is 0, or the first value is greater than 0.

[0014] In a possible design, the first value is 0, and the method further includes:

[0015] accumulate the first parameter based on the second parameter.

[0016] For example, the terminal device initializes the value of the first parameter to 0 and starts accumulating the first parameter when the first condition is met.

[0017] For example, the terminal device initializes the value of the first parameter to 0 when or after the first LCH is established, or initializes the value of the first parameter to a second value when or after the first LCH is established even if the first condition is not met; the terminal device updates the value of the first parameter to 0 and accumulates the first parameter or accumulates the first parameter based on the second parameter when the first condition is met.

[0018] For example, after "the terminal device initializes the value of the first parameter to 0 when or after the first LCH is established, or initializes the value of the first parameter to a second value when or after the first LCH is established even if the first condition is not met"; before "the first condition is met", the terminal device does not accumulate the first parameter; the terminal device starts accumulating the first parameter when the first condition is met.

[0019] In this application, on the one hand, the value of the first parameter is accumulated with the second parameter, which can accumulate as much as possible to meet the transmission requirements of the first task, and on the other hand, the starting time of accumulation is later than the time when the LCH is established, which avoids excessive accumulation.

[0020] In a possible design, the first value is greater than 0.

[0021] In a possible design, the first value is greater than 0, and the method further includes: not accumulating the first parameter after the first condition is met. In this way, the first parameter is not accumulated, which means that the value of the first parameter is fixed, so that the value of the first parameter can be avoided from being excessively accumulated to avoid the LCH corresponding to the first parameter from excessively preoccupying resources.

[0022] In a possible design, the first value is greater than 0. The method further includes: the terminal device initializes the value of the first parameter to the first value greater than 0, and does not accumulate the first parameter based on the second parameter. For example, at T1, the LCH is established, the terminal device initializes the value of the first parameter to the first value (such as the product of the data amount and the coefficient), and the terminal device does not start accumulating the first parameter. For example, the value of the first parameter is fixed to the first value.

[0023] In a possible design, the first value is greater than 0, and the first value is greater than or equal to the data amount of the first task or the first data set.

[0024] Thus, when the first condition is met, the terminal device triggers setting the first parameter to a value greater than or equal to the data volume of the first task, so as to meet the data transmission requirement of the first task as much as possible and improve the data transmission performance of the first task.

[0025] In a possible design, the method further includes: when a second condition is met, updating the value of the first parameter to a third value. The second condition includes at least one of the following: the first task ends; receiving a third message from the network device, where the third message includes information of a negative acknowledgement; and the transmission of the first task or the first data set is completed.

[0026] Thus, the value of the first parameter can be updated at a suitable time, so that the value of the first parameter does not accumulate too much.

[0027] In a possible design, the first data set is associated with the first task.

[0028] In a possible design, the first task or the first data set is associated with the first LCH.

[0029] In a possible design, the first parameter is associated with the first LCH, or the first parameter is associated with the first task or the first data set.

[0030] In a possible design, the first parameter is associated with the first task or the first data set, and the method further includes: determining a third parameter based on at least one first parameter associated with at least one task or at least one data set. The at least one task or the at least one data set is associated with the first LCH; the third parameter is associated with the first LCH, and the third parameter is used for LCP related to the first LCH.

[0031] In a possible design, determining the third parameter based on at least one first parameter associated with at least one task or at least one data set includes: the value of the third parameter is a sum of values of the first parameters associated with the at least one task or the at least one data set.

[0032] In the method, the terminal device maintains the first parameter per task, and the sum of the first parameters of the tasks on the LCH can be used to obtain the value of the accurate third parameter of the LCH, so that the allocated resources in resource allocation are more matched to the transmission requirements of the tasks, and the communication performance is improved.

[0033] In a possible design, the method further includes: obtaining a second resource; allocating a resource in the second resource for the data set A; subtracting a first size from the value of the first parameter; the first size is a size of data in the data set A associated with the first task or the first data set. The data set A is associated with the first LCH.

[0034] In a possible design, the method further includes: subtracting a first total size from the value of the third parameter; the first total size is a size of the data set A.

[0035] In this way, the terminal device can update the third parameter (e.g., Bj) of the LCH based on the first parameter (e.g., Bj) of the task, and can avoid errors in updating the Bj of the LCH. As can be seen, by using the present application, the LCP can be matched with the task-level transmission, and it can be ensured that the resources scheduled by the network device can be allocated to the LCH of the task-level transmission.

[0036] In one or more embodiments of the present application, the first parameter (Bj) can be at the task level or at the LCH level.

[0037] In a second aspect, a communication apparatus is provided, including: a processing module configured to determine a value of a first parameter as a first value when a first condition is met. The first condition includes at least one of: a first task starting; a first data set being generated; sending a first message to a network device, the first message including information requesting confirmation; obtaining a second message from the network device, the second message including information of positive confirmation; or, obtaining a first resource, the first resource being any one of: a first resource obtained after the first task starts, a first resource obtained after the first data set is generated, a first resource obtained after the first message is sent to the network device, or a first resource obtained after the second message from the network device is obtained; the first parameter being associated with a logical channel priority (LCP).

[0038] In a possible design, the determining of the value of the first parameter as the first value includes: initializing the value of the first parameter as the first value.

[0039] In a possible design, the method further includes: establishing a first logical channel (LCH); and initializing the value of the first parameter as a second value. The determining of the value of the first parameter as the first value includes: updating the value of the first parameter as the first value.

[0040] In a possible design, the first value is 0, or the first value is greater than 0.

[0041] In a possible design, the first value is 0, and the method further includes: accumulating the first parameter based on a second parameter.

[0042] In a possible design, the first value is greater than 0, and the method further includes: not accumulating the first parameter after the first condition is met.

[0043] In a possible design, the first value is greater than 0, and the first value is greater than or equal to a data amount of the first task or the first data set.

[0044] In a possible design, the method further includes: updating the value of the first parameter to a third value when a second condition is met. The second condition includes at least one of the following: the first task ends; a third message including negative acknowledgement information is received from the network device; a time delay corresponding to the first task or the first data set is reached; or, transmission of the first task or the first data set is completed.

[0045] In a possible design, the first data set is associated with the first task.

[0046] In a possible design, the first task or the first data set is associated with the first LCH.

[0047] In a possible design, the first parameter is associated with the first LCH, or the first parameter is associated with the first task or the first data set.

[0048] In a possible design, the first parameter is associated with the first task or the first data set, and the method further includes: determining a third parameter based on at least one first parameter associated with at least one task or at least one data set. The at least one task or the at least one data set is associated with the first LCH, the third parameter is associated with the first LCH, and the third parameter is used for LCP related to the first LCH.

[0049] In a possible design, determining the third parameter based on the at least one first parameter associated with the at least one task or the at least one data set includes: a value of the third parameter is a sum of values of the first parameters associated with the at least one task or the at least one data set.

[0050] In a possible design, the method further includes: obtaining a second resource; allocating, for a data set A, a resource in the second resource, and subtracting a first size from the value of the first parameter. The first size is a size of data associated with the first task or the first data set in the data set A. The data set A is associated with the first LCH.

[0051] In a possible design, the method further includes: subtracting a first total size from the value of the third parameter; and the first total size is a size of the data set A.

[0052] A function module for performing the method in any possible design of any aspect of the present application can be implemented by software or hardware, or a combination of software and hardware. For example, the function module includes a processing unit and a communication unit.

[0053] In a third aspect, a communication method is provided. When a LCH is established, a terminal device initializes a value of a first parameter to a first value greater than 0, and does not accumulate the first parameter based on a second parameter. Optionally, the first value can be greater than or equal to a data amount of the first task or the first data set, according to other embodiments herein.

[0054] For example, at T1, a LCH is established, and the terminal device initializes the value of the first parameter to a first value (e.g., a product of a data amount and a coefficient), and the terminal device does not start accumulating the first parameter. For example, the value of the first parameter is fixed to the first value.

[0055] In a fourth aspect, a communication method is provided. When a first condition is met, a terminal device starts accumulating a first parameter.

[0056] In a possible design, the method further includes: when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, or even if the first condition is not met when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, the terminal device initializes the value of the first parameter, or the terminal device initializes the value of the first parameter to a second value or the first value.

[0057] In a possible design, the method further includes: after “when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, or even if the first condition is not met when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, the terminal device initializes the value of the first parameter, or the terminal device initializes the value of the first parameter to a second value or the first value”, before “the first condition is met”, the terminal device does not accumulate the first parameter; and when the first condition is met, the terminal device starts accumulating the first parameter.

[0058] In a fifth aspect, a communication method is provided. A first LCH corresponds to task-level transmission, and a terminal device does not consider whether Bj of the first LCH is greater than 0, and the first LCH can always participate in first-round resource allocation. For example, until the resources are exhausted or the task of the first LCH is completed. For example, by using the method, the LCP can match the task-level transmission, and the resources scheduled by the network device can be allocated to the LCH of the task-level transmission, and the task-level transmission can obtain sufficient resources, thereby guaranteeing the communication quality of the task-level transmission.

[0059] In a sixth aspect, a communication method is provided. A terminal device determines a third parameter based on at least one first parameter associated with at least one task or at least one data set. The implementation can refer to the design of any of the other aspects, and details are not repeated.

[0060] In a seventh aspect, a communication method is provided. When a second condition is met, a terminal device updates a value of a first parameter to a third value. The implementation can refer to the design of any of the other aspects, and details are not repeated.

[0061] In an eighth aspect, a communication method is provided. After a terminal device allocates a resource in a second resource for a data set A, the terminal device subtracts a first size from a value of a first parameter. The implementation can refer to the design of any of the other aspects, and details are not repeated.

[0062] In a ninth aspect, a communication method is provided. If a first LCH corresponds to task-level transmission, when the first LCH is established, a terminal device initializes a value of a first parameter to a first value greater than 0, and does not accumulate the first parameter.

[0063] In a tenth aspect, a communication device is provided. The device includes a processor configured to perform the method of any of the above aspects.

[0064] Optionally, the device further includes the memory or the communication interface.

[0065] The communication interface is coupled to the processor, and the communication interface is configured to input or output information.

[0066] The memory is configured to store a computer program, and the processor is configured to perform the method of any of the above aspects. The processor can be configured to execute the computer program stored in the memory to perform the method of any of the above aspects.

[0067] Alternatively, the processor can be a hardware-implemented circuit, such as an artificial intelligence (AI) processor, to improve the running speed. The present application does not limit the specific implementation of the processor.

[0068] Optionally, the communication device can be a whole device or a module in the device, such as a chip.

[0069] In an eleventh aspect, a computer readable storage medium is provided. The computer readable storage medium includes computer instructions. When the computer instructions are executed on a device, the device performs the method of any of the above aspects.

[0070] In a twelfth aspect, a computer program product is provided. The computer program product, when executed on a device, causes the device to perform the method in any possible implementation of any of the aspects.

[0071] In a thirteenth aspect, a circuitry is provided. The circuitry includes processing circuitry configured to perform the method in any possible implementation of any of the aspects. The processing circuitry can be implemented as one or more processors. For example, the processing circuitry can be implemented as a processor and a memory. For example, the processing circuitry can be implemented as a processor and a transceiver. BRIEF DESCRIPTION OF DRAWINGS

[0072] FIG. 1A, FIG. 1B, FIG. 1C are schematic diagrams of LCPs provided by embodiments of the present application;

[0073] FIG. 2 is a schematic diagram of an architecture of a system provided by embodiments of the present application;

[0074] FIG. 3 is a schematic diagram of a flow of a communication method provided by embodiments of the present application;

[0075] FIG. 4A, FIG. 4B are schematic diagrams of scenarios provided by embodiments of the present application;

[0076] FIG. 5-FIG. 11 are schematic diagrams of scenarios provided by embodiments of the present application;

[0077] FIG. 12, FIG. 13 are schematic diagrams of structures of communication apparatuses provided by embodiments of the present application. DETAILED DESCRIPTION

[0078] The terminology used in the following description merely describes specific embodiments and is not intended to limit the application. As used in the specification and the appended claims, the singular forms "a," "an" and "the" are intended to include both singular and plural forms, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items. Expressions such as "at least one of," when preceding the syllables of a list of elements, modify the entire list of elements and do not change the meaning of the list of elements.

[0079] Reference within the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. The appearances of the phrase "in one embodiment" or "in some embodiments" in various places within specified

[0080] The term "connection" includes direct connection and indirect connection, unless otherwise specified.

[0081] In addition, the numbering of steps in various embodiments described in the present application is only for distinguishing different steps, and does not limit the sequence of the steps. For example, obtaining a resource can occur before obtaining data of a task, or can occur after obtaining data, or can occur simultaneously with obtaining data, without limitation.

[0082] "Sending information" can be, for example, a device sending information to another device, or a logical module in a device sending information to another logical module. For example, "a network device sending information" can be the network device sending information to another device (such as a terminal device), or a logical module 1 in the network device sending information to a logical module 2 in the network device.

[0083] "Receiving information" can be, for example, a device receiving information from another device, or a logical module in a device receiving information from another logical module. For example, "a network device receiving information" can be the network device receiving information from another device (such as a terminal device), or a logical module 1 in the network device receiving information from a logical module 2 in the network device.

[0084] "Sending information to... (e.g. a terminal device)" or related illustrations in the drawings can mean that the destination of the information is the terminal device. It can include directly or indirectly sending information to the terminal device. "Receiving information from... (e.g. a terminal device)" or "receiving information from... (e.g. a terminal device)" or "receiving information sent by... (e.g. a terminal device)" or related illustrations in the drawings can mean that the source of the information is the terminal device. It can include directly or indirectly receiving information from the terminal device. The information can be processed as necessary between the source and the destination of the information, such as format change, etc., but the destination can understand the valid information from the source. Similar expressions in the present application can be understood similarly, and will not be repeated here.

[0085] The terms "system" and "network" in the embodiments of the present application can be used interchangeably.

[0086] First, some technical terms related to the embodiments of the present application are introduced:

[0087] 1. Task-level transmission

[0088] For example, task-level transmission can be understood as the transmission of a task. A task can include one or more data (or messages, or data packets). A task can also be referred to as task-level data or other names, without limitation.

[0089] For example, task-level transmission can be for burst data (or, big data), requiring task-level latency and data volume guarantee (or, requiring task-level latency guarantee).

[0090] For example, in related technologies, data transmission requirements are at the data packet level, for example, each data packet on a data stream has / needs to meet its corresponding latency requirement (or, requirement, or data packet level requirement). For task-level transmission, a task contains (or corresponds to) one or more data packets, and there is no data packet level requirement for the transmission of each data packet, but all data packets related to the entire task need to meet certain latency requirements (or, requirements, or task-level requirements). For example, it needs to be transmitted within 2s.

[0091] For example, task-related data can be referred to as task data.

[0092] For example, task-level transmission can have any one or more of the following characteristics: the triggering of the task is random; the data size of the task depends on the air interface condition, the data generation / data whether to be generated depends on the air interface condition, and whether the data is processed in the cloud (or whether the terminal device sends the task data to the network device) depends on the air interface condition. For example, the air interface condition can include any one or more of the following: whether the network device can promise that it can complete the transmission of the task, how much data volume and / or latency the network device promises, etc.

[0093] It can be understood that "task-level transmission" in the embodiments of the present application is only an exemplary expression, which can be replaced by any possible expression, such as "task transmission", "data collection level transmission", "data collection transmission", "data set transmission", "data burst level transmission", "data burst transmission", "PDU set level transmission", "PDU set transmission", etc., without limitation.

[0094] For example, one task includes one or more (or N) data packets, and there is a task-level transmission requirement for the N data packets, for example, the transmission of the N data packets needs to meet a certain delay requirement, such as the N data packets need to be transmitted within 2 seconds.

[0095] For example, one task includes one or more (or N) data packets, and there is a task-level transmission requirement for the N data packets, for example, the transmission of the N data packets needs to meet a certain delay requirement, such as the N data packets need to be transmitted within 2 seconds.

[0096] For example, one task can correspond to one photo.

[0097] For example, after a photo is taken locally on a mobile phone, the mobile phone locally performs image processing to enhance the quality of the photo. Common image processing techniques include noise reduction, super-resolution, and dark light enhancement. Some of these image processing techniques require a large amount of computing power, and local processing on the mobile phone is limited by the processing capability of the mobile phone, i.e., it is difficult to improve the processing quality beyond a certain level. One solution is to upload the photo to the cloud for processing. It can be understood that a large number of graphical processing units (GPUs) can be deployed on the cloud to perform image processing, which can result in higher processing quality than local processing on the mobile phone. This approach requires the user to take a photo, upload the photo to the cloud from the mobile phone, process the photo on the cloud, return the processed photo to the mobile phone, and then display the processed photo to the user on the mobile phone. For example, this can be referred to as cloud photography. For example, cloud photography is triggered randomly, and a large amount of data is uploaded to the cloud for processing, such as 50 megabytes (or M, or MB, or Mb, or Mbyte, or Mbit, etc.) or 100 megabytes. For example, cloud photography can be an example of task-level transmission. For example, task-level transmission is not only applicable to cloud photography, but also applicable to 3D model transmission in cloud gaming, AI, etc., without limitation.

[0098] For example, for cloud photo, after the user presses the shutter, and before the data is generated, the terminal device (i.e. the above-mentioned mobile phone) can still need to interact with the network device to determine the data amount (or, maximum data amount, or, data amount and latency, or, maximum data amount and latency) that the network device can guarantee, and the terminal device determines the photo format based on this to generate photo data. For example, the interaction between the terminal device and the network device is as follows: step 1, a channel (e.g. a quality of service (Qos) flow, and / or a data radio bearer (DRB)) is established between the terminal device and the network device, for example, the channel corresponds to an attribute of a latency of 3 seconds (s) and a data amount of 30-300 megabytes; step 2, after triggering a task, the terminal device confirms with the network device whether the task can be transmitted, and in the case that the task can be transmitted, confirms the data amount (or, maximum data amount, or, data amount and latency, or, maximum data amount and latency) that the network device can guarantee; step 3, the terminal device transmits data.

[0099] For example, for cloud photo, after the user presses the shutter button of the terminal device, and before the photo data is actually generated, the terminal device still needs to interact with the network device to determine whether the network device can support transmission of the task, and to confirm the data amount (e.g. maximum data amount) and latency that the network device can support for transmission of the task. In some examples, the network device supports transmission of the task by the terminal device, and the terminal device can determine the photo format based on the information of the data amount and latency fed back by the network device, generate photo data, and upload the photo data. In other examples, the network device cannot support transmission of the task by the terminal device, and the terminal device locally processes and does not upload the photo data.

[0100] 2. Introduction of LCP

[0101] For example, the medium access control (MAC) layer or the MAC layer of the terminal device is responsible for multiplexing data / information of one or more logical channels (LCHs) and / or one or more MAC control elements (CEs) into a MAC protocol data unit (PDU), which can be referred to as logical channel prioritization (LCP).

[0102] Optionally, the data / information of one or more LCHs comprises one or more of the following: a MAC service data unit (SDU), a radio link control service data unit (RLC SDU), or a radio link control protocol data unit (RLC PDU).

[0103] In a possible implementation, in the uplink transmission process, the terminal device determines which data of which logical channel to place and how much data of each logical channel to place based on the configured uplink resource of the network device and a rule specified by a protocol / standard.

[0104] In a possible implementation, the LCP is to perform LCH selection according to LCP restrictions, and then perform resource allocation (as described below) for LCHs according to a starvation avoidance mechanism in descending order of LCH priorities.

[0105] For example, the uplink resource allocated by the network device to a terminal device is determined. For example, in the LCP, the terminal device can select LCHs based on the configuration of the network device and / or a rule specified by a protocol. Then, according to the starvation avoidance mechanism, resources are allocated to the selected LCHs in descending order of the priorities of the selected LCHs. For example, the starvation avoidance mechanism can also be referred to as a token bucket mechanism.

[0106] 3. Bj maintenance

[0107] For example, when an LCH is established, the MAC entity initializes Bj of the LCH j to zero. For example, Bj can represent the number of available tokens. The terminal device can allocate resources to the LCH based on the value of Bj.

[0108] Optionally, for each logical channel j, the MAC entity of the terminal device should perform at least one of the following:

[0109] Optionally, before each LCP process, Bj is increased by PBR x T, where T is the time elapsed since the last / previous increment of Bj.

[0110] Optionally, if the value of Bj is greater than the bucket size (which can be represented as the product of the prioritized bit rate (PBR) and the bucket size duration (BSD)), Bj is set to the bucket size.

[0111] For example, the PBR and the BSD are configured by the network device to the terminal device.

[0112] For example, the unit of PBR is bits / s, or bits per second.

[0113] For example, after allocating resources for a LCH, Bj corresponding to the LCH is reduced by the data amount of the data (e.g., the data is a MAC SDU) provided by the LCH in the resource allocation (or, Bj corresponding to the LCH is reduced by the data amount of the data allocated to the resources in the LCH, or Bj corresponding to the LCH is reduced by the size of the resources allocated to the LCH).

[0114] For example, in LCP, the terminal device allocates resources in uplink resources for data on a LCH, and updates the Bj value according to the data size, by reducing the Bj value by a corresponding value. For example, the Bj value of a LCH is 100, and the data size on the LCH is 50. The terminal device performs LCP to allocate resources for the data with a size of 50 on the LCH, and updates the Bj value to 100-50. The terminal device can use the allocated resources to send the data with a size of 50.

[0115] For example, after a LCH is established, the terminal device initializes Bj of the LCH to 0, and starts accumulating the value of Bj of the LCH over time, and the value of Bj has an upper limit, such as the upper limit being PBRx BSD. For example, in LCP, the terminal device allocates resources for uplink transmission for data on the LCH, and reduces the Bj value of the LCH by a corresponding value.

[0116] 4. Selection of LCH

[0117] For example, for a resource, not all LCHs can use the resource. The terminal device needs to select a LCH that can use the resource for uplink transmission.

[0118] When performing a new transmission, the MAC entity shall:

[0119] 1> select, for each uplink (UL) grant, a logical channel that satisfies the following conditions:

[0120] 2> include in the set of allowed subcarrier spacing index values in the allowSCS-List (if configured) associated with the UL grant; and,

[0121] 2> be greater than or equal to the physical uplink shared channel (PUSCH) transmission duration associated with the UL grant; and,

[0122] 2> configuredGrantType1Allowed (if configured) is set to TRUE in case of UL grant is Configured Grant Type 1; and,

[0123] 2> allowedServingCells (if configured) includes cell information associated with UL grant; and,

[0124] 2> allowedCG-List (if configured) includes configured grant index associated with UL grant; and,

[0125] 2> allowedPHY-PriorityIndex (if configured) includes priority index associated with dynamic UL grant; and,

[0126] 2> allowedHARQ-mode (if configured) includes uplink HARQ mode of hybrid automatic repeat request (HARQ) process associated with UL grant.

[0127] 5. Resource allocation

[0128] For example, when performing a new transmission, the MAC entity of the terminal device shall allocate resources to logical channels as follows:

[0129] For LCHs selected according to LCP restriction (and the first Bj corresponding to the LCH is greater than 0), allocate resources in decreasing order of priority (for ease of reference in the following, this process can be referred to as the first round of resource allocation).

[0130] If there are remaining resources, for LCHs selected according to LCP restriction, allocate resources in decreasing order of priority of the LCHs (regardless of the value of Bj) until one of the logical channel or the UL grant is exhausted (for ease of reference in the following, this process can be referred to as the second round of resource allocation).

[0131] Optionally, in the first round of resource allocation, if the PBR of a logical channel is set to "infinity", the MAC entity of the terminal device will allocate resources for all data available for transmission on the logical channel before meeting the PBR of a lower priority logical channel. In other words, the PBR requirement needs to be considered in this round of resource allocation to ensure the fairness of resource allocation between LCHs. Optionally, in this round of resource allocation, the maximum resource allocated to each LCH is the PBR or Bj.

[0132] Optionally, after a LCH is allocated with resources in the first round of resource allocation, Bj corresponding to the LCH is subtracted by the data amount of the data (e.g. the data is a MAC SDU) provided by the LCH in the first round of resource allocation (or, subtracted by the data amount of the data allocated with resources).

[0133] Optionally, in the second round of resource allocation, logical channels with the same priority configured should be treated equally.

[0134] Optionally, after a LCH is allocated with resources in the second round of resource allocation, Bj corresponding to the LCH is subtracted by the data amount of the data (e.g. the data is a MAC SDU) provided by the LCH in the second round of resource allocation (or, subtracted by the data amount of the data allocated with resources).

[0135] For example, the first round of resource allocation can include / replace the first round of resource allocation of LCP.

[0136] For example, the second round of resource allocation can include / replace the second round of resource allocation of LCP.

[0137] For example, as shown in FIG. 1A, a terminal device receives an uplink resource 1 for uplink transmission. The LCHs selected by the terminal device according to LCP restriction and can be transmitted on the uplink resource 1 include LCH1, LCH2 and LCH3. In the first round of resource allocation, the terminal device allocates resources to LCH1 and LCH3 with Bj greater than 0 among the selected LCHs in descending order of LCH priority. As shown in FIG. 1A, the priority of LCH1 is higher than that of LCH3, and the terminal device allocates resources to LCH1 in priority.

[0138] As shown in FIG. 1A, in the first round of resource allocation, the terminal device allocates resources to each LCH according to Bj of each LCH. Among them, the terminal device allocates resources with a size of Bj value of LCH1 to LCH1. Similarly, the terminal device allocates resources with a size of Bj value of LCH3 to LCH3.

[0139] Still as shown in FIG. 1A, after the first round of resource allocation ends, there is remaining resource on the uplink resource 1. For the selected LCH1, LCH2 and LCH3, the terminal device allocates resources to them in descending order of LCH priority. Among the three LCHs, the priority of LCH1 is the highest, and the priority of LCH3 is the lowest, so the terminal device allocates resources with a size of the remaining data of LCH1 to LCH1 in priority. Then, if there is remaining resource, the terminal device allocates resources with a corresponding size to LCH2. In this way, the uplink resource 1 is allocated until it is allocated completely.

[0140] The existing LCP is designed based on PBR, which can cope with small data bursts and is suitable for the transmission of flow services, but cannot be well adapted to task-level transmission. How to guarantee the transmission requirements of services and improve the transmission performance is a technical problem to be solved.

[0141] Problem 1: In the prior art, Bj is initialized to 0 after the LCH is established, and Bj starts to accumulate. Therefore, before the task starts, Bj is likely to have accumulated very large. In addition, considering that the data amount of task-level transmission is large, if Bj has accumulated very large at the beginning or before the task starts, it may cause other low-priority LCHs to be starved (for example, other low-priority LCHs cannot obtain resources or sufficient resources within the time delay of the task, such as within 2 seconds), thereby affecting the transmission of services on other low-priority LCHs.

[0142] For example, starving other low-priority LCHs can include / replaced by: other low-priority LCHs cannot obtain resources or sufficient resources.

[0143] For example, taking a cloud photograph task as an example, a user opens a camera APP on a terminal device, triggering the terminal device to establish LCH1. As shown in FIG. 1B, at time T1, the LCH is established, triggering the Bj corresponding to LCH1 to be initialized to 0, and the value of Bj starts to accumulate. Then, after a long time, when the user presses the photograph button, the cloud photograph task starts, at time T2, the terminal device generates photograph data, and the value of Bj accumulates to a large value. Then, at time T3, the terminal device performs LCP, at this time, the value of Bj has accumulated too large, and the terminal device allocates a large amount of resources for the photograph task on LCH1 according to the large Bj, which may cause the data on other low-priority LCHs to be unable to be allocated to resources or to be allocated to very few resources. For example, LCH1 has a high priority, and the large value of Bj of LCH1 causes LCH1 to occupy (or allocate) too many resources, affecting the transmission of data on other low-priority LCHs. For example, other low-priority LCHs can include / replaced by: LCHs with a priority lower than that of the LCH corresponding to the task-level transmission.

[0144] Problem 2: In some scenarios, the network device configures a small BSD (for example, the network device configures a BSD smaller than the time delay corresponding to the task-level transmission) for LCH1 of the terminal device, causing the value of Bj of LCH1 to be unable to accumulate all tokens or to accumulate all tokens at all times, so that the task on LCH1 cannot obtain resources in time. For example, the network device does not schedule resources for the UE in the first half of the task, but the small DSB causes Bj to not accumulate all tokens before the network device schedules resources for the terminal device, which may cause the network device to allocate resources in the second half of the task but not necessarily to the LCH of the task.

[0145] For example, for a task, its latency is 2 seconds, its required resource is 50M, the network device promises the terminal device: the network device will schedule 50M resource for the terminal device within 2 seconds, but the network device does not schedule resource evenly within 2 seconds. For example, the network device does not schedule resource for the terminal device within the first 1 second, and Bj of LCH1 does not accumulate all tokens within the first 1 second. For example, the BSD configured by the network device for LCH1 is less than 1 second, resulting in that the upper limit (e.g., PBR x BSD) of Bj of LCH1 is small. Within the subsequent 1 second, even though the network device schedules 50M resource, Bj of LCH1 can become less than 0. According to the prior art, in the first round of resource allocation, resource will be preferentially allocated to LCHs with Bj greater than 0, so it is likely to result in that LCH1 obtains little resource or obtains no resource (e.g., LCH1 cannot be allocated 50M resource within 2 seconds), thereby affecting the transmission of the task.

[0146] It can be seen that the current LCP can cope with small data bursts, such as transmission suitable for stream services, but cannot be well applied to task-level transmission.

[0147] Therefore, embodiments of the present application provide a communication method, which can be used for task-level transmission. The method comprises: determining, by a terminal device, a first parameter to be a first value when a first condition is met, or starting, by the terminal device, to accumulate the first parameter. For example, the first condition comprises at least one of the following: a first task starts; a first data set is generated; the terminal device sends a first message to a network device; the terminal device acquires a second message from the network device; or, the terminal device acquires a first resource. For example, the first parameter is associated with LCP and / or resource allocation. It can solve problem 1 and / or problem 2, and can make LCP match task-level transmission and guarantee communication quality.

[0148] For example, when the first condition is met, the terminal device determines the first parameter to be the first value, and the first value is 0; it can solve problem 1 and can avoid other low-priority LCHs from being starved, thereby guaranteeing the transmission of services on other low-priority LCHs.

[0149] For example, being starved can include / replaced by: not being able to acquire resource or sufficient resource.

[0150] For example, when the first condition is met, the terminal device starts to accumulate the first parameter; it can solve problem 1 and can avoid other low-priority LCHs from being starved, thereby guaranteeing the transmission of services on other low-priority LCHs.

[0151] For example, the first condition is met, the terminal device determines that the value of the first parameter is a first value, and the first value is greater than 0; it can solve problem 2, and can make the LCP match the task-level transmission, ensure that the resources scheduled by the network device can be allocated to the LCH of the task-level transmission, and ensure that the task-level transmission can obtain sufficient resources, thereby ensuring the communication quality of the task-level transmission.

[0152] The embodiments of the application also provide a communication method, which can be used for task-level transmission. The method comprises: meeting a second condition, and updating, by a terminal device, the value of a first parameter to a third value. For example, the second condition comprises at least one of the following: the first task ends; the terminal device obtains a third message from a network device; a time delay corresponding to the first task or the first data set is reached (or exceeded); or, the transmission of the first task or the first data set is completed or ends. For example, the first parameter is associated with the LCP and / or resource allocation. It can solve problem 1, and can make the LCP match the task-level transmission, thereby ensuring the communication quality.

[0153] For example, the second condition is met, and the terminal device updates the value of the first parameter to the third value; it can solve problem 1, and can avoid other low-priority LCHs from being starved, thereby ensuring the transmission of services on other low-priority LCHs.

[0154] Problem 3: After solving the problem (for example, problem 1 or problem 2) of a single task existing in a LCH, further consideration needs to be given to how to perform the LCP or how to maintain the Bj of the LCH in a scenario in which multiple tasks (or parallel tasks) exist in a LCH.

[0155] For example, if there is only one task in a LCH, according to the data volume and time delay of the task, a rate, for example, a PBR, can be obtained. Even if the PBR configured by the network device for the terminal device does not match the PBR corresponding to the task, after the task starts, the network device can reconfigure the PBR matching the task for the terminal device through configuration / reconfiguration, or the UE can determine the PBR corresponding to the task (for example, the terminal device does not use the PBR configured by the network device), and the solution of problem 1 or 2 can meet the requirements of the task, but it is not appropriate to set the PBR to a certain value when multiple tasks exist in a LCH, for example, as shown in FIG. 1C, the PBR of the overlapping (or parallel) part of the two or more tasks and the PBR of the non-overlapping (or non-parallel) part are definitely different. Therefore, if there is only one PBR on a LCH, it cannot be applied to the scenario in which multiple tasks on a LCH are parallel.

[0156] Therefore, embodiments of the present application provide a communication method which can be applied to a scenario where multiple tasks exist (or exist simultaneously) on one LCH. The method comprises: determining, by a terminal device, a third parameter based on at least one first parameter associated with at least one task or at least one data set. For example, the first parameter is associated with LCP and / or resource allocation. The first parameter is associated with a first task (or task) or a first data set (or data set). For example, the third parameter is associated with LCP or resource allocation. For example, the third parameter is associated with a first LCH (or LCH). For example, it can solve problem 3 (or, problem 1 and problem 3, or, problem 2 and problem 3), can make the LCP match the task-level transmission, and can guarantee the communication quality.

[0157] Problem 4: If problem 3 is solved, or for a scenario where multiple tasks (or parallel tasks) exist in one LCH, there will be two granularities of Bj: the Bj of the LCH and the Bj of the task. If the task-level transmission corresponding to the LCH is allocated resources, how to perform the Bj reduction-related operation?

[0158] For example, according to the prior art, one LCH is allocated resources, the terminal device will subtract the size of the data allocated to the resources on the LCH (or the size of the resources allocated to the LCH) from the Bj of the LCH, without considering which tasks are transmitted, so in the prior art, after one LCH is allocated resources, the Bj reduction-related operation of the task is not performed. If a task ends, the Bj of the task becomes 0, and the Bj of the LCH needs to subtract the Bj of the task from the Bj of the LCH. But after the resources are allocated, the Bj reduction-related operation of the task is not performed, and it is not known how much the Bj of the task is, which will result in inaccurate Bj of the LCH. Or, but after one LCH is allocated resources, the Bj reduction-related operation of the task is not performed, and if the Bj of the LCH is still determined to be equal to the sum of the Bj of the task under this condition, it will result in inaccurate Bj of the LCH (for example, the Bj of the LCH will be the same as before the resources are allocated). It can result in the Bj of the LCH always increasing (or always being greater than 0) and not decreasing, thereby starving other low-priority LCHs (for example, during the time when the task exists on the LCH, other low-priority LCHs cannot obtain resources or sufficient resources), thereby affecting the transmission of services on other low-priority LCHs.

[0159] Therefore, the embodiment of the present application provides a communication method, which can be applied to the scenario that multiple tasks exist on one LCH (or exist simultaneously). The method comprises: a terminal device subtracts a first size from a value of a first parameter. For example, the first parameter is associated with LCP and / or resource allocation. The first parameter is associated with a first task (or task) or a first data set (or data set). For example, the first size is: the size of the data associated with the first task or the first data set in the data set A, or the size of the data allocated to the resource in the first task or the first data set. Or, for example, the first size is: the size of the resource associated with the data associated with the first task or the first data set in the data set A, or the size of the resource allocated to the first task or the first data set. For example, it can solve problem 4, so that the LCP can match the task-level transmission, and the communication quality can be guaranteed. Bj of the task and / or Bj of the LCH can be correct. Other low-priority LCHs can be prevented from being starved, so as to guarantee the transmission of services on other low-priority LCHs.

[0160] FIG. 2 shows a possible, non-limiting system diagram. As shown in FIG. 2, the communication system 10 includes a radio access network (RAN) 100 and a core network (CN) 200. The RAN 100 includes at least one RAN node (e.g., 110a and 110b in FIG. 2, collectively referred to as 110) and at least one terminal device (e.g., 120a-120j in FIG. 2, collectively referred to as 120). Other RAN nodes, such as a wireless relay device or a wireless backhaul device (not shown in FIG. 2), etc., can also be included in the RAN 100. The terminal device 120 is connected to the RAN node 110 in a wireless manner. The RAN node 110 is connected to the core network 200 in a wireless or wired manner. The core network device in the core network 200 and the RAN node 110 in the RAN 100 can be different physical devices respectively, or can be the same physical device integrated with the logical functions of the core network and the logical functions of the radio access network.

[0161] The communication system 10 can be a 3rd generation partnership project (3GPP) related cellular system, such as a 4G, 5G mobile communication system, or a future-oriented evolved system (such as a 6G, 7G mobile communication system). The communication system 10 can also be an open radio access network (O-RAN or ORAN), a cloud radio access network (CRAN), or a wireless fidelity (WiFi) system. The communication system 10 can also be a communication system in which two or more of the above systems are fused.

[0162] The RAN node 110, which can also be referred to as an access network device, a RAN entity, or an access node, etc., forms part of the communication system, and is configured to facilitate wireless access to the communication system for terminal devices. The RAN nodes 110 in the communication system 10 can be of the same type or different types. In some scenarios, the roles of the RAN node 110 and the terminal device 120 are relative, e.g., the network element 120i in Figure 2 can be a helicopter or a drone, which can be configured to be a mobile base station, for those terminal devices 120j accessing to the RAN 100 through the network element 120i, the network element 120i is a base station; but for the base station 110a, the network element 120i is a terminal device. The RAN nodes 110 and the terminal devices 120 are sometimes referred to as communication apparatuses, e.g., the network elements 110a and 110b in Figure 2 can be understood as communication apparatuses with base station functionalities, and the network elements 120a-120j can be understood as communication apparatuses with terminal device functionalities.

[0163] In a possible scenario, the RAN node can be a base station, an evolved NodeB (eNodeB), an access point (AP), a transmission reception point (TRP), a next generation NodeB (gNB), a next generation base station in a 6th generation (6G) mobile communication system, a base station in a future mobile communication system, or an access node in a WiFi system, etc. The RAN node can be a macro base station (e.g., 110a in Figure 2), a micro base station or an indoor station (e.g., 110b in Figure 2), a relay node or a donor node, or a wireless controller in a CRAN scenario. Optionally, the RAN node can also be a server, a wearable device, a vehicle or a vehicle-mounted device, etc. For example, the access network device in a vehicle to everything (V2X) technology can be a road side unit (RSU). All or part of the functions of the RAN node in this application can also be implemented by software functions running on hardware, or by virtualized functions instantiated on a platform (e.g., a cloud platform). The RAN node can also be provided with a communication module, circuit or chip for performing corresponding communication functions, and program instructions for performing corresponding communication functions. The RAN node in this application can also be a logical node, a logical module or software that can implement all or part of the functions of the RAN node.

[0164] In another possible scenario, a terminal device is assisted by multiple RAN nodes to implement wireless access, and different RAN nodes respectively implement part of functions of a base station. For example, a RAN node can be a central unit (CU), a distributed unit (DU), a CU-control plane (CP), a CU-user plane (UP), or a radio unit (RU), etc. The CU and the DU can be separately arranged, or can be included in the same network element, for example, in a baseband unit (BBU). The RU can be included in a radio frequency device or a radio frequency unit, for example, included in a remote radio unit (RRU), an active antenna processing unit (AAU), or a remote radio head (RRH).

[0165] In different systems, the CU (or CU-CP and CU-UP), DU or RU can also have different names, but those skilled in the art can understand their meanings. For example, in an ORAN system, the CU can also be referred to as an O-CU (open CU), the DU can also be referred to as an O-DU, the CU-CP can also be referred to as an O-CU-CP, the CU-UP can also be referred to as an O-CU-UP, and the RU can also be referred to as an O-RU. For the convenience of description, the CU, CU-CP, CU-UP, DU and RU are taken as examples for description in this application. Any one of the CU (or CU-CP, CU-UP), DU and RU in this application can be implemented by a software module, a hardware module, or a combination of a software module and a hardware module.

[0166] A terminal device (terminal) can be a device or module with corresponding communication functions and can access the above-mentioned communication system. The terminal device can also be referred to as a terminal apparatus, user equipment (UE), mobile station, mobile terminal device, etc. The terminal device can be widely used in various scenarios, such as device-to-device (D2D), vehicle-to-everything (V2X) communication, machine-type communication (MTC), internet of things (IOT), virtual reality, augmented reality, industrial control, autonomous driving, remote medical treatment, smart grid, smart furniture, smart office, smart wear, smart transportation, smart city, etc. The terminal device can be a mobile phone, tablet computer, computer with wireless transceiver function, wearable device, vehicle, unmanned aerial vehicle, helicopter, airplane, ship, robot, mechanical arm, smart home device, transport vehicle with wireless communication function, communication module, etc. Embodiments of the present application do not limit the device form of the terminal device. The terminal device is usually provided with a communication module, circuit or chip for executing corresponding communication functions. The terminal device is also configured with program instructions for executing corresponding communication functions.

[0167] For example, the network device can include / be: a radio access network, and / or, a core network.

[0168] The communication method and device of the embodiments of the present application will be further introduced below in combination with the drawings. It can be understood that the network device and the terminal device are taken as examples of the execution subject of the interaction in the embodiments of the present application, but the embodiments of the present application do not limit the execution subject of the interaction, which can also be a device other than the terminal device and / or the network device, without limitation. For example, the method executed by the network device in the embodiments of the present application can also be implemented by other devices, or can be implemented by a module (such as a circuit, chip or chip system, etc.) in the network device or other devices, or a logic node, logic module or software capable of implementing all or part of the function of the network device; the method executed by the terminal device can also be implemented by other devices, or can be implemented by a communication module in the terminal device or a circuit or chip (such as a modem chip (also known as a baseband chip), or a SoC chip containing a modem core, or a SIP chip) responsible for communication functions in the terminal device.

[0169] FIG. 3 shows an example flow of a communication method, which can include:

[0170] S101, when the first condition is met, the terminal device determines that the value of the first parameter is the first value, or the terminal device starts to accumulate the first parameter.

[0171] For example, the first condition comprises at least one of the following:

[0172] The first task starts;

[0173] The first data set is generated;

[0174] The terminal device sends the first message to the network device;

[0175] The terminal device acquires the second message from the network device; or,

[0176] The terminal device acquires the first resource.

[0177] Optionally, the first task is associated with the first data set. For example, one task can comprise / associate one data set.

[0178] For example, the first data set comprises one or more (or M) data. For example, M is greater than or equal to 1. For example, M is an integer. For example, the first data set is / comprises the data of the first task. For example, the data of the first task is / comprises the first data set (or the data of the first data set). For example, the data of the first task can comprise / replace the data associated with the first task. For example, the data of the first data set can comprise / replace the data included in the first data set.

[0179] For example, one task can comprise / associate one or more data.

[0180] For example, association can comprise / replace correspondence. For example, association can comprise / replace correspondence. For example, associated can comprise / replace corresponding.

[0181] For example, in the embodiments of the present application, the task can comprise / replace burst, data burst, protocol data unit set (PDU set), data set, etc., without limitation.

[0182] Optionally, how the terminal device determines different tasks or data sets is not limited by embodiments of the present application. For example, the terminal device can distinguish different tasks or data sets by information indicating the tasks or data sets. For example, the information indicating the tasks or data sets can be included in a header of an upper layer. For example, the upper layer can include any one or more of the following: an upper layer of the terminal device, a NAS layer of the terminal device, or an APP layer of the terminal device. For example, the header of the upper layer can include a general packet radio service tunneling protocol-user plane (GTP-U) header. For example, the information indicating the tasks or data sets can be an end indication (e.g., end of data burst) or other indication corresponding to the tasks or data sets. Alternatively, for example, the terminal device can also distinguish different tasks or data sets according to the time of receiving data or by a related timer. For example, if the terminal device does not receive new data after a period of time, it can be determined that a task or data set ends. For example, data received in time period #1 is determined to be data of task #1 or data set #1, and data received in time period #2 is determined to be data of task #2 or data set #2.

[0183] Optionally, the first task (or data of the first task) is associated with the first LCH.

[0184] For example, the first task (or data of the first task) being associated with the first LCH can include / replace / be understood as the first task (or data of the first task) being mapped to the first LCH.

[0185] Optionally, the first data set (or data of the first data set) is associated with the first LCH.

[0186] For example, the first data set (or data of the first data set) being associated with the first LCH can include / replace / be understood as the first data set (or data of the first data set) being mapped to the first LCH.

[0187] Optionally, the first task starting can include / replace at least one of the following: the first data set being generated; the terminal device sending a first message to the network device; the terminal device obtaining a second message from the network device; or, the terminal device obtaining a first resource.

[0188] For example, the first data set being generated can include / replace: part or all of the data in the first data set being generated (or being generated by an APP layer of the terminal device), or the first data set being obtained, or the first data set arriving.

[0189] For example, obtaining the first data set can comprise / replaced by: obtaining part or all of the data in the first data set, or the terminal device or the access stratum (AS) layer of the terminal device obtains the first data set (or part or all of the data in the first data set).

[0190] For example, the arrival of the first data set can comprise / replaced by: the arrival of part or all of the data in the first data set, or the arrival of the first data set (or part or all of the data in the first data set) at the terminal device or the AS layer of the terminal device.

[0191] For example, the AS layer of the terminal device can comprise / replaced by: the service data adaptation protocol (SDAP) layer of the terminal device, or the packet data convergence protocol (PDCP) layer of the terminal device, or the RLC layer of the terminal device.

[0192] For example, obtaining can comprise / replaced by: receiving.

[0193] For example, the first message comprises information requesting confirmation.

[0194] Optionally, the first message is associated with the first task or the first data set.

[0195] For example, the first message comprises information of the first task or the first data set.

[0196] Optionally, the first message can comprise information of (or related to) at least one of the following of the first task or the first data set: data volume, data volume range, time delay, time delay range, or generation (or will be generated) time.

[0197] For example, the time delay can comprise / replaced by: time length.

[0198] For example, the generation (or will be generated) time can comprise / replaced by: the time of the expected generation (or will be generated), how long after the generation (or will be generated), or how long after the expected generation (or will be generated).

[0199] For example, the first information can comprise information of the first data volume related to the first task or the first data set, information of the first time delay related to the first task or the first data set, information of how long after the generation of the first task or the first data set.

[0200] For example, the message requesting the confirmation, or the first message, can comprise / replace / indicate that the terminal device requests the network device to confirm whether the network device can complete the transmission of the first task or the first data set. For example, the first message can comprise / replace that the terminal device requests the network device to confirm whether the terminal device is allowed (or, guaranteed) to transmit the first amount of data within the first time delay, or replace that the terminal device requests the network device to allocate resources for the terminal device, and the allocated resources are used for the terminal device to transmit the first amount of data within the first time delay. For example, the completion can comprise / replace that the transmission can be completed.

[0201] Optionally, the first message can comprise information of at least one of the following: the first amount of data, a range of the first amount of data, the first time delay, a range of the first time delay, or the first generation (or, to be generated) time.

[0202] For example, the message requesting the confirmation, or the first message, can comprise / replace that the terminal device requests the network device to confirm whether the network device can complete the transmission of at least one of the following: the first amount of data, a range of the first amount of data, the first time delay, a range of the first time delay, or the first generation (or, to be generated) time.

[0203] For example, the second message comprises information of the positive confirmation.

[0204] Optionally, the second message is associated with the first task or the first data set.

[0205] For example, the second message comprises information of the first task or the first data set.

[0206] Optionally, the second message can comprise information of at least one of the following: an amount of data, a range of the amount of data, a time delay, or a generation (or, to be generated) time, of the first task or the first data set (or, related to the first task or the first data set).

[0207] For example, the second message can comprise information of a second amount of data related to the first task or the first data set, information of a second time delay related to the first task or the first data set, and information of how long the first task or the first data set will be generated.

[0208] For example, the message of the positive confirmation, or the second message, can comprise / replace / indicate that the network device confirms / commits that the network device can complete the transmission of the first task or the first data set, or the network device can complete the transmission of the first task or the first data set.

[0209] Optionally, the second message can comprise information of at least one of the following: a second amount of data, a range of the second amount of data, a second time delay, a range of the second time delay, or a second generation (or, to be generated) time.

[0210] For example, the message of positive acknowledgement, or, the second message, can comprise / replace / indicate: the network device confirms that the network device can complete the transmission of the data related to at least one of the second data amount, the second data amount range, the second time delay, the second generation (or, will be generated) time; or, the network device can complete the transmission of the data related to at least one of the second data amount, the second data amount range, the second time delay, the second generation (or, will be generated) time; or, the network device confirms that the network device can complete the transmission of the data related to at least one of the first data amount, the first data amount range, the first time delay, the first generation (or, will be generated) time; or, the network device can complete the transmission of the data related to at least one of the first data amount, the first data amount range, the first time delay, the first generation (or, will be generated) time.

[0211] For example, the terminal device sends the first message to the network device, and the first message can be used to request the network device to confirm whether to allow the terminal device to send the first data amount of data within the first time period, and can also be used to request the network device to allocate resources for the terminal device, and the allocated resources are used for the terminal device to transmit the first data amount of data within the first time period. Optionally, the first message can indicate at least one of the first time period or the first data amount. For example, the first time period can be a time period with a time length of the first time delay from the first generation (or, will be generated) time. For example, if the network device can allocate resources for the terminal device to transmit the first data amount of data within the first time period, the network device can send the second message to the terminal device. The terminal device knows that the network device can support the terminal device to transmit the first data amount of data within the first time period according to the second message. Optionally, in this case, the terminal device can generate the first task or the first data set (or, the first data amount of data or less than the first data amount of data). For example, if the network device can allocate resources for the terminal device to transmit the second data amount of data within the first time period, the network device can send the second message to the terminal device. The terminal device knows that the network device can support the terminal device to transmit the second data amount of data within the first time period according to the second message. Optionally, in this case, the terminal device can generate the first task or the first data set (or, the second data amount of data or less than the second data amount of data).

[0212] Optionally, if the network device cannot allocate resources for the terminal device to transmit the first data amount of data within the first time period (or, if the network device cannot complete the transmission of the first task or the first data set), the network device can send the third message to the terminal device, and the third message comprises the information of negative acknowledgement. Optionally, the terminal device no longer generates and / or transmits the first task or the first data set (or, the first data amount of data or less than the first data amount of data) according to the information of negative acknowledgement.

[0213] For example, the first resource is a new transmission resource (or, a resource for new transmission). For example, the first resource is an UL resource. For example, the first resource is an UL new transmission resource.

[0214] For example, the first resource is any one of the following: a first resource obtained at or after the start of the first task, a first resource obtained at or after the generation of the first data set, a first resource obtained at or after the sending of the first message by the terminal device to the network device, or, a first resource obtained at or after the obtaining of the second message by the terminal device from the network device.

[0215] For example, the first resource is any one of the following: a first resource obtained at or after the start of the first task, a first resource obtained at or after the generation of the first data set, a first resource obtained at or after the sending of the first message by the terminal device to the network device, or, a first resource obtained at or after the obtaining of the second message by the terminal device from the network device.

[0216] For example, the first resource can include / replace: a first new transmission resource, a first UL new transmission resource.

[0217] For example, the obtaining of the first resource by the terminal device can be the obtaining of an uplink resource configured (or scheduled) by the network device by the terminal device. For example, the configured (or scheduled) uplink resource includes but is not limited to at least one of the following: a time domain resource, a frequency domain resource, a code domain resource, a space domain resource.

[0218] For example, the first parameter is associated with LCP or resource allocation. For example, the first parameter can be used in the LCP or resource allocation process. Optionally, the first parameter can be Bj used for LCP or resource allocation.

[0219] One possible implementation (implementation A), the first parameter is associated with the first LCH (or LCH).

[0220] For example, the terminal device maintains one first parameter for one LCH, or one LCH is associated with one first parameter. For example, the terminal device maintains one first parameter for each LCH, or each LCH is associated with one first parameter, or the terminal device maintains the first parameter based on each logical channel (per LCH).

[0221] For example, the first parameter is: Bj, or Bj of the first LCH, or Bj associated with the first LCH.

[0222] For example, the first parameters associated with different LCHs are independent or different.

[0223] Another possible implementation (implementation B), the first parameter is associated with the first task (or task) or the first data set (or data set).

[0224] For example, the terminal device maintains one first parameter for one task or one data set, or one task or one data set is associated with one first parameter. For example, the terminal device maintains one first parameter for each task or each data set, or each task or each data set is associated with one first parameter, or the terminal device maintains the first parameter on a per-task or per-data set basis. For example, the terminal device maintains multiple (e.g., N) first parameters for multiple (e.g., N) tasks or multiple (e.g., N) data sets on (or associated with) one LCH.

[0225] For example, the first parameter is Bj, or Bj of the first task or the first data set, or Bj associated with the first task or the first data set.

[0226] For example, the first parameters associated with different tasks or data sets are independent or different.

[0227] Optionally, the values of the first parameters can be different or the same at different times or in different steps, which is not limited. Alternatively, optionally, the values of the first parameters can be changed at different times or in different steps.

[0228] It should be noted that the first parameter and / or Bj can be replaced by other names, which is not limited.

[0229] Optionally, the determination of the value of the first parameter as the first value can be implemented by implementation mode A or implementation mode B.

[0230] For example, the determination of the value of the first parameter as the first value can include / replaced by: determining the first parameter as the first value, or determining / setting the value of the first parameter as the first value.

[0231] For example, the value of the first parameter can include / replaced by: the first parameter.

[0232] In implementation mode A, the determination of the value of the first parameter as the first value can include / replaced by: initializing the value of the first parameter as the first value.

[0233] For example, initializing the value of the first parameter as the first value can include / replaced by: initializing the first parameter as the first value.

[0234] Optionally, under implementation mode A, the embodiments of the application can further include: the terminal device does not initialize the value of the first parameter when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, or the terminal device does not initialize the value of the first parameter when the terminal device establishes the first LCH or after the terminal device establishes the first LCH if the first condition is not met.

[0235] Optionally, the terminal device initializes the value of the first parameter or initializes the value of the first parameter to the first value when the terminal device establishes the first LCH or after the terminal device establishes the first LCH until the first condition is met.

[0236] For example, the initialization of the value of the first parameter can include or be replaced by: initialization of the first parameter.

[0237] For example, the initialization of the value of the first parameter can include or be replaced by: initialization of the first parameter.

[0238] In the implementation mode B, the determination of the value of the first parameter as the first value can include or be replaced by: updating the value of the first parameter to the first value.

[0239] For example, the updating of the value of the first parameter to the first value can include or be replaced by: updating the first parameter to the first value.

[0240] Optionally, in the implementation mode B, the embodiments of the present application can further include: the terminal device initializes the value of the first parameter or initializes the value of the first parameter to the second value when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, or even if the first condition is not met when the terminal device establishes the first LCH or after the terminal device establishes the first LCH.

[0241] Optionally, in the implementation mode B, the embodiments of the present application can further include: after the "terminal device initializes the value of the first parameter or initializes the value of the first parameter to the second value when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, or even if the first condition is not met when the terminal device establishes the first LCH or after the terminal device establishes the first LCH", the terminal device accumulates (or does not accumulate) the first parameter or accumulates the first parameter based on the fourth parameter.

[0242] Optionally, after the "terminal device initializes the value of the first parameter or initializes the value of the first parameter to the second value when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, or even if the first condition is not met when the terminal device establishes the first LCH or after the terminal device establishes the first LCH", and before the first condition is met or before the "terminal device updates the value of the first parameter to the first value", the terminal device accumulates (or does not accumulate) the first parameter or accumulates the first parameter based on the fourth parameter.

[0243] For example, the accumulation can include or be replaced by any one or more of the following: start accumulating.

[0244] Optionally, the fourth parameter can be PBR, or PBR configured by the network device, or other, without limitation.

[0245] Optionally, the fourth parameter can be configured by the network device or other, without limitation.

[0246] Optionally, the terminal device initializes the value of the first parameter after establishing the first LCH, or initializes the value of the first parameter to the second value, and updates the value of the first parameter to the first value when the first condition is met.

[0247] For example, initializing the value of the first parameter to the second value can include / replaced by: initializing the first parameter to the second value.

[0248] Optionally, the second value can be 0 or other values, which are not limited.

[0249] Optionally, the first value can be implemented by implementation mode 1 or implementation mode 2.

[0250] Implementation mode 1: the first value is 0.

[0251] Optionally, if there is no large amount of service (e.g., service other than task-level transmission) on the LCH (e.g., LCH other than the first LCH, or all LCHs, or all LCHs other than the first LCH), or if the network device configures the terminal device to perform implementation mode 1, the terminal device performs implementation mode 1.

[0252] Optionally, under implementation mode 1, the embodiments of the application can further include: the terminal device accumulates the first parameter, or the terminal device accumulates the first parameter based on the second parameter.

[0253] For example, accumulating the first parameter can include / replaced by: accumulating the first parameter over time.

[0254] For example, after "the terminal device determines that the value of the first parameter is the first value when the first condition is met", the terminal device accumulates the first parameter, or the terminal device accumulates the first parameter based on the second parameter.

[0255] Optionally, the second parameter can be PBR, or PBR determined by the terminal device, or other, which is not limited.

[0256] Optionally, the second parameter can be determined by the terminal device or other, which is not limited. For example, the second parameter can be determined by the terminal device based on at least one of the data amount of the first task or the data amount of the first data set, the time length of the first task or the time length of the first data set, and the first coefficient.

[0257] For example, the data amount of the first task can include / replaced by: the data amount related to the first task.

[0258] For example, the data amount of the first data set can include / replaced by: the data amount related to the first data set.

[0259] For example, the time length of the first task or the time length of the first data set can include / replace: a time length related to the first task or a time length related to the first data set, or a time delay of the first task or a time delay of the first data set, or a time delay related to the first task or the first data set.

[0260] For example, the first coefficient is greater than or equal to 1. For example, the first coefficient can be configured by the network device to the terminal device, can be determined by the terminal device, can be specified by a protocol / standard, or the like, and is not limited. Optionally, the first coefficient can be determined according to the size of the packet header of each protocol layer, and is not limited.

[0261] For example, the data amount of the first task or the data amount of the first data set can be configured by the network device to the terminal device, can be determined by the terminal device, can be specified by a protocol / standard, or the like, and is not limited. For example, the data amount of the first task or the data amount of the first data set can be / replace: a first data amount, or a second data amount.

[0262] For example, the time length of the first task or the time length of the first data set can be configured by the network device to the terminal device, can be determined by the terminal device, can be specified by a protocol / standard, or the like, and is not limited. For example, the time length of the first task or the time length of the first data set can be / replace: a first time delay, or a second time delay.

[0263] For example, the second parameter is equal to the data amount of the first task (or the data amount of the first data set) ÷ the time length of the first task (or the time length of the first data set).

[0264] For example, the second parameter is equal to the data amount of the first task (or the data amount of the first data set) × the first coefficient ÷ the time length of the first task (or the time length of the first data set).

[0265] For example, the second parameter and the fourth parameter can be the same or different, and embodiments of the present application are not limited.

[0266] For example, when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, or when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, if the first condition is not met, the terminal device does not initialize the value of the first parameter; if the first condition is met, the terminal device initializes the value of the first parameter to 0, and starts accumulating the first parameter or starts accumulating the first parameter based on the second parameter.

[0267] For example, when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, or when the terminal device establishes the first LCH or after the terminal device establishes the first LCH, even if the first condition is not met, the terminal device initializes the value of the first parameter, or the terminal device initializes the value of the first parameter to the second value; if the first condition is met, the terminal device updates the value of the first parameter to 0, and accumulates the first parameter or accumulates the first parameter based on the second parameter.

[0268] Optionally, after the terminal device initializes the value of the first parameter, or the terminal device initializes the value of the first parameter to the second value, or before the terminal device updates the value of the first parameter to the first value, or before the terminal device updates the value of the first parameter to 0, the terminal device accumulates (or does not accumulate) the first parameter, or the terminal device accumulates the first parameter based on the fourth parameter; and when the first condition is met, the terminal device updates the value of the first parameter to 0, and accumulates the first parameter or accumulates the first parameter based on the second parameter.

[0269] For example, taking the first parameter Bj and the second parameter PBR as an example, as shown in FIG. 6, at T1, when the LCH is established, Bj is initialized to 0, and Bj starts to accumulate over time. At T2, the photo task (an example of the first task) starts, Bj is updated to 0, and Bj starts to accumulate based on PBR.

[0270] For example, the scheme of the embodiments of the present application, on the one hand, the value of the first parameter accumulates over time, and the value of the first parameter can meet the transmission requirement of the first task as much as possible, and on the other hand, the starting point of accumulating the first parameter is later than the time when the LCH is established, which avoids excessive accumulation of the first parameter, thereby avoiding the impact on other low-priority LCHs.

[0271] Optionally, for “when the first condition is met, the terminal device updates the value of the first parameter to 0, and accumulates the first parameter or accumulates the first parameter based on the second parameter”, the “accumulating the first parameter or accumulating the first parameter based on the second parameter” is not limited / controlled by the BSD, and the first parameter can be accumulated until the end of the time delay of the first task or the first data set, or the end of the first task, or the value of the first parameter (or the amount of the first parameter accumulated) is greater than or equal to the data amount of the first task (or the data amount of the first data set) × the first coefficient, or the value of the first parameter (or the amount of the first parameter accumulated) is greater than or equal to the data amount of the first task (or the data amount of the first data set).

[0272] Optionally, if the LCH corresponds to task-level transmission, the accumulation of Bj of the LCH or Bj of the task on the LCH over time is not limited / controlled by the BSD, for example, Bj can be accumulated all the time, or Bj can be accumulated to the data amount of the task (or the data amount of the task × the coefficient), or Bj can be accumulated until the end of the time delay of the task or the end of the task.

[0273] For example, in one or more embodiments of the present application, the role of Bj in resource allocation can be similar to the prior art, or different from the prior art, which is not limited. For example, the first round of resource allocation only considers LCHs with Bj greater than 0, and the resources allocated to LCHs in the first round of resource allocation are determined based on Bj.

[0274] For example, taking the first condition as the start of the first task as an example, for example, referring to FIG. 4A, the photo task starts, Bj is initialized to 0, and starts to accumulate over time. For example, accumulation over time can be understood as: accumulating Bj over time according to PBR.

[0275] For example, accumulation over time can be updating Bj before or after each LCP, or can be periodic updating, such as updating Bj every time slot / subframe / frame / symbol / millisecond / 10 milliseconds, which is not limited.

[0276] For example, the scheme of the embodiments of the present application, since Bj is accumulated from the time / after the terminal device has a real data transmission demand, the accumulated value of Bj can better meet the data transmission demand, so as to improve the data transmission performance, and can also avoid the influence on other low-priority LCHs.

[0277] Implementation manner 2: the first value is greater than 0.

[0278] Optionally, if there is a large amount of service (for example, service that is not task-level transmission) on at least one LCH (for example, at least one LCH other than the first LCH), or if the network device configures the terminal device to perform implementation manner 2, the terminal device performs implementation manner 2.

[0279] Optionally, in implementation manner 2, the first value is associated with the data amount of the first task or the data amount of the first data set; or the first value is determined according to at least one of the data amount of the first task, the data amount of the first data set, and the first coefficient. Optionally, the first value is greater than or equal to the data amount of the first task or the data amount of the first data set. For example, the first value is greater than or equal to the data amount of the first task (or the data amount of the first data set) x the first coefficient.

[0280] Optionally, under implementation manner 2, the embodiments of the present application can further include: the terminal device does not accumulate the first parameter, or the terminal device does not accumulate the first parameter based on the second parameter.

[0281] For example, after “satisfying the first condition, the terminal device determines that the value of the first parameter is the first value”, the terminal device does not accumulate the first parameter, or the terminal device does not accumulate the first parameter based on the second parameter.

[0282] For example, the terminal device initializes the value of the first parameter when or after the first LCH is established, or initializes the value of the first parameter even if the first condition is not met when or after the first LCH is established, or initializes the value of the first parameter to a second value, and updates the value of the first parameter to a first value and does not accumulate the first parameter when the first condition is met.

[0283] For example, as shown in FIG. 5, at T2, the photographing task starts, triggering the terminal device to initialize the value of Bj to the data volume of the first task (e.g., 50 megabytes), and Bj is not accumulated over time. For another example, assuming that the first coefficient is 1.2, the photographing task starts, triggering the terminal device to initialize the value of Bj to 50 megabytes*1.2.

[0284] For example, the terminal device initializes the value of the first parameter when or after the first LCH is established, or initializes the value of the first parameter even if the first condition is not met when or after the first LCH is established, or initializes the value of the first parameter to a second value, and updates the value of the first parameter to a first value and does not accumulate the first parameter when the first condition is met.

[0285] For example, taking Bj as the first parameter and PBR as the second parameter, as shown in FIG. 7, at T1, the LCH is established, Bj is initialized to 0, and Bj starts to accumulate over time. At T2, the photographing task starts, Bj is updated to X, X is greater than the task volume of the photographing task, and the value of Bj is no longer accumulated based on PBR. For example, X is the sum of the data volume of the photographing task and the packet header size.

[0286] Optionally, the terminal device starts to accumulate the first parameter can include / replaced by: the terminal device starts to accumulate the first parameter based on the second parameter.

[0287] Optionally, if there is no service (e.g., a service that is not a task-level transmission) with a large data volume on the LCH (e.g., an LCH other than the first LCH, or all LCHs, or all LCHs other than the first LCH), or if the network device configures the terminal device to implement the “terminal device starts to accumulate the first parameter when the first condition is met” implementation 1, the terminal device determines that the value of the first parameter is the first value when the first condition is met, or the terminal device starts to accumulate the first parameter.

[0288] Optionally, under “terminal device starts to accumulate the first parameter”, the embodiments of the present application can further include: the terminal device initializes the value of the first parameter when or after the first LCH is established, or initializes the value of the first parameter even if the first condition is not met when or after the first LCH is established, or initializes the value of the first parameter to a second value or a first value.

[0289] Optionally, after the terminal device establishes the first LCH or after the terminal device establishes the first LCH even if the first condition is not met, the terminal device initializes the value of the first parameter, or the terminal device initializes the value of the first parameter to the second value or the first value, the terminal device does not accumulate the first parameter.

[0290] For example, after the terminal device establishes the first LCH or after the terminal device establishes the first LCH even if the first condition is not met, the terminal device initializes the value of the first parameter, or the terminal device initializes the value of the first parameter to the second value or the first value, before the first condition is met, the terminal device does not accumulate the first parameter.

[0291] For example, after the terminal device establishes the first LCH or after the terminal device establishes the first LCH even if the first condition is not met, the terminal device initializes the value of the first parameter, or the terminal device initializes the value of the first parameter to the second value or the first value, before the first condition is met, the terminal device does not accumulate the first parameter; and the terminal device starts to accumulate the first parameter after the first condition is met.

[0292] For example, taking Bj as the first parameter, as shown in FIG. 9, when the LCH1 is established, the terminal device initializes Bj to 0, and Bj does not accumulate with time. In this way, after the first task starts, Bj starts to accumulate with time.

[0293] Optionally, after the terminal device establishes the first LCH or after the terminal device establishes the first LCH even if the first condition is not met, the terminal device initializes the value of the first parameter, or the terminal device initializes the value of the first parameter to the second value or the first value, until the first condition is met, the terminal device starts to accumulate the first parameter.

[0294] For example, when the LCH is established, the terminal device initializes the value of the first parameter to 0, and does not accumulate the first parameter. After the first condition is met, the terminal device accumulates the first parameter based on the second parameter. It can be understood that in this method, from the establishment of the LCH to the period when the first condition is met, the value of the first parameter is 0. After the first condition is met, the terminal device starts to accumulate the first parameter.

[0295] For example, taking Bj as the first parameter, PBR as the second parameter, and the start of the first task as the first condition, as shown in FIG. 9, at T1, the LCH is established, and the terminal device initializes Bj to 0, and Bj does not immediately start to accumulate with time. Then, at T2, the first task starts, and the terminal device starts to accumulate Bj based on PBR.

[0296] For example, start accumulating can include / replace any one or more of the following: accumulate, or, accumulate over time, or, start accumulating over time.

[0297] For example, accumulate can include / replace any one or more of the following: accumulate, increase, update.

[0298] For example, accumulating the first parameter can include / replace any one or more of the following: accumulating a value of the first parameter.

[0299] For example, taking the cloud shooting scene as an example, as shown in FIG. 4A, at T1, the user opens the camera APP on the mobile phone (or terminal device), triggering the mobile phone to establish LCH1. At T2, when the user presses the shooting button, the shooting task (an example of the first task) starts, the first condition is met, the mobile phone (or terminal device) initializes Bj corresponding to LCH1 to 0 (an example of the first value), and the value of Bj starts to accumulate.

[0300] For another example, when the user presses the shooting button, the shooting data (an example of the first data set) to be transmitted is generated, the first condition is met, the mobile phone (or terminal device) initializes Bj corresponding to LCH1 to 0, and the value of Bj starts to accumulate. For example, the generation of the first data set means that the terminal device has a real data transmission demand. Compared with initializing the value of the first parameter when the LCH is established, in the scheme of the embodiments of the present application, when the first data set is generated, the terminal device determines the value of the first parameter, so that the value of the first parameter can be more accurate, and then the LCP can be executed according to the value of the first parameter to meet the data transmission demand of the terminal device as much as possible. Taking Bj as an example, after the LCH is established, when the first data set is generated, the terminal device determines the value of Bj as the first value, so that when the first data set is generated, the value of Bj is not too large to accumulate, so as to avoid that the task corresponding to the first data set occupies too many resources.

[0301] For example, after a user opens a camera APP on a terminal device, the terminal device sends a first message to a network device at a certain time (e.g., after the user presses a photographing button), the first condition is met, the terminal device initializes Bj corresponding to LCH1 to 0, and the value of Bj starts to accumulate. For another example, after a user opens a camera APP on a terminal device, the terminal device sends a first message to a network device at a certain time, when a second message from the network device is received, the first condition is met, and Bj corresponding to LCH1 is initialized to 0, and the value of Bj starts to accumulate. Compared with the value of the first parameter (e.g., Bj) initialized when the LCH is established, in the scheme of the embodiments of the present application, after the LCH is established, if the terminal device sends the first message or receives the second message from the network device, the terminal device determines that the value of Bj is the first value. Because the time interval between the transmission of the above message (the first message / the second message) and the generation of the first data set is short, the value of Bj is not accumulated too large when the first data set is generated, so as to prevent the task corresponding to the first data set from occupying too many resources.

[0302] For example, after a user presses a photographing button and a photographing task starts, the terminal device acquires a first resource, the first condition is met, and the terminal device determines that the value of Bj is the first value. For another example, after a user presses a photographing button, the terminal device acquires a first resource after generating photographing data, and the terminal device determines that the value of Bj is the first value. For example, the terminal device acquires a first resource, which means that the terminal device has an uplink resource. In the scheme of the embodiments of the present application, the terminal device acquiring the first resource is taken as a trigger condition for determining the value of the first parameter, compared with the determination of the value of the first parameter when the LCH is established, the timing of determining the value of the first parameter is later, so that the value of the first parameter is not accumulated too large, so as to prevent the task corresponding to the first data set from occupying too many resources.

[0303] For example, the first condition is met, which means that the terminal device (or, a first task on the terminal device, or, a first task on a first LCH, or, the first LCH) has a real data transmission requirement. Compared with the value of the first parameter determined when or after the LCH is established in the prior art, the value of the first parameter cannot well match the subsequent data transmission requirement. In the scheme of the embodiments of the present application, the value of the first parameter is determined to be the first value or the first parameter starts to accumulate in the case that the terminal device (or, a first task on the terminal device, or, a first task on a first LCH, or, the first LCH) has a real data transmission requirement, which can make the value of the first parameter or the LCP more match the task-level transmission, and / or, will not have a negative impact on other low-priority LCHs, can improve the data transmission performance, and improve the communication quality.

[0304] For example, when the first condition is met, the terminal device determines that the value of the first parameter is a first value, and the first value is 0; or, when the first condition is met, the terminal device starts to accumulate the first parameter; which can solve problem 1, can avoid the first parameter from being accumulated too much when or before the first condition is met, can avoid the first LCH always pre-empting the resources of other low-priority LCHs (or, can avoid the first LCH always pre-empting / allocating resources preferentially), causing other low-priority LCHs to not be allocated resources (or sufficient resources) during the execution of the first task, and can avoid other low-priority LCHs from being starved during the execution of the first task, thereby ensuring the transmission of services on other low-priority LCHs and improving the communication quality. This can enable the LCP to match task-level transmission. A feasible method for maintaining Bj of an LCH or Bj of a task (or, a feasible LCP method) is provided for task-level transmission.

[0305] For example, during the execution of the first task, the following any one or more can be included: after the start of the first task, and before the end of the first task.

[0306] For example, when the first condition is met, the terminal device determines that the value of the first parameter is a first value, and the first value is greater than 0; which can solve problem 2, can enable the LCP to match task-level transmission, ensure that the resources scheduled by the network device can be allocated to the LCH of the task-level transmission, and ensure that the task-level transmission can obtain sufficient resources, thereby ensuring the communication quality of the task-level transmission. This can meet the data transmission requirements of the first task and improve the data transmission performance of the first task. This can enable the LCP to match task-level transmission. A feasible method for maintaining Bj of an LCH or Bj of a task (or, a feasible LCP method) is provided for task-level transmission.

[0307] For example, S101 can be an independent embodiment and does not depend on other steps; or can be combined with one or more other steps to form a new embodiment. For example, S101 can be combined with S107 (not shown in the figure) to form a new embodiment.

[0308] Optionally, the embodiment of the application further provides another communication method, in which, if the first LCH corresponds to task-level transmission, the terminal device does not consider whether the Bj of the first LCH is greater than 0, and the first LCH can always participate in the first round of resource allocation. For example, until the resources are exhausted or the task of the first LCH is completed. For example, this method can be an independent embodiment and does not depend on other steps. For example, by using this method, problem 2 can be solved, the LCP can match task-level transmission, the resources scheduled by the network device can be allocated to the LCH of the task-level transmission, and the task-level transmission can obtain sufficient resources, thereby ensuring the communication quality of the task-level transmission.

[0309] For example, as shown in FIG. 10, task-level data (task-level transmission) is mapped on LCH1, and non-task-level data is mapped on LCH2 and LCH3. For example, in the first round of resource allocation, for the LCHs associated with non-task-level data and the LCHs associated with task-level data, whose Bj is greater than 0, resource allocation is performed in descending order of LCH priority. Or, for example, in the first round of resource allocation, task-level data on LCH1 is given priority over non-task-level data on other LCHs to use resources, regardless of whether Bj on LCH1 is less than 0. In the first round of resource allocation, when there is remaining resources, the terminal device can allocate the remaining resources to non-task-level data on other LCHs for use. Or, task-level data on LCH1 is given priority over non-task-level data on other LCHs to use resources, regardless of whether Bj on LCH1 is less than 0. In the first round of resource allocation, when there is remaining resources, the terminal device can allocate the remaining resources to non-task-level data on other LCHs for use. With this method, the transmission performance of task-level transmission can be ensured (or, priority is given to ensure) to achieve the effect of reducing transmission delay, etc.

[0310] Optionally, the embodiments of the present application also provide another communication method, in which, if the first LCH corresponds to task-level transmission, as shown in FIG. 8, when / after the first LCH (such as LCH1) is established, the terminal device initializes the value of the first parameter to a first value greater than 0, and does not accumulate the first parameter. For example, this method can be used as an independent embodiment, which is independent of other steps. For example, by using this method, problem 2 can be solved, and LCP can be matched with task-level transmission, so that the resources scheduled by the network device can be allocated to the LCH of task-level transmission, and the task-level transmission can obtain sufficient resources, thereby ensuring the communication quality of task-level transmission.

[0311] Optionally, the embodiments of the present application can also include S102 (not shown in the figure), in which the terminal device determines a third parameter based on at least one first parameter associated with at least one task or at least one data set.

[0312] For example, determining the third parameter can include / replaced by: determining the value of the third parameter.

[0313] For example, in S102, the first parameter is associated with the first task (or task) or the first data set (or data set).

[0314] Optionally, if the first parameter is associated with the first task (or task) or the first data set (or data set), or in the implementation B, or if the first LCH is associated with (or simultaneously associated with) multiple tasks, the embodiments of the present application can also include S102.

[0315] For example, the at least one task or the at least one data set is associated with the first LCH. For example, the at least one task or the at least one data set can include / replace all tasks or all data sets associated with the first LCH. For example, the at least one task can include the first task. For example, the at least one data set can include the first data set.

[0316] For example, all tasks can include / replace all tasks in progress, or all tasks that have started, or all tasks that have not ended, or all tasks that have started and have not ended.

[0317] For example, all data sets can include / replace all data sets corresponding to tasks in progress, or all data sets corresponding to tasks that have started, or all data sets corresponding to tasks that have not ended, or all data sets corresponding to tasks that have started and have not ended, or all data sets that have been generated, or all data sets that have not been discarded, or all data sets that have been generated and have not been discarded.

[0318] For example, the application does not limit all data sets of the data to be cached in the AS layer of the terminal device. For example, the data of the data set is generated in the APP layer of the terminal device, but has not reached the AS layer of the terminal device.

[0319] For example, the third parameter is associated with LCP or resource allocation. For example, the first parameter can be used in the LCP or resource allocation process. Optionally, the first parameter can be Bj used for LCP or resource allocation.

[0320] For example, the third parameter is associated with the first LCH (or LCH). For example, the terminal device maintains one third parameter for one LCH, or one LCH is associated with one third parameter. For example, the terminal device maintains one third parameter for each LCH, or each LCH is associated with one third parameter, or the terminal device maintains the third parameter based on each logical channel (per LCH).

[0321] For example, the third parameter is Bj, or Bj of the first LCH, or Bj associated with the first LCH.

[0322] For example, the third parameter is used for LCP or resource allocation related to the first LCH.

[0323] For example, the terminal device can determine the third parameter associated with the first LCH according to the first parameter associated with each task on the first LCH. Or the terminal device can determine the third parameter associated with the first LCH according to the first parameter associated with each data set on the first LCH.

[0324] Optionally, determining the third parameter based on the at least one first parameter associated with the at least one task or the at least one data set can comprise: the third parameter is a sum of values of the at least one first parameter (or the at least one first parameter) associated with the at least one task or the at least one data set, or the third parameter is a sum of values of the first parameter (or all the first parameters) associated with all the tasks or all the data sets associated with the first LCH.

[0325] For example, the at least one task can comprise / replaced by: M tasks.

[0326] For example, the at least one data set can comprise / replaced by: M data sets.

[0327] For example, the at least one first parameter can comprise / replaced by: M or P first parameters.

[0328] For example, M is greater than or equal to 1. For example, M is an integer. For example, M is an integer greater than or equal to 1. For example, M is greater than or equal to 0. For example, M is an integer greater than or equal to 0. For example, P is greater than or equal to 1. For example, P is an integer.

[0329] For example, taking Bj as the first parameter and the third parameter, the value of Bj of the LCH is a sum of values of Bj of all the tasks (or all the data sets) on the LCH.

[0330] For example, there are task 1 and task 2 on LCH1, the terminal device can calculate a sum of Bj of task 1 and Bj of task 2, and take the sum as the Bj value of LCH1.

[0331] Optionally, determining the third parameter based on the at least one first parameter associated with the at least one task or the at least one data set can comprise: determining the third parameter based on the at least one first parameter associated with the at least one task or the at least one data set and a second coefficient; or determining the third parameter based on the first parameter (or all the first parameters) associated with all the tasks or all the data sets associated with the first LCH and the second coefficient.

[0332] Optionally, determining the third parameter based on the at least one first parameter associated with the at least one task or the at least one data set can comprise: the third parameter is a sum of values of the at least one first parameter (or the at least one first parameter) associated with the at least one task or the at least one data set multiplied by a second coefficient; or the third parameter is a sum of values of the first parameter (or all the first parameters) associated with all the tasks or all the data sets associated with the first LCH multiplied by the second coefficient.

[0333] Optionally, the terminal device determines the third parameter based on the at least one first parameter associated with the at least one task or the at least one data set, or the terminal device performs S102, when at least one of the third condition, the first condition, and the second condition is met.

[0334] For example, the third condition comprises at least one of the following:

[0335] The terminal device acquires the first resource or the second resource or the UL new transmission resource;

[0336] Before the terminal device performs the LCP or the resource allocation;

[0337] When the terminal device performs the LCP or the resource allocation;

[0338] After the terminal device performs the LCP or the resource allocation;

[0339] After the terminal device performs the first round of resource allocation;

[0340] After the terminal device performs the second round of resource allocation;

[0341] The first task (or the at least one task or the at least one new task) starts;

[0342] The first task (or the at least one task or the at least one new task) ends; or

[0343] The first parameter of the at least one task or the data set changes / updates.

[0344] For example, the first task can comprise / replaced by: one task, or one new task.

[0345] For example, the at least one task or the at least one new task is associated with the first LCH.

[0346] For example, the terminal device performs S102 or determines the third parameter each time before the terminal device performs (or will perform) the LCP, or each time after the terminal device performs the LCP, or each time a task starts or ends.

[0347] Optionally, the terminal device can periodically perform S102 or determine the third parameter. For example, the terminal device updates / determines the third parameter every time slot / subframe / frame / symbol / millisecond / 10 milliseconds.

[0348] For example, the terminal device determines the third parameter based on at least one first parameter associated with at least one task or at least one data set. For example, it can solve problem 3 (or, problem 1 and problem 3, or, problem 2 and problem 3), can make the LCP match the task-level transmission, and can guarantee the communication quality. For the scenario where multiple tasks exist (or exist at the same time) on one LCH, a feasible method for maintaining Bj of the LCH (or, a feasible LCP method) is provided. For example, the terminal device can update / determine Bj of the LCH based on Bj of the task, and can avoid errors in updating / determining Bj of the LCH.

[0349] For example, S102 can be an independent embodiment and does not depend on other steps; or S102 can be combined with one or more other steps to form a new embodiment. For example, S102 can be combined with S101 to form a new embodiment. For example, S102 can be combined with S101 and S107 to form a new embodiment. For example, S102 can be combined with S104B to form a new embodiment.

[0350] Optionally, the embodiments of the application can further include S103 (not shown in the figure): the terminal device acquires a second resource.

[0351] For example, the second resource is a new transmission resource. For example, the second resource is an UL resource.

[0352] For example, the application does not limit the sequence of S103 and S101.

[0353] Optionally, the embodiments of the application can further include S104A (not shown in the figure): the terminal device performs LCP and / or resource allocation according to the value of the third parameter.

[0354] Optionally, if the first parameter is associated with the first task (or task) or the first data set (or data set), or in the implementation B, or if the first LCH is associated (or simultaneously associated) with multiple tasks, the terminal device performs S104A.

[0355] For example, for the second resource, the terminal device performs LCP and / or resource allocation according to the value of the third parameter.

[0356] For example, in the first round of resource allocation, if the first parameter of the first LCH is greater than 0, the first LCH can participate in the first round of resource allocation.

[0357] For example, in the first round of resource allocation, the resource that the first LCH can allocate is determined according to the value of the third parameter. For example, in the first round of resource allocation, the size of the resource that the first LCH can allocate does not exceed the value of the third parameter, or the size of the data corresponding to the resource that the first LCH can allocate does not exceed the value of the third parameter.

[0358] For example, the size of the data can include / be replaced with: the amount of data, or use other names, without restriction.

[0359] For example, taking the first parameter as Bj of LCH1 and the first condition as generating the first data set as an example, as shown in Figure 4B, at time T2, the first data set of LCH1 is generated, triggering the terminal device to determine that the value of Bj of LCH1 is the first value (such as 0). At time T3, the terminal device starts executing LCP. Since the terminal device triggers the determination of the first value under the condition of real data transmission needs, at time T3, the accumulated value of Bj of LCH1 is appropriate (not too large). In the first round of resource allocation, the terminal device allocates the amount of resources matching the Bj value of LCH1 to LCH1 according to the Bj value of LCH1; and allocates the amount of resources matching the Bj value of LCH3 to LCH3 according to the Bj value of LCH3. As shown in Figure 4B, after the first round of resource allocation, if there are still remaining resources, in the second round of resource allocation, the terminal device allocates resources to the remaining data of LCH1 with priority 1 and to the data of LCH2 with priority 2 in descending order of priority. As can be seen in this example, because the Bj value of LCH1 is appropriate, the terminal device can allocate an appropriate amount of resources to LCH1, thereby minimizing the probability that LCH1 will preempt too many resources and reducing the probability that other LCHs will fail to transmit data due to insufficient resources.

[0360] Optionally, embodiments of this application may further include: S104B (not shown in the figures), the terminal device performs LCP and / or resource allocation according to the value of the first parameter.

[0361] Optionally, if the first parameter is associated with the first LCH (or LCH), or, under implementation A, or, if the first LCH is associated with (or, at most associated with) a task, the terminal device executes S104B.

[0362] For example, for the second resource, the terminal device performs LCP and / or resource allocation based on the value of the first parameter.

[0363] For example, in the first round of resource allocation, if the third parameter of the first LCH is greater than 0, the first LCH can participate in the first round of resource allocation.

[0364] For example, in the first round of resource allocation, the resources that the first LCH can allocate are determined based on the value of the first parameter. For example, in the first round of resource allocation, the size of the resources that the first LCH can allocate does not exceed the value of the first parameter, or the size of the data corresponding to the resources that the first LCH can allocate does not exceed the value of the first parameter.

[0365] For example, in one or more embodiments of the present application, the LCP can include / replace other names such as resource allocation, etc., without limitation.

[0366] Optionally, the embodiments of the present application can further include S105 (not shown in the figure): the terminal device allocates resources in the second resources for the data set A.

[0367] Optionally, S104A or S104B can include: the terminal device allocates resources in the second resources for the data set A.

[0368] For example, the data set A is associated with the first LCH.

[0369] For example, the first data set and the data set A are not the same dimension concept. For example, as shown in FIG. 11, taking the data set A including task 1 and task 2 on LCH1 as an example, for the second resources, the terminal device allocates resources for LCH1, which can serve MAC SDU with a size of B 总 . The terminal device allocates resources for task 1 in LCH1, which can serve MAC SDU with a size of B1. The terminal device allocates resources for task 2 in LCH1, which can serve MAC SDU with a size of B2.

[0370] For example, the terminal device allocates resources in the second resources for the data set A (or, S105) can be / correspond to: the first round of resource allocation, or, the second round of resource allocation, or, other rounds of resource allocation after LCP improvement, or, the entire allocation resources (for example, including the first round of resource allocation and the second round of resource allocation), or other, without limitation.

[0371] Optionally, in the first round of resource allocation, the resources allocated for the first LCH are determined based on the Bj of the first LCH.

[0372] Optionally, the embodiments of the present application can further include S106A (not shown in the figure): the terminal device subtracts the first size from the value of the first parameter.

[0373] Optionally, if the first parameter is associated with the first task (or task) or the first data set (or data set), or, in the implementation of B, or, if the first LCH is associated (or, simultaneously associated) with multiple tasks, the terminal device performs S106A.

[0374] Optionally, after performing S105 (or, the terminal device allocates resources in the second resources for the data set A, or, S104A), the terminal device can perform S106A.

[0375] For example, the first size is: a size of data in the data set A associated with the first task or the first data set, or a size of data in the first task or the first data set allocated to the resource. Or, for example, the first size is: a size of resource associated with the data in the data set A associated with the first task or the first data set, or a size of resource allocated to the first task or the first data set.

[0376] For example, the size of data can include / replace: a size of MAC SDU.

[0377] For example, the allocated resource can include / replace: allocated second resource, or resource in the allocated second resource.

[0378] For example, the associated can include / replace: allocated.

[0379] For example, the associated resource can include / replace: associated second resource, or resource in the associated second resource.

[0380] For example, the allocated resource can include / replace: allocated second resource, or resource in the allocated second resource.

[0381] For example, the size of data in the first task or the first data set allocated to the resource can include / replace: the size of data in the first task or the first data set allocated to the resource in S105 or S104A or S104B.

[0382] For example, the size of resource allocated to the first task or the first data set can include / replace: the size of resource allocated to the first task or the first data set in S105 or S104A or S104B.

[0383] For example, the terminal device subtracts the first size from the value of the first parameter associated with the first task or the first data set (or the first parameter). For example, the new value of the first parameter associated with the first task or the first data set = the old / original value of the first parameter associated with the first task or the first data set - the first size.

[0384] For example, the second size is: a size of data in the data set A associated with the second task or the second data set, or a size of data in the second task or the second data set allocated to the resource. Or, for example, the second size is: a size of resource associated with the data in the data set A associated with the second task or the second data set, or a size of resource allocated to the second task or the second data set.

[0385] For example, the size of data in the second task or the second data set allocated to the resource can comprise / replace: the size of data in the second task or the second data set allocated to the resource in S105 or S104A or S104B.

[0386] For example, the size of resource allocated to the second task or the second data set can comprise / replace: the size of resource allocated to the second task or the second data set in S105 or S104A or S104B.

[0387] For example, the terminal device subtracts the second size from the value of the first parameter (or the first parameter) associated with the second task or the second data set. For example, the new value of the first parameter associated with the second task or the second data set = the old / original value of the first parameter associated with the second task or the second data set - the second size.

[0388] For example, the terminal device subtracts the size associated with each task or each data set from the value of the first parameter of the task or the data set. For example, the new value of the first parameter associated with each task or each data set = the old / original value of the first parameter associated with the task or the data set - the size associated with the task or the data set.

[0389] For example, the size associated with the task or the data set can comprise / replace: the size of data associated with the task or the data set in the data set A, or the size of data in the task or the data set allocated to the resource. Or, for example, the size associated with the task or the data set can comprise / replace: the size of resource associated with the data associated with the task or the data set in the data set A, or the size of resource allocated to the task or the data set.

[0390] For example, the size of data in the task or the data set allocated to the resource can comprise / replace: the size of data in the task or the data set allocated to the resource in S105 or S104A or S104B.

[0391] For example, the size of resource allocated to the task or the data set can comprise / replace: the size of resource allocated to the task or the data set in S105 or S104A or S104B.

[0392] For example, the terminal device subtracts the size from the value of the first parameter (or the first parameter) associated with the task or the data set. For example, the new value of the first parameter associated with the task or the data set = the old / original value of the first parameter associated with the task or the data set - the size.

[0393] For example, each task can include / replaced by: one task, or, any task, or, each task associated with the first LCH, or, one task associated with the first LCH, or, any task associated with the first LCH, or, each of the tasks associated with the first LCH, or, one of the tasks associated with the first LCH, or, any of the tasks associated with the first LCH, or, one task allocated to the resource, or, any task allocated to the resource, or, each task associated with the first LCH and allocated to the resource, or, one task associated with the first LCH and allocated to the resource, or, any task associated with the first LCH and allocated to the resource, or, each of the tasks associated with the first LCH and allocated to the resource, or, one of the tasks associated with the first LCH and allocated to the resource, or, any of the tasks associated with the first LCH and allocated to the resource.

[0394] For example, allocated to the resource can include / replaced by: allocated to the resource in the second resource, or, allocated to the second resource.

[0395] For example, each data set can include / replaced by: one data set, or, any data set, or, each data set associated with the first LCH, or, one data set associated with the first LCH, or, any data set associated with the first LCH, or, each of the data sets associated with the first LCH, or, one of the data sets associated with the first LCH, or, any of the data sets associated with the first LCH, or, one data set allocated to the resource, or, any data set allocated to the resource, or, each data set associated with the first LCH and allocated to the resource, or, one data set associated with the first LCH and allocated to the resource, or, any data set associated with the first LCH and allocated to the resource, or, each of the data sets associated with the first LCH and allocated to the resource, or, one of the data sets associated with the first LCH and allocated to the resource, or, any of the data sets associated with the first LCH and allocated to the resource.

[0396] For example, data set A includes at least one of: data (or, all data) allocated to the resource (e.g., the second resource). For example, the data in data set A can be associated with one or more tasks or one or more data sets.

[0397] For example, as shown in FIG. 11, the data set A is the data of task 1 and the data of task 2 on the LCH 1. The terminal device allocates resources for the task 1 and the task 2, and updates the value of the first parameter (such as Bj) of the task 1 according to the data size associated with the task 1, and updates the value of the first parameter of the task 2 according to the data size associated with the task 2. For example, Bj of the task 1 is updated by subtracting B1. For example, Bj of the task 2 is updated by subtracting B2. In this way, the terminal device can update the first parameter (such as Bj) of the corresponding task according to the task granularity (task level).

[0398] For example, the order between the terminal device obtaining the second resource and the terminal device obtaining the data of the task 1 is not limited. For example, the order between the terminal device obtaining the second resource and the terminal device obtaining the data of the task 2 is not limited.

[0399] Optionally, the embodiments of the present application can further include: the implementation mode 1 or the implementation mode 2.

[0400] Optionally, after S105 and / or S106A, the embodiments of the present application can further include: the implementation mode 1 or the implementation mode 2.

[0401] For example, the present application does not limit the order between S106A and the implementation mode 1 (or the implementation mode 2).

[0402] Optionally, in the implementation mode 1, the terminal device determines the third parameter based on at least one first parameter associated with at least one task or at least one data set.

[0403] For example, the description related to “the terminal device determines the third parameter based on at least one first parameter associated with at least one task or at least one data set” can refer to the content in S102, which will not be described here.

[0404] For example, the Bj of the LCH is updated to the sum of the new Bj value of the task 1 and the new Bj value of the task 2.

[0405] Optionally, in the implementation mode 2, the terminal device subtracts the first total size from the value of the third parameter.

[0406] For example, the first total size is: the size of the data set A, or, the size of the data allocated to the resource. Or, for example, the first total size is: the size of the resource associated with the data set A, or, the size of the resource allocated to the data set A.

[0407] For example, the size of the data set A can include / replace: the size of the data set A in S105 or S104A or S104B.

[0408] For example, the size of the resource allocated to the data set A can include / replace the size of the resource allocated to the data set A in S105 or S104A or S104B.

[0409] For example, the terminal device can update the third parameter (e.g., Bj) of the corresponding LCH in LCH granularity (LCH level). As shown in FIG. 11, the terminal device can update the value of Bj of LCH1 according to the size of the data set A. For example, Bj of LCH1 is updated to Bj of LCH1 minus the first size. 总 .

[0410] For example, as shown in FIG. 11, the terminal device allocates resources for the data set A including the data of task 1 and the data of task 2 on LCH1. Before the resources are allocated, Bj of task 1 is as shown in FIG. 11. In this example, the terminal device allocates a resource size of, for example, the first size for the data of task 1. After the resources are allocated, the terminal device subtracts the first size from the value of Bj of task 1. For example, before the resources are allocated, the value of Bj of task 1 is 100, the first size is 60, and after the resources are allocated, the terminal device can update the value of Bj of task 1 to 100-60=40. Similarly, the terminal device allocates a resource size of, for example, the second size for the data of task 2, before the resources are allocated, the value of Bj of task 2 is 60, the second size is 50, and after the resources are allocated, the terminal device can update the value of Bj of task 2 to 60-50=10.

[0411] For example, still following the example in the preceding paragraph, before the resources are allocated, the value of Bj of task 1 is 100, the value of Bj of task 2 is 60, and the value of Bj of LCH1 is 100+60=160. The first size is 60, the second size is 50, and the sum of the first size and the second size (or the first total size) is 110. After the terminal device allocates the resources, the terminal device subtracts the first total size from the value of Bj of LCH1; or, after the terminal device allocates the resources, the value of Bj of LCH1 is equal to the sum of the value of Bj of task 1 and the value of Bj of task 2 (e.g., 40+10=50).

[0412] Optionally, the second resources can further include resources allocated for data of other LCHs, or the resources in the second resources can be further allocated to data of other LCHs, which is not shown in FIG. 11.

[0413] For example, the terminal device subtracts the first size from the value of the first parameter. For example, it can solve problem 4, can make the LCP match the task level transmission, and can guarantee the communication quality. It can guarantee that the Bj of the task and / or the Bj of the LCH is correct. It can avoid other low priority LCHs from being starved, thereby guaranteeing the transmission of services on other low priority LCHs. For the scenario where multiple tasks exist (or exist at the same time) on an LCH, a feasible method for maintaining the Bj of the task and / or the Bj of the LCH is provided (or, a feasible LCP method is provided).

[0414] Optionally, the embodiments of the present application can further include S106B (not shown in the figure): the terminal device subtracts the first total size from the value of the first parameter.

[0415] Optionally, if the first parameter is associated with the first LCH (or LCH), or in implementation A, or if the first LCH is associated (or at most associated) with one task, the terminal device performs S106B.

[0416] Optionally, after performing S105 (or, the terminal device allocates resources in the second resource to the data set A, or S104B), the terminal device can perform S106B.

[0417] Optionally, the present application can further include: the terminal device sends data.

[0418] For example, the terminal device sends data on the second resource. For example, the data can include / replace: MAC PDU, and / or TB, etc., without limitation.

[0419] Optionally, the embodiments of the present application can further include S107: when the second condition is met, the terminal device updates the value of the first parameter to a third value.

[0420] For example, the second condition includes at least one of the following:

[0421] The first task ends;

[0422] The terminal device obtains a third message from the network device;

[0423] The delay corresponding to the first task or the first data set is reached (or exceeded); or

[0424] The transmission of the first task or the first data set is completed or ends.

[0425] Optionally, the first task ends, which can include / replace at least one of the following: the terminal device obtains a third message from the network device; the delay corresponding to the first task or the first data set is reached (or exceeded); or the transmission of the first task or the first data set is completed or ends.

[0426] For example, the third message comprises information of the negative acknowledgement.

[0427] Optionally, the third message is associated with the first task or the first data set.

[0428] For example, the third message comprises information of the first task or the first data set.

[0429] For example, the message of the negative acknowledgement, or the third message, can comprise / replace / indicate that the network device confirms that the network device cannot complete the transmission of the first task or the first data set, or the network device cannot complete the transmission of the first task or the first data set.

[0430] For example, the message of the negative acknowledgement, or the third message, can comprise / replace / indicate that the network device confirms that the network device cannot complete the transmission of the data related to at least one of the second data amount, the second data amount range, the second time delay, the second generation (or will be generated) time, or the network device cannot complete the transmission of the data related to at least one of the second data amount, the second data amount range, the second time delay, the second generation (or will be generated) time, or the network device confirms that the network device cannot complete the transmission of the data related to at least one of the first data amount, the first data amount range, the first time delay, the first generation (or will be generated) time, or the network device cannot complete the transmission of the data related to at least one of the first data amount, the first data amount range, the first time delay, the first generation (or will be generated) time.

[0431] Optionally, the time delay corresponding to the first task or the first data set being reached (or exceeded) can comprise / replace at least one of the following: the first task or the first data set is discarded, or a timer (for example, a PDCP discard timer) corresponding to the first task or the first data set is timed out.

[0432] Optionally, the completion of the transmission of the first task or the first data set can comprise / replace at least one of the following: the terminal device has completed the transmission of the first task or the first data set, the first task is ended, the terminal device obtains the third message from the network device, or the time delay corresponding to the first task or the first data set is reached (or exceeded).

[0433] Optionally, the third value is 0.

[0434] For example, updating the value of the first parameter to the third value can comprise / replace updating the first parameter to the third value, or determining that the value of the first parameter is the third value.

[0435] For example, after the terminal device receives the negative acknowledgement associated with the first task from the network device, it means that the network device cannot allocate resources for the first task of the terminal device, and the terminal device updates the value of the first parameter to 0. For example, the first task (for example, a cloud photographing task) of the terminal device requires that the terminal device uploads a photo within 2 seconds. When the photo data is generated, the terminal device updates the value of the first parameter to 0 when 2 seconds are reached. For example, after the terminal device transmits the data of a photo, the value of the first parameter is updated to 0.

[0436] For example, the second condition is met, which means that the first task on the terminal device (or the first task on the first LCH, or the first LCH) no longer has a data transmission requirement. By using the scheme of the embodiments of the present application, the value of the first parameter can be updated at an appropriate time (for example, when the first task on the terminal device or the first task on the first LCH or the first LCH no longer has a data transmission requirement). When / Before the terminal device (or the first task on the terminal device, or the first task on the first LCH, or the first LCH) has a real data transmission requirement, the value of the first parameter is not accumulated too large.

[0437] For example, the second condition is met, and the terminal device updates the value of the first parameter to a third value; which can solve problem 1, can avoid the first parameter from accumulating too large when the first condition is met or before, can avoid the first LCH always pre-empting the resources of other low-priority LCHs (or can avoid the first LCH always pre-empting / distributing resources), causing other low-priority LCHs to not be allocated resources (or sufficient resources) during the execution of the first task, and can avoid other low-priority LCHs from being starved during the execution of the first task, thereby guaranteeing the transmission of services on other low-priority LCHs, which is beneficial to improving the communication quality. It can make the LCP match the task-level transmission. A feasible method for maintaining the Bj of the LCH or the Bj of the task (or a feasible LCP method) is provided for task-level transmission.

[0438] For example, S107 can be an independent embodiment and does not depend on other steps; or S107 can be combined with one or more other steps to form a new embodiment. For example, S101 can be combined with S107 to form a new embodiment.

[0439] Optionally, the present application can further include: if the first LCH is associated with the task-level transmission, the terminal device performs any one or more of S101, S102, S103, S104A, S104B, S105, S106A, S106B, and S107.

[0440] For example, by the embodiments of the present application, a feasible Bj of LCH and / or Bj of task maintenance method (or, a feasible LCP method) is provided for task-level transmission. The communication quality is improved.

[0441] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" herein only describes an association relationship of associated objects, which means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0442] Hereinafter, the terms "first", "second" are only used for description purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more features. In the description of the embodiments, unless otherwise specified, the meaning of "multiple" is two or more than two.

[0443] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units not listed or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0444] In the embodiments of the present application, the words such as "exemplary" or "for example" are used to mean an example, illustration, or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words such as "exemplary" or "for example" are intended to present the relevant concept in a specific manner, and facilitate understanding.

[0445] It should be understood that in the present application, "at least one" refers to one or more. "Multiple" refers to two or more. "At least two" refers to two or three and three or more. "And / or" is used to describe the association between the associated objects, which means that there can be three relationships. For example, "A and / or B" can represent three cases: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects. "At least one" or the like refers to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple. "When" and "if" both refer to the corresponding processing under certain objective conditions, not limited to time, and do not require judgment actions when implemented, nor does it mean that there are other limitations.

[0446] In the present application, "indication" can include direct indication, indirect indication, explicit indication, or implicit indication.

[0447] In the present application, "includes" can include direct inclusion, indirect inclusion, explicit inclusion, or implicit inclusion.

[0448] It should be understood that the prior art can change as the technical solutions evolve, and the technical solutions provided in the present application are not limited to the provided prior art.

[0449] It should be noted that different embodiments or parts of steps (for example, any one or more steps) in different embodiments in the present application can be combined to form new embodiments. It should be noted that the part of the steps or any one or more steps in different embodiments can include optional steps in a certain embodiment, or can include mandatory steps in a certain embodiment, or can include optional steps and mandatory steps in a certain embodiment. The present application is not limited.

[0450] It should be noted that the terms and / or descriptions of different embodiments are consistent and can be mutually referred to each other if there is no special description and logical conflict.

[0451] It should be noted that the present application does not limit the order of the steps in the embodiments of the present application.

[0452] It should be noted that the present application does not limit the order of the judgment of different conditions in the embodiments of the present application.

[0453] It should be noted that "after" and "when" in the present application are not strictly limited to the time point.

[0454] It should be noted that the terms and names involved in the present application are only examples, and can also be other names. The present application is not limited.

[0455] For example, the terminal device and the network device in the embodiments of the present application can be implemented by the communication device in FIG. 12. FIG. 12 shows a hardware structure schematic diagram of the communication device provided by the embodiments of the present application. The communication device 400 includes at least one processor 401, a memory 403 and at least one communication interface 404.

[0456] The processor 401 can be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs of the present application.

[0457] Optionally, the communication device can include a communication line, which can include a path for transmitting information between corresponding components of the device.

[0458] The communication interface 404 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, RAN, wireless local area networks (WLAN), etc.

[0459] The memory 403 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, and can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to this. The memory can exist independently and be connected to the processor through the communication line. The memory can also be integrated with the processor.

[0460] The memory 403 is configured to store computer-executed instructions for implementing the solutions of the present application, and the processor 401 is configured to control the execution of the computer-executed instructions stored in the memory 403.

[0461] Optionally, the computer-executed instructions in the embodiments of the present application can also be referred to as application program codes, which are not limited in the embodiments of the present application.

[0462] In a specific implementation, as an example, the processor 401 can include one or more CPUs, for example, CPU0 and CPU1 in FIG. 12.

[0463] In a specific implementation, as an example, the communication apparatus 400 can include multiple processors, for example, the processor 401 and the processor 408 in FIG. 12. Each of the processors can be a single-CPU processor or a multi-CPU processor. The processor herein can refer to one or more devices, circuits, and / or processing cores for processing data (for example, computer program instructions).

[0464] The structure shown in FIG. 12 is only an example, and the communication apparatus can include more or fewer components, or other component layout manners, which are not limited herein. For example, the communication apparatus can include a processor implemented in hardware, or the processor implemented in a program calling manner. Or the communication apparatus includes a processor and a memory. Or the communication apparatus includes a processor and a communication interface.

[0465] It can be understood that, in order to implement the above functions, the device in the embodiments of the present application includes corresponding hardware structures and / or software modules for executing various functions. The units and algorithm steps of the examples described in combination with the embodiments disclosed in the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in the form of hardware or computer software driving hardware depends on a specific application and design constraint condition of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of the embodiments of the present application.

[0466] The embodiments of the present application can divide the functional units of the device / apparatus according to the above method examples, for example, each functional unit can be divided according to each function, or two or more functions can be integrated in one processing unit. The integrated unit can be implemented in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, there can be another division manner.

[0467] The device can be the terminal device or other device or corresponding component. The device can include a memory and one or more processors. The memory and the processor are coupled. The memory is configured to store computer program code including computer instructions. When the processor executes the computer instructions, the device can perform each function or step corresponding to the device performing in the above method embodiments. The structure of the device can refer to the structure of the device (communication device) shown in FIG. 12.

[0468] The core structure of the device (communication device) can be represented as the structure shown in FIG. 13. The device includes a processing module 1301 and a storage module 1303.

[0469] The processing module 1301 (also referred to as a processing unit) can include at least one of a central processing unit (CPU), an application processor (AP), or a communication processor (CP), or an AI processor, such as the processor 401 and / or 408 shown in FIG. 12. The processing module 1301 can perform operations or data processing related to control and / or communication with at least one of the other elements of the user communication device.

[0470] The storage module 1303 can include a volatile memory and / or a non-volatile memory. The storage module is configured to store instructions or data related to at least one of the other modules of the device. For example, it can be implemented as the memory 403 shown in FIG. 12.

[0471] Optionally, it further includes a communication module 1305 (also referred to as a communication unit) for supporting communication of the device (through a communication network) with other devices. For example, the communication module can be connected to a network via wireless communication or wired communication to communicate with other devices. Wireless communication can employ at least one of a cellular communication protocol, such as long term evolution (LTE), long term evolution-advanced (LTE-A), code division multiple access (CDMA), wideband code division multiple access (WCDMA), universal mobile telecommunications system (UMTS), wireless broadband (WiBro), or global system for mobile communications (GSM). Wireless communication can include, for example, short-range communication. Short-range communication can include at least one of wireless fidelity (Wi-Fi), Bluetooth, near field communication (NFC), magnetic stripe transmission (MST), or GNSS. For example, it can be implemented as the communication interface 404 shown in FIG. 12.

[0472] The embodiments of the present application also provide a chip system, which comprises at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through a line. For example, the interface circuit can be used to receive signals from other devices (for example, the memory of the communication device). For another example, the interface circuit can be used to send signals to other devices (for example, the processor). Illustratively, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the communication device can perform various steps in the above embodiments. Of course, the chip system can also comprise other discrete devices, and the embodiments of the present application do not make a specific limitation in this regard.

[0473] The embodiments of the present application also provide a computer storage medium, which comprises computer instructions. When the computer instructions are run on the above communication device, the communication device can perform various functions or steps performed by the mobile phone in the above method embodiments.

[0474] The embodiments of the present application also provide a computer program product, which can make the computer perform various functions or steps performed by the mobile phone in the above method embodiments when the computer program product is run on the computer.

[0475] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions.

[0476] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, another division mode can be adopted, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0477] The units described as separate components can or can not be physically separate, and the components shown as units can be one physical unit or multiple physical units, that is, can be located in one place or can be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.

[0478] In addition, each function unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software function unit.

[0479] When the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, including a plurality of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the method of each embodiment of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0480] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A communication method characterized by comprising: Comprise: Satisfy the first condition, determine the value of the first parameter is the first value; Wherein, the first condition includes at least one of the following: The first task starts; The first data set is generated; Send a first message to the network device, the first message includes information requesting confirmation; Obtain the second message from the network device, the second message includes information of positive confirmation; Or, Obtain the first resource, the first resource is any of the following: the first resource obtained after the first task starts, the first resource obtained after the first data set is generated, the first resource obtained after the first message is sent to the network device, or the first resource obtained after the second message from the network device is obtained; The first parameter is associated with the logical channel priority LCP.

2. The method of claim 1, wherein, The determination of the first value of the first parameter includes: Initialize the value of the first parameter to the first value.

3. The method of claim 1, wherein, The method further comprises: establishing a first logical channel LCH; initialize the value of the first parameter to the second value; The determination of the first value of the first parameter includes: updating the value of the first parameter to the first value.

4. The method according to any one of claims 1 to 3, characterized in that, The first value is 0, or the first value is greater than 0.

5. The method according to any one of claims 1 to 4, characterized in that, The first value is 0, and the method further comprises: Accumulate the first parameter based on the second parameter.

6. The method according to any one of claims 1 to 4, characterized in that, The first value is greater than 0, and the method further comprises: After satisfying the first condition, the first parameter is not accumulated.

7. The method according to any one of claims 1 to 6, characterized in that, The first value is greater than 0, and the first value is greater than or equal to the data amount of the first task or the first data set.

8. The method according to any one of claims 1 to 7, characterized in that, Also include: Satisfy the second condition, update the value of the first parameter to the third value; The second condition includes at least one of the following: The first task ends; Receive a third message from the network device, the third message includes information of negative confirmation; The delay corresponding to the first task or the first data set is reached; Or, The transmission of the first task or the first data set is completed.

9. The method according to any one of claims 1 to 8, characterized in that, The first data set is associated with the first task.

10. The method according to any one of claims 1 to 9, characterized in that, The first task or the first data set is associated with the first LCH.

11. The method according to any one of claims 1 to 10, characterized in that, The first parameter is associated with the first LCH, or the first parameter is associated with the first task or the first data set.

12. The method of claim 11, wherein, The first parameter is associated with the first task or the first data set, and the method further comprises: Determine the third parameter based on at least one first parameter associated with at least one task or at least one data set; Wherein, the at least one task or the at least one data set is associated with the first LCH; the third parameter is associated with the first LCH, and the third parameter is used for LCP related to the first LCH.

13. The method of claim 12, wherein, Determine the third parameter based on at least one first parameter associated with at least one task or at least one data set, including: The value of the third parameter is the sum of the values of the first parameters associated with the at least one task or the at least one data set.

14. The method of any one of claims 3, 10, 11, 12, or 13, wherein, The method further comprises: Obtain the second resource; Assign resources in the second resource to a data set A, the data set A is associated with the first LCH; Subtracting a first size from the value of the first parameter; the first size being a size of data in the data set A associated with the first task or the first data set.

15. The method of claim 12 or 13, wherein, The method further comprises: Subtracting a first total size from the value of the third parameter; the first total size being a size of the data set A.

16. A computer readable storage medium characterized by: A program or instructions, when executed, implement the method of any of claims 1 to 15.

17. A computer program product, characterised in that, A computer program product comprising a program or instructions, when executed on a communications device, cause the communications device to perform the method of any of claims 1 to 15.

18. A communications device, characterized by A circuitry comprising units or modules for performing the method of any of claims 1 to 15.

19. A circuit system, characterized by The circuitry comprises processing circuitry configured to perform the method of any of claims 1 to 15.

20. A communications device / chip, characterized in that, A processor coupled with a memory storing instructions, the processor configured to execute the instructions to implement the method of any of claims 1 to 15.

Citation Information

Patent Citations

  • Logic channel priority processing method and device, storage medium and terminal

    CN111294758A

  • Method for uplink logical channel multiplexing and terminal device

    CN113678531A

  • Method and apparatus for small data transmission

    US20230232442A1

  • Communication method and related device

    WO2024093908A1