Resource selection window determination method and device and electronic equipment

By dynamically adjusting the target parameters in the resource selection window of the direct link, the problem of excessive delay or resource waste caused by inappropriate resource selection in the prior art is solved, and adaptive optimization of resource selection in different environments is achieved.

CN119603777APending Publication Date: 2025-03-11DATANG GOHIGH INTELLIGENT & CONNECTED TECH (CHONGQING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411695376.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, the target parameter T2 in the resource selection window of the direct link is usually manually set to a fixed value, resulting in the inability to effectively select resources under different service packages and air interface environments, resulting in excessive delay or waste of resources.

Method used

By obtaining the initial parameter value of the target parameter in the resource selection window of the through-link, the candidate resource selection is performed based on the resource selection window, and the candidate resource collection is obtained. When the total number of candidate resources is less than the threshold of the number of candidate resources, the value of the target parameter is dynamically adjusted based on the initial parameter value and the maximum allowable delay of the service packet to be transmitted, and the resource selection window is updated.

Benefits of technology

It realizes that in different air interface environments and business package scenarios, the value of target parameters is adjusted adaptively, the resource waste is avoided, the delay of business package transmission is reduced, and the most suitable resource selection window is obtained.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603777A_ABST
    Figure CN119603777A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a resource selection window determination method and device and electronic equipment. The method comprises the following steps: acquiring an initial parameter value of a target parameter in a resource selection window of a straight-through link, wherein the target parameter is used for controlling an upper limit value of the resource selection window; performing candidate resource selection based on the resource selection window to obtain a candidate resource set; under the condition that the total number of candidate resources in the candidate resource set is smaller than a candidate resource number threshold value, determining a target parameter value of the target parameter based on the initial parameter value and the maximum allowable time delay of the current to-be-transmitted service packet; and selecting a target resource for transmitting the service packet based on the resource selection window by taking the target parameter value as a parameter value of the target parameter. According to the embodiment, resource waste is avoided, and time delay of service packet transmission is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device and electronic device for determining a resource selection window. Background Art

[0002] A sidelink (SL) is a direct information transmission link between user equipment (UE). Sidelinks are mainly used for direct communication between vehicles or between vehicles and infrastructure. It allows devices to communicate directly with other devices without going through a base station. In a sidelink, a resource selection window needs to be set, and resource selection is performed based on the resource selection window, and then service packets are transmitted through the resource. The resource selection window is [n+T1, n+T2], where n is the current time, and T1 and T2 are parameters.

[0003] In the prior art, the target parameter T2 in the resource selection window is usually set to a fixed value manually based on experience. However, different service packages usually have different maximum allowable delays, and the number of candidate resources in different air interface environments is also different. For some scenarios, the T2 value may be set too small, resulting in the inability to select resources, which in turn leads to frequent triggering of resource reselection and excessive time consumption for service packet transmission; for other scenarios, the T2 value may be set too large, resulting in service packages occupying too many resources, thereby causing a waste of resources. Summary of the invention

[0004] The embodiments of the present application provide a method, device and electronic device for determining a resource selection window to avoid wasting resources and reduce the delay in service packet transmission.

[0005] In the first aspect, an embodiment of the present application provides a method for determining a resource selection window, the method comprising: obtaining an initial parameter value of a target parameter in a resource selection window of a direct link, the target parameter being used to control an upper limit value of the resource selection window; performing candidate resource selection based on the resource selection window to obtain a candidate resource set; when the total number of candidate resources in the candidate resource set is less than a candidate resource quantity threshold, determining a target parameter value of the target parameter based on the initial parameter value and a maximum allowable delay of a service packet currently to be transmitted; and updating the resource selection window based on the target parameter value.

[0006] In the second aspect, an embodiment of the present application provides a resource selection window determination device, which includes: an acquisition unit, used to acquire an initial parameter value of a target parameter in a resource selection window of a direct link, wherein the target parameter is used to control an upper limit value of the resource selection window; a selection unit, used to select candidate resources based on the resource selection window to obtain a candidate resource set; a determination unit, used to determine a target parameter value of the target parameter based on the initial parameter value and the maximum allowable delay of a service packet currently to be transmitted when the total number of candidate resources in the candidate resource set is less than a candidate resource quantity threshold; an update unit, used to update the resource selection window based on the target parameter value.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any embodiment of the first aspect.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of the first aspect.

[0009] The resource selection window determination method, device and electronic device provided in the embodiment of the present application first obtain the initial parameter value of the target parameter in the resource selection window of the direct link, and the target parameter is used to control the upper limit value of the resource selection window; then, based on the resource selection window, candidate resource selection is performed to obtain a candidate resource set; then, when the total number of candidate resources in the candidate resource set is less than the threshold value of the number of candidate resources, the target parameter value of the target parameter is determined based on the initial parameter value and the maximum allowable delay of the current service packet to be transmitted; finally, based on the target parameter value, the resource selection window is updated. Because when the parameter value of the target parameter is too small, the resource cannot be selected due to the window length of the resource selection window being too small, resulting in frequent triggering of resource reselection, thereby causing the service packet to be too time-consuming to transmit; when the parameter value of the target parameter is too large, the window length of the resource selection window is too large, resulting in the service packet occupying too many resources, thereby causing resource waste. The embodiment of the present application can adaptively adjust the parameter value of the target parameter based on the service packet and the air interface environment during the resource selection process, so that the parameter value of the target parameter that is most suitable for the current air interface environment and the service packet can be obtained, thereby obtaining the most suitable resource selection window. Selecting target resources using this resource selection window can avoid resource waste and reduce the delay of service packet transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0011] Figure 1 is a flow chart of a method for determining a resource selection window provided in an embodiment of the present application;

