Data transmission method and communication device

By determining the priority range supported by resources and sending instruction information in D2D transmission, the problem of repeated resource recommendation is solved, resource overhead is reduced, and transmission performance is improved.

CN113993220BActive Publication Date: 2024-09-10HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010942994.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-07-27
Filing Date
2020-09-09
Publication Date
2024-09-10
Estimated Expiration
2040-09-09

AI Technical Summary

Technical Problem

In the scenario of device-to-device (D2D) data transmission, the existing technology results in high resource overhead because the receiving end needs to assume the data priority of the sending end, which leads to repeated recommendation of resources and cannot effectively reduce resource waste.

Method used

The first terminal device determines the priority range supported by each resource and sends indication information to the second terminal device. The second terminal device determines the transmission resource according to the indication information and data priority, thereby avoiding repeated recommendation of resources.

Benefits of technology

It effectively reduces resource overhead, improves transmission performance, ensures that resources are reasonably allocated, and reduces unnecessary interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113993220B_ABST
    Figure CN113993220B_ABST
Patent Text Reader

Abstract

The present application provides a method and a communication device for transmitting data. In the method, a first terminal device can determine a priority range supported by each resource, and then send first indication information for indicating the priority range resources supported by each resource for transmission to a second terminal device, so that the overhead caused by a resource determined by the first terminal device being recommended multiple times by the first terminal device to the second terminal device can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and more particularly to a method and a communication device for transmitting data in the field of communications. Background Art

[0002] In a scenario of device-to-device (D2D) data transmission, resources required for device-to-device data transmission may be scheduled by a network device, or may be resources perceived by the device sending the data.

[0003] In the prior art, a receiving end that receives data can recommend resources for a sending end that sends data, and the sending end can determine the resources for sending data in the resources recommended by the receiving end in combination with the interference of the sending end. Specifically, the receiving end can receive a signal sent by other devices on a certain resource and obtain the signal strength value of the signal, the signal is used to reserve at least one resource, and the signal can include the priority of the transmission reserved by other terminal devices. The receiving end needs to determine the signal strength threshold value in combination with the priority of the data to be sent by the sending end and the transmission priority reserved by other terminal devices. The receiving end determines whether the at least one reserved resource is available according to the signal strength value of the signal and the signal strength threshold value, so that the receiving end recommends the available recommended resources to the sending end. Since the receiving end does not know the priority of the data to be sent by the sending end, the receiving end will assume that the priority of the data to be sent by the sending end is high priority and low priority, and the receiving end can recommend two groups of resources to the sending end based on this assumption. Since the higher the priority of the data to be sent by the sending end, the higher the corresponding signal strength threshold value, there are more resources that are easy to meet the requirements, and the receiving end can recommend more resources. The lower the priority of the data to be sent by the sender, the lower the corresponding signal strength threshold value, and the fewer resources that meet the requirements, and the fewer resources recommended by the receiver. Therefore, the signal strength values ​​of the signals on some resources meet both the lower signal strength threshold value and the higher signal strength threshold value, so these resources will be recommended to the sender by the receiver multiple times, resulting in a large resource overhead. Summary of the invention

[0004] The embodiments of the present application provide a method and a communication device for transmitting data, which can reduce resource overhead.

[0005] In a first aspect, a method for transmitting data is provided, which can be executed by a first terminal device, and the first terminal device can be a device capable of supporting the first terminal device to implement the functions required by the method, such as a chip system. The method includes: the first terminal device determines a priority range for each resource in a first resource set to support transmission; the first terminal device sends first indication information to a second terminal device, the first indication information is used to indicate a priority range for each resource in a second resource set to support transmission, and the second resource set is determined based on the first resource set;

[0006] The first terminal device receives first data sent by the second terminal device based on first resources, where the first resource is determined based on the first indication information and a first priority of the first data.

[0007] In the above scheme, the first terminal device can determine the priority range supported by each resource, and then send the first indication information for indicating the priority range resources supported by each resource to the second terminal device. The second terminal device can determine the first resource for transmitting the first data according to the priority range of transmission supported by each resource indicated by the first indication information and the first priority of the first data to be transmitted to the first terminal device, and the second terminal device can transmit the first data to the first terminal device based on the determined first resource. In this way, the overhead caused by a resource determined by the first terminal device being recommended to the second terminal device multiple times by the first terminal device can be avoided.

[0008] Optionally, the first resource set is a set consisting of part or all of the resources in the selection window.

[0009] Optionally, the second resource set is a subset or a true subset of the first resource set.

[0010] Optionally, the priorities included in the priority range supported by each resource in the second resource set for transmission are one or more continuous priorities. In other words, the priorities included in the priority range are priorities from high to low or from low to high and there are no other priorities between any two adjacent priorities.

[0011] Optionally, the first terminal device receives the first data sent by the second terminal device based on the first resource, including: the first terminal device receives the first data sent by the second terminal device on the first resource, or the first terminal device receives the first data sent by the second terminal device on the third resource determined based on the first resource.

[0012] In some possible implementations, the first indication information is the lowest priority of transmission supported by each resource in the second resource set, and the lowest priority of transmission supported on each resource is used to indicate the priority range of transmission supported by each resource.

[0013] In some possible implementations, the first indication information is used to indicate the priority range supported for transmission by each resource in the second resource set, specifically including: the first indication information is used to indicate the resources corresponding to each priority in the first priority set as the lowest priority, and the second resource set includes the resources corresponding to each priority in the first priority set as the lowest priority.

[0014] In the above scheme, if a priority level corresponds to one or more resources of the lowest priority level, the first indication information may indicate one or more resources of the lowest priority level, thus avoiding the overhead caused by the first indication information needing to indicate the lowest priority level multiple times.

[0015] In some possible implementations, the first terminal device determines a priority range for each resource in a first resource set in a selection window to support transmission, including: the first terminal device determines a signal strength value for each resource in the first resource set; the first terminal device determines a priority range for each resource to support transmission based on the signal strength value of each resource and a first signal strength threshold value set.

[0016] In the above scheme, the first terminal device determines the priority range for each resource to support transmission based on the signal strength value of each resource and the first signal strength threshold value set, so that the resources determined by the first terminal device take into account the interference around the first terminal device, which is beneficial for the second terminal device to take into account the interference of the first terminal device when selecting the first resource according to the first indication information, thereby facilitating improving transmission performance.

[0017] The first signal strength threshold value set is a set consisting of one or more signal strength threshold values ​​corresponding to each priority in the second priority set.

[0018] In some implementations, the method further includes: the first terminal device determining the second signal strength threshold value set in the first signal strength threshold value set according to a second priority of a reserved transmission on a second resource in the first resource set.

[0019] The second signal strength threshold value set mentioned above is a set consisting of one or more signal strength threshold values ​​corresponding to the second priority in the second priority set.

[0020] In some possible implementations, the first terminal device determines the second signal strength threshold value set in the first signal strength threshold value set based on the second priority reserved for transmission on the second resource in the first resource set, including: the first terminal device determines the second signal strength threshold value set in the first signal strength threshold value set based on each priority in the second priority set and the second priority of the second data.

[0021] In some possible implementations, the first terminal device determines, according to the signal strength value of each resource and the first signal strength threshold value set, a priority range for each resource to support transmission, including:

[0022] The first terminal device determines a first signal strength threshold value based on the second signal strength threshold value set and the first signal strength value on the second resource, the first signal strength threshold value is a minimum value in the second signal strength threshold value set that is greater than the first signal strength value, the first signal strength threshold value corresponds to a third priority in the second priority set, and the priority range supported for transmission by the first resource includes priorities in the second priority set that are higher than or equal to the third priority.

[0023] In the above scheme, the first terminal device can determine the first signal strength threshold value that is closest to the first signal strength value and larger than the first signal strength value in the second signal strength threshold value set, and determine the third priority corresponding to the first signal strength threshold value as the lowest priority supported for transmission on the second resource. In this way, the priority range supported for transmission on the second resource includes the third priority and priorities higher than the third priority.

[0024] In some possible implementations, the priority range for transmission supported by each resource in the second resource set indicated by the first indication information is greater than or equal to the priority range for transmission supported by each resource in the first resource set except the second resource set.

[0025] In the above scheme, the priority range supported for transmission by each resource in the second resource set indicated by the first indication information is greater than the priority range supported for transmission by the remaining resources in the first resource set. In this way, when the second terminal device selects resources according to the first indication information, the larger the priority range, the greater the possibility that the priority range includes the first priority of the first data, and the greater the possibility that the resource corresponding to the priority range will be selected by the second terminal device, which is beneficial to increase the number of resources that the second terminal device can select, thereby facilitating the second terminal device to select the first resource for transmitting the first data, which is beneficial to transmission performance.

[0026] In some possible implementations, the method further includes: the first terminal device receiving second indication information sent by the second terminal device, where the second indication information is used to indicate a third resource for the first terminal device to send the first indication information;

[0027] The first terminal device sending the first indication information to the second terminal device includes: the first terminal device sending the first indication information to the second terminal device on the third resource.

[0028] In the above solution, the first terminal device sends the first indication information on the third resource indicated by the second terminal device, which makes it possible for the first terminal device to transmit the first indication information to the second terminal device.

[0029] Optionally, the third resource used by the first terminal device to send the first indication information may also be a preset resource.

[0030] In some possible implementations, the method further includes: the first terminal device determines a first number of resources in the second resource set based on the number of subchannels included in the third resource and the number of symbols in the time slot included in the third resource for transmitting the first indication information.

[0031] In the above scheme, the first terminal device can determine the first number of resources in the second resource set according to the number of subchannels included in the third resource indicated by the second indication information and the number of symbols used to transmit the first indication information in the time slot included in the third resource. For example, the more subchannels the third resource includes and / or the more symbols used to transmit the first indication information in the time slot, the larger the first number of resources in the second resource set; the fewer subchannels the third resource includes and / or the fewer symbols used to transmit the first indication information in the time slot, the smaller the first number of resources in the second resource set. In this way, the overhead caused by the second terminal device needing to additionally indicate the first number can be avoided.

[0032] In some possible implementations, before the first terminal device determines the priority range for each resource in the first resource set in the selection window to support transmission, the method further includes: the first terminal device receives third indication information sent by the second terminal device, and the third indication information is used to indicate that the number of resources in the second resource set that the first terminal device needs to determine is a first number.

[0033] In the above scheme, the first terminal device determines that a first amount of resources is required based on the third indication information, so as to avoid the first indication information sent by the first terminal device to the second terminal device indicating too many or too few resources, so that the amount of resources determined by the first terminal device meets the needs of the second terminal device.

