METHOD AND DEVICE FOR COMMUNICATION PROCESSING

DE602019067961T2Active Publication Date: 2025-03-26HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE602019067961
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2019-08-16
Publication Date
2025-03-26
Estimated Expiration
2039-08-16

AI Technical Summary

Technical Problem

Current NR V2X communication systems face inefficiencies in resource utilization due to overlapping mode-1 and mode-2 resources, leading to high peak-to-average power ratio and resource wastage, particularly in sidelink transmissions between terminal devices.

Method used

A communication processing method where terminal devices send information to network devices to indicate resource release or request, allowing for dynamic allocation and optimization of sidelink, uplink, and downlink resources, reducing overlap and improving utilization by using RRC, MAC, and physical layer signaling.

Benefits of technology

Enhances resource utilization by allowing network devices to allocate released resources efficiently, reducing overlap and peak-to-average power ratio, thereby improving communication efficiency in NR V2X systems.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] This application relates to communication technologies, and in particular, to communication processing methods and a communication processing apparatus.BACKGROUND

[0002] A vehicle-to-everything (vehicle-to-everything, V2X) wireless communication technology is a next-generation information and communication technology that connects vehicles to everything. V represents vehicles, and X represents any object that exchanges information with vehicles, for example, a vehicle, a person, transportation roadside infrastructure, or a network.

[0003] In a 5G new radio (New Radio, NR) V2X communication system, an SL transmission resource of a sidelink (sidelink, SL) between a first terminal device and a second terminal device may be scheduled by a base station. This mode in which the base station schedules the SL transmission resource is referred to as a mode 1 in NR V2X. In the NR V2X communication system, the SL transmission resource of the SL between the first terminal device and the second terminal device may be further determined by the first terminal device or the second terminal device (where for example, the first terminal device may independently obtain the SL transmission resource from an SL resource pool configured by the base station for the first terminal device, and send a control signal and / or a data signal to the second terminal device by using the transmission resource). This mode in which a terminal device determines the SL transmission resource is referred to as a mode 2. A current NR V2X communication system supports coexistence of the mode 1 and the mode 2.

[0004] It can be learned from the foregoing solution that the current NR V2X communication system supports coexistence of the mode 1 and the mode 2. In this case, a mode-1 resource and a mode-2 resource that are obtained by the terminal device overlap in time domain. For example, if the terminal device simultaneously sends data on the two resources, a peak to average power ratio (peak to average power ratio, PAPR) may be extremely high. US 2018 / 035427 A1 shows a sidelink signal communication scheme that provides for rapid adaptation of the sidelink transmission based on feedback received during each transmission time interval. US 2018 / 206260 A1 shows a wireless communication device which is configured to perform resource access in device-to-device communication. A user equipment is provided with processing hardware comprising application processing circuitry and baseband processing circuitry. The application processing circuitry assigns a per-packet priority to data packets in the application layer. The baseband processing circuitry maps the per-packet priority to a transmission priority in the physical layer and prioritizes access to a wireless resource pool depending upon the transmission priority. A user equipment having the application processing circuitry and baseband proecessing circuitry is also provided. A computer program product is also provided. An evolved Node B allocates a resource quota to a user equipment based upon priority information from the user equipment corresponding to a device-to-device communication to be transmitted by the user equipment.SUMMARY

[0005] Embodiments of this application provide communication processing methods and a communication processing apparatus having the features of the independent claims to improve resource utilization. In the following, aspects, embodiments and implementations are provided which are useful for understanding the invention. However, the invention is described by the independent claims.

[0006] A first aspect of the embodiments of this application provides a communication processing method. The method includes: generating, by a first terminal device, first information; and sending, by the first terminal device, the first information to a network device, where the first information is used to indicate any one or more of the following content: information indicating that the first terminal device releases a first resource; the first resource released by the first terminal device; and information indicating that the first terminal device requests a second resource from the network device.

[0007] In this embodiment, when the first terminal device determines to release the first resource, the first terminal device sends the first information to the network device, so that the network device determines the first resource released by the first terminal device. In this way, the network device may allocate the first resource to another terminal device, to improve resource utilization.

[0008] In a possible implementation, the first resource and / or the second resource include / includes any one or more of the following content: a resource of a sidelink; a first-mode resource of the sidelink; a configured grant resource of the sidelink; a first-type configured grant resource of the sidelink; a second-type configured grant resource of the sidelink; a dynamic grant resource of the sidelink; a resource of an uplink; a configured grant resource of the uplink; a first-type configured grant resource of the uplink; a second-type configured grant resource of the uplink; a dynamic grant resource of the uplink; a resource of a downlink; a semi-persistently allocated resource of the downlink; and a dynamically allocated resource of the downlink, where the sidelink is a wireless direct communication link between the first terminal device and a second terminal device, the uplink and the downlink are links for communication between the first terminal device and the network device, the first-type configured grant resource includes a sidelink resource and / or an uplink resource that are / is provided by the network device by using radio resource control (radio resource control, RRC) signaling, the second-type configured grant resource means that the network device provides a resource periodicity for the sidelink and / or a resource periodicity for the uplink by using RRC signaling and then activates the sidelink resource and / or the uplink resource by using a physical downlink control channel (PDCCH, physical downlink control channel, PDCCH) or downlink control information (downlink control information, DCI), the dynamic grant resource includes a sidelink resource and / or an uplink resource that are / is scheduled by the network device by using a PDCCH or DCI, the semi-persistently allocated resource means that the network device provides a periodicity of the downlink resource by using RRC signaling and then activates the downlink resource by using a PDCCH or DCI, the dynamically allocated resource includes a downlink resource scheduled by the network device by using a PDCCH or DCI, the first-mode resource of the sidelink includes a sidelink resource scheduled by the network device for the terminal device, the first-mode resource of the sidelink includes the configured grant resource of the sidelink and / or the dynamic grant resource of the sidelink, and the configured grant resource of the sidelink includes the first-type configured grant resource of the sidelink and / or the second-type configured grant resource of the sidelink.

[0009] In another possible implementation, the sending, by the first terminal device, the first information to a network device includes: sending, by the first terminal device, the first information to the network device when a first condition is met, where the first condition includes any one or more of the following content: the first resource overlaps a third resource in time domain, where the first resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the third resource includes a second-mode resource of the sidelink, the resource of the uplink includes a resource of an uplink between the first terminal device and the network device, the resource of the downlink includes a resource of a downlink between the first terminal device and the network device, the sidelink is the wireless direct communication link between the first terminal device and the second terminal device, and the second-mode resource of the sidelink includes a sidelink resource selected, contended for, or sensed by the first terminal device; the first resource periodically overlaps the third resource in time domain; the first resource overlaps the third resource for N times in time domain, where N is an integer greater than 0; the first resource is to overlap the third resource in time domain; the first resource is to periodically overlap the third resource in time domain; the first resource is to overlap the third resource for N times in time domain; the third resource overrides the first resource or the first resource overrides the third resource; the third resource periodically overrides the first resource or the first resource periodically overrides the third resource; the third resource overrides the first resource for N times or the first resource overrides the third resource for N times; the third resource is to override the first resource or the first resource is to override the third resource; the third resource is to periodically override the first resource or the first resource is to periodically override the third resource; the third resource is to override the first resource for N times or the first resource is to override the third resource for N times; first duration is greater than or equal to a first threshold, where the first duration is a time difference between a time domain position of the first resource and a moment at which the first terminal device releases the first resource, or is a time difference between a time domain position of the first resource and a time domain position at which the first terminal device sends the first information; the first resource includes a dedicated resource of the first terminal device; the first resource includes a periodic time-frequency resource; and the first terminal device has a resource of the uplink.

[0010] In another possible implementation, the first information includes any one or more of the following content: an indication that the first terminal device releases the first resource, where the first resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the resource of the uplink includes the resource of the uplink between the first terminal device and the network device, the resource of the downlink includes the resource of the downlink between the first terminal device and the network device, and the sidelink is the wireless direct communication link between the first terminal device and the second terminal device; information about the first resource; resource type information of the first resource; time domain information of the first resource; time domain position information of the first resource; time domain length information of the first resource; frequency domain information of the first resource; frequency domain position information of the first resource; frequency domain bandwidth information of the first resource; a periodicity or an interval of the first resource; duration of the first resource; time information of releasing the first resource by the first terminal device; information about releasing the 1 st< time-frequency resource of the first resource by the first terminal device; time domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; frequency domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; a time interval between time at which the first terminal device releases the first resource and time at which the first terminal device sends the first information; an indication that the first terminal device senses, selects, or obtains, through contention, the third resource, where the third resource includes the second-mode resource of the sidelink, and the third resource includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device; an indication that the first terminal device reserves the third resource; an indication that the first resource overlaps the third resource in time domain; information about the third resource; resource type information of the third resource; time domain information of the third resource; time domain length information of the third resource; time domain position information of the third resource; frequency domain information of the third resource; frequency domain bandwidth information of the third resource; frequency domain position information of the third resource; a periodicity or a time interval of the third resource; duration of the third resource; a periodicity or a time interval of a service or data transmitted on the first resource; a periodicity or a time interval of a service or data transmitted on the third resource; a time offset of the time domain position of the first resource relative to the time domain position at which the first terminal device sends the first information; a time offset of a time domain position of the third resource relative to the time domain position at which the first terminal device sends the first information; priority information of the service or the data transmitted on the first resource; priority information of the service or the data transmitted on the third resource; priority information of the first resource; priority information of the third resource; an indication that a priority of the first resource is lower than a priority of the third resource; information about an overlapping resource in the first resource and the third resource; time domain information of the first resource overlapping the third resource; information about a time domain offset of the first resource relative to the third resource; information about a resource that does not overlap the third resource; an indication that the first terminal device requests the second resource from the network device; information about the second resource; resource type information of the second resource; time domain information of the second resource; frequency domain information of the second resource; a periodicity or an interval of the second resource; information about a time domain offset of the second resource relative to the third resource; the information about the time domain offset of the first resource relative to the third resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a quantity of retransmission times or a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0011] In another possible implementation, the sending, by the first terminal device, the first information to a network device includes: sending, by the first terminal device, the first information to the network device by using any one of RRC signaling, medium access control (medium access control, MAC) signaling, and physical layer signaling.

[0012] Before the sending, by the first terminal device, the first information to a network device, the method further includes: determining, by the first terminal device, that the priority of the first resource is lower than the priority of the third resource when a second condition is met, where the first resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the third resource includes the second-mode resource of the sidelink, the resource of the uplink includes the resource of the uplink between the first terminal device and the network device, the resource of the downlink includes the resource of the downlink between the first terminal device and the network device, and the sidelink is the wireless direct communication link between the first terminal device and the second terminal device; and determining, by the first terminal device, to release the first resource.

[0013] In another possible implementation, the second condition includes any one or more of the following content: a priority of sidelink transmission for a first mode is lower than a priority of sidelink transmission for a second mode; a priority of uplink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of downlink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of the service or the data transmitted on the first resource is lower than the priority information of the service or the data transmitted on the third resource; the priority information of the service or the data transmitted on the first resource is greater than or equal to or is less than or equal to a second threshold; the priority information of the service or the data transmitted on the third resource is greater than or equal to or is less than or equal to a third threshold; the priority of the first resource is lower than the priority of the third resource; a measurement result for the first mode of the sidelink is lower than a measurement result for the second mode of the sidelink; a measurement result of the uplink is lower than the measurement result for the second mode of the sidelink; a measurement result of the downlink is lower than the measurement result for the second mode of the sidelink; the measurement result for the first mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the second mode of the sidelink is greater than or equal to or is less than or equal to a fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; a measurement result of the first resource is lower than a measurement result of the third resource; the measurement result of the first resource is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the third resource is greater than or equal to or is less than or equal to the fifth threshold; the first resource includes a resource shared by the first terminal device and another terminal device, where the resource shared by the first terminal device and the another terminal device includes a first-type configured grant resource, and the first-type configured grant includes a sidelink resource and / or an uplink resource provided by the network device by using RRC signaling; a start time domain position of the first resource is after or before a start time domain position of the third resource; the first resource includes a periodic first time-frequency resource, the second resource includes a periodic second time-frequency resource, and a periodicity of the first time-frequency resource is greater than or less than a periodicity of the second time-frequency resource; the first resource includes the periodic first time-frequency resource, the second resource includes the periodic second time-frequency resource, and a time interval between two adjacent first time-frequency resources is greater than or less than a time interval between two adjacent second time-frequency resources; a size of the first resource is greater than or less than a size of the third resource; and a proportion of an overlapping resource in the first resource to the first resource is greater than or less than a proportion of an overlapping resource in the third resource to the third resource.

[0014] In another possible implementation, the method further includes: sending, by the first terminal device, second information to a third terminal device, where the second information is used to indicate that the first terminal device releases the first resource and / or indicate the first resource released by the first terminal device.

[0015] A second aspect of the embodiments of this application provides a communication processing method. The method includes: receiving, by a network device, first information sent by a first terminal device, where the first information is used to indicate any one or more of the following content: information indicating that the first terminal device releases a first resource; the first resource released by the first terminal device; and information indicating that the first terminal device requests a second resource from the network device.

[0016] In this embodiment, when the first terminal device determines to release the first resource, the first terminal device may send the first information to the network device, so that the network device determines the first resource released by the first terminal device. In this way, the network device may allocate the first resource to another terminal device, to improve resource utilization.

[0017] In a possible implementation, the first resource and / or the second resource include / includes any one or more of the following content: a resource of a sidelink; a first-mode resource of the sidelink; a configured grant resource of the sidelink; a first-type configured grant resource of the sidelink; a second-type configured grant resource of the sidelink; a dynamic grant resource of the sidelink; a resource of an uplink; a configured grant resource of the uplink; a first-type configured grant resource of the uplink; a second-type configured grant resource of the uplink; a dynamic grant resource of the uplink; a resource of a downlink; a semi-persistently allocated resource of the downlink; and a dynamically allocated resource of the downlink, where the sidelink is a wireless direct communication link between the first terminal device and a second terminal device, the uplink and the downlink are links for communication between the first terminal device and the network device, the first-type configured grant resource includes a sidelink resource and / or an uplink resource that are / is provided by the network device by using RRC signaling, the second-type configured grant resource means that the network device provides a resource periodicity for the sidelink and / or a resource periodicity for the uplink by using RRC signaling and then activates the sidelink resource and / or the uplink resource by using a PDCCH or DCI, the dynamic grant resource includes a sidelink resource and / or an uplink resource that are / is scheduled by the network device by using a PDCCH or DCI, the semi-persistently allocated resource means that the network device provides a periodicity of the downlink resource by using RRC signaling and then activates the downlink resource by using a PDCCH or DCI, the dynamically allocated resource includes a downlink resource scheduled by the network device by using a PDCCH or DCI, the first-mode resource of the sidelink includes a sidelink resource scheduled by the network device for the terminal device, the first-mode resource of the sidelink includes the configured grant resource of the sidelink and / or the dynamic grant resource of the sidelink, and the configured grant resource of the sidelink includes the first-type configured grant resource of the sidelink and / or the second-type configured grant resource of the sidelink.

[0018] In another possible implementation, the first information includes any one or more of the following content: an indication that the first terminal device releases the first resource, where the first resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the resource of the uplink includes the resource of the uplink between the first terminal device and the network device, the resource of the downlink includes the resource of the downlink between the first terminal device and the network device, and the sidelink is the wireless direct communication link between the first terminal device and the second terminal device; information about the first resource; resource type information of the first resource; time domain information of the first resource; time domain position information of the first resource; time domain length information of the first resource; frequency domain information of the first resource; frequency domain position information of the first resource; frequency domain bandwidth information of the first resource; a periodicity or an interval of the first resource; duration of the first resource; time information of releasing the first resource by the first terminal device; information about releasing the 1 st< time-frequency resource of the first resource by the first terminal device; time domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; frequency domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; a time interval between time at which the first terminal device releases the first resource and time at which the first terminal device sends the first information; an indication that the first terminal device senses, selects, or obtains, through contention, the third resource, where the third resource includes the second-mode resource of the sidelink, and the third resource includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device; an indication that the first terminal device reserves the third resource; an indication that the first resource overlaps the third resource in time domain; information about the third resource; resource type information of the third resource; time domain information of the third resource; time domain length information of the third resource; time domain position information of the third resource; frequency domain information of the third resource; frequency domain bandwidth information of the third resource; frequency domain position information of the third resource; a periodicity or a time interval of the third resource; duration of the third resource; a periodicity or a time interval of a service or data transmitted on the first resource; a periodicity or a time interval of a service or data transmitted on the third resource; a time offset of the time domain position of the first resource relative to the time domain position at which the first terminal device sends the first information; a time offset of a time domain position of the third resource relative to the time domain position at which the first terminal device sends the first information; priority information of the service or the data transmitted on the first resource; priority information of the service or the data transmitted on the third resource; priority information of the first resource; priority information of the third resource; an indication that a priority of the first resource is lower than a priority of the third resource; information about an overlapping resource in the first resource and the third resource; time domain information of the first resource overlapping the third resource; information about a time domain offset of the first resource relative to the third resource; information about a resource that does not overlap the third resource; an indication that the first terminal device requests the second resource from the network device; information about the second resource; resource type information of the second resource; time domain information of the second resource; frequency domain information of the second resource; a periodicity or an interval of the second resource; information about a time domain offset of the second resource relative to the third resource; the information about the time domain offset of the first resource relative to the third resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a quantity of retransmission times or a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0019] In another possible implementation, the receiving, by a network device, first information sent by a first terminal device includes: receiving, by the network device by using any one of RRC signaling, MAC signaling, and physical layer signaling, the first information sent by the first terminal device.

[0020] In another possible implementation, the sending, by the first terminal device, third information to a third terminal device includes: sending, by the first terminal device, the third information to the third terminal device by using any one of sidelink control information (sidelink control information, SCI), RRC signaling, MAC signaling, and physical layer signaling.

[0021] In another possible implementation, the third information includes at least one of the following: an indication that the first terminal device releases the sixth resource, where the sixth resource includes the second-mode resource of the sidelink; information about the sixth resource; resource type information of the sixth resource; time domain information of the sixth resource; time domain position information of the sixth resource; time domain length information of the sixth resource; frequency domain information of the sixth resource; frequency domain position information of the sixth resource; frequency domain bandwidth information of the sixth resource; a periodicity or an interval of the sixth resource; duration of the sixth resource; time information of releasing the sixth resource by the first terminal device; information about releasing the 1 st< time-frequency resource of the sixth resource by the first terminal device; time domain information of releasing the 1 st< time-frequency resource of the sixth resource by the first terminal device; frequency domain information of releasing the 1 st< time-frequency resource of the sixth resource by the first terminal device; a time interval between time at which the first terminal device releases the sixth resource and a moment at which the first terminal device sends the third information; an indication that the first terminal device senses, selects, or obtains, through contention, the sixth resource, where the sixth resource includes a resource selected, contended for, or sensed by the first terminal device and / or a reserved resource reserved by the first terminal device; an indication that the first terminal device reserves the sixth resource; an indication that the fifth resource overlaps the sixth resource in time domain, where the fifth resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, and the sixth resource includes the second-mode resource of the sidelink; information about the fifth resource; resource type information of the fifth resource; time domain information of the fifth resource; time domain length information of the fifth resource; time domain position information of the fifth resource; frequency domain information of the fifth resource; frequency domain bandwidth information of the fifth resource; frequency domain position information of the fifth resource; a periodicity or a time interval of the fifth resource; duration of the fifth resource; a periodicity or a time interval of a service transmitted on the fifth resource; a periodicity or a time interval of a service transmitted on the sixth resource; a time offset of a time domain position of the fifth resource relative to a time domain position at which the first terminal device sends the third information; priority information of a service or data transmitted on the fifth resource; priority information of a service or data transmitted on the sixth resource; priority information of the fifth resource; priority information of the sixth resource; an indication that a priority of the sixth resource is lower than a priority of the fifth resource; time domain information of the fifth resource overlapping the sixth resource; information about a time domain offset of the sixth resource relative to the fifth resource; information about a resource that does not overlap the fifth resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0022] A fourth aspect of the embodiments of this application provides a communication processing method. The method includes: sending, by a first terminal device, fourth information to a third terminal device, where the fourth information is used to indicate that the first terminal device releases a seventh resource and / or indicate the seventh resource released by the first terminal device, the seventh resource includes a resource of a sidelink, and the sidelink is a wireless direct communication link between the first terminal device and a second terminal device.

[0023] In this embodiment, after the first terminal device determines to release the seventh resource of the sidelink, the first terminal device may send the fourth information to a surrounding terminal device, to notify the surrounding terminal device of information about the seventh resource released by the first terminal device. In this way, the surrounding terminal device may select the seventh resource, to avoid or reduce waste of the seventh resource and improve resource utilization.

[0024] In a possible implementation, the sending, by a first terminal device, fourth information to a third terminal device includes: sending, by the first terminal device, the fourth information to the third terminal device when a fifth condition is met, where the fifth condition includes at least one of the following conditions: the seventh resource overlaps an eighth resource in time domain, where the seventh resource includes a first-mode resource of the sidelink and / or a second-mode resource of the sidelink, the eighth resource includes any one or more of the following content: the first-mode resource of the sidelink, the second-mode resource of the sidelink, a resource of an uplink, and a resource of a downlink, the first-mode resource of the sidelink includes a resource scheduled by a network device for the first terminal device, the second-mode resource of the sidelink includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device, the resource of the uplink includes a resource of an uplink between the first terminal device and the network device, and the resource of the downlink includes a resource of a downlink between the first terminal device and the network device; the seventh resource periodically overlaps the eighth resource in time domain; the seventh resource overlaps the eighth resource for N times in time domain, where N is an integer greater than 0; the seventh resource is to overlap the eighth resource in time domain; the seventh resource is to periodically overlap the eighth resource in time domain; the seventh resource is to overlap the eighth resource for N times in time domain; the seventh resource overrides the eighth resource or the eighth resource overrides the seventh resource; the eighth resource periodically overrides the seventh resource or the seventh resource periodically overrides the eighth resource; the eighth resource overrides the seventh resource for N times or the seventh resource overrides the eighth resource for N times; the eighth resource is to override the seventh resource or the seventh resource is to override the eighth resource; the eighth resource is to periodically override the seventh resource or the seventh resource is to periodically override the eighth resource; the eighth resource is to override the seventh resource for N times or the seventh resource is to override the eighth resource for N times; third duration is greater than an eighth threshold, where the third duration is a time difference between a time domain resource of the seventh resource and a moment at which the first terminal device releases the seventh resource, or is a time difference between a time domain position of the seventh resource and a time domain position at which the first terminal device sends the fourth information to the third terminal device; the eighth resource includes a dedicated resource of the first terminal device; the seventh resource includes a periodic time-frequency resource; and the first terminal device has a resource of the sidelink.

[0025] In another possible implementation, the sending, by a first terminal device, fourth information to a third terminal device includes: sending, by the first terminal device, the fourth information to the third terminal device by using any one of SCI, RRC signaling, MAC signaling, and physical layer signaling.

[0026] In another possible implementation, the fourth information includes at least one of the following: an indication that the first terminal device releases the seventh resource; information about the seventh resource; resource type information of the seventh resource; time domain information of the seventh resource; time domain position information of the seventh resource; time domain length information of the seventh resource; frequency domain information of the seventh resource; frequency domain position information of the seventh resource; frequency domain bandwidth information of the seventh resource; a periodicity or an interval of the seventh resource; duration of the seventh resource; time information of releasing the seventh resource by the first terminal device; information about releasing the 1 st< time domain resource of the seventh resource by the first terminal device; time domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; frequency domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; a time interval between time at which the first terminal device releases the seventh resource and a moment at which the first terminal device sends the fourth information; an indication that the first terminal device senses, selects, or obtains, through contention, the seventh resource; an indication that the first terminal device reserves the seventh resource; an indication that the eighth resource overlaps the seventh resource in time domain, where the eighth resource includes any one or more of the following content: the first-mode resource of the sidelink, the second-mode resource of the sidelink, the resource of the uplink, and the resource of the downlink, the resource of the uplink includes the resource of the uplink between the first terminal device and the network device, and the resource of the downlink includes the resource of the downlink between the first terminal device and the network device; information about the eighth resource; resource type information of the eighth resource; time domain information of the eighth resource; time domain length information of the eighth resource; time domain position information of the eighth resource; frequency domain information of the eighth resource; frequency domain bandwidth information of the eighth resource; frequency domain position information of the eighth resource; a periodicity or a time interval of the eighth resource; duration of the eighth resource; a periodicity or a time interval of a service transmitted on the seventh resource; a periodicity or a time interval of a service transmitted on the eighth resource; a time offset of the time domain position of the seventh resource relative to a time domain position at which the first terminal device sends the fourth information; a time offset of a time domain position of the eighth resource relative to the time domain position at which the first terminal device sends the fourth information; priority information of the service transmitted on the seventh resource; priority information of the service transmitted on the eighth resource; priority information of the seventh resource; priority information of the eighth resource; an indication that a priority of the seventh resource is lower than a priority of the eighth resource; time domain information of the seventh resource overlapping the eighth resource; information about a time domain offset of the seventh resource relative to the eighth resource; information about a resource that does not overlap the eighth resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a quantity of retransmission times and / or a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0027] In another possible implementation, before the sending, by a first terminal device, fourth information to a third terminal device, the method further includes: determining, by the first terminal device, that the priority of the seventh resource is lower than the priority of the eighth resource when a sixth condition is met, where the seventh resource includes the first-mode resource of the sidelink and / or the second-mode resource of the sidelink, the eighth resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the resource of the uplink includes the resource of the uplink between the first terminal device and the network device, and the resource of the downlink includes the resource of the downlink between the first terminal device and the network device; and determining, by the first terminal device, to release the seventh resource.