[0012] Figure 2 is an exemplary flow chart of a method for determining a resource selection window in a relatively idle air interface environment provided by an embodiment of the present application;

[0013] Figure 3 is an exemplary flow chart of a method for determining a resource selection window in a relatively congested air interface environment provided by an embodiment of the present application;

[0014] Figure 4 is an exemplary flow chart of a method for determining a resource selection window in a congested air interface environment provided by an embodiment of the present application;

[0015] Figure 5 is an exemplary flow chart of a method for determining a resource selection window in a congested air interface environment provided by an embodiment of the present application;

[0016] Figure 6 It is a structural diagram of an embodiment of a resource selection window determination device of the present application;

[0017] Figure 7 It is a schematic diagram of the structure of an electronic device used to implement an embodiment of the present application. DETAILED DESCRIPTION

[0018] All actions to obtain signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.

[0019] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0021] Please refer to Figure 1, which shows a process 100 of an embodiment of a resource selection window determination method according to the present application. The resource selection window determination method can be applied to various electronic devices that can transmit data via a direct link. For example, the above electronic devices may include but are not limited to: smart phones, tablet computers, e-book readers, laptop computers, car computers, handheld computers, desktop computers, cameras, wearable devices, servers, etc. The execution subject of the resource selection window determination method can be a processor in the above electronic devices.

[0022] The resource selection window determination method comprises the following steps:

[0023] Step 101 : obtaining an initial parameter value of a target parameter in a resource selection window of a through link, where the target parameter is used to control an upper limit value of the resource selection window.

[0024] In this embodiment, the through link is a direct information transmission link between user devices. The through link is mainly used for direct communication between vehicles or between vehicles and infrastructure. It allows devices to communicate directly with other devices without going through a base station. For example, vehicles can exchange information such as location, speed, intention, etc. in real time through the through link to improve road safety and traffic efficiency. In addition, the through link can also be used in commercial fields such as smart cities, smart homes, and smart factories to provide more efficient data transmission and services.

[0025] In a direct link, a resource selection window needs to be set to facilitate resource selection based on the resource selection window, and then transmit the service package through the resource. The resource selection window is [n+T1, n+T2]. Among them, n is the current time. Since resource selection is triggered when the service package is generated, n is also the generation time of the current service package to be transmitted, or the time when resource selection is triggered. T1 and T2 are parameters used to control the upper and lower limits of the resource selection window, respectively.

[0026] In this embodiment, T2 can be used as a target parameter to obtain an initial parameter value of T2. The initial parameter value of T2 can be pre-set to a value greater than T1 and less than the maximum allowable delay of most service packets. The above maximum allowable delay can refer to a packet delay budget (PDB). T1 is a fixed value in the value range [0,4]. As an example, T1 can be 4, and the initial parameter value of T2 can be 10 or 20.

[0027] Step 102: Select candidate resources based on the resource selection window to obtain a candidate resource set.

[0028] In this embodiment, the candidate resources are multiple consecutive adjacent subchannels on a subframe within the resource selection window. The candidate resources can be used for PSSCH (Physical Sidelink Shared Channel) transmission. The multiple adjacent subchannels are in a resource pool of the user equipment.

[0029] In this embodiment, the set of all candidate resources in the above subframe may be first used as an initial candidate resource set. Then, the candidate resources in the initial candidate resource set may be excluded based on a preset rule to obtain a final candidate resource set. The preset rule may be set as required and is not specifically limited here. For example, it may include but is not limited to excluding occupied candidate resources, excluding candidate resources with low signal strength, etc.

