A resource selection method, apparatus and terminal

In the V2X scenario, the resource candidate window of the service package is defined according to the QoS parameters, ensuring that the service segmentation is sent in sequence solves the problem of restructuring failure in the existing technology, and the smooth reception and interconnection of the service package are achieved.

CN115835157BActive Publication Date: 2025-07-22DATANG GOHIGH INTELLIGENT & CONNECTED TECH (CHONGQING) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111087646.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-16
Publication Date
2025-07-22
Estimated Expiration
2041-09-16

AI Technical Summary

Technical Problem

In the Long-term Evolution Technology (LTE)-vehicle-Outside Communication (V2X) scenario, the existing resource selection method cannot guarantee the order of sending service packets in segments, resulting in the failure of reorganization and the inability to successfully receive service packets.

Method used

Under the limitation of the quality of service (QoS) parameter, the resource candidate window corresponding to the multiple service segments of the service package is determined, and the time domain location of the last transmission resource of the previous service segment is located before the starting position of the resource candidate window of the next service segment, and the transmission resource is selected in this way.

Benefits of technology

It ensures that multiple segments of the service package are sent in sequence, ensuring that the receiver can successfully reorganize the service package and realize interconnection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115835157B_ABST
    Figure CN115835157B_ABST
Patent Text Reader

Abstract

The present invention provides a resource selection method, apparatus and terminal, relating to the field of communication technologies. The method includes: determining resource candidate windows respectively corresponding to N service segments of a first service packet under the limitation of quality of service (QoS) parameters corresponding to the first service packet, where N is a positive integer greater than 1; for each service segment, selecting a transmission resource from the resource candidate window corresponding to the service segment; wherein, the time domain position of the transmission resource of the last transmission of the first service segment within the first resource candidate window is before the time domain starting position of the second resource candidate window corresponding to the second service segment; the first service segment and the second service segment are any two of the N service segments, and the index of the first service segment is before the index of the second service segment. The present invention can ensure that the N service segments can be sent in order, thereby ensuring that the receiving end can successfully reconstruct each segment of the service packet and realizing interconnection and interoperability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and in particular, to a resource selection method, apparatus, and terminal. Background Art

[0002] In the existing Long Term Evolution (LTE)-Vehicle to Everything (V2X) scenario, there are multiple service packet (or data packet) message types, such as Basic Safety Message (BSM) type, Road Safety Message (RSM), etc. The sizes of service packets of different message types are different, and the sizes of service packets of the same message type may also vary. When transmitting a V2X service packet, at the Radio Link Control (RLC) layer of the sending end, according to the maximum transmission parameters configured for the device, such as the Modulation and Coding Scheme (MCS) index value, the maximum Transport Block Size (TBS) used to carry the service packet transmission is determined. If the determined maximum TBS cannot carry the service packet transmission, that is, the service packet size is greater than the maximum TBS, then the service packet needs to be segmented.

[0003] For the case of V2X service packet segmentation, in direct link transmission, there are single-process and multi-process configurations. In the single-process configuration, only one process is used to process the resource selection and sending of each segment of the service packet. Only after sending one segment can the next segment be sent. Therefore, as long as it is ensured that the service packet segments are processed in order in the process, there will be no out-of-order situation. For the multi-process configuration, each segment can occupy one process for resource selection and sending and receiving, and each process independently performs resource selection and sending. According to the resource selection method specified in the existing 3GPP Release 14, the time-domain range of the resource selection window for each segment of the service packet is [n + T1, n + T2]. Since the resource selection methods of each process are the same, it cannot be guaranteed that the transmission resources selected by the process where the previous segment of the service packet is located are earlier in the time domain than the transmission resources selected by the process where the subsequent segment is located, that is, it cannot be guaranteed that each segment can be sent in order; where n is the arrival time of the service packet, T1 is the sending processing time of the terminal, and T2 is the remaining Packet Delay Budget (PDB).

[0004] At the receiving end for direct link transmission, the RLC layer configures the t-Reordering parameter, i.e., the reordering timer. This timer is used by the acknowledged mode (AM) RLC entity and the unacknowledged mode (UM) RLC entity at the receiving end to detect the loss of RLC protocol data units (PDUs) at the lower layer. When the service packet segments are received by the receiving end and passed to the RLC layer, they are called RLC PDUs. When the receiving end finds that the sequence number (SN) of the received RLC PDU is missing, i.e., not continuous with the SN of the previous received PDU, the reordering timer is started. When the timer times out, the PDUs within the reordering window are reordered according to the SN and delivered to the upper layer for recombination. Among them, the value of t-Reordering at the receiving end RLC layer is undefined and depends on the implementation of the terminal (UE). When the service packet segments cannot be guaranteed to be sent in order, if the configured value of t-Reordering is too small, it may cause the RLC layer to reorder some discontinuous RLC PDUs and deliver them to the upper layer, resulting in the failure of service packet segment recombination and the forced discarding of the service packet. Summary of the Invention

[0005] The present invention provides a resource selection method, device and terminal, which solves the problem that the current resource selection method may lead to recombination failure and the inability to successfully receive service packets when it cannot guarantee that the service packet segments are sent in order.

[0006] To achieve the above object, an embodiment of the present invention provides a resource selection method, including:

[0007] Under the limitation of the quality of service (QoS) parameters corresponding to the first service packet, determine the resource candidate windows corresponding to each of the N service segments of the first service packet, where N is a positive integer greater than 1;

[0008] For each service segment, select a transmission resource in the resource candidate window corresponding to the service segment;

[0009] Wherein, the time domain position of the transmission resource of the last transmission of the first service segment within the first resource candidate window is before the time domain start position of the second resource candidate window corresponding to the second service segment; the first service segment and the second service segment are any two of the N service segments, and the index of the first service segment is before the index of the second service segment.

[0010] Optionally, determining, under the QoS parameter limitation corresponding to the first service packet, the resource candidate window corresponding to each of the N service segments of the first service packet includes:

[0011] Under the QoS parameter limitation corresponding to the first service packet, determining the time domain range of the resource candidate window corresponding to each service segment according to the target time, the sending processing time of the terminal, the index of each service segment, and the resource candidate window configuration parameter;

[0012] Wherein, the target time is the time when the first service packet arrives at the RLC layer and starts to be scheduled.

[0013] Optionally, the resource candidate window configuration parameter is a pre-configured fixed value; or, the resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet.

[0014] Optionally, the resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet, including:

[0015] The resource candidate window configuration parameter is determined by Determine;

[0016] Wherein, delta is the resource candidate window configuration parameter, T1 is the sending processing time of the terminal, T2 is the remaining PDB; wherein, the remaining PDB is related to the PDB of the first service packet in the QoS parameter.

[0017] Optionally, under the QoS parameter limitation corresponding to the first service packet, determining the time domain range of the resource candidate window corresponding to each service segment according to the target time, the sending processing time of the terminal, the index of each service segment, and the resource candidate window configuration parameter, includes:

[0018] Determining the time domain end position of the resource candidate window according to the sending processing time of the terminal, the target time, the remaining PDB, the resource candidate window configuration parameter, and the index of the service segment; wherein, the remaining PDB is related to the PDB of the first service packet in the QoS parameter;

[0019] Determining the time domain start position of the resource candidate window according to the sending processing time of the terminal, the target time, and the time domain end position of the resource candidate window; or, determining the time domain start position of the resource candidate window according to the sending processing time of the terminal, the target time, and the time domain position of the target transmission resource in the resource candidate window; wherein, the target transmission resource is the transmission resource for the last transmission of the service segment corresponding to the resource candidate window.

[0020] Among them, the time domain range of the resource candidate window is: from the time domain start position of the resource candidate window to the time domain end position of the resource candidate window.

[0021] Optionally, the determining the time domain end position of the resource candidate window according to the transmission processing time of the terminal, the target time, the remaining PDB, the resource candidate window configuration parameter, and the index of the service segment includes:

[0022] If i < N, determine the time domain end position of the resource candidate window corresponding to the i-th service segment according to the transmission processing time of the terminal, the target time, the resource candidate window configuration parameter, and the index of the i-th service segment;

[0023] If i = N, determine the time domain position n + T2 as the time domain end position of the resource candidate window corresponding to the i-th service segment;

[0024] Wherein, i is a positive integer, n is the target time, and T2 is the remaining PDB.

[0025] Optionally, the determining the time domain end position of the resource candidate window corresponding to the i-th service segment according to the transmission processing time of the terminal, the target time, the resource candidate window configuration parameter, and the index of the i-th service segment includes:

[0026] Determine the time domain end position of the resource candidate window corresponding to the i-th service segment by n + T2_index = n + T1 + delta * index;

[0027] Wherein, if the time domain position n + T2_index corresponds to a reserved subframe, determine the logical subframe before the time domain position n + T2_index and closest to the time domain position n + T2_index as the time domain end position of the resource candidate window corresponding to the i-th service segment; if the time domain position n + T2_index does not correspond to a reserved subframe, determine the time domain position n + T2_index as the time domain end position of the resource candidate window corresponding to the i-th service segment;

[0028] T1 is the transmission processing time of the terminal, delta is the resource candidate window configuration parameter, and index is the index of the i-th service segment.

[0029] Optionally, the determining the time domain start position of the resource candidate window according to the transmission processing time of the terminal, the target time, and the time domain end position of the resource candidate window includes:

[0030] If i = 1, then determine the time-domain start position of the resource candidate window corresponding to the i-th service segment as the time-domain position n + T1;

[0031] If 1 < i ≤ N, then determine the time-domain start position of the resource candidate window corresponding to the i-th service segment according to the time-domain end position of the resource candidate window corresponding to the (i - 1)-th service segment;

[0032] Wherein, i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

[0033] Optionally, the determining the time-domain start position of the resource candidate window corresponding to the i-th service segment according to the time-domain end position of the resource candidate window corresponding to the (i - 1)-th service segment includes:

[0034] Determine the time-domain start position of the resource candidate window corresponding to the i-th service segment by n + T1_index = n + T2_(index - 1) + X;

[0035] Wherein, if the time-domain position n + T1_index corresponds to a reserved subframe, then determine the logical subframe that is after the time-domain position n + T1_index and closest to the time-domain position n + T1_index as the time-domain start position of the resource candidate window corresponding to the i-th service segment; if the time-domain position n + T1_index does not correspond to a reserved subframe, then determine the time-domain position n + T1_index as the time-domain start position of the resource candidate window corresponding to the i-th service segment;

[0036] n + T2_(index - 1) is the time-domain end position of the resource candidate window corresponding to the (i - 1)-th service segment, and X is a preset value.