[0028] In another possible implementation, the sixth condition includes any one or more of the following content: a priority of sidelink transmission for a first mode is higher than a priority of sidelink transmission for a second mode; a priority of uplink transmission is higher than the priority of the sidelink transmission for the second mode; a priority of downlink transmission is higher than the priority of the sidelink transmission for the second mode; a priority of a service or data transmitted on the eighth resource is higher than a priority of a service or data transmitted on the seventh resource; priority information of the service or the data transmitted on the seventh resource is greater than or equal to or is less than or equal to a second threshold; priority information of the service or the data transmitted on the eighth resource is greater than or equal to or is less than or equal to a third threshold; the priority of the eighth resource is higher than the priority of the seventh resource; a measurement result for the first mode of the sidelink is higher than a measurement result for the second mode of the sidelink; a measurement result of the uplink is higher than the measurement result for the second mode of the sidelink; a measurement result of the downlink is higher than the measurement result for the second mode of the sidelink; the measurement result for the first mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the second mode of the sidelink is greater than or less than a fifth threshold; a measurement result of the eighth resource is higher than a measurement result of the seventh resource; a measurement result of the seventh resource is greater than or equal to or is less than or equal to the fourth threshold; a measurement result of the eighth resource is greater than or equal to or is less than or equal to the fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; the eighth resource includes a resource shared by the first terminal device and another terminal device, where the resource shared by the first terminal device and the another terminal device includes a first-type configured grant resource and / or the second-mode resource of the sidelink, and the first-type configured grant includes a sidelink resource and / or an uplink resource provided by the network device by using RRC signaling; a start time domain position of the eighth resource is before or after a start time domain position of the seventh resource; the eighth resource includes a periodic fifth time-frequency resource, the seventh resource includes a periodic sixth time-frequency resource, and a periodicity of the fifth time-frequency resource is greater than or less than a periodicity of the sixth time-frequency resource; the eighth resource includes the periodic fifth time-frequency resource, the seventh resource includes the periodic sixth time-frequency resource, and a time interval between two adjacent fifth time-frequency resources is greater than or less than a time interval between two adjacent sixth time-frequency resources; a size of the eighth resource is less than or greater than a size of the seventh resource; a proportion of an overlapping resource in the seventh resource to the seventh resource is greater than or less than a proportion of an overlapping resource in the eighth resource to the eighth resource.

[0029] A fifth aspect of the embodiments of this application provides a communication processing method. The method includes: determining, by a first terminal device, a ninth resource, where the ninth resource is used for any one or more of the following content: sidelink transmission, uplink transmission, and downlink transmission, a sidelink is a wireless direct communication link between the first terminal device and a second terminal device, the uplink transmission is transmission of an uplink between the first terminal device and a network device, and the downlink transmission is transmission of a downlink between the first terminal device and the network device; and selecting, by the first terminal device, a tenth resource based on the ninth resource, where the tenth resource includes a second-mode resource of the sidelink, and the second-mode resource of the sidelink includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device.

[0030] In this embodiment, the first terminal device selects the tenth resource used for the second mode for the sidelink with reference to a selection status of the scheduled ninth resource, so that a problem that the ninth resource overlaps the second resource in time domain can be avoided or reduced.

[0031] In a possible implementation, the tenth resource does not include any one of the following content: the ninth resource; all time-frequency resources in time domain in which the ninth resource is located; a subset of the ninth resource; and all time-frequency resources in time domain in which the subset of the ninth resource is located.

[0032] In another possible implementation, the subset of the ninth resource includes a resource whose priority is higher than that of the tenth resource.

[0033] In another possible implementation, the selecting, by the first terminal device, a tenth resource based on the ninth resource includes: determining, by the first terminal device, that a priority of the ninth resource is higher than the priority of the tenth resource when a seventh condition is met; and selecting, by the first terminal device, the tenth resource when excluding the ninth resource or any time domain resource in time domain in which the ninth resource is located.

[0034] In another possible implementation, the seventh condition includes any one or more of the following content: a priority of sidelink transmission for the first mode is higher than a priority of sidelink transmission for the second mode; a priority of the uplink transmission is higher than the priority of the sidelink transmission for the second mode; a priority of the downlink transmission is higher than the priority of the sidelink transmission for the second mode; a priority of a service or data transmitted on the ninth resource is higher than a priority of a service or data transmitted on the tenth resource; priority information of the service or the data transmitted on the ninth resource is greater than or equal to or is less than or equal to a second threshold; priority information of the service or the data transmitted on the tenth resource is greater than or equal to or is less than or equal to a third threshold; the priority of the ninth resource is higher than the priority of the tenth resource; a measurement result for the first mode of the sidelink is higher than a measurement result for the second mode of the sidelink; a measurement result of the uplink is higher than the measurement result for the second mode of the sidelink; a measurement result of the downlink is higher than the measurement result for the second mode of the sidelink; the measurement result for the first mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the second mode of the sidelink is greater than or equal to or is less than or equal to a fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; a measurement result of the ninth resource is higher than a measurement result of the tenth resource; the measurement result of the ninth resource is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the tenth resource is greater than or equal to or is less than or equal to the fifth threshold; the ninth resource includes a resource shared by the first terminal device and another terminal device, where the resource shared by the first terminal device and the another terminal device includes a first-type configured grant resource and / or the second-mode resource of the sidelink, and the first-type configured grant includes a sidelink resource and / or an uplink resource provided by the network device by using RRC signaling; the ninth resource includes a dedicated resource of the first terminal device; a start time domain position of the ninth resource is before or after a start time domain position of the tenth resource; the ninth resource includes a periodic seventh time-frequency resource, the tenth resource includes a periodic eighth time-frequency resource, and a periodicity of the seventh time-frequency resource is greater than or less than a periodicity of the eighth time-frequency resource; the ninth resource includes the periodic seventh time-frequency resource, the tenth resource includes the periodic eighth time-frequency resource, and a time interval between two adjacent seventh time-frequency resources is greater than or less than a time interval between two adjacent eighth time-frequency resources; a size of the ninth resource is greater than a size of the tenth resource; and a proportion of an overlapping resource in the ninth resource to the ninth resource is greater than or less than a proportion of an overlapping resource in the tenth resource to the tenth resource.

[0035] In another possible implementation, the ninth resource includes any one or more of the following content: a resource of the sidelink; a first-mode resource of the sidelink; a configured grant resource of the sidelink; a first-type configured grant resource of the sidelink; a second-type configured grant resource of the sidelink; a dynamic grant resource of the sidelink; a resource of the uplink; a configured grant resource of the uplink; a first-type configured grant resource of the uplink; a second-type configured grant resource of the uplink; a dynamic grant resource of the uplink; a resource of the downlink; a semi-persistently allocated resource of the downlink; and a dynamically allocated resource of the downlink, where the first-type configured grant includes a sidelink resource and / or an uplink resource that are / is provided by the network device by using RRC signaling, the second-type configured grant means that the network device provides a resource periodicity for the sidelink and / or a resource periodicity for the uplink by using RRC signaling and then activates the sidelink resource and / or the uplink resource by using a PDCCH or DCI, the dynamic grant resource includes a sidelink resource and / or an uplink resource that are / is scheduled by the network device by using a PDCCH or DCI, the semi-persistently allocated resource means that the network device provides a periodicity of the downlink resource by using RRC signaling and then activates the downlink resource by using a PDCCH or DCI, the dynamically allocated resource includes a downlink resource scheduled by the network device by using a PDCCH or DCI, the first-mode resource of the sidelink includes a sidelink resource scheduled by the network device for the terminal device, the first-mode resource of the sidelink includes the configured grant resource of the sidelink and / or the dynamic grant resource of the sidelink, and the configured grant resource of the sidelink includes the first-type configured grant resource of the sidelink and / or the second-type configured grant resource of the sidelink; and the tenth resource includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device.

[0036] In another possible implementation, the determining, by a first terminal device, a ninth resource includes: receiving, by the first terminal device before a sensing window ends, scheduling information sent by the network device, where a resource scheduled by the network device by using the scheduling information exists in a selection window; and determining, by the first terminal device based on the scheduling information, the ninth resource scheduled by the network device for the first terminal device.

[0037] A sixth aspect of the embodiments of this application provides a communication processing method. The method includes: sending, by a first terminal device, fifth information to a network device, where the fifth information is used to indicate information about an eleventh resource and / or indicate that the first terminal device requests a twelfth resource from the network device, the eleventh resource includes a second-mode resource of a sidelink, the second-mode resource of the sidelink includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device, and the sidelink is a wireless direct communication link between the first terminal device and a second terminal device.

[0038] In this embodiment, the first terminal device may send the fifth information to the network device. In this way, when scheduling a resource for the first terminal device, the network device may schedule the resource for the first terminal device with reference to a selection status of the eleventh resource used for the second mode for the sidelink, to avoid or reduce overlap between the resource scheduled by the network device for the first terminal device and the eleventh resource.

[0039] In a possible implementation, the sending, by a first terminal device, fifth information to a network device includes: sending, by the first terminal device, the fifth information to the network device when a ninth condition is met, where the ninth condition includes any one or more of the following content: the first terminal device is in a connected state; the first terminal device determines that a priority of the eleventh resource is higher than a priority of the twelfth resource, where the twelfth resource includes any one or more of the following content: a first-mode resource of the sidelink, a resource of an uplink, and a resource of a downlink, the first-mode resource of the sidelink includes a resource scheduled by the network device for the first terminal device, the resource of the uplink includes a resource of an uplink between the first terminal device and the network device, and the resource of the downlink includes a resource of a downlink between the first terminal device and the network device; the first terminal device sends a resource request message to the network device, where the resource request message is used to request the twelfth resource from the network device; the first terminal device senses, selects, or obtains, through contention, the eleventh resource and / or reserves the eleventh resource; and the first terminal device has a resource of the uplink.

[0040] In another possible implementation, the fifth information includes any one or more of the following information: an indication that the first terminal device senses, selects, or obtains, through contention, the eleventh resource; an indication that the first terminal device reserves the eleventh resource; the information about the eleventh resource; resource type information of the eleventh resource; time domain information of the eleventh resource; time domain length information of the eleventh resource; time domain position information of the eleventh resource; frequency domain information of the eleventh resource; frequency domain bandwidth information of the eleventh resource; frequency domain position information of the eleventh resource; a periodicity or a time interval of the eleventh resource; duration of the eleventh resource; a periodicity or a time interval of a service or data transmitted on the eleventh resource; a time offset of a time domain position of the eleventh resource relative to a time domain position at which the first terminal device sends the fifth information; a time offset of a time domain position of the twelfth resource relative to the time domain position at which the first terminal device sends the fifth information; priority information of the service or the data transmitted on the eleventh resource; priority information of the eleventh resource; information about a resource that does not overlap the eleventh resource; an indication that the first terminal device requests the twelfth resource from the network device; information about the twelfth resource; resource type information of the twelfth resource; time domain information of the twelfth resource; time domain length information of the twelfth resource; time domain position information of the twelfth resource; frequency domain information of the twelfth resource; frequency domain bandwidth information of the twelfth resource; frequency domain position information of the twelfth resource; a periodicity or an interval of the twelfth resource; information about a time domain offset of the twelfth resource relative to the eleventh resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0041] In another possible implementation, the sending, by a first terminal device, fifth information to a network device includes: sending, by the first terminal device, the fifth information to the network device by using RRC signaling, MAC signaling, and physical layer signaling.

[0042] In another possible implementation, the sending, by a first terminal device, fifth information to a network device includes: determining, by the first terminal device, that the priority of the eleventh resource is higher than the priority of the twelfth resource when a tenth condition is met; and sending, by the first terminal device, the fifth information to the network device, where the ninth condition includes any one or more of the following content: a priority of sidelink transmission for the first mode is lower than a priority of sidelink transmission for the second mode; a priority of uplink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of downlink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of the service or the data transmitted on the eleventh resource is higher than a priority of the service or the data transmitted on the twelfth resource; priority information of the service or the data transmitted on the eleventh resource is greater than or less than a second threshold; priority information of the service or the data transmitted on the twelfth resource is greater than or less than a third threshold; the priority of the eleventh resource is higher than the priority of the sixth resource; a measurement result for the second mode of the sidelink is higher than a measurement result for the first mode of the sidelink; a measurement result of the uplink is lower than the measurement result for the second mode of the sidelink; a measurement result of the downlink is lower than the measurement result for the second mode of the sidelink; the measurement result for the second mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the first mode of the sidelink is greater than or less than a fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; a measurement result of the eleventh resource is higher than a measurement result of the twelfth resource; the measurement result of the eleventh resource is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the eleventh resource is greater than or equal to or is less than or equal to the fifth threshold; a start time domain position of the eleventh resource is before or after a start time domain position of the twelfth resource; the eleventh resource includes a periodic ninth time-frequency resource, the twelfth resource includes a periodic tenth time-frequency resource, and a periodicity of the ninth time-frequency resource is greater than or less than a periodicity of the tenth time-frequency resource; the eleventh resource includes the periodic ninth time-frequency resource, the twelfth resource includes the periodic tenth time-frequency resource, and a time interval between two adjacent ninth time-frequency resources is greater than or less than a time interval between two adjacent tenth time-frequency resources; a size of the eleventh resource is less than a size of the twelfth resource; and a proportion of an overlapping resource in the eleventh resource to the eleventh resource is greater than or less than a proportion of an overlapping resource in the twelfth resource to the twelfth resource.

[0043] A seventh aspect of the embodiments of this application provides a communication processing method. The method includes: receiving, by a network device, fifth information sent by a first terminal device, where the fifth information is used to indicate information about an eleventh resource and / or indicate that the first terminal device requests a twelfth resource from the network device, the eleventh resource includes a second-mode resource of a sidelink, the second-mode resource of the sidelink includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device, and the sidelink is a wireless direct communication link between the first terminal device and a second terminal device.

[0044] In this embodiment, the network device may receive the fifth information sent by the first terminal device. In this way, when scheduling a resource for the first terminal device, the network device may schedule the resource for the first terminal device with reference to a selection status of the eleventh resource used for the second mode for the sidelink, to avoid or reduce overlap between the resource scheduled by the network device for the first terminal device and the eleventh resource.

[0045] In a possible implementation, the network device schedules the twelfth resource for the first terminal device based on the fifth information, where the twelfth resource includes any one or more of the following content: a first-mode resource of the sidelink, a resource of an uplink, and a resource of a downlink, the resource of the uplink includes a resource of an uplink between the first terminal device and the network device, and the resource of the downlink includes a resource of a downlink between the first terminal device and the network device.

[0046] In another possible implementation, the twelfth resource does not include any one of the following content: the eleventh resource; all time-frequency resources in time domain in which the eleventh resource is located; a subset of the eleventh resource; and all time-frequency resources in time domain in which the subset of the eleventh resource is located.

[0047] In another possible implementation, the subset of the eleventh resource includes a resource whose priority is higher than that of the twelfth resource.

[0048] In another possible implementation, the scheduling, by the network device, the twelfth resource for the first terminal device based on the fifth information includes: determining, by the network device, that a priority of the eleventh resource is higher than the priority of the twelfth resource when an eighth condition is met; and scheduling, by the network device, the twelfth resource for the first terminal device when excluding the eleventh resource or any time-frequency resource in time domain in which the eleventh resource is located.

[0049] In another possible implementation, the eighth condition includes any one or more of the following content: a priority of sidelink transmission for the first mode is lower than a priority of sidelink transmission for the second mode; a priority of uplink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of downlink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of a service or data transmitted on the eleventh resource is higher than a priority of a service or data transmitted on the twelfth resource; priority information of the service or the data transmitted on the eleventh resource is greater than or less than a second threshold; priority information of the service or the data transmitted on the twelfth resource is greater than or less than a third threshold; the priority of the eleventh resource is higher than the priority of the sixth resource; a measurement result for the second mode of the sidelink is higher than a measurement result for the first mode of the sidelink; a measurement result of the uplink is lower than the measurement result for the second mode of the sidelink; a measurement result of the downlink is lower than the measurement result for the second mode of the sidelink; the measurement result for the second mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the first mode of the sidelink is greater than or less than a fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; a measurement result of the eleventh resource is higher than a measurement result of the twelfth resource; the measurement result of the eleventh resource is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the eleventh resource is greater than or equal to or is less than or equal to the fifth threshold; a start time domain position of the eleventh resource is before or after a start time domain position of the twelfth resource; the eleventh resource includes a periodic ninth time-frequency resource, the twelfth resource includes a periodic tenth time-frequency resource, and a periodicity of the ninth time-frequency resource is greater than or less than a periodicity of the tenth time-frequency resource; the eleventh resource includes the periodic ninth time-frequency resource, the twelfth resource includes the periodic tenth time-frequency resource, and a time interval between two adjacent ninth time-frequency resources is greater than or less than a time interval between two adjacent tenth time-frequency resources; a size of the eleventh resource is less than a size of the twelfth resource; and a proportion of an overlapping resource in the eleventh resource to the eleventh resource is greater than or less than a proportion of an overlapping resource in the twelfth resource to the twelfth resource.

[0050] In another possible implementation, the fifth information includes any one or more of the following information: an indication that the first terminal device senses, selects, or obtains, through contention, the eleventh resource; an indication that the first terminal device reserves the eleventh resource; the information about the eleventh resource; resource type information of the eleventh resource; time domain information of the eleventh resource; time domain length information of the eleventh resource; time domain position information of the eleventh resource; frequency domain information of the eleventh resource; frequency domain bandwidth information of the eleventh resource; frequency domain position information of the eleventh resource; a periodicity or a time interval of the eleventh resource; duration of the eleventh resource; a periodicity or a time interval of a service or data transmitted on the eleventh resource; a time offset of a time domain position of the eleventh resource relative to a time domain position at which the first terminal device sends the fifth information; a time offset of a time domain position of the twelfth resource relative to the time domain position at which the first terminal device sends the fifth information; priority information of the service or the data transmitted on the eleventh resource; priority information of the eleventh resource; information about a resource that does not overlap the eleventh resource; an indication that the first terminal device requests the twelfth resource from the network device; information about the twelfth resource; resource type information of the twelfth resource; time domain information of the twelfth resource; time domain length information of the twelfth resource; time domain position information of the twelfth resource; frequency domain information of the twelfth resource; frequency domain bandwidth information of the twelfth resource; frequency domain position information of the twelfth resource; a periodicity or an interval of the twelfth resource; information about a time domain offset of the twelfth resource relative to the eleventh resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0051] In another possible implementation, the receiving, by a network device, fifth information sent by a first terminal device includes: receiving, by the network device by using any one of RRC signaling, MAC signaling, and physical layer signaling, the fifth information sent by the terminal device.

[0052] An eighth aspect of the embodiments of this application provides a communication processing method. The method includes: obtaining, by a first terminal device, a transmission configuration, where the transmission configuration includes any one or more of a first dedicated time domain resource configuration, a second dedicated time domain resource configuration, an eighth dedicated time domain resource configuration, a ninth dedicated time domain resource configuration, a tenth dedicated time domain resource configuration, and an eleventh dedicated time domain resource configuration, the first dedicated time domain resource configuration includes a time domain resource configuration dedicated to a first mode for a sidelink, the second dedicated time domain resource configuration includes a time domain resource configuration dedicated to a second mode for the sidelink, the eighth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink sending for the first mode, the ninth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink sending for the second mode, the tenth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink receiving for the first mode, the eleventh dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink receiving for the second mode, and the sidelink is a wireless direct communication link between the first terminal device and a second terminal device; and selecting, by the first terminal device, a thirteenth resource based on the transmission configuration, where the thirteenth resource includes a second-mode resource of the sidelink, and the second-mode resource of the sidelink includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device.

[0053] According to the solution in this embodiment of this application, a schedulable resource of the first terminal device and a schedulable resource of a network device may be staggered as much as possible in time domain, so that a probability of overlap between the thirteenth resource selected by the first terminal device and a resource scheduled by the network device for the first terminal device can be avoided or reduced.

[0054] In a possible implementation, the transmission configuration further includes any one or more of a third dedicated time domain resource configuration, a fourth dedicated time domain resource configuration, a fifth dedicated time domain resource configuration, a sixth dedicated time domain resource configuration, and a seventh dedicated time domain resource configuration; the third dedicated time domain resource configuration is used for transmission of the sidelink; the fourth dedicated time domain resource configuration is used for sending of the sidelink; the fifth dedicated time domain resource configuration is used for receiving of the sidelink; the sixth dedicated time domain resource configuration is used for uplink transmission; and the seventh dedicated time domain resource configuration is used for downlink transmission, where the uplink transmission is uplink transmission for communication between the first terminal device and a network device, and the downlink transmission is downlink transmission for communication between the first terminal device and the network device.

[0055] In another possible implementation, the transmission configuration further includes a shared time domain resource configuration, and the shared time domain resource configuration is used for any one or more of the following content: sidelink transmission for the first mode; sidelink transmission for the second mode; sidelink sending for the first mode; sidelink sending for the second mode; sidelink receiving for the first mode; sidelink receiving for the second mode; transmission of the sidelink; sending of the sidelink; receiving of the sidelink; the uplink transmission; and the downlink transmission, where the uplink transmission is the uplink transmission for communication between the first terminal device and the network device, and the downlink transmission is the downlink transmission for communication between the first terminal device and the network device.

[0056] In another possible implementation, the transmission configuration is specified in a communication protocol, or the obtaining, by a first terminal device, a transmission configuration includes: receiving, by the first terminal device, the transmission configuration sent by the network device; receiving, by the first terminal device, sixth information sent by the network device, where the sixth information carries information about the transmission configuration; or determining, by the first terminal device, the transmission configuration according to a preset rule.

[0057] A ninth aspect of the embodiments of this application provides a communication processing method. The method includes: obtaining, by a network device, a transmission configuration, where the transmission configuration includes any one or more of a first dedicated time domain resource configuration, a second dedicated time domain resource configuration, an eighth dedicated time domain resource configuration, a ninth dedicated time domain resource configuration, a tenth dedicated time domain resource configuration, and an eleventh dedicated time domain resource configuration, the first dedicated time domain resource configuration includes a time domain resource configuration dedicated to a first mode for a sidelink, the second dedicated time domain resource configuration includes a time domain resource configuration dedicated to a second mode for the sidelink, the eighth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink sending for the first mode, the ninth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink sending for the second mode, the tenth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink receiving for the first mode, the eleventh dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink receiving for the second mode, and the sidelink is a wireless direct communication link between a first terminal device and a second terminal device; and selecting, by the network device, a fourteenth resource for the first terminal device based on the transmission configuration. According to the solution in this embodiment of this application, a schedulable resource of the network device and a schedulable resource of the first terminal device may be staggered as much as possible in time domain, so that a probability of overlap between the fourteenth resource scheduled by the network device for the first terminal device and a resource selected by the first terminal device can be avoided or reduced.

[0058] In a possible implementation, the transmission configuration further includes any one or more of a third dedicated time domain resource configuration, a fourth dedicated time domain resource configuration, a fifth dedicated time domain resource configuration, a sixth dedicated time domain resource configuration, and a seventh dedicated time domain resource configuration; the third dedicated time domain resource configuration is used for transmission of the sidelink; the fourth dedicated time domain resource configuration is used for sending of the sidelink; the fifth dedicated time domain resource configuration is used for receiving of the sidelink; the sixth dedicated time domain resource configuration is used for uplink transmission; and the seventh dedicated time domain resource configuration is used for downlink transmission, where the uplink transmission is uplink transmission for communication between the first terminal device and a network device, and the downlink transmission is downlink transmission for communication between the first terminal device and the network device.