[0030] Step 103 : when the total number of candidate resources in the candidate resource set is less than the candidate resource quantity threshold, determine a target parameter value of the target parameter based on the initial parameter value and the maximum allowable delay of the current service packet to be transmitted.

[0031] In this embodiment, the total number of resources in the current resource pool may be determined first, and then based on the total number of resources, the threshold value of the number of candidate resources may be determined. Here, the number of resources in each subframe frequency domain in the current resource pool may be multiplied by the window length of the resource selection window to obtain the total number of resources. For example, the number of resources in each subframe frequency domain is 5, the resource selection window is [n+4, n+10], and its window length is (n+10)-(n+4)=6, then the total number of resources is 5×6=30. 20% of the total number of resources may be determined as the threshold value of the number of candidate resources, i.e., 30×20%=6.

[0032] In this embodiment, the total number of candidate resources in the candidate resource set can be compared with the candidate resource number threshold. If the total number of candidate resources is less than the candidate resource number threshold, the target parameter value of the target parameter can be determined based on the initial parameter value and the maximum allowable delay of the current service packet to be transmitted.

[0033] In practice, the target parameter value may be set to a value greater than the initial parameter value and less than the maximum allowable delay of the service packet currently to be transmitted, and this value can make the total number of candidate resources greater than or equal to the candidate resource number threshold.

[0034] Step 104: Update the resource selection window based on the target parameter value.

[0035] In this embodiment, the target parameter value can be used as the final value of the target parameter T2 to update the resource selection window. As an example, the initial value of the target parameter T2 is 10, that is, the initial resource selection window is [n+4, n+10]. If the target parameter value of the target parameter T2 is 30, the updated resource selection window is [n+4, n+30]. In practice, based on the updated resource selection window, the candidate resource set can be updated, so that the target resource for transmitting the above-mentioned service package is selected from the updated candidate resource set.

[0036] The method provided by the above embodiment of the present application first obtains the initial parameter value of the target parameter in the resource selection window of the direct link, and the target parameter is used to control the upper limit value of the resource selection window; then, based on the resource selection window, candidate resource selection is performed to obtain a candidate resource set; then, when the total number of candidate resources in the candidate resource set is less than the threshold value of the number of candidate resources, the target parameter value of the target parameter is determined based on the initial parameter value and the maximum allowable delay of the current service packet to be transmitted; finally, based on the target parameter value, the resource selection window is updated. Since the parameter value of the target parameter is too small, the resource cannot be selected due to the window length of the resource selection window being too small, resulting in frequent triggering of resource reselection, which in turn causes the service packet to be transmitted too time-consuming; when the parameter value of the target parameter is too large, the window length of the resource selection window is too large, resulting in the service packet occupying too many resources, thereby causing resource waste. The embodiment of the present application can adaptively adjust the parameter value of the target parameter based on the service packet and the air interface environment during the resource selection process, so that the parameter value of the target parameter that is most suitable for the current air interface environment and the service packet can be obtained, thereby obtaining the most suitable resource selection window. Selecting target resources using this resource selection window can avoid resource waste and reduce the delay of service packet transmission.

[0037] In some optional embodiments, for step 103, when the total number of candidate resources in the candidate resource set is less than the candidate resource quantity threshold, the target parameter value of the target parameter may be further determined according to the following sub-steps:

[0038] Sub-step 1031, determining whether the initial parameter value is equal to the maximum allowed delay.

[0039] As an example, T1 is set to 4, the initial parameter value of T2 is 10, and the preset step size is 20. At this time, the resource selection window is [n+4, n+10]. When the total number of candidate resources selected based on this resource selection window [n+4, n+10] is less than the candidate resource quantity threshold, it can be determined whether the initial parameter value of T2 is equal to the maximum allowable delay of the current service packet to be transmitted.

[0040] Sub-step 1032, when the initial parameter value has the maximum allowable delay, the initial parameter value is increased by a preset step size to obtain a candidate parameter value of the target parameter.

[0041] Here, the preset step size can be set as needed, for example, it can be set to 10 or 20. Continuing the above example, if the maximum allowable delay of the service packet to be transmitted is 100, since the initial parameter value 10 of T2 is less than 100, T2=T2+20 can be set, and T2=30 can be obtained, and 30 is used as the candidate parameter value of T2.

[0042] Sub-step 1033, when the candidate parameter value is less than or equal to the maximum allowed delay, the candidate parameter value is used as the initial parameter value, and the step of selecting candidate resources based on the resource selection window is continued.

