BACKGROUND OF THE INVENTION

Technical Field

This application relates to the communications field, and more specifically, to a conflict resolving method and a terminal device.

Related Art

In Release 14, a terminal device (for example, a vehicle terminal) can transmit data to a network device on an uplink and transmit data to another terminal on a sidelink. When uplink transmission overlaps sidelink transmission in time, power is allocated based on measuring a priority of a link service. For example, a network may be configured with a threshold of a ProSe per-packet priority (PPPP) (or a preconfigured threshold). When a PPPP of sidelink data is greater than the threshold, the terminal device ensures transmission of the sidelink data, and discards uplink transmission or reduces power of uplink data. When the PPPP of the sidelink data is less than or equal to the threshold, the terminal device ensures transmission of the uplink data, and discards the transmission of the sidelink data or reduces power of the sidelink data. However, such a manner of resolving the overlapping (conflict) of the uplink transmission and the sidelink transmission in time cannot satisfy data transmission requirements in Release 15 and subsequent Releases.

SUMMARY OF THE INVENTION

Embodiments of this application provide a conflict resolving method and a terminal device. When uplink transmission conflicts with sidelink transmission in time, the terminal device can resolve the data transmission conflict based on a PPPP of data on a sidelink and a limit, thereby satisfying data transmission requirements in Release 15 and subsequent Releases.

According to a first aspect, an embodiment of this application provides a conflict resolving method, the method being applied to terminal-to-terminal communication. A terminal device needs to transmit sidelink data on M first-type carriers and transmit uplink data on N second-type carriers, and M and N are positive integers.

The method includes determining, by the terminal device based on a PPPP of the sidelink data transmitted on the M first-type carriers and a first limit, to preferentially transmit the sidelink data on some or all of the M first-type carriers, or to preferentially transmit the uplink data on some or all of the N second-type carriers.

Optionally, the first limit may be preset for the terminal device, for example, preset for the terminal device by using a protocol, or may be dynamically configured for the terminal device by a network device, or may be determined by the terminal device.

Therefore, in the conflict resolving method in this embodiment of this application, when the terminal device needs to transmit the sidelink data on the M first-type carriers and transmit the uplink data on the N second-type carriers, the terminal device may determine, based on the PPPP of the sidelink data transmitted on the M first-type carriers and the first limit, to preferentially transmit the sidelink data on some or all of M first-type carriers, or to preferentially transmit the uplink data on some or all of the N second-type carriers, thereby resolving a conflict in time dimension between uplink transmission and sidelink transmission of the terminal device.

Optionally, in an implementation of the first aspect, if at least one PPPP of the sidelink data on the M first-type carriers is less than the first limit, the determining, by the terminal device based on a PPPP of the sidelink data transmitted on the M first-type carriers and a first limit, to preferentially transmit the sidelink data on some or all of the M first-type carriers, or to preferentially transmit the uplink data on some or all of the N second-type carriers includes: determining, by the terminal device, to preferentially transmit the sidelink data on the M first-type carriers.

Therefore, in the conflict resolving method in this embodiment of this application, when at least one PPPP of the sidelink data on the M first-type carriers is less than the first limit, the terminal device can determine to preferentially transmit the sidelink data on some or all of the M first-type carriers.

Optionally, in an implementation of the first aspect, the method further includes: discarding, by the terminal device, transmission of the uplink data on the second-type carrier.

Optionally, in an implementation of the first aspect, after the sidelink data on the M first-type carriers is transmitted, the method further includes: transmitting, by the terminal device, uplink data on X second-type carriers, where total transmit power used to transmit the sidelink data on the M first-type carriers and transmit the uplink data on the X second-type carriers is less than or equal to a maximum transmit power of the terminal device, and X is less than or equal to N.

Optionally, in an implementation of the first aspect, the determining, by the terminal device, to preferentially transmit the sidelink data on the M first-type carriers includes: determining, by the terminal device, to preferentially transmit sidelink data whose reliability requirement is greater than or equal to a first threshold on the M first-type carriers.

It should be noted that, the sidelink data whose reliability requirement is greater than or equal to the first threshold may be understood as sidelink data whose reliability requirement is greater than the first threshold, or may be understood as sidelink data whose reliability requirement is greater than or equal to the first threshold.

