Method and terminal device for selecting resources in D2D communication

Through the physical layer of the terminal device, the resources occupied by the transmission mode 3 devices are excluded in the Internet of Vehicles system, and the resources are selected independently and reported to the higher-level, which solves the problem of insufficient resources of the transmission mode 4 devices in the Internet of Vehicles system, and improves the reliability of data transmission and resource utilization.

CN111316675BActive Publication Date: 2024-11-12GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201780096513.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-11-03
Publication Date
2024-11-12
Estimated Expiration
2037-11-03

AI Technical Summary

Technical Problem

In the Internet of Vehicles system, when the terminal devices in the transmission mode 3 and the transmission mode 4 share a resource pool, it may lead to insufficient available resources in the terminal devices in the transmission mode 4, which affects the reliability of data transmission.

Method used

Through the physical layer of the terminal device, resource listening is performed within a specific time interval, resources occupied by the transmission mode 3 device are excluded, appropriate resources are automatically selected for data transmission, ensuring that the transmission mode 4 device can obtain sufficient resources for data transmission, and Report resource information to the senior management for resource allocation or reselecting.

Benefits of technology

It effectively reduces interference, ensures that terminal devices in different transmission modes can select appropriate transmission resources, and improves the reliability and resource utilization of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111316675B_ABST
    Figure CN111316675B_ABST
Patent Text Reader

Abstract

The present application discloses a method and terminal device for resource selection in D2D communication, the method comprising: the physical layer of the first terminal device performs resource monitoring in the first resource pool on the first carrier within the time interval [n+T1, n+T2] to obtain a first resource set, the resources in the first resource set can be used for the first terminal device to transmit a target service, wherein n is the time when the target service arrives, or the time when the first terminal device determines that resource monitoring is required, 0≤T1<T2; the physical layer of the first terminal device reports the information of the first resource set to the upper layer of the first terminal device. Therefore, the terminal device can also obtain transmission resources for transmitting the target service when the available resources are insufficient for resource selection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of wireless communications, and more specifically, to a method and terminal device for selecting resources in device-to-device (D2D) communications. Background Art

[0002] The Internet of Vehicles (IoV), or Vehicle to Everything (V2X) communication system, is a sidelink (SL) transmission technology based on D2D communication. Different from the traditional Long Term Evolution (LTE) system that receives or sends data through base stations, the IoV system uses terminal-to-terminal direct communication, so it has higher spectrum efficiency and lower transmission latency.

[0003] In the Release-14 of the 3rd Generation Partnership Project (3GPP) protocol, two transmission modes, transmission mode 3 and transmission mode 4, are defined. Terminal devices using transmission mode 3 and terminal devices using transmission mode 4 transmit data in different resource pools. Among them, the resources used by terminal devices using transmission mode 3 are allocated by the base station, and the terminal devices transmit data on the sidelink according to the resources allocated by the base station; while terminal devices using transmission mode 4 can independently select the transmission resources of the sidelink.

[0004] For terminals that support the new version Release-15 of the 3GPP protocol, these two transmission modes can also be used, and terminal devices using transmission mode 3 can share resource pools with terminal devices using transmission mode 4. Since terminal devices using transmission mode 3 are connected to base stations, and their transmission resources are allocated by base stations, when terminal devices using transmission mode 3 and terminal devices using transmission mode 4 coexist, it is more necessary to protect the transmission reliability of terminal devices using transmission mode 3. However, this may result in insufficient available resources for terminal devices using transmission mode 4. Summary of the invention

[0005] The embodiments of the present application provide a method and terminal device for resource selection in D2D communication, which can enable terminal devices in different transmission modes to select appropriate transmission resources for data transmission and reduce interference while meeting the resource requirements of the terminal devices.

[0006] In a first aspect, a method for resource selection in D2D communication is provided, comprising: a physical layer of a first terminal device performs resource listening in a first resource pool on a first carrier within a time interval [n+T1, n+T2] to obtain a first resource set, wherein the resources in the first resource set can be used for the first terminal device to transmit a target service, wherein n is the moment when the target service arrives, or the moment when the first terminal device determines that resource listening is required, and 0≤T1<T2; the physical layer of the first terminal device reports information about the first resource set to a high-level layer of the first terminal device.

[0007] Therefore, the physical layer of the terminal device reports to the higher layer the first set of resources that it has determined can be used to transmit the target service, so that the higher layer of the terminal device can allocate resources to the terminal device or instruct it to perform resource reselection and other operations based on the report of the physical layer. In this way, the terminal device can obtain transmission resources for transmitting the target service even when the available resources are insufficient for resource selection.

[0008] In a possible implementation manner, the physical layer of the first terminal device performs resource sensing in a first resource pool on a first carrier within a time interval [n+T1, n+T2] to obtain a first resource set, including:

[0009] The physical layer of the first terminal device performs resource sensing in the first resource pool within the time interval [n+T1, n+T2] to obtain a second resource set, wherein the total number of resources in the first resource pool on the first carrier within the time interval [n+T1, n+T2] is equal to A, and the number of resources in the second resource set is equal to B;

[0010] If B / A is greater than or equal to the threshold Q, the physical layer of the first terminal device detects the received signal strength indication RSSI on the B resources in the second resource set, and uses the P resources with the smallest RSSI measurement value in the second resource set as the first resource set;

[0011] If B / A is less than the threshold Q, the physical layer of the first terminal device determines the second resource set as the first resource set.

[0012] In a possible implementation, the second resource set does not include resources occupied and / or reserved by a second terminal device, wherein the second terminal device is a terminal device using a first transmission mode, and the first terminal device is a terminal device using a second transmission mode.

[0013] In one possible implementation, P is determined based on Q and A. For example Or P = round(Q × A), where To round up, To round down, round() is rounded up.

[0014] Therefore, since the physical layer of the first terminal device using the second transmission mode excludes the resources occupied and / or reserved by the second terminal device using the first transmission mode, the first terminal device will not affect the data transmission of the second terminal device using the first transmission mode when selecting resources.

