Resource determination method and communication device

By sending and receiving information through a second terminal device to determine the target resource, the problem of being outside the auxiliary information resource selection window is solved, and the reliability of data transmission is improved.

CN115243232BActive Publication Date: 2026-04-07HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-10
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

When communicating between the first terminal device and the second terminal device, the resources indicated by the auxiliary information may be located outside the resource selection window of the second terminal device, resulting in a decrease in data transmission reliability.

Method used

The second terminal device sends first information indicating a known set of time-domain resources and receives second information from the first terminal device to determine the target resources, taking into account the interference situation of the first terminal device to ensure the targeted nature of resource selection.

Benefits of technology

By making full use of known time-domain resource sets and interference conditions, the reliability of data transmission can be improved, and resource selection window alignment problems can be avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115243232B_ABST
    Figure CN115243232B_ABST
Patent Text Reader

Abstract

This application provides a resource determination method and communication apparatus, relating to the field of communication technology, which can ensure the reliability of data transmission. The method includes: a second terminal device receiving second information from a first terminal device, wherein the second information indicates at least one first resource and a first time-domain resource set, and each time-domain resource unit of the at least one first resource belongs to the first time-domain resource set. Then, the second terminal device determines a target resource based on the at least one first resource and the first time-domain resource set, wherein the target resource is used to transmit service data.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to the Chinese Patent Application No. 202110444568.2, filed on April 23, 2021, and entitled "Method for UE to Judge Conflict of Receiving Reservation Resources", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the technical field of communication, in particular to a resource determination method and a communication device. BACKGROUND

[0003] When communicating between the first terminal device and the second terminal device, the second terminal device receives assistance information from the first terminal device. The assistance information indicates resources recommended (or not recommended) for use by the first terminal device. The resources indicated by the assistance information are determined based on the interference level and resource occupation status on the side of the first terminal device to assist the second terminal device in selecting resources through a sensing mechanism.

[0004] However, all or part of the resources indicated by the assistance information can be located outside the resource selection window of the second terminal device, resulting in the assistance information not being fully utilized, and thus the resources selected by the second terminal device cannot fully take into account the status of the first terminal device, affecting the data transmission reliability. SUMMARY

[0005] Embodiments of the present application provide a resource determination method and a communication device, which can guarantee data transmission reliability.

[0006] To achieve the above-mentioned purpose, the embodiments of the present application adopt the following technical solutions:

[0007] In a first aspect, the embodiments of the present application provide a resource determination method. The execution subject of the method can be a second terminal device or a chip applied in the second terminal device. Hereinafter, the execution subject is taken as the second terminal device for description. The method comprises: the second terminal device sends first information to the first terminal device, wherein the first information indicates a second time domain resource set, the second time domain resource set includes at least two time domain resource units, and at least one time domain resource unit between the two time domain resource units does not belong to the second time domain resource set. Then, the second terminal device receives second information from the first terminal device, wherein the second information indicates at least one first resource, and each first resource in the at least one first resource is located in a time domain resource unit belonging to the second time domain resource set. After that, the second terminal device determines a target resource according to the at least one first resource, wherein the target resource is used to transmit service data.

[0008] In other words, the second terminal device sends first information to the first terminal device to enable the first terminal device to be more targeted in determining the first resource, namely, that at least one of the first resources belongs to a second set of time-domain resources. Since the second set of time-domain resources is a set of time-domain resource units known to the second terminal device, the second terminal device determines the target resource based on at least one first resource within the known time-domain resource units. That is, the second terminal device makes full use of the second information when selecting resources to take into account the interference situation of the first terminal device, thereby ensuring the reliability of data transmission.

[0009] In the first possible design, the second time-domain resource set is determined based on a second resource selection window, which is used by the second terminal device to select resources. That is, the time-domain resource units in the second time-domain resource set are within the second resource selection window.

[0010] In conjunction with the first aspect or the first possible design of the first aspect, in the second possible design, the first information indicates the location of the starting time-domain resource unit and the interval between it and the starting time-domain resource unit. That is, the first information indicates the specific location of each time-domain resource unit in the second time-domain resource set.

[0011] In a third possible design, combining the first aspect, the first possible design of the first aspect, or the second possible design of the first aspect, the first information includes at least one of the following: indication information, and information about the first service. The indication information indicates that the second terminal device is a partially sensing terminal, and the first service is the service corresponding to the service data.

[0012] In a fourth possible design, combining the first aspect, the first possible design of the first aspect, the second possible design of the first aspect, or the third possible design of the first aspect, the first resource includes resources recommended for use by the first terminal device. That is, compared to resources in the first resource selection window other than the aforementioned at least one first resource, the interference level of at least one first resource is relatively low. Alternatively, the first resource includes resources that the first terminal device recommends not using. That is, compared to resources in the first resource selection window other than the aforementioned at least one first resource, the interference level of at least one first resource is relatively high.

[0013] In conjunction with the first aspect, the first possible design of the first aspect, the second possible design of the first aspect, or the third possible design of the first aspect, in the fifth possible design, the first resource includes resources that the first terminal device tends to use. Alternatively, the first resource includes resources that the first terminal device tends not to use.

[0014] Secondly, embodiments of this application provide a resource determination method. The execution subject of this method can be a first terminal device or a chip applied in the first terminal device. The following description uses the first terminal device as the execution subject. The method includes: the first terminal device receiving first information from a second terminal device, wherein the first information indicates a second time-domain resource set, the second time-domain resource set including at least two time-domain resource units, and at least one time-domain resource unit between the two time-domain resource units not belonging to the second time-domain resource set. Then, the first terminal device determines at least one first resource within the second time-domain resource set. Afterwards, the first terminal device sends second information to the second terminal device, wherein the second information indicates at least one first resource.

[0015] In a first possible design, the first terminal device determines at least one first resource within a second time-domain resource set, including: the first terminal device determines candidate resources within the second time-domain resource set, wherein the time-domain resource unit containing the candidate resource belongs to the first time-domain resource set, the first time-domain resource set is determined based on a first resource selection window, and the first resource selection window is used by the first terminal device to select resources. Then, the first terminal device determines a second resource from the candidate resources, wherein the second resource belongs to at least one first resource.

[0016] In other words, when the first resource selection window and the second resource selection window overlap, the first terminal device processes the resources at the intersection to obtain the second resource. The first terminal device then feeds back the information of the second resource to the second terminal device, thus avoiding the problem of misalignment between the resource selection windows of the first and second terminal devices.

[0017] In a second possible design, the first terminal device determines at least one first resource within a second time-domain resource set, including: the first terminal device determines candidate resources within the second time-domain resource set, wherein the time-domain resource unit containing the candidate resource does not belong to the first time-domain resource set, the first time-domain resource set is determined based on a first resource selection window, and the first resource selection window is used by the first terminal device to select resources. Then, the first terminal device determines a third resource from the candidate resources, wherein the third resource belongs to at least one first resource.

[0018] In other words, the first terminal device selects a third resource from resources within the second resource selection window but outside the first resource selection window, so that the third resource is within the second resource selection window, thereby enabling the third resource to assist the second terminal device in resource selection.

[0019] In conjunction with the second possible design of the second aspect, in the third possible design, the first terminal device determines candidate resources within the second time-domain resource set, including: when the resource quantity of the second resource is less than a threshold, the first terminal device determines candidate resources within the second time-domain resource set. Wherein, the second resource belongs to at least one first resource, and the time-domain resource unit where the second resource is located belongs to the first time-domain resource set.

[0020] In other words, since the second resource is within both the first and second resource selection windows, it is the most preferred resource. Only when the second resource is insufficient will the first terminal device determine the third resource, which helps ensure data transmission reliability.

[0021] In a fourth possible design, combining the second possible design of the second aspect or the third possible design of the second aspect, the first terminal device determines the third resource from the candidate resources, including: the first terminal device performs resource detection to obtain the perception results of the candidate resources. Then, the first terminal device determines the third resource based on the perception results.

[0022] In other words, the first terminal device uses the method of adding sensing time domain resource units to determine the third resource, thereby ensuring the reliability of data transmission to a certain extent.

[0023] In conjunction with the second possible design or the third possible design of the second aspect, in the fifth possible design, the first terminal device determines the third resource from the candidate resources, including: the first terminal device determines the third resource based on the candidate resources and a preset ratio. That is, the first terminal device extracts a certain proportion of resources from the candidate resources as the third resource.

[0024] In conjunction with the fifth possible design in the second aspect, in the sixth possible design, the preset ratio is determined based on the resource quantity of the second resource. Specifically, the second resource belongs to at least one first resource, and the time-domain resource unit containing the second resource belongs to the first time-domain resource set, to ensure that the resource quantity of the target resource meets the requirements.

[0025] In the seventh possible design, which combines the second aspect and any one of the first to sixth possible designs of the second aspect, the second time-domain resource set is determined based on the second resource selection window, which is used by the second terminal device to select resources.

[0026] In the eighth possible design, which combines the second aspect and any one of the first to seventh possible designs of the second aspect, the first information indicates the location of the starting time-domain resource unit and the interval between it and the starting time-domain resource unit.

[0027] In conjunction with the second aspect and any one of the first to eighth possible designs of the second aspect, in the ninth possible design, the first information includes at least one of the following: indication information and information about the first service. Wherein, the indication information indicates that the second terminal device is a partially sensing terminal, and the first service is the service corresponding to the service data.

[0028] In conjunction with the second aspect and any one of the first to ninth possible designs of the second aspect, in the tenth possible design, the first resource includes resources recommended for use by the first terminal device. Alternatively, the first resource includes resources not recommended for use by the first terminal device.

[0029] Thirdly, embodiments of this application provide a resource determination method. The execution subject of this method can be a second terminal device or a chip applied in the second terminal device. The following description uses the second terminal device as an example. The method includes: the second terminal device receiving second information from a first terminal device, wherein the second information indicates at least one first resource and a first time-domain resource set, and the time-domain resource unit containing each of the at least one first resource belongs to the first time-domain resource set. Then, the second terminal device determines a target resource based on the at least one first resource and the first time-domain resource set, wherein the target resource is used to transmit service data.

[0030] In other words, the second terminal device receives second information from the first terminal device for reference when determining the target resource. Besides indicating at least one first resource, the second information also indicates a first set of time-domain resources. Therefore, the first set of time-domain resources is also a set of time-domain resource units known to the second terminal device. Based on at least one first resource within these known time-domain resource units, the second terminal device determines the target resource. That is, the second terminal device fully utilizes the second information when selecting resources to account for interference issues with the first terminal device, thereby ensuring data transmission reliability.

[0031] In the first possible design, the first time-domain resource set is determined based on a first resource selection window, which is used by the first terminal device to select resources. That is, the time-domain resource units in the first time-domain resource set are within the first resource selection window.

[0032] In conjunction with the third aspect, or the first possible design of the third aspect, in the second possible design, the second information indicates the location of the starting time-domain resource unit and the interval between it and the starting time-domain resource unit. That is, the second information also indicates the specific location of the time-domain resource unit in the first time-domain resource set.

[0033] In conjunction with the third aspect, the first possible design of the third aspect, or the second possible design of the third aspect, in the third possible design, the second information includes at least one of the following: the starting position of the first resource selection window, the window length of the first resource selection window, or the number of temporal resource units within the first resource selection window. The first resource selection window is used by the first terminal device to select resources.

[0034] In a fourth possible design, combining the third aspect, the first possible design of the third aspect, the second possible design of the third aspect, or the third possible design of the third aspect, the second information includes instruction information, wherein the instruction information indicates that the first terminal device is a partially sensing terminal.

[0035] In combination with the third aspect and any one of the first to fourth possible designs of the third aspect, in the fifth possible design, the target resource includes a second resource. The second resource is determined based on at least one first resource and belongs to a second time-frequency resource set, which is a resource set determined by the second terminal device based on the resource perception result of the second resource selection window.

[0036] In other words, the second resource is recommended for use by both the first and second terminal devices. This helps ensure the reliability of data transmission and avoids the problem of misalignment between the first and second terminal devices in the resource selection window.

[0037] Combining the third aspect and any one of the first to fifth possible designs of the third aspect, in the sixth possible design, the target resource includes at least one of the following:

[0038] The first item is the third resource, wherein the third resource is determined based on at least one first resource and does not belong to the second time-frequency resource set, the second time-frequency resource set being the resource set determined by the second terminal device based on the resource perception result of the second resource selection window.

[0039] The second item is the fourth resource, where the fourth resource belongs to the second time-frequency resource set, and the time-domain resource unit where the fourth resource is located does not belong to the first time-domain resource set.

[0040] Thus, when the target resource includes a third resource, which is recommended for use by the first terminal device but not by the second terminal device, data transmission reliability is guaranteed to a certain extent. When the target resource includes a fourth resource, which is recommended for use by the second terminal device but not indicated by the first terminal device, data transmission reliability is also guaranteed to a certain extent.

[0041] Combining the sixth possible design of the third aspect, in the seventh possible design, the third resource is the resource selected according to the first preset ratio.

[0042] Combining the sixth possible design of the third aspect, in the eighth possible design, the fourth resource is the resource selected according to the second preset ratio.

[0043] In the ninth possible design, which combines the sixth, seventh, or eighth possible designs of the third aspect, the target resource further includes a second resource, and the amount of the second resource is lower than the first threshold. The second resource is determined based on at least one first resource and belongs to the second time-frequency resource set.