[0037] Optionally, the determining the time-domain start position of the resource candidate window according to the transmission processing time of the terminal, the target time, and the time-domain position of the target transmission resource in the resource candidate window includes:

[0038] If i = 1, then determine the time-domain start position of the resource candidate window corresponding to the i-th service segment as the time-domain position n + T1;

[0039] If 1 < i ≤ N, then determine the time-domain start position of the resource candidate window corresponding to the i-th service segment according to the time-domain position of the target transmission resource in the resource candidate window corresponding to the (i - 1)-th service segment;

[0040] Wherein, i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

[0041] Optionally, determining the time domain start position of the resource candidate window corresponding to the i-th service segment according to the time domain position of the target transmission resource in the resource candidate window corresponding to the (i-1)-th service segment includes:

[0042] Determining the time domain start position of the resource candidate window corresponding to the i-th service segment through n+T1_index=n+T3_(index-1)+X;

[0043] Wherein, if the time domain position n+T1_index corresponds to a reserved subframe, determining the logical subframe that is after the time domain position n+T1_index and closest to the time domain position n+T1_index as the time domain start position of the resource candidate window corresponding to the i-th service segment; if the time domain position n+T1_index does not correspond to a reserved subframe, determining the time domain position n+T1_index as the time domain start position of the resource candidate window corresponding to the i-th service segment;

[0044] n+T3_(index-1) is the time domain position of the target transmission resource in the resource candidate window corresponding to the (i-1)-th service segment, and X is a preset value.

[0045] Optionally, for each service segment, selecting a transmission resource in the resource candidate window corresponding to the service segment includes:

[0046] In the resource candidate window corresponding to the i-th service segment, perform transmission resource selection for the i-th service segment;

[0047] If the resource selection is successful, in the resource candidate window corresponding to the (i+1)-th service segment, perform transmission resource selection for the (i+1)-th service segment;

[0048] If the resource selection fails, continue to perform transmission resource selection for the i-th service segment in the updated resource candidate window within a preset time period until the resource selection is successful or discarded due to timeout;

[0049] Wherein, the preset time period is determined by the transmission processing time of the terminal and the time domain range of the resource candidate window, the time domain start position of the updated resource candidate window is determined by the current resource selection moment and the transmission processing time of the terminal, and the time domain end position of the updated resource candidate window is the time domain end position of the resource candidate window corresponding to the i-th service segment.

[0050] Optionally, the resource selection method further includes:

[0051] For each service segment, if the service segment meets the resource reselection condition, perform resource reselection within the resource candidate window corresponding to the service segment; or,

[0052] If all service segments jointly meet the resource reselection condition, resource reselection is sequentially performed in the resource candidate windows corresponding to each service segment according to the order of the service segment indexes.

[0053] To achieve the above object, an embodiment of the present invention provides a resource selection device, including:

[0054] A determination module, configured to determine resource candidate windows corresponding to N service segments of the first service packet respectively under the limitation of quality of service (QoS) parameters corresponding to the first service packet, where N is a positive integer greater than 1;

[0055] A selection module, configured to select transmission resources in the resource candidate window corresponding to each service segment for each service segment;

[0056] Wherein, the time domain position of the transmission resource of the last transmission within the first resource candidate window of the first service segment is before the time domain start position of the second resource candidate window corresponding to the second service segment; the first service segment and the second service segment are any two of the N service segments, and the index of the first service segment is before the index of the second service segment.

[0057] Optionally, the determination module includes:

[0058] A determination sub-module, configured to determine the time domain range of the resource candidate window corresponding to each service segment respectively under the limitation of the QoS parameters corresponding to the first service packet according to the target time, the transmission processing time of the terminal, the index of each service segment, and the resource candidate window configuration parameter;

[0059] Wherein, the target time is the time when the first service packet arrives at the RLC layer and starts to be scheduled.

[0060] Optionally, the resource candidate window configuration parameter is a pre-configured fixed value; or, the resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet.

[0061] Optionally, the resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet, including:

[0062] The resource candidate window configuration parameter is determined by determination;

[0063] Wherein, delta is the resource candidate window configuration parameter, T1 is the transmission processing time of the terminal, and T2 is the remaining PDB; wherein, the remaining PDB is related to the PDB of the first service packet in the QoS parameters.

[0064] Optionally, the determining sub-module includes:

[0065] A first determining unit, configured to determine the time-domain end position of the resource candidate window according to the sending processing time of the terminal, the target time, the remaining PDB, the resource candidate window configuration parameter, and the index of the service segment; wherein, the remaining PDB is related to the PDB of the first service packet in the QoS parameter;

[0066] A second determining unit, configured to determine the time-domain start position of the resource candidate window according to the sending processing time of the terminal, the target time, and the time-domain end position of the resource candidate window; or determine the time-domain start position of the resource candidate window according to the sending processing time of the terminal, the target time, and the time-domain position of the target transmission resource in the resource candidate window; wherein, the target transmission resource is the transmission resource for the last transmission of the service segment corresponding to the resource candidate window;

[0067] Wherein, the time-domain range of the resource candidate window is: from the time-domain start position of the resource candidate window to the time-domain end position of the resource candidate window.

[0068] Optionally, the first determining unit is further configured to:

[0069] If i < N, determine the time-domain end position of the resource candidate window corresponding to the i-th service segment according to the sending processing time of the terminal, the target time, the resource candidate window configuration parameter, and the index of the i-th service segment;

[0070] If i = N, determine the time-domain end position of the resource candidate window corresponding to the i-th service segment as n + T2;

[0071] Wherein, i is a positive integer, n is the target time, and T2 is the remaining PDB.

[0072] Optionally, the first determining unit is further configured to:

[0073] Determine the time-domain end position of the resource candidate window corresponding to the i-th service segment by n + T2_index = n + T1 + delta * index;

[0074] Wherein, if the time-domain position n + T2_index corresponds to a reserved subframe, determine the logical subframe that is before the time-domain position n + T2_index and closest to the time-domain position n + T2_index as the time-domain end position of the resource candidate window corresponding to the i-th service segment; if the time-domain position n + T2_index does not correspond to a reserved subframe, determine the time-domain position n + T2_index as the time-domain end position of the resource candidate window corresponding to the i-th service segment;

[0075] T1 is the transmission processing time of the terminal, delta is a resource candidate window configuration parameter, and index is the index of the i-th service segment.

[0076] Optionally, the second determining unit is specifically configured to:

[0077] If i = 1, determine the time-domain start position of the resource candidate window corresponding to the i-th service segment as the time-domain position n + T1;

[0078] If 1 < i ≤ N, determine the time-domain start position of the resource candidate window corresponding to the i-th service segment according to the time-domain end position of the resource candidate window corresponding to the (i - 1)-th service segment;

[0079] Wherein, i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

[0080] Optionally, the second determining unit is specifically configured to:

[0081] Determine the time-domain start position of the resource candidate window corresponding to the i-th service segment through n + T1_index = n + T2_(index - 1) + X;

[0082] Wherein, if the time-domain position n + T1_index corresponds to a reserved subframe, determine the logical subframe that is after the time-domain position n + T1_index and closest to the time-domain position n + T1_index as the time-domain start position of the resource candidate window corresponding to the i-th service segment; if the time-domain position n + T1_index does not correspond to a reserved subframe, determine the time-domain position n + T1_index as the time-domain start position of the resource candidate window corresponding to the i-th service segment;

[0083] n + T2_(index - 1) is the time-domain end position of the resource candidate window corresponding to the (i - 1)-th service segment, and X is a preset value.

[0084] Optionally, the second determining unit is specifically configured to:

[0085] If i = 1, then determine the time domain starting position of the resource candidate window corresponding to the i-th service segment as n + T1;

[0086] If 1 < i ≤ N, then determine the time domain starting position of the resource candidate window corresponding to the i-th service segment according to the time domain position of the target transmission resource in the resource candidate window corresponding to the (i - 1)-th service segment;

[0087] Wherein, i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

[0088] Optionally, the second determining unit is specifically configured to:

[0089] Determine the time domain starting position of the resource candidate window corresponding to the i-th service segment through n + T1_index = n + T3_(index - 1) + X;

[0090] Wherein, if the time domain position n + T1_index corresponds to a reserved subframe, then determine the logical subframe that is after the time domain position n + T1_index and closest to the time domain position n + T1_index as the time domain starting position of the resource candidate window corresponding to the i-th service segment; if the time domain position n + T1_index does not correspond to a reserved subframe, then determine the time domain position n + T1_index as the time domain starting position of the resource candidate window corresponding to the i-th service segment;

[0091] n + T3_(index - 1) is the time domain position of the target transmission resource in the resource candidate window corresponding to the (i - 1)-th service segment, and X is a preset value.

[0092] Optionally, the selection module includes:

[0093] A selection sub-module, configured to perform transmission resource selection for the i-th service segment in the resource candidate window corresponding to the i-th service segment;

[0094] A first processing sub-module, configured to, if the resource selection is successful, perform transmission resource selection for the (i + 1)-th service segment in the resource candidate window corresponding to the (i + 1)-th service segment;

[0095] A second processing sub-module, configured to, if the resource selection fails, continue to perform transmission resource selection for the i-th service segment in the updated resource candidate window within a preset time period until the resource selection is successful or discarded due to timeout;

[0096] Among them, the preset time period is determined by the transmission processing time of the terminal and the time domain range of the resource candidate window. The start position of the time domain of the updated resource candidate window is determined by the current resource selection moment and the transmission processing time of the terminal. The end position of the time domain of the updated resource candidate window is the end position of the time domain of the resource candidate window corresponding to the i-th service segment.

[0097] Optionally, the resource selection device further includes:

[0098] A first reselection module, configured to, for each service segment, if the service segment meets the resource reselection condition, perform resource reselection within the resource candidate window corresponding to the service segment; or,

[0099] A second reselection module, configured to, if all service segments jointly meet the resource reselection condition, perform resource reselection in sequence within the resource candidate windows corresponding to each service segment according to the order of the service segment indexes.

[0100] To achieve the above object, an embodiment of the present invention provides a terminal, including: a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the resource selection method described above are implemented.

[0101] To achieve the above object, an embodiment of the present invention provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the resource selection method described above are implemented.

[0102] The beneficial effects of the above technical solutions of the present invention are:

[0103] In the embodiment of the present invention, by determining the resource candidate windows corresponding to the N service segments of the first service packet under the QoS parameters of the first service packet, and for each service segment, selecting transmission resources in the resource candidate window corresponding to the service segment. Since, for any two service segments among the N service segments where the index of the first service segment is before the index of the second service segment, the time domain position of the transmission resource of the last transmission of the first service segment in the first resource candidate window is before the start position of the time domain of the second resource candidate window corresponding to the second service segment, it can be ensured that the N service segments of the first service packet can be sent in order, and further ensure that the receiving end can successfully recombine each segment of the service packet, realizing interconnection and interoperability. Description of the Drawings