[0034] In some possible implementations, the method also includes: if the number of resources in the first resource set determined by the first terminal device does not meet the first number, the first terminal device increases at least one signal strength threshold value in the first signal strength threshold value set or increases at least one signal strength threshold value in the second signal strength threshold value set, and the increased first signal strength threshold value set or the increased second signal strength threshold value set is used to determine the priority range for each resource in the first resource set that meets the first number to support transmission.

[0035] In the above scheme, since the signal strength threshold value is higher, the first terminal device can determine more resources. If the number of resources in the first resource set determined by the first terminal device does not meet the first number, the first terminal device increases one or more signal strength threshold values ​​in the signal strength threshold value set. The first terminal device determines the resources that meet the first number based on the increased signal strength threshold value set, so that the first terminal device can recommend to the second terminal device the resources that meet the needs of the second terminal device.

[0036] In some possible implementations, the first resource set is equal to the second resource set, the number of resources in the second resource set is a second number, and the second number is smaller than the first number.

[0037] In the above scheme, if the number of resources in the first resource set determined by the first terminal device does not meet the first number indicated by the second terminal device through the third indication information or the first number determined by the first terminal device itself, the first terminal device indicates the same number of resources through the first indication information as it determines. In this way, it can avoid the first terminal device from causing large interference on the determined resources in order to determine the resources that meet the first number, which is not conducive to the second terminal device transmitting the first data to the first terminal device.

[0038] In a second aspect, a method for transmitting data is provided, comprising: a second terminal device receiving first indication information from a first terminal device, the first indication information being used to indicate a priority range supported for transmission by each resource in a second resource set; the second terminal device determining a first resource according to the first indication information and a first priority of first data, the priority range supported for transmission by the first resource including the first priority;

[0039] The second terminal device sends the first data to the first terminal device based on the first resource.

[0040] In some possible implementations, the first indication information is the lowest priority of transmission supported by each resource in the second resource set, and the lowest priority of transmission supported on each resource is used to indicate the priority range of transmission supported by each resource.

[0041] In some possible implementations, the first indication information is used to indicate a priority range that each resource in the second resource set supports transmission, specifically including:

[0042] The first indication information is used to indicate the resources corresponding to each priority level in the first priority set as the lowest priority level, and the second resource set includes the resources corresponding to each priority level in the first priority set as the lowest priority level.

[0043] In some possible implementations, the method further includes:

[0044] The second terminal device sends second indication information to the first terminal device, where the second indication information is used to instruct the first terminal device to send a third resource of the first indication information;

[0045] The receiving, by the second terminal device, the first indication information sent by the first terminal device includes:

[0046] The second terminal device receives the first indication information sent by the first terminal device on the third resource.

[0047] In some possible implementations, before the second terminal device receives the first indication information from the first terminal device, the method further includes:

[0048] The second terminal device sends third indication information to the first terminal device, where the third indication information is used to indicate that the number of resources in the second resource set that the first terminal device needs to determine is a first number.

[0049] According to a third aspect, a communication device is provided, comprising a processing unit and a transceiver unit, wherein the processing unit is used to determine a priority range for transmission supported by each resource in a first resource set; the transceiver unit is used to send first indication information to a second terminal device, wherein the first indication information is used to indicate a priority range for transmission supported by each resource in a second resource set, and the second resource set is determined based on the first resource set; the transceiver unit is also used to receive first data sent by the second terminal device based on the first resource, and the first resource is determined based on the first indication information and the first priority of the first data.

[0050] In some possible implementations, the first indication information is the lowest priority of transmission supported by each resource in the second resource set, and the lowest priority of transmission supported on each resource is used to indicate the priority range of transmission supported by each resource.

[0051] In some possible implementations, the first indication information is used to indicate the priority range supported for transmission by each resource in the second resource set, specifically including: the first indication information is used to indicate the resources corresponding to each priority in the first priority set as the lowest priority, and the second resource set includes the resources corresponding to each priority in the first priority set as the lowest priority.

[0052] In some possible implementations, the processing unit is specifically used to determine a signal strength value of each resource in the first resource set; and determine a priority range for transmission supported by each resource based on the signal strength value of each resource and a first signal strength threshold value set.

[0053] In some possible implementations, the processing unit is further configured to determine the second signal strength threshold value set in the first signal strength threshold value set according to a second priority of a reserved transmission on a second resource in the first resource set.

[0054] In some possible implementations, the processing unit is specifically configured to determine the second signal strength threshold value set in the first signal strength threshold value set according to each priority in the second priority set and the second priority of the second data.

[0055] In some possible implementations, the processing unit is specifically used to determine a first signal strength threshold value based on the second signal strength threshold value set and the first signal strength value on the second resource, the first signal strength threshold value is a minimum value in the second signal strength threshold value set that is greater than the first signal strength value, the first signal strength threshold value corresponds to a third priority in the second priority set, and the priority range supported for transmission by the first resource includes priorities in the second priority set that are higher than or equal to the third priority.

[0056] In some possible implementations, the priority range for transmission supported by each resource in the second resource set indicated by the first indication information is greater than or equal to the priority range for transmission supported by each resource in the first resource set except the second resource set.

[0057] In some possible implementations, the transceiver unit is also used to receive second indication information sent by the second terminal device, and the second indication information is used to instruct the communication device to send a third resource for the first indication information; the transceiver unit is specifically used to send the first indication information to the second terminal device on the third resource.

[0058] In some possible implementations, the processing unit is further used to determine a first number of resources in the second resource set based on the number of subchannels included in the third resource and the number of symbols in the time slot included in the third resource for transmitting the first indication information.

[0059] In some possible implementations, the transceiver unit is also used to receive third indication information sent by the second terminal device before determining the priority range of the number of resources supported by each resource in the first resource set, and the third indication information is used to indicate that the number of resources in the second resource set that the communication device needs to determine is the first number.

[0060] In some possible implementations, the processing unit is also used to: if the number of resources in the first resource set determined by the communication device does not meet the first number, increase at least one signal strength threshold value in the first signal strength threshold value set or increase at least one signal strength threshold value in the second signal strength threshold value set, and the increased first signal strength threshold value set or the increased second signal strength threshold value set is used to determine a priority range for each resource in the first resource set that meets the first number to support transmission.

[0061] In some possible implementations, the first resource set is equal to the second resource set, the number of resources in the second resource set is a second number, and the second number is smaller than the first number.

[0062] In a fourth aspect, a communication device is provided, comprising a processing unit and a transceiver unit, wherein the transceiver unit is used to receive first indication information from a first terminal device, the first indication information being used to indicate a priority range supported for transmission by each resource in a second resource set; the processing unit is used to determine a first resource based on the first indication information and a first priority of first data, the priority range supported for transmission by the first resource including the first priority; and the transceiver unit is also used to send the first data to the first terminal device based on the first resource.

[0063] In some possible implementations, the first indication information is the lowest priority of transmission supported by each resource in the second resource set, and the lowest priority of transmission supported on each resource is used to indicate the priority range of transmission supported by each resource.

[0064] In some possible implementations, the first indication information is used to indicate a priority range that each resource in the second resource set supports transmission, specifically including:

[0065] The first indication information is used to indicate the resources corresponding to each priority level in the first priority set as the lowest priority level, and the second resource set includes the resources corresponding to each priority level in the first priority set as the lowest priority level.

[0066] In some possible implementations, the transceiver unit is also used to send second indication information to the first terminal device, and the second indication information is used to indicate a third resource for the first terminal device to send the first indication information; the transceiver unit is specifically used to receive the first indication information sent by the first terminal device on the third resource.

[0067] In some possible implementations, the transceiver unit is further used to send third indication information to the first terminal device before receiving the first indication information from the first terminal device, and the third indication information is used to indicate that the number of resources in the second resource set that the first terminal device needs to determine is a first number.

[0068] In a fifth aspect, a communication device is provided, comprising a processor, the processor being coupled to a memory, the memory being used to store computer programs or instructions, and the processor being used to execute the computer programs or instructions stored in the memory, so that the method in the first aspect is executed.

[0069] For example, the processor is used to execute the computer program or instructions stored in the memory, so that the device performs the method in the first aspect.

[0070] Optionally, the device includes one or more processors.

[0071] Optionally, the device may further include a memory coupled to the processor.

[0072] Optionally, the device may include one or more memories.

[0073] Optionally, the memory may be integrated with the processor, or provided separately.

[0074] Optionally, the device may further include a transceiver.

[0075] In a sixth aspect, a communication device is provided, comprising a processor, the processor being coupled to a memory, the memory being used to store computer programs or instructions, and the processor being used to execute the computer programs or instructions stored in the memory, so that the method in the second aspect is executed.

[0076] For example, the processor is used to execute the computer program or instructions stored in the memory, so that the device executes the method in the second aspect.

[0077] Optionally, the device includes one or more processors.

[0078] Optionally, the device may further include a memory coupled to the processor.

[0079] Optionally, the device may include one or more memories.

[0080] Optionally, the memory may be integrated with the processor, or provided separately.

[0081] Optionally, the device may further include a transceiver.

[0082] In a seventh aspect, the present application provides a communication system, which includes the communication device provided in the third aspect and the communication device provided in the fourth aspect; or, the system includes the communication device provided in the fifth aspect and the communication device provided in the sixth aspect.

[0083] In an eighth aspect, a computer-readable storage medium is provided, on which is stored a computer program (also referred to as instructions or codes) for implementing the method in the first aspect.

[0084] For example, when the computer program is executed by a computer, the computer can execute the method in the first aspect. The computer can be a communication device.

[0085] In a ninth aspect, a computer-readable storage medium is provided, on which is stored a computer program (also referred to as instructions or codes) for implementing the method in the second aspect.

[0086] For example, when the computer program is executed by a computer, the computer can execute the method in the second aspect. The computer can be a communication device.

[0087] In a tenth aspect, the present application provides a chip, including a processor. The processor is used to read and execute a computer program stored in a memory to perform the method in the first aspect and any possible implementation thereof.

[0088] Optionally, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.

[0089] Further optionally, the chip also includes a communication interface.

[0090] In an eleventh aspect, the present application provides a chip, including a processor, wherein the processor is configured to read and execute a computer program stored in a memory to execute the method in the second aspect and any possible implementation thereof.

[0091] Optionally, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.

[0092] Further optionally, the chip also includes a communication interface.

[0093] In a twelfth aspect, the present application provides a computer program product, the computer program product comprising a computer program (also referred to as instructions or codes), wherein when the computer program is executed by a computer, the computer implements the method in the first aspect. The computer may be a communication device.