[0059] In another possible implementation, the transmission configuration further includes a shared time domain resource configuration, and the shared time domain resource configuration is used for any one or more of the following content: sidelink transmission for the first mode; sidelink transmission for the second mode; sidelink sending for the first mode; sidelink sending for the second mode; sidelink receiving for the first mode; sidelink receiving for the second mode; transmission of the sidelink; sending of the sidelink; receiving of the sidelink; the uplink transmission; and the downlink transmission, where the uplink transmission is the uplink transmission for communication between the first terminal device and the network device, and the downlink transmission is the downlink transmission for communication between the first terminal device and the network device.

[0060] In another possible implementation, the transmission configuration is specified in a communication protocol, or the obtaining, by a network device, a transmission configuration includes: determining, by the network device, the transmission configuration according to a preset rule.

[0061] In another possible implementation, the method further includes: sending, by the network device, sixth information to the first terminal device, where the sixth information is used to carry information about the transmission configuration.

[0062] A tenth aspect of the embodiments of this application provides a communication processing apparatus. The communication processing apparatus includes: a processing module, configured to generate first information; and a transceiver module, configured to send the first information to a network device, where the first information is used to indicate any one or more of the following content: information indicating that the first terminal device releases a first resource; the first resource released by the first terminal device; and information indicating that the first terminal device requests a second resource from the network device.

[0063] In a possible implementation, the first resource and / or the second resource include / includes any one or more of the following content: a resource of a sidelink; a first-mode resource of the sidelink; a configured grant resource of the sidelink; a first-type configured grant resource of the sidelink; a second-type configured grant resource of the sidelink; a dynamic grant resource of the sidelink; a resource of an uplink; a configured grant resource of the uplink; a first-type configured grant resource of the uplink; a second-type configured grant resource of the uplink; a dynamic grant resource of the uplink; a resource of a downlink; a semi-persistently allocated resource of the downlink; and a dynamically allocated resource of the downlink, where the sidelink is a wireless direct communication link between the first terminal device and a second terminal device, the uplink and the downlink are links for communication between the first terminal device and the network device, the first-type configured grant resource includes a sidelink resource and / or an uplink resource that are / is provided by the network device by using RRC signaling, the second-type configured grant resource means that the network device provides a resource periodicity for the sidelink and / or a resource periodicity for the uplink by using RRC signaling and then activates the sidelink resource and / or the uplink resource by using a PDCCH or DCI, the dynamic grant resource includes a sidelink resource and / or an uplink resource that are / is scheduled by the network device by using a PDCCH or DCI, the semi-persistently allocated resource means that the network device provides a periodicity of the downlink resource by using RRC signaling and then activates the downlink resource by using a PDCCH or DCI, the dynamically allocated resource includes a downlink resource scheduled by the network device by using a PDCCH or DCI, the first-mode resource of the sidelink includes a sidelink resource scheduled by the network device for the terminal device, the first-mode resource of the sidelink includes the configured grant resource of the sidelink and / or the dynamic grant resource of the sidelink, and the configured grant resource of the sidelink includes the first-type configured grant resource of the sidelink and / or the second-type configured grant resource of the sidelink.

[0064] In another possible implementation, the transceiver module is specifically configured to: send the first information to the network device when a first condition is met, where the first condition includes any one or more of the following content: the first resource overlaps a third resource in time domain, where the first resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the third resource includes a second-mode resource of the sidelink, the resource of the uplink includes a resource of an uplink between the first terminal device and the network device, the resource of the downlink includes a resource of a downlink between the first terminal device and the network device, the sidelink is the wireless direct communication link between the first terminal device and the second terminal device, and the second-mode resource of the sidelink includes a sidelink resource selected, contended for, or sensed by the first terminal device; the first resource periodically overlaps the third resource in time domain; the first resource overlaps the third resource for N times in time domain, where N is an integer greater than 0; the first resource is to overlap the third resource in time domain; the first resource is to periodically overlap the third resource in time domain; the first resource is to overlap the third resource for N times in time domain; the third resource overrides the first resource or the first resource overrides the third resource; the third resource periodically overrides the first resource or the first resource periodically overrides the third resource; the third resource overrides the first resource for N times or the first resource overrides the third resource for N times; the third resource is to override the first resource or the first resource is to override the third resource; the third resource is to periodically override the first resource or the first resource is to periodically override the third resource; the third resource is to override the first resource for N times or the first resource is to override the third resource for N times; first duration is greater than or equal to a first threshold, where the first duration is a time difference between a time domain position of the first resource and a moment at which the first terminal device releases the first resource, or is a time difference between a time domain position of the first resource and a time domain position at which the first terminal device sends the first information; the first resource includes a dedicated resource of the first terminal device; the first resource includes a periodic time-frequency resource; and the first terminal device has a resource of the uplink.

[0065] In another possible implementation, the first information includes any one or more of the following content: an indication that the first terminal device releases the first resource, where the first resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the resource of the uplink includes the resource of the uplink between the first terminal device and the network device, the resource of the downlink includes the resource of the downlink between the first terminal device and the network device, and the sidelink is the wireless direct communication link between the first terminal device and the second terminal device; information about the first resource; resource type information of the first resource; time domain information of the first resource; time domain position information of the first resource; time domain length information of the first resource; frequency domain information of the first resource; frequency domain position information of the first resource; frequency domain bandwidth information of the first resource; a periodicity or an interval of the first resource; duration of the first resource; time information of releasing the first resource by the first terminal device; information about releasing the 1 st< time-frequency resource of the first resource by the first terminal device; time domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; frequency domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; a time interval between time at which the first terminal device releases the first resource and time at which the first terminal device sends the first information; an indication that the first terminal device senses, selects, or obtains, through contention, the third resource, where the third resource includes the second-mode resource of the sidelink, and the third resource includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device; an indication that the first terminal device reserves the third resource; an indication that the first resource overlaps the third resource in time domain; information about the third resource; resource type information of the third resource; time domain information of the third resource; time domain length information of the third resource; time domain position information of the third resource; frequency domain information of the third resource; frequency domain bandwidth information of the third resource; frequency domain position information of the third resource; a periodicity or a time interval of the third resource; duration of the third resource; a periodicity or a time interval of a service or data transmitted on the first resource; a periodicity or a time interval of a service or data transmitted on the third resource; a time offset of the time domain position of the first resource relative to the time domain position at which the first terminal device sends the first information; a time offset of a time domain position of the third resource relative to the time domain position at which the first terminal device sends the first information; priority information of the service or the data transmitted on the first resource; priority information of the service or the data transmitted on the third resource; priority information of the first resource; priority information of the third resource; an indication that a priority of the first resource is lower than a priority of the third resource; information about an overlapping resource in the first resource and the third resource; time domain information of the first resource overlapping the third resource; information about a time domain offset of the first resource relative to the third resource; information about a resource that does not overlap the third resource; an indication that the first terminal device requests the second resource from the network device; information about the second resource; resource type information of the second resource; time domain information of the second resource; frequency domain information of the second resource; a periodicity or an interval of the second resource; information about a time domain offset of the second resource relative to the third resource; the information about the time domain offset of the first resource relative to the third resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a quantity of retransmission times or a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0066] In another possible implementation, the transceiver module is specifically configured to: send the first information to the network device by using any one of RRC signaling, MAC signaling, and physical layer signaling.

[0067] In another possible implementation, the processing module is further configured to: determine that the priority of the first resource is lower than the priority of the third resource when a second condition is met, where the first resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the third resource includes the second-mode resource of the sidelink, the resource of the uplink includes the resource of the uplink between the first terminal device and the network device, the resource of the downlink includes the resource of the downlink between the first terminal device and the network device, and the sidelink is the wireless direct communication link between the first terminal device and the second terminal device; and determine to release the first resource.

[0068] In another possible implementation, the second condition includes any one or more of the following content: a priority of sidelink transmission for the first mode is lower than a priority of sidelink transmission for the second mode; a priority of uplink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of downlink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of the service or the data transmitted on the first resource is lower than the priority information of the service or the data transmitted on the third resource; the priority information of the service or the data transmitted on the first resource is greater than or equal to or is less than or equal to a second threshold; the priority information of the service or the data transmitted on the third resource is greater than or equal to or is less than or equal to a third threshold; the priority of the first resource is lower than the priority of the third resource; a measurement result for the first mode of the sidelink is lower than a measurement result for the second mode of the sidelink; a measurement result of the uplink is lower than the measurement result for the second mode of the sidelink; a measurement result of the downlink is lower than the measurement result for the second mode of the sidelink; the measurement result for the first mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the second mode of the sidelink is greater than or equal to or is less than or equal to a fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; a measurement result of the first resource is lower than a measurement result of the third resource; the measurement result of the first resource is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the third resource is greater than or equal to or is less than or equal to the fifth threshold; the first resource includes a resource shared by the first terminal device and another terminal device, where the resource shared by the first terminal device and the another terminal device includes a first-type configured grant resource, and the first-type configured grant includes a sidelink resource and / or an uplink resource provided by the network device by using RRC signaling; a start time domain position of the first resource is after or before a start time domain position of the third resource; the first resource includes a periodic first time-frequency resource, the second resource includes a periodic second time-frequency resource, and a periodicity of the first time-frequency resource is greater than or less than a periodicity of the second time-frequency resource; the first resource includes the periodic first time-frequency resource, the second resource includes the periodic second time-frequency resource, and a time interval between two adjacent first time-frequency resources is greater than or less than a time interval between two adjacent second time-frequency resources; a size of the first resource is greater than or less than a size of the third resource; and a proportion of an overlapping resource in the first resource to the first resource is greater than or less than a proportion of an overlapping resource in the third resource to the third resource.

[0069] In another possible implementation, the transceiver module is further configured to: send second information to a third terminal device, where the second information is used to indicate that the first terminal device releases the first resource and / or indicate the first resource released by the first terminal device.

[0070] An eleventh aspect of the embodiments of this application provides a communication processing apparatus. The communication processing apparatus includes: a transceiver module, configured to receive first information sent by first terminal device, where the first information is used to indicate any one or more of the following content: information indicating that the first terminal device releases a first resource; the first resource released by the first terminal device; and information indicating that the first terminal device requests a second resource from the network device.

[0071] In a possible implementation, the first resource and / or the second resource include / includes any one or more of the following content: a resource of a sidelink; a first-mode resource of the sidelink; a configured grant resource of the sidelink; a first-type configured grant resource of the sidelink; a second-type configured grant resource of the sidelink; a dynamic grant resource of the sidelink; a resource of an uplink; a configured grant resource of the uplink; a first-type configured grant resource of the uplink; a second-type configured grant resource of the uplink; a dynamic grant resource of the uplink; a resource of a downlink; a semi-persistently allocated resource of the downlink; and a dynamically allocated resource of the downlink, where the sidelink is a wireless direct communication link between the first terminal device and a second terminal device, the uplink and the downlink are links for communication between the first terminal device and the network device, the first-type configured grant resource includes a sidelink resource and / or an uplink resource that are / is provided by the network device by using RRC signaling, the second-type configured grant resource means that the network device provides a resource periodicity for the sidelink and / or a resource periodicity for the uplink by using RRC signaling and then activates the sidelink resource and / or the uplink resource by using a PDCCH or DCI, the dynamic grant resource includes a sidelink resource and / or an uplink resource that are / is scheduled by the network device by using a PDCCH or DCI, the semi-persistently allocated resource means that the network device provides a periodicity of the downlink resource by using RRC signaling and then activates the downlink resource by using a PDCCH or DCI, the dynamically allocated resource includes a downlink resource scheduled by the network device by using a PDCCH or DCI, the first-mode resource of the sidelink includes a sidelink resource scheduled by the network device for the terminal device, the first-mode resource of the sidelink includes the configured grant resource of the sidelink and / or the dynamic grant resource of the sidelink, and the configured grant resource of the sidelink includes the first-type configured grant resource of the sidelink and / or the second-type configured grant resource of the sidelink.

[0072] In another possible implementation, the first information includes any one or more of the following content: an indication that the first terminal device releases the first resource, where the first resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the resource of the uplink includes the resource of the uplink between the first terminal device and the network device, the resource of the downlink includes the resource of the downlink between the first terminal device and the network device, and the sidelink is the wireless direct communication link between the first terminal device and the second terminal device; information about the first resource; resource type information of the first resource; time domain information of the first resource; time domain position information of the first resource; time domain length information of the first resource; frequency domain information of the first resource; frequency domain position information of the first resource; frequency domain bandwidth information of the first resource; a periodicity or an interval of the first resource; duration of the first resource; time information of releasing the first resource by the first terminal device; information about releasing the 1 st< time-frequency resource of the first resource by the first terminal device; time domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; frequency domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; a time interval between time at which the first terminal device releases the first resource and time at which the first terminal device sends the first information; an indication that the first terminal device senses, selects, or obtains, through contention, the third resource, where the third resource includes the second-mode resource of the sidelink, and the third resource includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device; an indication that the first terminal device reserves the third resource; an indication that the first resource overlaps the third resource in time domain; information about the third resource; resource type information of the third resource; time domain information of the third resource; time domain length information of the third resource; time domain position information of the third resource; frequency domain information of the third resource; frequency domain bandwidth information of the third resource; frequency domain position information of the third resource; a periodicity or a time interval of the third resource; duration of the third resource; a periodicity or a time interval of a service or data transmitted on the first resource; a periodicity or a time interval of a service or data transmitted on the third resource; a time offset of the time domain position of the first resource relative to the time domain position at which the first terminal device sends the first information; a time offset of a time domain position of the third resource relative to the time domain position at which the first terminal device sends the first information; priority information of the service or the data transmitted on the first resource; priority information of the service or the data transmitted on the third resource; priority information of the first resource; priority information of the third resource; an indication that a priority of the first resource is lower than a priority of the third resource; information about an overlapping resource in the first resource and the third resource; time domain information of the first resource overlapping the third resource; information about a time domain offset of the first resource relative to the third resource; information about a resource that does not overlap the third resource; an indication that the first terminal device requests the second resource from the network device; information about the second resource; resource type information of the second resource; time domain information of the second resource; frequency domain information of the second resource; a periodicity or an interval of the second resource; information about a time domain offset of the second resource relative to the third resource; the information about the time domain offset of the first resource relative to the third resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a quantity of retransmission times or a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0073] In another possible implementation, the transceiver module is specifically configured to: receive, by using any one of RRC signaling, MAC signaling, and physical layer signaling, the first information sent by the first terminal device.

[0074] A twelfth aspect of the embodiments of this application provides a communication processing apparatus. The communication processing apparatus includes: a processing module, configured to reselect a fourth resource when a third condition is met, where the fourth resource includes a second-mode resource of a sidelink, the second-mode resource of the sidelink includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device, and the sidelink is a wireless direct communication link between the first terminal device and a second terminal device.

[0075] In a possible implementation, the third condition includes any one or more of the following content: a fifth resource overlaps a sixth resource in time domain, where the fifth resource includes any one or more of the following content: a resource of the sidelink, a resource of an uplink, and a resource of a downlink, the sixth resource includes a second-mode resource of the sidelink, the resource of the uplink includes a resource of an uplink between the first terminal device and a network device, and the resource of the downlink includes a resource of a downlink between the first terminal device and the network device; the fifth resource periodically overlaps the sixth resource in time domain; the fifth resource overlaps the sixth resource for N times in time domain, where N is an integer greater than 0; the fifth resource is to overlap the sixth resource in time domain; the fifth resource is to periodically overlap the sixth resource in time domain; the fifth resource is to overlap the sixth resource for N times in time domain; the sixth resource overrides the fifth resource or the sixth resource overrides the fifth resource; the sixth resource periodically overrides the fifth resource or the fifth resource periodically overrides the sixth resource; the sixth resource overrides the fifth resource for N times or the fifth resource overrides the sixth resource for N times; the sixth resource is to override the fifth resource or the fifth resource is to override the sixth resource; the sixth resource is to periodically override the fifth resource or the fifth resource is to periodically override the sixth resource; the sixth resource is to override the fifth resource for N times or the fifth resource is to override the sixth resource for N times; second duration is greater than a seventh threshold, where the second duration is a time difference between a time domain position of the sixth resource and a moment at which the first terminal device releases the sixth resource; and the sixth resource includes a periodic time-frequency resource.

[0076] In another possible implementation, the communication processing apparatus further includes a transceiver module, where the transceiver module is configured to: send third information to a third terminal device, where the third information is used to indicate that the first terminal device releases a sixth resource, and the sixth resource includes the second-mode resource of the sidelink.

[0077] In another possible implementation, the transceiver module is specifically configured to: send the third information to the third terminal device by using any one of sidelink control information (sidelink control information, SCI), RRC signaling, MAC signaling, and physical layer signaling.

[0078] In another possible implementation, the third information includes at least one of the following: an indication that the first terminal device releases the sixth resource, where the sixth resource includes the second-mode resource of the sidelink; information about the sixth resource; resource type information of the sixth resource; time domain information of the sixth resource; time domain position information of the sixth resource; time domain length information of the sixth resource; frequency domain information of the sixth resource; frequency domain position information of the sixth resource; frequency domain bandwidth information of the sixth resource; a periodicity or an interval of the sixth resource; duration of the sixth resource; time information of releasing the sixth resource by the first terminal device; information about releasing the 1 st< time-frequency resource of the sixth resource by the first terminal device; time domain information of releasing the 1 st< time-frequency resource of the sixth resource by the first terminal device; frequency domain information of releasing the 1 st< time-frequency resource of the sixth resource by the first terminal device; a time interval between time at which the first terminal device releases the sixth resource and a moment at which the first terminal device sends the third information; an indication that the first terminal device senses, selects, or obtains, through contention, the sixth resource, where the sixth resource includes a resource selected, contended for, or sensed by the first terminal device and / or a reserved resource; an indication that the first terminal device reserves the sixth resource; an indication that the fifth resource overlaps the sixth resource in time domain, where the fifth resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, and the sixth resource includes the second-mode resource of the sidelink; information about the fifth resource; resource type information of the fifth resource; time domain information of the fifth resource; time domain length information of the fifth resource; time domain position information of the fifth resource; frequency domain information of the fifth resource; frequency domain bandwidth information of the fifth resource; frequency domain position information of the fifth resource; a periodicity or a time interval of the fifth resource; duration of the fifth resource; a periodicity or a time interval of a service transmitted on the fifth resource; a periodicity or a time interval of a service transmitted on the sixth resource; a time offset of a time domain position of the fifth resource relative to a time domain position at which the first terminal device sends the third information; priority information of a service or data transmitted on the fifth resource; priority information of a service or data transmitted on the sixth resource; priority information of the fifth resource; priority information of the sixth resource; an indication that a priority of the sixth resource is lower than a priority of the fifth resource; time domain information of the fifth resource overlapping the sixth resource; information about a time domain offset of the sixth resource relative to the fifth resource; information about a resource that does not overlap the fifth resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0079] In another possible implementation, the processing module is further configured to: determine that a priority of the sixth resource is lower than a priority of the fifth resource when a fourth condition is met, where the fifth resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, and the sixth resource includes the second-mode resource of the sidelink; and determine to release the sixth resource.

[0080] In another possible implementation, the fourth condition includes any one or more of the following content: a priority of sidelink transmission for the first mode is higher than a priority of sidelink transmission for the second mode; a priority of uplink transmission is higher than the priority of the sidelink transmission for the second mode; a priority of downlink transmission is higher than the priority of the sidelink transmission for the second mode; a priority of a service or data transmitted on the fifth resource is higher than a priority of a service or data transmitted on the sixth resource; priority information of the service or the data transmitted on the fifth resource is greater than or equal to or is less than or equal to a second threshold; priority information of the service or the data transmitted on the sixth resource is greater than or equal to or is less than or equal to a third threshold; a priority of the fifth resource is higher than a priority of the sixth resource; a measurement result for the first mode of the sidelink is higher than a measurement result for the second mode of the sidelink; a measurement result of the uplink is higher than the measurement result for the second mode of the sidelink; a measurement result of the downlink is higher than the measurement result for the second mode of the sidelink; the measurement result for the first mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the second mode of the sidelink is greater than or less than a fifth threshold; a measurement result of the fifth resource is higher than a measurement result of the sixth resource; the measurement result of the fifth resource is greater than or equal to or is less than or equal to the fourth threshold; a measurement result of the sixth resource is greater than or equal to or is less than or equal to the fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; the fifth resource includes a resource shared by the first terminal device and another terminal device, where the resource shared by the first terminal device and the another terminal device includes a first-type configured grant resource and / or a second-mode resource of the sidelink, and the first-type configured grant includes a sidelink resource and / or an uplink resource provided by the network device by using RRC signaling; the fifth resource includes a dedicated resource of the first terminal device; a start time domain position of the fifth resource is before a start time domain position of the sixth resource; the fifth resource includes a periodic third time-frequency resource, the sixth resource includes a periodic fourth time-frequency resource, and a periodicity of the third time-frequency resource is greater than or less than a periodicity of the fourth time-frequency resource; the fifth resource includes the periodic third time-frequency resource, the sixth resource includes the periodic fourth time-frequency resource, and a time interval between two adjacent third time-frequency resources is greater than or less than a time interval between two adjacent fourth time-frequency resources; a size of the fifth source is greater than or less than a size of the sixth resource; and a proportion of an overlapping resource in the sixth resource to the sixth resource is greater than or less than a proportion of an overlapping resource in the fifth resource to the fifth resource.

[0081] A thirteenth aspect of the embodiments of this application provides a communication processing apparatus. The communication processing apparatus includes: a transceiver module, configured to send fourth information to a third terminal device, where the fourth information is used to indicate that the first terminal device releases a seventh resource and / or indicate the seventh resource released by the first terminal device, the seventh resource includes a resource of a sidelink, and the sidelink is a wireless direct communication link between the first terminal device and a second terminal device.

[0082] In a possible implementation, the transceiver module is specifically configured to: send the fourth information to the third terminal device when a fifth condition is met, where the fifth condition includes at least one of the following conditions: the seventh resource overlaps an eighth resource in time domain, where the seventh resource includes a first-mode resource of the sidelink and / or a second-mode resource of the sidelink, the eighth resource includes any one or more of the following content: the first-mode resource of the sidelink, the second-mode resource of the sidelink, a resource of an uplink, and a resource of a downlink, the first-mode resource of the sidelink includes a resource scheduled by a network device for the first terminal device, the second-mode resource of the sidelink includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device, the resource of the uplink includes a resource of an uplink between the first terminal device and the network device, and the resource of the downlink includes a resource of a downlink between the first terminal device and the network device; the seventh resource periodically overlaps the eighth resource in time domain; the seventh resource overlaps the eighth resource for N times in time domain, where N is an integer greater than 0; the seventh resource is to overlap the eighth resource in time domain; the seventh resource is to periodically overlap the eighth resource in time domain; the seventh resource is to overlap the eighth resource for N times in time domain; the seventh resource overrides the eighth resource or the eighth resource overrides the seventh resource; the eighth resource periodically overrides the seventh resource or the seventh resource periodically overrides the eighth resource; the eighth resource overrides the seventh resource for N times or the seventh resource overrides the eighth resource for N times; the eighth resource is to override the seventh resource or the seventh resource is to override the eighth resource; the eighth resource is to periodically override the seventh resource or the seventh resource is to periodically override the eighth resource; the eighth resource is to override the seventh resource for N times or the seventh resource is to override the eighth resource for N times; third duration is greater than an eighth threshold, where the third duration is a time difference between a time domain resource of the seventh resource and a moment at which the first terminal device releases the seventh resource, or is a time difference between a time domain position of the seventh resource and a time domain position at which the first terminal device sends the fourth information to the third terminal device; the eighth resource includes a dedicated resource of the first terminal device; the seventh resource includes a periodic time-frequency resource; and the first terminal device has a resource of the sidelink.

[0083] In another possible implementation, the transceiver module is specifically configured to: send the fourth information to the third terminal device by using any one of SCI, RRC signaling, MAC signaling, and physical layer signaling.