[0104] Figure 1 A schematic diagram showing the sensing window and the selection window of the embodiment of the present invention;

[0105] Figure 2Flowchart showing the resource selection method according to an embodiment of the present invention;

[0106] Figure 3 Schematic diagram showing the resource candidate window corresponding to each service segment according to an embodiment of the present invention;

[0107] Figure 4 Block diagram showing the resource selection device according to an embodiment of the present invention;

[0108] Figure 5 Block diagram showing the terminal according to an embodiment of the present invention. Detailed implementation manners

[0109] To make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will be described in detail with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help a comprehensive understanding of the embodiments of the present invention. Therefore, those skilled in the art should clearly understand that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. In addition, descriptions of known functions and configurations are omitted for clarity and conciseness.

[0110] It should be understood that the term "one embodiment" or "an embodiment" mentioned throughout the specification means that a specific feature, structure or characteristic related to the embodiment is included in at least one embodiment of the present invention. Therefore, the appearances of "in one embodiment" or "in an embodiment" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner.

[0111] In various embodiments of the present invention, it should be understood that the order numbers of the following processes do not mean the order of execution in sequence, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

[0112] In addition, the terms "system" and "network" are often used interchangeably herein.

[0113] In the embodiments provided in the present application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.

[0114] Specifically, the embodiments of the present invention provide a resource selection method, which solves the problem that the current resource selection method cannot ensure that each segment of the service packet is sent in sequence, resulting in recombination failure and inability to successfully receive the service packet.

[0115] Specifically, the resource selection process is as follows:

[0116] In the Mode 4 of direct link resource selection, the basic mechanism of resource allocation is sensing + semi-persistent scheduling (SPS).

[0117] The basic idea is that the node can understand the resource occupancy of other nodes in real time and the subsequent resource occupancy through real-time sensing. When the node has the need for resource selection / reselection, it selects appropriate idle resources to send according to the understood resource occupancy. Once selected, it will continuously occupy under certain conditions unless the trigger condition for resource reselection is met and then it will change resources.

[0118] Briefly speaking, the resource selection process is as follows: (1) Exclude resources within the selection window according to the decoding and measurement information corresponding to the successfully decoded scheduling assignment (SA) in the sensing information; (2) Smooth the power according to the sensing information to determine the candidate resource set; (3) Select appropriate resources from the determined candidate resource set.

[0119] Among them, two windows are mainly involved: the sensing window and the selection window. The time relationship between these two windows is as Figure 1 shown.

[0120] Step1: Set all candidate resources in the resource selection window as available;

[0121] Step2: The resource exclusion process (that is, obtaining the available resource set): Here, resources within the selection window are selected, but the information obtained now is only the information within the sensing window. That is, it is necessary to infer the occupancy of resources within the selection window based on the information obtained within the sensing window and further screen the resources within the selection window. Due to differences in the service cycle (i.e., the SPS cycle: i*P), the service start point, and the SPS resource duration (SPS counter value), etc., the number and interval of SAs of other nodes received by the node within the sensing window may be different. Here, the number of SAs refers to the number of SAs corresponding to a transport block (TB), including the initial transmission SA and the retransmission SA.

[0122] Step2-1: Determine the valid latest SA: Only the latest SA that reserves resources in time belonging to the selection window and after the selection window among the information of other nodes obtained within the sensing window is valid;

[0123] Step2-2: Exclude the candidate subframes corresponding to the skip subframes;

[0124] Step2-3: Determine whether a certain resource within the selection window needs to be excluded. The candidate resources that meet the following two conditions need to be excluded: The SA indicates the next resource reservation, and there will be a collision between the TB sent by the candidate resource and the TB sent by the subsequent resource corresponding to the candidate resource; Perform Physical SideLink Shared Channel Reference Signal Received Power (PSSCH-RSRP) measurement according to the decoded SA, and the measured value is higher than the RSRP threshold;

[0125] Step2-4: Determine the proportion (duty cycle) of the remaining available resources within the selection window;

[0126] Step2-5: When the proportion of the current remaining available resources is greater than or equal to 20%, the resource exclusion process ends; when the proportion of the current remaining available resources is less than 20%, increase the current transceiver node power threshold value (3dB, the initial value is the system configuration during each resource selection, and it will be iteratively updated subsequently), and reduce the resource reuse range to re-perform resource deduction.

[0127] Step3: Selection of the primary selection process (select the lowest 20% of the resources from the resources greater than 20%): For the remaining resources within the selection window that are not excluded, perform power averaging, sorting, and select 20% of the resources with lower smooth power.

[0128] Primary and retransmission resource selection process when the number of transmissions is 2: Since each SA indicates the position indication of 2 data resources, that is, the data resources need to select the primary transmission resources and the retransmission resources at the same time. Select 2 resources from the 20% of the resources with the lowest power, ensuring that the interval between these two resources is within [-15, 15] subframes and the interval cannot be 0.

[0129] As Figure 2 shown, an embodiment of the present invention provides a resource selection method, including:

[0130] Step 21: Under the QoS parameter limitation corresponding to the first service packet, determine the resource candidate windows corresponding to each of the N service segments of the first service packet.

[0131] Optionally, the service segment may refer to an RLC PDU. For example, the first service packet can be divided into N RLC PDUs at the RLC layer according to the transmission parameters; where N is a positive integer greater than 1.

[0132] Optionally, the QoS parameters corresponding to the first service packet may include, but are not limited to: the PDB of the first service packet. The resource candidate windows corresponding to the N service segments of the first service packet are all within the time domain range [n + T1, n + T2]. Where n is the target time, that is, the time when the first service packet arrives at the RLC layer and starts to be scheduled; T1 is the transmission processing time of the terminal (for example, T1 is 4 ms); T2 is the remaining PDB, and the remaining PDB is related to the PDB of the first service packet in the QoS parameters.

[0133] Optionally, the remaining PDB can be determined by the PDB of the first service packet, the receiving end processing time, and the waiting time before resource selection, where the waiting time before resource selection is a variable; for example: the PDB of the first service packet is 100 ms, the receiving end processing time is 2 ms, and when the waiting time before resource selection is 0, then T2 can be 98 ms; when the waiting time before resource selection is not 0 (such as the waiting time before resource selection is 5 ms), then T2 can be 93 ms.

[0134] Among them, the time domain position of the transmission resource of the last transmission of the first service segment within the first resource candidate window is before the time domain start position of the second resource candidate window corresponding to the second service segment; the first service segment and the second service segment are any two of the N service segments, and the index of the first service segment is before the index of the second service segment.

[0135] For example: the index of the first service segment being before the index of the second service segment can be understood as the order of the first service segment being before the order of the second service segment. Taking N = 5 and the indexes of each segment being 0, 1, 2, 3, 4 as an example, if the index of the first service segment is 1, then the index of the second service segment is 2, which can be called the index of the first service segment being before the index of the second service segment; if the index of the first service segment is 1, then the index of the second service segment is 3, which can also be called the index of the first service segment being before the index of the second service segment.

[0136] Optionally, the time-domain position of the transmission resource of the last transmission of the first service segment within the first resource candidate window is before the time-domain start position of the second resource candidate window corresponding to the second service segment, and may include: the time-domain end position of the first resource candidate window corresponding to the first service segment is before the time-domain start position of the second resource candidate window corresponding to the second service segment; or, the time-domain start position of the first resource candidate window is before the time-domain start position of the second resource candidate window, the time-domain end position of the first resource candidate window is after the time-domain start position of the second resource candidate window, and the time-domain position of the transmission resource of the last transmission of the first service segment within the first resource candidate window is before the time-domain start position of the second resource candidate window, that is, the second resource candidate window can be adjusted according to the resource selection result within the first resource candidate window to reduce resource waste.

[0137] Step 22: For each service segment, select a transmission resource in the resource candidate window corresponding to the service segment.

[0138] In this embodiment, under the QoS parameter limitation corresponding to the first service packet, the resource candidate windows corresponding to the N service segments of the first service packet are determined, and for each service segment, a transmission resource is selected in the resource candidate window corresponding to the service segment. Since for any two service segments where the index of the first service segment among the N service segments is before the index of the second service segment, the time-domain position of the transmission resource of the last transmission of the first service segment within the first resource candidate window is before the time-domain start position of the second resource candidate window corresponding to the second service segment, when processes are allocated to multiple service segments of the first service packet, the time-domain position of the transmission resource selected by the latter service segment (i.e., the second service segment) can be later than the time-domain position of the transmission resource selected by the former service segment (i.e., the first service segment) when selecting resources, so as to ensure that the sending time of the former service segment at the sending end is earlier than the sending time of the latter service segment, so as to ensure that the receiving end can receive each service segment of the first service packet in the index order of the service segments under any configuration of t-Reordering, and further ensure that the receiving end can successfully reconstruct each segment of the service packet to achieve interconnection and interoperability.

[0139] Optionally, the determining the resource candidate windows corresponding to the N service segments of the first service packet under the QoS parameter limitation corresponding to the first service packet includes:

[0140] Under the QoS parameter limitation corresponding to the first service packet, determine the time-domain range of the resource candidate window corresponding to each service segment according to the target time, the sending processing time of the terminal, the index of each service segment, and the resource candidate window configuration parameter;

[0141] Wherein, the target moment is the moment when the first service packet arrives at the RLC layer and starts to be scheduled.

[0142] Wherein, the resource candidate windows corresponding to the N service segments of the first service packet are all within the time domain range [n + T1, n + T2]. There may be an interval between the resource candidate windows corresponding to different service segments, or there may be partial overlap between the resource candidate windows corresponding to different service segments, but it is necessary to ensure that the time domain position of the transmission resource of the last transmission of the previous service segment is before the time domain start position of the resource candidate window corresponding to the subsequent service segment.

[0143] For example: The time domain resource range of the resource candidate windows of each service segment of the first service packet is: from the time domain start position of the resource candidate window to the time domain end position of the resource candidate window. Among them, for the first service segment among the service segments of the first service packet, the time domain start position of the corresponding resource candidate window can be determined, which is the time domain position n + T1, and for the last service segment among the service segments of the first service packet, the time domain end position of the corresponding resource candidate window can also be determined, which is the time domain position n + T2; in addition, the time domain ranges of the resource candidate windows corresponding to the remaining service segments can depend on one or more of the number N of service segments, the service segment index, and the time domain position of the selected transmission resource corresponding to the service segment.