[0043] Continuing with the above example, since the candidate parameter value 30 is less than the maximum allowed delay 100, the initial parameter value of T2 can be updated to 30. At this time, the resource selection window is [n+4, n+30]. Based on this resource selection window of [n+4, n+30], the above step 102 can be continued to update the candidate resource set and re-count the total number of candidate resources in the candidate resource set.

[0044] It should be noted that if the total number of candidate resources re-counted is still less than the candidate resource number threshold, step 103 can continue to be executed until any of the following conditions is met: the total number of candidate resources in the candidate resource set is greater than or equal to the candidate resource number threshold, the total number of candidate resources in the candidate resource set is less than the candidate resource number threshold and the candidate parameter value is greater than the maximum allowable delay, the total number of candidate resources in the candidate resource set is less than the candidate resource number threshold and the initial parameter value is equal to the maximum allowable delay.

[0045] If the total number of candidate resources recounted is greater than or equal to the candidate resource number threshold, the following sub-step 1034 may be executed. If the total number of candidate resources recounted is still less than the candidate resource number threshold, but the candidate parameter value determined in sub-step 1032 is greater than the maximum allowable delay, the following sub-step 1035 may be executed. If the total number of candidate resources recounted is still less than the candidate resource number threshold, but the initial parameter value updated in sub-step 1033 is equal to the maximum allowable delay, the following sub-step 1036 may be executed.

[0046] Sub-step 1034 , when the total number of candidate resources in the candidate resource set is greater than or equal to the candidate resource quantity threshold, determining the initial parameter value as the target parameter value.

[0047] Continuing with the above example, when the total number of candidate resources in the candidate resource set re-determined based on the resource selection window being [n+4, n+30] is greater than or equal to the candidate resource quantity threshold, the current initial parameter value 20 may be used as the target parameter value.

[0048] When the parameter value of the target parameter is too small, the window length of the resource selection window is too small, and resources cannot be selected, resulting in frequent triggering of resource reselection, which in turn causes the service packet to take up too much time; when the parameter value of the target parameter is too large, the window length of the resource selection window is too large, resulting in the service packet occupying too many resources, which in turn causes resource waste. The above implementation method, by iteratively increasing the preset step length to the initial parameter value, can obtain the minimum value of the target parameter T2 that meets the requirements. The target parameter value can meet the requirement that the total number of candidate resources is greater than or equal to the threshold of the number of candidate resources on the basis of being less than the maximum allowable delay of the service packet. Thus, the parameter value of the target parameter can be adaptively adjusted based on the service packet and the air interface environment during the resource selection process, and the parameter value of the target parameter that is most suitable for the current air interface environment and service packet can be obtained, thereby obtaining the most suitable resource selection window. Selecting the target resource with this resource selection window can avoid resource waste and reduce the delay of service packet transmission.

[0049] In some optional embodiments, after executing the above sub-step 1032, that is, after obtaining the candidate parameter value, the following sub-steps may also be executed:

[0050] Sub-step 1035, when the candidate parameter value is greater than the maximum allowed delay, the maximum allowed delay is used as the initial parameter value, and the step of selecting candidate resources based on the resource selection window is continued.

[0051] As an example, if the candidate parameter value is 110, which is greater than the maximum allowed delay of 100, the maximum allowed delay of 100 can be used as the initial parameter value to obtain the resource selection window [n+4, n+100], and continue to execute step 102 to update the candidate resource set and re-count the total number of candidate resources in the candidate resource set.

[0052] By using the maximum allowed delay as the initial parameter value when the candidate parameter value is greater than the maximum allowed delay, it is possible to prevent the value of the target parameter T2 from exceeding the maximum allowed delay of the service packet, thereby avoiding waste of resources.

[0053] In some optional embodiments, after executing the above step 1031, the following steps may also be executed:

[0054] Step 1035: when the initial parameter value is equal to the maximum allowed delay, the threshold of the reference signal received power is increased, and the step of selecting candidate resources based on the resource selection window is continued.

[0055] The reference signal receiving power (RSRP) is the average value of the signal power received on all resources carrying the reference signal in a symbol. The reference signal receiving power can be used to measure the signal reception quality of the user equipment.