[0084] In another possible implementation, the fourth information includes at least one of the following: an indication that the first terminal device releases the seventh resource; information about the seventh resource; resource type information of the seventh resource; time domain information of the seventh resource; time domain position information of the seventh resource; time domain length information of the seventh resource; frequency domain information of the seventh resource; frequency domain position information of the seventh resource; frequency domain bandwidth information of the seventh resource; a periodicity or an interval of the seventh resource; duration of the seventh resource; time information of releasing the seventh resource by the first terminal device; information about releasing the 1 st< time domain resource of the seventh resource by the first terminal device; time domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; frequency domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device; a time interval between time at which the first terminal device releases the seventh resource and a moment at which the first terminal device sends the fourth information; an indication that the first terminal device senses, selects, or obtains, through contention, the seventh resource; an indication that the first terminal device reserves the seventh resource; an indication that the eighth resource overlaps the seventh resource in time domain, where the eighth resource includes any one or more of the following content: the first-mode resource of the sidelink, the second-mode resource of the sidelink, the resource of the uplink, and the resource of the downlink, the resource of the uplink includes the resource of the uplink between the first terminal device and the network device, and the resource of the downlink includes the resource of the downlink between the first terminal device and the network device; information about the eighth resource; resource type information of the eighth resource; time domain information of the eighth resource; time domain length information of the eighth resource; time domain position information of the eighth resource; frequency domain information of the eighth resource; frequency domain bandwidth information of the eighth resource; frequency domain position information of the eighth resource; a periodicity or a time interval of the eighth resource; duration of the eighth resource; a periodicity or a time interval of a service transmitted on the seventh resource; a periodicity or a time interval of a service transmitted on the eighth resource; a time offset of the time domain position of the seventh resource relative to a time domain position at which the first terminal device sends the fourth information; a time offset of a time domain position of the eighth resource relative to the time domain position at which the first terminal device sends the fourth information; priority information of the service transmitted on the seventh resource; priority information of the service transmitted on the eighth resource; priority information of the seventh resource; priority information of the eighth resource; an indication that a priority of the seventh resource is lower than a priority of the eighth resource; time domain information of the seventh resource overlapping the eighth resource; information about a time domain offset of the seventh resource relative to the eighth resource; information about a resource that does not overlap the eighth resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a quantity of retransmission times and / or a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0085] In another possible implementation, the communication processing apparatus further includes a processing module, where the processing module is configured to: determine that the priority of the seventh resource is lower than the priority of the eighth resource when a sixth condition is met, where the seventh resource includes the first-mode resource of the sidelink and / or the second-mode resource of the sidelink, the eighth resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the resource of the uplink includes the resource of the uplink between the first terminal device and the network device, and the resource of the downlink includes the resource of the downlink between the first terminal device and the network device; and determine to release the seventh resource.

[0086] In another possible implementation, the sixth condition includes any one or more of the following content: a priority of sidelink transmission for the first mode is higher than a priority of sidelink transmission for the second mode; a priority of uplink transmission is higher than the priority of the sidelink transmission for the second mode; a priority of downlink transmission is higher than the priority of the sidelink transmission for the second mode; a priority of a service or data transmitted on the eighth resource is higher than a priority of a service or data transmitted on the seventh resource; priority information of the service or the data transmitted on the seventh resource is greater than or equal to or is less than or equal to a second threshold; priority information of the service or the data transmitted on the eighth resource is greater than or equal to or is less than or equal to a third threshold; the priority of the eighth resource is higher than the priority of the seventh resource; a measurement result for the first mode of the sidelink is higher than a measurement result for the second mode of the sidelink; a measurement result of the uplink is higher than the measurement result for the second mode of the sidelink; a measurement result of the downlink is higher than the measurement result for the second mode of the sidelink; the measurement result for the first mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the second mode of the sidelink is greater than or less than a fifth threshold; a measurement result of the eighth resource is higher than a measurement result of the seventh resource; a measurement result of the seventh resource is greater than or equal to or is less than or equal to the fourth threshold; a measurement result of the eighth resource is greater than or equal to or is less than or equal to the fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; the eighth resource includes a resource shared by the first terminal device and another terminal device, where the resource shared by the first terminal device and the another terminal device includes a first-type configured grant resource and / or the second-mode resource of the sidelink, and the first-type configured grant includes a sidelink resource and / or an uplink resource provided by the network device by using RRC signaling; a start time domain position of the eighth resource is before or after a start time domain position of the seventh resource; the eighth resource includes a periodic fifth time-frequency resource, the seventh resource includes a periodic sixth time-frequency resource, and a periodicity of the fifth time-frequency resource is greater than or less than a periodicity of the sixth time-frequency resource; the eighth resource includes the periodic fifth time-frequency resource, the seventh resource includes the periodic sixth time-frequency resource, and a time interval between two adjacent fifth time-frequency resources is greater than or less than a time interval between two adjacent sixth time-frequency resources; a size of the eighth resource is less than or greater than a size of the seventh resource; a proportion of an overlapping resource in the seventh resource to the seventh resource is greater than or less than a proportion of an overlapping resource in the eighth resource to the eighth resource.

[0087] A fourteenth aspect of the embodiments of this application provides a communication processing apparatus. The communication processing apparatus includes: a processing module, configured to: determine a ninth resource, where the ninth resource is used for any one or more of the following content: sidelink transmission, uplink transmission, and downlink transmission, a sidelink is a wireless direct communication link between the first terminal device and a second terminal device, the uplink transmission is transmission of an uplink between the first terminal device and a network device, and the downlink transmission is transmission of a downlink between the first terminal device and the network device; and select a tenth resource based on the ninth resource, where the tenth resource includes a second-mode resource of the sidelink, and the second-mode resource of the sidelink includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device.

[0088] In a possible implementation, the tenth resource does not include any one of the following content: the ninth resource; all time-frequency resources in time domain in which the ninth resource is located; a subset of the ninth resource; and all time-frequency resources in time domain in which the subset of the ninth resource is located.

[0089] In another possible implementation, the subset of the ninth resource includes a resource whose priority is higher than that of the tenth resource.

[0090] In another possible implementation, the processing module is specifically configured to: determine that a priority of the ninth resource is higher than the priority of the tenth resource when a seventh condition is met; and select the tenth resource when excluding the ninth resource or any time domain resource in time domain in which the ninth resource is located.

[0091] In another possible implementation, the seventh condition includes any one or more of the following content: a priority of sidelink transmission for the first mode is higher than a priority of sidelink transmission for the second mode; a priority of the uplink transmission is higher than the priority of the sidelink transmission for the second mode; a priority of the downlink transmission is higher than the priority of the sidelink transmission for the second mode; a priority of a service or data transmitted on the ninth resource is higher than a priority of a service or data transmitted on the tenth resource; priority information of the service or the data transmitted on the ninth resource is greater than or equal to or is less than or equal to a second threshold; priority information of the service or the data transmitted on the tenth resource is greater than or equal to or is less than or equal to a third threshold; the priority of the ninth resource is higher than the priority of the tenth resource; a measurement result for the first mode of the sidelink is higher than a measurement result for the second mode of the sidelink; a measurement result of the uplink is higher than the measurement result for the second mode of the sidelink; a measurement result of the downlink is higher than the measurement result for the second mode of the sidelink; the measurement result for the first mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the second mode of the sidelink is greater than or equal to or is less than or equal to a fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; a measurement result of the ninth resource is higher than a measurement result of the tenth resource; the measurement result of the ninth resource is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the tenth resource is greater than or equal to or is less than or equal to the fifth threshold; the ninth resource includes a resource shared by the first terminal device and another terminal device, where the resource shared by the first terminal device and the another terminal device includes a first-type configured grant resource and / or the second-mode resource of the sidelink, and the first-type configured grant includes a sidelink resource and / or an uplink resource provided by the network device by using RRC signaling; the ninth resource includes a dedicated resource of the first terminal device; a start time domain position of the ninth resource is before or after a start time domain position of the tenth resource; the ninth resource includes a periodic seventh time-frequency resource, the tenth resource includes a periodic eighth time-frequency resource, and a periodicity of the seventh time-frequency resource is greater than or less than a periodicity of the eighth time-frequency resource; the ninth resource includes the periodic seventh time-frequency resource, the tenth resource includes the periodic eighth time-frequency resource, and a time interval between two adjacent seventh time-frequency resources is greater than or less than a time interval between two adjacent eighth time-frequency resources; a size of the ninth resource is greater than a size of the tenth resource; and a proportion of an overlapping resource in the ninth resource to the ninth resource is greater than or less than a proportion of an overlapping resource in the tenth resource to the tenth resource.

[0092] In another possible implementation, the ninth resource includes any one or more of the following content: a resource of the sidelink; a first-mode resource of the sidelink; a configured grant resource of the sidelink; a first-type configured grant resource of the sidelink; a second-type configured grant resource of the sidelink; a dynamic grant resource of the sidelink; a resource of the uplink; a configured grant resource of the uplink; a first-type configured grant resource of the uplink; a second-type configured grant resource of the uplink; a dynamic grant resource of the uplink; a resource of the downlink; a semi-persistently allocated resource of the downlink; and a dynamically allocated resource of the downlink, where the first-type configured grant includes a sidelink resource and / or an uplink resource that are / is provided by the network device by using RRC signaling, the second-type configured grant means that the network device provides a resource periodicity for the sidelink and / or a resource periodicity for the uplink by using RRC signaling and then activates the sidelink resource and / or the uplink resource by using a PDCCH or DCI, the dynamic grant resource includes a sidelink resource and / or an uplink resource that are / is scheduled by the network device by using a PDCCH or DCI, the semi-persistently allocated resource means that the network device provides a periodicity of the downlink resource by using RRC signaling and then activates the downlink resource by using a PDCCH or DCI, the dynamically allocated resource includes a downlink resource scheduled by the network device by using a PDCCH or DCI, the first-mode resource of the sidelink includes a sidelink resource scheduled by the network device for the terminal device, the first-mode resource of the sidelink includes the configured grant resource of the sidelink and / or the dynamic grant resource of the sidelink, and the configured grant resource of the sidelink includes the first-type configured grant resource of the sidelink and / or the second-type configured grant resource of the sidelink; and the tenth resource includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device.

[0093] In another possible implementation, the processing module is specifically configured to: receive, before a sensing window ends, scheduling information sent by the network device, where a resource scheduled by the network device by using the scheduling information exists in a selection window; and determine, based on the scheduling information, the ninth resource scheduled by the network device for the first terminal device.

[0094] A fifteenth aspect of the embodiments of this application provides a communication processing apparatus. The communication processing apparatus includes: a transceiver module, configured to send fifth information to a network device, where the fifth information is used to indicate information about an eleventh resource and / or indicate that the first terminal device requests a twelfth resource from the network device, the eleventh resource includes a second-mode resource of a sidelink, the second-mode resource of the sidelink includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device, and the sidelink is a wireless direct communication link between the first terminal device and a second terminal device.

[0095] In a possible implementation, the transceiver module is specifically configured to: send the fifth information to the network device when a ninth condition is met, where the ninth condition includes any one or more of the following content: the first terminal device is in a connected state; the first terminal device determines that a priority of the eleventh resource is higher than a priority of the twelfth resource, where the twelfth resource includes any one or more of the following content: a first-mode resource of the sidelink, a resource of an uplink, and a resource of a downlink, the first-mode resource of the sidelink includes a resource scheduled by the network device for the first terminal device, the resource of the uplink includes a resource of an uplink between the first terminal device and the network device, and the resource of the downlink includes a resource of a downlink between the first terminal device and the network device; the first terminal device sends a resource request message to the network device, where the resource request message is used to request the twelfth resource from the network device; the first terminal device senses, selects, or obtains, through contention, the eleventh resource and / or reserves the eleventh resource; and the first terminal device has a resource of the uplink.

[0096] In another possible implementation, the fifth information includes any one or more of the following information: an indication that the first terminal device senses, selects, or obtains, through contention, the eleventh resource; an indication that the first terminal device reserves the eleventh resource; the information about the eleventh resource; resource type information of the eleventh resource; time domain information of the eleventh resource; time domain length information of the eleventh resource; time domain position information of the eleventh resource; frequency domain information of the eleventh resource; frequency domain bandwidth information of the eleventh resource; frequency domain position information of the eleventh resource; a periodicity or a time interval of the eleventh resource; duration of the eleventh resource; a periodicity or a time interval of a service or data transmitted on the eleventh resource; a time offset of a time domain position of the eleventh resource relative to a time domain position at which the first terminal device sends the fifth information; a time offset of a time domain position of the twelfth resource relative to the time domain position at which the first terminal device sends the fifth information; priority information of the service or the data transmitted on the eleventh resource; priority information of the eleventh resource; information about a resource that does not overlap the eleventh resource; an indication that the first terminal device requests the twelfth resource from the network device; information about the twelfth resource; resource type information of the twelfth resource; time domain information of the twelfth resource; time domain length information of the twelfth resource; time domain position information of the twelfth resource; frequency domain information of the twelfth resource; frequency domain bandwidth information of the twelfth resource; frequency domain position information of the twelfth resource; a periodicity or an interval of the twelfth resource; information about a time domain offset of the twelfth resource relative to the eleventh resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0097] In another possible implementation, the transceiver module is specifically configured to: send the fifth information to the network device by using RRC signaling, MAC signaling, and physical layer signaling.

[0098] In another possible implementation, the transceiver module is specifically configured to: determine that the priority of the eleventh resource is higher than the priority of the twelfth resource when a tenth condition is met; and send the fifth information to the network device, where the ninth condition includes any one or more of the following content: a priority of sidelink transmission for the first mode is lower than a priority of sidelink transmission for the second mode; a priority of uplink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of downlink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of the service or the data transmitted on the eleventh resource is higher than a priority of the service or the data transmitted on the twelfth resource; priority information of the service or the data transmitted on the eleventh resource is greater than or less than a second threshold; priority information of the service or the data transmitted on the twelfth resource is greater than or less than a third threshold; the priority of the eleventh resource is higher than the priority of the sixth resource; a measurement result for the second mode of the sidelink is higher than a measurement result for the first mode of the sidelink; a measurement result of the uplink is lower than the measurement result for the second mode of the sidelink; a measurement result of the downlink is lower than the measurement result for the second mode of the sidelink; the measurement result for the second mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the first mode of the sidelink is greater than or less than a fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; a measurement result of the eleventh resource is higher than a measurement result of the twelfth resource; the measurement result of the eleventh resource is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the eleventh resource is greater than or equal to or is less than or equal to the fifth threshold; a start time domain position of the eleventh resource is before or after a start time domain position of the twelfth resource; the eleventh resource includes a periodic ninth time-frequency resource, the twelfth resource includes a periodic tenth time-frequency resource, and a periodicity of the ninth time-frequency resource is greater than or less than a periodicity of the tenth time-frequency resource; the eleventh resource includes the periodic ninth time-frequency resource, the twelfth resource includes the periodic tenth time-frequency resource, and a time interval between two adjacent ninth time-frequency resources is greater than or less than a time interval between two adjacent tenth time-frequency resources; a size of the eleventh resource is less than a size of the twelfth resource; and a proportion of an overlapping resource in the eleventh resource to the eleventh resource is greater than or less than a proportion of an overlapping resource in the twelfth resource to the twelfth resource.

[0099] A sixteenth aspect of the embodiments of this application provides a communication processing apparatus. The communication processing apparatus includes: a transceiver module, configured to receive fifth information sent by a first terminal device, where the fifth information is used to indicate information about an eleventh resource and / or indicate that the first terminal device requests a twelfth resource from the network device, the eleventh resource includes a second-mode resource of a sidelink, the second-mode resource of the sidelink includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device, and the sidelink is a wireless direct communication link between the first terminal device and a second terminal device.

[0100] In a possible implementation, the communication processing apparatus further includes a processing module, where the processing module is configured to: schedule the twelfth resource for the first terminal device based on the fifth information, where the twelfth resource includes any one or more of the following content: a first-mode resource of the sidelink, a resource of an uplink, and a resource of a downlink, the resource of the uplink includes a resource of an uplink between the first terminal device and the network device, and the resource of the downlink includes a resource of a downlink between the first terminal device and the network device.

[0101] In another possible implementation, the twelfth resource does not include any one of the following content: the eleventh resource; all time-frequency resources in time domain in which the eleventh resource is located; a subset of the eleventh resource; and all time-frequency resources in time domain in which the subset of the eleventh resource is located.

[0102] In another possible implementation, the subset of the eleventh resource includes a resource whose priority is higher than that of the twelfth resource.

[0103] In another possible implementation, the processing module is specifically configured to: determine that a priority of the eleventh resource is higher than the priority of the twelfth resource when an eighth condition is met; and schedule the twelfth resource for the first terminal device when excluding the eleventh resource or any time-frequency resource in time domain in which the eleventh resource is located.

[0104] In another possible implementation, the eighth condition includes any one or more of the following content: a priority of sidelink transmission for the first mode is lower than a priority of sidelink transmission for the second mode; a priority of uplink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of downlink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of a service or data transmitted on the eleventh resource is higher than a priority of a service or data transmitted on the twelfth resource; priority information of the service or the data transmitted on the eleventh resource is greater than or less than a second threshold; priority information of the service or the data transmitted on the twelfth resource is greater than or less than a third threshold; the priority of the eleventh resource is higher than the priority of the sixth resource; a measurement result for the second mode of the sidelink is higher than a measurement result for the first mode of the sidelink; a measurement result of the uplink is lower than the measurement result for the second mode of the sidelink; a measurement result of the downlink is lower than the measurement result for the second mode of the sidelink; the measurement result for the second mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the first mode of the sidelink is greater than or less than a fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; a measurement result of the eleventh resource is higher than a measurement result of the twelfth resource; the measurement result of the eleventh resource is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the eleventh resource is greater than or equal to or is less than or equal to the fifth threshold; a start time domain position of the eleventh resource is before or after a start time domain position of the twelfth resource; the eleventh resource includes a periodic ninth time-frequency resource, the twelfth resource includes a periodic tenth time-frequency resource, and a periodicity of the ninth time-frequency resource is greater than or less than a periodicity of the tenth time-frequency resource; the eleventh resource includes the periodic ninth time-frequency resource, the twelfth resource includes the periodic tenth time-frequency resource, and a time interval between two adjacent ninth time-frequency resources is greater than or less than a time interval between two adjacent tenth time-frequency resources; a size of the eleventh resource is less than a size of the twelfth resource; and a proportion of an overlapping resource in the eleventh resource to the eleventh resource is greater than or less than a proportion of an overlapping resource in the twelfth resource to the twelfth resource.

[0105] In another possible implementation, the fifth information includes any one or more of the following information: an indication that the first terminal device senses, selects, or obtains, through contention, the eleventh resource; an indication that the first terminal device reserves the eleventh resource; the information about the eleventh resource; resource type information of the eleventh resource; time domain information of the eleventh resource; time domain length information of the eleventh resource; time domain position information of the eleventh resource; frequency domain information of the eleventh resource; frequency domain bandwidth information of the eleventh resource; frequency domain position information of the eleventh resource; a periodicity or a time interval of the eleventh resource; duration of the eleventh resource; a periodicity or a time interval of a service or data transmitted on the eleventh resource; a time offset of a time domain position of the eleventh resource relative to a time domain position at which the first terminal device sends the fifth information; a time offset of a time domain position of the twelfth resource relative to the time domain position at which the first terminal device sends the fifth information; priority information of the service or the data transmitted on the eleventh resource; priority information of the eleventh resource; information about a resource that does not overlap the eleventh resource; an indication that the first terminal device requests the twelfth resource from the network device; information about the twelfth resource; resource type information of the twelfth resource; time domain information of the twelfth resource; time domain length information of the twelfth resource; time domain position information of the twelfth resource; frequency domain information of the twelfth resource; frequency domain bandwidth information of the twelfth resource; frequency domain position information of the twelfth resource; a periodicity or an interval of the twelfth resource; information about a time domain offset of the twelfth resource relative to the eleventh resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0106] In another possible implementation, the receiving, by a network device, fifth information sent by a first terminal device includes: receiving, by the network device by using any one of RRC signaling, MAC signaling, and physical layer signaling, the fifth information sent by the terminal device.

[0107] In another possible implementation, the transceiver module is specifically configured to: receive, by using any one of RRC signaling, MAC signaling, and physical layer signaling, the fifth information sent by the first terminal device.

[0108] A seventeenth aspect of the embodiments of this application provides a communication processing apparatus. The communication processing apparatus includes: a processing module, configured to: obtain a transmission configuration, where the transmission configuration includes any one or more of a first dedicated time domain resource configuration, a second dedicated time domain resource configuration, an eighth dedicated time domain resource configuration, a ninth dedicated time domain resource configuration, a tenth dedicated time domain resource configuration, and an eleventh dedicated time domain resource configuration, the first dedicated time domain resource configuration includes a time domain resource configuration dedicated to a first mode for a sidelink, the second dedicated time domain resource configuration includes a time domain resource configuration dedicated to a second mode for the sidelink, the eighth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink sending for the first mode, the ninth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink sending for the second mode, the tenth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink receiving for the first mode, the eleventh dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink receiving for the second mode, and the sidelink is a wireless direct communication link between the first terminal device and a second terminal device; and select a thirteenth resource based on the transmission configuration, where the thirteenth resource includes a second-mode resource of the sidelink, and the second-mode resource of the sidelink includes a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device.

[0109] In a possible implementation, the transmission configuration further includes any one or more of a third dedicated time domain resource configuration, a fourth dedicated time domain resource configuration, a fifth dedicated time domain resource configuration, a sixth dedicated time domain resource configuration, and a seventh dedicated time domain resource configuration; the third dedicated time domain resource configuration is used for transmission of the sidelink; the fourth dedicated time domain resource configuration is used for sending of the sidelink; the fifth dedicated time domain resource configuration is used for receiving of the sidelink; the sixth dedicated time domain resource configuration is used for uplink transmission; and the seventh dedicated time domain resource configuration is used for downlink transmission, where the uplink transmission is uplink transmission for communication between the first terminal device and a network device, and the downlink transmission is downlink transmission for communication between the first terminal device and the network device.

[0110] In another possible implementation, the transmission configuration further includes a shared time domain resource configuration, and the shared time domain resource configuration is used for any one or more of the following content: sidelink transmission for the first mode; sidelink transmission for the second mode; sidelink sending for the first mode; sidelink sending for the second mode; sidelink receiving for the first mode; sidelink receiving for the second mode; transmission of the sidelink; sending of the sidelink; receiving of the sidelink; the uplink transmission; and the downlink transmission, where the uplink transmission is the uplink transmission for communication between the first terminal device and the network device, and the downlink transmission is the downlink transmission for communication between the first terminal device and the network device.

[0111] In another possible implementation, the transmission configuration is specified in a communication protocol, or the processing module is specifically configured to: receive the transmission configuration sent by the network device; receive sixth information sent by the network device, where the sixth information carries information about the transmission configuration; or determine the transmission configuration according to a preset rule.

[0112] An eighteenth aspect of the embodiments of this application provides a communication processing apparatus. The communication processing apparatus includes: a processing module, configured to: obtain a transmission configuration, where the transmission configuration includes any one or more of a first dedicated time domain resource configuration, a second dedicated time domain resource configuration, an eighth dedicated time domain resource configuration, a ninth dedicated time domain resource configuration, a tenth dedicated time domain resource configuration, and an eleventh dedicated time domain resource configuration, the first dedicated time domain resource configuration includes a time domain resource configuration dedicated to a first mode for a sidelink, the second dedicated time domain resource configuration includes a time domain resource configuration dedicated to a second mode for the sidelink, the eighth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink sending for the first mode, the ninth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink sending for the second mode, the tenth dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink receiving for the first mode, the eleventh dedicated time domain resource configuration includes a time domain resource configuration dedicated to sidelink receiving for the second mode, and the sidelink is a wireless direct communication link between a first terminal device and a second terminal device; and select a fourteenth resource for the first terminal device based on the transmission configuration.

[0113] In a possible implementation, the transmission configuration further includes any one or more of a third dedicated time domain resource configuration, a fourth dedicated time domain resource configuration, a fifth dedicated time domain resource configuration, a sixth dedicated time domain resource configuration, and a seventh dedicated time domain resource configuration; the third dedicated time domain resource configuration is used for transmission of the sidelink; the fourth dedicated time domain resource configuration is used for sending of the sidelink; the fifth dedicated time domain resource configuration is used for receiving of the sidelink; the sixth dedicated time domain resource configuration is used for uplink transmission; and the seventh dedicated time domain resource configuration is used for downlink transmission, where the uplink transmission is uplink transmission for communication between the first terminal device and a network device, and the downlink transmission is downlink transmission for communication between the first terminal device and the network device.

[0114] In another possible implementation, the transmission configuration further includes a shared time domain resource configuration, and the shared time domain resource configuration is used for any one or more of the following content: sidelink transmission for the first mode; sidelink transmission for the second mode; sidelink sending for the first mode; sidelink sending for the second mode; sidelink receiving for the first mode; sidelink receiving for the second mode; transmission of the sidelink; sending of the sidelink; receiving of the sidelink; the uplink transmission; and the downlink transmission, where the uplink transmission is the uplink transmission for communication between the first terminal device and the network device, and the downlink transmission is the downlink transmission for communication between the first terminal device and the network device.