[0144] Optionally, determining the time domain range of the resource candidate window corresponding to each service segment according to the target moment, the sending processing time of the terminal, the index of each service segment, and the resource candidate window configuration parameter under the QoS parameter limitation corresponding to the first service packet includes:

[0145] Determining the time domain end position of the resource candidate window according to the sending processing time of the terminal, the target moment, the remaining PDB, the resource candidate window configuration parameter, and the index of the service segment; wherein, the remaining PDB is related to the PDB of the first service packet in the QoS parameter (specifically, refer to the above embodiments).

[0146] Determining the time domain start position of the resource candidate window according to the sending processing time of the terminal, the target moment, and the time domain end position of the resource candidate window; or determining the time domain start position of the resource candidate window according to the sending processing time of the terminal, the target moment, and the time domain position of the target transmission resource in the resource candidate window; wherein, the target transmission resource is the transmission resource of the last transmission of the service segment corresponding to the resource candidate window.

[0147] Among them, the time domain range of the resource candidate window is: from the start position of the time domain of the resource candidate window to the end position of the time domain of the resource candidate window.

[0148] For example: Determine the end position of the time domain of the resource candidate window according to the transmission processing time of the terminal, the target time, the remaining PDB, the resource candidate window configuration parameters, and the index of the service segment; and determine the start position of the time domain of the resource candidate window according to the transmission processing time of the terminal, the target time, and the end position of the time domain of the resource candidate window; that is, the time domain range of the resource candidate window corresponding to each service segment is: from the start position of the time domain of the resource candidate window to the end position of the time domain of the resource candidate window.

[0149] In this embodiment, the resource candidate windows corresponding to each service segment are spaced apart from each other, or it can be said that the time domain ranges of the resource candidate windows corresponding to each service segment do not overlap, and the time domain position of the resource candidate window corresponding to the previous service segment is before the time domain range of the resource candidate window corresponding to the next service segment, so as to ensure that when selecting resources for each service segment, the time domain position of the transmission resource selected by the next service segment is later than the time domain position of the transmission resource selected by the previous service segment, so as to ensure that the transmission time of the previous service segment at the sending end is earlier than the transmission time of the next service segment, so as to ensure that the receiving end can receive each service segment of the first service packet in the index order of the service segments, and further ensure that the receiving end can successfully reconstruct each segment of the service packet and achieve interconnection and interoperability.

[0150] Another example: Determine the end position of the time domain of the resource candidate window according to the transmission processing time of the terminal, the target time, the remaining PDB, the resource candidate window configuration parameters, and the index of the service segment; determine the start position of the time domain of the resource candidate window according to the transmission processing time of the terminal, the target time, and the time domain position of the target transmission resource in the resource candidate window, where the target transmission resource is the transmission resource for the last transmission of the service segment corresponding to the resource candidate window; that is, the time domain range of the resource candidate window corresponding to each service segment is: from the start position of the time domain of the resource candidate window to the end position of the time domain of the resource candidate window.

[0151] In this embodiment, the time domain range of the resource candidate window corresponding to the latter service segment can be adjusted according to the resource selection result within the resource candidate window corresponding to the former service segment (i.e., the selected transmission resources of the former service segment), so as to ensure that when there are available resources after the time domain position of the transmission resources of the last transmission of the former service segment within the resource candidate window corresponding to the former service segment, these available resources can be used as the optional resources for the latter service segment, so as to reduce resource waste, facilitate improving the transmission efficiency, and ensure that when selecting resources for each service segment, the time domain position of the transmission resources selected for the latter service segment is later than that of the transmission resources selected for the former service segment, so as to ensure that the transmission time of the former service segment at the sending end is earlier than that of the latter service segment, so as to ensure that the receiving end can receive each service segment of the first service packet in the index order of the service segments, and further ensure that the receiving end can successfully reconstruct each segment of the service packet to achieve interconnection and interoperability.

[0152] Optionally, in at least one embodiment of the present invention, the resource candidate window configuration parameter is a preconfigured fixed value (for example: the preconfigured fixed value can be 20 ms, or other values other than this, and the embodiments of the present invention are not limited thereto); or, the resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet.

[0153] Among them, the resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet, including: the resource candidate window configuration parameter is determined by determination (that is, the resource candidate window configuration parameter delta is the ceiling value of (T2 - T1 + 1) / N); where delta is the resource candidate window configuration parameter, T1 is the sending processing time of the terminal, and T2 is the remaining PDB; where the remaining PDB is related to the PDB of the first service packet in the QoS parameter (specifically, refer to the above embodiment).

[0154] Optionally, the method for determining the time domain end position of the resource candidate window of each service segment, that is, according to the sending processing time of the terminal, the target time, the remaining PDB, the resource candidate window configuration parameter, and the index of the service segment, to determine the time domain end position of the resource candidate window, includes:

[0155] If i < N, then according to the sending processing time of the terminal, the target time, the resource candidate window configuration parameter, and the index of the i-th service segment, determine the time domain end position of the resource candidate window corresponding to the i-th service segment;

[0156] If i = N, then determine the time-domain end position of the resource candidate window corresponding to the i-th service segment as n + T2;

[0157] where i is a positive integer, n is the target time, and T2 is the remaining PDB.

[0158] In this embodiment, for the last service segment in each service segment of the first service packet, the time-domain end position of the corresponding resource candidate window is n + T2, which is beneficial to improving the resource utilization rate of service transmission; for the time-domain end positions of the resource candidate windows corresponding to the remaining service segments other than this, they can depend on the terminal's transmission processing time T1, the target time n, the resource candidate window configuration parameter delta, and the service segment index index, which is beneficial to ensuring the reliable transmission of each service segment.

[0159] Optionally, the determining the time-domain end position of the resource candidate window corresponding to the i-th service segment according to the terminal's transmission processing time, the target time, the resource candidate window configuration parameter, and the index of the i-th service segment includes:

[0160] Determine the time-domain end position of the resource candidate window corresponding to the i-th service segment by n + T2_index = n + T1 + delta * index;

[0161] where T1 is the terminal's transmission processing time, delta is the resource candidate window configuration parameter, and index is the index of the i-th service segment.

[0162] Optionally, when determining the time-domain end position of the resource candidate window corresponding to the i-th service segment by n + T2_index = n + T1 + delta * index, if the time-domain position n + T2_index corresponds to a reserved subframe, then determine the logical subframe that is before the time-domain position n + T2_index and closest to the time-domain position n + T2_index as the time-domain end position of the resource candidate window corresponding to the i-th service segment; if the time-domain position n + T2_index does not correspond to a reserved subframe, then determine the time-domain position n + T2_index as the time-domain end position of the resource candidate window corresponding to the i-th service segment.

[0163] Optionally, a way to determine the time-domain start position of the resource candidate window for each service segment, that is, determine the time-domain start position of the resource candidate window according to the terminal's transmission processing time, the target time, and the time-domain end position of the resource candidate window, includes:

[0164] If i = 1, the time domain position n + T1 is determined as the start position of the time domain of the resource candidate window corresponding to the i-th service segment;

[0165] If 1 < i ≤ N, the start position of the time domain of the resource candidate window corresponding to the i-th service segment is determined according to the end position of the time domain of the resource candidate window corresponding to the (i - 1)-th service segment;

[0166] where i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

[0167] In this embodiment, for the first service segment in each service segment of the first service packet, the start position of the time domain of the corresponding resource candidate window is n + T1, which is beneficial to improving the resource utilization rate of service transmission; for the start positions of the time domain of the resource candidate windows corresponding to the remaining service segments other than this, they can depend on the end position of the time domain of the resource candidate window corresponding to the previous service segment, so as to ensure that when selecting resources, the time domain position of the transmission resources selected by the subsequent service segment is later than the time domain position of the transmission resources selected by the previous service segment, so as to ensure that the transmission time of the previous service segment at the sending end is earlier than the transmission time of the subsequent service segment, so as to ensure that the receiving end can receive each service segment of the first service packet in the index order of the service segments, and further ensure that the receiving end can successfully recombine each segment of the service packet to achieve interconnection and interoperability.

[0168] Optionally, the determining the start position of the time domain of the resource candidate window corresponding to the i-th service segment according to the end position of the time domain of the resource candidate window corresponding to the (i - 1)-th service segment includes:

[0169] The start position of the time domain of the resource candidate window corresponding to the i-th service segment is determined by n + T1_index = n + T2_(index - 1) + X; where n + T2_(index - 1) is the end position of the time domain of the resource candidate window corresponding to the (i - 1)-th service segment, and X is a preset value.

[0170] For example: X can be a pre-configured fixed value; optionally, X is 1 ms, so as to ensure that when selecting resources, the time domain position of the transmission resources selected by the subsequent service segment is later than the time domain position of the transmission resources selected by the previous service segment and reduce resource waste.

[0171] Optionally, when determining the time-domain start position of the resource candidate window corresponding to the i-th service segment through n+T1_index=n+T2_(index-1)+X, if the time-domain position n+T1_index corresponds to a reserved subframe, determine that the logical subframe after the time-domain position n+T1_index and closest to the time-domain position n+T1_index is the time-domain start position of the resource candidate window corresponding to the i-th service segment; if the time-domain position n+T1_index does not correspond to a reserved subframe, determine that the time-domain position n+T1_index is the time-domain start position of the resource candidate window corresponding to the i-th service segment.

[0172] Optionally, another way to determine the time-domain start position of the resource candidate window for each service segment, that is, to determine the time-domain start position of the resource candidate window according to the transmission processing time of the terminal, the target time, and the time-domain position of the target transmission resource in the resource candidate window, includes:

[0173] If i=1, then determine the time-domain position n+T1 as the time-domain start position of the resource candidate window corresponding to the i-th service segment;

[0174] If 1<i≤N, then determine the time-domain start position of the resource candidate window corresponding to the i-th service segment according to the time-domain position of the target transmission resource in the resource candidate window corresponding to the (i-1)-th service segment;

[0175] Where i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

[0176] In this embodiment, for the first service segment in each service segment of the first service packet, the time-domain start position of the corresponding resource candidate window is n+T1, which is beneficial to improving the resource utilization rate of service transmission; for the resource candidate windows corresponding to the remaining service segments other than this, the time-domain start position can depend on the time-domain position of the transmission resource of the last transmission selected by the previous service segment, so as to ensure that when selecting resources, the time-domain position of the transmission resource selected by the subsequent service segment is later than the time-domain position of the transmission resource selected by the previous service segment, so as to ensure that the transmission time of the previous service segment at the sending end is earlier than the transmission time of the subsequent service segment, so as to ensure that the receiving end can receive each service segment of the first service packet in the index order of the service segments, and further ensure that the receiving end can successfully reconstruct each segment of the service packet, achieve interconnection and interoperability, and further be beneficial to improving the resource utilization rate and transmission efficiency.