[0056] It is understandable that when the total number of candidate resources in the candidate resource set is less than the threshold value of the number of candidate resources, it means that the number of candidate resources is small and does not meet the requirements. In this case, if the initial parameter value of the target parameter T2 is already equal to the maximum allowable delay of the data packet currently to be transmitted, it cannot be further increased. At this time, adjustments need to be made from other aspects to increase the number of candidate resources. In this implementation, by increasing the threshold of the reference signal receiving power, the difficulty of receiving the service packet can be increased, so that some of the service packets that were originally considered to be receivable are considered to be unreceivable at this time, thereby releasing the resources occupied by these service packets, reducing the amount of resources excluded, and thus increasing the number of candidate resources.

[0057] In some optional embodiments, after executing the above step 102, the following steps may also be executed:

[0058] Step 105 : When the total number of candidate resources in the candidate resource set is greater than or equal to the candidate resource quantity threshold, a target resource for transmitting the service packet is selected from the candidate resource set.

[0059] In practice, the candidate resources in the candidate resource set can be sorted by indicators such as signal strength, and the target resources can be selected according to the sorting results.

[0060] It can be understood that when the total number of candidate resources in the candidate resource set is greater than or equal to the candidate resource quantity threshold, it means that the initial parameter value at this time is the most suitable parameter value for the current air interface environment and service package, and the current resource selection window can obtain a sufficient number of candidate resources to meet the transmission of the service package, which is already a suitable resource selection window. Therefore, at this time, the target resource for transmitting the service package can be directly selected from the candidate resource set to avoid executing redundant processes, thereby improving the selection speed of the target resource.

[0061] The above embodiments are described below using different application scenarios.

[0062] Application scenario 1: Relatively idle air interface environment. Figure 2 .

[0063] The T1 value is 4, the initial value of T2 is 20, the preset step size is 20, and the maximum allowable delay of the current service packet to be transmitted is 100. In the resource pool of the current user equipment, there are 5 candidate resources in a subframe frequency domain. The total number of resources is: (20-4+1)×5=85. The candidate resource number threshold is 85×20%=17.

[0064] Assume that the total number of candidate resources in the candidate resource set obtained by executing step 102 is 18. Since the total number of candidate resources 18 is greater than the candidate resource quantity threshold 17, the above step 105 can be executed, that is, the target resource for transmitting the service packet is selected from the candidate resource set.

[0065] Since the initial value of T2 is a relatively small value, the resource selection window based on the initial value can obtain a sufficient number of candidate resources to meet the transmission of the service packet, and is already a suitable resource selection window. Therefore, the resource selection window based on the initial value can be directly used for resource selection.

[0066] Application scenario 2: Relatively congested air interface environment. Figure 3 .

[0067] The value of T1 is 4, the initial value of T2 is 20, the preset step length is 20, and the maximum allowable delay of the service packet to be transmitted is 100. In the resource pool of the current user equipment, there are 5 candidate resources in a subframe frequency domain.

[0068] The total number of resources determined for the first time is: (20-4+1)×5=85. The threshold value of the number of candidate resources determined for the first time is 85×20%=17. Assuming that the total number of candidate resources in the candidate resource set obtained for the first time is 16, since the total number of candidate resources 16 is less than the threshold value of the number of candidate resources 17, it does not meet the requirements and the T2 value needs to be increased. At this time, T2=20, which is not equal to the maximum allowed delay of 100, so T2 can be increased by a preset step size, so that T2=20+20=40. Since T2=40 is less than the maximum allowed delay of 100, the T2 upper limit protection is not triggered, and the step of determining the total number of candidate resources is re-executed.

[0069] The total number of resources determined for the second time is: (40-4+1)×5=185. The threshold value of the number of candidate resources determined for the second time is 185×20%=37. Assuming that the total number of candidate resources in the candidate resource set determined for the second time is 35, since the total number of candidate resources 35 is less than the threshold value of the number of candidate resources 37, it does not meet the requirements and the T2 value needs to be increased. At this time, T2=40, which is not equal to the maximum allowed delay of 100, so T2 can be increased by a preset step size, so that T2=40+20=60. Since T2=60 is less than the maximum allowed delay of 100, the T2 upper limit protection is not triggered, and the step of determining the total number of candidate resources is re-executed.

[0070] The total number of resources determined for the third time is: (60-4+1)×5=285. The threshold number of candidate resources determined for the third time is 285×20%=57. Assume that the total number of candidate resources in the candidate resource set determined for the third time is 58. Since the total number of candidate resources 58 is greater than the threshold number of candidate resources 58, the requirement is met. At this time, the target resource can be selected from the candidate resource set determined for the third time.

[0071] Application scenario 3: Congested air interface environment. Figure 4 .

[0072] The value of T1 is 4, the initial value of T2 is 50, the preset step length is 10, and the maximum allowable delay of the current service packet to be transmitted is 70. In the resource pool of the current user equipment, there are 5 candidate resources in a subframe frequency domain.