[0115] In another possible implementation, the transmission configuration is specified in a communication protocol, or the processing module is specifically configured to: determine the transmission configuration according to a preset rule.

[0116] In another possible implementation, the communication processing apparatus further includes a transceiver module, where the transceiver module is configured to: send sixth information to the first terminal device, where the sixth information is used to carry information about the transmission configuration.

[0117] A nineteenth aspect of the embodiments of this application provides a communication processing apparatus. The communication processing apparatus includes a processor and a memory. The memory is configured to store computer instructions. When the processor executes the instructions, the communication processing apparatus is enabled to perform the communication processing method according to any one of the first aspect, the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, and the eighth aspect. The communication processing apparatus may be the first terminal device according to any one of the first aspect, the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, and the eighth aspect, for example, a vehicle-mounted communication apparatus, an apparatus including the first terminal device, for example, various types of vehicles, or an apparatus or a component included in the first terminal device, for example, a system chip.

[0118] A twentieth aspect of the embodiments of this application provides a communication processing apparatus. The communication processing apparatus includes a processor and a memory. The memory is configured to store computer instructions. When the processor executes the instructions, the communication processing apparatus is enabled to perform the communication processing method according to any one of the second aspect, the seventh aspect, and the ninth aspect. The communication apparatus may be the network device according to any one of the second aspect, the seventh aspect, and the ninth aspect, for example, a base station, an apparatus including the network device, or an apparatus or a component included in the network device, for example, a system chip.

[0119] A twenty-first aspect of the embodiments of this application provides a chip system. The chip system includes a processor and an input / output port. The processor is configured to implement a processing function in the communication processing method according to any one of the first aspect, the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, and the eighth aspect. The input / output port is configured to implement a transceiver function in the communication processing method according to any one of the first aspect, the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, and the eighth aspect.

[0120] In a possible design, the chip system further includes a memory. The memory is configured to store program instructions and data that are used to implement the functions in the communication processing method according to the first aspect.

[0121] The chip system may include a chip, or may include a chip and another discrete component.

[0122] A twenty-second aspect of the embodiments of this application provides a chip system. The chip system includes a processor and an input / output port. The processor is configured to implement a processing function in the communication processing method according to any one of the second aspect, the seventh aspect, and the ninth aspect. The input / output port is configured to implement a transceiver function in the communication processing method according to any one of the second aspect, the seventh aspect, and the ninth aspect.

[0123] In a possible design, the chip system further includes a memory. The memory is configured to store program instructions and data that are used to implement the functions in the communication processing method according to the second aspect.

[0124] The chip system may include a chip, or may include a chip and another discrete component.

[0125] A twenty-third aspect of the embodiments of this application provides a communication processing system. The communication processing system includes the first terminal device according to any one of the first aspect, the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, and the eighth aspect and the second terminal device according to any one of the second aspect, the seventh aspect, and the ninth aspect.

[0126] A twenty-fourth aspect of the embodiments of this application provides a computer-readable storage medium. The computer-readable storage medium stores computer instructions. When the computer instructions are run on a computer, the computer is enabled to perform the communication processing method according to any one of the possible implementations of the first aspect to the ninth aspect.

[0127] A twenty-fifth aspect of the embodiments of this application provides a computer program product. The computer program product includes a computer program or instructions. When the computer program or the instructions is / are run on a computer, the computer is enabled to perform the communication processing method according to any one of the possible implementations of the first aspect to the ninth aspect.

[0128] It can be learned from the foregoing technical solution that the first terminal device generates the first information. Then, the first terminal device sends the first information to the network device, where the first information is used to indicate the first resource released by the first terminal device and / or indicate that the first terminal device requests the second resource from the network device. Therefore, when the first terminal device determines to release the first resource, the first terminal device may send the first information to the network device, so that the network device determines the first resource released by the first terminal device. In this way, the network device may allocate the first resource to another terminal device, to improve resource utilization.BRIEF DESCRIPTION OF DRAWINGS

[0129] FIG. 1A is a schematic diagram of a system architecture according to an embodiment of this application; FIG. 2A is a schematic diagram of an embodiment of a communication processing method according to an embodiment of this application; FIG. 2B is a schematic diagram of a scenario of a communication processing method according to an embodiment of this application; FIG. 2C is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2D is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2E is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2F is a schematic diagram of a sending format of a MAC CE according to an embodiment of this application; FIG. 2G is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2H is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2I is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2J is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2K is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 2L is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2M is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2N is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2O is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2P is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 2Q is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 3A is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 3B is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 3C is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 4A is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 4B is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 4C is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 4D is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 5A is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 5B is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 5C is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 5D is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 5E is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 5F is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 6A is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 6B is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 6C is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 7A is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 7B is a schematic diagram of another scenario of a communication processing method according to an embodiment of this application; FIG. 8A is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application; FIG. 9 is a schematic diagram of a structure of a communication processing apparatus according to an embodiment of this application; FIG. 10 is a schematic diagram of another structure of a communication processing apparatus according to an embodiment of this application; FIG. 11 is a schematic diagram of a structure of a first terminal device according to an embodiment of this application; FIG. 12 is a schematic diagram of a structure of a network device according to an embodiment of this application; FIG. 13 is a schematic diagram of another structure of a communication processing apparatus according to an embodiment of this application; and FIG. 14 is a schematic diagram of a communication processing system according to an embodiment of this application. DESCRIPTION OF EMBODIMENTS

[0130] Embodiments of this application provide a communication processing method, a communication processing apparatus, and a system, to improve resource utilization.

[0131] The technical solutions in the embodiments of this application may be applied to various communication systems, for example, a long term evolution (long term evolution, LTE) system, an LTE frequency division duplex (frequency division duplex, FDD) system, an LTE time division duplex (time division duplex, TDD) system, a universal mobile telecommunication system (universal mobile telecommunication system, UMTS), a worldwide interoperability for microwave access (worldwide interoperability for microwave access, WiMAX) communication system, a 5th generation (5th generation, 5G) system, a new radio (new radio, NR) system, or a future communication system (for example, a 6G communication system or a 7G communication system).