[0177] Optionally, determining the time domain start position of the resource candidate window corresponding to the i-th service segment according to the time domain position of the target transmission resource in the resource candidate window corresponding to the (i-1)-th service segment includes:

[0178] Determining the time domain start position of the resource candidate window corresponding to the i-th service segment through n+T1_index=n+T3_(index-1)+X; where n+T3_(index-1) is the time domain position of the target transmission resource in the resource candidate window corresponding to the (i-1)-th service segment, and X is a preset value.

[0179] For example: X can be a pre-configured fixed value; optionally, X is 1ms, so as to ensure that when selecting resources, the time domain position of the transmission resource selected by the subsequent service segment is later than that of the transmission resource selected by the previous service segment, and reduce resource waste.

[0180] Optionally, when determining the time domain start position of the resource candidate window corresponding to the i-th service segment through n+T1_index=n+T3_(index-1)+X, if the time domain position n+T1_index corresponds to a reserved subframe, then determine that the logical subframe after the time domain position n+T1_index and closest to the time domain position n+T1_index is the time domain start position of the resource candidate window corresponding to the i-th service segment; if the time domain position n+T1_index does not correspond to a reserved subframe, then determine that the time domain position n+T1_index is the time domain start position of the resource candidate window corresponding to the i-th service segment.

[0181] In the embodiments of the present invention, the time domain range of the resource candidate window for each service segment is [n+T1_index, n+T2_index];

[0182] Wherein, when index is the index of the first service segment, this T1_index can be T1; when index is the index of other service segments except this, T1_index can be T2_(index-1)+X, or T1_index can be T3_(index-1)+X;

[0183] Wherein, when index is the index of the last service segment, this T2_index is T2, and when index is the index of other service segments except this, T2_index can be T1+delta*index.

[0184] Optionally, for each service segment, selecting a transmission resource in the resource candidate window corresponding to the service segment includes:

[0185] In the resource candidate window corresponding to the i-th service segment, perform transmission resource selection for the i-th service segment;

[0186] If the resource selection is successful, then in the resource candidate window corresponding to the (i + 1)-th service segment, perform transmission resource selection for the (i + 1)-th service segment;

[0187] If the resource selection fails, then within a preset time period, continue to perform transmission resource selection for the i-th service segment in the updated resource candidate window until the resource selection is successful or timed out and discarded;

[0188] Wherein, the preset time period is determined by the transmission processing time of the terminal and the time domain range of the resource candidate window, the time domain start position of the updated resource candidate window is determined by the current resource selection moment and the transmission processing time of the terminal, and the time domain end position of the updated resource candidate window is the time domain end position of the resource candidate window corresponding to the i-th service segment.

[0189] For example: In the resource candidate window [n + T1_i, n + T2_i] corresponding to the i-th service segment, if the transmission resource selection for the i-th service segment fails, then the scheduling for the i-th service segment can be continued in the next millisecond. For example: continue to perform scheduling for the i-th service segment in the resource candidate window [n + T1_i + 1, n + T2_i] until the resource selection is successful, or if the current resource selection moment is less than the transmission processing time of the terminal from the time domain position n + T1_i + 1 (that is, exceeding the preset time period), then it is timed out and discarded.

[0190] Optionally, as an implementation manner, the resource selection method further includes:

[0191] For each service segment, if the service segment meets the resource reselection condition, then perform resource reselection within the resource candidate window corresponding to the service segment.

[0192] In this embodiment, the maintenance of the grant of each service segment process can be implemented by using Counter and probability P. For a process with an SPS period greater than or equal to 100 ms, Counter is a random number taken within 5 to 15 (such as taking the value of 8). Then, for a certain service segment, Counter gradually decreases. When its count reaches 1, it is determined whether to perform resource reselection through probability P. If the probability is greater than P, it is determined that the resource reselection condition is met, and then resource reselection is performed for the service segment when the Counter value is 0.

[0193] Optionally, as another implementation manner, the resource selection method further includes:

[0194] If all service segments jointly meet the resource reselection condition, resource reselection is sequentially performed in the resource candidate windows corresponding to each service segment according to the order of the service segment indexes.

[0195] In this embodiment, the maintenance of the grant of each service segment process can adopt an associated maintenance method, that is, resource reselection is performed simultaneously for each segment process. Specifically, a Counter is jointly counted for all service segments, and the Counter gradually decreases. For example, when the Counter for a certain service segment is counted as 2, the next service segment of this service segment is continuously counted based on the Counter of 2, that is, the Counter decreases to 1. At this time, if it is determined through the probability P that resource reselection needs to be performed, it is determined that all service segments jointly meet the resource reselection condition, and resource reselection is sequentially performed in the resource candidate windows corresponding to each service segment according to the order of the service segment indexes.

[0196] For example: in the manner of determining the time domain end position of the resource candidate window according to the transmission processing time of the terminal, the target time, the remaining PDB, the resource candidate window configuration parameters, and the index of the service segment; determining the time domain start position of the resource candidate window according to the transmission processing time of the terminal, the target time, and the time domain position of the target transmission resource in the resource candidate window, so as to determine the time domain range of the resource candidate window corresponding to each service segment. Preferably, an associated maintenance method of each service segment process grant is adopted. When all service segments jointly meet the resource reselection condition, resource reselection is sequentially performed in the resource candidate windows corresponding to each service segment according to the order of the service segment indexes, so as to ensure that each service segment can be transmitted in order before and after resource reselection.

[0197] The resource selection method of the present invention is described below in conjunction with specific embodiments:

[0198] Embodiment 1:

[0199] Scenario: The service packet period is 100 ms, the PDB is 100 ms, the SPS period is 100 ms, the T1 value is 4 ms, and the T2 value is 98 ms (here, it is assumed that the waiting time before resource selection is 0, that is, T2 = PDB - 2 ms, and this 2 ms is the receiving end processing time). Hybrid automatic repeat request (HARQ) is enabled (i.e., HARQ on), and each service segment process is independently maintained.

[0200] Pre - configuration: The resource candidate window configuration parameter delta (or represented by segment_resource_delta) is configured as follows:

[0201] segment_resource_delta 20ms OPTIONAL;

[0202] The resource candidate window lengths of each service segment are the same and fixed. The resource candidate window configuration parameter delta is a pre-configured fixed value, i.e., 20ms. The time-domain end position of the resource candidate window is determined based on n + T2_index = n + T1 + delta * index, and the time-domain start position of the resource candidate window is determined based on n + T1_index = n + T2_(index - 1) + X, where X = 1ms.

[0203] For example: The first service packet arrives for the first time at time Ta, that is, Ta can also be referred to as the target time. Since the transmission parameter requirements are not met, the first service packet needs to be divided into N service segments of the same size for transmission. Taking the first service packet divided into 3 service segments of the same size for transmission as an example, their respective corresponding resource candidate windows are as Figure 3 shown.

[0204] Specifically, the first service packet is first segmented into 3 RLC PDUs at the RLC layer according to the transmission parameters and sent to the Medium Access Control (MAC) buffer, and then the corresponding MAC PDUs are scheduled in sequence according to the indexes of each service segment.

[0205] Please continue to refer to Figure 3 , and the specific processing flow is as follows:

[0206] First, schedule the MAC PDU corresponding to the first service segment: allocate an idle process number and select a transmission resource. It can be obtained from the pre-configuration that the time-domain range of the resource candidate window corresponding to the first service segment is [Ta + 4ms, Ta + 24ms];

[0207] If the selection of the transmission resource for the first service segment is successful within the time-domain range of the resource candidate window corresponding to the first service segment, then continue the scheduling of the next service segment (i.e., the second service segment) after the first service segment. If the selection of the transmission resource for the first service segment fails within the time-domain range of the resource candidate window corresponding to the first service segment, then continue to schedule the first service segment at time Ta + 1ms, that is, the time-domain range of the corresponding resource candidate window at this time is [Ta + 5ms, Ta + 24ms], and the other service segments continue to wait until the first service segment is successfully scheduled or discarded due to timeout;

[0208] When the scheduling of the first service segment is successful and the scheduling of the second service segment is performed, the time domain range of the resource candidate window corresponding to the second service segment is [Ta + 25ms, Ta + 45ms]. The resource selection process for the second service segment is similar to the resource selection process of the first service segment above. To avoid repetition, it will not be elaborated here.

[0209] If the scheduling of the second service segment is successful, continue to schedule the third service segment in a similar manner as above. The time domain range of the resource candidate window corresponding to the third service segment is [Ta + 46ms, Ta + 98ms].

[0210] Embodiment 2:

[0211] Scenario: The service packet period is 100ms, the PDB is 100ms, the SPS period is 100ms, the T1 value is 4ms, the T2 value is 98ms (here, the waiting time before resource selection is taken as 0, that is, T2 = PDB - 2ms, and this 2ms is the receiving end processing time), the Hybrid Automatic Repeat Request (HARQ) is enabled (i.e., HARQ on), and each service segment's process is independently maintained.

[0212] Pre - configuration: The resource candidate window configuration parameter delta (or represented by segment_resource_delta) is configured as follows:

[0213] N is the number of service segments.

[0214] The resource candidate windows of each service segment have the same and fixed length. The resource candidate window configuration parameter If N is 3, then delta should be taken as 32ms. The time domain end position of the resource candidate window is determined based on n + T2_index = n + T1 + delta * index, and the time domain start position of the resource candidate window is determined based on n + T1_index = n + T2_(index - 1)+X, where X = 1ms. For the specific scheduling process, refer to the scheduling process of each service segment in Embodiment 1 above. To avoid repetition, it will not be elaborated here.

[0215] Embodiment 3:

[0216] Scenario: The service packet period is 100 ms, the PDB is 100 ms, the SPS period is 100 ms, the T1 value is 4 ms, and the T2 value is 98 ms (here, the waiting time before resource selection is 0 as an example, that is, T2 = PDB - 2 ms, and this 2 ms is the receiving - end processing time). Hybrid automatic repeat request (HARQ) is enabled (i.e., HARQ on), and each service segment - related process is independently maintained or jointly maintained.

[0217] Pre - configuration: The resource candidate window configuration parameter delta (or represented by segment_resource_delta) is configured as follows:

[0218] segment_resource_delta 20 ms OPTIONAL;