[0073] The total number of resources determined for the first time is: (50-4+1)×5=235. The threshold value of the number of candidate resources determined for the first time is 235×20%=47. Assuming that the total number of candidate resources in the candidate resource set obtained for the first time is 40, since the total number of candidate resources 40 is less than the threshold value of the number of candidate resources 47, it does not meet the requirements and the T2 value needs to be increased. At this time, T2=50+10=60, which is not equal to the maximum allowed delay of 70, so T2 can be increased by a preset step size, so that T2=50+10=60. Since T2=60 is less than the maximum allowed delay of 70, the T2 upper limit protection is not triggered, and the step of determining the total number of candidate resources is re-executed.

[0074] The total number of resources determined for the second time is: (60-4+1)×5=285. The threshold value of the number of candidate resources determined for the second time is 285×20%=57. Assuming that the total number of candidate resources in the candidate resource set determined for the second time is 55, since the total number of candidate resources 55 is less than the threshold value of the number of candidate resources 57, it does not meet the requirements and the T2 value needs to be increased. At this time, T2=60, which is not equal to the maximum allowed delay of 70, so T2 can be increased by a preset step size, so that T2=60+10=70. Since T2=70 is equal to the maximum allowed delay of 70, the T2 upper limit protection is not triggered, and the step of determining the total number of candidate resources is re-executed.

[0075] The total number of resources determined for the third time is: (70-4+1)×5=325. The threshold of the number of candidate resources determined for the third time is 325×20%=67. Assume that the total number of candidate resources in the candidate resource set determined for the third time is 66. Since the total number of candidate resources 66 is less than the threshold of the number of candidate resources 67, it does not meet the requirement. At this time, T2=70, which is equal to the maximum allowed delay of 70, so it cannot be further increased. At this time, the RSRP threshold can be increased, and the step of determining the total number of candidate resources can be re-executed until the requirement that the total number of candidate resources is less than the threshold of the number of candidate resources is met.

[0076] Application scenario 4: Congested air interface environment. Figure 5 .

[0077] The T1 value is 4, the initial value of T2 is 50, the preset step length is 10, and the maximum allowable delay of the current service packet to be transmitted is 65. In the resource pool of the current user equipment, there are 5 candidate resources in a subframe frequency domain.

[0078] The total number of resources determined for the first time is: (50-4+1)×5=235. The threshold value of the number of candidate resources determined for the first time is 235×20%=47. Assuming that the total number of candidate resources in the candidate resource set obtained for the first time is 45, since the total number of candidate resources 40 is less than the threshold value of the number of candidate resources 47, it does not meet the requirements and the T2 value needs to be increased. At this time, T2=50+10=60, which is not equal to the maximum allowed delay of 65, so T2 can be increased by a preset step size, so that T2=50+10=60. Since T2=60 is less than the maximum allowed delay of 65, the T2 upper limit protection is not triggered, and the step of determining the total number of candidate resources is re-executed.

[0079] The total number of resources determined for the second time is: (60-4+1)×5=285. The threshold value of the number of candidate resources determined for the second time is 285×20%=57. Assuming that the total number of candidate resources in the candidate resource set determined for the second time is 52, since the total number of candidate resources 52 is less than the threshold value of the number of candidate resources 57, it does not meet the requirements and the T2 value needs to be increased. At this time, T2=70, which is not equal to the maximum allowed delay of 65, so T2 can be increased by a preset step size, so that T2=60+10=70. Since T2=70 is greater than the maximum allowed delay of 65, the T2 upper limit protection is triggered, making T2=65, and the step of determining the total number of candidate resources is re-executed.

[0080] The total number of resources determined for the third time is: (65-4+1)×5=310. The threshold number of candidate resources determined for the third time is 310×20%=62. Assuming that the total number of candidate resources in the candidate resource set determined for the third time is 60, since the total number of candidate resources 60 is less than the threshold number of candidate resources 62, it does not meet the requirement. At this time, T2=65, which is equal to the maximum allowed delay of 65, so it cannot be further increased. At this time, the RSRP threshold can be increased, and the step of determining the total number of candidate resources can be re-executed until the requirement that the total number of candidate resources is less than the threshold number of candidate resources is met.

[0081] The method provided by the above embodiment of the present application can adaptively adjust the parameter value of the target parameter based on the service package and the air interface environment during the resource selection process, so that the parameter value of the target parameter that is most suitable for the current air interface environment and service package can be obtained, thereby obtaining the most suitable resource selection window. Selecting the target resource with this resource selection window can avoid resource waste and reduce the delay of service packet transmission.