Optionally, the first threshold may be preset for the terminal device, for example, preset for the terminal device by using a protocol, or may be dynamically configured for the terminal device by a network device, or may be determined by the terminal device.

It should be noted that, the reliability requirement of the sidelink data may be represented by a ProSe per-packet reliability (PPPR) requirement.

Therefore, transmission of the sidelink data with a high reliability requirement can be ensured.

Optionally, in an implementation of the first aspect, the method further includes: determining, by the terminal device, to discard transmission of sidelink data whose reliability requirement is less than or equal to the first threshold on the M first-type carriers.

Optionally, in an implementation of the first aspect, the method further includes: determining, by the terminal device, to transmit the sidelink data whose reliability requirement is less than or equal to the first threshold on the M first-type carriers after transmitting the sidelink data whose reliability requirement is greater than or equal to the first threshold.

Optionally, in an implementation of the first aspect, if the sidelink data includes first sidelink data and second sidelink data based on packet data convergence protocol (PDCP) replication transmission, and the second sidelink data is replicated data of the first sidelink data, the determining, by the terminal device, to preferentially transmit the sidelink data on the M first-type carriers includes: determining, by the terminal device, to preferentially transmit the first sidelink data on the M first-type carriers.

Optionally, in an implementation of the first aspect, the method further includes: determining, by the terminal device, to discard transmission of the second sidelink data on the M first-type carriers.

It should be noted that, the first sidelink data and the second sidelink data are PDCP protocol data units (PDU). The terminal device generates a corresponding radio link control (RLC) PDU and further a media access control (MAC) PDU based on the PDCP PDU. Moreover, the first sidelink data and the second sidelink data on two logical channels of PDCP replication transmission are determined by the terminal device, or configured by a network device.

Therefore, transmission of one piece of sidelink data may be preferentially ensured during PDCP replication transmission of the sidelink data, so that power consumption can be reduced while replication data transmission is ensured.

Optionally, in an implementation of the first aspect, if at least one PPPP of the sidelink data on the M first-type carriers is greater than or equal to the first limit, the determining, by the terminal device based on a PPPP of the sidelink data transmitted on the M first-type carriers and a first limit, to preferentially transmit the sidelink data on some or all of the M first-type carriers, or to preferentially transmit the uplink data on some or all of the N second-type carriers includes: determining, by the terminal device, to preferentially transmit the uplink data on the N second-type carriers.

Therefore, in the conflict resolving method in this embodiment of this application, when at least one PPPP of the sidelink data on the M first-type carriers is greater than or equal to the first limit, the terminal device can determine to preferentially transmit the uplink data on some or all of the N second-type carriers.

Optionally, in an implementation of the first aspect, if at least one PPPP of the sidelink data on the M first-type carriers is greater than the first limit, the determining, by the terminal device based on a PPPP of the sidelink data transmitted on the M first-type carriers and a first limit, to preferentially transmit the sidelink data on some or all of the M first-type carriers, or to preferentially transmit the uplink data on some or all of the N second-type carriers includes: determining, by the terminal device, to preferentially transmit the uplink data on the N second-type carriers.

Therefore, in the conflict resolving method in this embodiment of this application, when at least one PPPP of the sidelink data on the M first-type carriers is greater than the first limit, the terminal device can determine to preferentially to transmit the uplink data on some or all of the N second-type carriers.

Optionally, in an implementation of the first aspect, if none of PPPPs of the sidelink data on the M first-type carriers is less than the first limit, the determining, by the terminal device based on a PPPP of the sidelink data transmitted on the M first-type carriers and a first limit, to preferentially transmit the sidelink data on some or all of the M first-type carriers, or to preferentially transmit the uplink data on some or all of the N second-type carriers includes: determining, by the terminal device, to preferentially transmit the uplink data on the N second-type carriers.

Therefore, in the conflict resolving method in this embodiment of this application, if none of PPPPs of the sidelink data on the M first-type carriers is less than the first limit, the terminal device can determine to preferentially transmit the uplink data on some or all of the N second-type carriers.

