Methods and devices for resource selection
Embodiments of the present disclosure relate to methods, devices and computer readable mediums for resource selection. The method comprises: receiving, at a first terminal device, a message from a second terminal device, the message indicating information associated with vehicle-to-everything (V2X) communication during movement of the second terminal device; and determining, at least partially based on the message, a resource for the first terminal device to perform the V2X communication.
1. A method performed by a terminal device, comprising:
determining an index of a resource for vehicle-to-everything (V2X) communication by performing a modulo operation on a number of resources by using an identity of the terminal device; and
performing the V2X communication based on the determined index of the resource.
2. A terminal device, comprising:
a processor configured to:
determine an index of a resource for vehicle-to-everything (V2X) communication by performing a modulo operation on a number of resources by using an identity of the terminal device; and
perform the V2X communication based on the determined index of the resource.
3. A non-transitory computer readable medium having instructions stored thereon, the instructions, when executed on at least one processor, causing the at least one processor to:
determine an index of a resource for vehicle-to-everything (V2X) communication by performing a modulo operation on a number of resources by using an identity of the terminal device; and
perform the V2X communication based on the determined index of the resource.