[0044] Since the second resource is recommended for use by both the first and second terminal devices, it is the preferred resource. Only when the second resource is insufficient will the second terminal device determine at least one of the third and fourth resources, which helps ensure data transmission reliability.

[0045] In conjunction with the third aspect and any one of the first to fourth possible designs of the third aspect, in the tenth possible design, the target resource includes the fifth resource within the second resource selection window. The second resource selection window is used by the second terminal device to select resources, and the fifth resource is a resource determined based on at least one first resource and satisfying preset conditions.

[0046] In other words, the fifth resource is recommended for use by both the first and second terminal devices. This helps ensure the reliability of data transmission and avoids the problem of misalignment between the first and second terminal devices in the resource selection window.

[0047] In conjunction with the third aspect, the first possible design of the third aspect, the second possible design of the third aspect, the third possible design of the third aspect, the fourth possible design of the third aspect, or the tenth possible design of the third aspect, in the eleventh possible design, the target resource includes at least one of the following:

[0048] The first item is the sixth resource within the second resource selection window. The second resource selection window is used by the second terminal device to select resources. The time-domain resource unit containing the sixth resource does not belong to the first time-domain resource set, and the sixth resource meets preset conditions.

[0049] The second item is the seventh resource outside the second resource selection window. The seventh resource is determined based on at least one first resource.

[0050] In other words, when the target resource includes the sixth resource, which is a resource recommended for use by the second terminal device but not indicated by the first terminal device, data transmission reliability is guaranteed to a certain extent. Similarly, when the target resource includes the seventh resource, which is a resource recommended for use by the first terminal device but not indicated by the second terminal device, data transmission reliability is also guaranteed to a certain extent.

[0051] In conjunction with the eleventh possible design of the third aspect, in the twelfth possible design, the quantity of the seventh resource is determined based on at least one of the following:

[0052] The first item is the pre-configured ratio value.

[0053] The second item is the resource quantity difference between the fifth resource and the target resource, where the fifth resource is located within the second resource selection window. The fifth resource is a resource determined based on at least one first resource and that meets preset conditions.

[0054] In other words, the seventh resource can be a resource filtered according to a preset ratio to simplify the calculation process of the second terminal device. Alternatively, the seventh resource can also be a resource determined by combining the resource quantity difference to ensure that the resource quantity of the target resource meets the requirements.

[0055] In conjunction with the eleventh or twelfth possible design of the third aspect, in the thirteenth possible design, the target resource further includes a fifth resource within the second resource selection window, and the amount of the fifth resource is lower than the second threshold. The fifth resource is a resource determined based on at least one first resource and that satisfies preset conditions.

[0056] Since the fifth resource is recommended for use by both the first and second terminal devices, it is the optimal resource. Only when the amount of the fifth resource is insufficient will the second terminal device determine at least one of the sixth and seventh resources, which is beneficial to ensuring the reliability of data transmission.

[0057] In the fourteenth possible design, which combines the eleventh, twelfth, or thirteenth possible designs of the third aspect, the target resource further includes the fifth and sixth resources within the second resource selection window, wherein the sum of the resource quantities of the fifth and sixth resources is less than the third threshold. The fifth resource is a resource determined based on at least one first resource and that satisfies preset conditions.

[0058] Since the fifth and sixth resources are not explicitly recommended for non-use by the first terminal device, while the seventh resource is recommended for non-use by the first terminal device, the interference levels of the fifth and sixth resources are lower than those of the seventh resource, thus contributing to ensuring data transmission reliability. The second terminal device only determines to use the seventh resource when the combined resources of the fifth and sixth resources are insufficient, further ensuring data transmission reliability.

[0059] In conjunction with the third aspect and any one of the first to fourteenth possible designs of the third aspect, in the fifteenth possible design, the first resource includes resources recommended for use by the first terminal device. Alternatively, the first resource includes resources not recommended for use by the first terminal device.

[0060] Fourthly, embodiments of this application provide a resource determination method. The execution subject of this method can be a first terminal device or a chip applied in the first terminal device. The following description uses the first terminal device as the execution subject. The method includes: the first terminal device determining at least one first resource within a first time-domain resource set, wherein the time-domain resource unit containing each of the at least one first resource belongs to the first time-domain resource set. Then, the first terminal device sends second information to a second terminal device, wherein the second information indicates at least one first resource and the first time-domain resource set.

[0061] In the first possible design, the first time-domain resource set is determined based on a first resource selection window, which is used by the first terminal device to select resources.

[0062] In conjunction with the fourth aspect, or the first possible design of the fourth aspect, in the second possible design, the second information indicates the location of the starting time-domain resource unit and the interval between it and the starting time-domain resource unit.

[0063] In a third possible design, combining the fourth aspect, the first possible design of the fourth aspect, or the second possible design of the fourth aspect, the second information includes at least one of the following: the starting position of the first resource selection window, the window length of the first resource selection window, or the number of temporal resource units within the first resource selection window. The first resource selection window is used by the first terminal device to select resources.

[0064] In combination with the fourth aspect, the first possible design of the fourth aspect, the second possible design of the fourth aspect, or the third possible design of the fourth aspect, in the fourth possible design, the second information includes instruction information, wherein the instruction information indicates that the first terminal device is a partially sensing terminal.

[0065] In conjunction with the fourth aspect and any one of the first to fourth possible designs of the fourth aspect, in the fifth possible design, the first resource includes resources recommended for use by the first terminal device. Alternatively, the first resource includes resources not recommended for use by the first terminal device.

[0066] Fifthly, embodiments of this application provide a resource determination method. The execution subject of this method can be a second terminal device or a chip applied in the second terminal device. The following description uses the second terminal device as an example. The method includes: the second terminal device receiving second information from a first terminal device, wherein the second information indicates at least one first resource, the at least one first resource is located outside a second resource selection window, and the second resource selection window is used by the second terminal device to select resources. Then, the second terminal device determines a target resource based on the at least one first resource, wherein the target resource is located outside the second resource selection window and is used to transmit service data.

[0067] In other words, after receiving the second information from the first terminal device, even if the second information indicates a first resource outside the second resource selection window, the second terminal device can still determine the target resource by combining the first resource indicated by the second information and use the target resource outside the second resource selection window to transmit service data. Because the second terminal device makes full use of the second information when selecting resources, it takes into account the interference situation of the first terminal device, thereby ensuring the reliability of data transmission.

[0068] In a first possible design, the second terminal device determines the target resource based on at least one first resource, including: the second terminal device determining the target resource from at least one first resource according to a ratio. That is, the second terminal device extracts a certain number of resources from the first resources as the target resource.

[0069] In a second possible design, the second terminal device determines the target resource based on at least one first resource, including: the second terminal device performing resource detection to obtain a perception result of at least one first resource; and then, the second terminal device determining the target resource based on the perception result.

[0070] In other words, the second terminal device uses the method of adding sensing time domain resource units to select a certain number of resources from the first resource as target resources.

[0071] In conjunction with the first or second possible design of the fifth aspect, in the third possible design, the second terminal device determines the target resource based on at least one first resource, including: under the condition that a first preset condition is met, the second terminal device determines the target resource based on at least one first resource. The first preset condition includes at least one of the following:

[0072] The first item is that the amount of the second resource is less than the first preset value, wherein the second resource is a resource determined based on at least one first resource within the second resource selection window.

[0073] The second item is that the amount of the third resource is less than the second preset value, wherein the third resource is the resource among the second resources that meets the second preset condition.

[0074] The third item is that the amount of the fourth resource is less than the third preset value. The fourth resource belongs to the second resource and belongs to the second time-frequency resource set. The second time-frequency resource set is the resource set determined by the second terminal device based on the resource perception result of the second resource selection window.

[0075] If the first preset condition includes the first item, since the second resource is a resource recommended by the first terminal device within the second resource selection window, the second terminal device prioritizes determining the amount of the second resource. If the amount of the second resource is insufficient, the second terminal device then filters resources outside the second resource selection window from those recommended by the first terminal device (i.e., the first resource) to obtain the target resource, thereby ensuring that the amount of resources used for transmitting service data meets the requirements.

[0076] If the first preset condition includes the second item, since the second resource is a resource recommended by the first terminal device within the second resource selection window, the second terminal device prioritizes determining the amount of the second resource. If there are insufficient resources in the second resource that meet the second preset condition, the second terminal device then filters resources from outside the second resource selection window and from the resources recommended by the first terminal device (i.e., the first resource) to obtain the target resource, so that the amount of resources used for transmitting service data meets the requirements.

[0077] When the first preset condition includes the third item, since the fourth resource belongs to the resource at the intersection of the first resource selection window and the second resource selection window, that is, the fourth resource is the most preferred resource, the second terminal device prioritizes the fourth resource. When the amount of the fourth resource is insufficient, the second terminal device selects resources from outside the second resource selection window and from the resources recommended by the first terminal device (i.e., the first resource) to obtain the target resource so that the amount of resources used to transmit service data meets the requirements.

[0078] In conjunction with the fifth aspect and any one of the first to third possible designs of the fifth aspect, in the fourth possible design, the resource determination method of this application embodiment further includes: the second terminal device determining a fourth resource within a second resource selection window. The fourth resource is used to transmit service data to the first terminal device and satisfies the following two conditions:

[0079] The first item states that the fourth resource is determined based on at least one first resource.

[0080] The second item states that the time-domain resource unit where the fourth resource is located belongs to the second time-frequency resource set, wherein the second time-frequency resource set is the resource set determined by the second terminal device based on the resource perception result of the second resource selection window.

[0081] In other words, the second terminal device can also determine the fourth resource within the second resource selection window. This fourth resource is supported by both the first and second terminal devices, which helps ensure the reliability of data transmission.

[0082] In conjunction with the fifth aspect and any one of the first to third possible designs of the fifth aspect, in the fifth possible design, the resource determination method of this application embodiment further includes: the second terminal device determining a fifth resource in a second resource selection window, wherein the fifth resource is used to transmit service data to the first terminal device, and the fifth resource satisfies the following two conditions:

[0083] First, the fifth resource does not belong to at least one first resource.

[0084] The second item states that the time-domain resource unit where the fifth resource is located belongs to the second time-frequency resource set, where the second time-frequency resource set is the resource set determined by the second terminal device based on the resource perception result of the second resource selection window.

[0085] In other words, the second terminal device can also determine the fifth resource in the second resource selection window. Since the fifth resource is a resource that the first terminal device did not indicate as recommended for use, but the second terminal device recommends for use, it ensures the reliability of data transmission to a certain extent.

[0086] In conjunction with the fifth possible design of the fifth aspect, in the sixth possible design, the second terminal device determines the fifth resource within the second resource selection window, including: when the resource quantity of the fourth resource is lower than a threshold, the second terminal device determines the fifth resource within the second resource selection window. The fourth resource is used to transmit service data to the first terminal device and satisfies the following two conditions:

[0087] The first item states that the fourth resource is determined based on at least one first resource.

[0088] The second item is that the time-domain resource unit where the fourth resource is located belongs to the second time-frequency resource set.

[0089] Since the fourth resource is located at the intersection of the first and second resource selection windows, it is the preferred resource. Only when the amount of the fourth resource is insufficient will the second terminal device determine the fifth resource to ensure that the amount of resource available for transmitting service data meets the requirements.

[0090] In the seventh possible design, which combines the fifth aspect and any one of the first to sixth possible designs of the fifth aspect, the first resource includes the resources recommended for use by the first terminal device.

[0091] In conjunction with the fifth aspect, in the eighth possible design, the second terminal device determines the target resource based on at least one first resource, including: the second terminal device determines the target resource from candidate resources based on a ratio value, wherein the candidate resources include resources outside the second resource selection window and other than at least one first resource.

[0092] In other words, if the first resource is a resource that the first terminal device recommends not to use, the second terminal device determines the target resource from outside the second resource selection window and from the resources other than the first resource mentioned above, thereby ensuring the reliability of data transmission to a certain extent.

[0093] In conjunction with the fifth aspect, in the ninth possible design, the second terminal device determines the target resource based on at least one first resource, including: the second terminal device performing resource detection to obtain a perception result of candidate resources, wherein the candidate resources include resources outside the second resource selection window and other than at least one first resource. Then, the second terminal device determines the target resource based on the perception result.

[0094] In other words, the second terminal device uses the method of adding a sensing time domain resource unit to select a certain number of resources from outside the second resource selection window and from the resources other than the first resource mentioned above, as the target resources.

[0095] In conjunction with the eighth or ninth possible design of the fifth aspect, in the tenth possible design, the second terminal device determines the target resource based on at least one first resource, including: under the condition of satisfying a third preset condition, the second terminal device determines the target resource based on at least one first resource. The third preset condition includes at least one of the following:

[0096] The first item is that the amount of the second resource is less than the first preset value. The second resource does not belong to at least one first resource, but belongs to the second time-frequency resource set. The second time-frequency resource set is the resource set determined by the second terminal device based on the resource perception result of the second resource selection window.

[0097] The second condition is that the amount of resources in the second time-frequency resource set is less than the second preset value.