[0082] Further references Figure 6 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a resource selection window determination device, and the device embodiment is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0083] like Figure 6 As shown, the resource selection window determination device 600 of this embodiment includes: an acquisition unit 601, used to acquire an initial parameter value of a target parameter in a resource selection window of a direct link, wherein the target parameter is used to control an upper limit value of the resource selection window; a selection unit 602, used to select candidate resources based on the resource selection window to obtain a candidate resource set; a determination unit 603, used to determine a target parameter value of the target parameter based on the initial parameter value and a maximum allowed delay of a service packet currently to be transmitted when the total number of candidate resources in the candidate resource set is less than a candidate resource quantity threshold; an update unit 604, used to update the resource selection window based on the target parameter value.

[0084] In some optional implementations of this embodiment, the determination unit 603 is further used to: determine whether the initial parameter value is equal to the maximum allowed delay; if the initial parameter value is the maximum allowed delay, increase the initial parameter value by a preset step size to obtain a candidate parameter value of the target parameter; if the candidate parameter value is less than or equal to the maximum allowed delay, use the candidate parameter value as the initial parameter value and continue to execute the step of selecting candidate resources based on the resource selection window; if the total number of candidate resources in the candidate resource set is greater than or equal to a candidate resource quantity threshold, determine the initial parameter value as the target parameter value.

[0085] In some optional implementations of this embodiment, the determination unit 603 is further used to: when the candidate parameter value is greater than the maximum allowed delay, use the maximum allowed delay as the initial parameter value and continue to perform the step of selecting candidate resources based on the resource selection window.

[0086] In some optional implementations of this embodiment, the determination unit 603 is further used to: when the initial parameter value is equal to the maximum allowed delay, increase the threshold of the reference signal receiving power, and continue to execute the step of selecting candidate resources based on the resource selection window.

[0087] In some optional implementations of this embodiment, the device also includes: a target resource selection unit, which is used to select a target resource for transmitting the service package from the candidate resource set when the total number of candidate resources in the candidate resource set is greater than or equal to the candidate resource quantity threshold.

[0088] The device provided by the above embodiment of the present application first obtains the initial parameter value of the target parameter in the resource selection window of the direct link, and the target parameter is used to control the upper limit value of the resource selection window; then, based on the resource selection window, candidate resource selection is performed to obtain a candidate resource set; then, when the total number of candidate resources in the candidate resource set is less than the candidate resource quantity threshold, the target parameter value of the target parameter is determined based on the initial parameter value and the maximum allowed delay of the current service packet to be transmitted; finally, the target parameter value is used as the parameter value of the target parameter, and based on the resource selection window, the target resource for transmitting the above service packet is selected. When the parameter value of the target parameter is too small, the resource cannot be selected due to the small window length of the resource selection window, resulting in frequent triggering of resource reselection, which in turn causes the service packet to take up too much time; when the parameter value of the target parameter is too large, the window length of the resource selection window is too large, resulting in the service packet occupying too many resources, which in turn causes resource waste. The embodiment of the present application can adaptively adjust the parameter value of the target parameter based on the service package and the air interface environment during the resource selection process, so that the parameter value of the target parameter that is most suitable for the current air interface environment and service package can be obtained, thereby obtaining the most suitable resource selection window. Selecting the target resource with this resource selection window can avoid resource waste and reduce the delay of service packet transmission.

[0089] Reference below Figure 7 , which shows a schematic structural diagram of an electronic device for implementing some embodiments of the present application. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0090] like Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0091] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a disk, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 7 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0092] In particular, according to some embodiments of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of some embodiments of the present application are executed.

[0093] It should be noted that the computer-readable medium described in some embodiments of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0094] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0095] The computer-readable medium may be included in the electronic device; or it may exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains the initial parameter value of the target parameter in the resource selection window of the direct link, and the target parameter is used to control the upper limit value of the resource selection window; selects candidate resources based on the resource selection window to obtain a candidate resource set; when the total number of candidate resources in the candidate resource set is less than the candidate resource quantity threshold, determines the target parameter value of the target parameter based on the initial parameter value and the maximum allowable delay of the current service packet to be transmitted; uses the target parameter value as the parameter value of the target parameter, and selects the target resource for transmitting the service packet based on the resource selection window.

[0096] Computer program code for performing the operations of some embodiments of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++; and also conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, or may be connected to an external computer (e.g., through the Internet using an Internet service provider), including a local area network (LAN) or a wide area network (WAN).

