Method and apparatus for determining resource in NR V2X
Provided are a method for performing wireless communication by a first device, and an apparatus for supporting same. The method may comprise: receiving, from a base station, information related to a time offset of a sidelink (SL) resource and information related to a first period of the SL resource; determining a number of slots belonging to a resource pool within 10240 ms; obtaining information related to a second period in a logical slot unit, from the information related to the first period based on the number of slots belonging to the resource pool; and determining a time domain of the SL resource based on the information related to the second period, the information related to the time offset, and the number of slots belonging to the resource pool.
1. A method performed by a first device in a wireless communication system, the method comprising:
obtaining information related to a time offset of a sidelink (SL) resource and information related to a first period of the SL resource;
determining a set of slots assigned to a resource pool by excluding a slot for a sidelink-synchronization signal block (S-SSB) and a reserved slot from slots that belongs within 10240 milliseconds ms);
based on a number of the slots in the set of slots, obtaining information related to a second period by converting the information related to the first period from units of ms to units of logical slots; and
obtaining a remainder value related to units of logical slots by dividing a value obtained based on the information related to the second period and the information related to the time offset by the number of the slots in the set of slots,
wherein the remainder value is a value for a time domain of the SL resource related to units of logical slots.
2. The method of claim 1 ,
wherein the time domain of the SL resource refers to a current logical slot related to the resource pool.
3. The method of claim 2 ,
wherein the current logical slot is considered sequentially.
4. The method of claim 3 ,
wherein that a 1 st slot of S th sidelink grant occurs in units of logical slots is considered sequentially.
5. The method of claim 4 ,
wherein a sidelink grant related to the S th sidelink grant is configured for a configured grant type 1.
6. The method of claim 5 ,
wherein the number of the slots in the set of slots is determined based on a number of bits set to 1 among bits of a bitmap related to the resource pool.
7. The method of claim 1 , further comprising:
obtaining a first value by multiplying the information related to the second period by a value of S;
obtaining a second value by adding the information related to the time offset to the first value; and
obtaining a third value, which is a remainder value, obtained by dividing the second value by the number of the slots in the set of slots,
wherein the value of S is a zero or a positive integer.
8. The method of claim 7 ,
wherein the time domain of the SL resource is a current logical slot represented by the third value.
9. The method of claim 8 ,
wherein the current logical slot represented by the third value is a 1 st slot of a sidelink grant in a S-th period.
10. The method of claim 1 ,
wherein the information related to the time offset is information with respect to units of logical slots.
11. The method of claim 1 , wherein the SL resource is a configured grant (CG) type-1 resource or a CG type-2 resource allocated by a CG.
12. The method of claim 11 , wherein, based on the SL resource being the CG type-1 resource, the information related to the time offset and the information related to the first period are received from a base station through a radio resource control (RRC) message, and
wherein, based on the SL resource being the CG type-2 resource, the information related to the first period is received from the base station through an RRC message, and the information related to the time offset is received from the base station through a downlink control information (DCI).
13. The method of claim 1 , further comprising:
transmitting, to a second device through a physical sidelink control channel (PSCCH), a first sidelink control information (SCI) for scheduling a physical sidelink shared channel (PSSCH) based on the SL resource; and
transmitting, to the second device through the PSSCH, a second SCI, or a medium access control protocol data unit (MAC PDU) based on the SL resource.
14. The method of claim 1 ,
wherein, based on a slot belonging to the set of slots, the set of slots assigned to the resource pool is determined, and
wherein the slot includes all the slots that belong within the 10240 ms except the slot for the S-SSB and the reserved slot, and, based on a bitmap of the slot being 1, the slot belongs to the set of slots.
15. The method of claim 14 ,
wherein the information related to the second period is obtained by dividing a value by the 10240 ms, and
wherein the value is obtained by multiplying the information related to the first period by the number of the slots in the set of slots.
16. A first device adapted to perform wireless communication, the first device comprising:
at least one transceiver;
at least one processor; and
at least one memory connected to the at least one processor and storing instructions that, based on being executed, cause the at least one processor to perform operations comprising:
obtaining information related to a time offset of a sidelink (SL) resource and information related to a first period of the SL resource;
determining a set of slots assigned to a resource pool by excluding a slot for a sidelink-synchronization signal block (S-SSB) and a reserved slot from slots that belongs within 10240 milliseconds (ms);
based on a number of the slots in the set of slots, obtaining information related to a second period by converting the information related to the first period from units of ms to units of logical slots; and
obtaining a remainder value related to units of logical slots by dividing a value obtained based on the information related to the second period and the information related to the time offset by the number of the slots in the set of slots,
wherein the remainder value is a value for a time domain of the SL resource related to units of logical slots.
17. A processing device adapted to control a first device, the processing device comprising:
at least one processor; and
at least one memory connected to the at least one processor and storing instructions that, based on being executed, cause the first device to perform operations comprising:
obtaining information related to a time offset of a sidelink (SL) resource and information related to a first period of the SL resource;
determining a set of slots assigned to a resource pool by excluding a slot for a sidelink-synchronization signal block (S-SSB) and a reserved slot from slots that belongs within 10240 milliseconds (ms);
based on a number of the slots in the set of slots, obtaining information related to a second period by converting the information related to the first period from units of ms to units of logical slots; and
obtaining a remainder value related to units of logical slots by dividing a value obtained based on the information related to the second period and the information related to the time offset by the number of the slots in the set of slots,
wherein the remainder value is a value for a time domain of the SL resource related to units of logical slots.