[0219] The resource candidate window lengths of each service segment are different, and the minimum value of the window length is fixed. The resource candidate window configuration parameter delta is a pre - configured fixed value, that is, 20 ms. The time - domain end position of the resource candidate window is determined based on n + T2_index = n + T1+delta*index, and the time - domain start position of the resource candidate window is determined based on n + T1_index = n + T3_(index - 1)+X, where X = 1 ms.

[0220] Specifically, the grant maintenance of each service segment process is independent: When the first service packet arrives for resource selection, the time - domain range of the resource candidate window corresponding to the first service segment is [Ta + 4 ms, Ta + 24 ms]; if the time - domain position of the re - transmitted resource selected by the first service segment is Ta + 8 ms, then the time - domain start position of the resource candidate window corresponding to the second service segment is Ta + 9 ms, that is, the time - domain range of the resource candidate window of the second service segment is [Ta + 9 ms, Ta + 45 ms]; if the time - domain position of the re - transmitted resource selected by the second service segment is Ta + 12 ms, then the time - domain start position of the resource candidate window corresponding to the third service segment is Ta + 13 ms, that is, the time - domain range of the resource candidate window corresponding to the third service segment is [Ta + 13 ms, Ta + 98 ms]. If the time - domain position of the re - transmitted resource selected by the second service segment is Ta + 18 ms, after each service segment determines the transmission resource, each service segment sends in sequence.

[0221] Since the grant maintenance of each service segment process is independent of each other, if the process where the first service segment is located first needs resource reselection, and the time is Tb, then the time domain end position of its resource candidate window at this time is Tb + 24 ms, while the retransmission resource of the second service segment is Tb + 12 ms. This may cause the transmission resource selected by the first service segment to be later than Tb + 12 ms. That is, by adopting the method of maintaining the grant of each service segment process independently, it can ensure that each service segment is transmitted in order before resource reselection, but non-sequential transmission may occur after resource reselection.

[0222] If the grant of each service segment process is associated and maintained, that is, the resource reselection of each service segment process is carried out simultaneously, such problems can be avoided. Specifically, in the case of the grant of each service segment process being associated and maintained, the resource selection process is as follows:

[0223] The earliest moment when each segment of the first service packet triggers resource selection is Ta. First, schedule the MAC PDU corresponding to the first service segment: allocate an idle process number, determine the Counter value, and select the transmission resource. The time domain range of the resource candidate window corresponding to the first service segment is [Ta + 4 ms, Ta + 24 ms]. If the resource selection for the first service segment is successful, continue the scheduling of the next service segment. If the resource selection for the first service segment fails, continue the scheduling for this first service segment at the next millisecond (i.e., at the moment of Ta + 1 ms), and other service segments continue to wait until the scheduling of this segment is successful or discarded due to timeout (the same as the first embodiment above);

[0224] If the scheduling of the first service segment is successful, and the selected initial retransmission resources are Ta + 8 ms and Ta + 12 ms, then when scheduling the second service segment next, the Counter value of the process where the first service segment is located is reused for the grant. The time domain range of the resource candidate window of the second service segment is [Ta + 13 ms, Ta + 45 ms]. Specifically, the resource selection process for the second service segment is similar to the resource selection process for the first service segment above, and will not be elaborated here;

[0225] If the scheduling of the second service segment is successful, and the selected initial retransmission resources are Ta + 15 ms and Ta + 18 ms, then schedule the third service segment next, and the Counter value of the process where the second service segment is located is reused for the grant. The time domain range of the resource candidate window of the third service segment is [Ta + 19 m, Ta + 98 ms]. Specifically, the resource selection process for the third service segment is similar to the resource selection process for the first service segment above, and will not be elaborated here;

[0226] Optionally, when Counter = 1, first determine whether to perform resource reselection on the process where the first service segment of the first service packet is located through probability P. If it is determined to perform resource reselection, subsequent segments will also perform resource reselection; if the resources continue to be maintained, subsequent segments will also maintain the resources.

[0227] The above embodiments introduce the resource selection method of the present invention. Next, this embodiment will further describe the corresponding device and terminal with reference to the accompanying drawings.

[0228] Specifically, as Figure 4 shown, an embodiment of the present invention provides a resource selection device 400, including:

[0229] A determination module 410, configured to determine resource candidate windows corresponding to N service segments of the first service packet respectively under the limitation of quality of service (QoS) parameters corresponding to the first service packet, where N is a positive integer greater than 1;

[0230] A selection module 420, configured to select a transmission resource for each service segment from the resource candidate window corresponding to the service segment;

[0231] Wherein, the time domain position of the transmission resource of the last transmission of the first service segment within the first resource candidate window is before the time domain start position of the second resource candidate window corresponding to the second service segment; the first service segment and the second service segment are any two of the N service segments, and the index of the first service segment is before the index of the second service segment.

[0232] Optionally, the determination module 410 includes:

[0233] A determination sub-module, configured to determine the time domain range of the resource candidate window corresponding to each service segment respectively under the limitation of the QoS parameters corresponding to the first service packet according to the target time, the transmission processing time of the terminal, the index of each service segment, and the resource candidate window configuration parameter;

[0234] Wherein, the target time is the time when the first service packet arrives at the RLC layer and starts to be scheduled.

[0235] Optionally, the resource candidate window configuration parameter is a pre-configured fixed value; or, the resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet.

[0236] Optionally, the resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet, including:

[0237] The resource candidate window configuration parameter is determined by determination;

[0238] Wherein, delta is the resource candidate window configuration parameter, T1 is the transmission processing time of the terminal, and T2 is the remaining PDB; wherein, the remaining PDB is related to the PDB of the first service packet in the QoS parameter.

[0239] Optionally, the determining sub-module includes:

[0240] A first determining unit, configured to determine the time-domain end position of the resource candidate window according to the transmission processing time of the terminal, the target time, the remaining PDB, the resource candidate window configuration parameter, and the index of the service segment; wherein, the remaining PDB is related to the PDB of the first service packet in the QoS parameter;

[0241] A second determining unit, configured to determine the time-domain start position of the resource candidate window according to the transmission processing time of the terminal, the target time, and the time-domain end position of the resource candidate window; or determine the time-domain start position of the resource candidate window according to the transmission processing time of the terminal, the target time, and the time-domain position of the target transmission resource in the resource candidate window; wherein, the target transmission resource is the transmission resource for the last transmission of the service segment corresponding to the resource candidate window;

[0242] Wherein, the time-domain range of the resource candidate window is: from the time-domain start position of the resource candidate window to the time-domain end position of the resource candidate window.

[0243] Optionally, the first determining unit is further configured to:

[0244] If i < N, determine the time-domain end position of the resource candidate window corresponding to the i-th service segment according to the transmission processing time of the terminal, the target time, the resource candidate window configuration parameter, and the index of the i-th service segment;

[0245] If i = N, determine the time-domain end position of the resource candidate window corresponding to the i-th service segment as n + T2;

[0246] Wherein, i is a positive integer, n is the target time, and T2 is the remaining PDB.

[0247] Optionally, the first determining unit is further configured to:

[0248] Determine the time-domain end position of the resource candidate window corresponding to the i-th service segment by n + T2_index = n + T1 + delta * index;

[0249] Wherein, if the time domain position n + T2_index corresponds to a reserved subframe, determine that the logical subframe before the time domain position n + T2_index and closest to the time domain position n + T2_index is the time domain end position of the resource candidate window corresponding to the i-th service segment; if the time domain position n + T2_index does not correspond to a reserved subframe, determine that the time domain position n + T2_index is the time domain end position of the resource candidate window corresponding to the i-th service segment;

[0250] T1 is the transmission processing time of the terminal, delta is a resource candidate window configuration parameter, and index is the index of the i-th service segment.

[0251] Optionally, the second determination unit is specifically configured to:

[0252] If i = 1, determine that the time domain position n + T1 is the time domain start position of the resource candidate window corresponding to the i-th service segment;

[0253] If 1 < i ≤ N, determine the time domain start position of the resource candidate window corresponding to the i-th service segment according to the time domain end position of the resource candidate window corresponding to the (i - 1)-th service segment;

[0254] Wherein, i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

[0255] Optionally, the second determination unit is specifically configured to:

[0256] Determine the time domain start position of the resource candidate window corresponding to the i-th service segment by n + T1_index = n + T2_(index - 1) + X;

[0257] Wherein, if the time domain position n + T1_index corresponds to a reserved subframe, determine that the logical subframe after the time domain position n + T1_index and closest to the time domain position n + T1_index is the time domain start position of the resource candidate window corresponding to the i-th service segment; if the time domain position n + T1_index does not correspond to a reserved subframe, determine that the time domain position n + T1_index is the time domain start position of the resource candidate window corresponding to the i-th service segment;

[0258] n + T2_(index - 1) is the time domain end position of the resource candidate window corresponding to the (i - 1)-th service segment, and X is a preset value.

[0259] Optionally, the second determination unit is specifically configured to:

[0260] If i = 1, then determine the time-domain start position of the resource candidate window corresponding to the i-th service segment as n + T1;

[0261] If 1 < i ≤ N, then determine the time-domain start position of the resource candidate window corresponding to the i-th service segment according to the time-domain position of the target transmission resource in the resource candidate window corresponding to the (i - 1)-th service segment;

[0262] Wherein, i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

[0263] Optionally, the second determination unit is specifically configured to:

[0264] Determine the time-domain start position of the resource candidate window corresponding to the i-th service segment through n + T1_index = n + T3_(index - 1) + X;

[0265] Wherein, if the time-domain position n + T1_index corresponds to a reserved subframe, then determine the logical subframe that is after the time-domain position n + T1_index and closest to the time-domain position n + T1_index as the time-domain start position of the resource candidate window corresponding to the i-th service segment; if the time-domain position n + T1_index does not correspond to a reserved subframe, then determine the time-domain position n + T1_index as the time-domain start position of the resource candidate window corresponding to the i-th service segment;

[0266] n + T3_(index - 1) is the time-domain position of the target transmission resource in the resource candidate window corresponding to the (i - 1)-th service segment, and X is a preset value.

[0267] Optionally, the selection module 420 includes:

[0268] A selection sub-module, configured to perform transmission resource selection for the i-th service segment in the resource candidate window corresponding to the i-th service segment;

[0269] A first processing sub-module, configured to, if the resource selection is successful, perform transmission resource selection for the (i + 1)-th service segment in the resource candidate window corresponding to the (i + 1)-th service segment;

[0270] A second processing sub-module, configured to, if the resource selection fails, continue to perform transmission resource selection for the i-th service segment in the updated resource candidate window within a preset time period until the resource selection is successful or discarded due to timeout;