[0015] In one possible implementation, the time-frequency resources used by the terminal device using the first transmission mode for service transmission are resources scheduled by the network device, and the time-frequency resources used by the terminal device using the second transmission mode for service transmission are resources autonomously selected by the terminal device in the resource pool corresponding to the second transmission mode.

[0016] The first transmission mode may be, for example, transmission mode 3 in Release-14 of the 3GPP protocol. When the terminal device uses the first transmission mode, the time-frequency resources used by the terminal device for the data transmission are resources scheduled by the network device. The second transmission mode may be, for example, transmission mode 4 in Release-14 of the aforementioned 3GPP protocol. When the terminal device uses the second transmission mode, the time-frequency resources are resources that the terminal device can select autonomously, such as resources randomly selected from a corresponding resource pool, or resources determined by the terminal device based on the result of resource listening.

[0017] Since the transmission resources of the terminal equipment using transmission mode 3 are allocated by the base station, when the terminal equipment using transmission mode 3 and transmission mode 4 use a common resource pool for transmission, the physical layer of the terminal equipment using transmission mode 4 excludes the resources occupied and / or reserved by the terminal equipment using transmission mode 3, and reports the information of the remaining resource set to its upper layer. Therefore, while the terminal equipment using transmission mode 4 performs resource selection, the normal transmission of the terminal equipment using transmission mode 3 is also guaranteed.

[0018] In a possible implementation, the physical layer of the first terminal device reports information of the first resource set to a higher layer of the first terminal device, including: the physical layer of the first terminal device reports resources in the first resource set to a higher layer of the first terminal device.

[0019] In one possible implementation, the physical layer of the first terminal device reports information about the first resource set to the higher layer of the first terminal device, including: the physical layer of the first terminal device reports resource shortage indication information to the higher layer of the first terminal device, and the resource shortage indication information is used to indicate that the ratio of the number of resources B in the second resource set to the total number of resources A in the first resource pool on the first carrier within the time interval [n+T1, n+T2] is less than the threshold Q.

[0020] In a possible implementation, the method also includes: the upper layer of the first terminal device determines, in the first resource set, a target resource for the first terminal device to transmit the target service; the upper layer of the first terminal device sends first indication information to the physical layer of the first terminal device, where the first indication information is used to indicate the target resource; and the physical layer of the first terminal device transmits the target service on the target resource according to the first indication information.

[0021] In a possible implementation, the method also includes: a higher layer of the first terminal device sends second indication information to a physical layer of the first terminal device, wherein the second indication information is used to instruct the physical layer of the first terminal device to reselect a first set of resources that can be used to transmit the target service from a second resource pool on the first carrier.

[0022] In a possible implementation, the method also includes: a higher layer of the first terminal device sends a third indication information to a physical layer of the first terminal device, and the third indication information is used to instruct the physical layer of the first terminal device to reselect a first resource set that can be used to transmit the target service from a third resource pool on a second carrier.

[0023] In one possible implementation, before the physical layer of the first terminal device performs resource listening in the first resource pool within the time interval [n+T1, n+T2] to obtain the second resource set, the method also includes: the first terminal device receives configuration information sent by the network device, and the configuration information is used to indicate the threshold Q; or the first terminal device obtains the threshold Q pre-stored in the first terminal device.

[0024] In a second aspect, a terminal device is provided, which can perform the operations of the terminal device in the first aspect or any optional implementation of the first aspect. Specifically, the terminal device may include a module unit for performing the operations of the terminal device in the first aspect or any possible implementation of the first aspect.

[0025] In a third aspect, a terminal device is provided, the terminal device comprising: a processor, a transceiver and a memory. The processor, the transceiver and the memory communicate with each other through an internal connection path. The memory is used to store instructions, and the processor is used to execute the instructions stored in the memory. When the processor executes the instructions stored in the memory, the execution causes the terminal device to execute the method in the first aspect or any possible implementation of the first aspect, or the execution causes the terminal device to implement the terminal device provided by the second aspect.

[0026] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program, wherein the program enables a terminal device to execute the method for resource selection in D2D communication in the above-mentioned first aspect and any one of its various implementations.

[0027] In a fifth aspect, a system chip is provided, which includes an input interface, an output interface, a processor and a memory, wherein the processor is used to execute instructions stored in the memory. When the instructions are executed, the processor can implement the method in the aforementioned first aspect or any possible implementation of the first aspect.

[0028] In a sixth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a schematic architecture diagram of an application scenario of an embodiment of the present application.

[0030] Figure 2 It is a schematic architecture diagram of another application scenario of an embodiment of the present application.

[0031] Figure 3 It is a schematic diagram of resource listening and selection.

[0032] Figure 4 It is a schematic flowchart of the resource selection method of an embodiment of the present application.

[0033] Figure 5 It is a schematic flowchart of a method for obtaining a first resource set according to an embodiment of the present application.

[0034] Figure 6 It is a schematic block diagram of a terminal device according to an embodiment of the present application.

[0035] Figure 7 It is a schematic structural diagram of a terminal device according to an embodiment of the present application.

[0036] Figure 8It is a schematic structural diagram of the system chip of an embodiment of the present application. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0038] It should be understood that the technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile Communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD) system, Universal Mobile Telecommunication System (UMTS), and future 5G communication systems, etc.

[0039] The present application describes various embodiments in conjunction with terminal devices. Terminal devices may also refer to user equipment (UE), access terminals, user units, user stations, mobile stations, mobile stations, remote stations, remote terminals, mobile devices, user terminals, terminals, wireless communication devices, user agents, or user devices. The access terminal may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G network, or a terminal device in a future evolving land public mobile communication network (PLMN) network, etc.