[0094] In a thirteenth aspect, the present application provides a computer program product, the computer program product comprising a computer program (also referred to as instructions or codes), wherein when the computer program is executed by a computer, the computer implements the method in the second aspect. The computer may be a communication device. BRIEF DESCRIPTION OF THE DRAWINGS

[0095] Figure 1 It is a schematic diagram of a communication system provided in an embodiment of the present application.

[0096] Figure 2 It is a schematic diagram of the perception window and the selection window provided in the embodiment of the present application.

[0097] Figure 3 It is a schematic diagram of a method for transmitting data provided in an embodiment of the present application.

[0098] Figure 4 It is a schematic diagram of another method for transmitting data provided in an embodiment of the present application.

[0099] Figure 5 This is a schematic diagram of the format of the first indication information provided in an embodiment of the present application.

[0100] Figure 6 This is another format diagram of the first indication information provided in an embodiment of the present application.

[0101] Figure 7 This is another format diagram of the first indication information provided in an embodiment of the present application.

[0102] Figure 8 This is another format diagram of the first indication information provided in an embodiment of the present application.

[0103] Fig. 9 It is a schematic diagram of a communication device provided in an embodiment of the present application.

[0104] Fig.10 It is a schematic diagram of another communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0106] It should be understood that the methods, situations, categories and divisions of the embodiments in the present application are only for the convenience of description and should not constitute special limitations. The features of various methods, categories, situations and embodiments can be combined without contradiction.

[0107] It should also be understood that the "first", "second" and "third" in the embodiments of the present application are only for distinction and should not constitute any limitation to the present application. It should also be understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0108] Figure 1 is a schematic diagram of an inter-device communication system 100. The wireless communication device may include one or more network devices, such as Figure 1 The terminal device 121 and the terminal device 122 can communicate with the network device 110, for example Figure 1 In the example, the network device 110 communicates with the terminal device 121. The link through which the terminal device 121 sends data to the network device 110 is called an uplink, and the link through which the terminal device 121 receives data sent by the network device 110 is called a downlink. Figure 1 As shown, the wireless communication system 100 may also include multiple terminal devices, such as Figure 1 The terminal device 121 and the terminal device 122 in the communication system. The terminal device 121 and the terminal device 122 can communicate directly with each other. The link for transmitting data between the terminal device 121 and the terminal device 122 is called a sidelink. For example, the terminal device 121 can send data to the terminal device 122 through the sidelink, and the terminal device 122 can send data to the terminal device 121 through the sidelink. Sidelinks are generally used in scenarios such as vehicle to everything (V2X) or device to device (D2D) where direct communication can be performed between devices. V2X communication can be regarded as a special case of D2D communication.

[0109] New radio (NR) access technology is the mainstream wireless communication technology at present. It can support V2X communication with lower latency and higher reliability according to V2X service characteristics and new service requirements. V2X is the foundation and key technology for realizing smart cars, autonomous driving, and intelligent transportation systems. V2X can include vehicle to network (V2N), vehicle to vehicle (V2V), vehicle to infrastructure (V2I), vehicle to pedestrian (V2P), etc. V2N communication is the most widely used form of vehicle networking at present. Its main function is to enable vehicles to connect to cloud servers through mobile networks and use navigation, entertainment, anti-theft and other application functions provided by cloud servers. V2V communication can be used for information exchange and reminders between vehicles. The most typical application is for anti-collision safety systems between vehicles. Through V2I communication, vehicles can communicate with roads and even other infrastructure, such as traffic lights and roadblocks, to obtain road management information such as traffic light signal timing. V2P communication can be used for safety warnings for pedestrians or non-motor vehicles on the road.

[0110] The terminal device 121 or the terminal device 122 may be fixed in position or movable. Figure 1 This is just a schematic diagram. The communication system may also include other network devices, such as wireless relay devices and wireless backhaul devices. Figure 1 The embodiments of the present application do not limit the types and quantities of network devices and terminal devices included in the mobile communication system.

[0111] In the mobile communication system 100, the terminal device 121 or the terminal device 122 is wirelessly connected to the network device in the mobile communication system. The network device 101 may be: a base station, an evolved node B (eNB), a home base station, an access point (AP) in a wireless fidelity (WIFI) system, a wireless relay node, a wireless backhaul node, a transmission point (TP) or a transmission and reception point (TRP), etc. It may also be a gNB in ​​an NR system, or it may also be a component or a part of a base station, such as a central unit (CU), a distributed unit (DU) or a baseband unit (BBU), etc.

[0112] The terminal device 121 or the terminal device 122 in the mobile communication system 100 may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device in the embodiment of the present application may be a mobile phone, a tablet computer (Pad), a computer with wireless transceiver function, or a wireless terminal used in scenes such as virtual reality (VR), augmented reality (AR), industrial control (industrial control), self driving, remote medical, smart grid, transportation safety, smart city, and smart home. In this application, the aforementioned terminal devices and chips applicable to the aforementioned terminal devices are collectively referred to as terminal devices. It should be understood that the embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device.

[0113] It should be understood that Figure 1 For ease of understanding only, terminal devices 121, terminal devices 122 and network devices 110 are schematically shown, but this should not constitute any limitation to the present application. The wireless communication system may also include a greater number of network devices, and may also include a greater or lesser number of terminal devices, and the present application does not limit this.

[0114] Taking the sidelink (SL) transmission in the V2X system as an example, the resources used when the terminal device 121 transmits data to the terminal device 122 may be based on the scheduling of the network device, or may be automatically sensed by the terminal device 122 or the terminal device 121.

[0115] LTE Rel-14 V2X proposes a sensing mechanism. Figure 2As shown, at the moment n when the transmission demand is determined, the terminal device 121 can determine the sensing window and the selection window according to the moment n. The interval between the sensing window and the selection window is a fixed value. For periodic transmission services, the terminal device 121 can receive signals sent by other terminal devices in the sensing window, and the terminal device 121 can reserve resources in the selection window according to the signal strength value of the received signal. Some resources in the sensing window may have signal transmission, and some resources may not have signal transmission. If the terminal device 121 does not detect any signal on a certain resource, it means that the resource corresponding to the resource in the selection window has not been reserved by other terminal devices, and the resource is available; if the terminal device 121 detects a signal on some resources, the terminal device 121 obtains the signal strength values ​​of the detected signals, and the terminal device 121 determines the interference of the corresponding resources in the selection window according to these signal strength values. If the interference is too large, it means that the resources in the selection window are unavailable, and if the interference is small, it means that the resources in the selection window are available. The terminal device 121 can determine the resources for transmitting data to the terminal device 122 according to the interference of the resources.

[0116] In Rel-17 V2X, terminal device 121 and terminal device 122 can exchange information, and terminal device 122 can perceive resources. The resources perceived by terminal device 122 are not used by terminal device 122, but the perceived resources are recommended to terminal device 121. Terminal device 121 determines the resources for transmitting data from the resources recommended by terminal device 122 in combination with its own interference. In this way, it can be ensured that the resources determined by terminal device 121 take into account both the interference of terminal device 121 and the interference of terminal device 122. Since the service is periodic, for example, terminal device 121 can determine the resource corresponding to perception window subframe 1 in the selection window according to the period, and there is a high probability that this service will also be present. At the same time, terminal device 121 infers that the signal strength of this service is consistent with the signal strength value on the resource corresponding to perception window subframe 1. Specifically, in the process of sensing resources, the terminal device 121 can receive a signal sent by other terminal devices in the resource corresponding to subframe 1 in the sensing window, and obtain the signal strength value of the signal, which is used to reserve at least one resource in the selection window. In other words, the resource corresponding to subframe 1 in the sensing window corresponds to at least one resource in the selection window, and the signal may include the priority of the other terminal devices for scheduled transmission. The terminal device 121 determines whether the resource corresponding to the resource corresponding to subframe 1 in the sensing window in the selection window will be recommended to the terminal device 122 in combination with the priority of the other terminal devices for scheduled transmission and the signal strength value of the signal. As shown in Table 1, pi in Table 1 represents the transmission priority reserved by the signal sent by other terminal devices on a resource, and pj in Table 1 represents the data priority transmitted by the terminal device 121 to the terminal device 122. If the data priority transmitted by the terminal device 121 to the terminal device 122 is 2, and the priority of the signal sent by other terminal devices on a resource for scheduled transmission is priority 3, the terminal device 121 determines the signal strength threshold value to be C2, wherein priority 1 shown in Table 1 is the highest priority and priority 8 is the lowest priority. The terminal device 121 compares the signal strength value of the signal sent by other terminal devices with the signal strength threshold value C2. If the signal strength value is lower than the signal strength threshold value C2, the terminal device 121 can recommend the resource to the terminal device 122. Since the higher the priority, the higher the corresponding signal strength threshold value, so that there are more resources in the selection window that are easy to meet the requirements, and the terminal device 121 can recommend more resources. The lower the priority, the lower the corresponding signal strength threshold value, so that there are fewer resources in the selection window that are easy to meet the requirements, and the terminal device 121 recommends fewer resources. Therefore, the signal strength threshold values ​​in Table 1 increase from bottom to top in a column, such as A1, A2, A3, A4, A5, and A6 from large to small in Table 1.

[0117] Table 1

[0118]

[0119] When the terminal device 121 needs to transmit data to the terminal device 122, since the terminal device 122 is a data receiving end, the terminal device 122 does not know the priority of the data transmitted by the terminal device 121. When determining the recommended resources, the terminal device 122 can only assume the priority of the data transmitted by the terminal device 121 to the terminal device 122, and then determine the corresponding signal strength threshold value, so as to determine the recommended resources. Assume that there are 8 levels of data priority as shown in Table 1, and the priority relationship is priority 1> priority 2> priority 3> priority 4> priority 5> priority 6> priority 7> priority 8. If the priority of the data transmitted by the terminal device 121 to the terminal device 122 assumed by the terminal device 122 is low, the lower the corresponding signal strength threshold value, the terminal device 122 will recommend fewer resources to the terminal device 121. If the actual priority of the data transmitted by the terminal device 121 to the terminal device 122 is higher than the priority assumed by the terminal device 122, this will result in fewer optional resources recommended by the terminal device 122 to the terminal device 121, and the transmission performance cannot be met. If terminal device 122 assumes that the priority of data transmitted by terminal device 121 to terminal device 122 is higher, the corresponding signal strength threshold value is higher, and terminal device 122 will recommend more resources to terminal device 121. If the actual priority of data transmitted by terminal device 121 to terminal device 122 is lower than the priority assumed by terminal device 122, the signal strength threshold value corresponding to the actual priority of data transmitted by terminal device 121 to terminal device 122 is lower than the signal strength threshold value corresponding to the priority assumed by terminal device 122, which will cause terminal device 121 to be unable to determine which resources among the resources recommended by terminal device 122 have signal strength values ​​that meet the signal strength threshold value corresponding to the actual priority of the data, thereby causing terminal device 121 to be unable to select resources to transmit data. In order to avoid this problem, terminal device 122 can respectively assume that the priority of data transmitted by terminal device 121 to terminal device 122 is higher and lower and recommend two groups of resources respectively. For example, the signal strength of resource 1 is lower than a low-priority signal strength threshold, which means that it meets the transmission requirements corresponding to the priority. At the same time, since the high-priority threshold is higher than the low-priority threshold, the signal strength of resource 1 is also lower than the high-priority threshold, causing resource 1 to appear both in the resources corresponding to the low priority and in the resources corresponding to the high priority, resulting in a waste of resources when transmitting auxiliary information.