[0098] When the third preset condition includes the first item, since the second resource does not belong to the first resource mentioned above, that is, the first terminal device does not indicate a resource that is recommended not to be used, and the second resource belongs to the resource recommended for use by the second terminal device, the second terminal device prioritizes determining the amount of the second resource. Only when the second resource is insufficient will the second terminal device determine the target resource from the resources outside the second resource selection window and other than the first resource mentioned above, thereby ensuring the reliability of data transmission to a certain extent.

[0099] When the third preset condition includes the second item, since the resources in the second time-frequency resource set are resources recommended for use by the second terminal device, the second terminal device prioritizes the selection of resources in the second time-frequency resource set. Only when the resources in the second time-frequency resource set are insufficient will the second terminal device select the target resource from resources outside the second resource selection window and other than the first resource mentioned above, thereby ensuring the reliability of data transmission to a certain extent.

[0100] In conjunction with the fifth aspect and any one of the eighth to tenth possible designs of the fifth aspect, in the eleventh possible design, the resource determination method of this application embodiment further includes: the second terminal device determining a second resource. The second resource is used to transmit service data to the first terminal device. The second resource does not belong to at least one first resource, but belongs to a second time-frequency resource set. The second time-frequency resource set is a resource set determined by the second terminal device based on the resource perception result of the second resource selection window.

[0101] In other words, the second terminal device can also determine the second resource within the second resource selection window. This second resource is not part of the first resource mentioned above; that is, the first terminal device has not indicated a resource that should not be used. Furthermore, the second resource is a resource recommended for use by the second terminal device, ensuring the reliability of data transmission.

[0102] In combination with the fifth aspect and any one of the eighth to eleventh possible designs of the fifth aspect, in the twelfth possible design, the first resource includes resources that the first terminal device recommends not using.

[0103] Sixthly, embodiments of this application provide a communication device, which can be a second terminal device in the first aspect or any possible design of the first aspect, or the communication device can be a second terminal device in the third aspect or any possible design of the third aspect, or the communication device can be a second terminal device in the fifth aspect or any possible design of the fifth aspect; or it can be a device disposed within the second terminal device, or a chip that implements the functions of the second terminal device; the communication device includes modules, units, or means that implement the methods described above, which can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.

[0104] Seventhly, embodiments of this application provide a communication device, which can be a first terminal device in the second aspect or any possible design of the second aspect described above, or the communication device can be a first terminal device in the fourth aspect or any possible design of the fourth aspect described above; or it can be a device disposed within the first terminal device, or a chip that implements the functions of the first terminal device; the communication device includes modules, units, or means that implement the methods described above, which can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.

[0105] Eighthly, embodiments of this application provide a communication device, including: a processor and a memory; the memory is used to store computer instructions, which, when executed by the processor, cause the communication device to perform the method executed by the second terminal device in any of the above-described aspects or any possible designs of any of the above-described aspects. The communication device may be the second terminal device in any of the above-described first aspects or any possible designs of the first aspect, or a chip implementing the functions of the second terminal device. Alternatively, the communication device may be the second terminal device in any of the above-described third aspects or any possible designs of the third aspect, or a chip implementing the functions of the second terminal device. Alternatively, the communication device may be the second terminal device in any of the above-described fifth aspects or any possible designs of the fifth aspect, or a chip implementing the functions of the second terminal device. Alternatively, the communication device may be the first terminal device in any of the above-described second aspects or any possible designs of the second aspect, or a chip implementing the functions of the first terminal device. Alternatively, the communication device may be the first terminal device in any of the above-described fourth aspects or any possible designs of the fourth aspect, or a chip implementing the functions of the first terminal device.

[0106] In a ninth aspect, embodiments of this application provide a communication device, comprising: a processor; the processor being coupled to a memory for reading and executing instructions from the memory, so that the communication device performs a method as performed by a second terminal device in any of the above aspects or any possible designs of any of the above aspects. The communication device may be a second terminal device in any of the above-described first aspects or any possible designs of the first aspect, or a chip implementing the functions of the second terminal device. Alternatively, the communication device may be a second terminal device in any of the above-described third aspects or any possible designs of the third aspect, or a chip implementing the functions of the second terminal device. Alternatively, the communication device may be a second terminal device in any of the above-described fifth aspects or any possible designs of the fifth aspect, or a chip implementing the functions of the second terminal device. Alternatively, the communication device may be a first terminal device in any of the above-described second aspects or any possible designs of the second aspect, or a chip implementing the functions of the first terminal device. Alternatively, the communication device may be a first terminal device in any of the above-described fourth aspects or any possible designs of the fourth aspect, or a chip implementing the functions of the first terminal device.

[0107] In a tenth aspect, embodiments of this application provide a chip, including logic circuitry and an input / output interface. The input / output interface is used to communicate with modules outside the chip. For example, the chip can be a chip implementing the second terminal device function in the first aspect or any possible design of the first aspect described above. The input / output interface is used to input second information and to output first information. The logic circuitry is used to run computer programs or instructions to implement the method in the first aspect or any possible design of the first aspect described above. Alternatively, the chip can be a chip implementing the second terminal device function in the third aspect or any possible design of the third aspect described above. The input / output interface is used to input second information. The logic circuitry is used to run computer programs or instructions to implement the method in the third aspect or any possible design of the third aspect described above. Another example is that the chip can be a chip implementing the second terminal device function in the fifth aspect or any possible design of the fifth aspect described above. The input / output interface is used to input second information. The logic circuitry is used to run computer programs or instructions to implement the method in the fifth aspect or any possible design of the fifth aspect described above. Yet another example is that the chip can be a chip implementing the first terminal device function in the second aspect or any possible design of the second aspect described above. The input / output interface is used to input first information and to output second information. The logic circuit is used to run computer programs or instructions to implement the methods in the second aspect or any possible design of the second aspect. For example, the chip can be a chip that implements the functions of a first terminal device in the fourth aspect or any possible design of the fourth aspect. The input / output interface is used to output second information. The logic circuit is used to run computer programs or instructions to implement the methods in the fourth aspect or any possible design of the fourth aspect.

[0108] Eleventhly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a computer, enable the computer to perform the methods of any of the preceding aspects.

[0109] In a twelfth aspect, embodiments of this application provide a computer program product containing instructions that, when run on a computer, enable the computer to perform the method of any of the preceding aspects.

[0110] In a thirteenth aspect, embodiments of this application provide a circuit system including a processing circuit configured to perform the method as described in any of the preceding aspects.

[0111] In a fourteenth aspect, embodiments of this application provide a communication system, which includes a first terminal device and a second terminal device as described in any of the foregoing aspects.

[0112] The technical effects of any of the designs in aspects six through fourteen can be found in the beneficial effects of the corresponding methods provided above, and will not be repeated here. Attached Figure Description

[0113] Figure 1 A schematic diagram of resource distribution for a full-awareness mechanism provided in an embodiment of this application;

[0114] Figure 2 A schematic diagram of resource distribution for a partial sensing mechanism provided in an embodiment of this application;

[0115] Figure 3 A flowchart illustrating a resource determination method provided in an embodiment of this application;

[0116] Figure 4 This application provides a schematic diagram of the architecture of a communication system.

[0117] Figure 5 This is a schematic diagram of the architecture of another communication system provided in an embodiment of this application;

[0118] Figure 6 A flowchart illustrating a resource determination method provided in an embodiment of this application;

[0119] Figure 7a A flowchart illustrating another resource determination method provided in an embodiment of this application;

[0120] Figure 7b A flowchart illustrating yet another resource determination method provided in an embodiment of this application;

[0121] Figure 8a A flowchart illustrating yet another resource determination method provided in an embodiment of this application;

[0122] Figure 8b A schematic diagram of resource distribution provided in an embodiment of this application;

[0123] Figure 9a A flowchart illustrating yet another resource determination method provided in an embodiment of this application;

[0124] Figure 9b This is another resource distribution diagram provided in the embodiments of this application;

[0125] Figure 9c A flowchart illustrating yet another resource determination method provided in an embodiment of this application;

[0126] Figure 9d This is yet another resource distribution diagram provided in the embodiments of this application;

[0127] Figure 10 A flowchart illustrating yet another resource determination method provided in an embodiment of this application;

[0128] Figure 11a This is yet another resource distribution diagram provided in the embodiments of this application;

[0129] Figure 11b A flowchart illustrating yet another resource determination method provided in an embodiment of this application;

[0130] Figure 11c A flowchart illustrating yet another resource determination method provided in an embodiment of this application;

[0131] Figure 11d This is yet another resource distribution diagram provided in the embodiments of this application;

[0132] Figure 12a This is yet another resource distribution diagram provided in the embodiments of this application;

[0133] Figure 12b A flowchart illustrating yet another resource determination method provided in an embodiment of this application;

[0134] Figure 12c A flowchart illustrating yet another resource determination method provided in an embodiment of this application;

[0135] Figure 12d This is yet another resource distribution diagram provided in the embodiments of this application;

[0136] Figure 13 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application;

[0137] Figure 14 This is a schematic diagram of another communication device provided in an embodiment of this application. Detailed Implementation

[0138] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or different treatments of the same object, rather than to describe a specific order of objects. Furthermore, the terms "comprising" and "having," and any variations thereof, mentioned in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. In embodiments of this application, "a plurality of" includes two or more. In embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary" or "for example" in embodiments of this application should not be construed as preferred or advantageous over other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner. In embodiments of this application, "transmission" may include "sending" or "receiving," or may include both sending and receiving, depending on the specific circumstances.

[0139] First, the full-sensory mechanism involved in this application will be introduced.

[0140] In version 14 (R14) of the protocol, a full-perception mechanism was introduced for vehicle-to-everything (V2X) communication. The specific processing procedure is as follows:

[0141] Step 1: The second terminal device acquires the service data to be sent.

[0142] For example, see Figure 1 The second terminal device receives new service data at or near time n and needs to send the service data to other terminal devices (such as the first terminal device).

[0143] Step 2: The second terminal device determines the sensing window and the resource selection window.

[0144] For example, see Figure 1 The perception window is the preset duration before time n, such as 1000 ms. The start time of the perception window can be denoted as n-T0, and the end time of the perception window can be denoted as nT. proc,0The resources in the perception window include periodic traffic resources and aperiodic traffic resources. The interval between periodic traffic resources is marked as a gap, i.e., the transmission period. The transmission period is generally an integer multiple of 100ms, but can also be 20ms or 50ms. The perception window can also be described as a listening window; this embodiment of the application does not limit this description.

[0145] For example, see Figure 1 The resource selection window is the preset duration after time n. The start time of the resource selection window can be denoted as n+T1, and the end time can be denoted as n+T2. Resources in the resource selection window are candidate resources.

[0146] Step 3: The second terminal device selects transmission resources in the resource selection window based on the perception results of the perception window and reports them to the medium access control (MAC) layer.

[0147] For example, in a full-sensing mechanism, the second terminal device senses all resources within the sensing window to obtain the sensing result. For instance... Figure 1 As shown, the second terminal device senses resources within the sensing window (such as periodically transmitted resources and non-periodically transmitted resources). Then, based on the sensing results, the second terminal device selects resources within the resource selection window. For example, the second terminal device selects resources based on the reference signal received power (RSRP) threshold of the sidelink (SL) to filter out X% of resources from the resource selection window and report them to the MAC layer. The reference signal received power threshold can also be replaced by a reference signal received power limit value, denoted as SL-Thres-RSRP-List. The reference signal received power limit value is determined based on pi and pj. Here, pi is the priority of the service to be transmitted on the second terminal device, and pj is the priority of the service transmitted on the resources in the sensing window. If the RSRP measurement value of a resource exceeds the reference signal received power threshold, the second terminal device determines that the resource is unavailable. Conversely, if the RSRP measurement value of a resource does not exceed the reference signal received power threshold, the second terminal device determines that the resource is available and belongs to the pool of resources to be selected, so that further random selection and other processing steps can be performed. Generally, the higher the priority of the service to be transmitted on the second terminal device, the lower the requirement for interference, that is, the higher the value of the reference signal received power threshold, so as to cover more resources.

[0148] To further reduce power consumption on the terminal device side, the second terminal device can employ a partial sensing mechanism. For example, the sensing window and resource selection window still meet certain periodicity requirements, but the resources (such as time slots) within the sensing window and resource selection window are discontinuous. See, for example... Figure 2 The time slots within the resource selection window are distributed according to a period T1 interval. This reduces the number of time slots available to the second terminal device and also reduces the number of time slots it can sense, thereby lowering the power consumption of the second terminal device.

[0149] To further improve data transmission reliability, the second terminal device takes into account interference from the first terminal device when selecting resources. For example, see [link to example]. Figure 3 The second terminal device sends a trigger message to the first terminal device. Correspondingly, the first terminal device receives the trigger message from the second terminal device. The trigger message carries information such as the priority and latency requirements of the service data to be transmitted. Based on the information carried in the trigger message, the first terminal device selects resources in a resource selection window to obtain resources that it recommends using (or recommends not using). Then, the first terminal device sends auxiliary information to the second terminal device. Correspondingly, the second terminal device receives the auxiliary information from the first terminal device. The auxiliary information indicates resources that the first terminal device recommends using (or recommends not using). The resources indicated by the auxiliary information are determined based on the interference level and resource occupancy status on the first terminal device's side, to assist the second terminal device in selecting resources through a full-sensing mechanism or a partial-sensing mechanism.