[0271] Among them, the preset time period is determined by the transmission processing time of the terminal and the time domain range of the resource candidate window. The time domain start position of the updated resource candidate window is determined by the current resource selection moment and the transmission processing time of the terminal. The time domain end position of the updated resource candidate window is the time domain end position of the resource candidate window corresponding to the i-th service segment.

[0272] Optionally, the resource selection device 400 further includes:

[0273] A first reselection module, configured to, for each service segment, if the service segment meets the resource reselection condition, perform resource reselection within the resource candidate window corresponding to the service segment; or,

[0274] A second reselection module, configured to, if all service segments jointly meet the resource reselection condition, perform resource reselection in the resource candidate windows corresponding to each service segment in sequence according to the order of the service segment indexes.

[0275] The embodiment of the resource selection device of the present invention corresponds to the embodiment of the above resource selection method. All implementation means in the above method embodiment are applicable to the embodiment of this network device and can also achieve the same technical effect.

[0276] The resource selection device 400 according to the embodiment of the present invention determines the resource candidate windows corresponding to the N service segments of the first service packet respectively under the limitation of the QoS parameters of the first service packet, and for each service segment, selects a transmission resource in the resource candidate window corresponding to the service segment. Since for any two service segments among the N service segments where the index of the first service segment is before the index of the second service segment, the time domain position of the transmission resource of the last transmission of the first service segment in the first resource candidate window is before the time domain start position of the second resource candidate window corresponding to the second service segment, it can be ensured that the N service segments of the first service packet can be sent in sequence, and further ensure that the receiving end can successfully recombine each segment of the service packet, realizing interconnection and interoperability.

[0277] To better achieve the above object, as Figure 5 shown, the embodiment of the present invention further provides a terminal, including: a transceiver 54, a memory 53, a processor 51, and a computer program stored on the memory 53 and executable on the processor 51. Among them, the memory 53 is connected to the processor 51 through a bus interface 52. The memory 53 is used to store the computer program used by the processor 51 when performing operations. When the processor 51 calls and executes the computer program stored in the memory 53, the following steps are performed:

[0278] Under the limitation of the Quality of Service (QoS) parameters corresponding to the first service packet, determine the resource candidate window corresponding to each of the N service segments of the first service packet, where N is a positive integer greater than 1;

[0279] For each service segment, select a transmission resource in the resource candidate window corresponding to the service segment;

[0280] Among them, the time domain position of the transmission resource of the last transmission of the first service segment within the first resource candidate window is before the time domain start position of the second resource candidate window corresponding to the second service segment; the first service segment and the second service segment are any two of the N service segments, and the index of the first service segment is before the index of the second service segment.

[0281] Optionally, when the processor 51 calls and executes the computer program stored in the memory 53, the following steps are further executed:

[0282] Under the limitation of the QoS parameters corresponding to the first service packet, determine the time domain range of the resource candidate window corresponding to each service segment according to the target time, the sending processing time of the terminal, the index of each service segment, and the resource candidate window configuration parameter;

[0283] Among them, the target time is the time when the first service packet arrives at the RLC layer and starts to be scheduled.

[0284] Optionally, the resource candidate window configuration parameter is a pre-configured fixed value; or, the resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet.

[0285] Optionally, the resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet, including:

[0286] The resource candidate window configuration parameter is determined by determined;

[0287] Among them, delta is the resource candidate window configuration parameter, T1 is the sending processing time of the terminal, and T2 is the remaining PDB; where the remaining PDB is related to the PDB of the first service packet in the QoS parameters.

[0288] Optionally, when the processor 51 calls and executes the computer program stored in the memory 53, the following steps are further executed:

[0289] Determine the time-domain end position of the resource candidate window according to the sending processing time of the terminal, the target time, the remaining PDB, the resource candidate window configuration parameters, and the index of the service segment; wherein, the remaining PDB is related to the PDB of the first service packet in the QoS parameters.

[0290] Determine the time-domain start position of the resource candidate window according to the sending processing time of the terminal, the target time, and the time-domain end position of the resource candidate window; or, determine the time-domain start position of the resource candidate window according to the sending processing time of the terminal, the target time, and the time-domain position of the target transmission resource in the resource candidate window; wherein, the target transmission resource is the transmission resource for the last transmission of the service segment corresponding to the resource candidate window.

[0291] Wherein, the time-domain range of the resource candidate window is: from the time-domain start position of the resource candidate window to the time-domain end position of the resource candidate window.

[0292] Optionally, when the processor 51 calls and executes the computer program stored in the memory 53, the following steps are further executed:

[0293] If i < N, determine the time-domain end position of the resource candidate window corresponding to the i-th service segment according to the sending processing time of the terminal, the target time, the resource candidate window configuration parameters, and the index of the i-th service segment.

[0294] If i = N, determine the time-domain end position of the resource candidate window corresponding to the i-th service segment as n + T2.

[0295] Wherein, i is a positive integer, n is the target time, and T2 is the remaining PDB.

[0296] Optionally, when the processor 51 calls and executes the computer program stored in the memory 53, the following steps are further executed:

[0297] Determine the time-domain end position of the resource candidate window corresponding to the i-th service segment by n + T2_index = n + T1 + delta * index.

[0298] Wherein, if the time domain position n + T2_index corresponds to a reserved subframe, determine the logical subframe that is before the time domain position n + T2_index and closest to the time domain position n + T2_index as the time domain end position of the resource candidate window corresponding to the i-th service segment; if the time domain position n + T2_index does not correspond to a reserved subframe, determine the time domain position n + T2_index as the time domain end position of the resource candidate window corresponding to the i-th service segment;

[0299] T1 is the transmission processing time of the terminal, delta is a resource candidate window configuration parameter, and index is the index of the i-th service segment.

[0300] Optionally, when the processor 51 calls and executes the computer program stored in the memory 53, the following steps are further executed:

[0301] If i = 1, determine the time domain start position of the resource candidate window corresponding to the i-th service segment as the time domain position n + T1;

[0302] If 1 < i ≤ N, determine the time domain start position of the resource candidate window corresponding to the i-th service segment according to the time domain end position of the resource candidate window corresponding to the (i - 1)-th service segment;

[0303] Wherein, i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

[0304] Optionally, when the processor 51 calls and executes the computer program stored in the memory 53, the following steps are further executed:

[0305] Determine the time domain start position of the resource candidate window corresponding to the i-th service segment through n + T1_index = n + T2_(index - 1) + X;

[0306] Wherein, if the time domain position n + T1_index corresponds to a reserved subframe, determine the logical subframe that is after the time domain position n + T1_index and closest to the time domain position n + T1_index as the time domain start position of the resource candidate window corresponding to the i-th service segment; if the time domain position n + T1_index does not correspond to a reserved subframe, determine the time domain position n + T1_index as the time domain start position of the resource candidate window corresponding to the i-th service segment;

[0307] n + T2_(index - 1) is the time domain end position of the resource candidate window corresponding to the (i - 1)-th service segment, and X is a preset value.

[0308] Optionally, when the processor 51 calls and executes the computer program stored in the memory 53, the following steps are further executed:

[0309] If i = 1, then determine the time domain start position of the resource candidate window corresponding to the i-th service segment as the time domain position n + T1;

[0310] If 1 < i ≤ N, then determine the time domain start position of the resource candidate window corresponding to the i-th service segment according to the time domain position of the target transmission resource in the resource candidate window corresponding to the (i - 1)-th service segment;

[0311] Wherein, i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

[0312] Optionally, when the processor 51 calls and executes the computer program stored in the memory 53, the following steps are further executed:

[0313] Determine the time domain start position of the resource candidate window corresponding to the i-th service segment through n + T1_index = n + T3_(index - 1) + X;

[0314] Wherein, if the time domain position n + T1_index corresponds to a reserved subframe, then determine the logical subframe after the time domain position n + T1_index and closest to the time domain position n + T1_index as the time domain start position of the resource candidate window corresponding to the i-th service segment; if the time domain position n + T1_index does not correspond to a reserved subframe, then determine the time domain position n + T1_index as the time domain start position of the resource candidate window corresponding to the i-th service segment;

[0315] n + T3_(index - 1) is the time domain position of the target transmission resource in the resource candidate window corresponding to the (i - 1)-th service segment, and X is a preset value.

[0316] Optionally, when the processor 51 calls and executes the computer program stored in the memory 53, the following steps are further executed:

[0317] In the resource candidate window corresponding to the i-th service segment, perform the selection of the transmission resource for the i-th service segment;

[0318] If the resource selection is successful, then in the resource candidate window corresponding to the (i + 1)-th service segment, perform the selection of the transmission resource for the (i + 1)-th service segment;

[0319] If the resource selection fails, then continue to perform the selection of the transmission resource for the i-th service segment in the updated resource candidate window within a preset time period until the resource selection is successful or timed out and discarded;

[0320] Wherein, the preset time period is determined by the transmission processing time of the terminal and the time domain range of the resource candidate window, the start position of the time domain of the updated resource candidate window is determined by the current resource selection moment and the transmission processing time of the terminal, and the end position of the time domain of the updated resource candidate window is the end position of the time domain of the resource candidate window corresponding to the i-th service segment.

[0321] Optionally, when the processor 51 calls and executes the computer program stored in the memory 53, the following steps are further executed:

[0322] For each service segment, if the service segment meets the resource reselection condition, resource reselection is performed within the resource candidate window corresponding to the service segment; or,

[0323] If all service segments jointly meet the resource reselection condition, resource reselection is sequentially performed in the resource candidate windows corresponding to each service segment in the order of the service segment indexes.

[0324] Wherein, the transceiver 54 is connected to the bus interface 52 and is used for receiving and sending data under the control of the processor 51.

[0325] It should be noted that in Figure 5 , the bus architecture may include any number of interconnected buses and bridges, specifically, various circuits represented by one or more processors represented by the processor 51 and the memory represented by the memory 53 are linked together. The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, so they will not be further described herein. The bus interface provides an interface. The transceiver 54 may be multiple elements, that is, including a transmitter and a transceiver, and provides a unit for communicating with various other devices on the transmission medium. For different terminals, the user interface 55 may also be an interface capable of externally connecting and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, etc. The processor 51 is responsible for managing the bus architecture and general processing, and the memory 53 may store data used by the processor 51 when performing operations.

[0326] Optionally, the processor 51 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a CPLD (Complex Programmable Logic Device), and the processor may also adopt a multi-core architecture.

[0327] The processor is used to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions by calling a computer program stored in a memory. The processor and the memory may also be physically separated.

[0328] Embodiments of the present invention also provide a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the resource selection method described above are implemented. To avoid repetition, details are not described here again.

