Resource selection method and device
A resource selection method and a device are provided. The method is performed by a user equipment. The method comprises determining a first resource set. The first resource set is a subset of a second resource set. The method further comprises selecting a target resource according to the first resource set.
1 . A resource selection method, performed by a user equipment, comprising:
selecting a first resource set from a second resource set; and
selecting a target resource according to the first resource set,
wherein selecting the target resource according to the first resource set comprises:
determining a resource selection window,
determining a third resource set according to the first resource set and the resource selection window, and
selecting the target resource from the third resource set.
2 . The resource selection method according to claim 1 , wherein the first resource set is a subset of the second resource set divided based on at least one of the following parameters:
a subset size;
a start position;
a target quantity; or
a period.
3 . The resource selection method according to claim 2 , wherein the at least one parameter is specified in a protocol, or pre-configured, or configured by a control node, or indicated by a control node, or determined based on a first preset policy.
4 . The resource selection method according to claim 3 , wherein the first preset policy comprises at least one of the following content items:
group information of the user equipment;
a quantity of sidelink radio resource control connections of the user equipment; or
a size of to-be-transmitted data of the user equipment.
5 . The resource selection method according to claim 1 , wherein each subset of the second resource set has a corresponding index number.
6 . The resource selection method according to claim 5 , wherein a quantity of the index numbers is equal to a quantity of the subsets of the second resource set; or
the quantity of the index numbers is specified in a protocol, or pre-configured, or configured by a control node, or indicated by a control node, or determined based on a second preset policy.
7 . The resource selection method according to claim 6 , wherein the second preset policy comprises at least one of the following content items:
group information of the user equipment; or
the quantity of the subsets of the second resource set.
8 . The resource selection method according to claim 1 , wherein selecting the first resource set from the second resource set based on at least one piece of the following information:
an in-group identity (ID) of the user equipment;
a source ID of the user equipment;
a destination user equipment ID;
time information;
a sidelink network ID;
geographic location information; or
a resource pool ID.
9 . The resource selection method according to claim 1 , wherein after the selecting a target resource according to the first resource set, the method further comprises:
sending data on the target resource according to a power control parameter corresponding to the first resource set.
10 . A user equipment, comprising a memory having a computer program stored thereon; and a processor, wherein the computer program, when executed by the processor, causes the processor to perform a resource selection method, comprising:
selecting a first resource set from a second resource set; and
selecting a target resource according to the first resource set,
wherein selecting the target resource according to the first resource set comprises:
determining a resource selection window,
determining a third resource set according to the first resource set and the resource selection window, and
selecting the target resource from the third resource set.
11 . The user equipment according to claim 10 , wherein the first resource set is a subset of the second resource set divided based on at least one of the following parameters:
a subset size;
a start position;
a target quantity; or
a period.
12 . The user equipment according to claim 11 , wherein the at least one parameter is specified in a protocol, or pre-configured, or configured by a control node, or indicated by a control node, or determined based on a first preset policy.
13 . The user equipment according to claim 12 , wherein the first preset policy comprises at least one of the following content items:
group information of the user equipment;
a quantity of sidelink radio resource control connections of the user equipment; or
a size of to-be-transmitted data of the user equipment.
14 . The user equipment according to claim 10 , wherein each subset of the second resource set has a corresponding index number.
15 . The user equipment according to claim 14 , wherein a quantity of the index numbers is equal to a quantity of the subsets of the second resource set; or
the quantity of the index numbers is specified in a protocol, or pre-configured, or configured by a control node, or indicated by a control node, or determined based on a second preset policy.
16 . The user equipment according to claim 15 , wherein the second preset policy comprises at least one of the following content items:
group information of the user equipment; or
the quantity of the subsets of the second resource set.
17 . The user equipment according to claim 10 , wherein selecting the first resource set from the second resource set based on at least one piece of the following information:
an in-group identity (ID) of the user equipment;
a source ID of the user equipment;
a destination user equipment ID;
time information;
a sidelink network identity (ID);
geographic location information; or
a resource pool ID.
18 . A non-transitory computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, causes the processor to perform a resource selection method, comprising:
selecting a first resource set from a second resource set; and
selecting a target resource according to the first resource set,
wherein selecting the target resource according to the first resource set comprises:
determining a resource selection window,
determining a third resource set according to the first resource set and the resource selection window, and
selecting the target resource from the third resource set.