[0150] However, all or part of the resources indicated by the auxiliary information may be outside the resource selection window of the second terminal device, resulting in the auxiliary information not being fully utilized. Consequently, the resources selected by the second terminal device cannot fully take into account the interference situation of the first terminal device, affecting the reliability of data transmission.

[0151] In other words, when the resource selection window corresponding to the auxiliary information is not aligned with the resource selection window of the second terminal device, the reliability of data transmission is affected. This misalignment can mean that at least one resource indicated by the auxiliary information is not in the resource selection window of the second terminal device (or at least one resource indicated by the auxiliary information is outside the resource selection window of the second terminal device), or that the resource selection window containing the resource indicated by the auxiliary information does not overlap completely or partially with the resource selection window of the second terminal device (or the resource selection window containing the resource indicated by the auxiliary information does not completely overlap with the resource selection window of the second terminal device).

[0152] In view of this, embodiments of this application provide a resource determination method. This resource determination method can be applied to systems where terminal devices communicate, such as V2X communication systems and device-to-device (D2D) systems. See also... Figure 4 The communication system includes at least two terminal devices 40, which can communicate directly with each other via a side link. Optionally, see [link to other documentation]. Figure 5 The communication system also includes network device 50. Terminal device 40 can also communicate with network device 50. Figure 4 and Figure 5 Only two terminal devices (40) are shown in the image.

[0153] The terminal device 40 is primarily used to receive or send data. Optionally, the terminal device 40 involved in this embodiment can be a device or a component of a device that implements the functions of the terminal device 40. For example, the terminal device 40 includes, but is not limited to, various handheld devices, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem with wireless communication functions; it can also include a subscriber unit, cellular phone, smartphone, wireless data card, personal digital assistant (PDA) computer, tablet computer, handheld device, laptop computer, machine type communication (MTC) terminal, user equipment (UE), mobile terminal, etc. Furthermore, the terminal device 40 can be a component of any of the above-mentioned devices (for example, the terminal device 40 can refer to the chip system in any of the above-mentioned devices). The terminal device 40 involved in the embodiments of this application can also be an on-board module, on-board component, on-board chip, or on-board unit built into a vehicle as one or more components or units. The vehicle can implement the methods of this application through the built-in on-board module, on-board component, on-board chip, or on-board unit. In some embodiments of this application, the terminal device can also be referred to as a terminal, which will be uniformly stated here and will not be repeated below.

[0154] Network device 50 is a device deployed in a wireless access network to provide wireless communication functions. Optionally, network device 50 can refer to a device that communicates with wireless terminal device 40 through one or more cells on the air interface of the access network. The device that implements the functions of network device 50 can be network device 50 itself, or it can be a device that supports network device 50 in implementing these functions (such as a chip in network device 50). Optionally, network device 50 can perform attribute management of the air interface. Base station equipment can also coordinate the attribute management of the air interface. Network device 50 includes various forms of macro base stations, micro base stations (also called small cells), relay equipment or chips for relay stations, transmission reception points (TRPs), evolved Node Bs (eNBs), next-generation Node Bs (gNBs), and evolved Node Bs (ng-eNBs) connecting to the next-generation core network. Alternatively, in a distributed base station scenario, network device 50 can be a base band unit (BBU) and a remote radio unit (RRU). In a cloud radio access network (CRAN) scenario, network device 50 can be a base band pool (BBU pool) and an RRU.

[0155] Figure 4 and Figure 5 The communication system shown can be applied to current Long Term Evolution (LTE) or LTE Advanced (LTE-A) systems, as well as to currently developing 5G networks or other future networks. It can also be applied to systems with hybrid LTE and 5G networks, or other systems. This application does not specifically limit its application in this regard. Furthermore, in different networks, the network device 50 and terminal device 40 in the above communication system may have different names. Those skilled in the art will understand that the names do not limit the devices themselves.

[0156] The communication systems and service scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. Those skilled in the art will understand that, with the evolution of network architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0157] The resource determination method provided in the embodiments of this application will be described in detail below.

[0158] It should be noted that the message names or parameter names between network elements in the following embodiments of this application are merely examples, and other names may be used in the specific implementation. In the embodiments of this application, the resources indicated by the auxiliary information may include resources recommended for use by the first terminal device, or resources that the first terminal device recommends not using. "Recommended" can also be replaced with "prefers" or "expects". That is, the resources indicated by the auxiliary information may include resources that the first terminal device prefers to use, or resources that the first terminal device prefers not to use. "Recommended to use" can also be replaced with "can be used", and "recommended not to use" can also be replaced with "cannot be used". That is, the resources indicated by the auxiliary information may include resources that the first terminal device can use, or resources that the first terminal device cannot use. In the embodiments of this application, the expression "recommended" is used as an example for description. The first resource selection window is used for the first terminal device to select resources, and the second resource selection window is used for the second terminal device to select resources. The implementation process of resource selection can be found in the relevant descriptions of the full-sensing mechanism or partial-sensing mechanism. The time-domain resource unit may include one of the following: time slot, symbol, etc. In this application, a trigger message is used as an example for description. In this embodiment, the interval between A and B refers to the difference determined based on the index of the time-domain resource unit where A and B reside. For example, in the same time slot, if A occupies a time slot with index 1 and B occupies a time slot with index 6, then the interval between A and B is 5 time slots. It should be understood that the interval between A and B can also be equivalently replaced by the number of time-domain resource units located between A and B, but the numerical difference is 1. For example, in the same time slot, if A occupies a time slot with index 1 and B occupies a time slot with index 6, then the interval between A and B is 4 time slots. This is explained uniformly here and will not be repeated below.

[0159] This application provides a resource determination method 600, which is applied during data transmission on a side link. See also... Figure 6 The method includes the following steps:

[0160] S601, the second terminal device sends first information to the first terminal device. Correspondingly, the first terminal device receives the first information from the second terminal device.

[0161] The first information indicates the second time-domain resource set.

[0162] The second time-domain resource set is described as follows: The second time-domain resource set includes at least two time-domain resource units, and at least one time-domain resource unit between these two units does not belong to the second time-domain resource set. In other words, the time-domain resource units in the second time-domain resource set are discontinuous in the time domain. For example, taking time slots as time-domain resource units, the second time-domain resource set includes time slots with indices 1, 3, 5, and 7, or it may include time slots with indices 1, 3, 5, 6, and 7. Exemplarily, the second time-domain resource set is determined based on a second resource selection window; that is, the time-domain resource units in the second time-domain resource set are located within the second resource selection window.

[0163] The first piece of information is described as follows:

[0164] For example, the first information indicates the location of the starting time-domain resource unit and the interval between it and other time-domain resource units. The second time-domain resource set may or may not include the starting time-domain resource unit. For example, still taking a time slot as an example, the first information may include a bitmap. Each bitmap corresponds to a second resource selection window, and each bitmap includes at least one bit. One bit in the bitmap corresponds to one time slot. If a bit has a value of "1", the time slot corresponding to that bit belongs to the second time-domain resource set. Conversely, if a bit has a value of "0", the time slot corresponding to that bit does not belong to the second time-domain resource set. For example, if the bitmap value is 01010101, the starting time slot's corresponding bit value is "0", and it does not belong to the second time-domain resource set. The time slot indices corresponding to the bits with a value of "1" in the bitmap are 1, 3, 5, and 7. That is, the second time-domain resource set includes time slots with indices 1, 3, 5, and 7. For example, the bitmap value is 11010111, meaning the starting time slot corresponds to a bit value of "1", which belongs to the second time domain resource set. The time slot indices corresponding to the bits with a value of "1" in the bitmap are 0, 1, 3, 5, 6, and 7. In other words, the second time domain resource set includes time slots with indices 0, 1, 3, 5, 6, and 7.

[0165] For example, the first information also includes at least one of the following:

[0166] The first item is the indication information. This indication information indicates that the second terminal device is a partially sensing terminal, meaning it uses a partial sensing mechanism for resource selection. For example, the indication information can be a preset number of bits. If the indication information is implemented as one bit, and the bit's value is "1", the indication information indicates that the second terminal device is a partially sensing terminal. In this way, the first terminal device can determine that the time-domain resource units in the second time-domain resource set are discontinuous in the time domain. Conversely, if the bit's value is "0", the indication information indicates that the second terminal device is a fully sensing terminal. In this way, the first terminal device can determine that the time-domain resource units in the second resource selection window are continuous in the time domain.

[0167] The second item is information about the first service. The first service refers to the service corresponding to the aforementioned service data. For example, the information about the first service includes its cycle time, start time slot, and other information.

[0168] The third item is the starting position of the second resource selection window. For example, the first information indicates the starting time slot position of the second resource selection window through a preset number of bits. As one possible implementation, the first information indicates N time-domain resource units through a preset number of bits. Here, N refers to the number of time-domain resource units between the starting position of the second resource selection window and the time-domain resource that sent the first information. For example, if the starting position of the second resource selection window is 6 time slots away from the time slot where the first information is located, then N = 6, and the value indicated by the preset number of bits in the first information is 6. The information indicating the starting time slot position of the second resource selection window in the first information is determined based on the interval between the starting position of the second resource selection window and the time-domain resource unit that sent the first information.

[0169] The fourth item is the window length of the second resource selection window. The window length can also be replaced by the window size. For example, when the second terminal device adopts a full-sensory mode, the window length of the second resource selection window can be characterized by the number of temporal resource units in the second resource selection window.

[0170] The fifth item is the number of time-domain resource units within the second resource selection window. Taking time slots as an example, when the bitmap value is 01010101, the number of time slots within the second resource selection window is 4. When the bitmap value is 11010111, the number of time slots within the second resource selection window is 6.

[0171] The sixth item is the cycle of the second resource selection window.

[0172] For example, the first piece of information could be a trigger message; see [link to relevant documentation] for details. Figure 3The relevant explanations will not be repeated here. The trigger message belongs to sidelink control signaling and can be carried in sidelink control information (SCI)-2 or in MAC layer signaling. Of course, the first information can also be implemented as other messages, such as configuration messages of radio resource control (RRC) signaling, which is not limited in this application embodiment.

[0173] S602, the first terminal device determines at least one first resource within the second time domain resource set.

[0174] The number of first resources can be one or more. Each time-domain resource unit containing at least one first resource belongs to the second time-domain resource set. When the first resource is a resource recommended for use by the first terminal device, its interference level is relatively low compared to other resources in the first resource selection window besides the aforementioned at least one first resource. Conversely, when the first resource is a resource that the first terminal device recommends not using, its interference level is relatively high compared to other resources in the first resource selection window besides the aforementioned at least one first resource.

[0175] When selecting resources, the first terminal device can use either a full-sensing mode or a partial-sensing mode, as illustrated in the following two examples:

[0176] Example 1: The first terminal device uses a full-sensing mode for resource selection. For example, the specific implementation process of S602 is as follows: First, the first terminal device performs resource detection to determine sensing result 1. The objects of resource detection include at least one of the following: resources within the second time-domain resource set, and resources within a preset time period prior to the second time-domain resource set. Then, based on sensing result 1, the first terminal device determines at least one first resource from the second time-domain resource set. The process of determining sensing result 1, and the process of determining at least one first resource based on sensing result 1, can be found in the relevant introduction to the full-sensing mechanism, and will not be repeated here.

[0177] Example 2: The first terminal device uses a partial sensing mode for resource selection. See the following three methods for details:

[0178] Method 1, see Figure 7a The specific implementation process of S602 includes S602a and S602b:

[0179] S602a, The first terminal device determines candidate resource 1 within the second time domain resource set.

[0180] The number of candidate resources 1 can be one or more. Furthermore, the temporal resource unit containing candidate resource 1 belongs to the first temporal resource set, which is determined based on the first resource selection window.

[0181] For example, the first terminal device selects resources whose time-domain resource units belong to both the first time-domain resource set and the second time-domain resource set as candidate resource 1. In other words, candidate resource 1 is within both the first resource selection window and the second resource selection window.

[0182] S602b, The first terminal device determines the second resource from candidate resource 1.

[0183] There can be one or more second resources. Each second resource belongs to at least one first resource.

[0184] For example, the first terminal device determines the second resource based on candidate resource 1 and a preset ratio 1. For instance, the first terminal device selects a certain number of resources from candidate resource 1 according to the preset ratio 1 to serve as the second resource. Alternatively, the first terminal device performs resource detection on candidate resource 1 and / or the resources preceding candidate resource 1 to determine perception result 2. The first terminal device determines the second resource based on perception result 2. Perception result 2 indicates the RSRP measurement value of each resource in candidate resource 1. The process of determining perception result 2, and the process of determining the second resource based on perception result 2, can be found in the relevant descriptions of some perception mechanisms, and will not be repeated here.

[0185] In other words, when the first resource selection window and the second resource selection window overlap, the first terminal device processes the resources at the intersection to obtain the second resource. The first terminal device then feeds back the information of the second resource to the second terminal device, thus avoiding the problem of misalignment between the resource selection windows of the first and second terminal devices.

[0186] It should be understood that the first resource selection window and the second resource selection window may include the following situations:

[0187] In the first scenario, the first resource selection window and the second resource selection window completely overlap. That is, the window size, start time, and end time of the first resource selection window and the second resource selection window are all the same.

[0188] In the second scenario, the first resource selection window and the second resource selection window have different window sizes, and the first resource selection window is located within the second resource selection window.