[0040] The present application describes various embodiments in conjunction with a network device. The network device may be a device for communicating with a terminal device, for example, a base station (Base Transceiver Station, BTS) in a GSM system or a CDMA system, a base station (NodeB, NB) in a WCDMA system, or an evolved base station (EvolutionalNode B, eNB or eNodeB) in an LTE system, or the network device may be a relay station, an access point, an in-vehicle device, a wearable device, a network side device in a future 5G network, or a network side device in a future evolved PLMN network, etc.

[0041] Figure 1 and Figure 2 It is a schematic diagram of two application scenarios of the embodiments of the present application. Figure 1 An exemplary embodiment shows a network device and two terminal devices. Optionally, the wireless communication system may include multiple network devices and each network device may include other number of terminal devices within its coverage area, which is not limited in the embodiment of the present invention. In addition, the wireless communication system may also include other network entities such as a mobile management entity (Mobile Management Entity, MME), a serving gateway (Serving Gateway, S-GW), and a packet data network gateway (Packet Data Network Gateway, P-GW), but the embodiment of the present invention is not limited thereto.

[0042] Specifically, the terminal device 20 and the terminal device 30 can communicate in a D2D communication mode. When performing D2D communication, the terminal device 20 and the terminal device 30 directly communicate through a D2D link, namely a sidelink (SL). Figure 1 or Figure 2 As shown, terminal device 20 and terminal device 30 communicate directly via a side link. Figure 1 In the embodiment, the terminal device 20 and the terminal device 30 communicate via a side link, and the transmission resources are allocated by the network device; Figure 2 In the embodiment, the terminal device 20 and the terminal device 30 communicate via a side link, and the transmission resources are selected autonomously by the terminal devices, without the need for the network device to allocate the transmission resources.

[0043] D2D communication may refer to vehicle to vehicle (V2V) communication or vehicle to everything (V2X) communication. In V2X communication, X may refer to any device with wireless receiving and transmitting capabilities, such as but not limited to slow-moving wireless devices, fast-moving vehicle-mounted devices, or network control nodes with wireless transmitting and receiving capabilities. It should be understood that the embodiments of the present invention are mainly applied to V2X communication scenarios, but may also be applied to any other D2D communication scenarios, and the embodiments of the present invention do not make any limitation to this.

[0044] In the Internet of Vehicles system, there may be two types of terminal devices, namely, terminal devices with listening capabilities, such as vehicle-mounted terminals (VUE) or pedestrian handheld terminals (PUE), and terminal devices without listening capabilities, such as PUE. VUE has higher processing capabilities and is usually powered by batteries in the vehicle, while PUE has lower processing capabilities. Reducing power consumption is also a major factor that PUE needs to consider. Therefore, in the existing Internet of Vehicles system, VUE is considered to have full receiving and listening capabilities; while PUE is considered to have partial or no receiving and listening capabilities. If PUE has partial listening capabilities, its resource selection can adopt a listening method similar to that of VUE, and select available resources on the part of resources that can be listened; if PUE does not have listening capabilities, PUE randomly selects transmission resources in the resource pool.

[0045] In the Release-14 version of the 3GPP protocol, two transmission modes are defined, namely, transmission mode 3 and transmission mode 4. The transmission resources of the terminal device using transmission mode 3 are allocated by the base station, and the terminal device sends data on the sidelink according to the resources allocated by the base station; the base station can allocate resources for single transmission to the terminal device, or allocate resources for semi-static transmission to the terminal device. If the terminal device using transmission mode 4 has the listening capability, it transmits data by sensing and reservation. If it does not have the listening capability, it randomly selects transmission resources from the resource pool. The terminal device with the listening capability obtains the available resource set in the resource pool by listening, and the terminal device randomly selects a resource from the set for data transmission. Since the services in the Internet of Vehicles system have periodic characteristics, the terminal device usually adopts the semi-static transmission method, that is, after the terminal device selects a transmission resource, it will continue to use the resource in multiple transmission cycles, thereby reducing the probability of resource reselection and resource conflict. The terminal device will carry information about the resources reserved for the next transmission in the control information of this transmission, so that other terminal devices can determine whether this resource is reserved and used by the terminal device by detecting the control information of the terminal device, thereby reducing resource conflicts.

[0046] In Release-14 of the 3GPP protocol, the resource pool corresponding to transmission mode 3 and the resource pool corresponding to transmission mode 4 are orthogonal. Terminal devices using mode 3 perform data transmission on the time-frequency resources in the resource pool supporting mode 3, and terminal devices using mode 4 perform data transmission on the time-frequency resources in the resource pool supporting mode 4.

[0047] In the new version of the 3GPP protocol, Release-15, in order to improve resource utilization, terminal devices using transmission mode 3 and terminal devices using transmission mode 4 can share a resource pool. At this time, terminal devices with listening capabilities can select resources through resource listening, while terminal devices without listening capabilities will inevitably interfere with data transmission with other terminal devices. Since terminal devices using transmission mode 3 are connected to base stations and their transmission resources are allocated by base stations, when terminal devices using transmission mode 3 and terminal devices using transmission mode 4 coexist, it is even more necessary to protect the transmission reliability of terminal devices using transmission mode 3.

[0048] When performing resource monitoring using transmission mode 4, the terminal device can execute the resource monitoring and selection process in the vehicle networking system in Release-14. The resource monitoring and selection process is described as an example below.

[0049] like Figure 3 As shown, in each sidelink process (a carrier may include two processes), when a new data packet arrives near time n, resource selection or resource reselection is required. The terminal device selects resources in the time interval [n+T1, n+T2]ms based on the listening result of the listening window of the previous 1s (i.e., 1000ms). The time period [n+T1, n+T2]ms is called the selection window, where T1 and T2 may satisfy T1≤4, 20≤T2≤100, for example. The previous 1s mentioned below refers to the previous 1s relative to time n. The specific resource selection process is as follows, which is described here by taking the example of the terminal device 20 listening to the resources of the terminal device 30:

[0050] (0) Assume that all resources in the selection window constitute a candidate resource set S_A, and assume that the number of resources in the initial candidate resource set S_A is A.

[0051] (1) If there is no listening result on a subframe in the listening window, and another subframe reserved between the subframe and the subframe according to a certain transmission period falls within the selection window, then the resources on the other subframe in the selection window are excluded from the candidate resource set S_A. The transmission period may be an element in a transmission period set, and the transmission period set may be, for example, {20, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000} ms. For example Figure 3 As shown, if the terminal device 20 has no listening result on resource A within the listening window, and the resource corresponding to resource A in the next transmission cycle is resource A1 within the selection window, the terminal device 20 excludes resource A1 from the candidate resource set S_A.

[0052] (2) If the terminal device 20 detects a physical sidelink control channel (PSCCH) sent by the terminal device 30 within the listening window of the previous 1 second, and the measured value of the reference signal received power (RSRP) of the physical sidelink shared channel (PSSCH) corresponding to the PSCCH is higher than the PSSCH-RSRP threshold, and the detected PSCCH indicates that the terminal device 30 sending the PSCCH has reserved time-frequency resources required for subsequent transmission (for example, Figure 3In the selection window, the time-frequency resources reserved by the terminal device 30 are the time-frequency resources B1) corresponding to the resource B in the listening window and located at the time domain positions of 100ms, 200ms, 300ms, ... after the resource B. Then the terminal device 20 will determine whether the time-frequency resources reserved by the terminal device 30 in the selection window overlap with the time-frequency resources selected by itself for data transmission in the selection window (including full overlap or partial overlap). If there is an overlap, that is, a resource conflict occurs, then the terminal device 20 excludes the time-frequency resources in the selection window from the candidate resource set S_A. At this time, it is assumed that the number of remaining resources in the candidate resource set S_A is equal to B.

[0053] It should be understood that if the terminal device 20 selects the time-frequency resources for transmitting data for itself within the selection window, and needs to transmit data on multiple time-frequency resources distributed according to the time period T20, then at this time, if the terminal device 30 reserves multiple time-frequency resources distributed according to the time period T30, and the time period T20 satisfies T20×M=T30×N, M and N are positive integers, then the terminal device 20 will exclude the multiple time-frequency resources distributed according to the time period T20 from the candidate resource set.

[0054] (3) If the number of resources B remaining in the candidate resource set S_A is less than A×20%, the terminal device 20 may increase the PSSCH-RSRP threshold by 3 dB and repeat steps (0) to (2) until B≥A×20%.

[0055] (4) The terminal device 20 measures the received signal strength indicator (RSSI) of the remaining B resources in the candidate resource set S_A, and sorts the measurement results from high to low, and moves the A×20% resources with the lowest signal strength to the candidate resource set S_B.

[0056] (5) The terminal device 20 selects a time-frequency resource from the candidate resource set S_B with equal probability for data transmission.

[0057] It should be understood that the time-frequency resource occupied by the data channel corresponding to a certain control channel is referred to as a time-frequency resource (or a resource block) for transmitting the data channel, and there may be multiple time-frequency resources in the candidate resource set in each selection window for transmitting the data channel. Figure 3 The resources A1 and B1 in can both be called a time-frequency resource.

[0058] After the terminal device 20 selects the time-frequency resources for data transmission, it will continue to use the time-frequency resources in each transmission cycle of the subsequent transmission process, and will use the time-frequency resources C_resel times in total, where C_resel is the resource reselection counter (Resource Reselection Counter). Each time data is transmitted, the value of C_resel is reduced by 1. When the value of C_resel is reduced to 0, the terminal device 20 will generate a random number between [0, 1] and compare it with the resource retention probability (Probability Resource Keep, ProbResourceKeep) parameter, which indicates the probability of the terminal device continuing to use the resource. If the value of the random number is greater than the parameter, the terminal device 20 will reselect the resource. If the value of the random number is less than the parameter, the terminal device 20 can continue to use the time-frequency resource for data transmission and reset the value of C_resel at the same time.

[0059] In the above step (4), the terminal device 20 needs to select A×20% resources with the lowest RSSI measurement value from the remaining B resources in the candidate resource set S_A and move them to the candidate resource set S_B. However, if the PSSCH-RSRP threshold has been increased to the maximum value, and B < A×20%, that is, there are not enough A×20% resources to select from the remaining B resources in the candidate resource set S_A, then the terminal device cannot find the transmission resources for transmitting the current data.

[0060] To this end, in the embodiment of the present application, when the available resources are insufficient for resource selection, the physical layer of the terminal device reports the first resource set currently determined to be available for transmitting the target service to the higher layer, so that the higher layer of the terminal device can allocate resources to the terminal device or instruct it to perform resource reselection and other operations based on the report of the physical layer, so that the terminal device can obtain the transmission resources for transmitting the target service. In addition, the reliability of data transmission of terminal devices using different transmission modes can be guaranteed.

[0061] It should be understood that in the embodiments of the present application, the operations performed by the physical layer (hereinafter referred to as the physical layer) of the terminal device can be understood as the operations performed by the terminal device at the physical layer, or the operations performed by the physical layer module of the terminal device; the operations performed by the high layer (hereinafter referred to as the high layer) of the terminal device can be understood as the operations performed by the terminal device at the high layer, or the operations performed by the high layer module of the terminal device.

[0062] Figure 4 It is a schematic flowchart of a method for selecting resources in D2D communication according to an embodiment of the present application. Figure 4 The method shown can be executed by a first terminal device, which can be, for example, Figure 2 The terminal device 20 or the terminal device 30 shown in FIG. Figure 4 As shown, the method for selecting resources in the D2D communication includes:

[0063] In 410, the physical layer of the first terminal device performs resource sensing in a first resource pool on a first carrier within a time interval [n+T1, n+T2] to obtain a first resource set.

[0064] The resources in the first resource set may be used by the first terminal device to transmit a target service, wherein n is the time when the target service arrives, or the time when the first terminal device determines that resource monitoring is required, and 0≤T1<T2.