Optionally, in an implementation of the first aspect, the method further includes: discarding, by the terminal device, transmission of the sidelink data on the first-type carrier.

Optionally, in an implementation of the first aspect, after the uplink data on the N second-type carriers is transmitted, the method further includes: transmitting, by the terminal device, sidelink data on Y first-type carriers, where total transmit power required to transmit the uplink data on the N second-type carriers and transmit the sidelink data on the Y first-type carriers is less than or equal to a maximum transmit power of the terminal device, and Y is less than or equal to M.

Optionally, in an implementation of the first aspect, if a PPPP of sidelink data on U first-type carriers is less than the first limit, and a sum of U and V is M, the determining, by the terminal device based on a PPPP of the sidelink data transmitted on the M first-type carriers and a first limit, to preferentially transmit the sidelink data on some or all of the M first-type carriers, or to preferentially transmit the uplink data on some or all of the N second-type carriers includes: determining, by the terminal device, to preferentially transmit the sidelink data on the U first-type carriers.

Therefore, in the conflict resolving method in this embodiment of this application, when the PPPP of the sidelink data on the U first-type carriers in the M first-type carriers is less than the first limit, the terminal device can determine to preferentially transmit the sidelink data on some or all of the U first-type carriers.

Optionally, in an implementation of the first aspect, the method further includes: discarding, by the terminal device, transmission of the uplink data on the N second-type carriers and transmission of sidelink data on V first-type carriers.

Optionally, in an implementation of the first aspect, after the sidelink data on the U first-type carriers is transmitted, the method further includes: transmitting, by the terminal device, uplink data on K second-type carriers, where total transmit power used to transmit the sidelink data on the U first-type carriers and transmit the uplink data on the K second-type carriers is less than or equal to a maximum transmit power of the terminal device, and K is less than or equal to N.

Optionally, in an implementation of the first aspect, after the sidelink data on the U first-type carriers is transmitted, the method further includes: transmitting, by the terminal device, uplink data on Q second-type carriers, and transmitting sidelink data on S first-type carriers, where total transmit power used to transmit the sidelink data on the U first-type carriers, transmit the uplink data on the Q second-type carriers and transmit the sidelink data on the S first-type carriers is less than or equal to the maximum transmit power of the terminal device, Q is less than or equal to N, and S is less than or equal to V.

Optionally, in an implementation of the first aspect, the determining, by the terminal device, to preferentially transmit the sidelink data on the U first-type carriers includes: determining, by the terminal device, to preferentially transmit sidelink data whose reliability requirement is greater than or equal to a first threshold on the U first-type carriers.

Optionally, in an implementation of the first aspect, the method further includes: determining, by the terminal device, to discard transmission of sidelink data whose reliability requirement is less than or equal to the first threshold on the U first-type carriers.

Optionally, in an implementation of the first aspect, if the sidelink data includes first sidelink data and second sidelink data based on PDCP replication transmission, and the second sidelink data is replicated data of the first sidelink data, the determining, by the terminal device, to preferentially transmit the sidelink data on the U first-type carriers includes: determining, by the terminal device, to preferentially transmit the first sidelink data on the U first-type carriers.

Optionally, in an implementation of the first aspect, the method further includes: determining, by the terminal device, to discard transmission of the second sidelink data on the U first-type carriers.

According to a second aspect, an embodiment of this application provides a terminal device, which can execute the module or unit of the method according to any one of the first aspect or the optional implementations of the first aspect.

According to a third aspect, a terminal device is provided, and the terminal device includes a processor, a memory, and a communications interface. The processor and the memory are connected to the communications interface. The memory is configured to store an instruction, the processor is configured to execute the instruction, and the communications interface is configured to communicate with another network element under control of the processor. When the processor executes the instruction stored in the memory, the processor is caused to perform the method according to any one of the first aspect or the possible implementations of the first aspect.

According to a fourth aspect, a computer storage medium is provided, and the computer storage medium stores program code, which is used to instruct a computer to execute the instruction of the method according to the foregoing aspects.

According to a fifth aspect, a computer program product including an instruction is provided, and when the computer program product is run on a computer, the computer is caused to perform the method according to the foregoing aspects.