[0120] As described above, the higher the priority, the higher the corresponding signal strength threshold value, and the more resources that meet the recommendation conditions. In other words, if a resource meets the recommendation conditions of low priority, it must also meet the recommendation conditions of high priority, and the resource will be recommended twice by the terminal device 122. For example, the terminal device 122 can assume that the priority of the terminal device 121 to transmit data to the terminal device 122 is priority 1 and priority 8, so that the terminal device 122 can determine the recommended resources corresponding to priority 1 and the recommended resources corresponding to priority 8. For example, referring to Table 2, when resources 1, resources 2, and resources 3 meet the recommendation requirements of priority 8, they will also meet the recommendation requirements of priority 1, which has a higher priority than priority 8. At this time, if the resources are recommended according to priority 1 and priority 8 respectively, there will be a problem of repeated recommendations. For example, resources 1, resources 2, and resources 3 will be recommended twice respectively, that is, there are a total of 4 resources, but they are recommended 7 times. In this way, the resource overhead used by the terminal device 122 to recommend resources is large.

[0121] Table 2

[0122] Priority 1 Resource 1, Resource 2, Resource 3, Resource 4 Priority 8 Resource 1, Resource 2, Resource 3

[0123] In the solution provided by the embodiment of the present application, the first terminal device that recommends resources can first determine the priority range supported by each resource, and then send indication information to the second terminal device to indicate the priority range supported by each resource. In this way, the problem of repeated recommendation of the same resource can be effectively solved, saving the resources required for recommending resources.

[0124] Combine the following Figure 3 A method 300 for transmitting data in an embodiment of the present application is described.

[0125] S301, the second terminal device sends a first message to the first terminal device.

[0126] When the second terminal device determines that data needs to be sent to the first terminal device, it may first send a first message to the first terminal device.

[0127] In some embodiments, the first message may be a trigger message used to trigger the first terminal device to feed back auxiliary information, wherein the auxiliary information may include a first indication information used to indicate the recommended resource and / or priority information corresponding to the recommended resource.

[0128] In other embodiments, the first message may be a configuration message, including information such as the resource of the auxiliary information fed back by the first terminal device, the number of the recommended resources fed back, etc. The resource of the auxiliary information fed back and the number of the recommended resources fed back may be sent through the same message or through different messages, which is not limited in the embodiments of the present application.

[0129] For example, the first message includes second indication information and third indication information, the second indication information is used to indicate the resource of the feedback auxiliary information, and the third indication information is used to indicate the number of feedback recommended resources.

[0130] It is understandable that, in other embodiments, the number of feedback recommended resources may also be calculated by the size of the resource of the feedback auxiliary information indicated by the second indication information, without the need for a separate indication by the second terminal device.

[0131] In some other embodiments, the first message may also include a trigger message and a configuration message at the same time.

[0132] In some embodiments, the second terminal device may send the first message to the first terminal device via a physical side link shared channel (PSSCH).

[0133] It is understandable that S301 is an optional step, and the first terminal device can determine whether to feed back recommended resources to the second terminal device based on other conditions. For example, when the first terminal device determines a sufficient number of recommended resources, it can actively send auxiliary information to the second terminal device.

[0134] S302: The first terminal device determines a minimum priority level for at least one resource to support transmission.

[0135] It can be understood that, in some embodiments, the first terminal device may also determine a priority range for at least one resource to support transmission.

[0136] There are various ways to determine the minimum priority of at least one resource to support transmission.

[0137] Method 1:

[0138] a) The first terminal device may determine the transmission priority corresponding to the resource reserved by the signal and the signal strength of the signal according to the received signal. Figure 2, the first terminal device receives a signal sent by the third terminal device on the resources corresponding to subframe 1 of the sensing window. This signal reserves the resources corresponding to subframe 1 of the selection window, and the transmission priority is priority 2. Then the first terminal device can determine that the transmission priority of the resources corresponding to subframe 1 of the selection window being reserved is priority 2. In some other embodiments, if the resources corresponding to subframe 1 of the selection window are reserved multiple times, it is determined that the reserved transmission priority is the highest reserved transmission priority. For example, the resources corresponding to subframe 1 of the selection window are reserved by the first signal and the second signal. The transmission priority reserved by the first signal is priority 3, and the transmission priority reserved by the second signal is priority 2. And the priority of priority 2 is higher than that of priority 3, so the transmission priority of the resources corresponding to subframe 1 of the selection window being reserved is priority 2. The signal strength of the second signal is the signal strength corresponding to the resources corresponding to subframe 1 of the selection window.

[0139] b) The first terminal device determines the lowest priority supported by the resources according to the signal strength value of the signal and the transmission priority reserved by the signal.

[0140] In some embodiments, the transmission priority reserved by the signal is pi, and a certain column of Table 1 can be determined. The first terminal device can compare the signal strength value of the signal with the signal strength threshold values SL-ThresRSRP_pi_pj corresponding to each priority. When the signal strength value of the reserved signal is between the signal strength threshold values corresponding to two adjacent priorities, that is: SL-ThresRSRP_pi_pj1 < RSRP <= SL-ThresRSRP_pi_pj2, where SL-ThresRSRP_pi_pj1 and SL-ThresRSRP_pi_pj2 represent two adjacent signal strength threshold values in a column of Table 1, it can be determined that the priority that the resources can carry for transmission is j2. Since the higher the priority, the higher the corresponding threshold value. If the resources can carry a transmission with priority j2, then the resources can also carry transmissions with priorities higher than j2, that is, the minimum transmission priority that the resources can support can be determined. Exemplarily, referring to Table 1, assume that the transmission priority of the resources corresponding to subframe 1 being reserved is 2, that is, pi is priority 2. Then the first terminal device can compare the signal strength of the reserved signal with B1 - B8 in sequence. If the signal strength is greater than B4 and less than or equal to B5, it can be determined that the minimum priority supported by the resources for transmission is priority 5.

[0141] Optionally, the minimum priority supported by at least one resource for transmission can be used to indicate the transmission priority range. For example, if the minimum priority supported by a resource for transmission is priority 5, then the transmission priority range supported by this resource is priority 1 - priority 5.

[0142] Method 2: Assume that the priority of the second terminal device to transmit to the first terminal device is k. According to the assumed priority k, all resources in the selection window are traversed to determine whether each resource in the selection window supports transmission of priority k. A table can be obtained for each assumed priority, as shown in Table 3-Table 10. Among them, all resources in the selection window in Table 3-Table 10 are 4 resources, one resource corresponding to time slot 1 and subchannel 1, one resource corresponding to time slot 1 and subchannel 2, one resource corresponding to time slot 2 and subchannel 1, and one resource corresponding to time slot 2 and subchannel 2. For example, "yes" in the second row and second column of Table 3 indicates that the resources corresponding to time slot 1 and starting subchannel 1 support transmission with a transmission priority of 1, and "no" in the third row and second column of Table 3 indicates that the resources corresponding to time slot 1 and starting subchannel 2 do not support transmission priority 1. According to Tables 3 to 10, the priority range of the resources supporting transmission corresponding to time slot 1 and starting subchannel 1 is {1, 2, 3, 4, 5}, the priority range of the resources supporting transmission corresponding to time slot 2 and starting subchannel 1 is {1}, the priority range of the resources supporting transmission corresponding to time slot 1 and starting subchannel 2 is empty, and the priority range of the resources supporting transmission corresponding to time slot 2 and starting subchannel 2 is {1, 2, 3, 4, 5, 6, 7}.

[0143] The first terminal device determines the minimum priority of each resource supported transmission according to the priority range of each resource supported transmission. As shown in Tables 3 to 10, the minimum priority of the resource supported transmission corresponding to time slot 1 and starting subchannel 1 is 5. The minimum priority of the resource supported transmission corresponding to time slot 2 and starting subchannel 1 is 1. The minimum priority of the resource supported transmission corresponding to time slot 1 and starting subchannel 2 is null. The minimum priority of the resource supported transmission corresponding to time slot 2 and starting subchannel 2 is 7.

[0144] Table 3

[0145] Judgment result of priority 1 Time Slot 1 Time Slot 2 Starting subchannel 1 yes yes Starting subchannel 2 no yes

[0146] Table 4

[0147]

[0148]

[0149] Table 5

[0150] Priority 3 judgment result Time Slot 1 Time Slot 2 Starting subchannel 1 yes no Starting subchannel 2 no yes

[0151] Table 6

[0152] Priority 4 judgment result Time Slot 1 Time Slot 2 Starting subchannel 1 yes no Starting subchannel 2 no yes

[0153] Table 7

[0154] Priority 5 judgment result Time Slot 1 Time Slot 2 Starting subchannel 1 yes no Starting subchannel 2 no yes

[0155] Table 8

[0156] Priority 6 judgment result Time Slot 1 Time Slot 2 Starting subchannel 1 no no Starting subchannel 2 no yes

[0157] Table 9

[0158] Judgment result of priority 7 Time Slot 1 Time Slot 2 Starting subchannel 1 no no Starting subchannel 2 no yes

[0159] Table 10

[0160] Priority 8 judgment result Time Slot 1 Time Slot 2 Starting subchannel 1 no no Starting subchannel 2 no no

[0161] S303, the first terminal device sends auxiliary information to the second terminal device, where the auxiliary information includes first indication information, and the first indication information is used to indicate the lowest priority of at least one resource supporting transmission.

[0162] In some embodiments, the lowest priority of at least one resource supporting transmission indicated by the first indication information is used to indicate a priority range of at least one resource supporting transmission.

[0163] In some embodiments, the number of resources indicated by the auxiliary information may be more or less than the number of resources determined in S302, or the number of resources indicated by the auxiliary information may be equal to the number of resources determined in S302.