[0065] Among them, T1 and T2 can be configured by the network device for the first terminal device, or can be pre-stored in the first terminal device, or can be selected by the first terminal device in some way, which is not limited here. For example, 0≤T1≤D1, D2≤T2≤D3, D1, D2, D3 are parameters predefined by the system or configured by the network device, and D3≤D, D represents the delay requirement of the target service.

[0066] In 420, the physical layer of the first terminal device reports the information of the first resource set to the higher layer of the terminal device.

[0067] Specifically, the physical layer of the first terminal device listens to the resources within the time interval [n+T1, n+T2] in the first resource pool on the first carrier, thereby determining the first resource set that can be used to transmit the target service. Wherein, n is the time when the target service arrives, or n is the time when the first terminal device decides that resource listening is required. For example, if the target service arrives before time n, the physical layer of the first terminal device may receive a request sent by its upper layer at time n, so that the physical layer of the first terminal device decides at time n that it needs to perform resource listening within the time interval [n+T1, n+T2] to find transmission resources for the target service.

[0068] Alternatively, if Figure 5 As shown, 410 may also include 411 to 413. Among them:

[0069] In 411, the physical layer of the first terminal device performs resource sensing in the first resource pool within the time interval [n+T1, n+T2] to obtain a second resource set.

[0070] The total number of resources in the first resource pool on the first carrier within the time interval [n+T1, n+T2] is equal to A, and the number of resources in the second resource set is equal to B.

[0071] Optionally, the second resource set does not include resources occupied and / or reserved by a second terminal device, the second terminal device is a terminal device using the first transmission mode, and the first terminal device is a terminal device using the second transmission mode.

[0072] For example, the first terminal device detects the PSCCH of the second terminal device in the first resource pool, and excludes the resources occupied by the PSSCH scheduled by the PSCCH and the reserved resources indicated by the PSCCH from the second resource set.

[0073] Therefore, since the physical layer of the first terminal device using the second transmission mode excludes the resources occupied and / or reserved by the second terminal device using the first transmission mode, and reports the information of the remaining resource set to the upper layer, it will not affect the data transmission of the second terminal device using the first transmission mode.

[0074] Optionally, the time-frequency resources used by the terminal device using the first transmission mode for service transmission are resources scheduled by the network device, and the time-frequency resources used by the terminal device using the second transmission mode for service transmission are resources autonomously selected by the terminal device in the resource pool corresponding to the second transmission mode.

[0075] The first transmission mode may be, for example, transmission mode 3 in Release-14 of the aforementioned 3GPP protocol. When the terminal device uses the first transmission mode, the time-frequency resources used by the terminal device for the data transmission are resources scheduled by the network device. The second transmission mode may be, for example, transmission mode 4 in Release-14 of the aforementioned 3GPP protocol. When the terminal device uses the second transmission mode, the time-frequency resources are resources that the terminal device can select autonomously, such as resources randomly selected from a corresponding resource pool, or resources determined by the terminal device based on the result of resource listening.

[0076] Since the transmission resources of the terminal equipment using transmission mode 3 are allocated by the base station, when the terminal equipment using transmission mode 3 and transmission mode 4 use a common resource pool for transmission, the physical layer of the terminal equipment using transmission mode 4 excludes the resources occupied and / or reserved by the terminal equipment using transmission mode 3. Therefore, while the terminal equipment using transmission mode 4 selects resources, the normal transmission of the terminal equipment using transmission mode 3 is also guaranteed.

[0077] In 412, if B / A is greater than or equal to the threshold Q, the physical layer of the first terminal device detects the RSSI on the B resources in the second resource set, and uses the P resources with the smallest RSSI measurement values ​​in the second resource set as the first resource set.

[0078] In 413, if B / A is less than the threshold Q, the physical layer of the first terminal device determines the second resource set as the first resource set.

[0079] Optionally, P is determined based on Q and A. For example Or P = round(Q × A), where To round up, To round down, round() is rounded up.

[0080] In this embodiment, the physical layer of the first terminal device using the second transmission mode performs resource listening in the first resource pool configured by the network device for the terminal device using the second transmission mode within the time interval [n+T1, n+T2] to obtain the second resource set. When the first terminal device using the second transmission mode performs resource listening in the first resource pool, the resources occupied and / or reserved by the second terminal device using the first transmission mode are excluded, thereby ensuring data transmission of the second terminal device using the first transmission mode.

[0081] It should be understood that in the embodiment of the present application, the total number of resources of the first resource pool within the time interval [n+T1, n+T2] is equal to A. The first terminal device not only needs to exclude the resources occupied and / or reserved by the second terminal device from the A resources, but also excludes other unavailable resources. For example, the resources whose measured value of PSSCH-RSRP is greater than the PSSCH-RSRP threshold and are occupied and / or reserved by other first terminal devices are excluded from the A resources, thereby obtaining the second resource set. The number of resources in the second resource set is equal to B, and these B resources are resources that can be used by the first terminal device to transmit the target service. In other words, the number of resources B in the second resource set is equivalent to Figure 3 The number of resources in the candidate resource set S_B obtained in step (4) in the description of .

[0082] The physical layer of the first terminal device performs resource sensing in the first resource pool and obtains the second resource set within the time interval [n+T1, n+T2]. The B resources in the second resource set can be, for example, the second resource set obtained by the first terminal device after resource sensing when the PSSCH-RSRP threshold has reached a maximum value (such as infinity). When the PSSCH-RSRP threshold is already infinite, it can be considered that the first terminal device will not exclude the resources occupied and / or reserved by other first terminal devices from the A resources. Even in this case, if the number of resources B in the second resource set is still less than P, the physical layer of the first terminal device can directly determine the second resource set as the first resource set.

