Method and device for selecting resource, and storage medium
A method for selecting a resource is performed by a first device, and includes: sending an assistance request for requesting a second device to provide an assistance resource set; and receiving an assistance resource report from the second device, wherein the assistance resource report indicates the assistance resource set provided by the second device.
1 . A method for selecting a resource, performed by a first device, comprising:
sending an assistance request for requesting a second device to provide an assistance resource set; and
receiving an assistance resource report from the second device, wherein the assistance resource report indicates the assistance resource set provided by the second device;
wherein the assistance resource set is in a resource selection window of the first device;
wherein a start time of the resource selection window is determined based on a first time, and the first time is a time when the first device is triggered to select the resource.
2 . The method of claim 1 , further comprising:
selecting a transmission resource at least based on the assistance resource set.
3 . The method of claim 1 , further comprising:
sending first indication information for indicating the first time, wherein the first indication information is carried in a physical layer control signaling for sending the assistance request.
4 . The method of claim 1 , wherein sending the assistance request comprises:
sending the assistance request in response to a data packet of the first device arriving and triggering the first device to select the resource.
5 . The method of claim 1 , wherein sending the assistance request comprises:
sending the assistance request based on a physical layer control signaling.
6 . The method of claim 1 , wherein receiving the assistance resource report from the second device comprises:
receiving the assistance resource report from the second device based on a physical layer control signaling.
7 . A non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor of a first device, the first device is caused to perform the method of claim 1 .
8 . A method for selecting a resource, performed by a second device, comprising:
receiving an assistance request for requesting the second device to provide an assistance resource set; and
sending an assistance resource report, wherein the assistance resource report indicates the assistance resource set provided by the second device;
wherein the assistance resource set is in a resource selection window of a first device; and the method further comprises:
determining a start time of the resource selection window, and determining the resource selection window based on the start time, wherein the first time is a time when the first device is triggered to select the resource.
9 . The method of claim 8 ,
wherein determining the resource selection window based on the start time comprises:
taking a specified time interval after the start time as the resource selection window.
10 . The method of claim 8 , further comprising:
receiving first indication information for indicating the first time, wherein the first indication information is carried in a physical layer control signaling of the assistance request.
11 . The method of claim 8 , wherein receiving the assistance request comprises:
receiving the assistance request based on a physical layer control signaling.
12 . The method of claim 8 , wherein sending the assistance resource report comprises:
sending the assistance resource report based on a physical layer control signaling.
13 . A second device for selecting a resource, comprising:
a processor; and
a memory configured to store instructions executable by the processor;
wherein the processor is configured to perform the method of claim 8 .
14 . A first device for selecting a resource, comprising:
a processor; and
a memory configured to store instructions executable by the processor;
wherein the processor is configured to:
send an assistance request for requesting a second device to provide an assistance resource set; and
receive an assistance resource report from the second device, wherein the assistance resource report indicates the assistance resource set provided by the second device;
wherein the assistance resource set is in a resource selection window of the first device;
wherein a start time of the resource selection window is determined based on a first time, and the first time is a time when the first device is triggered to select the resource.