[0132] A terminal device in the embodiments of this application may be user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication apparatus, a user agent, or a user apparatus. Alternatively, the terminal device may be a cellular phone, a cordless phone, a session initiation protocol (session initiation protocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, a personal digital assistant (personal digital assistant, PDA), a handheld device having a wireless communication function, a computing device, another processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G network, a terminal device in a future evolved public land mobile network (public land mobile network, PLMN), an in-vehicle communication device, an in-vehicle communication chip, or the like. This is not limited in the embodiments of this application.

[0133] A network device in the embodiments of this application may be a device configured to communicate with the terminal device. The network device may be a base transceiver station (base transceiver station, BTS) in a global system for mobile communications (global system for mobile communications, GSM) or code division multiple access (code division multiple access, CDMA), or may be a NodeB (NodeB, NB) in a wideband code division multiple access (wideband code division multiple access, WCDMA) system, or may be an evolved NodeB (evolved NodeB, eNB or eNodeB) in an LTE system, or may be a radio controller in a cloud radio access network (cloud radio access network, CRAN) scenario. Alternatively, the network device may be a relay node, an access point, a vehicle-mounted device, a wearable device, a network device in a future 5G network, a network device in a future evolved PLMN network, or the like. This is not limited in the embodiments of this application.

[0134] In the embodiments of this application, the terminal device or the network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (central processing unit, CPU), a memory management unit (memory management unit, MMU), and a memory (which is also referred to as a main memory). An operating system may be any one or more of computer operating systems implementing service processing through a process (process), for example, a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, and a Windows operating system. The application layer includes applications such as a browser, an address book, word processing software, and instant messaging software. In addition, a specific structure of an execution body of a method provided in the embodiments of this application is not specifically limited in the embodiments of this application provided that a program that records code for the method provided in the embodiments of this application can be run to perform communication according to the method provided in the embodiments of this application. For example, the execution body of the method provided in the embodiments of this application may be the terminal device, the network device, or a functional module that is in the terminal device or the network device and that can invoke and execute the program.

[0135] In addition, aspects or features of this application may be implemented as a method, an apparatus, or a product that uses standard programming and / or engineering technologies. The term "product" used in this application overrides a computer program that can be accessed from any computer-readable device, carrier or medium. For example, the computer-readable medium may include but is not limited to: a magnetic storage component (for example, a hard disk, a floppy disk, or a magnetic tape), an optical disc (for example, a compact disc (compact disc, CD) and a digital versatile disc (digital versatile disc, DVD)), a smart card, and a flash memory component (for example, an erasable programmable read-only memory (erasable programmable read-only memory, EPROM), a card, a stick, or a key drive). In addition, various storage media described in this specification may indicate one or more devices and / or other machine-readable media that are configured to store information. The term "machine-readable media" may include but is not limited to radio channels and various other media that can store, include, and / or carry instructions and / or data.

[0136] Currently, V2X is a key technology of intelligent transportation systems and is considered as one of the fields with the most industrial potential and the clearest market demand in an internet of things system. V2X is characterized by wide application space, great industrial potential, and strong social benefits, and has great significance for promoting innovation and development of car and information communication industries, building new modes and new business forms of car and transportation services, promoting innovation and application of technologies such as self driving, assisted driving, smart driving, connected driving, intelligent connected driving, autonomous driving, and car sharing, and improving transportation efficiency and a level of safety. The internet of vehicles generally refers to a communication network providing vehicle information by using a sensor, a vehicle-mounted terminal device, or the like that is loaded on a vehicle, to implement vehicle to vehicle (vehicle to vehicle, V2V), vehicle to infrastructure (vehicle to infrastructure, V2I), vehicle to network (vehicle to Network, V2N), and vehicle to pedestrian (vehicle to pedestrian, V2P) communication.

[0137] FIG. 1A is a schematic diagram of a system architecture according to an embodiment of this application. In FIG. 1A, in a V2X scenario, a communication link for performing direct communication between terminal devices may be referred to as a sidelink or a sidelink (sidelink, SL). A wireless communication link between a terminal device and a network device may be referred to as an uplink (uplink, UL) or a downlink (downlink, DL). Because a UL or DL interface may be referred to as a Uu interface, the UL or the DL may be referred to as a Uu interface link.

[0138] An SL communication resource for wireless direct communication between the terminal devices may be scheduled by the network device. For example, the terminal device falls within a coverage area of the network device, a wireless direct communication process between the terminal devices may be controlled by the network device, and a terminal device that serves as a data transmit end may send, on the SL communication resource configured by the network device, a control signal and a data signal to a terminal device that serves as a data receive end. This mode in which a base station schedules an SL transmission resource may be referred to as a first mode. Optionally, the first mode may be a mode1 resource configuration mode or a mode3 resource configuration mode specified in a current standard formulated by the 3rd generation partnership project (3rd Generation Partnership Project, 3GPP).

[0139] For example, scheduling the SL transmission resource by the base station may include two different types of transmission resources: a dynamic grant and a configured grant. The dynamic grant means that the network device needs to separately allocate a resource for each time of data transmission of the terminal device, which is characterized by "one-time allocation, one-time use". For example, the network device may dynamically allocate a sidelink transmission resource to the terminal device by using downlink control information (downlink control information, DCI). The DCI may be carried on a physical downlink control channel. The configured grant may be that the network device does not always need to separately allocate a resource for each time of data transmission of the terminal device, and after the network device allocates a resource to the terminal device at a time, the terminal device may use the allocated resource within a future period of time, which is characterized by "one-time allocation, multi-time use". For example, a type1 configured grant (SL configured grant type-1), a type2 configured grant (SL configured grant type-2), a grant free (SL grant free), and semi-persistent scheduling (SL Semi-Persistent Scheduling, SL SPS) may be included. The type1 configured grant may be a sidelink configured grant directly configured by the network device for the terminal device by using radio resource control (radio resource control, RRC) signaling. The terminal device may directly use a configured grant resource to transmit data without additional activation (for example, activated by using a PDCCH / DCI). The type2 configured grant may be that the network device defines a periodicity of the configured grant by using RRC signaling and then activates the configured grant by using a PDCCH / DCI, and the terminal device cannot directly use a configured grant resource to transmit data and can use the configured grant resource only after the configured grant is activated. The grant free may be a sidelink configured grant directly configured by the network device for the terminal device by using radio resource control (radio resource control, RRC) signaling. The terminal device may directly use a configured grant resource to transmit data without additional activation (for example, activated by using a PDCCH / DCI). The semi-persistent scheduling may be that the network device defines a periodicity of the configured grant by using RRC signaling and then activates the configured grant by using a PDCCH / DCI, and the terminal device cannot directly use a configured grant resource to transmit data and can use the configured grant resource only after the configured grant is activated. A difference between the dynamic grant and the configured grant lies in a grant, that is, resource allocation flexibility and resource allocation overheads. For the dynamic grant, the network needs to allocate a grant to each time of data transmission of the terminal device. In this case, resource allocation is flexible, but resource allocation overheads are high. For the configured grant, the network device allocates a grant once, and the terminal may use the grant for a plurality of times. In this case, resource allocation overheads are low, but an allocated resource is not changed or adjusted within a long period of time, and resource allocation is not flexible. The dynamic grant is allocated by using a physical channel (for example, a PDCCH), and allocation is quick. The configured grant is configured by using higher layer signaling (for example, RRC signaling) or by using higher layer signaling (for example, RRC signaling) and a physical channel (for example, a PDCCH), and resource allocation is slow.

[0140] The SL communication resource for wireless direct communication between the terminal devices may not be scheduled and controlled by the network device, but is determined by the terminal device. For example, the terminal device is within a communication coverage area of the network device, the network device configures an SL resource pool for the terminal device by using a system information block (system information block, SIB) message or dedicated RRC signaling, and the terminal device serving as a data transmit end may autonomously obtain an SL communication resource from the SL resource pool to send a control signal and a data signal to the terminal device serving as a data receive end. Alternatively, for example, the terminal device is beyond a communication coverage area of the network device, and the terminal device serving as a data transmit end autonomously obtains a sidelink communication resource from a preconfigured SL resource pool to send a control signal and / or a data signal to the terminal device serving as a data receive end. For example, the terminal device may sense or contend for the sidelink transmission resource. Optionally, the terminal device obtains an appropriate SL communication resource from the SL resource pool by contending with another terminal device, to send the control signal and / or the data signal. For example, a higher priority of a to-be-transmitted V2X service of the terminal device indicates a greater opportunity that the terminal device contends for the appropriate SL communication resource in the SL resource pool. Optionally, the terminal device may prestore SL resource pool information, or the network device preconfigures the SL resource pool when the terminal device accesses a network. This mode in which the terminal device autonomously determines the SL transmission resource may be referred to as a second mode. Optionally, the second mode may be a mode2 resource configuration mode or a mode4 resource configuration mode specified in a standard currently formulated by the 3GPP.

[0141] Currently, the communication system supports coexistence of the first mode and the second mode. As a result, a first-mode resource of the sidelink of the terminal device overlaps a second-mode resource of the sidelink in time domain. If the terminal device simultaneously sends data on the first-mode resource and the second-mode resource, a PAPR may be excessively large. In this case, the terminal device may use one resource to override the other resource (for example, the first-mode resource of the sidelink overrides the second-mode resource of the sidelink, or the second-mode resource of the sidelink overrides the first-mode resource of the sidelink). In other words, the terminal device performs communication on only one resource. Consequently, an overridden resource is wasted, resulting in low resource utilization.

[0142] The following describes in detail the embodiments of this application with reference to specific examples. It should be noted that the descriptions are merely intended to help a person skilled in the art better understand the embodiments of this application, but are not intended to limit the scope of the embodiments of this application.

[0143] It should be understood that, in the embodiments of this application, "first", "second", and the like are merely intended to indicate different objects, and do not indicate another limitation on the indicated objects. For example, similar to "a first threshold", "a second threshold", "a first resource", "a second resource", and the like in the embodiments of this application are deduced by analogy. A function of "first" and "second" may be to number corresponding items, to distinguish between applicable scenarios or references and does not limit a specific threshold or resource. For example, that "a measurement result of a ninth resource is greater than or equal to a fourth threshold" may be understood as that a measurement result of a specific resource is greater than or equal to a specific threshold in a technical scenario. A specific resource or threshold needs to be determined based on an applicable scenario.

[0144] To help a reader understand the solutions in the embodiments of this application, the following describes some technical terms used in this application. 1. A resource of a sidelink includes a first-mode resource of the sidelink and / or a second-mode resource of the sidelink. 2. The first-mode resource of the sidelink is a sidelink resource scheduled by a base station, and includes a configured grant resource of the sidelink and / or a dynamic grant resource of the sidelink. 3. The second-mode resource of the sidelink is a sidelink resource that is selected, contended for, or sensed, and / or reserved by a terminal device. 4. The configured grant resource of the sidelink includes a first-type configured grant resource of the sidelink and / or a second-type configured grant resource of the sidelink. 5. The first-type configured grant resource of the sidelink: A sidelink configured grant is directly configured by a network device for the terminal device by using RRC signaling, and the terminal device may directly use the configured grant resource to transmit data without additional activation (for example, activated by using a PDCCH / DCI), for example, a type1 configured grant (SL configured grant type-1) or a grant free (SL grant free). 6. The second-type configured grant resource of the sidelink: The network device defines a periodicity of a configured grant by using RRC signaling and then activates the configured grant by using a PDCCH / DCI, and the terminal device cannot directly use the configured grant resource to transmit data and can use the configured grant resource only after the configured grant is activated, for example, a type2 configured grant (SL configured grant type-2) or semi-persistent scheduling (SL Semi-Persistent Scheduling, SL SPS). 7. The dynamic grant resource of the sidelink is a sidelink transmission resource dynamically allocated by the network device to the terminal device by using DCI, where the DCI may be carried on a PDCCH. The network device needs to separately allocate a resource for each time of data transmission of the terminal device, which is characterized by "one-time allocation, one-time use". 8. A resource of an uplink includes a configured grant resource of the uplink and / or a dynamic grant resource of the uplink. 9. The configured grant resource of the uplink includes a first-type configured grant resource of the uplink and / or a second-type configured grant resource of the uplink. 10. The first-type configured grant resource of the uplink: An uplink configured grant is directly configured by the network device for the terminal device by using RRC signaling, and the terminal device may directly use the configured grant resource to transmit data without additional activation (for example, activated by using a PDCCH / DCI), for example, a type1 configured grant (configured grant type-1) and a grant free (grant free). 11. The second-type configured grant resource of the uplink: The network device defines a periodicity of a configured grant by using RRC signaling and then activates the configured grant by using a PDCCH / DCI, and the terminal device cannot directly use the configured grant resource to transmit data and can use the configured grant resource only after the configured grant is activated, for example, a type2 configured grant (configured grant type-2) or semi-persistent scheduling (Semi-Persistent Scheduling, SPS). 12. The dynamic grant resource of the uplink is an uplink transmission resource dynamically allocated by the network device to the terminal device by using DCI, where the DCI may be carried on a PDCCH. The network device needs to separately allocate a resource for each time of data transmission of the terminal device, which is characterized by "one-time allocation, one-time use". 13. A resource of a downlink includes a semi-persistently allocated resource of the downlink and / or a dynamically allocated resource of the downlink. 14. The semi-persistently allocated resource of the downlink: The network device defines a periodicity of the resource of the downlink by using RRC signaling and then activates the resource of the downlink by using a PDCCH or DCI, and the terminal device cannot directly use the resource to receive data and can use the resource only after the resource is activated, for example, a type2 configured grant (configured grant type-2) or semi-persistent scheduling (Semi-Persistent Scheduling, SPS). 15. The dynamically allocated resource of the downlink is a downlink resource dynamically allocated by the network device to the terminal device by using downlink control information (downlink control information, DCI), where the DCI may be carried on a physical downlink control channel. The network device needs to separately allocate a resource for each time of data receiving of the terminal device, which is characterized by "one-time allocation, one-time use". 16. Uplink transmission is communication performed by a first terminal device and the network device through an uplink. 17. Downlink transmission is communication performed by the first terminal device and the network device through a downlink. 18. Third terminal device: The third terminal device in this specification is a general terminal device, and may be any one or more terminal devices other than the first terminal device. 19. Resource overlapping means that two or more resources overlap and / or partially overlap in time domain. 20. Overlapping: means that two or more resources overlap and / or partially overlap in time domain. 21. Release includes "released" and / or "to be released". 22. Sidelink transmission for the first mode means that the terminal device performs communication by using the first-mode resource of the sidelink. 23. Sidelink transmission for the second mode means that the terminal device performs communication by using the second-mode resource of the sidelink.

[0145] FIG. 2A is a schematic diagram of an embodiment of a communication processing method according to an embodiment of this application. As shown in FIG. 2A, the method includes the following steps.

[0146] 201: A first terminal device generates first information.

[0147] The first information is used to indicate any one or more of the following content: information indicating that the first terminal device releases a first resource; the first resource released by the first terminal device; and information indicating that the first terminal device requests a second resource from the network device.

[0148] Optionally, that the first terminal device releases the first resource includes any one or more of the following: The first terminal device has released the first resource, and the first terminal device is to release the first resource.

[0149] The first resource and / or the second resource include / includes any one or more of the following content: a. A resource of a sidelink.

[0150] The resource of the sidelink includes a first-mode resource of the sidelink and / or a second-mode resource of the sidelink, and the sidelink is a wireless direct communication link between the first terminal device and a second terminal device, for example, as shown in FIG. 1A, an SL between a first terminal device (V2X device 1) and a second terminal device (V2X device 2).

[0151] The first-mode resource of the sidelink includes a configured grant resource of the sidelink and / or a dynamic grant resource of the sidelink, and the configured grant resource of the sidelink includes a first-type configured grant of the sidelink and / or a second-type configured grant of the sidelink.

[0152] b. A resource of an uplink.

[0153] The resource of the uplink includes a configured grant resource of the uplink and / or a dynamic grant resource of the uplink, and the uplink is an uplink for communication between the first terminal device and the network device. For example, as shown in FIG. 1A, the V2X device 1 is connected to the network device through a Uu interface, and performs uplink transmission with the network device through the Uu interface.

[0154] The configured grant resource of the uplink includes a first-type configured grant resource and / or a second-type configured grant resource of the uplink.

[0155] c. A resource of a downlink.

[0156] The resource of the downlink includes a semi-persistently allocated resource of the downlink and / or a dynamically allocated resource of the downlink, and the downlink is a downlink for communication between the first terminal device and the network device. For example, as shown in 1A, the V2X device 1 is connected to the network device through the Uu interface, and performs downlink transmission with the network device through the Uu interface.

[0157] Optionally, it should be noted that it can be learned from the foregoing descriptions of the first resource and the second resource that in this embodiment, a scenario in which the first terminal device generates the first information and reports the first information to the network device includes: Any one or more of the resource of the sidelink, the resource of the uplink, and the resource of the downlink overlap the second-mode resource of the sidelink. In addition, this embodiment is further applicable to a case in which a first-mode resource of the sidelink overlaps a first-mode resource of the sidelink. The first terminal device may notify, by using the first information, the network device that the first terminal device releases the first resource and / or of information about the first resource released by the first terminal device. Further, the first information may also be used by the first terminal device to request the second resource from the network device. For example, the first terminal device determines to release the first resource used for the first mode for the sidelink, and in this case, the first terminal device may request, by using the first information, the network device to reschedule the second resource for a first mode for the sidelink.

[0158] The following describes content included in the first information, and the first information includes any one or more of the following content: 1. An indication that the first terminal device releases the first resource. 2. Information about the first resource.

[0159] Optionally, the information about the first resource includes any one or more of the following content: resource type information of the first resource, time domain information of the first resource, frequency domain information of the first resource, a periodicity or an interval of the first resource, and duration of the first resource.

[0160] For example, the resource type information of the first resource includes an indication that the first resource is any one of the following resources: the resource of the sidelink, the first-mode resource of the sidelink, the configured grant resource of the sidelink, the first-type configured grant resource of the sidelink, the second-type configured grant resource of the sidelink, the dynamic grant resource of the sidelink, the resource of the uplink, the configured grant resource of the uplink, the first-type configured grant resource of the uplink, the second-type configured grant resource of the uplink, the dynamic grant resource of the uplink, the resource of the downlink, the semi-persistently allocated resource of the downlink, and the dynamically allocated resource of the downlink. The resource type information of the first resource may further include an index (configured grant index) of a configured grant resource serving as the first resource.

[0161] Optionally, the time domain information of the first resource includes time domain position information of the first resource and / or time domain length information of the first resource.

[0162] For example, as shown in FIG. 2B, the first resource is the configured grant resource of the sidelink, and the first resource includes a periodic first time-frequency resource. Initial time domain position information (for example, a frame (system frame number, SFN), a subframe, a slot, a symbol, a TTI, and the like) of the 1 st< first time-frequency resource or a first time-frequency resource in the first resource, and midpoint time domain position information (for example, an SFN, a subframe, a slot, a symbol, a TTI, and the like) of the 1 st< first time-frequency resource in the first resource are included. Optionally, the time domain information may include time domain position information of one first time-frequency resource in the first resource, or may include time domain position information of each first time-frequency resource or information about time domain positions occupied by all time-frequency resources in the first resource. This is not specifically limited in this application. In addition, the time domain length information of the first resource may include information (specific subframes, specific slots, specific symbols, or the like occupied by the first resource) about a time domain length occupied by the first time-frequency resource in the first resource. Optionally, the time domain length information may include time domain length information of the first time-frequency resource, or may include time domain length information of each first time-frequency resource, or may include all the time-frequency resources in the first resource. This is not specifically limited in this application. For example, the time domain information of the first resource may be a start time domain position, a length, and the like of the 1 st< time-frequency resource or a time-frequency resource in the first resource.

[0163] Optionally, the frequency domain information of the first resource includes frequency domain bandwidth information and frequency domain position information of the first resource.

[0164] For example, as shown in FIG. 2B, the first resource is the configured grant resource of the sidelink, the first resource includes the periodic first time-frequency resource, and the frequency domain position information may include initial frequency domain position information (for example, an initial frequency / frequency channel number) of the first time-frequency resource, center frequency domain position information (a center frequency / frequency channel number, or the like) of the first time-frequency resource, and end frequency domain position information (an end frequency / frequency channel number, or the like) of the first time-frequency resource. Optionally, the frequency domain position information includes any one or more of the following content: frequency domain position information of one first time-frequency resource, frequency domain position information of each first time-frequency resource, and frequency domain position information of all the time-frequency resources in the first resource.

[0165] For example, the first resource is the configured grant resource of the sidelink, the first resource includes the periodic first time-frequency resource, and frequency domain bandwidth information of a third resource may be information about a frequency domain bandwidth occupied by the first time-frequency resource. The frequency domain bandwidth information includes any one or more of the following content: frequency domain bandwidth information of one first time-frequency resource, frequency domain bandwidth information of each first time-frequency resource, and frequency domain bandwidth information of all time-frequency resources.

[0166] For example, the frequency domain information of the first resource may be a frequency channel number and / or a bandwidth occupied by the first resource.

[0167] For example, the periodicity of the first resource may be a transmission periodicity of the first resource, and the interval of the first resource may be a transmission interval of the first resource. As shown in FIG. 2B, the first resource is the first-type configured grant resource of the sidelink, and a transmission periodicity or a transmission interval of first time-frequency resources included in the first resource is 20 ms (millisecond).

[0168] Optionally, as shown in FIG. 2G, the first resource is the dynamic grant resource of the sidelink, and duration of the first resource includes time of several SFNs, several subframes, several slots, or several symbols occupied by the first resource.

[0169] 3. Time information of releasing the first resource by the first terminal device.

[0170] Optionally, the time information of releasing the first resource by the first terminal device may include time information of the first terminal device that has released or is to release the first resource. Optionally, the time information includes any one or more of the following content: time at which the first terminal device releases the first resource, information about releasing the 1 st< time-frequency resource of the first resource by the first terminal device, a time interval between the time at which the first terminal device releases the first resource and time at which the first terminal device sends the first information, and a time interval between the time at which the first terminal device releases the first resource and a time domain position of the first resource.

[0171] Optionally, the information about releasing the 1 st< time-frequency resource of the first resource by the first terminal device includes: time domain information and / or frequency domain information of releasing the 1 st< time-frequency resource of the first resource by the first terminal device.

[0172] For example, as shown in FIG. 2B, the time information of releasing the first resource by the first terminal device includes a time domain position at which the first terminal device releases the 1 st< time-frequency resource of the resource, a frequency channel number corresponding to the time-frequency resource, and the like.

[0173] 4. An indication that the first terminal device senses, selects, or obtains, through contention, a third resource.

[0174] For example, as shown in FIG. 2B, the third resource is the second-mode resource of the sidelink.

[0175] 5. An indication that the first terminal device reserves the third resource.

[0176] For example, as shown in FIG. 2B, the third resource is the second-mode resource of the sidelink, and the third resource includes a periodic second time-frequency resource. It can be learned that the first terminal device periodically reserves the second-mode resource of the sidelink.

[0177] 6. An indication that the first resource overlaps the third resource in time domain.

[0178] 7. Information about the third resource.

[0179] Optionally, the third resource includes a sidelink resource selected, contended for, or sensed by the first terminal device and / or a sidelink resource reserved by the first terminal device.

[0180] Optionally, the third resource includes the second-mode resource of the sidelink.

[0181] Optionally, the information about the third resource includes any one or more of the following content: resource type information of the third resource, time domain information of the third resource, frequency domain information of the third resource, a periodicity or a time interval of the third resource, and duration of the third resource.

[0182] Optionally, the time domain information of the third resource includes time domain length information and / or time domain position information of the third resource.

[0183] For example, as shown in FIG. 2B, the third resource includes the second-mode resource of the sidelink, and the third resource includes the periodic second time-frequency resource. Initial time domain position information (for example, an SFN, a subframe, a slot, a symbol, a TTI, and the like) of the 1 st< second time-frequency resource or a second time-frequency resource in the third resource, and midpoint time domain position information (for example, an SFN, a subframe, a slot, a symbol, a TTI, and the like) of the 1 st< second time-frequency resource in the third resource are included. Optionally, the time domain information may include time domain position information of one second time-frequency resource in the third resource, or may include time domain position information of each second time-frequency resource or information about a time domain position occupied by all time-frequency resources in the third resource. This is not specifically limited in this application. In addition, the time domain length information of the third resource may include information (specific subframes, specific slots, specific symbols, or the like occupied by the third resource) about a time domain length occupied by the second time-frequency resource in the third resource. Optionally, the time domain length information may include time domain length information of the second time-frequency resource, or may include time domain length information of each second time-frequency resource, or may include all the time-frequency resources in the third resource. This is not specifically limited in this application.

[0184] Optionally, the frequency domain information of the third resource includes frequency domain bandwidth information and frequency domain position information of the third resource.

[0185] For example, as shown in FIG. 2B, the third resource includes the second-mode resource of the sidelink, the third resource includes the periodic second time-frequency resource, and the frequency domain position information may include initial frequency domain position information (for example, an initial frequency / frequency channel number) of the second time-frequency resource, center frequency domain position information (a center frequency / frequency channel number, or the like) of the second time-frequency resource, and end frequency domain position information (an end frequency / frequency channel number, or the like) of the second time-frequency resource. Optionally, the frequency domain position information includes any one or more of the following content: frequency domain position information of one second time-frequency resource, frequency domain position information of each second time-frequency resource, and frequency domain position information of all the time-frequency resources in the third resource.

[0186] For example, the third resource includes the second-mode resource of the sidelink, the third resource includes the periodic second time-frequency resource, and the frequency domain bandwidth information of the third resource may be information about a frequency domain bandwidth occupied by the second time-frequency resource. The frequency domain bandwidth information includes any one or more of the following content: frequency domain bandwidth information of one second time-frequency resource, frequency domain bandwidth information of each second time-frequency resource, and frequency domain bandwidth information of all time-frequency resources.

[0187] For example, as shown in FIG. 2B, the third resource is the second-mode resource of the sidelink, the third resource includes the periodic second time-frequency resource, and a transmission periodicity or a time interval of the second time-frequency resource is 20 ms.

[0188] For example, as shown in FIG. 2B, the third resource is the second-mode resource of the sidelink, the third resource includes the periodic second time-frequency resource, and duration of the third resource includes time of several SFNs, several subframes, several slots, or several symbols last for by the third resource.

[0189] 8. A periodicity or a time interval of a service transmitted on the first resource.

[0190] Optionally, quality of service (quality of service, QoS) information of the service transmitted on the first resource, and the like are included.

[0191] 9. A periodicity or a time interval of a service transmitted on the third resource.

[0192] Optionally, QoS information of the service transmitted on the third resource, and the like are included.

[0193] 10. A time offset of a time domain position of the third resource relative to the time domain position at which the first terminal device sends the first information.

[0194] For example, as shown in FIG. 2B, the third resource is the second-mode resource of the sidelink, and the third resource includes the periodic second time-frequency resource, information (for example, an offset of several subframes, several slots, or several symbols) about an offset of a start time domain position of the 1 st< second time-frequency resource or a second time-frequency resource in the third resource relative to the time domain position at which the first terminal device sends the first information, information (for example, an offset of several subframes, several slots, or several symbols) about an offset of a center time domain position of the 1 st< second time-frequency resource or the second time-frequency resource relative to the time domain position at which the first terminal device sends the first information, and information (for example, an offset of several subframes, several slots, or several symbols) about an offset of an end time domain position of the 1 st< second time-frequency resource or the second time-frequency resource relative to the time domain position at which the first terminal device sends the first information.

[0195] 11. Priority information of a service or data transmitted on the first resource.

[0196] For example, the priority information may be QoS information, a PPPP (ProSe Per-Packet Priority) value, or the like of the service.

[0197] 12. Priority information of a service or data transmitted on the third resource.

[0198] For example, the priority information may be QoS information, a PPPP value, or the like of the service.

[0199] 13. Priority information of the first resource.

[0200] 14. Priority information of the third resource.

[0201] 15. An indication that a priority of the first resource is lower than a priority of the third resource.

[0202] 16. Information about an overlapping resource in the first resource and the third resource.

[0203] Optionally, the information about the overlapping resource in the first resource and the third resource includes information about time domain in which the first resource overlaps the third resource.

[0204] For example, as shown in FIG. 2B, the first resource is the first-type configured grant resource of the sidelink, and the first resource includes the first time-frequency resource; the third resource is the second-mode resource of the sidelink, and the third resource includes the periodic second time-frequency resource; the first resource periodically overlaps the third resource in time domain, and the information about time domain may carry a time domain position, a time domain length, and the like of the overlapping resource.

[0205] 17. Information about a time domain offset of the first resource relative to the third resource.

[0206] 18. Information about a resource that does not overlap the third resource.

[0207] For example, information about a resource that does not overlap the third resource in time domain is included.

[0208] 19. An indication that the first terminal device requests the second resource from the network device.

[0209] Optionally, the first terminal device may request the second resource from the network device by using the first information, that is, the first information carries the indication for requesting the second resource.

[0210] 20. Information about the second resource.

[0211] Optionally, the information about the second resource includes any one or more of the following content: resource type information of the second resource, time domain information of the second resource, frequency domain information of the second resource, and a periodicity or an interval of the second resource.

[0212] For descriptions of the information about the second resource, refer to descriptions of the information about the first resource and the information about the third resource. Details are not described herein again.

[0213] For example, the resource type information of the second resource includes an indication that the second resource is any one of the following resources: the resource of the sidelink, the first-mode resource of the sidelink, the configured grant resource of the sidelink, the first-type configured grant resource of the sidelink, the second-type configured grant resource of the sidelink, the dynamic grant resource of the sidelink, the resource of the uplink, the configured grant resource of the uplink, the first-type configured grant resource of the uplink, the second-type configured grant resource of the uplink, the dynamic grant resource of the uplink, the resource of the downlink, the semi-persistently allocated resource of the downlink, and the dynamically allocated resource of the downlink.

[0214] For example, the time domain information of the second resource may be a start time domain position and the like of the 1 st< time-frequency resource or a time-frequency resource in the second resource.

[0215] For example, the frequency domain information of the second resource may be a frequency channel number and / or a bandwidth occupied by the second resource.

[0216] For example, the periodicity or the interval of the second resource may be a transmission periodicity or a transmission interval of the second resource, the second resource is the first-type configured grant resource of the sidelink, and a transmission periodicity or a transmission interval of time-frequency resources included in the second resource.

[0217] 21. Information about a time domain offset of the second resource relative to the third resource.

[0218] 22. The information about the time domain offset of the first resource relative to the third resource.

[0219] 23. Resource reservation indication.

[0220] Optionally, the resource reservation indication includes an indication that the first terminal device has resource reservation.

[0221] Optionally, resource reservation means that when selecting an initial transmission resource or requesting an initial transmission resource from a base station, the first terminal device reserves a resource used for retransmission.

[0222] 24. Information about a resource reserved by the first terminal device.

[0223] 25. An indication that the first terminal device may perform retransmission.

[0224] Optionally, the first terminal device performs blind retransmission or hybrid automatic repeat request (hybrid automatic repeat request, HARQ) feedback retransmission.

[0225] Optionally, that the first terminal device performs blind retransmission means that the first terminal device transmits a same data packet or transport block for a plurality of times or continuously transmits a same data packet or transport block for a plurality of times, and the first terminal device does not need to wait for a feedback from a receive end, which may be referred to as repetition.

[0226] Optionally, that the first terminal device performs HARQ feedback retransmission means that the first terminal device waits for a feedback from a receive end after sending data and the terminal device serving as a transmit end performs retransmission if the receive end feeds back a transmission failure.

[0227] 26. A quantity of retransmission times or a maximum quantity of retransmission times.

[0228] Optionally, the first terminal device allows the quantity of retransmission times or the maximum quantity of retransmission times.

[0229] For example, the first terminal device allows a quantity of retransmission times or a maximum quantity of retransmission times of retransmission on the first resource and / or the third resource.

[0230] 27. A time interval between initial transmission and retransmission.

[0231] For example, a time interval between initial transmission and retransmission performed by the first terminal device on the first resource and / or the third resource is included.

[0232] 28. Frequency domain information of the initial transmission and frequency domain information of the retransmission.

[0233] For example, frequency domain information of initial transmission and frequency domain information of retransmission performed by the first terminal device on the first resource and / or the third resource are included.

[0234] 29. A time offset of the time domain position of the first resource relative to the time domain position at which the first terminal device sends the first information.

[0235] For example, as shown in FIG. 2B, the first resource is the second-mode resource of the sidelink, and the first resource includes the periodic first time-frequency resource, information (for example, an offset of several subframes, several slots, or several symbols) about an offset of a start time domain position of the 1 st< first time-frequency resource or a first time-frequency resource in the first resource relative to the time domain position at which the first terminal device sends the first information, information (for example, an offset of several subframes, several slots, or several symbols) about an offset of a center time domain position of the 1 st< first time-frequency resource or the first time-frequency resource relative to the time domain position at which the first terminal device sends the first information, and information (for example, an offset of several subframes, several slots, or several symbols) about an offset of an end time domain position of the 1 st< first time-frequency resource or the first time-frequency resource relative to the time domain position at which the first terminal device sends the first information.

[0236] With reference to FIG. 2C, FIG. 2D, and FIG. 2E, the following separately describes three possible implementations in which the first terminal device releases the first resource. An example in which the first resource is a first-type configured grant resource is used for description, and is also applicable to a scenario in which the first resource is a dynamic grant resource or a second-type configured grant resource. 1. With reference to FIG. 2C, the first resource is the first-type configured grant resource of the sidelink, and the third resource is the second-mode resource of the sidelink. It can be learned from FIG. 2C that the first resource partially overlaps the third resource in time domain, and the first terminal device releases the first-type configured grant resource of the sidelink, that is, as shown in FIG. 2C, releases all resources in a shaded part. 2. With reference to FIG. 2D, the first resource is the first-type configured grant resource of the sidelink, the third resource is the second-mode resource of the sidelink, the first resource partially overlaps the third resource in time domain, and the first terminal device releases a resource in a shaded part shown in FIG. 2D. 3. With reference to FIG. 2E, the first resource is the first-type configured grant resource of the sidelink, and the third resource is the second-mode resource of the sidelink. It can be learned from FIG. 2E that the first resource partially overlaps the third resource in time domain, and the first terminal device releases a resource in an overlapping part of the first resource and the third resource, that is, releases a resource in a shaded part shown in FIG. 2E.

[0237] In this embodiment, a release manner in which the first terminal device releases the first resource may be specified in a communication protocol, or may be indicated by the network device, or may be agreed on by the first terminal device in advance. This is not specifically limited in this application.

[0238] In this embodiment, the first terminal device may alternatively resend indication information to the network device, to request the network device to schedule the second resource for the first terminal device. This is not specifically limited in this application. In this embodiment, an example in which the first information carries an indication that the first terminal device requests the second resource from the network device is merely used for description.

[0239] 202: The first terminal device sends the first information to the network device.

[0240] Optionally, the first terminal device sends the first information to the network device in a plurality of manners. The following provides descriptions by using an example. 1. The first terminal device sends the first information by using physical layer signaling (for example, a physical uplink control channel (physical uplink control channel, PUCCH)).

[0241] Optionally, a resource configuration (for example, a first resource configuration) dedicated to the first information is set, the first resource configuration includes a PUCCH configuration, and the first resource configuration is used to configure a resource for sending the first information.

[0242] Optionally, a plurality of first resource configurations may be set, or only one first resource configuration may be set.

[0243] For example, each resource may be associated with one first resource configuration. For example, any one or more of the following configurations may be used: the resource of the sidelink is associated with one first resource configuration, the first-mode resource of the sidelink is associated with one first resource configuration, the configured grant resource of the sidelink is associated with one first resource configuration, the first-type configured grant resource of the sidelink is associated with one first resource configuration, the second-type configured grant resource of the sidelink is associated with one first resource configuration, the dynamic grant resource of the sidelink is associated with one first resource configuration, the resource of the uplink is associated with one first resource configuration, the configured grant resource of the uplink is associated with one first resource configuration, the first-type configured grant resource of the uplink is associated with one first resource configuration, the second-type configured grant resource of the uplink is associated with one first resource configuration, the dynamic grant resource of the uplink is associated with one first resource configuration, the resource of the downlink is associated with one first resource configuration, the semi-persistently allocated resource of the downlink is associated with one first resource configuration, and the dynamically allocated resource of the downlink is associated with one first resource configuration.

[0244] For example, each configured grant resource, each dynamic grant resource, each semi-persistently allocated resource, or each dynamic allocated resource may be associated with one first resource configuration. For example, a configured grant 1 of the first terminal device is associated with one first resource configuration, and a configured grant 2 of the first terminal device is associated with another first resource configuration.

[0245] Optionally, that the first terminal device sends the first information to the network device includes: The first terminal device sends the first information to the network device based on the first resource configuration corresponding to the first resource.

[0246] For example, reporting of the first information may alternatively be associated with one first resource configuration.

[0247] Optionally, that the first terminal device sends the first information to the network device includes: The first terminal device sends the first information based on the first resource configuration.

[0248] Optionally, the terminal device receives configuration information from the network device, the configuration information includes the first resource configuration, and the configuration information is used to configure the resource for sending the first information.

[0249] Optionally, the first resource configuration may be preconfigured. For example, the first resource configuration is specified in a protocol. Alternatively, a device vendor may store the first resource configuration in a terminal device or a network device before delivery of the terminal device or the network device. Alternatively, another network device preconfigures the first resource configuration to a terminal device or a network device when the terminal device or the network device is connected to a network.

[0250] Optionally, the physical layer signaling may be existing physical layer signaling, for example, a scheduling request (scheduling request, SR), a HARQ, a positive acknowledgment (positive acknowledgment, ACK), or a negative acknowledgment (negative acknowledgment, NACK). The physical layer signaling may alternatively be separately defined.

[0251] Optionally, the first resource configuration may be an SR configuration or a HARQ resource configuration.

[0252] 2. The first terminal device sends the first information by using RRC signaling. a. The RRC signaling may be existing RRC signaling, for example, UE assistance information (UE Assistance Information, UAI) or sidelink UE information (Sidelink UE information, SUI). b. Separately defined RRC signaling is used to report the first information.

[0253] 3. The first terminal device sends the first information by using MAC signaling.

[0254] Optionally, the MAC signaling may be an existing MAC CE, for example, a buffer status report (buffer status report, BSR) or a configured grant confirmation MAC CE. A separate MAC CE format may alternatively be defined.

[0255] Optionally, the MAC CE may be identified by using different logical channel identifiers (logical channel identifiers, LCIDs).

[0256] For example, as shown in FIG. 2F, the MAC CE may include an indication that the first terminal device releases the first resource, information about the first resource, and an indication that the first terminal device requests the second resource from the network device. A field 1 is the indication that the first terminal device releases the first resource, and may occupy 1 bit. When the field is 1, it indicates that the first terminal device releases the first resource. The information about the first resource may include resource type information of the first resource and is a third field, and the field may occupy 4 bits. A correspondence between a field value and a resource type of the first resource is that shown in the following Table 1. A field 2 is the indication that the first terminal device requests the second resource from the network device, and may occupy 1 bit. When the field is 1, it indicates that the first terminal device requests the second resource from the network device. A quantity of bits occupied by each field is not limited. A reserved bit R is padded with 0. A size of the MAC CE may be fixed or variable. FIG. 2F is merely an example, and does not limit this application. Table 1 Correspondence between a field value and a resource type of a first resource ValueResource type of a first resource0Resource of a sidelink1First-mode resource of the sidelink2Configured grant resource of the sidelink3First-type configured grant resource of the sidelink4Second-type configured grant resource of the sidelink5Dynamic grant resources of the sidelink6Resource of an uplink7Configured grant resource of the uplink8First-type configured grant resource of the uplink9Second-type configured grant resource of the uplink10Dynamic grant resource of the uplink11Resource of the downlink12Semi-persistently allocated resource of the downlink13Dynamically allocated resource of the downlink......

[0257] Optionally, that the first terminal device sends the first information to the network device includes: The first terminal device sends the first information to the network device when a first condition is met.

[0258] It should be noted that generating the first information may be that the first terminal device generates the first information in advance before the first terminal device determines that the first condition is met, or may be that the first terminal device generates the first information after the first terminal device determines that the first condition is met, and sends the first information to the network device. This is not specifically limited in this application, and this application is applicable to both cases. Therefore, when the first condition is met, the first terminal device may generate the first information, and then send the first information to the network device, or may directly send the first information. Therefore, the first information is generated in advance before the first condition is met.

[0259] The first condition may include any one or more of the following content: 1. The first resource overlaps the third resource in time domain.

[0260] Optionally, that the first resource overlaps the second resource in time domain includes the following two possible implementations: a. The first resource periodically overlaps the third resource in time domain. For example, as shown in FIG. 2B, the first resource is the configured grant resource of the sidelink, the third resource is the second-mode resource of the sidelink, and the third resource includes the second time-frequency resource for periodic transmission. The first resource periodically overlaps the third resource, and an overlapping periodicity is 20 ms. b. The first resource overlaps the third resource for N times in time domain, where N is an integer greater than 0.

[0261] For example, as shown in FIG. 2G, the first resource is the dynamic grant resource of the sidelink, and the third resource is the second-mode resource of the sidelink. The first resource overlaps the third resource once.

[0262] Optionally, the terminal device receives a configuration from the network device, where the configuration includes a value or a value range of N.

[0263] Optionally, N may be preconfigured. For example, N is specified in a protocol, or the device vendor may store N in the terminal device or the network device before delivery of the terminal device or the network device, or the another network device may preconfigure N in the terminal device or the network device when the terminal device or the network device is connected to the network.

[0264] 2. The first resource is to overlap the third resource in time domain.

[0265] For example, after the terminal device obtains the first resource and / or the third resource, the terminal device can determine whether the first resource is to overlap the third resource. If the terminal device determines that the first resource is to overlap the third resource in time domain, the terminal device may determine a to-be-released resource in advance. The terminal device may notify the network device that the network may schedule the released first resource to the another terminal device for use or notify another terminal device that the another terminal device may select, contend for, or sense, and / or reserve the released resource, to improve resource utilization.

[0266] Optionally, that the first resource is to overlap the second resource in time domain includes the following two possible implementations: a. The first resource is to periodically overlap the third resource in time domain. For example, as shown in FIG. 2B, the first resource is the configured grant resource of the sidelink, the third resource is the second-mode resource of the sidelink, and the third resource includes the second time-frequency resource for periodic transmission. After the terminal device obtains the first resource and / or the third resource, the terminal device can determine whether the first resource is to overlap the third resource, and the terminal device determines that the first resource is to periodically overlap the third resource in time domain. If the terminal device determines that a priority of the first resource is lower than that of the third resource, the terminal device may release the first resource in advance, and the terminal device may send the first information to the network device. The network device may schedule the released first resource to the another terminal device for use, to improve resource utilization. b. The first resource is to overlap the third resource for N times in time domain, where N is an integer greater than 0.

[0267] For example, as shown in FIG. 2G, the first resource is the dynamic grant resource of the sidelink, and the third resource is the second-mode resource of the sidelink. After the terminal device obtains the first resource and / or the third resource, the terminal device can determine whether the first resource is to overlap the third resource, and the terminal device determines that the first resource is to overlap the third resource once. If the terminal device determines that a priority of the first resource is lower than that of the third resource, the terminal device may release the first resource in advance, and the terminal device may send the first information to the network device. The network device may schedule the released first resource to the another terminal device for use, to improve resource utilization.

[0268] 3. The third resource overrides the first resource or the first resource overrides the third resource.

[0269] Optionally, that the third resource overrides the first resource or the first resource overrides the third resource includes the following two possible implementations: a. The third resource periodically overrides the first resource or the first resource periodically overrides the third resource.

[0270] For example, as shown in 2B, the first resource is the configured grant resource of the sidelink, the third resource is the second-mode resource of the sidelink, and the third resource includes the second time-frequency resource for periodic transmission. The first resource periodically overlaps the third resource. If the third resource has priority over the first resource, that is, the first terminal device periodically overrides the first resource by using the third resource. Coverage may be understood as that the third resource has priority over the first resource and the first terminal device may replace the first resource with the third resource. When the first terminal device needs to simultaneously perform transmission in the first mode and the second mode, the first terminal device preferentially selects to perform transmission on the third resource instead of the first resource.

[0271] For example, as shown in FIG. 2H, the first resource is the configured grant resource of the sidelink, the first resource includes the first time-frequency resource for periodic transmission, the third resource is the second-mode resource of the sidelink, and the third resource includes the second time-frequency resource for periodic transmission. If the first terminal device periodically overrides the first three first time-frequency resources in the first resource by using the first three second time-frequency resources in the third resource, the first terminal device may determine that the first resource is to still periodically overlap the third resource subsequently, and the first terminal device may perform reporting on the network device and release the first resource. In addition, the terminal device may send the first information to the network device, and the network device may schedule the released first resource to the another terminal device for use, to improve resource utilization.

[0272] b. The third resource overrides the first resource for N times or the first resource overrides the third resource for N times, where N is an integer greater than 0.

[0273] For example, as shown in FIG. 2H, the first resource is the configured grant resource of the sidelink, the first resource includes the first time-frequency resource for periodic transmission, the third resource is the second-mode resource of the sidelink, and the third resource includes the second time-frequency resource for periodic transmission. If the first terminal device overrides the first three first time-frequency resources in the first resource by using the first three second time-frequency resources in the third resource, the first terminal device may determine that the third resource overrides the first resource for three times. In this case, the first terminal device may report the first information to the network device. Then, the first terminal device may release the first resource, so that the network device may schedule the first resource to the another terminal device for use.

[0274] 4. The third resource is to override the first resource or the first resource is to override the third resource.

[0275] For example, after the terminal device obtains the first resource and / or the third resource, the terminal device can determine whether the third resource is to override the first resource or the first resource is to override the third resource. If the terminal device determines that the third resource is to override the first resource or the first resource is to override the third resource, the terminal device may determine a to-be-released resource in advance. The terminal device may notify the network device that the network may schedule the released resource to the another terminal device for use or notify the another terminal device that the another terminal device may select, contend for, or sense, and / or reserve the released resource, to improve resource utilization.

[0276] Optionally, that the third resource is to override the first resource or the first resource is to override the third resource includes the following two possible implementations: a. The third resource is to periodically override the first resource or the first resource is to periodically override the third resource.

[0277] For example, as shown in FIG. 2B, the first resource is the configured grant resource of the sidelink, the first resource includes the first time-frequency resource for periodic transmission, the third resource is the second-mode resource of the sidelink, and the third resource includes the second time-frequency resource for periodic transmission. After the terminal device obtains the first resource and / or the third resource, the terminal device can determine whether the third resource is to periodically override the first resource or the first resource is to periodically override the third resource, and the terminal device determines that the third resource is to periodically override the first resource or the first resource is to periodically override the third resource. If the terminal device determines that a priority of the first resource is lower than that of the third resource, the terminal device may release the first resource in advance, and the terminal device may send the first information to the network device. The network device may schedule the released first resource to the another terminal device for use, to improve resource utilization.

[0278] For example, as shown in FIG. 2H, the first resource is the configured grant resource of the sidelink, the first resource includes the first time-frequency resource for periodic transmission, the third resource is the second-mode resource of the sidelink, and the third resource includes the second time-frequency resource for periodic transmission. If the first terminal device periodically overrides the first three first time-frequency resources in the first resource by using the first three second time-frequency resources in the third resource, and as shown in FIG. 2H, a shaded part is the to-be-overridden first three first time-frequency resources in the first resource, the first terminal device may determine that the first resource is to still periodically overlap the third resource subsequently. In this case, the terminal device may release the first resource in advance, and the terminal device may send the first information to the network device. The network device may schedule the released first resource to the another terminal device for use, to improve resource utilization.

[0279] b. The third resource is to override the first resource for N times or the first resource is to override the third resource for N times, where N is an integer greater than 0.

[0280] For example, as shown in FIG. 2I, the first resource is the configured grant resource of the sidelink, the first resource includes the first time-frequency resource for periodic transmission, the third resource is the second-mode resource of the sidelink, and the third resource includes the second time-frequency resource for periodic transmission. After the terminal device obtains the first resource and / or the third resource, the terminal device can determine whether the third resource is to override the first resource for N times or the first resource is to override the third resource for N times. If the first terminal device determines that the third resource is to override the first resource for four times, the terminal device may release the first resource, and the terminal device may send the first information to the network device. The network device may schedule the released first resource to the another terminal device for use, to improve resource utilization.

[0281] 5. First duration is greater than or equal to a first threshold.

[0282] Optionally, the first duration is a time difference between a time domain position of the first resource and a moment at which the first terminal device determines to release the first resource, or is a time difference between a time domain position of the first resource and a time domain position at which the first terminal device sends the first information.

[0283] Optionally, the time domain position of the first resource includes a start time domain position of the first resource.

[0284] Optionally, the first duration is a time difference between the start time domain position of the first resource and the moment at which the first terminal device releases the first resource, or is a time difference between the start time domain position of the first resource and the time domain position at which the first terminal device sends the first information.

[0285] Optionally, the start time domain position of the first resource includes a start time domain position of the released first resource, a start time domain position of the 1 st< time-frequency resource of the released first resource, a time domain position of the released first resource, or a time domain position of the 1 st< time-frequency resource of the released first resource.

[0286] For example, as shown in FIG. 2J, the first resource is the configured grant resource of the sidelink, the first resource includes the first time-frequency resource for periodic transmission, the third resource is the second-mode resource of the sidelink, and the third resource includes the second time-frequency resource for periodic transmission. A start time domain position of the released first resource is m, and a moment at which the first terminal device releases the first resource is n. In this case, a time difference between the two moments is the first duration. To be specific, if there is a long time between the moment at which the first terminal device releases the first resource and the start time domain position of the released first resource, that is, the first duration is greater than the first threshold. In this case, the first terminal device may report the first information to the network device, and the network device still has time to schedule the released first resource to the another terminal device for use, to improve resource utilization.

[0287] The first threshold may be preconfigured, configured by the network device for the first terminal device, specified in a communication protocol, determined by the network device according to a specific rule and notified to the first terminal device, or defined at delivery of the first terminal device. This is not specifically limited in this application.

[0288] 6. The first resource includes a dedicated resource of the first terminal device.

[0289] Optionally, the dedicated resource of the first terminal device includes any one or more of the following content: the dynamic grant resource of the sidelink, the second-type configured grant resource of the sidelink, the dynamic grant resource of the uplink, the second-type configured grant resource of the uplink, the resource of the downlink, the semi-persistently allocated resource of the downlink, and the dynamic allocated resource of the downlink.

[0290] For example, as shown in FIG. 2E, the first terminal device may determine, based on a type of the first resource, whether to report the first information. If the first resource is the second-type configured grant resource of the sidelink, the first resource is allocated by the network device and dedicated to the first terminal device. If the first terminal device releases the first resource, the first terminal device does not use the first resource, and the another terminal device does not use the first resource, the first resource is wasted. Therefore, when the first resource is the dedicated resource of the first terminal device, the first terminal device may report the first information to the network device, and the network device may allocate the first resource to the another terminal device for use, to improve resource utilization.

[0291] The first terminal device releases the first resource. When the first resource is a specific resource (for example, a specific resource type), the first terminal device needs to report release information to the network device. This may be preconfigured, configured by the network device for the first terminal device, specified in a communication protocol, determined by the first terminal device according to a preset rule, or defined at delivery of the first terminal device. This is not specifically limited in this application.

[0292] 7. The first resource includes a periodic time-frequency resource.

[0293] Optionally, the first resource includes any one or more of the following content: the configured grant resource of the sidelink, the first-type configured grant resource of the sidelink, the second-type configured grant resource of the sidelink, the configured grant resource of the uplink, the first-type configured grant resource of the uplink, the second-type configured grant resource of the uplink, and the semi-persistently allocated resource of the downlink.

[0294] For example, as shown in FIG. 2B, the first resource is the configured grant resource of the sidelink, the first resource includes the first time-frequency resource for periodic transmission, the third resource is the second-mode resource of the sidelink, and the third resource includes the second time-frequency resource for periodic transmission. If the first terminal device releases the first resource, the first terminal device does not use the first resource, and the another terminal device does not use the first resource, the first resource is wasted. Therefore, when the first resource is the periodic time-frequency resource, the first terminal device may report the first information to the network device, and the network device may allocate the first resource to the another terminal device for use, to improve resource utilization.

[0295] 8. The first terminal device has a resource of the uplink.

[0296] Optionally, that the first terminal device has a resource of the uplink includes that the first terminal device has an uplink resource that can accommodate the first information.

[0297] In this embodiment, the first terminal device may further send second information to a third terminal device, where the second information is used to indicate that the first terminal device releases the first resource and / or indicate the first resource released by the first terminal device.

[0298] Optionally, that the first terminal device sends second information to a third terminal device includes: The first terminal device sends the second information to the third terminal device when the first condition is met.

[0299] Optionally, the second information may include any one or more types of content of the first information. For example, the second information may carry the information about the first resource and the time information of releasing the first resource by the first terminal device in the first information, and the like.

[0300] Optionally, a manner in which the first terminal device sends the second information to the third terminal device is similar to the manner in which the first terminal device sends the first information to the network device in FIG. 2A (by using RRC signaling, MAC signaling, and physical layer signaling). For details, refer to the related descriptions in step 202 shown in FIG. 2A. In addition, the first terminal device may further send the second information to the third terminal device by using SCI, so that the third terminal device determines, by using the SCI, the first resource that has been released or is to be released by the first terminal device.

[0301] For example, the third terminal device is a general terminal device, and may be any terminal device other than the first terminal device.

[0302] In this embodiment, before the first terminal device sends the first information to the network device or the first terminal device sends the second information to the third terminal device, the first terminal device may determine to release the first resource. For a specific determining manner, refer to the embodiment shown in FIG. 2K. The method includes the following steps.

[0303] 203: The first terminal device determines that the priority of the first resource is lower than the priority of the third resource when a second condition is met.

[0304] The second condition includes any one or more of the following content: 1. A priority of sidelink transmission for the first mode is lower than a priority of sidelink transmission for the second mode.

[0305] A priority of performing transmission by the first terminal device in a first mode for the sidelink is lower than a priority of performing transmission by the first terminal device in a second mode for the sidelink.

[0306] Optionally, the first-mode resource of the sidelink includes any one or more of the following content: the configured grant resource of the sidelink, the first-type configured grant resource of the sidelink, the second-type configured grant resource of the sidelink, and the dynamic grant resource of the sidelink.

[0307] For example, the priority or priority information may include QoS information, a PPPP value, a priority of a logical channel in a MAC PDU, a priority of a logical channel with a highest priority in the MAC PDU, a priority of a logical channel allowed a resource (for example, a grant, grant), a highest priority of a logical channel allowed on the resource (for example, the grant, grant), or the like.

[0308] 2. A priority of uplink transmission is lower than the priority of the sidelink transmission for the second mode.

[0309] A priority of performing transmission by the first terminal device through the uplink is lower than a priority of performing transmission by the first terminal device in the second mode.

[0310] 3. A priority of downlink transmission is lower than the priority of the sidelink transmission for the second mode.

[0311] A priority of performing transmission by the first terminal device through the downlink is lower than a priority of using the second mode for the sidelink by the first terminal device.

[0312] 4. A priority of the service or the data transmitted on the first resource is lower than a priority of the service or the data transmitted on the third resource.

[0313] 5. The priority information of the service or the data transmitted on the first resource is greater than or equal to or is less than or equal to a second threshold.

[0314] 6. The priority information of the service or the data transmitted on the third resource is greater than or equal to or is less than or equal to a third threshold.

[0315] 7. A measurement result for the first mode of the sidelink is lower than a measurement result for the second mode of the sidelink.

[0316] For example, the measurement result may be a channel busy ratio (channel busy ratio, CBR) measurement value, a physical sidelink shared-reference signal received power (physical sidelink share channelreference signal received power, PSSCH-RSRP) value, a sidelink received signal strength indicator (Sidelink-Received signal strength indication, S-RSSI) value, or the like. A channel quality value of a channel used when the first terminal device performs transmission in the first mode for the sidelink is lower than a channel quality value of a channel used when the first terminal device performs transmission in the second mode for the sidelink.

[0317] 8. A measurement result of the uplink is lower than the measurement result for the second mode of the sidelink.

[0318] 9. A measurement result of the downlink is lower than the measurement result for the second mode of the sidelink.

[0319] 10. The measurement result for the first mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold.

[0320] For example, the measurement result for the first mode of the sidelink may be a CBR measurement value, a PSSCH-RSRP value, an S-RSSI value, or the like, and the measurement result for the first mode is compared with the fourth threshold to determine whether a transmission priority of the first resource is lower than a transmission priority of the third resource.

[0321] 11. The measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold.

[0322] 12. The measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold.

[0323] 13. The measurement result for the second mode of the sidelink is greater than or equal to or is less than or equal to a fifth threshold.

[0324] 14. Priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold.

[0325] 15. Priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold.

[0326] 16. Priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold.

[0327] 17. Priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold.

[0328] For example, a channel quality value corresponding to a channel used when the first terminal device performs transmission in the second mode may be a CBR measurement value, a PSSCH-RSRP value, an S-RSSI value, or the like, and the channel quality value of the channel is compared with the fifth threshold to determine whether a transmission priority of the first resource is lower than a transmission priority of the third resource.

[0329] 18. A measurement result of the first resource is lower than a measurement result of the third resource.

[0330] 19. The measurement result of the first resource is greater than or equal to or is less than or equal to the fourth threshold.

[0331] 20. The measurement result of the third resource is greater than or equal to or is less than or equal to the fifth threshold.

[0332] 21. The first resource includes a resource shared by the first terminal device and another terminal device and the first resource is not to be used.

[0333] Optionally, the resource shared by the first terminal device and the another terminal device includes a first-type configured grant resource of the sidelink and / or a first-type configured grant resource of the uplink.

[0334] Optionally, measurement results or priority information of different links are / is compared with a specified threshold. For the different links, specified thresholds may be the same or may be different. This is not specifically limited. The foregoing 11 to 17 are merely examples, and do not limit this application.

[0335] Optionally, the second threshold, the third threshold, the fourth threshold, the fifth threshold, and the sixth threshold may be preconfigured, configured by the network device for the first terminal device, specified in a communication protocol, determined by the network device according to a specific rule and notified to the first terminal device, or defined at delivery of the first terminal device. This is not specifically limited in this application.

[0336] Optionally, the first-type configured grant resource (that is, a type1 CG resource) of the sidelink is a resource allocated by the network device to a plurality of terminal devices for sharing, and is not a dedicated resource allocated by the network device to the first terminal device. Therefore, if a plurality of terminal devices simultaneously perform sending on a same first-type configured grant resource, mutual interference may occur during transmission between the plurality of terminal devices, and transmission quality of each terminal device cannot be ensured. However, the second-mode resource of the sidelink is obtained by the terminal device through contention, selection, or sensing and is also shared by a plurality of terminal devices, and transmission quality cannot be ensured. Therefore, a transmission priority of the first-type configured grant resource of the sidelink and a transmission priority of the second-mode resource of the sidelink may be determined based on whether the first-type configured grant resource of the sidelink is to be used. If the terminal device is to send data on the first-type configured grant resource of the sidelink, the transmission priority of the first-type configured grant resource of the sidelink is higher than the transmission priority of the second-mode resource of the sidelink. If the terminal device is not to send data on the first-type configured grant resource of the sidelink, the transmission priority of the first-type configured grant resource is lower than the transmission priority of the second-mode resource of the sidelink, that is, the transmission priority of the first resource is lower than the transmission priority of the third resource.

[0337] 22. A start time domain position of the first resource is after or before a start time domain position of the third resource.

[0338] For example, as shown in FIG. 2L, the first resource is the first-type configured grant resource of the sidelink, and the third resource is the second-mode resource of the sidelink. It can be learned from FIG. 2L that the start time domain position of the first-type configured grant resource of the sidelink is after the start time domain position of the second-mode resource of the sidelink. Therefore, the transmission priority of the first-type configured grant resource of the sidelink is lower than the transmission priority of the second-mode resource of the sidelink.

[0339] 23. The first resource includes a periodic first time-frequency resource, the second resource includes a periodic second time-frequency resource, and a periodicity of the first time-frequency resource is greater than or less than a periodicity of the second time-frequency resource.

[0340] For example, as shown in FIG. 2M, the first resource is the second-type configured grant resource of the sidelink, the second-type configured grant resource includes the periodic first time-frequency resource, the third resource is the second-mode resource of the sidelink, and the second-mode resource of the sidelink includes the periodic second time-frequency resource grant. It can be learned from FIG. 2M that the periodicity of the first time-frequency resource is greater than the periodicity of the second time-frequency resource, and in this case, the priority of the first resource is lower than the priority of the second resource.

[0341] 24. The first resource includes the periodic first time-frequency resource, the third resource includes the periodic second time-frequency resource, and a time interval between two adjacent first time-frequency resources is greater than or less than a time interval between two adjacent second time-frequency resources.

[0342] For example, as shown in FIG. 2N, the first resource is the second-type configured grant resource of the sidelink, the second-type configured grant resource of the sidelink includes the periodic first time-frequency resource, the third resource is the second-mode resource of the sidelink, and the second-mode resource of the sidelink includes the periodic second time-frequency resource grant. It can be learned from FIG. 2N that the time interval between the two adjacent first time-frequency resources is greater than the time interval between the two adjacent second time-frequency resource grants, and in this case, the priority of the first resource is lower than the priority of the third resource.

[0343] 25. A size of the first resource is less than or greater than a size of the third resource.

[0344] Optionally, the first resource includes a first time-frequency resource, the third resource includes a second time-frequency resource, and a size of the first time-frequency resource is less than or greater than a size of the second time-frequency resource.

[0345] For example, as shown in FIG. 2O, the first resource is the configured grant resource of the sidelink, the configured grant resource of the sidelink includes the periodic first time-frequency resource, the third resource is the second-mode resource of the sidelink, and the second-mode resource of the sidelink includes the periodic second time-frequency resource grant. A size of the second time-frequency resource grant is greater than a size of the first time-frequency resource grant. Therefore, the priority of the second-mode resource is higher than that of the first-mode resource.

[0346] Optionally, the size of the time-frequency resource includes a time domain length of the time-frequency resource or a quantity of bits that can be accommodated in the time-frequency resource.

[0347] 26. A proportion of an overlapping resource in the first resource to the first resource is greater than or less than a proportion of an overlapping resource in the third resource to the third resource.

[0348] Optionally, the first resource includes the first time-frequency resource for periodic transmission, the third resource includes the second time-frequency resource for periodic transmission, the first time-frequency resource overlaps the second time-frequency resource in time domain, and a proportion of an overlapping resource to the first time-frequency resource is greater than a proportion of an overlapping resource to the second time-frequency resource.

[0349] For example, as shown in FIG. 2P, the first resource is the configured grant resource of the sidelink, the third resource is the second-mode resource of the sidelink, a proportion of an overlapping resource in the first resource to the first resource is 50%, a proportion of an overlapping resource in the third resource to the third resource is 100%, and the proportion of the overlapping resource in the first resource to the first resource is less than the proportion of the overlapping resource in the third resource to the third resource. Therefore, the priority of the second-mode resource is higher than that of the first-mode resource.

[0350] For example, as shown in FIG. 2Q, the first resource is the first-mode resource of the sidelink, the resource of the uplink is a resource that is scheduled by the network device for the first terminal device and that is used for uplink transmission, and the third resource is the second-mode resource of the sidelink. A proportion of an overlapping resource in the first resource to the first resource is 100%, a proportion of an overlapping resource in the third resource to the third resource is 75%, and the proportion of the overlapping resource in the first resource to the first resource is greater than the proportion of the overlapping resource in the third resource to the third resource. Therefore, the priority of the third resource is higher than the priority of the first resource.

[0351] 27. The priority of the first resource is lower than the priority of the third resource.

[0352] 204: The first terminal device determines to release the first resource.

[0353] Optionally, the first terminal device determines to release the first resource whose priority is lower than that of the third resource.

[0354] It should be noted that, in this embodiment, the rule used to determine that the priority of the first resource is lower than the priority of the third resource in the second condition may be separately applied to a scenario in which the first terminal device needs to determine a priority of a resource, or may be applied to another scenario in which a priority of a resource needs to be determined and then corresponding processing is performed. This is not specifically limited in this application.

[0355] In this embodiment of this application, the first terminal device generates the first information. Then, the first terminal device sends the first information to the network device, where the first information is used to indicate any one or more of the following content: information indicating that the first terminal device releases the first resource; the first resource released by the first terminal device; and information indicating that the first terminal device requests the second resource from the network device. Therefore, when the first terminal device determines to release the first resource, the first terminal device may send the first information to the network device, so that the network device determines the first resource released by the first terminal device. In this way, the network device may allocate the first resource to another terminal device, to improve resource utilization.

[0356] In this embodiment of this application, the first terminal device sends the second information to the third terminal device, where the second information is used to indicate that the first terminal device releases the first resource and / or indicate the first resource released by the first terminal device. Therefore, when the first terminal device determines to release the first resource, the first terminal device may send the second information to the third terminal device, so that the third terminal device determines the first resource released by the first terminal device. In this way, the third terminal device may select, contend for, or sense, and / or reserve the first resource, to improve resource utilization.

[0357] FIG. 3A is a schematic diagram of another embodiment of a communication processing method according to an embodiment of this application. As shown in FIG. 3A, the method includes the following steps.

[0358] 301: A first terminal device reselects a fourth resource when a third condition is met.

[0359] The fourth resource includes a second-mode resource of a sidelink, and the second-mode resource of the sidelink includes a sidelink resource selected, contended for, or sensed by the terminal device and / or a sidelink resource reserved by the terminal device.

[0360] The sidelink is a wireless direct communication link between the first terminal device and a second terminal device.

[0361] Optionally, this embodiment is applied to a scenario in which a fifth resource overlaps a sixth resource in time domain, where the fifth resource includes any one or more of a first-mode resource of the sidelink, a second-mode resource of the sidelink, a resource of an uplink, and a resource of a downlink, and the sixth resource is a second-mode resource of the sidelink.

[0362] For example, as shown in FIG. 3B, the fifth resource is a second-type configured grant resource of the sidelink, and the sixth resource is a second-mode resource of the sidelink. It can be learned from FIG. 3B that the fifth resource overlaps the sixth resource.

[0363] For another example, as shown in FIG. 3B, the fifth resource is a second-mode resource of the sidelink, and the sixth resource is a second-mode resource of the sidelink. In other words, the second-mode resources of the sidelink that are obtained by the first terminal device include the fifth resource and the sixth resource. It can be learned from FIG. 3B that the fifth resource overlaps the sixth resource.

[0364] The third condition includes any one or more of the following: 1. The fifth resource overlaps the sixth resource in time domain. a. The fifth resource periodically overlaps the sixth resource in time domain. b. The fifth resource overlaps the sixth resource for N times in time domain, where N is an integer greater than 0. 2. The fifth resource is to overlap the sixth resource in time domain. a. The fifth resource is to periodically overlap the sixth resource in time domain. b. The fifth resource is to overlap the sixth resource for N times in time domain, where N is an integer greater than 0. 3. The sixth resource overrides the fifth resource or the fifth resource overrides the sixth resource. a. The sixth resource periodically overrides the fifth resource or the fifth resource periodically overrides the sixth resource. b. The sixth resource overrides the fifth resource for N times or the fifth resource overrides the sixth resource for N times, where N is an integer greater than 0. 4. The sixth resource is to override the fifth resource or the fifth resource is to override the sixth resource. a. The sixth resource is to periodically override the fifth resource or the fifth resource is to periodically override the sixth resource. b. The sixth resource is to override the fifth resource for N times or the fifth resource is to override the sixth resource for N times, where N is an integer greater than 0. 5. Second duration is greater than or equal to a seventh threshold.

[0365] Optionally, the seventh threshold may be preconfigured, configured by a network device for the first terminal device, specified in a communication protocol, determined by the network device according to a specific rule and notified to the first terminal device, or defined at delivery of the first terminal device. This is not specifically limited in this application.

[0366] Optionally, the second duration is a time difference between a time domain position of the sixth resource and a moment at which the first terminal device releases the sixth resource, or is a time difference between a time domain position of the sixth resource and a time domain position at which the first terminal device sends third information.

[0367] 6. The sixth resource includes a periodic time-frequency resource.

[0368] The foregoing conditions are similar to the first five conditions and the seventh possible condition included in the first condition in the embodiment shown in FIG. 2A. For details, refer to the related descriptions of the first condition in the embodiment shown in FIG. 2A. Details are not described herein again.

[0369] Optionally, this embodiment further includes step 302. Step 302 is: The first terminal device sends the third information to a third terminal device.

[0370] The third information is used to indicate that the first terminal device releases the sixth resource and / or indicate the sixth resource released by the first terminal device. For example, the third terminal device is a general terminal device, and may be any terminal device other than the first terminal device.

[0371] The third information includes any one or more of the following content: 1. An indication that the first terminal device releases the sixth resource, where the sixth resource is the second-mode resource of the sidelink. 2. Information about the sixth resource.

[0372] Optionally, the information about the sixth resource includes any one or more of the following content: resource type information of the sixth resource, time domain information of the sixth resource, frequency domain information of the sixth resource, a periodicity or an interval of the sixth resource, and duration of the sixth resource.

[0373] Optionally, the time domain information of the sixth resource includes time domain position information of the sixth resource and / or time domain length information of the sixth resource.

[0374] Optionally, the frequency domain information of the sixth resource includes frequency domain position information of the sixth resource and / or frequency domain bandwidth information of the sixth resource.

[0375] 3. Time information of releasing the sixth resource by the first terminal device.

[0376] Optionally, the time information includes any one or more of the following content: time at which the first terminal device releases the sixth resource, information about releasing the 1 st< time-frequency resource of the sixth resource by the first terminal device, and a time interval between the time at which the first terminal device releases the sixth resource and a moment at which the first terminal device sends the third information.

[0377] Optionally, the time at which the first terminal device releases the sixth resource includes time domain information of releasing the 1 st< time-frequency resource of the sixth resource by the first terminal device and / or frequency domain information of releasing the 1 st< time-frequency resource of the sixth resource by the first terminal device.

[0378] 4. An indication that the first terminal device senses, selects, or obtains, through contention, the sixth resource.

[0379] 5. An indication that the first terminal device reserves the sixth resource.

[0380] 6. An indication that the fifth resource overlaps the sixth resource in time domain.

[0381] The fifth resource includes any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink.

[0382] 7. Information about the fifth resource.

[0383] Optionally, the information about the sixth resource includes any one or more of the following content: resource type information of the fifth resource, time domain information of the fifth resource, frequency domain information of the fifth resource, a periodicity or a time interval of the fifth resource, and duration of the fifth resource.

[0384] Optionally, the time domain information of the fifth resource includes time domain length information of the fifth resource and / or time domain position information of the fifth resource.

[0385] Optionally, the frequency domain information of the fifth resource includes frequency domain bandwidth information of the fifth resource and / or frequency domain position information of the fifth resource.

[0386] 8. A periodicity or a time interval of a service transmitted on the fifth resource.

[0387] 9. A periodicity or a time interval of a service transmitted on the sixth resource.

[0388] 10. A time offset of a time domain position of the fifth resource relative to a time domain position at which the first terminal device sends the third information.

[0389] 11. Priority information of a service or data transmitted on the fifth resource.

[0390] 12. Priority information of a service or data transmitted on the sixth resource.

[0391] 13. Priority information of the fifth resource.

[0392] 14. Priority information of the sixth resource.

[0393] 15. An indication that a priority of the sixth resource is lower than a priority of the fifth resource.

[0394] 16. Information of the fifth resource overlapping the sixth resource.

[0395] 17. Information about a time domain offset of the sixth resource relative to the fifth resource.

[0396] 18. Information about a resource that does not overlap the fifth resource.

[0397] 19. An indication that the first terminal device has resource reservation.

[0398] 20. Information about a resource reserved by the first terminal device.

[0399] 21. An indication that the first terminal device may perform retransmission.

[0400] 22. A maximum quantity of retransmission times of the first terminal device.

[0401] 23. A time interval between initial transmission and retransmission of the first terminal device.

[0402] 24. Frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

[0403] 25. A time offset of a time domain position of the sixth resource relative to the time domain position at which the first terminal device sends the third information.

[0404] Content carried in the third information is similar to content carried in the first information in the embodiment shown in FIG. 2A. For a specific example, refer to the descriptions of the first information in the embodiment shown in FIG. 2A. Details are not described herein again.

[0405] Optionally, in this embodiment, the first terminal device may send the third information to the third terminal device in a plurality of manners. The following provides an example for description. 1. The first terminal device sends the third information to the third terminal device by using physical layer signaling. 2. The first terminal device sends the third information to the third terminal device by using RRC signaling. 3. The first terminal device sends the third information to the third terminal device by using MAC signaling.

[0406] The foregoing three manners are similar to the manner in which the first terminal device sends the first information to the network device in step 202 shown in FIG. 2A. For details, refer to the related descriptions in step 202 shown in FIG. 2A.

[0407] 4. The first terminal device may send the third information to the third terminal device by using SCI.

[0408] Optionally, after receiving the third information, the third terminal device may determine any one or more of the following content: information indicating that the third terminal device may determine that the first terminal device releases the sixth resource, the sixth resource released by the first terminal device, and information indicating that the third terminal device determines time for the first terminal device to release the sixth resource. In this way, the third terminal device may select the sixth resource for transmission, to improve resource utilization.

[0409] In this embodiment, before, when, or after the first terminal device reselects the fourth resource, the first terminal device may determine to release the sixth resource. A specific determining manner is described by using the embodiment shown in FIG. 3C. As shown in FIG. 3C, the method includes the following steps.

[0410] 303: The first terminal device determines that the priority of the sixth resource is lower than the priority of the fifth resource when a fourth condition is met.

[0411] The fourth condition includes any one or more of the following content: 1. A priority of sidelink transmission for the first mode is higher than a priority of sidelink transmission for the second mode. 2. A priority of uplink transmission is higher than the priority of the sidelink transmission for the second mode. 3. A priority of downlink transmission is higher than the priority of the sidelink transmission for the second mode. 4. A priority of a service or data transmitted on the fifth resource is higher than a priority of a service transmitted on the sixth resource. 5. Priority information of the service or the data transmitted on the fifth resource is greater than or equal to or is less than or equal to a second threshold. 6. Priority information of the service or the data transmitted on the sixth resource is greater than or equal to or is less than or equal to a third threshold. 7. A priority of the fifth resource is higher than a priority of the sixth resource. 8. A measurement result for the first mode of the sidelink is higher than a measurement result for the second mode of the sidelink. 9. A measurement result of the uplink is higher than the measurement result for the second mode of the sidelink. 10. A measurement result of the downlink is higher than the measurement result for the second mode of the sidelink. 11. The measurement result for the first mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold. 12. The measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold. 13. The measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold. 14. The measurement result for the second mode of the sidelink is greater than or less than a fifth threshold. 15. A measurement result of the fifth resource is higher than a measurement result of the sixth resource. 16. The measurement result of the fifth resource is greater than or equal to or is less than or equal to the fourth threshold. 17. The measurement result of the sixth resource is greater than or equal to or is less than or equal to the fifth threshold. 18. Priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold. 19. Priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold. 20. Priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold. 21. Priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold. 22. The fifth resource includes a resource shared by the first terminal device and another terminal device and the fifth resource is not used, where the resource shared by the first terminal device and the another terminal device includes a first-type configured grant resource and / or a second-mode resource of the sidelink, and the first-type configured grant includes a sidelink resource and / or an uplink resource that are / is provided by the network device by using RRC signaling. 23. The fifth resource includes a dedicated resource of the first terminal device. 24. A start time domain position of the fifth resource is before or after a start time domain position of the sixth resource. 25. The fifth resource includes a periodic third time-frequency resource, the sixth resource includes a periodic fourth time-frequency resource, and a periodicity of the third time-frequency resource is greater than or less than a periodicity of the fourth time-frequency resource. 26. The fifth resource includes the periodic third time-frequency resource, the sixth resource includes the periodic fourth time-frequency resource, and a time interval between two adjacent third time-frequency resources is greater than or less than a time interval between two adjacent fourth time-frequency resources. 27. A size of the third time-frequency resource is less than or greater than a size of the fourth time-frequency resource. 28. A proportion of an overlapping resource in the sixth resource to the sixth resource is greater than or less than a proportion of an overlapping resource in the fifth resource to the fifth resource.

[0412] The priority rule described in the fourth condition is similar to the priority rule described in the second condition in the embodiment shown in FIG. 2K. For details, refer to a specific example of the priority rule described in the second condition in the embodiment shown in FIG. 2K. Details are not described herein again.

[0413] 304: The first terminal device determines the sixth resource.

[0414] Optionally, the priority of the sixth resource is lo...

Claims

1. A communication processing method, wherein the method comprises: determining (203), by a first terminal device, that a priority of a first resource is lower than a priority of a third resource when a second condition is met; determining (204), by the first terminal device, to release the first resource; generating (201), by the first terminal device, first information; and sending (202), by the first terminal device, the first information to a network device, wherein the first information is used to indicate any one or more of the following content: information indicating that the first terminal device releases a first resource; the first resource released by the first terminal device; and information indicating that the first terminal device requests a second resource from the network device; wherein the first resource comprises any one or more of the following content: a resource of a sidelink, wherein the sidelink is a wireless direct communication link between the first terminal device and a second terminal device, a resource of an uplink, wherein the resource of the uplink is the resource of the uplink between the first terminal device and the network device, a resource of a downlink, wherein the resource of the downlink is the resource of the downlink between the first terminal device and the network device; and wherein the third resource comprises a second-mode resource of the sidelink.

2. The method according to claim 1, wherein the first resource comprises additionally any one or more of the following content: a first-mode resource of the sidelink; a configured grant resource of the sidelink; a first-type configured grant resource of the sidelink; a second-type configured grant resource of the sidelink; a dynamic grant resource of the sidelink; a configured grant resource of the uplink; a first-type configured grant resource of the uplink; a second-type configured grant resource of the uplink; a dynamic grant resource of the uplink; a semi-persistently allocated resource of the downlink; and a dynamically allocated resource of the downlink.

3. The method according to claim 1 or 2, wherein the second resource comprises any one or more of the following content: a resource of a sidelink; a first-mode resource of the sidelink; a configured grant resource of the sidelink; a first-type configured grant resource of the sidelink; a second-type configured grant resource of the sidelink; a dynamic grant resource of the sidelink; a resource of an uplink; a configured grant resource of the uplink; a first-type configured grant resource of the uplink; a second-type configured grant resource of the uplink; a dynamic grant resource of the uplink; a resource of a downlink; a semi-persistently allocated resource of the downlink; and a dynamically allocated resource of the downlink, wherein the sidelink is a wireless direct communication link between the first terminal device and a second terminal device, and the uplink and the downlink are links for communication between the first terminal device and the network device.

4. The method according to claim 1 or 2, wherein the sending, by the first terminal device, the first information to a network device comprises: sending, by the first terminal device, the first information to the network device when a first condition is met, wherein the first condition comprises any one or more of the following content: the first resource overlaps the third resource in time domain, wherein the first resource comprises any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the third resource comprises a second-mode resource of the sidelink, the resource of the uplink is a resource of an uplink between the first terminal device and the network device, the resource of the downlink is a resource of a downlink between the first terminal device and the network device, the sidelink is the wireless direct communication link between the first terminal device and the second terminal device, and the second-mode resource of the sidelink comprises a sidelink resource selected, contended for, or sensed by the first terminal device; the first resource periodically overlaps the third resource in time domain; the first resource overlaps the third resource for N times in time domain, wherein N is an integer greater than 0; the first resource is to overlap the third resource in time domain; the first resource is to periodically overlap the third resource in time domain; the first resource is to overlap the third resource for N times in time domain; the third resource overrides the first resource or the first resource overrides the third resource; the third resource periodically overrides the first resource or the first resource periodically overrides the third resource; the third resource overrides the first resource for N times or the first resource overrides the third resource for N times; the third resource is to override the first resource or the first resource is to override the third resource; the third resource is to periodically override the first resource or the first resource is to periodically override the third resource; the third resource is to override the first resource for N times or the first resource is to override the third resource for N times; first duration is greater than or equal to a first threshold, wherein the first duration is a time difference between a time domain position of the first resource and a moment at which the first terminal device releases the first resource, or is a time difference between a time domain position of the first resource and a time domain position at which the first terminal device sends the first information; the first resource comprises a dedicated resource of the first terminal device; the first resource comprises a periodic time-frequency resource; and the first terminal device has a resource of the uplink.

5. The method according to any one of claims 1 to 3, wherein the first information comprises any one or more of the following content: an indication that the first terminal device releases the first resource, wherein the first resource comprises any one or more of the following content: the resource of the sidelink, the resource of the uplink, and the resource of the downlink, the resource of the uplink is the resource of the uplink between the first terminal device and the network device, the resource of the downlink is the resource of the downlink between the first terminal device and the network device, and the sidelink is the wireless direct communication link between the first terminal device and the second terminal device; information about the first resource; resource type information of the first resource; time domain information of the first resource; time domain position information of the first resource; time domain length information of the first resource; frequency domain information of the first resource; frequency domain position information of the first resource; frequency domain bandwidth information of the first resource; a periodicity or an interval of the first resource; duration of the first resource; time information of releasing the first resource by the first terminal device; information about releasing the 1st time-frequency resource of the first resource by the first terminal device; time domain information of releasing the 1st time-frequency resource of the first resource by the first terminal device; frequency domain information of releasing the 1st time-frequency resource of the first resource by the first terminal device; a time interval between time at which the first terminal device releases the first resource and time at which the first terminal device sends the first information; an indication that the first terminal device senses, selects, or obtains, through contention, the third resource, wherein the third resource comprises the second-mode resource of the sidelink, and the third resource comprises a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device; an indication that the first terminal device reserves the third resource; an indication that the first resource overlaps the third resource in time domain; information about the third resource; resource type information of the third resource; time domain information of the third resource; time domain length information of the third resource; time domain position information of the third resource; frequency domain information of the third resource; frequency domain bandwidth information of the third resource; frequency domain position information of the third resource; a periodicity or a time interval of the third resource; duration of the third resource; a periodicity or a time interval of a service or data transmitted on the first resource; a periodicity or a time interval of a service or data transmitted on the third resource; a time offset of the time domain position of the first resource relative to the time domain position at which the first terminal device sends the first information; a time offset of a time domain position of the third resource relative to the time domain position at which the first terminal device sends the first information; priority information of the service or the data transmitted on the first resource; priority information of the service or the data transmitted on the third resource; priority information of the first resource; priority information of the third resource; an indication that a priority of the first resource is lower than a priority of the third resource; information about an overlapping resource in the first resource and the third resource; time domain information of the first resource overlapping the third resource; information about a time domain offset of the first resource relative to the third resource; information about a resource that does not overlap the third resource; an indication that the first terminal device requests the second resource from the network device; information about the second resource; resource type information of the second resource; time domain information of the second resource; frequency domain information of the second resource; a periodicity or an interval of the second resource; information about a time domain offset of the second resource relative to the third resource; the information about the time domain offset of the first resource relative to the third resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a quantity of retransmission times or a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

6. The method according to any one of claims 1 to 5, wherein the second condition comprises any one or more of the following content: a priority of sidelink transmission for a first mode is lower than a priority of sidelink transmission for a second mode; a priority of uplink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of downlink transmission is lower than the priority of the sidelink transmission for the second mode; a priority of the service or the data transmitted on the first resource is lower than the priority information of the service or the data transmitted on the third resource; the priority information of the service or the data transmitted on the first resource is greater than or equal to or is less than or equal to a second threshold; the priority information of the service or the data transmitted on the third resource is greater than or equal to or is less than or equal to a third threshold; the priority of the first resource is lower than the priority of the third resource; a measurement result for the first mode of the sidelink is lower than a measurement result for the second mode of the sidelink; a measurement result of the uplink is lower than the measurement result for the second mode of the sidelink; a measurement result of the downlink is lower than the measurement result for the second mode of the sidelink; the measurement result for the first mode of the sidelink is greater than or equal to or is less than or equal to a fourth threshold; the measurement result of the uplink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the downlink is greater than or equal to or is less than or equal to the fourth threshold; the measurement result for the second mode of the sidelink is greater than or equal to or is less than or equal to a fifth threshold; priority information of the sidelink transmission for the first mode is greater than or equal to or is less than or equal to a sixth threshold; priority information of the uplink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the downlink transmission is greater than or equal to or is less than or equal to the sixth threshold; priority information of the sidelink transmission for the second mode is greater than or equal to or is less than or equal to the sixth threshold; a measurement result of the first resource is lower than a measurement result of the third resource; the measurement result of the first resource is greater than or equal to or is less than or equal to the fourth threshold; the measurement result of the third resource is greater than or equal to or is less than or equal to the fifth threshold; the first resource comprises a resource shared by the first terminal device and another terminal device, wherein the resource shared by the first terminal device and the another terminal device comprises a first-type configured grant resource, and the first-type configured grant comprises a sidelink resource and / or an uplink resource provided by the network device by using radio resource control, RRC signaling; a start time domain position of the first resource is after or before a start time domain position of the third resource; the first resource comprises a periodic first time-frequency resource, the second resource comprises a periodic second time-frequency resource, and a periodicity of the first time-frequency resource is greater than or less than a periodicity of the second time-frequency resource; the first resource comprises the periodic first time-frequency resource, the second resource comprises the periodic second time-frequency resource, and a time interval between two adjacent first time-frequency resources is greater than or less than a time interval between two adjacent second time-frequency resources; a size of the first resource is greater than or less than a size of the third resource; and a proportion of an overlapping resource in the first resource to the first resource is greater than or less than a proportion of an overlapping resource in the third resource to the third resource.

7. A communication processing method, wherein the method comprises: determining (402), by a first terminal device, that a priority of a the seventh resource is lower than a priority of an eighth resource when a sixth condition is met, wherein the seventh resource comprises a first-mode resource of a sidelink and / or a second-mode resource of the sidelink, the eighth resource comprises any one or more of the following content: a resource of the sidelink, a resource of an uplink,and a resource of a downlink, the resource of the uplink is the resource of the uplink between the first terminal device and a network device, and the resource of the downlink is the resource of the downlink between the first terminal device and the network device; determining, by the first terminal device, to release the seventh resource; sending (401), by the first terminal device, fourth information to a third terminal device, wherein the fourth information is used to indicate that the first terminal device releases the seventh resource and / or indicate the seventh resource released by the first terminal device, the seventh resource comprises the resource of the sidelink, and the sidelink is a wireless direct communication link between the first terminal device and a second terminal device.

8. The method according to claim 7, wherein the sending, by the first terminal device, the fourth information to the third terminal device comprises: sending, by the first terminal device, the fourth information to the third terminal device when a fifth condition is met, wherein the fifth condition comprises at least one of the following conditions: the seventh resource overlaps an eighth resource in time domain, wherein the seventh resource comprises a first-mode resource of the sidelink and / or a second-mode resource of the sidelink, the eighth resource comprises any one or more of the following content: the first-mode resource of the sidelink, the second-mode resource of the sidelink, a resource of an uplink, and a resource of a downlink, the first-mode resource of the sidelink comprises a resource scheduled by a network device for the first terminal device, the second-mode resource of the sidelink comprises a resource selected, contended for, or sensed by the first terminal device and / or a resource reserved by the first terminal device, the resource of the uplink is a resource of an uplink between the first terminal device and the network device, and the resource of the downlink is a resource of a downlink between the first terminal device and the network device; the seventh resource periodically overlaps the eighth resource in time domain; the seventh resource overlaps the eighth resource for N times in time domain, wherein N is an integer greater than 0; the seventh resource is to overlap the eighth resource in time domain; the seventh resource is to periodically overlap the eighth resource in time domain; the seventh resource is to overlap the eighth resource for N times in time domain; the seventh resource overrides the eighth resource or the eighth resource overrides the seventh resource; the eighth resource periodically overrides the seventh resource or the seventh resource periodically overrides the eighth resource; the eighth resource overrides the seventh resource for N times or the seventh resource overrides the eighth resource for N times; the eighth resource is to override the seventh resource or the seventh resource is to override the eighth resource; the eighth resource is to periodically override the seventh resource or the seventh resource is to periodically override the eighth resource; the eighth resource is to override the seventh resource for N times or the seventh resource is to override the eighth resource for N times; third duration is greater than an eighth threshold, wherein the third duration is a time difference between a time domain resource of the seventh resource and a moment at which the first terminal device releases the seventh resource, or is a time difference between a time domain position of the seventh resource and a time domain position at which the first terminal device sends the fourth information to the third terminal device; the eighth resource comprises a dedicated resource of the first terminal device; the seventh resource comprises a periodic time-frequency resource; and the first terminal device has a resource of the sidelink.

9. The method according to claim 7 or 8, wherein the fourth information comprises at least one of the following: an indication that the first terminal device releases the seventh resource; information about the seventh resource; resource type information of the seventh resource; time domain information of the seventh resource; time domain position information of the seventh resource; time domain length information of the seventh resource; frequency domain information of the seventh resource; frequency domain position information of the seventh resource; frequency domain bandwidth information of the seventh resource; a periodicity or an interval of the seventh resource; duration of the seventh resource; time information of releasing the seventh resource by the first terminal device; information about releasing the 1st time domain resource of the seventh resource by the first terminal device; time domain information of releasing the 1st time-frequency resource of the first resource by the first terminal device; frequency domain information of releasing the 1st time-frequency resource of the first resource by the first terminal device; a time interval between time at which the first terminal device releases the seventh resource and a moment at which the first terminal device sends the fourth information; an indication that the first terminal device senses, selects, or obtains, through contention, the seventh resource; an indication that the first terminal device reserves the seventh resource; an indication that the eighth resource overlaps the seventh resource in time domain, wherein the eighth resource comprises any one or more of the following content: the first-mode resource of the sidelink, the second-mode resource of the sidelink, the resource of the uplink, and the resource of the downlink, the resource of the uplink is the resource of the uplink between the first terminal device and the network device, and the resource of the downlink is the resource of the downlink between the first terminal device and the network device; information about the eighth resource; resource type information of the eighth resource; time domain information of the eighth resource; time domain length information of the eighth resource; time domain position information of the eighth resource; frequency domain information of the eighth resource; frequency domain bandwidth information of the eighth resource; frequency domain position information of the eighth resource; a periodicity or a time interval of the eighth resource; duration of the eighth resource; a periodicity or a time interval of a service transmitted on the seventh resource; a periodicity or a time interval of a service transmitted on the eighth resource; a time offset of the time domain position of the seventh resource relative to a time domain position at which the first terminal device sends the fourth information; a time offset of a time domain position of the eighth resource relative to the time domain position at which the first terminal device sends the fourth information; priority information of the service transmitted on the seventh resource; priority information of the service transmitted on the eighth resource; priority information of the seventh resource; priority information of the eighth resource; an indication that a priority of the seventh resource is lower than a priority of the eighth resource; time domain information of the seventh resource overlapping the eighth resource; information about a time domain offset of the seventh resource relative to the eighth resource; information about a resource that does not overlap the eighth resource; an indication that the first terminal device has resource reservation; information about a resource reserved by the first terminal device; an indication that the first terminal device may perform retransmission; a quantity of retransmission times and / or a maximum quantity of retransmission times of the first terminal device; a time interval between initial transmission and retransmission of the first terminal device; and frequency domain information of the initial transmission and frequency domain information of the retransmission of the first terminal device.

10. A communication processing apparatus (1300), wherein the communication processing apparatus comprises a processor (1301), and the processor is coupled to a memory (1302); the memory is configured to store a computer program; and the processor is configured to execute the computer program stored in the memory, so that the communication processing apparatus performs the communication processing method according to any one of claims 1 to 9.