Communication method and apparatus, and readable storage medium
Embodiments of this application provide communication methods, apparatuses, and readable storage media. One method includes: receiving, by a second device from a first device, a first priority for the second device in selecting a resource for sidelink transmission of the first device and a second priority indicating a priority of the PSSCH, wherein the first priority is carried in sidelink control information (SCI) on a physical sidelink shared channel (PSSCH) or a medium access control control element (MAC CE), and wherein the second priority is carried in SCI on a physical sidelink control channel (PSCCH), and selecting, by the second device based on the first priority, a resource for sidelink transmission of the first device.
1 . A communication method, comprising:
receiving, from a first device, a first priority for a second device in selecting a resource for sidelink transmission of the first device and a second priority indicating a priority of a physical sidelink shared channel (PSSCH), wherein the first priority is carried in sidelink control information 2-C(SCI 2-C) on the PSSCH or a medium access control control element (MAC CE), the SCI 2-C comprises a fifth field that occupies 3 bits and indicates the first priority and wherein the second priority is carried in SCI on a physical sidelink control channel (PSCCH); and
selecting, based on the first priority, a resource for sidelink transmission of the first device.
2 . The method according to claim 1 , further comprising:
receiving a coordination request from the first device.
3 . The method according to claim 2 , wherein the first priority is obtained based on the coordination request.
4 . The method according to claim 2 , wherein the coordination request comprises the first priority and the second priority.
5 . The method according to claim 1 , wherein a value of the second priority is 1.
6 . The method according to claim 1 , wherein the second priority is carried in SCI 1 on the PSCCH.
7 . The method according to claim 1 , wherein the first priority is carried in a medium access control sub-protocol data unit, the medium access control sub-protocol data unit comprises a first subheader and a first control element, the first subheader comprises a first field, and the first field indicates a logical channel number.
8 . The method according to claim 7 , wherein a first value of the first field in the first subheader indicates that the first priority is transmitted.
9 . The method according to claim 1 , further comprising:
selecting the resource for sidelink transmission of the first device, based on: the first priority, a location and a length of a resource sensing window, a quantity of resource selection frequency domain sub-bandwidths, a transmission period, and resource pool information.
10 . A wireless apparatus, comprising:
one or more processors; and
a memory storing instructions for execution by the one or more processors for performing operations comprising:
receiving a first priority for the wireless apparatus in selecting a resource for sidelink transmission of a first device and a second priority indicating a priority of a physical sidelink shared channel (PSSCH), wherein the first priority is carried in sidelink control information 2-C(SCI 2-C), on the PSSCH or a medium access control control element (MAC CE), the SCI 2-C comprises a fifth field that occupies 3 bits and indicates the first priority and wherein the second priority is carried in SCI on a physical sidelink control channel (PSCCH); and
selecting, based on the first priority, a resource for sidelink transmission of the first device.
11 . The wireless apparatus according to claim 10 , further comprising:
receiving a coordination request from the first device.
12 . The wireless apparatus according to claim 11 , wherein the first priority is obtained based on the coordination request.
13 . The wireless apparatus according to claim 11 , wherein the coordination request comprises the first priority and the second priority.
14 . The wireless apparatus according to claim 10 , wherein a value of the second priority is 1.
15 . The wireless apparatus according to claim 10 , wherein the second priority is carried in SCI 1 on the PSCCH.
16 . The wireless apparatus according to claim 10 , wherein the first priority is carried in a medium access control sub-protocol data unit, the medium access control sub-protocol data unit comprises a first subheader and a first control element, the first subheader comprises a first field, and the first field indicates a logical channel number.
17 . The wireless apparatus according to claim 16 , wherein a first value of the first field in the first subheader indicates that the first priority is transmitted.
18 . The wireless apparatus according to claim 10 , further comprising:
selecting the resource for sidelink transmission of the first device, based on the first priority, a location and a length of a resource sensing window, a quantity of resource selection frequency domain sub-bandwidths, a transmission period, and resource pool information.