[0164] Exemplarily, in S302, the transmission priority range supported by each resource in the M resources is determined. If the second terminal device indicates the number N of recommended resources in S301, and if the M resources determined by the first terminal device in S302 are more than the number N of recommended resources indicated in S301, the first terminal device selects N resources from the M resources. M and N are positive integers.

[0165] In some embodiments, the M resources are a first resource set, and the N resources are a second resource set.

[0166] In some embodiments, the first terminal device randomly selects N resources from the M resources.

[0167] In some embodiments, the first terminal device preferentially selects N resources among M resources that have a large priority range supported by the resources.

[0168] In some embodiments, when the first terminal device gives priority to N resources with a large priority range supported by the resources among M resources, if the first terminal device has found N-1 resources among the M resources, if the priority ranges of the remaining two resources to be selected are the same, then which resource can be selected as the Nth selected resource based on the signal strength values ​​on the two resources. For example, the first terminal device can select a resource with a smaller signal strength value as the Nth resource. For another example, the first terminal device can use a resource with a larger difference between a signal strength threshold value corresponding to the lowest priority in the same priority range and a signal strength value on a certain resource as the Nth resource.

[0169] In some embodiments, there may be multiple resources among the M resources that support the same priority range. In other words, one priority range may correspond to multiple resources. When the first terminal device selects a resource, it may select a resource from resources corresponding to different priority ranges. In this way, the resources recommended by the first terminal device to the second terminal device may correspond to different priority ranges. In other words, the first terminal device recommends multiple resources of different priority ranges to the second terminal device, thereby increasing the range of resources selected by the second terminal device, which is beneficial to improving the flexibility of the second terminal device in selecting resources and also beneficial to improving transmission performance.

[0170] In some embodiments, when the first terminal device selects resources, it can select resources from resources corresponding to different priority ranges. In this case, there can be at least three selection methods. Method 1: the first terminal device randomly selects resources from resources corresponding to different priority ranges until N resources are selected. Method 2: the first terminal device selects resources from resources corresponding to different priority ranges according to the signal strength value on each resource. The first terminal device can select resources with smaller signal strength values ​​from resources corresponding to different priority ranges; or the first terminal device can select resources with smaller difference between the signal strength threshold value and the signal strength value corresponding to the lowest priority in each priority range from resources corresponding to different priority ranges.

[0171] Exemplarily, in S302, the transmission priority range supported by each of the M resources is determined. If the second terminal device indicates the number N of recommended resources in S301, and if the M resources determined by the first terminal device in S302 are less than the number N of recommended resources indicated in S301, in some embodiments, the first terminal device may recommend M resources. In other embodiments, the first terminal device may increase the signal strength threshold value to determine more recommended resources, so that the resources determined by the first terminal device meet the N resources indicated in S301.

[0172] In some embodiments, the first terminal device sends auxiliary information to the second terminal device on the resource of the feedback auxiliary information included in the first message in S301.

[0173] In some embodiments, the first indication information included in the auxiliary information may indicate each resource and a priority range for transmission supported by each resource.

[0174] In some embodiments, the first indication information included in the auxiliary information may indicate the resources corresponding to each priority range. If the priority ranges corresponding to multiple resources are the same, one priority range may be used to indicate multiple resources. In this way, overhead can be saved. The first indication information may include the number of resources corresponding to each priority range and the resources corresponding to each priority range. For example, the first field of the first indication information is used to carry the number of resources corresponding to each priority range, and the second field of the first indication information is used to carry the resources corresponding to each priority range. These resources can be sorted from large to small or from small to large according to each priority range. In this way, when the second terminal device receives the first indication information, it can determine the number of resources corresponding to each priority range based on the first field, and then determine which resources among the resources carried by the second field are the resources corresponding to each priority range based on the number of resources.

[0175] In some embodiments, the lowest priority may be used to indicate a priority range. For example, if the priority range is priority 1 - priority 7, priority 7 may be used to indicate the priority range of priority 1 - priority 7.

[0176] Exemplarily, taking the lowest priority as an example to indicate the priority range, as shown in Table 11, the number of resources corresponding to priority 1-priority 8 is a1 to a8. At this time, priority 1 indicates that the priority range is priority 1, and the priority range indicated by priority 2 is priority 1-priority 2, and so on. The priority range indicated by priority 8 is priority 1-priority 8. The first field can indicate that the number of resources corresponding to priority 1 to priority 8 is a1 to a8, and the second field can indicate the resources corresponding to priority 1 to priority 8 (from high to low). The order of resources carried by the second field is a1 resources corresponding to priority 1, a2 resources corresponding to priority 2, and so on. In this way, the second terminal device determines that the resources corresponding to priority 1 as the lowest priority are a1, and the resources corresponding to priority 2 as the lowest priority are a2, and so on. It is determined in the a1+a2+a3+...+a8 resources carried by the second field that the first a1 resources are resources corresponding to priority 1, and the next a2 resources are resources corresponding to priority 2, and so on. In this way, if the resource corresponding to a certain priority as the lowest priority is empty, the corresponding quantity is 0.

[0177] Table 11

[0178] Lowest priority 1 2 3 4 5 6 7 8 Number a1 a2 a3 a4 a5 a6 a7 a8

[0179] In method 300, the resources indicated by the first indication information in the auxiliary information fed back by the first terminal device to the second terminal device and the resources support the minimum priority. In this way, the problem of repeated recommendation of resources can be avoided and signaling overhead can be saved. For example, in Table 2, the resources corresponding to subframe 1 can correspond to a minimum priority, the resources corresponding to subframe 2 can correspond to a minimum priority, the resources corresponding to subframe 3 can correspond to a minimum priority, and the resources corresponding to subframe 4 can correspond to a minimum priority. In this way, when the first terminal device recommends resources to the second terminal device, it only needs to recommend these four resources and the minimum priority supported by these four resources, which can avoid the problem of repeated recommendation of resources and thus save overhead.

[0180] Combine the following Figure 4 The method 400 for transmitting data in an embodiment of the present application is described. Figure 4 As shown, the method 400 includes:

[0181] S401, the second terminal device sends second indication information to the first terminal device, and the first terminal device receives the second indication information sent by the second terminal device, where the second indication information is used to indicate the third resource for the first terminal device to send the first indication information.

[0182] Optionally, the second terminal device may send the second indication information to the first terminal device via a physical sidelink shared channel (PSSCH).

[0183] Optionally, when the second terminal device needs to transmit data to the first terminal device, the second terminal device may send second indication information to the first terminal device.

[0184] It should be noted that S401 is an optional step, that is, the third resource for sending the first indication information in S404 may be a preset resource.

[0185] S402, the second terminal device sends third indication information to the first terminal device, and the first terminal device receives the third indication information sent by the second terminal device, where the third indication information is used to indicate that the number of resources that the first terminal device needs to recommend is the first number.

[0186] Optionally, the second terminal device may send second indication information to the first terminal device via PSSCH.

[0187] It should be noted that there is no restriction on the order of S401 and S402, and S401 can be performed before, after, or simultaneously with S402. For example, the second terminal device can send the second indication information and the third indication information to the first terminal device through the same PSSCH, or can send the second indication information and the third indication information to the first terminal device through different PSSCHs.

[0188] It is understandable that S401 may exist in method 400 without S402. In this case, the first terminal device may determine that the number of resources that the first terminal device needs to recommend is the first number based on the number of sub-channels included in the third resource and the number of symbols used to transmit the first indication information in the time slot included in the third resource. In other words, the more sub-channels included in the third resource and the more symbols used to transmit the first indication information in the third resource, the more resources the first indication information occupies, and thus, the more resources the first terminal device needs to recommend to the second terminal device; correspondingly, the fewer sub-channels included in the third resource and the fewer symbols used to transmit the first indication information in the third resource, the fewer resources the first indication information occupies, and thus, the fewer resources the first terminal device needs to recommend to the second terminal device.

[0189] S403: The first terminal device determines a priority range for transmission supported by at least one resource in the selection window. The at least one resource in the selection window constitutes a first resource set.

[0190] Optionally, the second indication information in S401 may trigger the first terminal device to execute S403.

[0191] Specifically, in S403, the first terminal device can determine the priority range of each resource in the first resource set that supports transmission by the following two methods. The following description takes the second resource in the selection window as an example, and the priority of the reserved transmission on the second resource is the second priority. The method for the first terminal device to determine the priority range of other resources in the selection window that support transmission refers to determining the priority range of the second resource that supports transmission.

[0192] Method 1

[0193] a) The first terminal device determines that the priority of the second data reserved for transmission on the second resource is the second priority.

[0194] Specifically, the first terminal device can receive a signal sent by other terminal devices on a resource in the perception window and obtain the signal strength of the signal, the signal is used to reserve the second resource in the selection window, and the signal includes the second priority of the reserved transmission. In addition, the signal strength value of the signal received by the resource in the perception window can be used as the signal strength value of the second resource reserved in the selection window, which is referred to as the first signal strength value.

[0195] Optionally, if the second resource is reserved by multiple terminal devices, the first terminal device will receive multiple signals on the second resource, each signal corresponds to a transmission priority, and the second priority is the highest priority among the reserved transmission priorities in the multiple signals.

[0196] b) The first terminal device determines the second signal strength threshold value set in the first signal strength threshold value set according to the second priority. For example, the first signal strength threshold value set includes the signal strength threshold values ​​in multiple columns of Table 1, and the second priority is a value of pi. A column of Table 1 can be determined according to a value of pi in Table 1 according to the second priority, and the signal strength threshold value of the column is the second signal strength threshold value set. If the second priority is priority 2, the second signal strength threshold value set can be determined as {B1, B2, B3, B4, B5, B6...}.

[0197] c) The first terminal device determines a first signal strength threshold value in the second signal strength threshold value set, and the first signal strength threshold value is the minimum value in the second signal strength threshold value set that is greater than the first signal strength value on the second resource. For example, the second signal strength threshold value set is {B1, B2, B3, B4, B5, B6, B7, B8}, if the first signal strength value is greater than B5 and less than B4, then the first signal strength threshold value is B4. If the first signal strength value is greater than B1, then the first signal strength threshold value is empty. If the first signal strength value is less than B8, then the first signal strength threshold value is B8.

[0198] d) The first terminal device determines the third priority corresponding to the first signal strength threshold value. For example, according to Table 1, assuming that the second priority is priority 2, when the first signal strength threshold value is determined to be B4, it can be determined that the priority corresponding to the first signal strength threshold value is 4. The priority corresponding to the first signal strength threshold value is B8 is 8. The priority corresponding to the first signal strength threshold value is B1 is 1.