[0189] In the third scenario, the first resource selection window and the second resource selection window have different window sizes, and the second resource selection window is located within the first resource selection window.

[0190] In the fourth scenario, the first resource selection window and the second resource selection window partially overlap. The first and second resource selection windows can be the same size or different.

[0191] The fifth scenario is where the first resource selection window and the second resource selection window do not overlap. In this case, the window sizes of the first and second resource selection windows can be the same or different.

[0192] It should be noted that method 1 is optional. For example, if the first resource selection window and the second resource selection window satisfy the first to fourth conditions described above, the first terminal device may use method 1 to determine the first resource, or it may not use method 1 to determine the first resource. This application embodiment does not limit this. If the first resource selection window and the second resource selection window satisfy the fifth condition described above, and if the first resource selection window and the second resource selection window do not intersect, the first terminal device may use method 2 to determine the first resource instead of method 1.

[0193] Method 2, see Figure 7b The specific implementation process of S602 includes S602c and S602d:

[0194] S602c, the first terminal device determines candidate resource 2 within the second time domain resource set.

[0195] There can be one or more candidate resources 2. Furthermore, the temporal resource unit containing candidate resource 2 does not belong to the first temporal resource set.

[0196] For example, the first terminal device selects resources whose time-domain resource units do not belong to the first time-domain resource set but belong to the second time-domain resource set as candidate resource 2. In other words, candidate resource 2 is outside the first resource selection window but inside the second resource selection window.

[0197] S602d, the first terminal device determines the third resource from candidate resource 2.

[0198] There can be one or more third resources. Each third resource belongs to at least one first resource.

[0199] For example, as a first possible implementation, the specific implementation process of S602d includes: the first terminal device performing resource detection to obtain the perception result 3 of candidate resource 2. The object of resource detection includes at least one of the following: candidate resource 2, and resources within a certain time period preceding candidate resource 2. The process of determining the perception result 3 can be found in the description of the partial perception mechanism, and will not be repeated here. The perception result 3 indicates the RSRP measurement value of each resource in candidate resource 2. Then, the first terminal device determines the third resource based on the perception result 3. For example, the first terminal device selects resources that meet preset conditions as the third resource. The preset conditions may be: the RSRP measurement value of the third resource is less than or equal to a reference signal received power threshold.

[0200] For example, as a second possible implementation, the specific implementation process of S602d includes: the first terminal device determining a third resource based on the candidate resource 2 and a preset ratio 2. For example, the first terminal device selects a certain number of resources from the candidate resources 2 according to the preset ratio 2 to serve as the third resource.

[0201] In other words, the first terminal device determines the first resource (i.e. the third resource in S602d) from the resources inside the second resource selection window but outside the first resource selection window, so that the first resource is inside the second resource selection window, thereby enabling the first resource to assist the second terminal device in resource selection.

[0202] It should be noted that method 2 is optional. For example, if the first resource selection window and the second resource selection window satisfy the first condition (i.e., the first resource selection window and the second resource selection window completely overlap) or the third condition (i.e., the first resource selection window and the second resource selection window have different window sizes, and the second resource selection window is located within the first resource selection window), there is no resource located outside the first resource selection window but within the second resource selection window. Therefore, the first terminal device does not use method 2 to determine the first resource. If the first resource selection window and the second resource selection window satisfy the second condition (i.e., the first resource selection window and the second resource selection window have different window sizes, and the first resource selection window is located within the second resource selection window), the fourth condition (i.e., the first resource selection window and the second resource selection window partially overlap) or the fifth condition (the first resource selection window and the second resource selection window have no intersection), there is a resource located outside the first resource selection window but within the second resource selection window. The first terminal device may use method 2 to determine the first resource, or it may not use method 2 to determine the first resource; this application embodiment does not limit this.

[0203] Method 3, the specific implementation process of S602 includes S602a, S602b, S602c, and S602d. Specifically, S602c is implemented as follows: if the amount of the second resource is less than a threshold 1, the first terminal device determines candidate resource 2 within the second time-domain resource set. The threshold 1 can be a pre-configured value. That is, the first terminal device prioritizes executing S602a and S602b, then executes S602c and S602d; that is, the first terminal device prioritizes determining the second resource, and only determines the third resource if the amount of the second resource is insufficient. Since the second resource is both within the first resource selection window and the second resource selection window, the second resource is the most preferred resource, which helps ensure the reliability of data transmission.

[0204] It should be noted that in method 3, if the first terminal device determines the third resource based on the preset ratio 2 when executing S602d, the value of the preset ratio 2 is related to the resource quantity of the second resource; that is, the preset ratio 2 is determined based on the resource quantity of the second resource. For example, the larger the difference between the resource quantity of the second resource and the threshold 1, the larger the value of the preset ratio 2, so as to increase the resource quantity of the third resource, thereby ensuring that the resource quantity of the first resource reaches the threshold 1. Conversely, the smaller the difference between the resource quantity of the second resource and the threshold 1, the smaller the value of the preset ratio 2, so as to reduce the resource quantity of the third resource, thereby ensuring that the resource quantity of the first resource does not exceed the threshold 1.

[0205] S603, the first terminal device sends second information to the second terminal device. Correspondingly, the second terminal device receives the second information from the first terminal device.

[0206] The second information indicates at least one first resource.

[0207] For example, the second information can be auxiliary information, as detailed in [reference needed]. Figure 3 The relevant explanations will not be repeated here. Auxiliary information belongs to sidelink control signaling and can be carried in SCI-2 or MAC layer signaling. Of course, the second information can also be implemented as other messages, such as auxiliary information carried in the feedback information of the physical layer sidelink feedback channel (PSFCH). This application does not limit this implementation.

[0208] S604. The second terminal device determines the target resource based on at least one first resource.

[0209] The target resource is used to transmit service data to other terminal devices (such as the first terminal device). For example, the service corresponding to the service data is the first service mentioned above.

[0210] For example, the second terminal device selects a target resource based on the perception result of the resources within the second resource selection window and the aforementioned at least one first resource. For instance, if the first resource is a resource recommended for use by the first terminal device, the target resource may include one or more of the aforementioned at least one first resource. Conversely, if the first resource is a resource that the first terminal device recommends not using, the target resource may not include any of the aforementioned at least one first resource.

[0211] In the resource determination method 600 provided in this application embodiment, the second terminal device sends first information to the first terminal device to make the first terminal device more targeted in determining the first resource, that is, at least one of the first resources is located in a time-domain resource unit that belongs to a second time-domain resource set. Since the second time-domain resource set is a set of time-domain resource units known to the second terminal device, the second terminal device determines the target resource based on at least one first resource in the known time-domain resource units. That is, the second terminal device makes full use of the second information when selecting resources to take into account the interference situation of the first terminal device, thereby ensuring the reliability of data transmission.

[0212] This application provides a resource determination method 800, which is applied during data transmission on a side link. See also... Figure 8a The method includes the following steps:

[0213] S801, the second terminal device sends a trigger message to the first terminal device. Correspondingly, the first terminal device receives the trigger message from the second terminal device.

[0214] For example, the implementation process of S801 can be found in [reference needed]. Figure 3 The relevant explanations will not be repeated here.

[0215] It should be noted that S801 is an optional step. For example, after the first terminal device and the second terminal device establish a communication connection, S801 is executed when the second terminal device sends service data to the first terminal device for the first time. The second terminal device then executes S802 in response to the trigger message. As another example, after the first terminal device sends message X to the second terminal device, the first terminal device waits for feedback information from the second terminal device, such as a hybrid automatic repeat request (HARQ) message, to ascertain the reception status of message X. In other words, the first terminal device executes S802 when it is aware that it is about to receive information from the second terminal device.

[0216] For example, the trigger message in S801 belongs to side-line control signaling, which can be carried in SCI-2 or MAC layer signaling. Of course, the trigger message can also be replaced by other messages, such as configuration messages of RRC signaling, and this application embodiment does not limit this.

[0217] S802, the first terminal device determines at least one first resource in the first resource selection window.

[0218] The number of first resources can be one or more. When a first resource is a resource recommended for use by the first terminal device, its interference level is relatively low compared to other resources in the first resource selection window besides the aforementioned at least one first resource. Conversely, when a first resource is a resource that the first terminal device recommends not using, its interference level is relatively high compared to other resources in the first resource selection window besides the aforementioned at least one first resource. Each time-domain resource unit containing any of the at least one first resource belongs to the first time-domain resource set.

[0219] The first time-domain resource set is described below:

[0220] For example, the first time-domain resource set is determined based on the first resource selection window, that is, the time-domain resource units in the first time-domain resource set are located within the first resource selection window. The following will illustrate this through two cases:

[0221] In the first case, the first time-domain resource set includes at least two time-domain resource units, and at least one time-domain resource unit between these two units does not belong to the first time-domain resource set. That is, the time-domain resource units in the first time-domain resource set are discontinuous in the time domain. For example, when the first terminal device executes S802, it adopts a partial sensing mode. For instance, taking a time-domain resource unit as a time slot, when the bitmap value is 01010101, the first time-domain resource set includes time slots with indices 1, 3, 5, and 7. The number of time slots in the first resource selection window is 4, and the window size of the first resource selection window is 4 time slots. As another example, when the bitmap value is 11010111, the first time-domain resource set includes time slots with indices 0, 1, 3, 5, 6, and 7. The number of time slots in the first resource selection window is 6, and the window size of the first resource selection window is 6 time slots. In the second case, the time-domain resource units in the first time-domain resource set are continuous in the time domain, meaning the first time-domain resource set includes at least two time-domain resource units, and the time-domain resource units between these two units also belong to the first time-domain resource set. For example, when the first terminal device executes S802, it can adopt either a full-sensing mode or a partial-sensing mode. For instance, taking a time-domain resource unit as a time slot, when the bitmap value is 01111111, the first time-domain resource set includes time slots with indices 1 to 7. The number of time slots within the first resource selection window is 7, and the window size of the first resource selection window is 7 time slots. In the second case, the first time-domain resource set can be determined based on the starting position and window length of the first resource selection window. For example, if the starting position of the first resource selection window is 5 time slots away from the time slot containing the second information, and the window length of the first resource selection window is 10 time slots, then the first time-domain resource set includes time slots with intervals between 5 and 14 time slots from the time slot containing the second information.

[0222] It should be noted that, in partial sensing mode, the time-domain resource units in the first time-domain resource set can be continuous or discontinuous in the time domain, as detailed in the above descriptions of the two cases.

[0223] For example, the implementation process of S802 can be found in [reference needed]. Figure 3 The relevant explanations will not be repeated here.

[0224] S803, the first terminal device sends second information to the second terminal device. Correspondingly, the second terminal device receives the second information from the first terminal device.

[0225] The second information indicates at least one first resource and a first time-domain resource set.

[0226] The second piece of information is described as follows:

[0227] For example, the second information includes information from the first resource selection window. The information from the first resource selection window includes at least one of the following:

[0228] The first item is the starting position of the first resource selection window. For example, the second information indicates the starting time slot position of the first resource selection window through a preset number of bits. As one possible implementation, the second information indicates N time-domain resource units through a preset number of bits. Here, N refers to the number of time-domain resource units between the starting position of the first resource selection window and the time-domain resource that sends the second information. For example, if the starting position of the first resource selection window is 6 time slots away from the time slot where the second information is located, then N = 6, and the value indicated by the preset number of bits in the second information is 6. The information indicating the starting time slot position of the first resource selection window in the second information is determined based on the interval between the starting position of the first resource selection window and the time-domain resource unit that sends the second information.

[0229] The second item is the window length of the first resource selection window. The window length can also be replaced by the window size. For example, when the first terminal device adopts a full-sensory mode, the window length of the first resource selection window can be characterized by the number of temporal resource units in the first resource selection window.

[0230] The third item is the number of time-domain resource units within the first resource selection window. Taking time-domain resource units as time slots as an example, when the bitmap value is 01010101, the number of time slots within the first resource selection window is 4. When the bitmap value is 11010111, the number of time slots within the first resource selection window is 6.

[0231] Fourthly, the specific location of the time-domain resource unit within the first resource selection window. For example, the second information indicates the location of the starting time-domain resource unit and the interval between it and the starting time-domain resource unit. The first time-domain resource set may or may not include the starting time-domain resource unit. Taking a time slot as an example, the second information can be a bitmap. One bitmap corresponds to one first resource selection window, and one bitmap includes at least one bit. One bit in the bitmap corresponds to one time slot. If a bit has a value of "1", the time slot corresponding to that bit belongs to the first time-domain resource set. Conversely, if a bit has a value of "0", the time slot corresponding to that bit does not belong to the first time-domain resource set. For example, if the bitmap value is 01010101, the starting time slot's corresponding bit value is "0", and it does not belong to the first time-domain resource set. The time slot indices corresponding to the bits with values ​​of "1" in the bitmap are 1, 3, 5, and 7. That is, the first time-domain resource set includes time slots with indices 1, 3, 5, and 7. For example, if the bitmap value is 11010111, meaning the starting time slot corresponds to a bit value of "1", it belongs to the first time domain resource set. The time slot indices corresponding to the bits with a value of "1" in the bitmap are 0, 1, 3, 5, 6, and 7. In other words, the first time domain resource set includes time slots with indices 0, 1, 3, 5, 6, and 7. As another example, if the bitmap value is 01111111, meaning the starting time slot corresponds to a bit value of "0", it does not belong to the first time domain resource set. The time slot indices corresponding to the bits with a value of "1" in the bitmap are 1 to 7. In other words, the first time domain resource set includes time slots with indices 1 to 7.