[0083] If B / A is greater than or equal to the threshold Q, the physical layer of the first terminal device detects the received signal strength indication RSSI on the B resources in the second resource set, and uses the P resources with the smallest RSSI measurement values ​​in the second resource set as the above-mentioned first resource set. In other words, if the number of resources B in the second resource set is greater than P, the physical layer of the first terminal device uses the P resources with the smallest RSSI measurement values ​​among the B resources as the first resource set, and reports the relevant information of the first resource set to the high-level layer of the first terminal device. At this time, the number of resources in the first resource set is P.

[0084] If B / A is less than the threshold Q, the physical layer of the first terminal device can directly determine the second resource set as the first resource set. When B / A is less than the threshold Q, it means that the number of resources B in the second resource set is less than P. Then, the number of resources B in the second resource set is not enough to select resources based on the RSSI measurement value, and P resources cannot be selected. Then, at this time, the physical layer of the first terminal device can directly determine the B resources in the second resource set as the first resource set, and report the relevant information of the first resource set to the upper layer. At this time, the number of resources in the first resource set is B instead of P.

[0085] Optionally, before 410, that is, before the physical layer of the first terminal device performs resource listening in the first resource pool to obtain a second resource set within the time interval [n+T1, n+T2], the method also includes: the first terminal device receives configuration information sent by the network device, and the configuration information is used to indicate the threshold Q; or the first terminal device obtains the threshold Q pre-stored in the first terminal device.

[0086] That is to say, the threshold Q may be configured by the network device for the first terminal device, or may be a threshold agreed upon in advance between the network device and the first terminal device, for example, specified in a protocol.

[0087] After obtaining the first resource set, the physical layer of the first terminal device reports information about the first resource set to the upper layer. The information about the first resource set may specifically be the resources in the first resource set and / or indication information used to indicate insufficient resources in the first resource set.

[0088] Optionally, in 420, the physical layer of the first terminal device reports information about the first resource set to a higher layer of the terminal device, including: the physical layer of the first terminal device reports resources in the first resource set to a higher layer of the terminal device.

[0089] Optionally, in 420, the physical layer of the first terminal device reports information about the first resource set to the higher layer of the terminal device, including: the physical layer of the first terminal device reports resource shortage indication information to the higher layer of the first terminal device, and the resource shortage indication information is used to indicate that the ratio of the number of resources B in the second resource set to the total number of resources A in the first resource pool on the first carrier within the time interval [n+T1, n+T2] is less than the threshold Q.

[0090] The physical layer of the first terminal device indicates to the high layer of the first terminal device that B / A<Q through the insufficient resource indication information. It can also be understood that the insufficient resource indication information indicates that the number of resources in the first resource set reported by the physical layer is insufficient.

[0091] After the physical layer of the first terminal device reports the resources of the first resource set and / or the resource shortage indication information to the higher layer, the higher layer may guide the physical layer to select resources in the following manner:

[0092] Optionally, after 420, the method further includes: the upper layer of the first terminal device determines, in the first resource set, a target resource for the first terminal device to transmit the target service; the upper layer of the first terminal device sends first indication information to the physical layer of the first terminal device, where the first indication information is used to indicate the target resource; and the physical layer of the first terminal device transmits the target service on the target resource according to the first indication information.

[0093] Optionally, after 420, the method further includes: the upper layer of the first terminal device sends second indication information to the physical layer of the first terminal device, and the second indication information is used to instruct the physical layer of the first terminal device to reselect a first resource set that can be used to transmit the target service from a second resource pool on the first carrier.

[0094] Optionally, after 420, the method further includes: the upper layer of the first terminal device sends third indication information to the physical layer of the first terminal device, and the third indication information is used to instruct the physical layer of the first terminal device to reselect a first resource set that can be used to transmit the target service from a third resource pool on the second carrier.

[0095] Specifically, after the upper layer of the first terminal device receives the information of the first resource set, it can select a suitable transmission resource, namely the target resource, for the target service in the first resource set, and send the target resource to the physical layer, so that the physical layer transmits the target service on the target resource. If the upper layer of the first terminal device only receives the insufficient resource indication information, the upper layer can also send indication information to instruct the physical layer to reselect the first resource set that can be used to transmit the target service from other resource pools on the first carrier; or, when multi-carrier transmission is supported, the upper layer can also instruct the physical layer to reselect the first resource set that can be used to transmit the target service from other resource pools on other carriers.

[0096] Therefore, in an embodiment of the present application, the physical layer of the terminal device reports to the higher layer the first set of resources that it has determined can be used to transmit the target service, so that the higher layer of the terminal device can allocate resources to the terminal device or instruct it to perform resource reselection and other operations based on the report of the physical layer. In this way, the terminal device can obtain transmission resources for transmitting the target service even when the available resources are insufficient for resource selection.

[0097] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0098] The above describes in detail the method for selecting resources in D2D communication according to the embodiment of the present application. Figures 6 to 8 , describing the technical features described in the device and method embodiments according to the embodiments of the present application are applicable to the following device embodiments.

[0099] Figure 6 600 is a schematic block diagram of a terminal device according to an embodiment of the present application. Figure 6 As shown, the terminal device 600 is a first terminal device, and the first terminal device 600 includes a physical layer module 610 and a high layer module 620. Among them:

[0100] The physical layer module 610 is configured to perform resource sensing in a first resource pool on a first carrier within a time interval [n+T1, n+T2] to obtain a first resource set, where resources in the first resource set can be used by the first terminal device to transmit a target service, wherein n is a time when the target service arrives, or a time when the first terminal device determines that resource sensing is required, and 0≤T1<T2;

[0101] The physical layer module 610 is further used to report the information of the first resource set to the high-level module 620 .

[0102] Therefore, the physical layer of the terminal device reports to the higher layer the first set of resources that it has determined can be used to transmit the target service, so that the higher layer of the terminal device can allocate resources to the terminal device or instruct it to perform resource reselection and other operations based on the report of the physical layer. In this way, the terminal device can obtain transmission resources for transmitting the target service even when the available resources are insufficient for resource selection.