[0199] e) The first terminal device determines that the priority range supported by the second resource includes a priority higher than the third priority and the third priority. If the third priority is B4, which corresponds to a priority of 4, then the priority range supported by the second resource includes {1, 2, 3, 4}. If the first signal strength threshold value is empty, the priority range of the transmission supported on the second resource is empty, and therefore, the second resource will not be recommended by the first terminal device to the second terminal device. If the third priority is B8, which corresponds to a priority of 8, then the priority range supported by the second resource includes {1, 2, 3, 4, 5, 6, 7, 8}. If the first signal strength threshold value is greater than B1, the priority range supported by the second resource is empty.

[0200] Method 2

[0201] a) The first terminal device determines that the priority of the second data reserved for transmission on the second resource is the second priority.

[0202] Specifically, the first terminal device can receive a signal sent by other terminal devices on a resource in the perception window and obtain the signal strength of the signal, the signal is used to reserve the second resource in the selection window, and the signal includes the second priority of the reserved transmission. In addition, the signal strength value of the signal received by the resource in the perception window can be used as the signal strength value of the second resource reserved in the selection window, which is referred to as the first signal strength value.

[0203] Optionally, if the second resource is reserved by multiple terminal devices, the first terminal device will receive multiple signals on the second resource, each signal corresponds to a transmission priority, and the second priority is the highest priority among the reserved transmission priorities in the multiple signals.

[0204] b) The first terminal device assumes that the priority of the first data sent by the second terminal device to the first device is each priority in the second priority set. For example, in combination with Table 1, the second priority set is {1, 2, 3, 4, 5, 6, 7, 8}. Of course, the second priority set can also be a subset of {1, 2, 3, 4, 5, 6, 7, 8}, which is not limited in the embodiment of the present application.

[0205] c) The first terminal device determines the second signal strength threshold value set in the first signal strength threshold value set according to the second priority and each priority in the second priority set. Specifically, a priority and a second priority in the second priority set can determine a unique signal strength threshold value. In conjunction with Table 1, the first signal strength threshold value set includes the signal strength threshold values ​​of multiple columns in Table 1, and the second priority set is {1, 2, 3, 4, 5, 6, 7, 8}. If the second priority is priority 2, the second signal strength threshold value set can be determined as {B1, B2, B3, B4, B5, B6, B7, B8...}.

[0206] d) The first terminal device compares the first signal strength value with the signal strength threshold value in the second signal strength threshold value set. If the first signal strength value is greater than a signal strength threshold value Bi in the second signal strength threshold value set, it means that the second resource does not support the priority corresponding to Bi. If the first signal strength value is less than or equal to a signal strength threshold value Bi in the second signal strength threshold value set, it means that the second resource supports the priority corresponding to Bi. In this way, the priority range supported by the second resource can be determined. For example, if the first signal strength value is greater than B1, it means that the second resource does not support the transmission of priority 1; if the first signal strength value is less than B8, it means that the second resource supports the transmission of priority 8.

[0207] For specific method 2, please refer to the descriptions of Tables 3 to 10.

[0208] S404: The first terminal device determines a second resource set based on the first resource set.

[0209] S404 is discussed below in three cases. The first quantity in the following three cases may be indicated by the third indication information in S402, or may be determined according to the number of sub-channels included in the third resource indicated by the second indication information and the number of symbols used to transmit the first indication information in the time slot included in the third resource, or may be pre-configured, or the first quantity may be determined by the first terminal device according to a default number of sub-channels, for example, the first terminal device determines the first quantity according to a default number of sub-channels.

[0210] In case 1, if the quantity in the first resource set is greater than or equal to the first quantity, the first terminal device needs to select the second resource set in the first resource set, and the quantity of resources in the second resource set is the first quantity. The first quantity may be indicated by the third indication information in S402, may be determined according to the third resource indicated by the second indication information, or may be pre-configured.

[0211] The following describes how the first terminal device in situation one selects the second resource set from the first resource set, using three situations a), b) and c).

[0212] a) The first terminal device randomly selects a second resource set that meets the first quantity from the first resource set.

[0213] b) The first terminal device preferentially selects resources with a large priority range supported by resources in the first resource set as resources in the second resource set. In other words, the priority range supported by each resource in the second resource set is greater than or equal to the priority range supported by each resource in the first resource set except the second resource set. In this way, when these resources with a large priority range are indicated to the second terminal device through the first indication information, the second terminal device is more likely to select these resources to transmit the first data to the first terminal device, thereby ensuring accurate transmission.

[0214] In addition, if the number of resources determined from the first resource set according to b) is about to meet the first number, but has not yet met the first number, if the priority ranges of the multiple resources to be selected are the same, then the resources can be selected as the resources in the second resource set based on the signal strength values ​​on the multiple resources. For example, resources with smaller signal strength values ​​can be selected as the resources in the second resource set. For another example, the first terminal device can use a resource with a larger difference between the signal strength threshold value corresponding to the lowest priority in the priority range and the signal strength value on a certain resource as a resource in the second resource set. For example, the first number is 10, and the first terminal device has selected 9 resources in the first resource set. These 9 resources support a relatively large priority range for transmission. The first terminal device can select two resources with a relatively large priority range from the remaining resources in the first resource set. These two resources are the two resources with the largest priority range supported for transmission among the remaining resources in the first resource set, and these two resources support the same priority range for transmission. Then, which resource can be selected as the tenth selected resource based on the signal strength values ​​of the two resources. One way is that the first terminal device can select the one with a lower signal strength value from the two resources as the tenth selected resource; another way is that the first terminal device compares the signal strength values ​​on the two resources with the signal strength threshold value corresponding to the lowest priority in the priority range supported for transmission by the two resources, and selects the resource with a larger difference between the signal strength threshold value and the signal strength value on the resource as the tenth selected resource.

[0215] c) The first terminal device selects a resource set that satisfies the first quantity in the first resource set according to the priority range supported by each resource. Specifically, there may be multiple resources in the first resource set that support the same priority range. In other words, one priority range may correspond to multiple resources. When the first terminal device selects resources, it may select resources from resources corresponding to different priority ranges. In this way, the resources recommended by the first terminal device to the second terminal device may correspond to different priority ranges. In other words, the first terminal device recommends resources of multiple different priority ranges to the second terminal device, thereby increasing the range of resources selected by the second terminal device, which is beneficial to improving the flexibility of the second terminal device in selecting resources and also beneficial to improving transmission performance. Specifically, it can be discussed in the following two situations:

[0216] 1) The first terminal device randomly selects resources from the resources corresponding to different priority ranges until a resource that satisfies the first quantity is selected. For example, the first resource set includes n resources, priority range 1 corresponds to n1 resources, priority range 2 corresponds to n2 resources, and priority range 3 corresponds to n3 resources, n1+n2+n3=n. If the first quantity is m, the first terminal device can randomly select m1 resources from the n1 resources corresponding to priority range 1, randomly select m2 resources from the n1 resources corresponding to priority range 2, and randomly select m3 resources from the n3 resources corresponding to priority range 3, m1+m2+m3=m. Among them, m1, m2, m3 can be randomly set numbers; or m1, m2, m3 are set according to the ratio of the number of resources corresponding to each priority range. For example, the first terminal device can determine the values ​​of m1, m2, m3 according to n1:n2:n3, for example, m1=3, m2=2, m3=1; or m1, m2, m3 are related to the size of each priority range. For example, the larger the priority range 1, the larger the corresponding m1, and the smaller the priority range 3, the smaller the corresponding m3.

[0217] 2) The first terminal device selects resources from the resources corresponding to different priority ranges according to the signal strength value on each resource. The first terminal device may select resources with smaller signal strength values ​​from the resources corresponding to different priority ranges; or the first terminal device may select resources from the resources corresponding to different priority ranges with smaller difference between the signal strength threshold value and the signal strength value corresponding to the lowest priority in each priority range. In combination with the example in 1), the first terminal device may select m1 resources with the lowest signal strength values ​​from n1 resources corresponding to priority range 1, or the lowest priority in priority range 1 corresponds to a first signal strength threshold value, and the first terminal device may select m1 resources from n1 resources with larger difference between the first signal strength threshold value and the signal strength values ​​on the n1 resources. The first terminal device can select m2 resources with the lowest signal strength values ​​from the n2 resources corresponding to the priority range 2, or the lowest priority in the priority range 2 corresponds to a signal strength threshold value 2, and the first terminal device can select m2 resources with a larger difference between the signal strength threshold value 2 and the signal strength value on the n1 resource from the n2 resources; the first terminal device can select m3 resources with the lowest signal strength values ​​from the n3 resources corresponding to the priority range 3, or the lowest priority in the priority range 3 corresponds to a signal strength threshold value 3, and the first terminal device can select m3 resources with a larger difference between the signal strength threshold value 3 and the signal strength value on the n3 resources from the n3 resources. m1+m2+m3=m. The settings of m1, m2, and m3 in 2) can refer to the description of 1).

[0218] The difference between 1) and 2) above is that 1) the first terminal device randomly selects resources from resources corresponding to different priority ranges, and 2) the first terminal device selects resources from resources corresponding to different priority ranges according to the signal strength value of the resources.

[0219] It is understandable that a), b) and c) in case 1 are not limited to case 1, but also apply to cases 2 and 3. In other words, regardless of whether the number of resources in the first resource set meets the first number, the first terminal device also gives priority to selecting resources with a large priority range supporting transmission as resources in the second resource set, or the first terminal device may also select resources in the second resource set according to the signal strength values ​​of resources corresponding to different priority ranges.

[0220] Case 2: If the quantity in the first resource set is quantity 2, and quantity 2 is less than the first quantity, the first terminal device can use all resources in the first resource set as resources in the second resource set. In other words, if the first quantity of resources indicated by the second terminal device or the first quantity of resources determined based on the third resource is greater than the number of resources in the first resource set actually determined by the first terminal device, the first terminal device can recommend as many resources as it determines to the second terminal device, and the requirement for the first quantity may not be met.

[0221] Case three, if the number in the first resource set is number 2, and number 2 is less than the first number, the first terminal device can increase at least one signal strength threshold value in the first signal strength threshold value set or increase at least one signal strength threshold value in the second signal strength threshold value set. The first terminal device can use the increased first signal strength threshold value set or the increased second signal strength threshold value set to determine the first resource set equal to the first number. If the number of resources in the first resource set is equal to the first number, the resources in the first resource set are used as resources in the second resource set; if the number of resources in the first resource set determined by the first terminal device according to the increased first signal strength threshold value set or the increased second signal strength threshold value set is greater than the first number, the first terminal device selects the first number of resources in the first resource set as resources in the second resource set. For the specific selection method, please refer to the description of Case one. In other words, in situation three, if the number of resources in the first resource set determined by the first terminal device does not meet the first number, since the higher the signal strength threshold value, the more resources the first terminal device can recommend, the first terminal device can increase at least one signal strength threshold value in the first signal strength threshold value set or at least one signal strength threshold value in the second signal strength threshold value set, so that the first terminal device can determine resources equal to the first number.

