Resource selection method and apparatus, and electronic device
A resource selection method and apparatus, and an electronic device are provided. The resource selection method includes: obtaining, by a transmit user equipment, assistance information of another node, where performing, by the transmit user equipment, resource selection based on at least the assistance information includes any one of the following: determining, by the transmit user equipment, a candidate resource set based on a resource sensing result and/or the assistance information, and performing resource selection based on the candidate resource set and/or the assistance information; obtaining or creating, by the transmit user equipment, at least one sidelink grant based on the assistance information, where the sidelink grant includes one or a group of sidelink transmission resources; and performing, by the transmit user equipment, resource selection based on at least one piece of the assistance information.
1 . A resource selection method, performed by a transmit user equipment, comprising:
obtaining assistance information from a plurality of user equipments; and
performing resource selection based on at least the assistance information comprises:
performing resource selection for unicast transmission to a receiving user equipment based on;
a candidate resource set, and
an assistance resource set indicated by the assistance information received from the receiving user equipment,
wherein among the assistance information obtained from the plurality of user equipments, only the assistance information transmitted by the receiving user equipment is used for the resource selection,
wherein the assistance resource set indicated by the assistance information is a resource set preferred by the receiving user equipment, and
wherein the candidate resource set is determined by the transmit user equipment according to a resource sensing result.
2 . The resource selection method according to claim 1 , wherein the assistance information comprises at least one of the following:
a resource-related measurement parameter;
resource-related priority information; or
a threshold value of a resource-related measurement parameter.
3 . The resource selection method according to claim 2 , wherein performing resource selection based on at least the assistance information comprises determining the candidate resource set based on the resource sensing result or the assistance information, wherein performing resource selection based on the assistance resource set or the candidate resource set comprises:
determining a probability of each candidate resource to be selected based on the assistance resource set and the candidate resource set, wherein:
a first candidate resource has a first probability, and the first candidate resource is located in both the assistance resource set and the candidate resource set;
a second candidate resource has a second probability, and the second candidate resource is located in the candidate resource set but not in the assistance resource set; and
a third candidate resource has a third probability, and the third candidate resource is located in the assistance resource set but not in the candidate resource set.
4 . The resource selection method according to claim 1 , wherein performing resource selection based on at least the assistance information comprises determining the candidate resource set based on the resource sensing result or the assistance information comprising:
determining a resource-related measurement parameter value or a threshold value of a resource-related measurement parameter in a resource selection window by using a resource-related measurement parameter in the assistance information or a resource-related measurement parameter obtained based on the resource sensing result.
5 . The resource selection method according to claim 4 , wherein the determining a resource-related measurement parameter value or a threshold value of a resource-related measurement parameter in a resource selection window by using a resource-related measurement parameter in the assistance information or a resource-related measurement parameter obtained based on the resource sensing result comprises:
determining a resource quality parameter value or a threshold value Y of a resource-related measurement parameter in the resource selection window by using any of the following formulas:
Y=a*Y 1+ b*Y 2;
Y =min( Y 1, Y 2); or
Y =max( Y 1, Y 2), wherein
Y1 is a resource-related measurement parameter or a threshold value of a resource-related measurement parameter obtained based on the resource sensing result, Y2 is a resource-related measurement parameter or a threshold value of a resource-related measurement parameter in the assistance information, and a and b are values specified by a protocol or configured by a control node or pre-configured by a control node or indicated by another user equipment.
6 . The resource selection method according to claim 4 , wherein
when the resource-related measurement parameter or the threshold value of the resource-related measurement parameter in the assistance information is greater than a first preset threshold, adjusting a value of the resource-related measurement parameter or the threshold value of the resource-related measurement parameter in the assistance information to a first preset value; and
when the resource-related measurement parameter or the threshold value of the resource-related measurement parameter in the assistance information is less than a second preset threshold, adjusting a value of the resource-related measurement parameter or the threshold value of the resource-related measurement parameter in the assistance information to 0, wherein
the first preset threshold, the second preset threshold, and the first preset value are values specified by a protocol, configured by a control node, pre-configured by the control node, or indicated by another user equipment.
7 . The resource selection method according to claim 1 , wherein performing resource selection based on at least the assistance information comprises determining the candidate resource set based on the resource sensing result or the assistance information comprising:
determining a priority value of a resource in a resource selection window by using resource priority information in the assistance information or resource priority information obtained based on the resource sensing result.
8 . The resource selection method according to claim 7 , wherein the determining a priority value of a resource in a resource selection window by using resource priority information in the assistance information or resource priority information obtained based on the resource sensing result comprises:
determining a priority value X of a resource in the resource selection window by using any of the following formulas:
X=c*X 1+ d*X 2;
X =min( X 1, X 2); or
X =max( X 1, X 2), wherein
X1 is the resource priority information obtained based on the resource sensing result, X2 is the resource priority information in the assistance information, and c and d are values specified by a protocol, configured by a control node, pre-configured by the control node, or indicated by another user equipment.
9 . The resource selection method according to claim 7 , wherein
when the resource priority information in the assistance information is greater than a third preset threshold, a value of the resource priority information in the assistance information is adjusted to a second preset value; and
when the resource priority information in the assistance information is less than a fourth preset threshold, a value of the resource priority information in the assistance information is adjusted to 0, wherein
the third preset threshold, the fourth preset threshold, and the second preset value are values specified by a protocol, configured by a control node, pre-configured by the control node, or indicated by another user equipment.
10 . The resource selection method according to claim 1 , wherein performing resource selection based on at least the assistance information comprises determining the candidate resource set based on the resource sensing result or the assistance information comprising:
determining a measurement value threshold of a candidate resource based on assistance information notified by the receive user equipment, and determining the candidate resource set based on the measurement value threshold.
11 . The resource selection method according to claim 10 , wherein the measurement value threshold comprises the threshold value of the resource-related measurement parameter in the assistance information or is determined based on the assistance information.
12 . The resource selection method according to claim 1 , wherein performing resource selection based on at least the assistance information further comprises:
obtaining or creating at least one sidelink grant based on the assistance information, wherein the sidelink grant comprises one or a group of sidelink transmission resources,
wherein a value, a maximum value, or a minimum value of the number N of the sidelink grants is a value specified by a protocol, configured by a control node, pre-configured by the control node, or indicated by another user equipment, and N is a positive integer.
13 . The resource selection method according to claim 12 , further comprising:
indicating a selected resource of the sidelink grant to another user equipment in a resource reservation manner.
14 . The resource selection method according to claim 12 , wherein after the obtaining or creating at least one sidelink grant based on the assistance information, the method further comprises:
selecting a resource used for sidelink transmission from resources of the at least one sidelink grant based on any one of the following, or selecting a sidelink grant used for sidelink transmission from the at least one sidelink grant:
a transmission time;
a location of the transmit user equipment; or
an identifier of the transmit user equipment.
15 . The resource selection method according to claim 12 , wherein one resource set is divided into, configured, or pre-configured as a resource of the sidelink grant in a preset mode.
16 . The resource selection method according to claim 1 , wherein performing resource selection based on at least the assistance information further comprises:
performing resource selection based on at least one piece of the assistance information, further comprising at least one of the following:
obtaining at least one piece of assistance information notified by groupcast receive user equipments; or
obtaining at least one piece of assistance information notified by a proximity user equipment.
17 . The resource selection method according to claim 16 , wherein the performing resource selection based on at least one piece of the assistance information comprises:
receiving M resource sets notified by another node;
determining a second weight of the resource based on a first weight of the resource in the M resource sets; or
performing resource selection based on the second weight of the resource.
18 . The resource selection method according to claim 16 , wherein the assistance information further comprises at least one of the following:
a source or a type of the assistance information;
a timestamp of the assistance information;
a validity period of the assistance information;
location information of user equipment sending the assistance information;
a moving speed of user equipment sending the assistance information; or
a moving direction of user equipment sending the assistance information.
19 . A transmit user equipment, comprising:
a memory storing computer-readable instructions; and
a processor coupled to the memory and configured to perform the computer-readable instructions, wherein the computer-readable instructions, when executed by the processor, cause the processor to perform operations comprising:
obtaining assistance information from a plurality of user equipments; and
performing resource selection based on at least the assistance information comprises:
performing resource selection for unicast transmission to a receiving user equipment based on:
a candidate resource set, and
an assistance resource set indicated by the assistance information received from the receiving user equipment,
wherein among the assistance information obtained from the plurality of user equipments, only the assistance information transmitted by the receiving user equipment is used for the resource selection,
wherein the assistance resource set indicated by the assistance information is a resource set preferred by the receiving user equipment,
wherein the candidate resource set is determined by the transmit user equipment according to a resource sensing result.
20 . A non-transitory computer-readable medium storing an instruction that, when executed by a processor of a transmit user equipment, cause the processor to perform operations comprising:
obtaining assistance information from a plurality of user equipments; and
performing resource selection based on at least the assistance information comprises:
performing resource selection for unicast transmission to a receiving user equipment based on:
a candidate resource set, and
an assistance resource set indicated by the assistance information received from the receiving user equipment,
wherein among the assistance information obtained from the plurality of user equipments, only the assistance information transmitted by the receiving user equipment is used for the resource selection,
wherein the assistance resource set indicated by the assistance information is a resource set preferred by the receiving user equipment,
wherein the candidate resource set is determined by the transmit user equipment according to a resource sensing result.