Disclosure of Invention
The invention provides a resource selection method and a terminal, which solve the problems that resource reservation in a resource selection window is unbalanced, the quantity of candidate resources is not changed along with the change of the quantity of resources needing to be selected and the like easily caused in the conventional resource selection process.
The embodiment of the invention provides a resource selection method, which is applied to a terminal and comprises the following steps:
determining a candidate resource set in a resource selection window according to the number m of transmission resources required to be selected by a terminal and/or the resource distribution of candidate resources in the resource selection window;
selecting m transmission resources in the candidate resource set;
wherein m is a positive integer.
Optionally, the number of candidate resources in the candidate resource set and the number of resources in the resource selection window with a target proportion of X% satisfy a first preset relationship.
Optionally, the first preset relationship includes any one of:
m1 is not less than min (X%. M, K. M), K is high-level configuration;
M1≥X%*M;
wherein X% is predefined, M1 is the number of candidate resources in the candidate resource set, and M is the total number of resources in the resource selection window.
Optionally, the method further includes:
and determining a target proportion corresponding to the transmission resource number m according to a second preset relation between the transmission resource number and the target proportion.
Optionally, the second preset relationship includes any one of:
Xm=m*X1m is greater than 1;
Xm=X1(m-1) S, m being greater than 1, wherein S is a high level configuration;
presetting a mapping relation;
wherein, XmFor a target proportion, X, corresponding to the number m of transmission resources1And configuring a target proportion when m is 1 for the high layer.
Optionally, determining a candidate resource set in the resource selection window according to resource distribution of the candidate resources in the resource selection window includes:
when the rear edge of the resource selection window meets a first preset condition, dividing the resource selection window into a first sub-window and a second sub-window;
under the condition that the number of the candidate resources in the first sub-window does not meet a second preset condition, updating the power threshold value according to a rule that a first preset value is sequentially increased on the basis of the power threshold value until the number of the candidate resources in the first sub-window meets the first preset condition;
under the condition that the number of the candidate resources in the first sub-window meets the first preset condition, determining the candidate resource set according to the candidate resources in the first sub-window and the candidate resources in the second sub-window;
wherein, the first preset value is a preset power variation value.
Optionally, the second preset condition includes any one of:
the number of candidate resources in the first sub-window is greater than or equal to the product of the total number of resources in the first sub-window and the target ratio;
the number of candidate resources in the first sub-window is greater than or equal to the product of the total number of resources in the first sub-window and the target ratio, and the number of candidate resources in the resource selection window is greater than or equal to the product of the total number of resources in the resource selection window and the target ratio.
Optionally, determining a candidate resource set in the resource selection window according to resource distribution of the candidate resources in the resource selection window, further includes:
under the condition that the back edge of the resource selection window does not meet the first preset condition and the number of the candidate resources in the resource selection window does not meet a third preset condition, updating the power threshold value according to a rule of sequentially increasing a second preset value on the basis of the power threshold value until the number of the candidate resources in the resource selection window meets the third preset condition;
determining the candidate resource set according to the candidate resources in the resource selection window under the condition that the back edge of the resource selection window does not meet the first preset condition and the number of the candidate resources in the resource selection window meets the third preset condition;
and the second preset value is a preset power change value.
Optionally, the first preset condition includes:
the rear edge of the resource selection window is greater than the difference between a third preset value and Tproc0, and the Tproc0 is the time interval between the rear edge of the sensing window and the resource selection trigger time;
and the third preset value is a maximum time slot value of a distance between any two resources in the multiple resources indicated by the preset direct link control information SCI.
Optionally, the third preset condition includes:
the number of candidate resources in the resource selection window is greater than or equal to the product of the total number of resources in the resource selection window and the target ratio.
Optionally, the selecting m transmission resources from the candidate resource set includes:
determining a third sub-window in the resource selection window according to the m, the front edge and the back edge of the resource selection window;
if the number of the candidate resources in the third sub-window does not meet a fourth preset condition, sequentially expanding the back edge of the third sub-window by a time slot rule to update the back edge of the third sub-window until the number of the candidate resources in the third sub-window meets the fourth preset condition;
and if the number of the candidate resources in the third sub-window meets the fourth preset condition, selecting m transmission resources from the candidate resources in the third sub-window.
Optionally, the fourth preset condition includes:
and the number of the candidate resources in the third sub-window is greater than or equal to Z, wherein Z is high-level configuration or quality of service (QOS) generation, and Z is a positive integer.
Optionally, the determining a third sub-window in the resource selection window according to the m, the leading edge and the trailing edge of the resource selection window includes:
determining a third sub-window in the resource selection window according to T1 and the value of T1+ (T2-T1)/m;
wherein T1 is the leading edge of the resource selection window and the third sub-window, T2 is the trailing edge of the resource selection window, and the value of T1+ (T2-T1)/m is the trailing edge of the third sub-window, and the value of (T2-T1)/m is an integer.
An embodiment of the present invention further provides a terminal, including: a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
determining a candidate resource set in a resource selection window according to the number m of transmission resources required to be selected by a terminal and/or the resource distribution of candidate resources in the resource selection window;
selecting m transmission resources in the candidate resource set;
wherein m is a positive integer.
Optionally, the number of candidate resources in the candidate resource set and the number of resources in the resource selection window with a target proportion of X% satisfy a first preset relationship.
Optionally, the first preset relationship includes any one of:
m1 is not less than min (X%. M, K. M), K is high-level configuration;
M1≥X%*M;
wherein X% is predefined, M1 is the number of candidate resources in the candidate resource set, and M is the total number of resources in the resource selection window.
Optionally, the processor implements the following steps when executing the computer program:
and determining a target proportion corresponding to the transmission resource number m according to a second preset relation between the transmission resource number and the target proportion.
Optionally, the second preset relationship includes any one of:
Xm=m*X1m is greater than 1;
Xm=X1(m-1) S, m being greater than 1, wherein S is a high level configuration;
presetting a mapping relation;
wherein, XmFor a target proportion, X, corresponding to the number m of transmission resources1And configuring a target proportion when m is 1 for the high layer.
Optionally, when the processor executes the computer program, the following steps are specifically implemented:
when the rear edge of the resource selection window meets a first preset condition, dividing the resource selection window into a first sub-window and a second sub-window;
under the condition that the number of the candidate resources in the first sub-window does not meet a second preset condition, updating the power threshold value according to a rule that a first preset value is sequentially increased on the basis of the power threshold value until the number of the candidate resources in the first sub-window meets the first preset condition;
under the condition that the number of the candidate resources in the first sub-window meets the first preset condition, determining the candidate resource set according to the candidate resources in the first sub-window and the candidate resources in the second sub-window;
wherein, the first preset value is a preset power variation value.
Optionally, the second preset condition includes any one of:
the number of candidate resources in the first sub-window is greater than or equal to the product of the total number of resources in the first sub-window and the target ratio;
the number of candidate resources in the first sub-window is greater than or equal to the product of the total number of resources in the first sub-window and the target ratio, and the number of candidate resources in the resource selection window is greater than or equal to the product of the total number of resources in the resource selection window and the target ratio.
Optionally, when the processor executes the computer program, the following steps are specifically implemented:
under the condition that the back edge of the resource selection window does not meet the first preset condition and the number of the candidate resources in the resource selection window does not meet a third preset condition, updating the power threshold value according to a rule of sequentially increasing a second preset value on the basis of the power threshold value until the number of the candidate resources in the resource selection window meets the third preset condition;
determining the candidate resource set according to the candidate resources in the resource selection window under the condition that the back edge of the resource selection window does not meet the first preset condition and the number of the candidate resources in the resource selection window meets the third preset condition;
and the second preset value is a preset power change value.
Optionally, the first preset condition includes:
the rear edge of the resource selection window is greater than the difference between a third preset value and Tproc0, and the Tproc0 is the time interval between the rear edge of the sensing window and the resource selection trigger time;
and the third preset value is a maximum time slot value of a distance between any two resources in the multiple resources indicated by the preset direct link control information SCI.
Optionally, the third preset condition includes:
the number of candidate resources in the resource selection window is greater than or equal to the product of the total number of resources in the resource selection window and the target ratio.
Optionally, when the processor executes the computer program, the following steps are specifically implemented:
determining a third sub-window in the resource selection window according to the m, the front edge and the back edge of the resource selection window;
if the number of the candidate resources in the third sub-window does not meet a fourth preset condition, sequentially expanding the back edge of the third sub-window by a time slot rule to update the back edge of the third sub-window until the number of the candidate resources in the third sub-window meets the fourth preset condition;
and if the number of the candidate resources in the third sub-window meets the fourth preset condition, selecting m transmission resources from the candidate resources in the third sub-window.
Optionally, the fourth preset condition includes:
and the number of the candidate resources in the third sub-window is greater than or equal to Z, wherein Z is high-level configuration or quality of service (QOS) generation, and Z is a positive integer.
Optionally, when the processor executes the computer program, the following steps are specifically implemented:
determining a third sub-window in the resource selection window according to T1 and the value of T1+ (T2-T1)/m;
wherein T1 is the leading edge of the resource selection window and the third sub-window, T2 is the trailing edge of the resource selection window, and the value of T1+ (T2-T1)/m is the trailing edge of the third sub-window, and the value of (T2-T1)/m is an integer.
An embodiment of the present invention further provides a terminal, including:
a first determining module, configured to determine a candidate resource set in a resource selection window according to a number m of transmission resources that a terminal needs to select and/or resource distribution of candidate resources in the resource selection window;
a first selection module for selecting m transmission resources in the candidate resource set;
wherein m is a positive integer.
Embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the resource selection method as described above.
The technical scheme of the invention has the beneficial effects that:
the method comprises the steps of determining a candidate resource set in a resource selection window through the number m of transmission resources required to be selected by a terminal and/or the resource distribution of the candidate resources in the resource selection window, selecting m transmission resources in the candidate resource set, and determining the candidate resource set by considering at least one of the number of the transmission resources required to be selected by the terminal and the resource distribution of the candidate resources in the resource selection window, so that the problems that resource reservation in the resource selection window is unbalanced and the quantity of the candidate resources is not changed along with the change of the quantity of the resources required to be selected in the existing resource selection process are solved.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The terms "first," "second," and the like in the description of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. In the specification, "and/or" means at least one of the connected objects.
The following description is merely provided as an example, and variations in the function and arrangement of the elements discussed may be made without departing from the spirit and scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
In order to make those skilled in the art better understand the technical solutions of the embodiments of the present invention, the following description is made.
LTE-V2X resource selection procedure:
in the Mode4, a basic mechanism of resource allocation is Sensing + Semi-Persistent Scheduling (SPS), that is, a User Equipment (UE) node obtains resource occupation conditions of other UE nodes and subsequent resource occupation conditions in real time through real-time sending, and when there is a resource selection/reselection requirement, selects appropriate idle resources according to the obtained resource occupation conditions to transmit.
The terminal may be referred to as a terminal Device or UE, and the terminal may be a terminal-side Device such as a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or a vehicle-mounted Device, and it should be noted that a specific type of the terminal is not limited in the embodiment of the present invention.
Briefly, the resource selection process comprises the following steps: performing resource exclusion on resources in the selection window according to decoding information and measurement information corresponding to Scheduling Assignment (SA) for successfully decoding the sensing information of the sensing window; a second part: performing power smoothing processing according to the sending information to determine a candidate resource set; the third step: selecting a suitable resource from the determined candidate resource set.
Two windows are mainly involved: a sending window and a resource selection window (i.e. a resource selection window), where the time relationship between the two windows is shown in fig. 1, and n is a resource selection trigger time.
Specifically, Step 1: setting all candidate resources in the resource selection window as available resources;
step 2: and (3) in the resource elimination process, obtaining an available resource set:
here, the resources in the resource selection window are selected, but the currently acquired information only includes the sensing information in the sensing window, that is, here, the occupation situation of the resources in the resource selection window needs to be inferred according to the acquired sensing information in the sensing window, and the resources in the resource selection window are further screened.
Specifically, Step2 specifically includes:
step 2-1: determine valid and up-to-date SA: the information of other nodes acquired in the sending window is only the latest SA of the resource reserved for one time and having the time after the back edge of the resource selection window or the resource after the back edge of the resource selection window is valid, in other words, the SA of the resource reserved by other nodes and having the time after the back edge of the resource selection window is valid or the SA of the resource reserved by other nodes and having the time after the back edge of the resource selection window is valid.
Step 2-2: and excluding candidate subframes corresponding to skip subframes, wherein the subframes are called skip subframes, the UE transmits the skip subframes and cannot monitor service packets transmitted by other UEs on the transmitted subframes.
Step 2-3: determining whether a resource within the resource selection window needs to be excluded, and candidate resources satisfying the following 2 conditions need to be excluded from the resource selection window:
the SA indicates the next resource reservation and collides with a Transport Block (TB) sent by the candidate resource or a TB sent by a subsequent resource corresponding to the candidate resource;
a Physical direct link Shared Channel (psch) -Reference Signal Received Power (RSRP) measurement is performed according to the decoded SA, and the measurement is above an RSRP threshold.
Step 2-4: the proportion (duty cycle) of the remaining selectable resources within the resource selection window is determined.
Step 2-5: when the proportion of the current remaining optional resources is greater than or equal to 20%, the resource excluding process is ended; and when the proportion of the current remaining optional resources is less than 20%, increasing the power threshold value of the current transceiving node (for example, increasing 3dB each time, and setting the initial value of the power threshold value of the transceiving node as system configuration), and removing the resources again.
Step 3: selecting an initial selection process:
and performing power smoothing treatment on the residual resources which are not excluded from the resources in the resource selection window, sequencing, and screening the resources with lower smoothing power by 20%.
When only one data packet is transmitted, only one transmission resource needs to be selected in the method; when a data packet is transmitted twice, the UE can select two resources according to the above resources, where the two resources are represented by Tn and Tn + k in the time domain, and the conditions of the two resources in the time domain are that-15 is greater than or equal to k is less than or equal to 15, and k is not equal to 0. The specific selection method may be to select one resource according to the above resource selection method, and then select the second resource according to other limiting conditions.
NR-V2X resource selection process:
the NR-V2X multiplexing LTE-V2X resource selection principle is easy to cause the following problems:
(1) resource reservation imbalance in the resource selection window:
the LTE has the characteristics of service periodicity and semi-static resource scheduling, and the reserved resources in the resource selection window can be considered to be uniformly distributed in a statistical sense; and the NR-V2X has the characteristics of periodic and aperiodic traffic mixture, and semi-static scheduling and dynamic scheduling mixture, so that when the trailing edge of the resource selection window is greater than 30 (assuming Tproc0 is 1 here), the reserved resource distribution in the two resource selection sub-windows [ T1, 30] and [31, T2] are different. The reserved resource in [ T1, 30] includes both periodic reservation and aperiodic reservation; whereas [31, T2] contains only periodic reservations.
(2) The number of candidate resources does not change with the number of resources that need to be selected:
the number of candidate resources is much larger than the number of resources that need to be selected:
for example: the terminal needs to select 1 resource from a resource selection window, the resource selection window is 100 time slots, the number of resources per time slot is 5, the resource selection window counts 500 resources, when X is 20, the number of candidate resources needs to reach 100 (namely, the product of 50 and 20%) resources, and the number of candidate resources far exceeds the number of resources needing to be selected, so that the problem that in order to reach the number of candidate resources, an RSRP threshold needs to be raised many times, some resources reserved by users with high interference are put into a candidate resource set, and the probability of subsequent collision is increased.
The number of candidate resources does not take into account the number of resources that need to be selected:
the number of resources that the terminal needs to select from the resource selection window is variable, while the value of X% in the current protocol is fixed and does not change correspondingly according to the change of the number of resources that need to be selected. This may result in the number of candidate resources far exceeding 1, although the terminal only needs to select 1 resource; or the terminal needs to select a plurality of resources, but the number of candidate resources is small and is not enough to form a sufficient randomization effect.
(3) The mode of randomly selecting resources does not consider service delay:
the traditional resource selection adopts a random mode, namely m transmission resources required to be selected by a terminal are randomly selected from a candidate resource set, and the influence of the position of the selected resources in a resource selection window on service delay is not considered.
Specifically, the embodiment of the invention provides a resource selection method and a terminal, which can solve the problems that resource reservation in a resource selection window is unbalanced, the number of candidate resources is not changed along with the change of the number of resources to be selected, and the like easily caused by the existing resource selection process, and enhance the effectiveness of a resource selection mechanism.
As shown in fig. 2, an embodiment of the present invention provides a resource selection method, which is applied to a terminal and specifically includes the following steps:
step 21, determining a candidate resource set in a resource selection window according to the number m of transmission resources required to be selected by the terminal and/or the resource distribution of the candidate resources in the resource selection window, wherein m is a positive integer.
Here, the candidate resource set in the resource selection window may be determined according to the number m of transmission resources that the terminal needs to select; or determining a candidate resource set in the resource selection window according to the resource distribution of the candidate resources in the resource selection window; the candidate resource set in the resource selection window may also be determined according to the number m of transmission resources that the terminal needs to select and the resource distribution of the candidate resources in the resource selection window. Here, the candidate resource set includes a plurality of candidate resources.
In step 21, the resource in the resource selection window is subjected to resource exclusion, and the excluded resource is a candidate resource in the candidate resource set.
Step 22, m transmission resources are selected from the candidate resource set.
Here, when m is equal to 1, one candidate resource is randomly selected as the initial transmission resource from the candidate resource set. And when m is larger than 1, randomly selecting one candidate resource from the candidate resource set as an initial transmission resource, randomly selecting a retransmission resource from the candidate resource set, and if the retransmission resource is earlier than the initial transmission resource, interchanging the initial transmission and the retransmission, namely, using the retransmission as the initial transmission. For example: if the initial transmission resource is in the time slot 20 and the retransmission resource is earlier than 20 in the time slots 16 and 16, the initial transmission and the retransmission are exchanged, that is, the initial transmission resource is in the time slot 16 and the retransmission resource is in the time slot 20.
In the above embodiments of the present invention, a candidate resource set in a resource selection window is determined according to the number m of transmission resources that a terminal needs to select and/or the resource distribution of candidate resources in the resource selection window, m transmission resources are selected in the candidate resource set, and the candidate resource set is determined by considering at least one of the number of transmission resources that the terminal needs to select and the resource distribution of candidate resources in the resource selection window, thereby solving the problems that resource reservation in the resource selection window is unbalanced and the number of candidate resources does not change with the change of the number of resources that need to select in the existing resource selection process.
Optionally, the number of candidate resources in the candidate resource set and the number of resources in the resource selection window with a target proportion of X% satisfy a first preset relationship.
Further, the first preset relationship includes, but is not limited to, any one of the following:
the first item: m1 is not less than min (X%. M, K. M), K is high-level configuration;
the second term is: m1 is more than or equal to X% M;
wherein X% is predefined, M1 is the number of candidate resources in the candidate resource set, and M is the total number of resources in the resource selection window.
In the first item of the foregoing embodiment, if the parameter K configured by the network side device through the high-level signaling is obtained, in the resource exclusion process, when a product of the total resource quantity in the resource selection window and the target proportion X% is greater than a product of the parameter K and the number m of transmission resources that the terminal needs to select: if the number of the candidate resources in the candidate resource set is larger than or equal to the product of the parameter K and the number m of the transmission resources required to be selected by the terminal, stopping the resource exclusion process, and forming the candidate resource set by the remaining candidate resources at the moment; if the number of the candidate resources in the candidate resource set is less than the product of the parameter K and the number m of the transmission resources required to be selected by the terminal, the resource exclusion process is continued until the number of the candidate resources in the candidate resource set is greater than or equal to the product of the parameter K and the number m of the transmission resources required to be selected by the terminal, so that the number of the candidate resources in the candidate resource set can be changed according to the difference of the number m of the transmission resources required to be selected by the terminal, and the collision probability is reduced.
It should be noted that the network-side device may be a Base Station or a core network, where the Base Station may be a 5G or later-version Base Station (e.g., a gNB, a 5G NR NB, etc.), or a Base Station in other communication systems (e.g., an eNB, a WLAN access point, or other access points, etc.), where the Base Station may be referred to as a node B, an evolved node B, an access point, a Base Transceiver Station (BTS), a radio Base Station, a radio Transceiver, a Basic Service Set (BSS), an Extended Service Set (ESS), a node B, an evolved node B (eNB), a home node B, a home evolved node B, a WLAN access point, a WiFi node, or some other suitable terminology in the field, as long as the same technical effect is achieved, and the Base Station is not limited to a specific technical vocabulary.
In case the product of the total resource quantity in the resource selection window and the target proportion X% is smaller than the product of the parameter K and the number m of transmission resources that the terminal needs to select: if the number of the candidate resources in the candidate resource set is larger than or equal to the product of the total resource number in the resource selection window and the target proportion X%, stopping the resource exclusion process, and forming the candidate resource set by the remaining candidate resources; if the number of the candidate resources in the candidate resource set is less than the product of the total resource number in the resource selection window and the target proportion X%, continuing the resource exclusion process until the number of the candidate resources in the candidate resource set is greater than or equal to the product of the total resource number in the resource selection window and the target proportion X%.
For example: the terminal initiates resource selection at the resource selection triggering moment, if the number M of transmission resources required to be selected by the terminal is 2, the resources in the resource selection window are determined according to the sensing information of the sending window, and if the resource selection window comprises 100 time slots and the number of the resources in each time slot is 5, the total number of the resources in the resource selection window is 500 (namely M is 500); if the high-level configuration X is 20, K is 10; according to the condition that M1 is more than or equal to min (M X%, M K) ═ min (500X 20%, 2X 10) ═ min (100, 20) ═ 20, then M1 is more than or equal to 20, namely when the number of the remaining candidate resources in the resource selection window is more than or equal to 20, the resource exclusion process is stopped, and the remaining candidate resources in the resource selection window form a candidate resource set.
In the second item of the above embodiment, if the number of candidate resources in the candidate resource set is greater than or equal to the product of the total number of resources in the resource selection window and the target proportion X%, the resource exclusion process is stopped, and the remaining candidate resources constitute the candidate resource set; if the number of the candidate resources in the candidate resource set is less than the product of the total resource number in the resource selection window and the target proportion X%, continuing the resource exclusion process until the number of the candidate resources in the candidate resource set is greater than or equal to the product of the total resource number in the resource selection window and the target proportion X%.
It should be noted that the target ratio X% is a fixed value agreed by the protocol or configured by a higher layer signaling.
Optionally, the method may further include:
and determining a target proportion corresponding to the transmission resource number m according to a second preset relation between the transmission resource number and the target proportion.
Further, the second preset relationship includes, but is not limited to, any one of the following:
the first item: xm=m*X1M is greater than 1;
the second term is: xm=X1(m-1) S, m being greater than 1, wherein S is a high level configuration;
the third item: presetting a mapping relation;
wherein, XmFor a target proportion, X, corresponding to the number m of transmission resources1Configuring m ═ for high layersTarget ratio at 1.
In the first item of the foregoing embodiment, if the target ratio X when m configured by the network side device through the higher layer signaling is 1 is obtained1Then, in the resource excluding process, if m is 1, the target ratio X corresponding to m can be directly determined1. If m is greater than 1, according to Xm=m*X1Determining different target ratios X corresponding to different values of mm。
For example: the terminal initiates resource selection at the resource selection triggering moment, if the number M of transmission resources required to be selected by the terminal is 3, the resources in the resource selection window are determined according to the sensing information of the sending window, and if the resource selection window comprises 100 time slots and the number of the resources in each time slot is 5, the total number of the resources in the resource selection window is 500 (namely M is 500); when the high layer configuration is m is 1, the target ratio X1(ii) 5; when m is greater than 1, by Xm=m*X1Can determine X2=2*5=10,X33 x5 x 15, etc. In this example, m is 3, then X315; from the first predetermined relationship M1 ≧ X%. M, M1 ≧ M ≧ X can be determined3And if the percentage is 500 × 15% ═ 75, then M1 is greater than or equal to 75, that is, when the number of the remaining candidate resources in the resource selection window is greater than or equal to 75, the resource excluding process is stopped, and the remaining candidate resources in the resource selection window form a candidate resource set.
In the second item of the foregoing embodiment, if the target ratio X when m configured by the network side device through the high-level signaling is 1 is obtained1And obtaining the parameter S configured by the network side equipment through the high-level signaling, in the process of resource elimination, if m is 1, the target ratio X corresponding to m can be directly determined1. If m is greater than 1, according to Xm=X1Determining different target ratios X corresponding to different values of m by using a formula of + (m-1) × Sm。
For example: the terminal initiates resource selection at the triggering moment of resource selection, if the number m of transmission resources required to be selected by the terminal is 3, the resources in the resource selection window are determined according to the sensing information of the sending window, and if the resource selection window comprises 100 time slots and the number of resources in each time slot is 5, the resources are selectedA total of 500 resources (i.e., M is 500) within the window are selected; when the high layer configuration is m is 1, the target ratio X1If the higher layer configuration S is 3, then X is passed if m is greater than 1m=X1+ (m-1) S can determine X2=5+(2-1)*3=8,X35+ (3-1) × 3 ═ 11, and the like. In this example, m is 3, then X311; from the first predetermined relationship M1 ≧ X%. M, M1 ≧ M ≧ X can be determined3And if the percentage is 500 by 11 percent to 55, M1 is more than or equal to 55, namely when the number of the remaining candidate resources in the resource selection window is more than or equal to 55, the resource exclusion process is stopped, and the remaining candidate resources in the resource selection window form a candidate resource set.
In the third item of the foregoing embodiment, the terminal may determine the target ratio X corresponding to m according to a preset mapping relationshipmDirectly determining a target ratio X corresponding to m1. Preferably, the preset mapping relationship may be a preset table mapping relationship, and is not specifically limited herein.
For example: the terminal initiates resource selection at the resource selection triggering moment, if the number M of transmission resources required to be selected by the terminal is 2, the resources in the resource selection window are determined according to the sensing information of the sending window, and if the resource selection window comprises 100 time slots and the number of the resources in each time slot is 5, the total number of the resources in the resource selection window is 500 (namely M is 500); if the preset mapping relationship is shown in the following table:
TABLE 1 Preset mapping relationships
As can be seen from the above table, X is mapped when m is 11Is 5; x mapped when m is 22Is 10; x mapped when m is 33Is 20. In this example, m is 2, then X210; from the first predetermined relationship M1 ≧ X%. M, M1 ≧ M ≧ X can be determined2And if the percentage is 500 × 10%, then M1 is greater than or equal to 50, that is, when the number of remaining candidate resources in the resource selection window is greater than or equal to 50, the resource excluding process is stopped, and the remaining candidate resources in the resource selection window constitute the candidate resource set.
Optionally, step 21 may specifically include:
when the rear edge of the resource selection window meets a first preset condition, dividing the resource selection window into a first sub-window and a second sub-window;
under the condition that the number of the candidate resources in the first sub-window does not meet a second preset condition, updating the power threshold value according to a rule that a first preset value is sequentially increased on the basis of the power threshold value until the number of the candidate resources in the first sub-window meets the first preset condition;
under the condition that the number of the candidate resources in the first sub-window meets the first preset condition, determining the candidate resource set according to the candidate resources in the first sub-window and the candidate resources in the second sub-window;
wherein, the first preset value is a preset power variation value.
In the above embodiment, according to the resource distribution of the candidate resources in the resource selection window, if the number of the candidate resources distributed in the first sub-window satisfies the first preset condition, the candidate resource set is determined according to the candidate resources distributed in the first sub-window and the candidate resources distributed in the second sub-window, that is, the candidate resources distributed in the first sub-window and the candidate resources distributed in the second sub-window are combined to form the candidate resource set. If the number of the candidate resources distributed in the first sub-window does not meet a second preset condition, sequentially increasing a first preset value on the basis of a power threshold value to update the power threshold value, wherein in the process of updating the power threshold value, the number of the candidate resources distributed in the first sub-window changes until the number of the candidate resources distributed in the first sub-window meets the first preset condition, and at the moment, the updated candidate resources distributed in the first sub-window and the updated candidate resources distributed in the second sub-window are combined to form a candidate resource set. Preferably, the power threshold may be an RSPR threshold.
It should be noted that the first preset value is a preset power variation value, and the unit is dB, and preferably, the first preset value may be 3dB, that is, the power threshold value is increased by 3dB each time; the first preset value is not limited to 3dB, and can be set as required.
Further, the first preset condition includes:
the rear edge of the resource selection window is greater than the difference between a third preset value and Tproc0, and the Tproc0 is the time interval between the rear edge of the sensing window and the resource selection trigger time;
the third preset value is a maximum timeslot value of a distance between any two resources in the multiple resources indicated by preset Sidelink Control Information (SCI).
Specifically, if the trailing edge of the resource selection window is greater than the difference between the third preset value and Tproc0, the trailing edge of the resource selection window satisfies the first preset condition, and if the trailing edge of the resource selection window is less than or equal to the difference between the third preset value and Tproc0, the trailing edge of the resource selection window does not satisfy the first preset condition. As shown in fig. 1, Tproc0 is the time interval between time slot n-1 (the trailing edge of the sensing window) to time slot n (the resource selection trigger time).
It should be noted that the third preset value may be a fixed value 31, or may be set as needed. If the third preset value is 31, any two resources are selected from the multiple resources indicated by the SCI, time slots of the two resources are respectively K1 and K2, and the requirements that K1 is equal to or more than-31 and K2 is equal to or less than 31 are met.
For example: under the condition that the first preset value is 3dB, the third preset value is 31, the power threshold value is an RSPR threshold value, the front edge of the resource selection window is T1, and the rear edge of the resource selection window is T2, if T2 is greater than 31-Tproc0, the resource selection window [ T1, T2] is divided into a first sub-window [ T1, 31-Tproc0] and a second sub-window [32-Tproc0, T2 ]. If the number of the candidate resources distributed in [ T1, 31-Tproc0] does not meet a second preset condition, increasing the RSPR threshold value by 3dB each time until the number of the candidate resources distributed in a first sub-window [ T1, 31-Tproc0] meets the second preset condition, stopping the resource exclusion process, and combining the candidate resources distributed in the first sub-window and the candidate resources distributed in the second sub-window to form a candidate resource set.
Further, the second preset condition includes, but is not limited to, any one of the following:
the number of candidate resources in the first sub-window is greater than or equal to the product of the total number of resources in the first sub-window and the target ratio;
the number of candidate resources in the first sub-window is greater than or equal to the product of the total number of resources in the first sub-window and the target ratio, and the number of candidate resources in the resource selection window is greater than or equal to the product of the total number of resources in the resource selection window and the target ratio.
Specifically, if the number of the candidate resources in the first sub-window is greater than or equal to the product of the total number of the resources in the first sub-window and the target ratio, the number of the candidate resources in the first sub-window satisfies a second preset condition, and the resource exclusion process is stopped. To avoid some special cases, the above steps can be optimized as: and if the number of the candidate resources in the first sub-window is greater than or equal to the product of the total resource number in the first sub-window and the target proportion, and the number of the candidate resources in the resource selection window is greater than or equal to the product of the total resource number in the resource selection window and the target proportion, judging that the number of the candidate resources in the first sub-window meets a second preset condition, and stopping the resource exclusion process.
For example: the terminal initiates resource selection at the resource selection triggering moment, if the resource selection window is [4, 99], the Tproc0 is 1, the resource quantity per time slot is 5, and the X% is 20%; the resource selection window is divided into two sub-windows, a first sub-window [4, 30] and a second sub-window [31, 99], wherein the total resource number in the first sub-window is 135, and the total resource number in the second sub-window is 345. After the initial resource selection is assumed, the number of the candidate resources in the first sub-window is 20 resources, and the number of the candidate resources in the second sub-window is 180 resources; at this time, the number of the candidate resources in the first sub-window does not satisfy the total resource number of the first sub-window by 20%; after the RSRP threshold value is raised by 3dB, the number of the candidate resources in the first sub-window is 30 resources, and the number of the candidate resources in the second sub-window is 220 resources; at this time, the number of candidate resources in the first sub-window is greater than the total number of resources in the first sub-window by 20%, and the resource excluding process is ended.
Optionally, step 21 may further include:
under the condition that the back edge of the resource selection window does not meet the first preset condition and the number of the candidate resources in the resource selection window does not meet a third preset condition, updating the power threshold value according to a rule of sequentially increasing a second preset value on the basis of the power threshold value until the number of the candidate resources in the resource selection window meets the third preset condition;
determining the candidate resource set according to the candidate resources in the resource selection window under the condition that the back edge of the resource selection window does not meet the first preset condition and the number of the candidate resources in the resource selection window meets the third preset condition;
and the second preset value is a preset power change value.
Further, the number of candidate resources in the resource selection window is greater than or equal to the product of the total number of resources in the resource selection window and the target ratio.
In the above embodiment, if the trailing edge of the resource selection window is less than or equal to the difference between the third preset value and Tproc0, and the number of candidate resources in the resource selection window is greater than or equal to the product of the total number of resources in the resource selection window and the target ratio, the candidate resources in the resource selection window are combined to form a candidate resource set. If the trailing edge of the resource selection window is less than or equal to the difference between the third preset value and Tproc0, and the number of candidate resources in the resource selection window is less than the product of the total resource number in the resource selection window and the target proportion, the power threshold value is updated according to a rule that the second preset value is sequentially increased on the basis of the power threshold value, in the updating process of the power threshold value, the number of candidate resources in the resource selection window changes until the number of candidate resources in the resource selection window is greater than or equal to the product of the total resource number in the resource selection window and the target proportion, and at this time, the candidate resources in the updated resource selection window are combined to form a candidate resource set. Preferably, the power threshold may be an RSPR threshold.
It should be noted that the second preset value is a preset power variation value, and the unit is dB, and the second preset value and the first preset value may be the same power variation value or different power variation values. Preferably, the second preset value may be 3dB, that is, the power threshold value is increased by 3dB each time; the second preset value is not limited to 3dB, and can be set as required.
Optionally, the step 22 may specifically include:
determining a third sub-window in the resource selection window according to the m, the front edge and the back edge of the resource selection window;
if the number of the candidate resources in the third sub-window does not meet a fourth preset condition, sequentially expanding the back edge of the third sub-window by a time slot rule to update the back edge of the third sub-window until the number of the candidate resources in the third sub-window meets the fourth preset condition;
and if the number of the candidate resources in the third sub-window meets the fourth preset condition, selecting m transmission resources from the candidate resources in the third sub-window.
In the above embodiment, if the number of candidate resources distributed in the third sub-window satisfies a fourth preset condition, m transmission resources are randomly selected from the candidate resources in the third sub-window. If the number of the candidate resources distributed in the third sub-window does not meet a fourth preset condition, expanding the back edge of the third sub-window backward by one time slot each time to update the back edge of the third sub-window until the number of the candidate resources distributed in the third sub-window meets the fourth preset condition, namely, gradually expanding the back edge of the third sub-window by one time slot from the first time slot after the third sub-window until the number of the candidate resources distributed in the third sub-window meets the fourth preset condition, and then randomly selecting m transmission resources from the updated candidate resources in the third sub-window.
Further, the fourth preset condition includes:
the number of the candidate resources in the third sub-window is greater than or equal to Z, where Z is high-level configuration or Quality of Service (QOS) generation, and Z is a positive integer.
Further, the determining a third sub-window in the resource selection window according to the m, the leading edge and the trailing edge of the resource selection window includes:
determining a third sub-window in the resource selection window according to T1 and the value of T1+ (T2-T1)/m;
wherein T1 is the leading edge of the resource selection window and the third sub-window, T2 is the trailing edge of the resource selection window, and the value of T1+ (T2-T1)/m is the trailing edge of the third sub-window, and the value of (T2-T1)/m is an integer.
In the above embodiment, T1 is the leading edge of the resource selection window, T2 is the trailing edge of the resource selection window, the leading edge of the third sub-window is the leading edge of the resource selection window, and the value of T1+ (T2-T1)/m is the trailing edge of the resource selection window. Randomly selecting m transmission resources from candidate resources in [ T1, T1+ (T2-T1)/m ] if the number of candidate resources in [ T1, T1+ (T2-T1)/m ] is greater than or equal to Z; if the number of candidate resources in [ T1, T1+ (T2-T1)/m ] is less than Z, the value of T1+ (T2-T1)/m is expanded backward step by time slot until the number of candidate resources distributed in the third sub-window is greater than or equal to Z, and then m transmission resources are randomly selected from the updated candidate resources in the third sub-window.
The value of (T2-T1)/m may be an integer up or an integer down, and is not particularly limited herein.
The above is explained in detail by a specific embodiment:
for example: the terminal initiates resource selection at the triggering moment of resource selection, if the number m of transmission resources required to be selected by the terminal is 4, the resource selection window is [4, 80 ]]The first preset value is 3dB, the third preset value is 31, Tproc0 is 1, the number of resources per timeslot is 3, and the resource selection parameter Z is 15; when the high layer configuration is m is 1, the target ratio X1(ii) 5; when m is greater than 1, by Xm=m*X1Can determine X2=2*5=10,X3=3*5=15,X44 x5 x 20, etc.
A trailing edge 80 of the resource selection window is greater than a value of 31-1-30, the resource selection window is divided into a first sub-window [4, 30%]And a second sub-window [31, 80 ]]The total resource amount in the first sub-window is 81, and the total resource amount in the second sub-window is 150. Assuming that after the initial resource selection, the number of candidate resources distributed in the first sub-window is 12 resources, and the number of candidate resources distributed in the second sub-window is 60 resources, at this time, the number of candidate resources in the first sub-window is less than the total number of resources X in the first sub-window4And percent, after the RSRP threshold value is raised by 3dB, the number of the candidate resources distributed in the first sub-window is 20 resources, the number of the candidate resources distributed in the second sub-window is 80 resources, and at this time, the number of the candidate resources distributed in the first sub-window is more than the total number of the resources in the first sub-window X4% and the resource elimination process is finished. Rounding down to (T2-T1)/m to obtain the third sub-window [ T1, T1+ (T2-T1)/m]Corresponds to [4, 23 ]]At this time [4, 23 ]]Contains 12 candidate resources less than 15, and will [4, 23 ]]Is shifted backward in time slots, after shifting the trailing edge to 27, i.e. the updated third sub-window [4, 27 ]]Contains 15 candidate resources, at which point the trailing edge move is stopped.In [4, 27 ]]Any one of the 15 candidate resources is used as an initial transmission resource; from [4, 27 ]]And randomly selecting retransmission resources, and if the retransmission is earlier than the initial transmission, interchanging the initial transmission and the retransmission.
In the embodiment of the invention, the characteristics of NR-V2X non-periodic service reservation, the quantity of resources required to be selected by the terminal, the service delay and other factors are fully considered, the problems that resource reservation in a resource selection window is unbalanced and the quantity of candidate resources is not changed along with the change of the quantity of the resources required to be selected in the existing resource selection process are solved, and the effectiveness of a resource selection mechanism is enhanced.
As shown in fig. 3, an embodiment of the present invention further provides a terminal 300, including:
a first determining module 310, configured to determine a candidate resource set in a resource selection window according to a number m of transmission resources that a terminal needs to select and/or a resource distribution of candidate resources in the resource selection window;
a first selection module 320 for selecting m transmission resources in the candidate resource set;
wherein m is a positive integer.
Optionally, the number of candidate resources in the candidate resource set and the number of resources in the resource selection window with a target proportion of X% satisfy a first preset relationship.
Optionally, the first preset relationship includes any one of:
m1 is not less than min (X%. M, K. M), K is high-level configuration;
M1≥X%*M;
wherein X% is predefined, M1 is the number of candidate resources in the candidate resource set, and M is the total number of resources in the resource selection window.
Optionally, the terminal 300 further includes:
and the second determining module is used for determining the target proportion corresponding to the transmission resource number m according to a second preset relation between the transmission resource number and the target proportion.
Optionally, the second preset relationship includes any one of:
Xm=m*X1m is greater than 1;
Xm=X1(m-1) S, m being greater than 1, wherein S is a high level configuration;
presetting a mapping relation;
wherein, XmFor a target proportion, X, corresponding to the number m of transmission resources1And configuring a target proportion when m is 1 for the high layer.
Optionally, the first determining module 310 includes:
the first processing unit is used for dividing the resource selection window into a first sub-window and a second sub-window when the rear edge of the resource selection window meets a first preset condition;
a second processing unit, configured to, when the number of candidate resources in the first sub-window does not satisfy a second preset condition, update the power threshold according to a rule that a first preset value is sequentially increased on the basis of the power threshold until the number of candidate resources in the first sub-window satisfies the first preset condition;
a third processing unit, configured to determine, when the number of candidate resources in the first sub-window meets the first preset condition, the candidate resource set according to the candidate resources in the first sub-window and the candidate resources in the second sub-window;
wherein, the first preset value is a preset power variation value.
Optionally, the second preset condition includes any one of:
the number of candidate resources in the first sub-window is greater than or equal to the product of the total number of resources in the first sub-window and the target ratio;
the number of candidate resources in the first sub-window is greater than or equal to the product of the total number of resources in the first sub-window and the target ratio, and the number of candidate resources in the resource selection window is greater than or equal to the product of the total number of resources in the resource selection window and the target ratio.
Optionally, the first determining module 310 further includes:
a fourth processing unit, configured to, when the trailing edge of the resource selection window does not satisfy the first preset condition and the number of candidate resources in the resource selection window does not satisfy a third preset condition, update the power threshold according to a rule that a second preset value is sequentially increased on the basis of the power threshold until the number of candidate resources in the resource selection window satisfies the third preset condition;
a fifth processing unit, configured to determine the candidate resource set according to the candidate resource in the resource selection window when the trailing edge of the resource selection window does not satisfy the first preset condition and the number of candidate resources in the resource selection window satisfies the third preset condition;
and the second preset value is a preset power change value.
Optionally, the first preset condition includes:
the rear edge of the resource selection window is greater than the difference between a third preset value and Tproc0, and the Tproc0 is the time interval between the rear edge of the sensing window and the resource selection trigger time;
and the third preset value is a maximum time slot value of a distance between any two resources in the multiple resources indicated by the preset direct link control information SCI.
Optionally, the third preset condition includes:
the number of candidate resources in the resource selection window is greater than or equal to the product of the total number of resources in the resource selection window and the target ratio.
Optionally, the first selecting module 320 includes:
a sixth processing unit, configured to determine a third sub-window in the resource selection window according to the m, and a leading edge and a trailing edge of the resource selection window;
a seventh processing unit, configured to, if the number of candidate resources in the third sub-window does not satisfy a fourth preset condition, sequentially expand a rule of one time slot for a trailing edge of the third sub-window to update the trailing edge of the third sub-window until the number of candidate resources in the third sub-window satisfies the fourth preset condition;
an eighth processing unit, configured to select m transmission resources from the candidate resources in the third sub-window if the number of candidate resources in the third sub-window meets the fourth preset condition.
Optionally, the fourth preset condition includes:
and the number of the candidate resources in the third sub-window is greater than or equal to Z, wherein Z is high-level configuration or quality of service (QOS) generation, and Z is a positive integer.
Optionally, the sixth processing unit includes:
determining a third sub-window in the resource selection window according to T1 and the value of T1+ (T2-T1)/m;
wherein T1 is the leading edge of the resource selection window and the third sub-window, T2 is the trailing edge of the resource selection window, and the value of T1+ (T2-T1)/m is the trailing edge of the third sub-window, and the value of (T2-T1)/m is an integer.
The terminal of the embodiment of the present invention is corresponding to the above-mentioned embodiment of the resource selection method applied to the terminal, and all implementation means in the above-mentioned embodiment of the method are applicable to the embodiment of the terminal, and can achieve the same technical effect, and are not described herein again.
As shown in fig. 4, an embodiment of the present invention further provides a terminal, including:
a processor 41; and a memory 43 connected to the processor 41 through the bus interface 42, wherein the memory 43 is used for storing programs and data used by the processor 41 in executing operations, and when the processor 41 calls and executes the programs and data stored in the memory 43, the following processes are performed.
Among other things, the transceiver 44 is connected to the bus interface 42 for receiving and transmitting data under the control of the processor 41, specifically:
determining a candidate resource set in a resource selection window according to the number m of transmission resources required to be selected by a terminal and/or the resource distribution of candidate resources in the resource selection window;
selecting m transmission resources in the candidate resource set;
wherein m is a positive integer.
Optionally, the number of candidate resources in the candidate resource set and the number of resources in the resource selection window with a target proportion of X% satisfy a first preset relationship.
Optionally, the first preset relationship includes any one of:
m1 is not less than min (X%. M, K. M), K is high-level configuration;
M1≥X%*M;
wherein X% is predefined, M1 is the number of candidate resources in the candidate resource set, and M is the total number of resources in the resource selection window.
Optionally, when the processor 41 executes the computer program, the following steps are implemented:
and determining a target proportion corresponding to the transmission resource number m according to a second preset relation between the transmission resource number and the target proportion.
Optionally, the second preset relationship includes any one of:
Xm=m*X1m is greater than 1;
Xm=X1(m-1) S, m being greater than 1, wherein S is a high level configuration;
presetting a mapping relation;
wherein, XmFor a target proportion, X, corresponding to the number m of transmission resources1And configuring a target proportion when m is 1 for the high layer.
Optionally, when the processor 41 executes the computer program, the following steps are specifically implemented:
when the rear edge of the resource selection window meets a first preset condition, dividing the resource selection window into a first sub-window and a second sub-window;
under the condition that the number of the candidate resources in the first sub-window does not meet a second preset condition, updating the power threshold value according to a rule that a first preset value is sequentially increased on the basis of the power threshold value until the number of the candidate resources in the first sub-window meets the first preset condition;
under the condition that the number of the candidate resources in the first sub-window meets the first preset condition, determining the candidate resource set according to the candidate resources in the first sub-window and the candidate resources in the second sub-window;
wherein, the first preset value is a preset power variation value.
Optionally, the second preset condition includes any one of:
the number of candidate resources in the first sub-window is greater than or equal to the product of the total number of resources in the first sub-window and the target ratio;
the number of candidate resources in the first sub-window is greater than or equal to the product of the total number of resources in the first sub-window and the target ratio, and the number of candidate resources in the resource selection window is greater than or equal to the product of the total number of resources in the resource selection window and the target ratio.
Optionally, when the processor 41 executes the computer program, the following steps are specifically implemented:
under the condition that the back edge of the resource selection window does not meet the first preset condition and the number of the candidate resources in the resource selection window does not meet a third preset condition, updating the power threshold value according to a rule of sequentially increasing a second preset value on the basis of the power threshold value until the number of the candidate resources in the resource selection window meets the third preset condition;
determining the candidate resource set according to the candidate resources in the resource selection window under the condition that the back edge of the resource selection window does not meet the first preset condition and the number of the candidate resources in the resource selection window meets the third preset condition;
and the second preset value is a preset power change value.
Optionally, the first preset condition includes:
the rear edge of the resource selection window is greater than the difference between a third preset value and Tproc0, and the Tproc0 is the time interval between the rear edge of the sensing window and the resource selection trigger time;
and the third preset value is a maximum time slot value of a distance between any two resources in the multiple resources indicated by the preset direct link control information SCI.
Optionally, the third preset condition includes:
the number of candidate resources in the resource selection window is greater than or equal to the product of the total number of resources in the resource selection window and the target ratio.
Optionally, when the processor 41 executes the computer program, the following steps are specifically implemented:
determining a third sub-window in the resource selection window according to the m, the front edge and the back edge of the resource selection window;
if the number of the candidate resources in the third sub-window does not meet a fourth preset condition, sequentially expanding the back edge of the third sub-window by a time slot rule to update the back edge of the third sub-window until the number of the candidate resources in the third sub-window meets the fourth preset condition;
and if the number of the candidate resources in the third sub-window meets the fourth preset condition, selecting m transmission resources from the candidate resources in the third sub-window.
Optionally, the fourth preset condition includes:
and the number of the candidate resources in the third sub-window is greater than or equal to Z, wherein Z is high-level configuration or quality of service (QOS) generation, and Z is a positive integer.
Optionally, when the processor 41 executes the computer program, the following steps are specifically implemented:
determining a third sub-window in the resource selection window according to T1 and the value of T1+ (T2-T1)/m;
wherein T1 is the leading edge of the resource selection window and the third sub-window, T2 is the trailing edge of the resource selection window, and the value of T1+ (T2-T1)/m is the trailing edge of the third sub-window, and the value of (T2-T1)/m is an integer.
The terminal of the embodiment of the present invention is corresponding to the above embodiment of the resource selection method applied to the terminal, and all implementation means in the above embodiment of the method are applicable to the embodiment of the terminal, and can achieve the same technical effect, which is not described herein again.
It should be noted that in fig. 4, the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by processor 41 and various circuits of memory represented by memory 43 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver X4 may be a number of elements, including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. For different terminals, the user interface X5 may also be an interface capable of interfacing with a desired device, including but not limited to a keypad, display, speaker, microphone, joystick, etc. The processor X1 is responsible for managing the bus architecture and general processing, and the memory X3 may store data used by the processor X1 in performing operations.
Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be performed by hardware, or may be instructed to be performed by associated hardware by a computer program that includes instructions for performing some or all of the steps of the above methods; and the computer program may be stored in a readable storage medium, which may be any form of storage medium.
Furthermore, it is to be noted that in the device and method of the invention, it is obvious that the individual components or steps can be decomposed and/or recombined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention. Also, the steps of performing the series of processes described above may naturally be performed chronologically in the order described, but need not necessarily be performed chronologically, and some steps may be performed in parallel or independently of each other. It will be understood by those skilled in the art that all or any of the steps or elements of the method and apparatus of the present invention may be implemented in any computing device (including processors, storage media, etc.) or network of computing devices, in hardware, firmware, software, or any combination thereof, which can be implemented by those skilled in the art using their basic programming skills after reading the description of the present invention.
Thus, the objects of the invention may also be achieved by running a program or a set of programs on any computing device. The computing device may be a general purpose device as is well known. The object of the invention is thus also achieved solely by providing a program product comprising program code for implementing the method or the apparatus. That is, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. It is to be understood that the storage medium may be any known storage medium or any storage medium developed in the future. It is further noted that in the apparatus and method of the present invention, it is apparent that each component or step can be decomposed and/or recombined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention. Also, the steps of executing the series of processes described above may naturally be executed chronologically in the order described, but need not necessarily be executed chronologically. Some steps may be performed in parallel or independently of each other.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.