[0103] Optionally, the physical layer module 610 is specifically used to: perform resource listening in the first resource pool within the time interval [n+T1, n+T2] to obtain a second resource set, wherein the total number of resources in the first resource pool on the first carrier within the time interval [n+T1, n+T2] is equal to A, and the number of resources in the second resource set is equal to B; if B / A is greater than or equal to a threshold Q, the physical layer module 610 detects the received signal strength indication RSSI on the B resources in the second resource set, and takes the P resources with the smallest RSSI measurement value in the second resource set as the first resource set; if B / A is less than the threshold Q, the physical layer module 610 determines the second resource set as the first resource set.

[0104] Optionally, P is determined based on Q and A.

[0105] Optionally, the second resource set does not include resources occupied and / or reserved by a second terminal device, wherein the second terminal device is a terminal device using a first transmission mode and the first terminal device is a terminal device using a second transmission mode.

[0106] Optionally, the time and frequency resources used by the terminal device using the first transmission mode for service transmission are resources scheduled by the network device, and the time and frequency resources used by the terminal device using the second transmission mode for service transmission are resources autonomously selected by the terminal device in the resource pool corresponding to the second transmission mode.

[0107] Optionally, the physical layer module 610 is specifically used to: report the resources in the first resource set to the high-level module 620.

[0108] Optionally, the physical layer module 610 is specifically used to: report resource shortage indication information to the high-level module 620, and the resource shortage indication information is used to indicate that the ratio of the number of resources B in the second resource set to the total number of resources A in the first resource pool on the first carrier within the time interval [n+T1, n+T2] is less than the threshold Q.

[0109] Optionally, the high-level module 620 is also used to: determine, in the first resource set, a target resource for the first terminal device to transmit the target service; send a first indication message to the physical layer module 610, wherein the first indication message is used to indicate the target resource; and the physical layer module 610 is also used to transmit the target service on the target resource according to the first indication message.

[0110] Optionally, the high-level module 620 is further used to: send second indication information to the physical layer module 610, wherein the second indication information is used to instruct the physical layer module 610 to reselect a first resource set that can be used to transmit the target service in a second resource pool on the first carrier.

[0111] Optionally, the high-level module 620 is further used to: send third indication information to the physical layer module 610, wherein the third indication information is used to instruct the physical layer module 610 to reselect a first resource set that can be used to transmit the target service from a third resource pool on the second carrier.

[0112] Optionally, the physical layer module 610 is further used to: receive configuration information sent by the network device, where the configuration information is used to indicate the threshold Q; or obtain the threshold Q pre-stored in the first terminal device.

[0113] It should be understood that the terminal device 600 can execute the corresponding operations of the method 400 executed by the first terminal device in the above method embodiment, which will not be described again for the sake of brevity.

[0114] Figure 7 is a schematic structural diagram of a terminal device 700 according to an embodiment of the present application. Figure 7 As shown, the terminal device 700 includes a processor 710, a transceiver 720 and a memory 730, wherein the processor 710, the transceiver 720 and the memory 730 communicate with each other through an internal connection path. The memory 730 is used to store instructions, and the processor 710 is used to execute the instructions stored in the memory 730 to control the transceiver 720 to receive or send signals.

[0115] Optionally, the processor 710 may call the program code stored in the memory 730 to execute the corresponding operations of the method 400 executed by the first terminal device in the method embodiment, which will not be described in detail here for the sake of brevity.

[0116] It should be understood that the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and performed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0117] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0118] Figure 8 It is a schematic structural diagram of the system chip of an embodiment of the present application. Figure 8 The system chip 800 includes an input interface 801, an output interface 802, at least one processor 803, and a memory 804. The input interface 801, the output interface 802, the processor 803, and the memory 804 are interconnected through an internal connection path. The processor 803 is used to execute the code in the memory 804.

[0119] Optionally, when the code is executed, the processor 803 may implement the method 400 executed by the first terminal device in the method embodiment. For the sake of brevity, it will not be described in detail here.

[0120] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0121] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0122] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0123] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0124] In addition, each functional unit in each embodiment of the present application may be integrated into one monitoring unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0125] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0126] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for selecting resources in device-to-device D2D communication, characterized in that: The method comprises: The physical layer of the first terminal device performs resource listening in the first resource pool on the first carrier within the time interval [n+T1, n+T2] to obtain a first resource set, and the resources in the first resource set can be used by the first terminal device to transmit a target service, wherein n is the time when the target service arrives, or the time when the first terminal device determines that resource listening is required, and 0≤T1<T2; The physical layer of the first terminal device reports the information of the first resource set to the higher layer of the first terminal device; The physical layer of the first terminal device performs resource sensing in a first resource pool on a first carrier within a time interval [n+T1, n+T2] to obtain a first resource set, including: The physical layer of the first terminal device performs resource sensing in the first resource pool within the time interval [n+T1, n+T2] to obtain a second resource set, wherein the total number of resources in the first resource pool on the first carrier within the time interval [n+T1, n+T2] is equal to A, and the number of resources in the second resource set is equal to B; If B / A is greater than or equal to the threshold Q, the physical layer of the first terminal device detects the received signal strength indication RSSI on the B resources in the second resource set, and uses the P resources with the smallest RSSI measurement value in the second resource set as the first resource set; If B / A is less than the threshold Q, the physical layer of the first terminal device determines the second resource set as the first resource set; The second resource set does not include resources occupied and / or reserved by a second terminal device, wherein the second terminal device is a terminal device using a first transmission mode, and the first terminal device is a terminal device using a second transmission mode.

2. The method according to claim 1, characterized in that P is determined based on Q and A.

3. The method according to claim 1, characterized in that The time-frequency resources used by the terminal device using the first transmission mode for service transmission are the resources scheduled by the network device; the time-frequency resources used by the terminal device using the second transmission mode for service transmission are the resources autonomously selected by the terminal device using the second transmission mode in the resource pool corresponding to the second transmission mode.