[0222] It should be noted that, in combination with the description of S403, taking the second resource as an example, in situation three, the second signal strength threshold value set is a signal strength threshold value set corresponding to the second priority for the priority of the reserved transmission on the second resource. If the first terminal device determines that the priority range supported by the second resource for transmission is empty, the first terminal device can increase the signal strength threshold value in the second signal strength threshold value set, so that the first terminal device can determine as much as possible that the priority range supported by the second resource for transmission is not empty. In this way, the first terminal device can recommend the priority range supported by the second resource for transmission to the second terminal device, thereby increasing the number of resources. Of course, the first terminal device can also increase the first signal strength threshold value set, so that the terminal device can determine that more resources support the priority range of transmission.

[0223] In situation three, the first terminal device may increase at least one signal strength threshold value in the first signal strength threshold value set or the second signal strength threshold value set by a preset value, where the preset value may be one or more values ​​specified by the protocol, or the preset value may be one or more values ​​configured by the second terminal device. For example, the preset value may be 3dB, 6dB or 9dB. The first terminal device may determine which preset value to select based on the difference between the first number and the number of resources in the first resource set. If the difference is larger, the first terminal device selects a larger preset value. If the difference is smaller, the first terminal device selects a smaller preset value.

[0224] S405, the first terminal device sends first indication information to the second terminal device on the third resource, and the second terminal device receives the first indication information sent by the first terminal device on the third resource, where the first indication information is used to indicate the priority range supported by each resource in the second resource set for transmission. Exemplarily, the first indication information may be the first indication information.

[0225] Optionally, the indication information is used to indicate at least one of a time domain position, a frequency domain position and a period of each resource included in each resource in the second resource set.

[0226] Optionally, the first terminal device may send the first indication information to the second terminal device on the third resource via the PSSCH, and the second terminal device may receive the first indication information sent by the first terminal device on the third resource via the PSSCH.

[0227] In S405, the lowest priority level supported by each resource in the second resource set for transmission may be used to indicate the priority range of each resource transmission. Specifically, the first indication information is discussed below in two cases.

[0228] In case 1, the first indication information is used to indicate the priority range that each resource in the second resource set supports for transmission. In the first indication information, one resource corresponds to one priority range. Even if the priority ranges corresponding to two resources are the same, they need to be indicated separately. For example, the format of the first indication information is as follows: Figure 5 As shown, resource i corresponds to priority range 1, resource i+1 corresponds to priority range 1, resource i+2 corresponds to priority range 2, resource i+3 corresponds to priority range 2, and resource i+4 corresponds to priority range 3.

[0229] Optionally, in case 1, the first indication information is the lowest priority supported by each resource in the second resource set for transmission, and the lowest priority supported by each resource for transmission is used to indicate the priority range supported by each resource for transmission, so that the second terminal device can determine the priority range supported by each resource for transmission based on the lowest priority supported by each resource for transmission. In the first indication information, one resource corresponds to one lowest priority. Even if the lowest priorities corresponding to two resources are the same, they need to be indicated separately. For example, the format of the first indication information is as follows: Figure 6 As shown, resource i corresponds to the lowest priority 1, resource i+1 also corresponds to the lowest priority 1, resource i+2 corresponds to the lowest priority 2, resource i+3 also corresponds to the lowest priority 2, and resource i+4 corresponds to the lowest priority 3.

[0230] In case 2, the first indication information is used to indicate the resources corresponding to each priority range. In the first indication information, one resource corresponds to one priority range. If the priority ranges corresponding to multiple resources are the same, one priority range can be used to indicate multiple resources. In this way, signaling overhead can be saved. The format of the first indication information is as follows: Figure 7 As shown, priority range 1 corresponds to resource i and resource i+1, priority range 2 corresponds to resource i+2 and resource i+3, and priority range 3 corresponds to resource i+4.

[0231] Optionally, in situation two, the first indication information is used to indicate the resources corresponding to each priority in the first priority set as the lowest priority, and the priorities in the first priority set are a set of priorities that can be the lowest priorities in the second priority set. The resources corresponding to each priority in the first priority set as the lowest priority constitute the second resource set. In the first indication information, one resource corresponds to one lowest priority. If the lowest priorities corresponding to multiple resources are the same, one lowest priority can be used to indicate multiple resources. In this way, signaling overhead can be saved. Exemplarily, the format of the first indication information is as follows: Figure 8 As shown, the lowest priority 1 corresponds to resource i and resource i+1, the lowest priority 2 corresponds to resource i+2 and resource i+3, and the lowest priority 3 corresponds to resource i+4.

[0232] Specifically, in situation two, the first indication information may include the number of resources corresponding to each priority as the lowest priority in the first priority set and the corresponding resources. For example, the first field of the first indication information is used to carry the number of resources corresponding to each priority as the lowest priority in the first priority set, and the second field of the first indication information is used to carry the resources corresponding to each priority as the lowest priority, and these resources can be sorted from high to low or from low to high according to the lowest priority. In this way, when the second terminal device receives the first indication information, it can determine the number of resources corresponding to each priority as the lowest priority according to the first field, and then determine which resources among the resources carried by the second field are resources corresponding to which priority according to the number of resources.

[0233] S406, the second terminal device determines the first resource according to the first indication information and the first priority of the first data, the priority range supported by the first resource for transmission includes the first priority, and the first data is data sent by the second terminal device to the first terminal device.

[0234] Specifically, in S406, the second terminal device can determine the priority range for each resource in the second resource set to support transmission based on the first indication information. The second terminal device determines in the second resource set that the priority range for supporting transmission includes resources of the first priority, and these resources can be selected as resources. The second terminal device can select a resource from the selected resources as the first resource for sending the first data in combination with the interference situation around the second terminal device, so that the second terminal device can determine the resource for transmitting the first data taking into account both the interference situation around the first terminal device and the interference situation of the second terminal device, thereby ensuring accurate transmission.

[0235] S407, the second terminal device sends the first data to the first terminal device based on the first resource, and the first terminal device receives the first data sent by the second terminal device based on the first resource.

[0236] Specifically, in S407, the second terminal device can send the first data to the first terminal device on the first resource, and the first terminal device can receive the first data sent by the second terminal device on the first resource; or the second terminal device can determine the resource for sending the first data based on at least one of the time domain position, frequency domain position and period of the first resource, and send the first data to the first terminal device on the determined resource.

[0237] In the above method 400, the first terminal device sends first indication information to the second terminal device for indicating the priority range of each resource in the second resource set that supports transmission. This can avoid the problem of resource waste caused by the resource being recommended multiple times when the signal strength value on a resource is lower than both the low signal strength threshold value and the high signal strength threshold value.

[0238] The signal strength value on the resource mentioned in the embodiment of the present application may be a reference signal receiving quality (RSRP) or a received signal strength indication (RSSI), etc. Correspondingly, the signal strength threshold value mentioned in the embodiment of the present application may be RSRP or RSSI.

[0239] It should be noted that, in the embodiment of the present application, data refers to the transmission reserved by the signal, and the transmission reserved by the signal corresponds to a priority, and the priority corresponding to the transmission reserved by the signal can be the transmission priority of the data.

[0240] It is understandable that in the embodiment of the present application, the first terminal device can receive a signal on a resource in the perception window, and the resource reserved by the signal is a resource in the selection window with a fixed gap from the resource receiving the signal in the perception window. Figure 2 A signal is received on the resource corresponding to subframe 1 in the perception window. The resource reserved by the signal is the resource corresponding to subframe 1 in the selection window. The time interval between the resource corresponding to subframe 1 in the perception window and the resource corresponding to subframe 1 in the selection window is fixed.

[0241] The various embodiments described herein may be independent solutions or may be combined according to internal logic, and all of these solutions fall within the protection scope of this application.

[0242] It can be understood that the methods and operations implemented by the terminal device in the above-mentioned method embodiments can also be implemented by components (such as chips or circuits) that can be used for the terminal device, the methods and operations implemented by the network device in the above-mentioned method embodiments can also be implemented by components (such as chips or circuits) that can be used for the network device, and the methods and operations implemented by the first device in the above-mentioned method embodiments can also be implemented by components (such as chips or circuits) that can be used for the first device.

[0243] The above describes the method embodiment provided by the present application, and the following describes the device embodiment provided by the present application. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the content not described in detail can be referred to the method embodiment above, and for the sake of brevity, it will not be repeated here.

[0244] The above mainly describes the solution provided by the embodiment of the present application from the perspective of interaction between various terminal devices. It is understandable that each terminal device, such as a first terminal device or a second terminal device, includes a hardware structure and / or software module corresponding to each function in order to implement the above functions. Those skilled in the art should be aware that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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 exceed the scope of protection of the present application.

[0245] The embodiment of the present application can divide the functional modules of the first terminal device or the second terminal device according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other feasible division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.

[0246] Fig. 9 The present invention provides a schematic block diagram of a communication device 900 provided in an embodiment of the present application. The communication device 900 includes a processing unit 910 and a transceiver unit 920. The transceiver unit 920 can communicate with the outside, and the processing unit 910 is used for data processing. The transceiver unit 920 can also be called a communication interface or a communication unit.

[0247] The device 900 can be used to execute the actions performed by the first terminal device or the second terminal device in the above method embodiment. In this case, the communication device 900 can be called the first terminal device or the second terminal device, the transceiver unit 920 is used to execute the transceiver-related operations on the first terminal device or the second terminal device side in the above method embodiment, and the processing unit 910 is used to execute the processing-related operations on the first terminal device or the second terminal device side in the above method embodiment.

[0248] In a possible implementation, the apparatus 900 is used to implement the operations performed by the first terminal device in the above method embodiment.

[0249] For example, the processing unit 910 is used to implement the processing-related operations performed by the first terminal device in the above method embodiment, and the transceiver unit 920 is used to implement the transceiver-related operations performed by the first terminal device in the above method embodiment.

[0250] In a possible implementation manner, the apparatus 900 is used to implement the operations performed by the second terminal device in the above method embodiment.

[0251] For example, the processing unit 910 is used to implement the processing-related operations performed by the second terminal device in the above method embodiment, and the transceiver unit 920 is used to implement the transceiver-related operations performed by the second terminal device in the above method embodiment.