[0097] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0098] The units described in some embodiments of the present application may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a first determination unit, a second determination unit, a selection unit, and a third determination unit. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0099] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0100] The above description is only some preferred embodiments of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present application is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with (but not limited to) the technical features with similar functions disclosed in the embodiments of the present application to form a technical solution.

Claims

1. A method for determining a resource selection window, characterized in that: The method comprises: Acquire an initial parameter value of a target parameter in a resource selection window of a through link, wherein the target parameter is used to control an upper limit value of the resource selection window; Selecting candidate resources based on the resource selection window to obtain a candidate resource set; When the total number of candidate resources in the candidate resource set is less than the candidate resource quantity threshold, determining a target parameter value of the target parameter based on the initial parameter value and a maximum allowable delay of a service packet to be currently transmitted; Based on the target parameter value, the resource selection window is updated.

2. The method according to claim 1, characterized in that The determining, based on the initial parameter value and the maximum allowable delay of the service packet to be currently transmitted, the target parameter value of the target parameter comprises: Determining whether the initial parameter value is equal to the maximum allowed delay; When the initial parameter value is not equal to the maximum allowed delay, increasing the initial parameter value by a preset step size to obtain a candidate parameter value of the target parameter; In a case where the candidate parameter value is less than or equal to the maximum allowed delay, taking the candidate parameter value as the initial parameter value, and continuing to perform the step of selecting a candidate resource based on the resource selection window; In a case where the total number of candidate resources in the candidate resource set is greater than or equal to a candidate resource quantity threshold, the initial parameter value is determined as a target parameter value.

3. The method according to claim 2, characterized in that After obtaining the candidate parameter value of the target parameter, determining the target parameter value of the target parameter based on the initial parameter value and the maximum allowable delay of the service packet to be transmitted currently, further includes: In a case where the candidate parameter value is greater than the maximum allowed delay, the maximum allowed delay is used as the initial parameter value, and the step of selecting a candidate resource based on the resource selection window is continued.

4. The method according to claim 2, characterized in that: After determining whether the initial parameter value is equal to the maximum allowed delay, determining the target parameter value of the target parameter based on the initial parameter value and the maximum allowed delay of the service packet currently to be transmitted further includes: When the initial parameter value is equal to the maximum allowed delay, the threshold of the reference signal received power is increased, and the step of selecting candidate resources based on the resource selection window is continued.

5. The method according to claim 1, characterized in that After selecting candidate resources based on the resource selection window to obtain a candidate resource set, the method further includes: When the total number of candidate resources in the candidate resource set is greater than or equal to the candidate resource quantity threshold, a target resource for transmitting the service packet is selected from the candidate resource set.

6. A resource selection window determination device, characterized in that: The device comprises: An acquiring unit, configured to acquire an initial parameter value of a target parameter in a resource selection window of a through link, wherein the target parameter is used to control an upper limit value of the resource selection window; A selection unit, configured to select candidate resources based on the resource selection window to obtain a candidate resource set; a determining unit, configured to determine a target parameter value of the target parameter based on the initial parameter value and a maximum allowable delay of a service packet to be currently transmitted, when the total number of candidate resources in the candidate resource set is less than a threshold value of the number of candidate resources; An updating unit is used to update the resource selection window based on the target parameter value.

7. The device according to claim 6, characterized in that The determining unit is further configured to: Determining whether the initial parameter value is equal to the maximum allowed delay; In the case where the initial parameter value is the maximum allowed delay, the initial parameter value is increased by a preset step size to obtain a candidate parameter value of the target parameter; In a case where the candidate parameter value is less than or equal to the maximum allowed delay, taking the candidate parameter value as the initial parameter value, and continuing to perform the step of selecting a candidate resource based on the resource selection window; In a case where the total number of candidate resources in the candidate resource set is greater than or equal to a candidate resource quantity threshold, the initial parameter value is determined as a target parameter value.

8. The device according to claim 7, characterized in that The determining unit is further configured to: In a case where the candidate parameter value is greater than the maximum allowed delay, the maximum allowed delay is used as the initial parameter value, and the step of selecting a candidate resource based on the resource selection window is continued.

9. The device according to claim 7, characterized in that The determining unit is further configured to: When the initial parameter value is equal to the maximum allowed delay, the threshold of the reference signal received power is increased, and the step of selecting candidate resources based on the resource selection window is continued.

10. The device according to claim 6, characterized in that The device also includes: The target resource selection unit is used to select a target resource for transmitting the service packet from the candidate resource set when the total number of candidate resources in the candidate resource set is greater than or equal to the candidate resource quantity threshold.

11. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.