4. The method according to any one of claims 1 to 3, characterized in that The physical layer of the first terminal device reports information about the first resource set to a higher layer of the first terminal device, including: The physical layer of the first terminal device reports the resources in the first resource set to the higher layer of the first terminal device.

5. The method according to any one of claims 1 to 3, characterized in that The physical layer of the first terminal device reports information about the first resource set to a higher layer of the first terminal device, including: The physical layer of the first terminal device reports resource shortage indication information to the high layer of the first terminal device, and the resource shortage indication information is used to indicate that the ratio of the number of resources B in the second resource set to the total number of resources A in the first resource pool on the first carrier within the time interval [n+T1, n+T2] is less than the threshold Q.

6. The method according to any one of claims 1 to 3, characterized in that The method further comprises: The upper layer of the first terminal device determines, in the first resource set, a target resource for the first terminal device to transmit the target service; The upper layer of the first terminal device sends first indication information to the physical layer of the first terminal device, where the first indication information is used to indicate the target resource; The physical layer of the first terminal device transmits the target service on the target resource according to the first indication information.

7. The method according to any one of claims 1 to 3, characterized in that The method further comprises: The upper layer of the first terminal device sends second indication information to the physical layer of the first terminal device, and the second indication information is used to instruct the physical layer of the first terminal device to reselect a first resource set that can be used to transmit the target service in a second resource pool on the first carrier.

8. The method according to any one of claims 1 to 3, characterized in that The method further comprises: The upper layer of the first terminal device sends third indication information to the physical layer of the first terminal device, and the third indication information is used to instruct the physical layer of the first terminal device to reselect a first resource set that can be used to transmit the target service from a third resource pool on a second carrier.

9. The method according to any one of claims 1 to 3, characterized in that Before the physical layer of the first terminal device performs resource sensing in the first resource pool within the time interval [n+T1, n+T2] to obtain a second resource set, the method further includes: The first terminal device receives configuration information sent by the network device, where the configuration information is used to indicate the threshold Q; or The first terminal device obtains the threshold Q pre-stored in the first terminal device.

10. A terminal device, characterized in that: The terminal device is a first terminal device, wherein the first terminal device includes a physical layer module and a high layer module, wherein: The physical layer module is used to perform resource listening in a first resource pool on a first carrier within a time interval [n+T1, n+T2] to obtain a first resource set, where the resources in the first resource set can be used by the first terminal device to transmit a target service, wherein n is a time when the target service arrives, or a time when the first terminal device determines that resource listening is required, and 0≤T1<T2; The physical layer module is further used to report information of the first resource set to the high-level module; The physical layer module is specifically used for: In the time interval [n+T1, n+T2], perform resource sensing in the first resource pool to obtain a second resource set, wherein the total number of resources in the first resource pool on the first carrier in the time interval [n+T1, n+T2] is equal to A, and the number of resources in the second resource set is equal to B; If B / A is greater than or equal to the threshold Q, detect the received signal strength indication RSSI on the B resources in the second resource set, and use the P resources with the smallest RSSI measurement value in the second resource set as the first resource set; If B / A is less than the threshold Q, determining the second resource set as the first resource set; The second resource set does not include resources occupied and / or reserved by a second terminal device, wherein the second terminal device is a terminal device using a first transmission mode, and the first terminal device is a terminal device using a second transmission mode.

11. The terminal device according to claim 10, characterized in that: P is determined based on Q and A.

12. The terminal device according to claim 10, characterized in that: The time-frequency resources used by the terminal device using the first transmission mode for service transmission are the resources scheduled by the network device, and the time-frequency resources used by the terminal device using the second transmission mode for service transmission are the resources independently selected by the terminal device in the resource pool corresponding to the second transmission mode.

13. The terminal device according to any one of claims 10 to 12, characterized in that: The physical layer module is specifically used for: Report the resources in the first resource set to the high-level module.

14. The terminal device according to any one of claims 10 to 12, characterized in that: The physical layer module is specifically used for: Report resource shortage indication information to the high-level module, where the resource shortage indication information is used to indicate that the ratio of the number of resources B in the second resource set to the total number of resources A in the first resource pool on the first carrier within the time interval [n+T1, n+T2] is less than the threshold Q.

15. The terminal device according to any one of claims 10 to 12, characterized in that: The high-level modules are also used to: Determine, in the first resource set, a target resource for the first terminal device to transmit the target service; Sending first indication information to the physical layer module, where the first indication information is used to indicate the target resource; The physical layer module is further used to transmit the target service on the target resource according to the first indication information.

16. The terminal device according to any one of claims 10 to 12, characterized in that: The high-level modules are also used to: Second indication information is sent to the physical layer module, where the second indication information is used to instruct the physical layer module to reselect a first resource set that can be used to transmit the target service from a second resource pool on the first carrier.

17. The terminal device according to any one of claims 10 to 12, characterized in that: The high-level modules are also used to: Third indication information is sent to the physical layer module, where the third indication information is used to instruct the physical layer module to reselect a first resource set that can be used to transmit the target service from a third resource pool on the second carrier.

18. The terminal device according to any one of claims 10 to 12, characterized in that: The physical layer module is also used for: Receive configuration information sent by the network device, where the configuration information is used to indicate the threshold Q; or obtain the threshold Q pre-stored in the first terminal device.

19. A terminal device, characterized in that: The terminal device comprises: a processor and a memory, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory. When the processor executes the instructions stored in the memory, the execution causes the terminal device to execute the method as described in any one of claims 1-9.

20. A computer-readable storage medium storing a program, wherein the program enables a terminal device to execute the method according to any one of claims 1 to 9.

21. A system chip, comprising an input interface, an output interface, a processor and a memory, wherein the processor is used to execute instructions stored in the memory, and when the instructions are executed, the processor can implement the method according to any one of claims 1 to 9.