[0252] The device 900 of each of the above schemes has the function of implementing the corresponding steps performed by the first terminal device or the second terminal device in the above method; the function can be implemented by hardware or software, or by hardware executing the corresponding software implementation. The hardware or software includes one or more modules corresponding to the above functions; for example, the sending unit can be replaced by a communication interface, the receiving unit can be replaced by a communication interface, and other units, such as the determination unit, can be replaced by a processor to respectively perform the sending and receiving operations and related processing operations in each method embodiment. In an embodiment of the present application, a communication interface of a device is used for the device to communicate with other devices. Exemplarily, the communication interface can be a transmitter, a receiver, a transceiver, a circuit, a bus, a module, a pin or other types of communication interfaces, which are not limited in the embodiments of the present application.

[0253] In the specific implementation process, the processor can be used to perform, for example, but not limited to, baseband related processing, and the communication interface can be used to perform, for example, but not limited to, information interaction. The above-mentioned devices can be respectively arranged on chips independent of each other, or at least partially or completely arranged on the same chip. For example, the processor can be further divided into an analog baseband processor and a digital baseband processor, wherein the analog baseband processor can be integrated with the communication interface on the same chip, and the digital baseband processor can be arranged on an independent chip. With the continuous development of integrated circuit technology, more and more devices can be integrated on the same chip. For example, a digital baseband processor can be integrated with a variety of application processors (such as but not limited to a graphics processor, a multimedia processor, etc.) on the same chip. Such a chip can be called a system on chip (system on chip, SOC). Whether each device is independently arranged on different chips or integrated on one or more chips often depends on the specific needs of the product design. The embodiment of the present application does not limit the specific implementation form of the above-mentioned devices.

[0254] It can be understood that the processor involved in the aforementioned embodiment can execute program instructions through a hardware platform having a processor and a communication interface to respectively implement the functions involved in any design in the aforementioned embodiment of the present application. Based on this, Fig.10 As shown, an embodiment of the present application provides a schematic block diagram of a communication device 1000, and the device 1000 includes: a processor 1010, a communication interface 1020, and a memory 1030. Among them, the processor 1010, the communication interface 1020, and the memory 1030 are coupled to communicate with each other, the memory 1030 is used to store instructions, and the processor 1010 is used to execute the instructions stored in the memory 1030 to control the communication interface 1020 to send signals and / or receive signals. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which can be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.

[0255] Among them, in a possible implementation, if the apparatus 1000 is a first terminal device, the processor 1010 is used to determine a priority range for transmission supported by each resource in a first resource set; the communication interface 1020 is used to send a first indication message to a second terminal device, the first indication message being used to indicate a priority range for transmission supported by each resource in a second resource set, the second resource set being determined based on the first resource set; the transceiver unit is also used to receive first data sent by the second terminal device based on the first resource, the first resource being determined based on the first indication message and the first priority of the first data.

[0256] In one possible implementation, if the apparatus 1000 is a second terminal device, the communication interface 1020 is used to receive first indication information from a first terminal device, the first indication information being used to indicate a priority range for transmission supported by each resource in a second resource set; the processor 1010 is used to determine a first resource based on the first indication information and a first priority of the first data, the priority range for transmission supported by the first resource including the first priority; the communication interface 1020 is also used to send the first data to the first terminal device based on the first resource.

[0257] It should be understood that the embodiments of the present application Fig. 9 The device 900 in the embodiment can be realized by Fig.10 The device 1000 in the embodiment can be implemented and can be used to execute each step and / or process corresponding to the first terminal device and the second terminal device in the above method embodiment.

[0258] It is understandable that the methods, processes, operations or steps involved in the various designs described in the embodiments of the present application can be implemented in a one-to-one manner through computer software, 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. For example, considering the good versatility, low cost, and hardware and software decoupling, it can be implemented by executing program instructions. For example, considering the system performance and reliability, it can be implemented by using dedicated circuits. Ordinary technicians can use different methods to implement the described functions for each specific application, which is not limited here.

[0259] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes the method in the above embodiment. The various embodiments in the present application can also be combined with each other.

[0260] According to the method provided in the embodiments of the present application, the present application also provides a computer-readable medium, which stores program code. When the program code runs on a computer, the computer executes the method in the above embodiments.

[0261] In the embodiments of the present application, it should be noted that the method embodiments described above in the embodiments of the present application can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In the implementation process, the steps of the method embodiments described above can be completed by hardware integrated logic circuits or software instructions in the processor. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a 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-purpose processor can be a microprocessor or any conventional processor, etc.

[0262] 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. There are many different types of RAM, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM) and direct rambus RAM (DRRAM).

[0263] 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.

[0264] 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.

[0265] In the several embodiments provided in this 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, and the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined. Another point is that the mutual coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units.

[0266] In addition, each functional unit in each embodiment of the present application may be integrated into one physical entity, each unit may correspond to one physical entity separately, or two or more units may be integrated into one physical entity.

[0267] 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 the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

Claims

1. A method for transmitting data, characterized in that: include: The first terminal device determines a priority range for each resource in the first resource set to support transmission; The first terminal device sends first indication information to the second terminal device, where the first indication information is used to indicate a priority range for each resource in a second resource set to support transmission, and the second resource set is determined based on the first resource set; The first terminal device receives first data sent by the second terminal device based on first resources, where the first resource is determined based on the first indication information and a first priority of the first data.

2. The method according to claim 1, characterized in that The first indication information is the lowest priority of transmission supported by each resource in the second resource set, and the lowest priority of transmission supported by each resource is used to indicate the priority range of transmission supported by each resource.

3. The method according to claim 1, characterized in that The first indication information is used to indicate a priority range for each resource in the second resource set to support transmission, specifically including: The first indication information is used to indicate the resources corresponding to each priority level in the first priority set as the lowest priority level, and the second resource set includes the resources corresponding to each priority level in the first priority set as the lowest priority level.

4. The method according to claim 1, characterized in that: The first terminal device determines a priority range for each resource in the first resource set in the selection window to support transmission, including: The first terminal device determines a signal strength value of each resource in the first resource set; The first terminal device determines the priority range for each resource to support transmission based on the signal strength value of each resource and a first signal strength threshold value set.

5. The method according to claim 4, characterized in that The method further comprises: The first terminal device determines a second signal strength threshold value set in the first signal strength threshold value set according to a second priority of a reserved transmission on a second resource in the first resource set.

6. The method according to claim 5, characterized in that The first terminal device determines the second signal strength threshold value set in the first signal strength threshold value set according to the second priority of the second resource in the first resource set reserved for transmission, including: The first terminal device determines the second signal strength threshold value set in the first signal strength threshold value set according to each priority in the second priority set and the second priority.

7. The method according to claim 5, characterized in that The first terminal device determines, according to the signal strength value of each resource and the first signal strength threshold value set, a priority range for each resource to support transmission, including: The first terminal device determines a first signal strength threshold value based on the second signal strength threshold value set and the first signal strength value on the second resource, the first signal strength threshold value is a minimum value in the second signal strength threshold value set that is greater than the first signal strength value, the first signal strength threshold value corresponds to a third priority in the second priority set, and the priority range supported for transmission by the first resource includes priorities in the second priority set that are higher than or equal to the third priority.

8. The method according to any one of claims 1 to 7, characterized in that The priority range for transmission supported by each resource in the second resource set indicated by the first indication information is greater than or equal to the priority range for transmission supported by each resource in the first resource set except the second resource set.

9. The method according to any one of claims 1 to 7, characterized in that The method further comprises: The first terminal device receives second indication information sent by the second terminal device, where the second indication information is used to indicate a third resource for the first terminal device to send the first indication information; The first terminal device sending the first indication information to the second terminal device includes: The first terminal device sends the first indication information to the second terminal device on the third resource.

10. The method according to claim 9, characterized in that The method further comprises: The first terminal device determines the first number of resources in the second resource set according to the number of subchannels included in the third resource and the number of symbols used to transmit the first indication information in the time slot included in the third resource.

11. The method according to any one of claims 1 to 7, characterized in that Before the first terminal device determines the priority range of each resource in the first resource set in the selection window that supports transmission, the method further includes: The first terminal device receives third indication information sent by the second terminal device, where the third indication information is used to indicate that the number of resources in the second resource set that the first terminal device needs to determine is a first number.

12. The method according to claim 10, characterized in that The method further comprises: If the number of resources in the first resource set determined by the first terminal device does not meet the first number, the first terminal device increases at least one signal strength threshold value in the first signal strength threshold value set or increases at least one signal strength threshold value in the second signal strength threshold value set, and the increased first signal strength threshold value set or the increased second signal strength threshold value set is used to determine the priority range supported for transmission by each resource in the first resource set that meets the first number.

13. The method according to claim 10, characterized in that The first resource set is equal to the second resource set, the number of resources in the second resource set is a second number, and the second number is smaller than the first number.

14. A method for transmitting data, characterized in that: include: The second terminal device receives first indication information from the first terminal device, where the first indication information is used to indicate a priority range supported for transmission by each resource in the second resource set; The second terminal device determines a first resource according to the first indication information and a first priority of the first data, where a priority range supported by the first resource for transmission includes the first priority; The second terminal device sends the first data to the first terminal device based on the first resource.

15. The method according to claim 14, characterized in that The first indication information is the lowest priority of transmission supported by each resource in the second resource set, and the lowest priority of transmission supported by each resource is used to indicate the priority range of transmission supported by each resource.

16. The method according to claim 14, characterized in that The first indication information is used to indicate a priority range for each resource in the second resource set to support transmission, specifically including: The first indication information is used to indicate the resources corresponding to each priority level in the first priority set as the lowest priority level, and the second resource set includes the resources corresponding to each priority level in the first priority set as the lowest priority level.

17. The method according to any one of claims 14 to 16, characterized in that The method further comprises: The second terminal device sends second indication information to the first terminal device, where the second indication information is used to instruct the first terminal device to send a third resource of the first indication information; The receiving, by the second terminal device, the first indication information sent by the first terminal device includes: The second terminal device receives the first indication information sent by the first terminal device on the third resource.

18. The method according to any one of claims 14 to 16, characterized in that Before the second terminal device receives the first indication information from the first terminal device, the method further includes: The second terminal device sends third indication information to the first terminal device, where the third indication information is used to indicate that the number of resources in the second resource set that the first terminal device needs to determine is a first number.

19. A communication device, characterized in that: include: Memory, used to store program instructions and data; A processor, coupled to the memory, and configured to execute instructions in the memory to implement the method according to any one of claims 1 to 18.

20. A chip system, characterized in that: The chip system comprises: A memory for storing instructions; A processor is used to call and execute the instructions from the memory so that the communication device equipped with the chip system executes the method as described in any one of claims 1 to 18.

21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 18 is implemented.