[0232] The fifth item is the cycle of the second resource selection window.

[0233] The sixth item is the indication information. This indication information indicates that the first terminal device is a partially sensing terminal, meaning it uses a partial sensing mechanism for resource selection. For example, the indication information can be a preset number of bits. If the indication information is implemented as one bit, and the bit's value is "1", the indication information indicates that the first terminal device is a partially sensing terminal. In this way, the second terminal device can determine that the time-domain resource units in the first time-domain resource set are discontinuous in the time domain. Conversely, if the bit's value is "0", the indication information indicates that the first terminal device is a fully sensing terminal. In this way, the second terminal device can determine that the time-domain resource units in the first resource selection window are continuous in the time domain.

[0234] It should be noted that when the second information includes the first and second items mentioned above, the second information can also indicate the position of the first resource selection window. In other words, the second information also includes the position information of the first resource selection window.

[0235] For example, the second information can be auxiliary information, as detailed in [reference needed]. Figure 3 The relevant explanations will not be repeated here. Auxiliary information belongs to side-line control signaling and can be carried in SCI-2 or MAC layer signaling. Of course, the second information can also be implemented as other messages, such as feedback information from PSFCH; this application does not limit this implementation.

[0236] S804. The second terminal device determines the target resource based on at least one first resource and a first time-domain resource set.

[0237] The target resource is used to transmit service data to other terminal devices (such as the first terminal device). For example, the service corresponding to the service data is the first service mentioned above.

[0238] For example, based on at least one first resource and the first time-domain resource set mentioned above, the second terminal device can determine the following three types of resources:

[0239] The first type of resource, the resources recommended for use by the first terminal device, is denoted as set A1. For example, if the first resource is one recommended for use by the first terminal device, then set A1 is the set of the first resources. Conversely, if the first resource is one not recommended for use by the first terminal device, then set A1 is the complement of the first resource in the first time-domain resource set. That is, within the first resource selection window, all resources other than the first resource belong to set A1. In other words, the time-domain resource unit containing each resource in set A1 belongs to the first time-domain resource set, but is different from the time-domain resource unit containing the first resource. Figure 8b As shown, Figure 8b The diagram shows the distribution of the first type of resources within the first resource selection window.

[0240] The second type of resource consists of resources that the first terminal device recommends not using, denoted as set A2. For example, if the first resource is one that the first terminal device recommends not using, then set A2 is the set of the first resource. Conversely, if the first resource is one that the first terminal device recommends using, then set A2 is the complement of the first resource in the first time-domain resource set. In other words, within the first resource selection window, all resources other than the first resource belong to set A2. In other words, the time-domain resource unit containing each resource in set A2 belongs to the first time-domain resource set, but is different from the time-domain resource unit containing the first resource. Figure 8b As shown, Figure 8b The diagram shows the distribution of the second type of resource within the first resource selection window. From... Figure 8b As can be seen, there are two types of resources in the first resource selection window, namely the first type of resources and the second type of resources mentioned above.

[0241] The third category of resources, denoted as set A3, refers to resources for which the first terminal device does not indicate whether to recommend use. In other words, all resources outside the first resource selection window are resources without recommendation information, meaning they all belong to set A3. Conversely, the time-domain resource units containing resources in set A3 do not belong to the first time-domain resource set. For example... Figure 8b As shown, Figure 8b The diagram shows the distribution of the third type of resource outside the first resource selection window. From... Figure 8b It can be seen that the first resource selection window is the resource outside the window, which is the third type of resource mentioned above.

[0242] The following two examples illustrate the processing of the above three types of resources by the second terminal device, i.e., the implementation process of S804, including:

[0243] Example 1, see Figure 9a The implementation process of S804 includes S8041 to S8043:

[0244] S8041, The second terminal device performs resource detection to obtain perception result 1.

[0245] For example, the resource detection object in S8041 includes at least one of the following: resources within the second resource selection window, and resources within a certain time period prior to the second resource selection window. The second terminal device performs RSRP measurement to obtain perception result 1.

[0246] S8042. The second terminal device selects resources from the resources in the second resource selection window according to the sensing result 1 to obtain the second time-frequency resource set.

[0247] For example, based on perception result 1, the second terminal device selects X% of the resources from the resources in the second resource selection window as the second time-frequency resource set. This second time-frequency resource set can be denoted as set B. The value of X% can be one of the following: 20%, 30%, 50%, or 100%. See also... Figure 9b , Figure 9b (2) shows the distribution of resources in set B within the second resource selection window.

[0248] S8043: The second terminal device determines the target resource based on at least one first resource, a first time-domain resource set, and a second time-frequency resource set. The implementation process of S8043 is illustrated by the following three steps:

[0249] Step a: The second terminal device designates resources belonging to the first type of resource and the second time-frequency resource set as the second resource. That is, the second resource is determined based on at least one first resource and belongs to the second time-frequency resource set. For example, if set A1 and set B intersect, the second resource belongs to the resource at the intersection of sets A1 and B. See [link to relevant documentation] Figure 9b , Figure 9b (3) shows the distribution of the second resource. The fill pattern in the "rectangle representing the second resource" is the same as the fill pattern in the "rectangle representing resources in set A1," indicating that the second resource is selected from set A1. Furthermore, both the "rectangle representing the second resource" and the "rectangle representing resources in set B" are bold lines, indicating that the second resource is selected from set B. The resources in set A1 can be found in [reference needed]. Figure 9b (1) In this way, the second resource is recommended for use by both the first and second terminal devices, which helps to ensure the reliability of data transmission and avoids the problem of misalignment between the first and second terminal devices on the resource selection window.

[0250] Step b: The second terminal device designates resources belonging to the first category of resources but not to the second time-frequency resource set as third resources. In other words, the third resources are resources determined based on at least one first resource and do not belong to the second time-frequency resource set. For example, if there are resources in set A1 that do not belong to set B, the third resources are resources in set A1 excluding set B. Alternatively, the third resources are resources selected from the resources in set A1 excluding set B according to a preset ratio of 1. For example, if there are 30 resources in set A1 excluding set B, the preset ratio is 20%, and the third resources are selected resources, with a quantity of 6 third resources. See also... Figure 9b , Figure 9b Figure (3) shows the distribution of the third resource. The fill pattern in the "rectangle representing the third resource" is the same as the fill pattern in the "rectangle representing resources in set A1," indicating that the third resource is selected from set A1. Furthermore, the position of the "rectangle representing the third resource" differs from the position of the "rectangle representing any resource in set B," indicating that the third resource is not selected from set B. Thus, the third resource is a resource recommended for use by the first terminal device but not recommended for use by the second terminal device, ensuring data transmission reliability to a certain extent.

[0251] Step c: The second terminal device designates resources belonging to the second time-frequency resource set but not to the first time-frequency resource set as the fourth resource. For example, if set B contains resources that do not belong to sets A1 and A2, the fourth resource is any resource in set B other than sets A1 and A2. Alternatively, the fourth resource is selected from the resources in set B other than sets A1 and A2 according to a preset ratio of 2. For example, if set B contains 40 resources other than sets A1 and A2, the preset ratio 2 is 30%, and the fourth resource is a selected resource with 12 items. See also... Figure 9b , Figure 9b (3) shows the distribution of the fourth resource. The fill pattern in the "rectangle representing the fourth resource" is the same as the fill pattern in the "rectangle representing resources in set A3," indicating that the fourth resource is selected from set A3. Furthermore, both the "rectangle representing the fourth resource" and the "rectangle representing some resources in set B" are bold lines, indicating that the fourth resource is selected from set B. The resources in set A3 can be found in [reference needed]. Figure 9b In (1), the fourth resource is a resource recommended by the second terminal device, but which the first terminal device does not indicate whether to recommend using (i.e., a resource without recommendation information), thus ensuring the reliability of data transmission to a certain extent.

[0252] For example, S804 is implemented as at least one of steps a, b, and c. For instance, when the second terminal device performs step a, the target resource includes a second resource. When the second terminal device performs steps a and b, the target resource includes a second resource and a third resource. When the second terminal device performs steps a, b, and c, the target resource includes a second resource, a third resource, and a fourth resource.

[0253] It should be understood that the second resource is the preferred resource, i.e., the resource recommended for use by both the first and second terminal devices. The second terminal device also determines the amount of the second resource. If the amount of the second resource is less than a threshold 1, the second terminal device performs at least one of steps b and c, in addition to step a. That is, the target resource includes the second resource, and the amount of the second resource is less than the threshold 1. If the second terminal device also performs step b, the target resource also includes a third resource. If the second terminal device also performs step c, the target resource also includes a fourth resource. The threshold 1 can be X% in S8042.

[0254] Example 2, see Figure 9c The implementation process of S804 includes S8044 and S8045:

[0255] S8044, the second terminal device compares the first type of resources and the third type of resources with the second resource selection window respectively to obtain the comparison results.

[0256] For example, the second terminal device denotes the resources of the first type of resources within the second resource selection window as set A1in, the resources of the first type of resources outside the second resource selection window as set A1out, the resources of the third type of resources within the second resource selection window as set A3in, and the resources of the third type of resources outside the second resource selection window as set A3out. Figure 9d As shown in (1), Figure 9d (1) shows the distribution of resources in sets A1in, A1out, A3in and A3out.

[0257] S8045: The second terminal device determines the target resource based on the comparison result. The implementation process of S8045 is illustrated by the following three steps:

[0258] In step d, the second terminal device performs resource detection to obtain perception result 2. The resource detection objects in step d include at least one of the following: resources in set A1in, and resources within a time period preceding set A1in. Then, based on perception result 2, the second terminal device selects resources in set A1in that meet preset conditions as the fifth resource. The preset condition may be: the RSRP measurement value is less than or equal to the reference signal received power threshold. In other words, the fifth resource is a resource within the second resource selection window that is determined based on at least one first resource and meets the preset conditions. In other words, the fifth resource is a resource selected from set A1in according to preset conditions. Figure 9d As shown in (2) of the text, Figure 9d (2) shows the distribution of the fifth resource. There are two "rectangles representing the fifth resource," and the filled images of these two rectangles are consistent with the filled pattern of the "rectangles representing resources in set A1in," indicating that the fifth resource is selected from set A1in. Thus, the fifth resource is recommended for use by both the first and second terminal devices, which helps ensure data transmission reliability and avoids the problem of misalignment between the first and second terminal devices on the resource selection window.

[0259] Step e: The second terminal device performs resource detection to obtain perception result 3. The resource detection objects in step e include at least one of the following: resources in set A3in, and resources within a time period preceding set A3in. Then, based on perception result 3, the second terminal device selects the resources in set A3in that meet preset conditions as the sixth resource. The description of the preset conditions can be found in step d, and will not be repeated here. In other words, the sixth resource is a resource within the second resource selection window. The time-domain resource unit containing the sixth resource does not belong to the first time-domain resource set and meets the preset conditions. In other words, the sixth resource is a resource selected from set A3in according to preset conditions. Figure 9d As shown in (2) of the text, Figure 9d Figure (2) shows the distribution of the sixth resource. There are two "rectangles representing the sixth resource", and the filling patterns of the two rectangles are consistent with the filling patterns of the "rectangles representing resources in set A3in", so as to reflect that the sixth resource is selected from set A3in. In this way, the sixth resource is a resource recommended by the second terminal device, but the first terminal device does not indicate whether it is recommended to use (i.e., it belongs to the resource without recommendation information), which to a certain extent ensures the reliability of data transmission.

[0260] Step f: The second terminal device determines the seventh resource from the set A1out. That is, the seventh resource is a resource determined based on at least one first resource. For example... Figure 9d As shown in (2) of the text, Figure 9d (2) shows the distribution of the seventh resource. There is one "rectangle representing the seventh resource," and its fill pattern is consistent with the fill pattern of the "rectangle representing the resources in set A1out," indicating that the seventh resource is selected from set A1out. For example, the second terminal device selects certain resources from set A1out as the seventh resource according to a preset ratio 3. Alternatively, the second terminal device selects certain resources from set A1out as the seventh resource based on the resource quantity difference and the ratio 4. The resource quantity difference is the difference in resource quantity between the fifth resource and the target resource. Since the time-domain resource unit where the resource in set A1out is located does not belong to the second time-domain resource set, and the seventh resource is selected from set A1out, the seventh resource is a resource recommended for use by the first terminal device but not recommended for use by the second terminal device, thus ensuring data transmission reliability to a certain extent.

[0261] For example, S804 is implemented as at least one of steps d, e, and f. For instance, when the second terminal device performs step d, the target resource includes the fifth resource. When the second terminal device performs steps d and e, the target resource includes the fifth resource and the sixth resource. When the second terminal device performs steps d, e, and f, the target resource includes the fifth resource, the sixth resource, and the seventh resource.

[0262] It should be understood that the fifth resource is the most preferred resource, that is, the resource recommended for use by both the first terminal device and the second terminal device.