[0329] Those skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a computer program. The computer program includes instructions for executing part or all of the steps of the above method; and the computer program can be stored in a readable storage medium, and the readable storage medium can be any form of readable storage medium.

[0330] For example: The readable storage medium can be any available medium or data storage device accessible by the processor, including but not limited to magnetic memories (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical memories (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor memories (such as ROMs, EPROMs, EEPROMs, non-volatile memories (NANDFLASH), solid state drives (SSD)).

[0331] In addition, it should be noted that in the devices and methods of the present invention, obviously, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent solutions of the present invention. And, the steps of performing the above series of processes can naturally be executed in chronological order according to the described order, but it is not necessary to be executed in chronological order. Some steps can be executed in parallel or independently of each other. For those of ordinary skill in the art, it can be understood that all or any steps or components of the method and device of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software, or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0332] Accordingly, the object of the present invention can also be achieved by running a program or a set of programs on any computing device. The computing device may be a well-known general-purpose device. Therefore, the object of the present invention can also be achieved merely by providing a program product containing program code for implementing the method or device. That is to say, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium may be any well-known storage medium or any storage medium developed in the future. It should also be noted that in the device and method of the present invention, obviously, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent solutions of the present invention. Moreover, the steps of performing the above series of processes can naturally be executed in chronological order according to the described order, but it is not necessary to execute them in chronological order. Some steps can be executed in parallel or independently of each other.

[0333] The above is the preferred embodiment of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications should also be regarded as the protection scope of the present invention.

Claims

1. A resource selection method, characterized in that, Including: Under the service quality QoS parameter limitation corresponding to the first service packet, determining resource candidate windows respectively corresponding to N service segments of the first service packet, where N is a positive integer greater than 1; For each service segment, selecting a transmission resource in the resource candidate window corresponding to the service segment; Among them, the time domain position of the transmission resource of the last transmission of the first service segment within the first resource candidate window is before the time domain start position of the second resource candidate window corresponding to the second service segment; The first service segment and the second service segment are any two of the N service segments, and the index of the first service segment is before the index of the second service segment.

2. The resource selection method according to claim 1, wherein The determining, under the service quality QoS parameter limitation corresponding to the first service packet, of resource candidate windows respectively corresponding to N service segments of the first service packet includes: Under the QoS parameter limitation corresponding to the first service packet, determining the time domain range of the resource candidate window respectively corresponding to each service segment according to the target time, the sending processing time of the terminal, the index of each service segment, and the resource candidate window configuration parameter; Among them, the target time is the time when the first service packet arrives at the radio link control layer and starts to be scheduled.

3. The resource selection method according to claim 2, wherein The resource candidate window configuration parameter is a pre-configured fixed value; or, the resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet.

4. The resource selection method according to claim 3, wherein The resource candidate window configuration parameter is determined by the number of service segments corresponding to the first service packet, including: The resource candidate window configuration parameter is determined by determination; Among them, delta is the resource candidate window configuration parameter, T1 is the sending processing time of the terminal, and T2 is the remaining packet delay budget PDB; where the remaining PDB is related to the PDB of the first service packet in the QoS parameter.

5. The resource selection method according to claim 2, wherein The determining, under the QoS parameter limitation corresponding to the first service packet, of the time domain range of the resource candidate window respectively corresponding to each service segment according to the target time, the sending processing time of the terminal, the index of each service segment, and the resource candidate window configuration parameter includes: Determining the time domain end position of the resource candidate window according to the sending processing time of the terminal, the target time, the remaining PDB, the resource candidate window configuration parameter, and the index of the service segment; where the remaining PDB is related to the PDB of the first service packet in the QoS parameter; Determining the time domain start position of the resource candidate window according to the sending processing time of the terminal, the target time, and the time domain end position of the resource candidate window; or determining the time domain start position of the resource candidate window according to the sending processing time of the terminal, the target time, and the time domain position of the target transmission resource in the resource candidate window; where the target transmission resource is the transmission resource of the last transmission of the service segment corresponding to the resource candidate window; Among them, the time domain range of the resource candidate window is: from the time domain start position of the resource candidate window to the time domain end position of the resource candidate window.

6. The resource selection method according to claim 5, wherein Determining the time-domain end position of the resource candidate window according to the transmission processing time of the terminal, the target time, the remaining PDB, the resource candidate window configuration parameter, and the index of the service segment includes: If i < N, determining the time-domain end position of the resource candidate window corresponding to the i-th service segment according to the transmission processing time of the terminal, the target time, the resource candidate window configuration parameter, and the index of the i-th service segment; If i = N, determining the time-domain end position of the resource candidate window corresponding to the i-th service segment as the time-domain position n + T2; Wherein, i is a positive integer, n is the target time, and T2 is the remaining PDB.

7. The resource selection method according to claim 6, wherein Determining the time-domain end position of the resource candidate window corresponding to the i-th service segment according to the transmission processing time of the terminal, the target time, the resource candidate window configuration parameter, and the index of the i-th service segment includes: Determining the time-domain end position of the resource candidate window corresponding to the i-th service segment by n + T2_index = n + T1 + delta * index; Wherein, if the time-domain position n + T2_index corresponds to a reserved subframe, determining the logical subframe before the time-domain position n + T2_index and closest to the time-domain position n + T2_index as the time-domain end position of the resource candidate window corresponding to the i-th service segment; if the time-domain position n + T2_index does not correspond to a reserved subframe, determining the time-domain position n + T2_index as the time-domain end position of the resource candidate window corresponding to the i-th service segment; T1 is the transmission processing time of the terminal, delta is the resource candidate window configuration parameter, and index is the index of the i-th service segment.

8. The resource selection method according to claim 5, wherein Determining the time-domain start position of the resource candidate window according to the transmission processing time of the terminal, the target time, and the time-domain end position of the resource candidate window includes: If i = 1, determining the time-domain start position of the resource candidate window corresponding to the i-th service segment as the time-domain position n + T1; If 1 < i ≤ N, determining the time-domain start position of the resource candidate window corresponding to the i-th service segment according to the time-domain end position of the resource candidate window corresponding to the (i - 1)-th service segment; Wherein, i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

9. The resource selection method according to claim 8, wherein Determining the time-domain start position of the resource candidate window corresponding to the i-th service segment according to the time-domain end position of the resource candidate window corresponding to the (i - 1)-th service segment includes: Determining the time-domain start position of the resource candidate window corresponding to the i-th service segment by n + T1_index = n + T2_(index - 1) + X; Wherein, if the time domain position n + T1_index corresponds to a reserved subframe, determine the logical subframe that is after the time domain position n + T1_index and is closest to the time domain position n + T1_index as the time domain start position of the resource candidate window corresponding to the i-th service segment; if the time domain position n + T1_index does not correspond to a reserved subframe, determine the time domain position n + T1_index as the time domain start position of the resource candidate window corresponding to the i-th service segment; n + T2_(index - 1) is the time domain end position of the resource candidate window corresponding to the (i - 1)-th service segment, and X is a preset value.

10. The resource selection method according to claim 5, wherein The determining the time domain start position of the resource candidate window according to the transmission processing time of the terminal, the target time, and the time domain position of the target transmission resource in the resource candidate window includes: If i = 1, determine the time domain position n + T1 as the time domain start position of the resource candidate window corresponding to the i-th service segment; If 1 < i ≤ N, determine the time domain start position of the resource candidate window corresponding to the i-th service segment according to the time domain position of the target transmission resource in the resource candidate window corresponding to the (i - 1)-th service segment; Wherein, i is a positive integer, n is the target time, and T1 is the transmission processing time of the terminal.

11. The resource selection method according to claim 10, characterized in that, The determining the time domain start position of the resource candidate window corresponding to the i-th service segment according to the time domain position of the target transmission resource in the resource candidate window corresponding to the (i - 1)-th service segment includes: Determine the time domain start position of the resource candidate window corresponding to the i-th service segment by n + T1_index = n + T3_(index - 1) + X; Wherein, if the time domain position n + T1_index corresponds to a reserved subframe, determine the logical subframe that is after the time domain position n + T1_index and is closest to the time domain position n + T1_index as the time domain start position of the resource candidate window corresponding to the i-th service segment; if the time domain position n + T1_index does not correspond to a reserved subframe, determine the time domain position n + T1_index as the time domain start position of the resource candidate window corresponding to the i-th service segment; n + T3_(index - 1) is the time domain position of the target transmission resource in the resource candidate window corresponding to the (i - 1)-th service segment, and X is a preset value.

12. The resource selection method according to claim 1, wherein For each service segment, the selecting a transmission resource in the resource candidate window corresponding to the service segment includes: In the resource candidate window corresponding to the i-th service segment, perform the selection of the transmission resource for the i-th service segment; If the resource selection is successful, in the resource candidate window corresponding to the (i + 1)-th service segment, perform the selection of the transmission resource for the (i + 1)-th service segment; If the resource selection fails, continue to perform the selection of the transmission resource for the i-th service segment in the updated resource candidate window within a preset time period until the resource selection is successful or discarded due to timeout; Wherein, the preset time period is determined by the transmission processing time of the terminal and the time domain range of the resource candidate window, the time domain start position of the updated resource candidate window is determined by the current resource selection moment and the transmission processing time of the terminal, and the time domain end position of the updated resource candidate window is the time domain end position of the resource candidate window corresponding to the i-th service segment.

13. The resource selection method according to claim 1, characterized in that It further includes: For each service segment, if the service segment meets the resource reselection condition, resource reselection is performed within the resource candidate window corresponding to the service segment; Or, If all service segments jointly meet the resource reselection condition, resource reselection is sequentially performed in the resource candidate windows corresponding to each service segment respectively according to the order of the service segment indexes.

14. A resource selection device, characterized in that, It includes: A determination module, configured to determine the resource candidate windows corresponding to the N service segments of the first service packet respectively under the limitation of the quality of service (QoS) parameters of the first service packet, where N is a positive integer greater than 1; A selection module, configured to select a transmission resource in the resource candidate window corresponding to each service segment; Wherein, the time domain position of the transmission resource of the first service segment transmitted last time within the first resource candidate window is before the time domain start position of the second resource candidate window corresponding to the second service segment; The first service segment and the second service segment are any two of the N service segments, and the index of the first service segment is before the index of the second service segment.

15. A terminal, comprising: A transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the resource selection method according to any one of claims 1 to 13 are implemented.

16. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the resource selection method according to any one of claims 1 to 13 are implemented.

Citation Information

Patent Citations

  • Resource selection processing method and device and terminal

    CN112261613A