[0263] Furthermore, the second terminal device also determines the resource quantity of the fifth resource. If the resource quantity of the fifth resource is lower than threshold 2, the second terminal device executes at least one of steps e and f. That is, the target resource includes the fifth resource, and the resource quantity of the fifth resource is lower than threshold 2. If the second terminal device also executes step e, the target resource also includes a sixth resource. If the second terminal device also executes step f, the target resource also includes a seventh resource. The threshold 2 can be X% in S8042.

[0264] In other words, the second terminal device prioritizes selecting resources that meet preset conditions from the set A1in, i.e., determining the fifth resource. Only when the fifth resource is insufficient will the second terminal device determine at least one of the sixth and seventh resources. Since both the sixth and seventh resources are resources recommended by one of the two terminal devices (i.e., the first terminal device and the second terminal device), data transmission reliability is guaranteed to a certain extent.

[0265] Furthermore, if the second terminal device also performs step e, the second terminal device further determines the resource quantity of the fifth resource and the resource quantity of the sixth resource. If the sum of the resource quantities of the fifth resource and the sixth resource is less than a threshold 3, the second terminal device performs step f. That is, the target resources include the fifth resource and the sixth resource, and the sum of the resource quantities of the fifth resource and the sixth resource is less than the threshold 3, then the second terminal device performs step f. The threshold 3 can be X% in S8042.

[0266] In other words, the second terminal device prioritizes selecting resources that meet preset conditions from sets A1in and A3in, i.e., it prioritizes determining the fifth and sixth resources. Only when the combined resources of the fifth and sixth resources are insufficient does the second terminal device determine the seventh resource. Since the fifth and sixth resources are resources that the first terminal device has not explicitly instructed or recommended not to use, while the seventh resource is a resource that the first terminal device has instructed or recommended not to use, the fifth and sixth resources have a lower degree of interference compared to the seventh resource, thus helping to ensure the reliability of data transmission.

[0267] In the resource determination method 800 provided in this application embodiment, the second terminal device receives second information from the first terminal device for reference when determining the target resource. The second information indicates not only at least one first resource but also a first set of time-domain resources. Therefore, the first set of time-domain resources is also a set of time-domain resource units known to the second terminal device. The second terminal device determines the target resource based on at least one first resource within the known time-domain resource units. That is, the second terminal device fully utilizes the second information when selecting resources to take into account the interference situation of the first terminal device, thereby ensuring the reliability of data transmission.

[0268] This application provides a resource determination method 1000, which is applied during data transmission on a side link. See also... Figure 10 The method includes the following steps:

[0269] S1001, the second terminal device sends a trigger message to the first terminal device. Correspondingly, the first terminal device receives the trigger message from the second terminal device.

[0270] For example, the implementation process of S1001 can be found in [reference needed]. Figure 3 The relevant explanations will not be repeated here.

[0271] It should be noted that S1001 is an optional step, and the details can be found in the relevant description of S801, which will not be repeated here.

[0272] S1002, the first terminal device determines at least one first resource in the first resource selection window.

[0273] For example, the implementation process of S1002 can be found in the description of S802, and will not be repeated here.

[0274] S1003, the first terminal device sends second information to the second terminal device. Correspondingly, the second terminal device receives the second information from the first terminal device.

[0275] The second information indicates at least one first resource. Each of the at least one first resource belongs to a first time-domain resource set.

[0276] For example, the second information can be auxiliary information, as detailed in [reference needed]. Figure 3 The relevant explanations will not be repeated here. Of course, the second information can also be implemented as other messages, and this application embodiment does not limit this.

[0277] S1004. The second terminal device determines the target resource based on at least one first resource.

[0278] The target resource is used to transmit service data to other terminal devices (such as the first terminal device). For example, the service corresponding to the service data is the first service mentioned above.

[0279] For example, taking the case where at least one first resource is located outside the second resource selection window, the target resource determined in S1004 is also located outside the second resource selection window. The set of first resources located outside the second resource selection window can be denoted as set Aout. The implementation process of S1004 is illustrated below with two examples:

[0280] Example 1: When the first resource is the resource recommended by the first terminal device, in the notation Aout, A represents the resource recommended by the first terminal device, and out refers to resources outside the second resource selection window. In the notation Ain, A represents the resource recommended by the first terminal device, and in refers to resources within the second resource selection window, such as... Figure 11a As shown in (1), Figure 11a Figure (1) shows the distribution of resources in sets Ain and Aout. The implementation process of S1004 includes the following two methods:

[0281] Method 1, see Figure 11b S1004 is implemented as S1004a:

[0282] S1004a. The second terminal device determines the target resource from at least one first resource according to the ratio value 1.

[0283] For example, the second terminal device selects a certain number of resources from at least one first resource as target resources according to a ratio of 1. The ratio of 1 can be less than 1, meaning the second terminal device selects a portion of the at least one first resource as target resources. Alternatively, the ratio of 1 can be equal to 1, meaning the second terminal device selects all of the at least one first resource as target resources.

[0284] For example, Figure 11a (2) shows the distribution of the target resources. There are two "rectangles representing the target resources", and the filling patterns of the two rectangles are consistent with the filling patterns of the "rectangles representing the resources in set Aout", so as to reflect that the target resources are selected from set Aout.

[0285] In other words, the second terminal device uses some or all of the resources in the first resource as the target resource. Since the first resource is the resource recommended by the first terminal device, the second terminal device takes into account both the interference level and resource occupancy status on the other side, thus ensuring the reliability of data transmission.

[0286] Method 2, seeFigure 11b S1004 is implemented as S1004b and S1004c:

[0287] S1004b, The second terminal device performs resource detection to obtain a perception result 1 of at least one first resource.

[0288] For example, the object of resource detection in S1004b includes at least one of the following: at least one first resource, and resources within a time period preceding the at least one first resource. The perception result 1 includes the measured RSRP value of the first resource.

[0289] S1004c, the second terminal device determines the target resource based on the sensing result 1.

[0290] For example, the second terminal device uses the measured RSRP of the first resource in the sensing result 1 and the reference signal received power threshold as the target resource, and selects the first resource whose RSRP measured value is lower than the reference signal received power threshold.

[0291] For example, if a first preset condition is met, the second terminal device executes either method one or method two described above. The first preset condition includes at least one of the following:

[0292] The first condition is that the amount of the second resource is less than the first preset value. Here, the second resource is a resource within the second resource selection window and determined based on at least one first resource. In other words, the second resource is the resource recommended for use by the first terminal device within the second resource selection window, which can be denoted as set Ain. That is, the second terminal device prioritizes determining the second resource. If the amount of the second resource is less than the first preset value, it indicates that the current situation is: within the second resource selection window, the resources recommended for use by the first terminal device are insufficient. In this case, the second terminal device executes either method one or method two, that is, it filters resources outside the second resource selection window from the resources recommended for use by the first terminal device (i.e., the first resource), thereby obtaining the target resource so that the resource amount reported to the MAC layer meets the requirements.

[0293] The second condition is that the amount of the third resource is less than the second preset value. The third resource is the resource among the second resources that meets the second preset condition. The second preset condition can be that the RSRP measurement value is less than or equal to the reference signal received power threshold. In other words, the second terminal device performs resource detection to obtain the second resource perception result 2. Then, based on perception result 2, the second terminal device filters resources from the second resources and uses the filtered resources as the third resource. That is, the second terminal device prioritizes determining set Ain. If the amount of resources in set Ain that meet the reference signal received power threshold is less than the second preset value, it indicates that the current situation is: within the second resource selection window, there are insufficient resources among the resources recommended by the first terminal device that meet the second preset condition. In this case, the second terminal device executes either method one or method two, that is, filtering resources outside the second resource selection window from the resources recommended by the first terminal device (i.e., the first resource), thereby obtaining the target resource so that the amount of resources reported to the MAC layer meets the requirements.

[0294] Thirdly, the resource quantity of the fourth resource is less than the third preset value. Here, the fourth resource belongs to the second resource and is part of the second time-frequency resource set. The second time-frequency resource set is the resource set determined by the second terminal device based on the resource perception result of the second resource selection window. For the specific determination process, please refer to the relevant descriptions of S8041 and S8042 in the resource determination method 800 of this application embodiment, which will not be repeated here. In other words, the fourth resource belongs to the resources at the intersection of the first and second resource selection windows, meaning the fourth resource is the most preferred resource. Thus, the second terminal device prioritizes determining the fourth resource. Only when the resource quantity of the fourth resource is less than the third preset value does the second terminal device execute the above-mentioned method one or method two to obtain the target resource, so that the resource quantity reported to the MAC layer meets the requirements.

[0295] It should be noted that, as one possible implementation, the second terminal device prioritizes determining whether the first preset condition meets the third condition, that is, the second terminal device prioritizes determining whether the resource quantity of the fourth resource is less than the third preset value, so that the resource reported to the MAC layer is a resource supported by both terminal devices (i.e., the first terminal device and the second terminal device), which is beneficial to ensuring the reliability of data transmission.

[0296] In some embodiments, the second information also indicates the resource located within the second resource selection window, i.e., the set Ain, such as... Figure 11d As shown in (1), Figure 11d Figure (1) shows the distribution of resources in set Ain. See also Figure 11c The second terminal device also includes at least one of S1005 and S1006.

[0297] In the first implementation, the second terminal device executes S1005:

[0298] S1005. The second terminal device selects the fourth resource in the second resource selection window.

[0299] The fourth resource is used to transmit service data to other terminal devices (such as the first terminal device), and satisfies the following two conditions:

[0300] The first point states that the fourth resource is determined based on at least one first resource. That is, the fourth resource is the resource recommended for use by the first terminal device. For example, such as... Figure 11d As shown in (3) of the text, Figure 11d (3) shows the distribution of the fourth resource. The fill pattern in the "rectangle representing the fourth resource" is consistent with the fill pattern in the "rectangle representing the resources in set Ain", so as to reflect that the fourth resource is selected from set Ain.

[0301] The second point is that the time-domain resource unit containing the fourth resource belongs to the second time-frequency resource set. The second time-frequency resource set is the resource set determined by the second terminal device based on the resource perception result of the second resource selection window. For example, such as... Figure 11d As shown in (3) of the text, Figure 11d (3) shows the distribution of the fourth resource. Both the "rectangle representing the fourth resource" and the "rectangle representing the resources in the second time-frequency resource set" are bold lines to indicate that the fourth resource is selected from the second time-frequency resource set. Figure 11d (2) shows the distribution of resources in the second time-frequency resource set.

[0302] In other words, the fourth resource is a resource supported by both terminal devices (i.e., the first terminal device and the second terminal device), which helps to ensure the reliability of data transmission.

[0303] As a second implementation, the second terminal device executes S1006:

[0304] S1006. The second terminal device selects the fifth resource in the second resource selection window.

[0305] The fifth resource is used to transmit service data to the first terminal device, and satisfies the following two conditions:

[0306] Firstly, the fifth resource is not among the resources identified in at least one of the first resources. That is, the fifth resource is a resource that the first terminal device did not indicate as recommended for use. In other words, the fifth resource is not in the set Ain. For example, the fifth resource could be a resource other than the first resources within the first resource selection window. Alternatively, the fifth resource could also be a resource outside the first resource selection window. For example, such as... Figure 11dAs shown in (3) of the text, Figure 11d (3) shows the distribution of the fifth resource. The "rectangle representing the fifth resource" is outside the first resource selection window to indicate that the fifth resource is not in the set Ain.

[0307] Secondly, the time-domain resource unit containing the fifth resource belongs to the second time-frequency resource set. In other words, the fifth resource is a resource recommended for use by the second terminal device. Or, in other words, the fifth resource is within the X% resource set within the second resource selection window. For example, such as... Figure 11d As shown in (3) of the text, Figure 11d (3) shows the distribution of the fifth resource. The "rectangle representing the fifth resource" and the "rectangle representing some resources in the second time-frequency resource set" are both bold lines to show that the fifth resource is selected from the second time-frequency resource set.

[0308] Thus, the fifth resource, which is a resource that the first terminal device does not recommend using but the second terminal device recommends using, ensures the reliability of data transmission to a certain extent.

[0309] As a third implementation, the second terminal device executes S1005 and S1006. In this case, the implementation process of S1006 includes: if the resource quantity of the fourth resource is lower than the threshold, the second terminal device determines the fifth resource within the second resource selection window. The description of the fourth resource can be found in the relevant explanation of S1005, and will not be repeated here. That is, only when the resource quantity of the fourth resource is insufficient will the second terminal device determine the fifth resource from resources outside the set Ain but within the second resource selection window, so that the resource quantity reported to the MAC layer meets the requirements.

[0310] Example 2: When the first resource is a resource that the first terminal device recommends not using, in the notation Aout, A represents the resource that the first terminal device recommends not using, and out refers to resources outside the second resource selection window. In the notation Ain, A represents the resource that the first terminal device recommends not using, and in refers to resources within the second resource selection window, such as... Figure 12a As shown in (1), Figure 12a Figure (1) shows the distribution of resources in sets Ain and Aout. The implementation process of S1004 includes the following two methods:

[0311] Method 1, see Figure 12b S1004 is implemented as S1004d and S1004e:

[0312] S1004d, the second terminal device determines the candidate resources.

[0313] The candidate resources include resources other than the second resource selection window and other than at least one of the first resources mentioned above.

[0314] S1004e, the second terminal device determines the target resource from the candidate resources according to the ratio value 2.

[0315] For example, the second terminal device selects a certain number of resources from the candidate resources as target resources according to a ratio of 2. The ratio of 2 can be less than 1, meaning the second terminal device selects a portion of the candidate resources as target resources. Alternatively, the ratio of 2 can be equal to 1, meaning the second terminal device selects all the candidate resources as target resources.

[0316] In other words, the second terminal device selects some or all of the candidate resources as the target resource. Since the candidate resources are outside the second resource selection window but do not include the resources recommended by the first terminal device, the candidate resources can ensure data transmission reliability to a certain extent.

[0317] Method 2, see Figure 12b S1004 is implemented as S1004d, S1004f, and S1004g. The descriptions of S1004f and S1004g are as follows:

[0318] S1004f, The second terminal device performs resource detection to obtain the perception result of the candidate resources 2.

[0319] For example, the object of resource detection in S1004f includes at least one of the following: candidate resources, and resources within a certain time period preceding the candidate resources. The perception result 2 includes the measured RSRP value of the candidate resources.

[0320] S1004g and the second terminal device determine the target resource based on the sensing result 2.

[0321] For example, the second terminal device uses the measured RSRP of the candidate resources in the sensing result 2 and the reference signal received power threshold as the target resource, and selects the candidate resources whose RSRP measured value is lower than the reference signal received power threshold.

[0322] For example, Figure 12a (2) shows the distribution of the target resources. There are two "rectangles representing the target resources", and the positions of the two rectangles are outside the second resource selection window. They are different from the positions of the "rectangles representing any resource in set Aout", so as to show that the target resources are not selected from set Aout and are located outside the second resource selection window.

[0323] For example, the second terminal device executes S1004f and S1004g only when a third preset condition is met. The third preset condition includes at least one of the following:

[0324] The first condition is that the amount of the second resource is less than a preset value of 4. The second resource does not belong to at least one of the first resources, but belongs to the second time-frequency resource set. The second time-frequency resource set is a resource set determined by the second terminal device based on the resource perception result of the second resource selection window. The specific determination process can be found in the relevant descriptions of S8041 and S8042 in the resource determination method 800 of this application embodiment, and will not be repeated here. That is, the second resource is not in the set Ain, but is in the X% of resources in the second resource selection window. Only when the third preset condition satisfies the first condition will the second terminal device execute S1004f and S1004g, that is, to filter resources from those outside the second resource selection window and from which the first terminal device has not indicated whether to recommend use (i.e., candidate resources), thereby obtaining the target resource so that the amount of resources reported to the MAC layer meets the requirements.

[0325] The second condition is that the amount of resources in the second time-frequency resource set is less than a preset value of 5. In other words, within the second resource selection window, the amount of resources whose RSRP measurement value is lower than the reference signal received power threshold is less than the preset value of 5. In this case, the second terminal device executes S1004f and S1004g, that is, it filters resources from outside the second resource selection window and from resources (i.e., the first resources) that the first terminal device has not indicated whether to recommend use, thereby obtaining the target resources so that the amount of resources reported to the MAC layer meets the requirements.

[0326] In some embodiments, the second information also indicates the resource located within the second resource selection window, i.e., the set Ain, such as... Figure 12d As shown in (1), Figure 12d Figure (1) shows the distribution of resources in set Ain. See also Figure 12c The second terminal device also includes S1007:

[0327] S1007, The second terminal device determines the second resource.

[0328] The second resource is used to transmit service data to the first terminal device, and satisfies the following two conditions:

[0329] Firstly, the second resource is not one of the at least one first resource mentioned above. That is, the second resource is a resource for which the first terminal device has not indicated whether it recommends use. For example, such as... Figure 12d As shown, in Figure 12d In (3), there is one “rectangle representing the second resource”, and its position is different from that of the “rectangle representing any resource in set Ain”, so as to reflect that the second resource is not selected from set Ain.

[0330] The second point is that the time-domain resource unit containing the second resource belongs to the second time-frequency resource set. For example, such as... Figure 12d As shown, in Figure 12d In (3), there is one "rectangle representing the second resource," and both it and the "rectangle representing the resources in the second time-frequency resource set" are bold lines to indicate that the second resource is selected from the second time-frequency resource set. The resources in the second time-frequency resource set are as follows: Figure 12d As shown in (2) of the text.

[0331] Thus, the second resource is a resource that the first terminal device does not indicate whether it is recommended to use, but the second terminal device recommends using, which to a certain extent ensures the reliability of data transmission.

[0332] In the resource determination method 1000 provided in this application embodiment, after the second terminal device receives the second information from the first terminal device, even if the second information indicates a first resource outside the second resource selection window, the second terminal device can still determine the target resource by combining the first resource indicated by the second information and use the target resource outside the second resource selection window to transmit service data. Because the second terminal device fully utilizes the second information when selecting resources, it takes into account the interference situation of the first terminal device, thereby ensuring the reliability of data transmission.

[0333] The above mainly describes the solutions provided by the embodiments of this application from the perspective of interaction between various network elements. Correspondingly, the embodiments of this application also provide a communication device, which can be a network element in the above method embodiments, a device containing the above network element, or a component that can be used in a network element. It is understood that, in order to achieve the above functions, the communication device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0334] For example, Figure 13 A schematic diagram of a communication device 1300 is shown. The communication device 1300 includes a processing unit 1301, a transmitting unit 1302, and a receiving unit 1303.

[0335] In one possible example, taking the communication device 1300 as the second terminal device, the processing unit 1301 is used to support the second terminal device in performing...Figure 6 S604 in Figure 8a S804 in Figure 10 In step S1004, and / or other processing operations that the second terminal device needs to perform in the embodiments of this application. The sending unit 1302 is used to support the second terminal device in performing Figure 6 S601 in Figure 8a S801 in Figure 10 In step S1001, and / or other transmission operations that the second terminal device needs to perform in the embodiments of this application. The receiving unit 1303 is used to support the second terminal device in performing... Figure 6 S603 in Figure 8a S803 in Figure 10 S1003 in the example, and / or other receiving operations that the second terminal device needs to perform in the embodiments of this application.

[0336] In another possible example, taking the communication device 1300 as the first terminal device, the processing unit 1301 is used to support the first terminal device in performing... Figure 6 S602 in the middle, Figure 8a S802 in Figure 10 In step S1002, and / or other processing operations that the first terminal device needs to perform in the embodiments of this application. The receiving unit 1303 is used to support the first terminal device in performing... Figure 6 S601 in Figure 8a S801 in Figure 10 In step S1001, and / or other receiving operations that the first terminal device needs to perform in this embodiment of the application. The sending unit 1302 is used to support the first terminal device in performing... Figure 6 S603 in Figure 8a S803 in Figure 10 S1003 in the example, and / or other transmission operations that the first terminal device needs to perform in the embodiments of this application.

[0337] Optionally, the communication device 1300 may also include a storage unit 1304 for storing the program code and data of the communication device, and the data may include, but is not limited to, raw data or intermediate data.

[0338] The processing unit 1301 may be a processor or controller, such as a CPU, a general-purpose processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0339] The transmitting unit 1302 may be a communication interface, a transmitting or transmitting circuit, etc. Here, the communication interface is a general term. In a specific implementation, the communication interface may include multiple interfaces, such as interfaces between terminal devices and / or other interfaces.

[0340] The receiving unit 1303 may be a communication interface, a receiver, or a receiving circuit, etc. The communication interface is a general term. In a specific implementation, the communication interface may include multiple interfaces, such as interfaces between terminal devices and / or other interfaces.

[0341] Storage unit 1304 can be a memory.

[0342] When the processing unit 1301 is a processor, the sending unit 1302 and the receiving unit 1303 are communication interfaces, and the storage unit 1304 is a memory, the communication device involved in the embodiments of this application can be... Figure 14 As shown.

[0343] See Figure 14 As shown, the communication device includes a processor 1401, a communication interface 1402, and a memory 1403. Optionally, the communication device may also include a bus 1404. The communication interface 1402, processor 1401, and memory 1403 can be interconnected via the bus 1404; the bus 1404 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 1404 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 14 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0344] Optionally, embodiments of this application also provide a computer program product carrying computer instructions, which, when executed on a computer, causes the computer to perform the methods described in the above embodiments.

[0345] Optionally, embodiments of this application also provide a computer-readable storage medium that stores computer instructions that, when executed on a computer, cause the computer to perform the methods described in the above embodiments.

[0346] Optionally, embodiments of this application also provide a chip, including: a processing circuit and transceiver pins, the processing circuit and transceiver pins being used to implement the methods described in the above embodiments. The processing circuit is used to perform processing actions in the corresponding method, and the transceiver pins are used to perform receiving / transmitting actions in the corresponding method.

[0347] Those skilled in the art will understand that the above embodiments can be implemented entirely or partially by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).

[0348] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between devices or modules, and may be electrical or other forms.

[0349] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple devices. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0350] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, and of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that makes a contribution, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, hard disk, or optical disk, and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0351] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for determining resources, characterized in that, include: The second terminal device receives second information from the first terminal device, wherein the second information indicates at least one first resource and a first time-domain resource set, wherein the time-domain resource unit in which each of the at least one first resource is located belongs to the first time-domain resource set, and the first time-domain resource set is determined based on a first resource selection window, which is used by the first terminal device to select resources. The second terminal device determines the target resource based on the at least one first resource, the first time-domain resource set, and the second resource selection window; Wherein, at least a portion of the resources in the first time-domain resource set do not belong to the second resource selection window, the first resource selection window and the second resource selection window partially overlap, the second resource selection window is used by the second terminal device to select resources, and the target resource is used to transmit service data.

2. The method according to claim 1, characterized in that, The second information indicates the location of the starting time-domain resource unit and the interval between it and the starting time-domain resource unit.

3. The method according to claim 1, characterized in that, The second information includes at least one of the following: the starting position of the first resource selection window, the window length of the first resource selection window, or the number of time-domain resource units within the first resource selection window.

4. The method according to claim 1, characterized in that, The second information includes indication information, wherein the indication information indicates that the first terminal device is a partial sensing terminal.

5. The method according to any one of claims 1 to 4, characterized in that, The target resource includes a second resource; wherein the second resource is determined based on the at least one first resource and belongs to a second time-frequency resource set, the second time-frequency resource set being a resource set determined by the second terminal device based on the resource perception result of the second resource selection window.

6. The method according to any one of claims 1 to 4, characterized in that, The target resource includes at least one of the following: a third resource, wherein the third resource is determined based on the at least one first resource and does not belong to the second time-frequency resource set, the second time-frequency resource set being the resource set determined by the second terminal device based on the resource perception result of the second resource selection window; The fourth resource, wherein the fourth resource belongs to the second time-frequency resource set, and the time-domain resource unit in which the fourth resource is located does not belong to the first time-domain resource set.

7. The method according to claim 6, characterized in that, The third resource is the resource selected according to the first preset ratio.

8. The method according to claim 6, characterized in that, The fourth resource is the resource selected according to the second preset ratio.

9. The method according to claim 7 or 8, characterized in that, The target resource also includes a second resource, and the amount of the second resource is lower than the first threshold. The second resource is determined based on the at least one first resource and belongs to the second time-frequency resource set.

10. The method according to any one of claims 1 to 4, characterized in that, The target resource includes the fifth resource within the second resource selection window; The fifth resource is a resource determined based on the at least one first resource and that meets preset conditions.

11. The method according to any one of claims 1 to 4, characterized in that, The target resource includes at least one of the following: The sixth resource in the second resource selection window, wherein the time domain resource unit in which the sixth resource is located does not belong to the first time domain resource set, and the sixth resource meets the preset conditions; The seventh resource outside the second resource selection window is determined based on the at least one first resource.

12. The method according to claim 11, characterized in that, The quantity of the seventh resource is determined based on at least one of the following: Pre-configured ratio value; The resource quantity difference between the fifth resource and the target resource, wherein the fifth resource is located within the second resource selection window and is a resource determined based on the at least one first resource and satisfying the preset conditions.

13. The method according to claim 12, characterized in that, The target resource also includes the fifth resource within the second resource selection window, and the resource quantity of the fifth resource is lower than the second threshold.

14. The method according to claim 11, characterized in that, The target resource also includes a fifth resource within the second resource selection window, and the sum of the resource quantities of the fifth resource and the sixth resource is less than a third threshold. The fifth resource is a resource determined based on the at least one first resource and that satisfies the preset conditions.

15. The method according to any one of claims 1-4, 7-8, and 12-14, characterized in that, The first resource includes the resources recommended for use by the first terminal device; Alternatively, the first resource may include resources that the first terminal device recommends not to use.

16. A communication device, characterized in that, include: A processor coupled to a memory storing instructions that, when executed by the processor, perform the method as described in any one of claims 1 to 15.

17. A chip, characterized in that, The chip includes logic circuitry and an input / output interface, the input / output interface being used to communicate with modules outside the chip, and the logic circuitry being used to run computer programs or instructions to cause the communication device to perform the method as described in any one of claims 1 to 15.

18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program, which, when invoked by a processor, executes the method according to any one of claims 1 to 15.

19. A computer program product containing instructions, characterized in that, When the computer program product is run on a computer, the computer causes the computer to perform the method as described in any one of claims 1 to 15.

Citation Information

Patent Citations

  • Auxiliary resource set sending and receiving method and device and storage medium

    CN112438057A