Resource selection method and device
By dynamically adjusting the value of X during the resource selection process in NR-V2X, based on factors such as the number of target resources, time interval, frequency interval, and service priority, the problem of insufficient candidate resources in the resource selection window is solved, thereby improving resource selection efficiency and transmission success rate.
Patent Information
- Application Number
- CN201980098726.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-08
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2039-11-08
AI Technical Summary
In NR-V2X, the value of X is fixed at 20 during the resource selection process. This means that the RSRP threshold is only adjusted when the number of remaining candidate resources in the resource selection window is less than 20%, resulting in a limited number of selectable resources and reduced resource selection efficiency.
By dynamically adjusting the value of X based on factors such as the number of target resources, time interval, frequency interval, and business priority, the number of candidate resources is ensured to be greater than or equal to X% of all resources in the resource pool, thereby improving the flexibility and efficiency of resource selection.
It improves the efficiency of resource selection, reduces the complexity of the resource selection process, and strives to select enough resources to avoid failures due to insufficient resources during transmission, thereby improving the transmission success rate.
Smart Images

Figure CN114145059B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mobile communication technology, and in particular to a resource selection method and device. Background Art
[0002] There are two transmission modes for sidelink resource allocation in new radio (NR)-vehicle to everything (V2X), one is base station resource allocation mode 1 (mode-1), and the other is user-selected resource mode 2 (mode-2). Mode-1 is mainly used for V2X communication in the case of network coverage. The base station uniformly allocates resources based on the buffer state report (BSR) reported by the terminal device.
[0003] Mode-2 can be applied to V2X communication in the absence of network coverage. Of course, mode-2 can also be applied when there is network coverage. In mode-2, the transmitting terminal device selects resources for communication within the resource selection window according to the result of resource listening. For example, the transmitting terminal device can measure the candidate resources included in the resource selection window to obtain the reference signal receiving power (RSRP). If the measured RSRP is higher than the preset RSRP threshold Th RSRP , then the candidate resource needs to be excluded from the resource selection window, otherwise, the candidate resource can be selected. In the process of selecting resources, if the number of candidate resources remaining in the resource selection window is less than X% of all candidate resources included in the resource selection window, the preset RSRP threshold Th RSRP Increase by 3dB, and then compare the measured result with the new RSRP threshold Th RSRP Make a comparison.
[0004] At present, the value of X is fixed at 20, which follows the value of X in long term evolution (LTE)-V2X. In LTE-V2X, only blind retransmissions with a maximum of 2 transmissions are supported, so generally only two resources need to be selected for one transmission. When the selected resources are small, X=20 can generally meet the demand. However, in NR-V2X, multiple retransmissions may be performed and more resources are selected. Then if X is fixed at 20, the preset RSRP threshold Th will be adjusted only when the number of candidate resources remaining in the resource selection window is less than 20% of all candidate resources included in the resource selection window. RSRP , and even if the RSRP threshold Th is adjustedRSRP , the number of selectable resources is also limited. In other words, due to the value of X, the number of selectable resources is limited, which reduces the efficiency of resource selection. Summary of the invention
[0005] The embodiments of the present application provide a resource selection method and device for improving the efficiency of resource selection.
[0006] In a first aspect, a first resource selection method is provided, the method comprising: selecting a first resource for first data from candidate resources included in a resource pool, the candidate resources comprising resources whose reference signal received power is less than or equal to a first threshold; selecting at least one resource for the first data from candidate resources other than the first resource in the candidate resources according to the first resource and a first interval, the first interval comprising a first time interval satisfied between the selected first resource and two adjacent resources in the at least one resource, and / or comprising a first frequency interval satisfied between the selected first resource and two adjacent resources in the at least one resource; wherein the number of the candidate resources is greater than or equal to X% of the total number of resources included in the resource pool, and the value of X satisfies the following conditions:
[0007] The value of X is set according to the number of target resources; or,
[0008] The value of X is set according to the number of target resources and the first time interval; or,
[0009] The value of X is set according to the number of target resources, the first time interval and the first frequency interval; or, the value of X is set according to the priority of the service;
[0010] The total number of the first resource and the at least one resource is less than or equal to the target number of resources.
[0011] The method may be performed by a first communication device, which may be a communication device or a communication device capable of supporting the communication device to implement the functions required by the method, such as a chip. Exemplarily, the first communication device is a first terminal device. Exemplarily, the first terminal device may be a terminal device, or a chip provided in the terminal device for implementing the functions of the terminal device, or other components for implementing the functions of the terminal device. In the following introduction, the first communication device is taken as an example that the first terminal device is the first communication device.
[0012] In an embodiment of the present application, the number of available candidate resources included in the resource pool is greater than or equal to X% of the total number of candidate resources included in the resource pool, and the value of X can be set according to different factors, such as the number of resources to be selected, the number of resources to be selected and the first time interval, the number of resources to be selected, the first time interval and the first frequency interval, or the priority of the service. For example, when the number of resources to be selected is large, the value of X can be set to be large, or when the priority of the service is high, the value of X can be set to be large, and so on. If the value of X is large, there are more optional resources, which can meet the needs of resource selection as much as possible, improve the efficiency of resource selection, and reduce the complexity of the resource selection process. And try to select enough resources to avoid some transmission processes from being unable to proceed due to lack of resources, thereby improving the success rate of transmission. In addition, in an embodiment of the present application, the value of X is no longer fixed, but can be set according to different needs, making the resource selection process more flexible.
[0013] In a possible implementation manner, the first data is sent to the second terminal device through the selected resources. The selected resources, for example, include the first resource and the at least one resource.
[0014] After selecting the resource, the first data can be sent through the selected resource. For example, if the total number of the first resource and the at least one resource is greater than or equal to the target number of resources, the resource selection process stops, and the first data can be sent to the second terminal device through the first resource and the at least one resource; or, although the total number of the first resource and the at least one resource is less than the target number of resources, the number of times the resource is reselected is greater than or equal to the preset number of times, the resource selection process stops, and the first data can be sent to the second terminal device through the first resource and the at least one resource. The preset number of times is, for example, specified by a protocol, configured by a network device, or determined by the first terminal device.
[0015] In an optional implementation, the target number of resources is related to the QoS of the first data and / or configuration information of the resource pool.
[0016] In other words, the target number of resources may be related to the QoS of the service to which the first data belongs. For example, if the QoS of the first data is higher, the target number of resources may be set to be larger, and the reliability of transmission may be improved through multiple transmissions. Alternatively, if the QoS of the first data is lower, the target number of resources may be set to be smaller, which may reduce transmission overhead and save resources. Alternatively, the target number of resources may also be related to the configuration information of the resource pool. For example, the configuration information of the resource pool may indicate the maximum number of resources selected by the resource pool at one time. The target number of resources may also be the number of resources selected at one time. Then the target number of resources may be less than or equal to the maximum number of resources indicated by the configuration information of the resource pool.
[0017] In an optional implementation, the value of X is set according to the number of resources that need to be selected, including:
[0018] The larger the number of target resources is, the larger the value of X is.
[0019] The larger the number of target resources (or the more target resources there are), the more resources need to be selected. In this case, the value of X can be increased to make the number of candidate resources larger. The more candidate resources there are, the larger the range of selection is, and the higher the probability of selecting resources is. In this way, the demand for resource selection can be met as much as possible, the efficiency of resource selection is improved, and the complexity of the resource selection process is reduced. In addition, sufficient resources are selected as much as possible to avoid some transmission processes being unable to proceed due to lack of resources, thereby improving the success rate of transmission.
[0020] In an optional implementation manner, the value of X is set according to the number of target resources and the first time interval, including:
[0021] On the premise that the number of target resources is certain, the smaller the first time interval is, the larger the value of X is.
[0022] When the number of target resources is constant, the smaller the first time interval is, the more resources need to be selected. In this case, the value of X can be increased to make the number of candidate resources larger. The more candidate resources there are, the larger the range that can be selected, and the higher the probability of selecting resources. In this way, the demand for resource selection can be met as much as possible, the efficiency of resource selection is improved, and the complexity of the resource selection process is reduced. In addition, sufficient resources are selected as much as possible to avoid some transmission processes being unable to proceed due to lack of resources, thereby improving the success rate of transmission.
[0023] In an optional implementation manner, the value of X is set according to the number of target resources, the first time interval, and the first frequency interval, including:
[0024] On the premise that the number of target resources and the first time interval are constant, the smaller the first frequency interval is, the larger the value of X is.
[0025] When the number of target resources and the first time interval are constant, the smaller the first frequency interval is, the more resources need to be selected. In this case, the value of X can be increased to increase the number of candidate resources. The more candidate resources there are, the larger the range that can be selected, and the higher the probability of selecting resources. In this way, the demand for resource selection can be met as much as possible, the efficiency of resource selection is improved, and the complexity of the resource selection process is reduced. In addition, sufficient resources are selected as much as possible to avoid some transmission processes being unable to proceed due to lack of resources, thereby improving the success rate of transmission.
[0026] In an optional implementation, the value of X is set according to the priority of the service, including:
[0027] The higher the priority of the service, the larger the value of X.
[0028] The higher the priority of the service, the more we need to ensure the success rate of resource selection. In this case, we can increase the value of X so that there are more candidate resources. The more candidate resources there are, the larger the range of choices is, and the higher the probability of selecting resources is. In this way, we can try to meet the needs of resource selection, improve the efficiency of resource selection, and reduce the complexity of the resource selection process. We also try to select enough resources to avoid some transmission processes being unable to proceed due to lack of resources, thereby improving the success rate of transmission.
[0029] In an optional embodiment, the method further includes:
[0030] Determining that there are no selectable candidate resources except the first resource and the third resource among the candidate resources, and the total number of the first resource and the third resource is less than the number of target resources, wherein the third resource includes the selected resources among the candidate resources except the first resource;
[0031] selecting a second resource from among the candidate resources;
[0032] One or more resources are selected for the first data from among the candidate resources excluding the second resource according to the second resource and the first interval.
[0033] In an embodiment of the present application, if the total number of the first resource and at least one resource is greater than or equal to the target number of resources, the first terminal device can stop the resource selection process and can use the selected resource to send the first data. Alternatively, if the total number of the first resource and at least one resource is less than the target number of resources, and there are candidate resources that meet the selection conditions among the remaining candidate resources (the so-called selection conditions can be understood as the first interval), the first terminal device can continue to select. Alternatively, if the total number of the first resource and at least one resource is less than the target number of resources, but there are no candidate resources that meet the selection conditions among the remaining candidate resources, then the first terminal device can stop the resource selection process. Although the number of selected resources is less than the target number of resources, the first terminal device still uses the selected resources to send the first data, or, in this case, the first terminal device can also take a measure, that is, reselect. By reselecting resources, the number of selected resources can be made greater than or equal to the target number of resources as much as possible, meeting the transmission requirements of the first data and improving the success rate of resource selection.
[0034] In a possible implementation manner, the first data is sent to the second terminal device via the selected resources. The selected resources, for example, include the second resource and the one or more resources.
[0035] After selecting the resource, the first data can be sent through the selected resource. For example, if the total number of the second resource and one or more resources is greater than or equal to the target number of resources, the resource selection process stops, and the first data can be sent to the second terminal device through the second resource and one or more resources; or, although the total number of the second resource and one or more resources is less than the target number of resources, the number of times the resource is reselected is greater than or equal to the preset number, the resource selection process stops, and the first data can be sent to the second terminal device through the second resource and one or more resources. The preset number of times is, for example, specified by a protocol, configured by a network device, or determined by the first terminal device.
[0036] In an optional implementation manner, selecting at least one resource from candidate resources other than the first resource among the candidate resources according to the first resource and the first interval includes:
[0037] Taking the time domain position where the first resource is located as the reference time domain position, moving forward and / or backward in the time domain by a first time interval, and using the candidate resources corresponding to the moved time domain position as part or all of the at least one resource, wherein the first interval includes the first time interval; or,
[0038] Taking the frequency domain position where the first resource is located as the reference frequency domain position, moving a first frequency interval upward and / or downward in the frequency domain, and using the candidate resources corresponding to the moved frequency domain position as part or all of the at least one resource, the first interval including the first frequency interval; or,
[0039] Taking the time domain position where the first resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the first resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and use the candidate resources corresponding to the moved time domain position and frequency domain position as part or all of the at least one resource, and the first interval includes the first time interval and the first frequency interval.
[0040] Through this selection method, the interval between two adjacent resources in the selected resources can be made equal to the first interval, so that the selected resources can meet the selection condition.
[0041] In an optional implementation manner, selecting at least one resource from candidate resources other than the first resource among the candidate resources according to the first resource and the first interval includes:
[0042] Taking the time domain position where the first resource is located as the reference time domain position, moving forward and / or backward for a first time interval in the time domain, selecting resources within a first range corresponding to the time domain position after the movement, wherein the selected resources are part or all of the at least one resource, the first range does not include the time domain position between the reference time domain position and the time domain position after the movement, and the first interval includes the first time interval; or,
[0043] Taking the frequency domain position where the first resource is located as the reference frequency domain position, moving the first frequency interval upward and / or downward in the frequency domain, selecting resources within a second range corresponding to the moved frequency domain position, wherein the selected resources are part or all of the at least one resource, the second range does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first frequency interval; or,
[0044] Taking the time domain position where the first resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the first resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and select resources within a third range corresponding to the moved time domain position and the moved frequency domain position, the selected resources are part or all of the at least one resource, the third range does not include the time domain position between the reference time domain position and the moved time domain position, and does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first time interval and the first frequency interval.
[0045] Under this selection method, the interval requirements between the selected resources are relatively loose. For example, there is no strict requirement that the time interval between adjacent resources be the first time interval, but it only needs to be greater than or equal to the first time interval; or there is no strict requirement that the frequency interval between adjacent resources be the first frequency interval, but it only needs to be greater than or equal to the first frequency interval. This makes the selection conditions more relaxed, more conducive to selecting resources, and helps to improve the success rate of resource selection.
[0046] In a second aspect, a second resource selection method is provided, the method comprising: selecting a first resource for first data from first candidate resources included in a first resource pool, the first candidate resource comprising resources whose reference signal receiving power is less than or equal to a first threshold; determining, based on the first resource and the first interval, that there are no selectable candidate resources in the candidate resources other than the first resource and the third resource in the first candidate resource, and that the total number of the first resource and the third resource is less than the target number of resources, wherein the third resource comprises selected resources in the candidate resources other than the first resource, the first interval comprises a first time interval satisfied between two adjacent resources in the selected first resource and the third resource, and / or comprises a first frequency interval satisfied between two adjacent resources in the selected first resource and the third resource; replacing the first resource pool with a second resource pool; selecting, based on the second resource in the second resource pool and the first interval, at least one resource from the candidate resources other than the second resource in the second candidate resources included in the second resource pool, the second candidate resource comprising resources whose reference signal receiving power is less than or equal to the first threshold.
[0047] The method may be performed by a second communication device, which may be a communication device or a communication device capable of supporting the communication device to implement the functions required by the method, such as a chip. Exemplarily, the second communication device is a first terminal device. Exemplarily, the first terminal device may be a terminal device, or a chip provided in the terminal device for implementing the functions of the terminal device, or other components for implementing the functions of the terminal device. In the following introduction, the second communication device is taken as an example of the first terminal device.
[0048] In the resource selection process provided by the embodiment of the present application, if the number of selected resources is less than the target number of resources, and there are no candidate resources that meet the selection criteria, then reselection can be performed. For example, new candidate resources can be introduced by moving the resource pool, so that enough resources can be selected as much as possible, thereby improving the success rate of resource selection. The embodiment of the present application also further improves the overall resource allocation process and design under mode-2 of NR-V2X.
[0049] In a possible implementation manner, the first data is sent to the second terminal device via selected resources. The selected resources, for example, include the second resource and the at least one resource.
[0050] After selecting the resource, the first data can be sent through the selected resource. For example, if the total number of the second resource and the at least one resource is greater than or equal to the target resource number, the resource selection process stops, and the first data can be sent to the second terminal device through the second resource and the at least one resource; or, although the total number of the second resource and the at least one resource is less than the target resource number, but the number of times the resource is reselected is greater than or equal to the preset number, the resource selection process stops, and the first data can be sent to the second terminal device through the second resource and the at least one resource. The preset number of times is, for example, specified by a protocol, configured by a network device, or determined by the first terminal device.
[0051] In an optional implementation, the target number of resources is related to the QoS of the first data and / or configuration information of the first resource pool.
[0052] In other words, the target number of resources may be related to the QoS of the service to which the first data belongs. For example, if the QoS of the first data is higher, the target number of resources may be set to be larger, and the reliability of transmission may be improved through multiple transmissions. Alternatively, if the QoS of the first data is lower, the target number of resources may be set to be smaller, which may reduce transmission overhead and save resources. Alternatively, the target number of resources may also be related to the configuration information of the resource pool (for example, related to the configuration information of the first resource pool). For example, the configuration information of the resource pool may indicate the maximum number of resources selected at one time by the first resource pool. The target number of resources may also be the number of resources selected at one time. Then, the target number of resources may be less than or equal to the maximum number of resources indicated by the configuration information of the first resource pool.
[0053] In an optional embodiment,
[0054] The second resource and the first resource are the same resource; or,
[0055] The method also includes: selecting the second resource from candidate resources included in the second resource pool.
[0056] The second resource and the first resource can be the same resource. This method is applicable to the case where the first resource still exists in the second resource pool. That is, if the first resource exists in the second resource pool, the first terminal device does not need to reselect the first resource, but continues to use the first resource as a reference to continue to select subsequent resources, thereby reducing the steps of resource selection. Alternatively, the second resource and the first resource may not be the same resource. For example, if the first resource does not exist in the second resource pool, the first terminal device can reselect a resource in the second resource pool. Alternatively, even if the first resource exists in the second resource pool, the first terminal device can reselect a resource in the second resource pool. By reselecting resources, it also helps to improve the success rate of the final resource selection.
[0057] In an optional implementation, replacing the first resource pool with a second resource pool includes:
[0058] In the time domain, the time domain end position of the first resource pool is moved backward by a first duration to obtain the second resource pool; or,
[0059] In the time domain, a time domain start position of the first resource pool is moved backward by a second duration, and a time domain end position of the first resource pool is moved backward by a third duration, so as to obtain the second resource pool.
[0060] For example, the first terminal device can move the time domain end position of the first resource pool backward by a first duration in the time domain to obtain a second resource pool. For example, the time domain start position of the first resource pool is T1, and the time domain end position is T2. The first terminal device can move the time domain end position of the first resource pool backward by a first duration from T2 to T3 to obtain a second resource pool, and the time domain start position of the second resource pool is T1, and the time domain end position is T3. In this way, it is equivalent to expanding the first resource pool, so that the expanded first resource pool (i.e., the second resource pool) includes more candidate resources. This method is equivalent to increasing the candidate resources by sliding the time domain position of the resource pool, thereby increasing the minimum range of the final actual selected resources corresponding to X. Therefore, this method can also be considered as a way to implicitly configure the value of X.
[0061] For another example, the first terminal device can move the time domain starting position of the first resource pool backward by a second duration in the time domain, and move the time domain ending position of the first resource pool backward by a third duration in the time domain to obtain a second resource pool. For example, the time domain starting position of the first resource pool is T1, and the time domain ending position is T2. The first terminal device can move the time domain starting position of the first resource pool backward by a second duration from T1 to T4, and can move the time domain ending position of the first resource pool backward by a third duration from T2 to T5, to obtain a second resource pool, the time domain starting position of the second resource pool is T4, and the time domain ending position is T5. In this way, the first resource pool and the second resource pool may or may not have an intersection, and the time domain length of the first resource pool may be equal to or unequal to the time domain length of the second resource pool. This method of replacing resource pools is more flexible. In addition, new candidate resources are introduced, and the original candidate resources may even be completely replaced, which can improve the success rate of resource selection.
[0062] In an optional implementation manner, selecting at least one resource from candidate resources other than the second resource in the second candidate resources included in the second resource pool according to the second resource and the first interval includes:
[0063] Taking the time domain position where the second resource is located as the reference time domain position, moving forward and / or backward in the time domain by a first time interval, and using the candidate resources corresponding to the moved time domain position as part or all of the at least one resource, the first interval including the first time interval; or,
[0064] Taking the frequency domain position where the second resource is located as the reference frequency domain position, moving the first frequency interval upward and / or downward in the frequency domain, and using the candidate resources corresponding to the moved frequency domain position as part or all of the at least one resource, the first interval including the first frequency interval; or,
[0065] Taking the time domain position where the second resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the second resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and use the candidate resources corresponding to the moved time domain position and frequency domain position as part or all of the at least one resource, and the first interval includes the first time interval and the first frequency interval.
[0066] Through this selection method, the interval between two adjacent resources in the selected resources can be made equal to the first interval, so that the selected resources can meet the selection condition.
[0067] In an optional implementation manner, selecting at least one resource from candidate resources other than the second resource in the second candidate resources included in the second resource pool according to the second resource and the first interval includes:
[0068] Taking the time domain position where the second resource is located as the reference time domain position, moving forward and / or backward for a first time interval in the time domain, selecting resources within a first range corresponding to the time domain position after the movement, wherein the selected resources are part or all of the at least one resource, the first range does not include the time domain position between the reference time domain position and the time domain position after the movement, and the first interval includes the first time interval; or,
[0069] Taking the frequency domain position where the second resource is located as the reference frequency domain position, moving the first frequency interval upward and / or downward in the frequency domain, selecting resources within a second range corresponding to the moved frequency domain position, wherein the selected resources are part or all of the at least one resource, the second range does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first frequency interval; or,
[0070] Taking the time domain position where the second resource is located as the reference time domain position, move forward and / or backward in the time domain for a first time interval, and taking the frequency domain position where the second resource is located as the reference frequency domain position, move up and / or down in the frequency domain for a first frequency interval, and select resources within a third range corresponding to the moved time domain position and the moved frequency domain position, the selected resources are part or all of the at least one resource, the third range does not include the time domain position between the reference time domain position and the moved time domain position, and does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first time interval and the first frequency interval.
[0071] Under this selection method, the interval requirements between the selected resources are relatively loose. For example, there is no strict requirement that the time interval between adjacent resources be the first time interval, but it only needs to be greater than or equal to the first time interval; or there is no strict requirement that the frequency interval between adjacent resources be the first frequency interval, but it only needs to be greater than or equal to the first frequency interval. This makes the selection conditions more relaxed, more conducive to selecting resources, and helps to improve the success rate of resource selection.
[0072] In a third aspect, a communication device is provided, for example, the communication device is the first communication device as described above. The first communication device is used to execute the method in the first aspect or any possible implementation mode. Specifically, the first communication device may include a module for executing the method in the first aspect or any possible implementation mode, for example, including a processing module and a transceiver module. Exemplarily, the transceiver module may include a sending module and a receiving module, and the sending module and the receiving module may be different functional modules, or may also be the same functional module, but can implement different functions. Exemplarily, the first communication device is a first terminal device. Exemplarily, the first terminal device is a communication device, or a chip or other component set in a communication device. Exemplarily, the communication device is a terminal device. The following takes the first communication device as an example of a first terminal device. For example, the transceiver module may also be implemented by a transceiver, and the processing module may also be implemented by a processor. Alternatively, the sending module may be implemented by a transmitter, and the receiving module may be implemented by a receiver, and the transmitter and the receiver may be different functional modules, or may also be the same functional module, but can implement different functions. Optionally, the first communication device may also include a storage module, for example, which may be implemented by a memory. The memory can be used to store computer instructions, and the processor can call and execute the computer instructions to implement the method in the first aspect or any possible implementation. The memory can be a component of the first communication device, or the first communication device may not include a memory, and the memory is located outside the first communication device, and the processor can call the computer instructions stored in the external memory. If the first communication device is a communication device, the transceiver is implemented, for example, by an antenna, a feeder, and a codec in the communication device. Alternatively, if the first communication device is a chip provided in the communication device, then the transceiver (or, a transmitter and a receiver) is, for example, a communication interface in the chip, and the communication interface is connected to a radio frequency transceiver component in the communication device to realize information reception and transmission through the radio frequency transceiver component. In the introduction of the third aspect, the first communication device is continued to be a first terminal device, and the processing module and the transceiver module are used as examples for introduction. Among them,
[0073] The processing module is configured to select a first resource for the first data from candidate resources included in the resource pool, wherein the candidate resources include resources having a reference signal received power less than or equal to a first threshold;
[0074] The processing module is further configured to select at least one resource for the first data from candidate resources other than the first resource in the candidate resources according to the first resource and a first interval, wherein the first interval includes a first time interval satisfied between the selected first resource and two adjacent resources in the at least one resource, and / or includes a first frequency interval satisfied between the selected first resource and two adjacent resources in the at least one resource;
[0075] The number of candidate resources is greater than or equal to X% of the total number of resources included in the resource pool, and the value of X satisfies the following conditions:
[0076] The value of X is set according to the number of target resources; or,
[0077] The value of X is set according to the number of target resources and the first time interval; or,
[0078] The value of X is set according to the number of target resources, the first time interval and the first frequency interval; or, the value of X is set according to the priority of the service;
[0079] The total number of the first resource and the at least one resource is less than or equal to the target number of resources.
[0080] In a possible implementation manner, the transceiver module is configured to send the first data to the second terminal device through selected resources. The selected resources, for example, include the first resource and the at least one resource.
[0081] In an optional implementation, the target number of resources is related to the QoS of the first data and / or configuration information of the resource pool.
[0082] In a possible implementation manner, the value of X is set according to the number of resources that need to be selected, including:
[0083] The larger the number of target resources is, the larger the value of X is.
[0084] In a possible implementation manner, the value of X is set according to the number of target resources and the first time interval, including:
[0085] On the premise that the number of target resources is certain, the smaller the first time interval is, the larger the value of X is.
[0086] In a possible implementation manner, the value of X is set according to the number of target resources, the first time interval, and the first frequency interval, including:
[0087] On the premise that the number of target resources and the first time interval are constant, the smaller the first frequency interval is, the larger the value of X is.
[0088] In a possible implementation, the value of X is set according to the priority of the service, including:
[0089] The higher the priority of the service, the larger the value of X.
[0090] In a possible implementation manner, the processing module is further configured to:
[0091] Determining that there are no selectable candidate resources except the first resource and the third resource among the candidate resources, and the total number of the first resource and the third resource is less than the number of target resources, wherein the third resource includes the selected resources among the candidate resources except the first resource;
[0092] selecting a second resource from among the candidate resources;
[0093] One or more resources are selected for the first data from among the candidate resources excluding the second resource according to the second resource and the first interval.
[0094] In a possible implementation manner, the transceiver module is further configured to send the first data to the second terminal device via selected resources. The selected resources, for example, include the second resource and the one or more resources.
[0095] In a possible implementation manner, the processing module is configured to select at least one resource from the candidate resources other than the first resource according to the first resource and the first interval in the following manner:
[0096] Taking the time domain position where the first resource is located as the reference time domain position, moving forward and / or backward in the time domain by a first time interval, and using the candidate resources corresponding to the moved time domain position as part or all of the at least one resource, wherein the first interval includes the first time interval; or,
[0097] Taking the frequency domain position where the first resource is located as the reference frequency domain position, moving a first frequency interval upward and / or downward in the frequency domain, and using the candidate resources corresponding to the moved frequency domain position as part or all of the at least one resource, the first interval including the first frequency interval; or,
[0098] Taking the time domain position where the first resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the first resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and use the candidate resources corresponding to the moved time domain position and frequency domain position as part or all of the at least one resource, and the first interval includes the first time interval and the first frequency interval.
[0099] In a possible implementation manner, the processing module is configured to select at least one resource from the candidate resources other than the first resource according to the first resource and the first interval in the following manner:
[0100] Taking the time domain position where the first resource is located as the reference time domain position, moving forward and / or backward for a first time interval in the time domain, selecting resources within a first range corresponding to the time domain position after the movement, wherein the selected resources are part or all of the at least one resource, the first range does not include the time domain position between the reference time domain position and the time domain position after the movement, and the first interval includes the first time interval; or,
[0101] Taking the frequency domain position where the first resource is located as the reference frequency domain position, moving the first frequency interval upward and / or downward in the frequency domain, selecting resources within a second range corresponding to the moved frequency domain position, wherein the selected resources are part or all of the at least one resource, the second range does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first frequency interval; or,
[0102] Taking the time domain position where the first resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the first resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and select resources within a third range corresponding to the moved time domain position and the moved frequency domain position, the selected resources are part or all of the at least one resource, the third range does not include the time domain position between the reference time domain position and the moved time domain position, and does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first time interval and the first frequency interval.
[0103] Regarding the technical effects of the third aspect or various implementations, reference may be made to the introduction to the technical effects of the first aspect or corresponding implementations.
[0104] In a fourth aspect, a communication device is provided, for example, the communication device is the second communication device as described above. The second communication device is used to execute the method in the second aspect or any possible implementation mode. Specifically, the second communication device may include a module for executing the method in the second aspect or any possible implementation mode, for example, including a processing module and a transceiver module. Exemplarily, the transceiver module may include a sending module and a receiving module, and the sending module and the receiving module may be different functional modules, or may also be the same functional module, but can implement different functions. Exemplarily, the second communication device is a first terminal device. Exemplarily, the first terminal device is a communication device, or a chip or other component provided in a communication device. Exemplarily, the communication device is a terminal device. The following takes the second communication device as an example of a first terminal device. For example, the transceiver module may also be implemented by a transceiver, and the processing module may also be implemented by a processor. Alternatively, the sending module may be implemented by a transmitter, and the receiving module may be implemented by a receiver, and the transmitter and the receiver may be different functional modules, or may also be the same functional module, but can implement different functions. Optionally, the second communication device may also include a storage module, for example, which may be implemented by a memory. The memory can be used to store computer instructions, and the processor can call and execute the computer instructions to implement the method in the second aspect or any possible implementation. The memory can be a component of the second communication device, or the second communication device may not include a memory, and the memory is located outside the second communication device, and the processor can call the computer instructions stored in the external memory. If the second communication device is a communication device, the transceiver is implemented, for example, by an antenna, a feeder, and a codec in the communication device. Alternatively, if the second communication device is a chip provided in the communication device, then the transceiver (or, a transmitter and a receiver) is, for example, a communication interface in the chip, and the communication interface is connected to a radio frequency transceiver component in the communication device to realize information reception and transmission through the radio frequency transceiver component. In the introduction of the fourth aspect, the second communication device is continued to be a first terminal device, and the processing module and the transceiver module are used as examples for introduction. Among them,
[0105] The processing module is configured to select a first resource for the first data from first candidate resources included in the first resource pool, wherein the first candidate resource includes a resource whose reference signal received power is less than or equal to a first threshold;
[0106] The processing module is further used to determine, based on the first resource and the first interval, that there are no selectable candidate resources in the first candidate resources except the first resource and the third resource, and that the total number of the first resource and the third resource is less than the target number of resources, wherein the third resource includes selected resources in the candidate resources except the first resource, and the first interval includes a first time interval satisfied between two adjacent resources selected from the first resource and the third resource, and / or includes a first frequency interval satisfied between two adjacent resources selected from the first resource and the third resource;
[0107] The processing module is further used to replace the first resource pool with a second resource pool;
[0108] The processing module is also used to select at least one resource from the second candidate resources included in the second resource pool except the second resource according to the second resource in the second resource pool and the first interval, and the second candidate resources include resources whose reference signal received power is less than or equal to the first threshold.
[0109] In a possible implementation manner, the transceiver module is further configured to send the first data to the second terminal device via selected resources. The selected resources, for example, include the second resource and the at least one resource.
[0110] In an optional implementation, the target number of resources is related to the QoS of the first data and / or configuration information of the first resource pool.
[0111] In one possible implementation,
[0112] The second resource and the first resource are the same resource; or,
[0113] The processing module is further configured to select the second resource from candidate resources included in the second resource pool.
[0114] In a possible implementation manner, the processing module is used to replace the first resource pool with the second resource pool in the following manner:
[0115] In the time domain, the time domain end position of the first resource pool is moved backward by a first duration to obtain the second resource pool; or,
[0116] In the time domain, a time domain start position of the first resource pool is moved backward by a second duration, and a time domain end position of the first resource pool is moved backward by a third duration, so as to obtain the second resource pool.
[0117] In a possible implementation manner, the processing module is configured to select at least one resource from candidate resources other than the second resource in the second candidate resources included in the second resource pool according to the second resource and the first interval in the following manner:
[0118] Taking the time domain position where the second resource is located as the reference time domain position, moving forward and / or backward in the time domain by a first time interval, and using the candidate resources corresponding to the moved time domain position as part or all of the at least one resource, the first interval including the first time interval; or,
[0119] Taking the frequency domain position where the second resource is located as the reference frequency domain position, moving the first frequency interval upward and / or downward in the frequency domain, and using the candidate resources corresponding to the moved frequency domain position as part or all of the at least one resource, the first interval including the first frequency interval; or,
[0120] Taking the time domain position where the second resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the second resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and use the candidate resources corresponding to the moved time domain position and frequency domain position as part or all of the at least one resource, and the first interval includes the first time interval and the first frequency interval.
[0121] In a possible implementation manner, the processing module is configured to select at least one resource from candidate resources other than the second resource in the second candidate resources included in the second resource pool according to the second resource and the first interval in the following manner:
[0122] Taking the time domain position where the second resource is located as the reference time domain position, moving forward and / or backward for a first time interval in the time domain, selecting resources within a first range corresponding to the time domain position after the movement, wherein the selected resources are part or all of the at least one resource, the first range does not include the time domain position between the reference time domain position and the time domain position after the movement, and the first interval includes the first time interval; or,
[0123] Taking the frequency domain position where the second resource is located as the reference frequency domain position, moving the first frequency interval upward and / or downward in the frequency domain, selecting resources within a second range corresponding to the moved frequency domain position, wherein the selected resources are part or all of the at least one resource, the second range does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first frequency interval; or,
[0124] Taking the time domain position where the second resource is located as the reference time domain position, move forward and / or backward in the time domain for a first time interval, and taking the frequency domain position where the second resource is located as the reference frequency domain position, move up and / or down in the frequency domain for a first frequency interval, and select resources within a third range corresponding to the moved time domain position and the moved frequency domain position, the selected resources are part or all of the at least one resource, the third range does not include the time domain position between the reference time domain position and the moved time domain position, and does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first time interval and the first frequency interval.
[0125] Regarding the technical effects of the fourth aspect or various implementations, reference may be made to the introduction to the technical effects of the second aspect or corresponding implementations.
[0126] In a fifth aspect, a communication device is provided, which is, for example, the first communication device as described above. The communication device includes one or more processors. Optionally, it may also include a memory for storing computer instructions. The one or more processors and the memory are coupled to each other to implement the method described in the first aspect or various possible implementations. Alternatively, the first communication device may not include a memory, and the memory may be located outside the first communication device. Optionally, the first communication device may also include a communication interface for communicating with other devices or equipment. The processor, the memory, and the communication interface are coupled to each other to implement the method described in the first aspect or various possible implementations. For example, when the processor executes the computer instructions stored in the memory, the first communication device executes the method in the first aspect or any possible implementation. Exemplarily, the first communication device is a first terminal device. Exemplarily, the first terminal device is a communication device, or a chip or other component provided in a communication device. Exemplarily, the communication device is a terminal device.
[0127] Wherein, if the first communication device is a communication device, the communication interface is implemented, for example, by a transceiver (or a transmitter and a receiver) in the communication device, for example, the transceiver is implemented by an antenna, a feeder, and a codec, etc. in the communication device. Alternatively, if the first communication device is a chip provided in the communication device, the communication interface is, for example, an input / output interface of the chip, such as an input / output pin, etc., and the communication interface is connected to a radio frequency transceiver component in the communication device to implement information transmission and reception through the radio frequency transceiver component.
[0128] In a sixth aspect, a communication device is provided, which is, for example, the second communication device as described above. The communication device includes one or more processors. Optionally, it may also include a memory for storing computer instructions. The one or more processors and the memory are coupled to each other to implement the method described in the second aspect or various possible implementations. Alternatively, the second communication device may not include a memory, and the memory may be located outside the second communication device. Optionally, the second communication device may also include a communication interface for communicating with other devices or equipment. The processor, the memory, and the communication interface are coupled to each other to implement the method described in the second aspect or various possible implementations. For example, when the processor executes the computer instructions stored in the memory, the second communication device executes the method in the second aspect or any possible implementation. Exemplarily, the second communication device is a first terminal device. Exemplarily, the first terminal device is a communication device, or a chip or other component provided in a communication device. Exemplarily, the communication device is a terminal device.
[0129] Wherein, if the second communication device is a communication device, the communication interface is implemented, for example, by a transceiver (or a transmitter and a receiver) in the communication device, for example, the transceiver is implemented by an antenna, a feeder, and a codec, etc. in the communication device. Alternatively, if the second communication device is a chip provided in the communication device, the communication interface is, for example, an input / output interface of the chip, such as an input / output pin, etc., and the communication interface is connected to a radio frequency transceiver component in the communication device to implement information transmission and reception through the radio frequency transceiver component.
[0130] In a seventh aspect, a communication system is provided, which includes the communication device described in the third aspect or the communication device described in the fifth aspect.
[0131] In an eighth aspect, a communication system is provided, which includes the communication device described in the fourth aspect or the communication device described in the sixth aspect.
[0132] In the ninth aspect, a computer-readable storage medium or a non-volatile storage medium is provided, wherein the computer-readable storage medium or the non-volatile storage medium is used to store computer instructions or programs. When the computer instructions or programs are executed on a computer, the computer executes the method described in the first aspect or any possible implementation manner.
[0133] In the tenth aspect, a computer-readable storage medium or a non-volatile storage medium is provided, wherein the computer-readable storage medium or the non-volatile storage medium is used to store computer instructions or programs. When the computer instructions or programs are executed on a computer, the computer executes the method described in the second aspect or any possible implementation manner.
[0134] In an eleventh aspect, a computer program product comprising instructions is provided, wherein the computer program product is used to store computer instructions, and when the computer instructions are executed on a computer, the computer executes the method described in the first aspect or any possible implementation manner.
[0135] In a twelfth aspect, a computer program product comprising instructions is provided, wherein the computer program product is used to store computer instructions, and when the computer instructions are executed on a computer, the computer executes the method described in the above second aspect or any possible implementation manner.
[0136] In the embodiment of the present application, the value of X can be set according to different factors, and try to meet the needs of resource selection, improve the efficiency of resource selection, and reduce the complexity of the resource selection process. And try to select enough resources to avoid some transmission processes from being unable to proceed due to lack of resources, thereby improving the success rate of transmission. In addition, in the embodiment of the present application, the value of X is no longer fixed, but can be set according to different needs, making the resource selection process more flexible. BRIEF DESCRIPTION OF THE DRAWINGS
[0137] Figure 1 Several schematic diagrams of V2X;
[0138] Figure 2 This is a schematic diagram of the dynamic mode of mode-1 in the base station allocation mode;
[0139] Figure 3 A schematic diagram of frequency domain resources corresponding to a time slot;
[0140] Figure 4 A schematic diagram of reserved resources for terminal devices;
[0141] Figure 5 A schematic diagram of candidate resources in the resource selection window;
[0142] Figure 6 A schematic diagram of an application scenario of an embodiment of the present application;
[0143] Figure 7 A flowchart of a first resource selection method provided in an embodiment of the present application;
[0144] Figure 8 This is a flowchart of a resource selection method of a first terminal device if the first frequency interval is 0 in an embodiment of the present application;
[0145] FIG. 9A to FIG. 9B A schematic diagram of resource selection by a first terminal device when the number of target resources is 2 in an embodiment of the present application;
[0146] Figure 10A to Figure 10B A schematic diagram of resource selection by the first terminal device when the number of target resources is 3 in an embodiment of the present application;
[0147] Figure 11A to Figure 11B A schematic diagram of resource selection by a first terminal device when the number of target resources is 4 in an embodiment of the present application;
[0148] Fig.12 This is a flowchart of a resource selection method of a first terminal device if the first frequency interval is 0 in an embodiment of the present application;
[0149] Fig.13 A schematic diagram of resource selection by the first terminal device when the number of target resources is 3 in an embodiment of the present application;
[0150] Fig.14 A flowchart of a second resource selection method provided in an embodiment of the present application;
[0151] Fig.15 A schematic diagram of a method of replacing a resource pool by a first terminal device in an embodiment of the present application;
[0152] Fig.16 This is a flowchart of a resource selection method of a first terminal device if the first frequency interval is 0 in an embodiment of the present application;
[0153] Fig.17 A schematic diagram of resource selection by a first terminal device when the number of target resources is 4 in an embodiment of the present application;
[0154] Fig.18 This is a flowchart of a resource selection method of a first terminal device if the first frequency interval is 0 in an embodiment of the present application;
[0155] Fig.19 A schematic diagram of resource selection by a first terminal device when the number of target resources is 4 in an embodiment of the present application;
[0156] Fig. 20 A schematic block diagram of a first terminal device provided in an embodiment of the present application;
[0157] Fig.21 A schematic block diagram of a second first terminal device provided in an embodiment of the present application;
[0158] Fig. 22 A schematic block diagram of a communication device provided in an embodiment of the present application;
[0159] Fig.23 Another schematic block diagram of a communication device provided in an embodiment of the present application;
[0160] Fig.24 Another schematic block diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0161] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0162] Below, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
[0163] 1) Terminal equipment, including equipment that provides voice and / or data connectivity to users, specifically, including equipment that provides voice to users, or including equipment that provides data connectivity to users, or including equipment that provides voice and data connectivity to users. For example, it may include a handheld device with wireless connection function, or a processing device connected to a wireless modem. The terminal equipment can communicate with the core network via the radio access network (RAN), exchange voice or data with the RAN, or exchange voice and data with the RAN. The terminal device may include user equipment (UE), wireless terminal equipment, mobile terminal equipment, device-to-device (D2D) terminal equipment, vehicle to everything (V2X) terminal equipment, machine-to-machine / machine-type communications (M2M / MTC) terminal equipment, Internet of Things (IoT) terminal equipment, subscriber unit, subscriber station, mobile station, remote station, access point (AP), remote terminal, access terminal, user terminal, user agent, or user equipment, etc. For example, it may include a mobile phone (or "cellular" phone), a computer with a mobile terminal device, a portable, pocket-sized, handheld, or computer-built-in mobile device, etc. For example, personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDA), etc. It also includes limited devices, such as devices with low power consumption, or devices with limited storage capacity, or devices with limited computing power, etc. For example, it includes information sensing devices such as barcodes, radio frequency identification (RFID), sensors, global positioning systems (GPS), laser scanners, etc.
[0164] As an example but not limitation, in the embodiments of the present application, the terminal device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices or smart wearable devices, etc., which are a general term for the application of wearable technology to intelligently design and develop wearable devices for daily wear, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-size, and independent of smartphones to achieve complete or partial functions, such as smart watches or smart glasses, etc., as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets, smart helmets, and smart jewelry for vital sign monitoring.
[0165] The various terminal devices introduced above, if located on a vehicle (eg, placed in or installed in a vehicle), can be considered as vehicle-mounted terminal devices, which are also called on-board units (OBU).
[0166] In the embodiment of the present application, the terminal device may also include a relay. Alternatively, it can be understood that anything that can communicate data with the base station can be regarded as a terminal device.
[0167] In the embodiment of the present application, the device for realizing the function of the terminal device may be a terminal device, or a device capable of supporting the terminal device to realize the function, such as a chip system, which may be installed in the terminal device. In the embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices. In the technical solution provided in the embodiment of the present application, the technical solution provided in the embodiment of the present application is described by taking the terminal device as an example in which the device for realizing the function of the terminal is a terminal device.
[0168] 2) Network equipment, for example, including access network (AN) equipment, such as base stations (e.g., access points), which can refer to equipment in the access network that communicates with wireless terminal devices through one or more cells over the air interface, or, for example, a network device in a V2X technology is a road side unit (RSU). The base station can be used to convert received air frames to and from Internet protocol (IP) packets, acting as a router between the terminal device and the rest of the access network, where the rest of the access network may include an IP network. The RSU can be a fixed infrastructure entity that supports V2X applications and can exchange messages with other entities that support V2X applications. The network equipment can also coordinate the attribute management of the air interface. For example, the network device may include an evolved base station (NodeB or eNB or e-NodeB, evolutional Node B) in an LTE system or long term evolution-advanced (LTE-A), or may also include a next generation node B (next generation node B, gNB) in a fifth generation mobile communication technology (the 5th generation, 5G) NR system (also referred to as an NR system) or may also include a centralized unit (CU) and a distributed unit (DU) in a cloud access network (Cloud radio access network, Cloud RAN) system, and the embodiments of the present application are not limited.
[0169] The network equipment may also include core network equipment, which may include, for example, access and mobility management function (AMF), etc. Since the embodiments of the present application mainly involve access networks, the network equipment described herein refers to access network equipment unless otherwise specified.
[0170] In the embodiment of the present application, the device for realizing the function of the network device may be a network device, or may be a device capable of supporting the network device to realize the function, such as a chip system, which may be installed in the network device. In the technical solution provided in the embodiment of the present application, the technical solution provided in the embodiment of the present application is described by taking the device for realizing the function of the network device as an example that the network device is used as the device.
[0171] 3) V2X, which is the interconnection between vehicles and the outside world, is the foundation and key technology for future smart cars, autonomous driving, and intelligent transportation systems. V2X will optimize the specific application requirements of V2X based on the existing device-to-device (D2D) technology, and needs to further reduce the access delay of V2X devices and solve resource conflicts.
[0172] V2X specifically includes several application requirements, including direct communication between vehicles (vehicle-to-vehicle, V2V), vehicles and roadside infrastructure (vehicle-to-infrastructure, V2I), vehicles and pedestrians (vehicle-to-pedestrian, V2P), and vehicle-to-network (vehicle-to-network, V2N) communication interactions. Figure 1 As shown. V2V refers to the communication between vehicles; V2P refers to the communication between vehicles and people (including pedestrians, cyclists, drivers, or passengers); V2I refers to the communication between vehicles and network devices, such as RSU. There is also a V2N that can be included in V2I. V2N refers to the communication between vehicles and base stations / networks.
[0173] Among them, V2P can be used to give safety warnings to pedestrians or non-motor vehicles on the road. Through V2I, vehicles can communicate with roads and even other infrastructure, such as traffic lights and roadblocks, to obtain road management information such as traffic light signal timing. V2V can be used for information exchange and reminders between vehicles. The most typical application is for anti-collision safety systems between vehicles. V2N is the most widely used form of vehicle networking. Its main function is to enable vehicles to connect to cloud servers through mobile networks and use navigation, entertainment, or anti-theft application functions provided by cloud servers.
[0174] In V2X, the communication is mainly between terminal devices. For the transmission mode between terminal devices, the current standard protocol supports broadcast mode, multicast mode, and unicast mode.
[0175] Broadcast mode: The broadcast mode means that the terminal device as the transmitter uses the broadcast mode to send data, and multiple terminal devices can receive the sidelink control information (SCI) or sidelink shared channel (SSCH) from the transmitter.
[0176] In the sidelink, the way to ensure that all terminal devices parse the control information from the transmitter is that the transmitter does not scramble the control information, or the transmitter scrambles the control information using a scrambling code known to all terminal devices.
[0177] Multicast mode: The multicast mode is similar to broadcast transmission. The terminal device as the transmitter uses the broadcast mode to send data. A group of terminal devices can parse SCI or SSCH.
[0178] Unicast mode: Unicast mode is a terminal device sending data to another terminal device, and the other terminal devices do not need or cannot parse the data.
[0179] 4) The terms "system" and "network" in the embodiments of the present application can be used interchangeably. "At least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0180] Furthermore, unless otherwise specified, ordinal numbers such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the size, content, order, timing, priority or importance of multiple objects. For example, the first resource and the second resource are only used to distinguish different resources, and do not indicate the difference in priority or importance of the two resources.
[0181] The foregoing introduces some terminology concepts involved in the embodiments of the present application. The following introduces the technical features involved in the embodiments of the present application.
[0182] With the development of wireless communication technology, people's demand for high data rate and user experience is growing. At the same time, people's demand for proximity services to understand and communicate with people or things around them is gradually increasing, so D2D technology came into being. The application of D2D technology can reduce the burden on cellular networks, reduce the battery power consumption of user devices, increase data rates, and meet the needs of proximity services. D2D technology allows multiple UEs that support D2D functions to conduct direct discovery and direct communication with or without network infrastructure. In view of the characteristics and advantages of D2D technology, the application scenario of the Internet of Vehicles based on D2D technology has been proposed, but due to security considerations, the latency requirements in this scenario are very high, which cannot be achieved with existing D2D technology.
[0183] Therefore, under the LTE technology network proposed by the 3rd generation partnership project (3GPP), V2X vehicle networking technology was proposed. V2X communication refers to the communication between vehicles and anything outside, including V2V, V2P, V2I, and V2N. Figure 1 .
[0184] V2X communication is aimed at high-speed equipment represented by vehicles. It is the basic technology and key technology for applications in scenarios with very high communication latency requirements in the future, such as smart cars, autonomous driving, and intelligent transportation systems. LTE-V2X communication can support communication scenarios with and without network coverage, and its resource allocation method can adopt network access equipment scheduling mode, such as Evolved Universal Terrestrial Radio Access Network Node B (E-UTRAN Node B, eNB) scheduling mode and UE self-selection mode. Based on V2X technology, vehicle user equipment (vehicle UE, V-UE) can send some of its own information, such as location, speed, or intention (turning, merging, or reversing) to other V-UEs in the surrounding area in a periodic or non-periodic triggering manner. Similarly, V-UE will also receive information from surrounding users in real time.
[0185] With the development of 5G NR technology in the 3GPP standards organization, 5G NR-V2X will develop further, for example, it can support lower transmission latency, more reliable communication transmission, higher throughput, better user experience, etc., to meet the needs of a wider range of application scenarios.
[0186] In NR-V2X, there are two main modes for sidelink resource allocation, one is the base station resource allocation mode (mode-1), and the other is the user-selected resource mode (mode-2). Mode 1 is mainly used for V2X communication under network coverage. The base station centrally allocates resources based on the BSR report of the terminal device. The allocation of resources in mode-1 can be allocated in a dynamic mode or a pre-configured mode. The resources allocated by the base station include initial resources or retransmission resources, or both initial resources and retransmission resources.
[0187] In the dynamic mode of mode-1, the base station allocates resources to the transmitting terminal device through downlink control information (DCI). After receiving the DCI, the transmitting terminal device sends data to the receiving terminal device on the resources. After decoding the data from the transmitting terminal device, the receiving terminal device sends feedback information corresponding to the data to the transmitting terminal device, such as a positive acknowledgment (ACK) or a negative acknowledgment (NACK). The transmitting terminal device then forwards the feedback information to the base station. For more information, please refer to Figure 2 .exist Figure 2 In the present invention, at time t1, the transmitting terminal device receives the DCI from the base station and decodes the DCI; at time t2, the transmitting terminal device sends a physical sidelink shared channel (PSSCH) or a physical sidelink control channel (PSCCH) to the receiving terminal device; at time t3, the receiving terminal device sends a hybrid automatic repeat request (HARQ) information (i.e., feedback information) corresponding to the PSSCH or PSCCH to the transmitting terminal device; at time t4, the transmitting terminal device forwards the HARQ information to the base station.
[0188] In the pre-configuration mode of mode-1, the base station will configure the relevant time-frequency resources for sidelink transmission through high-level signaling. The transmitting terminal device can directly send sidelink data on the resources configured by the high-level signaling (type (type) -1); or, the base station will send DCI to activate the configured resources. After receiving the DCI, the transmitting terminal device can send sidelink data on the resources configured by the high-level signaling (type-2). After receiving the sidelink data from the transmitting terminal device, the receiving terminal device decodes the sidelink data and then sends the HARQ information (i.e., feedback information) of the sidelink data to the transmitting terminal device. The transmitting terminal device then forwards the HARQ information from the receiving terminal device to the base station.
[0189] In mode-2, the transmission resources of the transmitting terminal device do not depend on the base station. This mode is not limited by network coverage. The transmitting terminal device can communicate in this mode regardless of whether there is network coverage. The user-selected resources include initial resources or retransmission resources, or both.
[0190] In mode-2, the transmitting terminal device selects resources within the resource selection window to send data based on the result of resource listening. Assuming that the transmitting terminal device triggers resource selection at time slot n, the resource listening window can be defined as T time slots before the resource selection is triggered. The resource selection window is the time slot corresponding to [n+Q1, n+Q2] after the resource selection is triggered. The resource selection window includes multiple time slots. For a time slot, the maximum number of sub-channels included in the frequency domain resources corresponding to the time slot is N. subCH , the sub-channel set corresponding to the sub-channel included in the frequency domain resource corresponding to the time slot is The set of all resources corresponding to each time slot in the resource selection window [n+Q1, n+Q2] is defined as Each resource is a set of length L subCH The continuous subchannel set, L subCH The number of subchannels occupied by the PSSCH and PSCCH corresponding to the data to be transmitted. In the resource selection window [n+Q1, n+Q2], the total number of resources corresponding to each time slot is N subCH- L subCH +1.
[0191] For example, you can refer to Figure 3 , which is a schematic diagram of the frequency domain resources corresponding to a time slot. Figure 3 Boxes 0 to 8 in the figure represent all sub-channels corresponding to a time slot, that is, N subCH =8, the subchannel set corresponding to these 8 subchannels is The number of sub-channels occupied by the PSSCH corresponding to the data to be transmitted is L subCH , L subCH For example, if it is 2, the total number of resources corresponding to the time slot is 8-2+1=7, which is Figure 3 The set of resources 0 to 7 in the time slot corresponding to the 7 resources is
[0192] The following describes the resource selection process of the sending terminal device in mode-2.
[0193] Step 1: The sending terminal device listens to the SCI sent by other terminal devices in the resource pool within the resource listening window.
[0194] Step 2: If the monitored SCI includes resources that have been reserved by other terminal devices, and the reserved resources are within the resource selection window [n+Q1, n+Q2], the transmitting terminal device measures the resources corresponding to the reserved resources, and obtains the RSRP of the resources through the measurement. Figure 4 The time window on the left represents the resource listening window, and the time window on the right represents the resource selection window. UE1 in the resource listening window represents the resources used by UE1, UE2 represents the resources used by UE2, and UE3 represents the resources used by UE3. UE1 in the resource selection window represents the reserved resources of UE1, UE2 represents the reserved resources of UE2, and UE3 represents the reserved resources of UE3.
[0195] If the measured RSRP is greater than the preset RSRP threshold Th RSRP , the sending terminal device excludes the resource from the resource selection window, otherwise, the sending terminal device can select the resource from the resource selection window, and the resource can be called a candidate resource.
[0196] Among them, Th RSRP It is a function of the priority level corresponding to the data indicated in the received SCI and the priority level corresponding to the data to be sent by the transmitting terminal device.
[0197] Step 3: If the number of candidate resources in the resource selection window is less than X% of all resources included in the resource selection window, then Th RSRP Increase by 3dB and repeat step 2.
[0198] Step 4: The sending terminal device selects a resource from the candidate resources.
[0199] It can be seen that in step 3 of the resource selection process of mode-2, if the number of candidate resources in the resource selection window is less than X% of all resources, the preset Th RSRP Increase by 3dB, and the value of X is preset and fixed to 20. For example, when 30% of the resources are excluded from the resource selection window, the number of remaining candidate resources is 70% of all resources, which is greater than the preset 20%. The transmitting terminal device can finally select resources from 70% of all resources. When 90% of the resources are excluded from the resource selection window, the number of remaining candidate resources is 10% of all resources, which is less than the preset 20%, then the preset Th needs to be increased. RSRP , until the number of remaining candidate resources is greater than 20% of all candidate resources, the transmitting terminal device can finally select transmission resources from 20% of all resources.
[0200] The value of X above corresponds to the lower limit ratio of the resources actually selected by the transmitting terminal device, and the resources include initial transmission resources and / or retransmission resources, the total number of which is N. MAX Here X = 20, which is the same as the value of X in LTE-V2X. In LTE-V2X, only blind retransmission with a maximum of two transmissions is supported, that is, one initial transmission plus one retransmission. MAX =2. When the transmitting terminal device selects a resource, it first selects a resource and then selects another resource from the remaining candidate resources. The time interval between the two resources in the time domain is a preset T gap , in time slots. If the transmitting terminal device cannot find a time interval T that satisfies the preset time interval T in the remaining candidate resources, gap If another transmission resource is required, the sending terminal device only performs the initial transmission and does not retransmit.
[0201] In the case of fewer selected resources, X=20 can generally meet the demand. However, in NR-V2X, multiple retransmissions may be performed, and more resources need to be selected. If X is fixed to 20, the preset RSRP threshold Th will be adjusted only when the number of candidate resources remaining in the resource selection window is less than 20% of all candidate resources included in the resource selection window. RSRP , and even if the RSRP threshold Th is adjusted RSRP , the number of selectable resources is also limited. In other words, due to the value of X, the number of selectable resources is always limited, which reduces the efficiency of resource selection.
[0202] For example, the maximum number of subchannels N corresponding to each time slot in the resource selection window subCH is 8, and the corresponding subchannel set is The number of sub-channels occupied by the PSSCH corresponding to the data to be transmitted by the transmitting terminal device L subCH is 2, and the set of all resources in each time slot is The length of the resource selection window is 8 time slots, and the number of all resources corresponding to each time slot is 56. Figure 5 , where the squares with slashes are excluded resources, totaling 43, and the remaining optional resources are 13, accounting for 23% of all resources, which is greater than 20%. Assume that the number of resources that need to be selected is N MAX =4, that is, one initial transmission plus three retransmissions, and the time interval between two adjacent resources is T gap is 2, the frequency interval is F gap Since the excluded 43 resources are randomly distributed among all 56 resources, it is impossible to select 4 time intervals T from the remaining 13 resources. gap is 2 and the frequency interval is F gapThe resource is 0.
[0203] In view of this, a technical solution of an embodiment of the present application is provided. In an embodiment of the present application, the number of available candidate resources included in the resource pool is greater than or equal to X% of the total number of candidate resources included in the resource pool, and the value of X can be set according to different factors, for example, it can be set according to the number of resources to be selected as needed, or it can be set according to the number of resources to be selected as needed and the first time interval, or it can be set according to the number of resources to be selected as needed, the first time interval and the first frequency interval, or it can also be set according to the priority of the service. For example, when the number of resources to be selected is large, the value of X can be set to be large, or, when the priority of the service is high, the value of X can be set to be large, and so on. If the value of X is large, there are more optional resources, which can meet the needs of resource selection as much as possible, improve the efficiency of resource selection, and reduce the complexity of the resource selection process. And try to select enough resources to avoid some transmission processes from being unable to proceed due to lack of resources, thereby improving the success rate of transmission. In addition, in an embodiment of the present application, the value of X is no longer fixed, but can be set according to different needs, so that the resource selection process is more flexible.
[0204] The technical solution provided in the embodiment of the present application can be applied to D2D scenarios, which can be NR D2D scenarios or LTE D2D scenarios, etc., or can be applied to V2X scenarios, which can be NR V2X scenarios or LTE V2X scenarios, etc. For example, it can be applied to vehicle networking, such as V2X, LTE-V, V2V, etc., or can be used in the fields of intelligent driving, intelligent networked vehicles, etc. Or it can also be applied to other scenarios or other communication systems, for example, it can also be used for resource selection of Uu interface of LTE system or NR system, and there is no specific limitation.
[0205] The following describes the network architecture used in the embodiments of this application. Figure 6 , which is a network architecture used in the embodiments of the present application.
[0206] Figure 6 The network device and two terminal devices are included, namely, terminal device 1 and terminal device 2. Both terminal devices can be connected to the network device, or only terminal device 1 can be connected to the network device, and terminal device 2 is not connected to the network device, or both terminal devices are not connected to the network device. The two terminal devices can communicate with each other through sidelink. Figure 6 For example, only terminal device 1 is connected to the network device. Figure 6 The number of terminal devices is only an example. In actual applications, the network device can provide services for multiple terminal devices.
[0207] Figure 6 The network device in the system is, for example, an access network device, such as a base station. The access network device corresponds to different devices in different systems, for example, in the fourth generation mobile communication technology (the 4th generation, 4G) system, it may correspond to an eNB, in the 5G system, it may correspond to an access network device in 5G, such as a gNB, or it may be an access network device in a subsequently evolved communication system.
[0208] in, Figure 6 The terminal device in the example is a vehicle-mounted terminal device or a vehicle, but the terminal device in the embodiments of the present application is not limited thereto.
[0209] Next, the technical solution provided by the embodiments of the present application will be described in conjunction with the accompanying drawings.
[0210] This application embodiment provides a first resource selection method, see Figure 7 , which is a flowchart of the method. In the following introduction, the method is applied to Figure 6 Take the network architecture shown as an example. In addition, the method can be performed by two communication devices, such as a first communication device and a second communication device. Among them, the first communication device or the second communication device can be a network device or a communication device that can support the network device to implement the functions required by the method, or can be a terminal device or a communication device that can support the terminal device to implement the functions required by the method, and of course can also be other communication devices, such as a chip system. And there is no restriction on the implementation method of the first communication device or the second communication device. For example, the two communication devices can be implemented in the same form, such as both implemented in the form of devices, or the two communication devices can also be implemented in different forms, such as the first communication device is implemented in the form of a device, and the second communication device is implemented in the form of a chip system, and so on. Among them, the network device is, for example, a base station.
[0211] For the sake of convenience, the following takes the method being performed by a terminal device and a terminal device as an example, that is, the first communication device is a terminal device (for example, referred to as a first terminal device) and the second communication device is also a terminal device (for example, referred to as a second terminal device) as an example. Figure 6 Taking the network architecture shown in FIG. 1 as an example, therefore, the first terminal device described below can implement Figure 6 The functions of the terminal device 1 in the network architecture shown in the figure, the second terminal device described below can realize Figure 6 Functions of the terminal device 2 in the network architecture shown. For example, the first terminal device is a signal sending end, and the second terminal device is a signal receiving end.
[0212] S71. The first terminal device selects a first resource for first data from candidate resources included in a resource pool, where the candidate resources include resources whose reference signal received power is less than or equal to a first threshold.
[0213] The first terminal device has data to be transmitted, such as first data, and the first terminal device can select resources for the first data from the candidate resources included in the resource pool. The candidate resources mentioned here refer to optional resources in the resources included in the resource pool, for example, resources whose RSRP measured by the first terminal device is less than or equal to a first threshold. The first threshold is, for example, Th as described above. RSRP , or other thresholds. The resource pool is, for example, the resource selection window mentioned above.
[0214] In the embodiment of the present application, the number of candidate resources may be greater than or equal to X% of the number of all resources included in the resource pool. For example, X may be configured by a network device, or may be preconfigured in the first terminal device, or may be specified by a protocol.
[0215] In the embodiment of the present application, the value of X may satisfy different conditions, for example, it may satisfy one or more of the following first condition, second condition, third condition or fourth condition. These four conditions are introduced below with examples.
[0216] 1. The value of X satisfies the first condition.
[0217] The value of X can be set according to the target number of resources. The target number of resources may refer to the total number of resources that need to be selected to transmit the first data. Alternatively, more resources may be required to transmit the first data, and the resource pool may be limited. For example, for a resource pool, a maximum of H resources are selected at a time, H is an integer greater than or equal to 0, and H is less than the total number of resources required for the first data, then multiple selections may be required to meet the transmission requirements of the first data. If this is the case, the target number of resources described in the embodiment of the present application may also refer to the total number of resources selected at one time. For example, the first data needs to be initially transmitted once and retransmitted up to three times, then the target number of resources for the first data can be 4.
[0218] As an optional method, the target number of resources for the first data may be related to the quality of service (QoS) of the first data, or may be related to the configuration information of the resource pool, or may be related to the QoS of the first data and the configuration information of the resource pool. Among them, being related to the QoS of the first data may also be understood as being related to the QoS of the service corresponding to the first data. The configuration information of the resource pool is, for example, determined by a network device, which may be sent to a terminal device by the network device, or may be specified by a protocol. The configuration information of the resource pool may indicate the maximum number of resources that the resource pool can select at one time, and the resource pool is the resource pool that selects resources for the first data. For example, for a resource pool, a maximum of H resources may be selected at one time, and the configuration information of the resource pool may indicate the value of H.
[0219] For example, the larger the number of target resources, the larger the value of X. Please refer to Table 1 for an example of the corresponding relationship between the number of target resources and the value of X.
[0220] Table 1
[0221] Number of target resources X 2 20 3 30 4 40 >4 50
[0222] For example, in Table 1, when the number of target resources is 2, the value of X can be 20, and when the number of target resources is 3, the value of X can be 30. Of course, Table 1 is only an example, and under the first condition, as long as the value of X is set according to the number of target resources, the correspondence between the number of target resources and the value of X is not limited to the several corresponding relationships shown in Table 1.
[0223] The larger the number of target resources, the more resources need to be selected. In this case, the value of X can be increased to make the number of candidate resources larger. The more candidate resources there are, the larger the range of selection is, and the higher the probability of selecting resources is. In this way, the demand for resource selection can be met as much as possible, the efficiency of resource selection is improved, and the complexity of the resource selection process is reduced. In addition, sufficient resources are selected as much as possible to avoid some transmission processes being unable to proceed due to lack of resources, thereby improving the success rate of transmission.
[0224] 2. The value of X satisfies the second condition.
[0225] The value of X can be set according to the number of target resources and the first time interval. The first time interval can refer to the time interval between two adjacent resources in the resources to be selected. For example, the first time interval can be T as described above. gap , or it may be the time interval set in the embodiment of the present application.
[0226] For example, when the number of target resources is constant, the smaller the first time interval, the larger the value of X. Please refer to Table 2 for an example of the corresponding relationship between the number of target resources, the first time interval and the value of X.
[0227] Table 2
[0228] Number of target resources First time interval X 2 <![CDATA[≤T c ]]> 30 2 <![CDATA[>T c ]]> 20 3 <![CDATA[≤T c ]]> 40 3 <![CDATA[>T c ]]> 30 4 <![CDATA[≤T c ]]> 50 4 <![CDATA[>T c ]]> 40 >4 <![CDATA[≤T c ]]> 60 >4 <![CDATA[>T c ]]> 50
[0229] In Table 2, T c The value range of T is, for example, {3,4,5}. c The unit is, for example, a time slot, but is not limited thereto. For example, in Table 2, when the number of target resources is 2, if the first time interval is less than or equal to T c , then the value of X can be 30, and if the first time interval is greater than T c , then the value of X can be 20. It can be seen that, when the number of target resources is constant, the smaller the first time interval, the larger the value of X. Of course, Table 2 is only an example. Under the first condition, as long as the value of X is set according to the number of target resources and the first time interval, the number of target resources, the first time interval and the value of X are not limited to the several corresponding relationships shown in Table 2.
[0230] When the number of target resources is constant, the smaller the first time interval is, the more resources need to be selected. In this case, the value of X can be increased to make the number of candidate resources larger. The more candidate resources there are, the larger the range that can be selected, and the higher the probability of selecting resources. In this way, the demand for resource selection can be met as much as possible, the efficiency of resource selection is improved, and the complexity of the resource selection process is reduced. In addition, sufficient resources are selected as much as possible to avoid some transmission processes being unable to proceed due to lack of resources, thereby improving the success rate of transmission.
[0231] 3. The value of X satisfies the third condition.
[0232] The value of X may be set according to the number of target resources, the first time interval and the first frequency interval. The first frequency interval may refer to a frequency interval satisfied between two adjacent resources in the resources to be selected.
[0233] For example, when the number of target resources and the first time interval are both constant, the smaller the first frequency interval, the larger the value of X. Please refer to Table 3 for an example of the corresponding relationship between the number of target resources, the first time interval, the first frequency interval and the value of X.
[0234] Table 3
[0235]
[0236] In Table 3, Tc The value range of T is, for example, {3,4,5}. c The unit is, for example, time slot, F c The value range of F is, for example, {3,4,5}. c The unit is, for example, a subchannel or a resource block (RB), but is not limited thereto. For example, in Table 3, when the number of target resources is 2 and the first time interval is less than or equal to T c When the first frequency interval is less than or equal to F c , then the value of X can be 35, and if the first time interval is greater than F c , then the value of X can be 30. It can be seen that, when the number of target resources and the first time interval are constant, the smaller the first frequency interval, the larger the value of X. Of course, Table 3 is only an example. Under the first condition, as long as the value of X is set according to the number of target resources, the first time interval and the first frequency interval, the number of target resources, the first time interval, the first frequency interval and the value of X are not limited to the several corresponding relationships shown in Table 3.
[0237] When the number of target resources and the first time interval are constant, the smaller the first frequency interval is, the more resources need to be selected. In this case, the value of X can be increased to increase the number of candidate resources. The more candidate resources there are, the larger the range that can be selected, and the higher the probability of selecting resources. In this way, the demand for resource selection can be met as much as possible, the efficiency of resource selection is improved, and the complexity of the resource selection process is reduced. In addition, sufficient resources are selected as much as possible to avoid some transmission processes being unable to proceed due to lack of resources, thereby improving the success rate of transmission.
[0238] 4. The value of X satisfies the fourth condition.
[0239] The value of X can be set according to the priority of the service. For example, the higher the priority of the service, the larger the value of X can be. Please refer to Table 4 for an example of the corresponding relationship between the priority of the service and the value of X.
[0240] Table 4
[0241]
[0242]
[0243] For example, in Table 4, when the priority of the service is high, the value of X may be 40, and when the priority of the service is low, the value of X may be 20. Of course, Table 4 is only an example, and under the first condition, as long as the value of X is set according to the priority of the service, the correspondence between the priority of the service and the value of X is not limited to the several correspondences shown in Table 4.
[0244] The higher the priority of the service, the more we need to ensure the success rate of resource selection. In this case, we can increase the value of X so that there are more candidate resources. The more candidate resources there are, the larger the range of choices is, and the higher the probability of selecting resources is. In this way, we can try to meet the needs of resource selection, improve the efficiency of resource selection, and reduce the complexity of the resource selection process. We also try to select enough resources to avoid some transmission processes being unable to proceed due to lack of resources, thereby improving the success rate of transmission.
[0245] In addition to the above four conditions, the value of X may also satisfy other conditions, or the value of X may also be set according to other factors, which are not specifically limited.
[0246] In an embodiment of the present application, when the first terminal device needs to select a resource, it can first select a resource, such as a first resource. After selecting the first resource, the first resource can be used as a reference to select subsequent resources.
[0247] S72: The first terminal device selects at least one resource for the first data from the candidate resources other than the first resource in the candidate resources according to the first resource and the first interval.
[0248] Among them, the first interval may include the first time interval as described above, or include the first frequency interval as described above, or include the first time interval and the first frequency interval. The first time interval may refer to the time interval satisfied between two adjacent resources in the resources to be selected. Taking the first terminal device selecting the first resource and at least one resource as an example, the first time interval may refer to the time interval satisfied between the first resource and two adjacent resources in the at least one resource; the first frequency interval may refer to the frequency interval satisfied between two adjacent resources in the resources to be selected. Taking the first terminal device selecting the first resource and at least one resource as an example, the first frequency interval may refer to the frequency interval satisfied between the first resource and two adjacent resources in the at least one resource.
[0249] In an embodiment of the present application, if the total number of the first resource and at least one resource is greater than or equal to the target number of resources, the first terminal device can stop the resource selection process and can use the selected resources to send the first data. Alternatively, if the total number of the first resource and at least one resource is less than the target number of resources, and there are candidate resources that meet the selection conditions among the remaining candidate resources (the so-called selection conditions can be understood as the first interval), the first terminal device can continue to select. Alternatively, if the total number of the first resource and at least one resource is less than the target number of resources, but there are no candidate resources that meet the selection conditions among the remaining candidate resources, then the first terminal device can stop the resource selection process. Although the number of selected resources is less than the target number of resources, the first terminal device still uses the selected resources to send the first data. Alternatively, in this case, the first terminal device can also take a measure, that is, reselect.
[0250] For example, if the first terminal device determines that there are no selectable candidate resources except the first resource and the third resource in the candidate resources, and the total number of the first resource and the third resource is less than the target resource number, the first terminal device can abandon the originally selected resource (such as the first resource, etc.) and reselect the second resource in the candidate resources. After selecting the second resource, the first terminal device can select one or more resources for the first data from the candidate resources except the second resource in the candidate resources according to the second resource and the first interval. The selection method here is similar to the method in which the first terminal device selects resources for the first data according to the first resource and the first interval. Among them, the third resource may include the selected resource except the first resource in the candidate resources, for example, the third resource may be at least one resource, or the third resource may include at least one resource, and, in addition to including at least one resource, may also include other resources. In addition, after the first terminal device selects resources for the first data based on the second resources and the first interval, if the number of selectable resources is greater than or equal to the target number of resources, the first terminal device can stop the resource selection process and use the selected resources to send the first data; or, after the first terminal device selects resources for the first data based on the second resources and the first interval, if the number of selectable resources is less than the target number of resources, the first terminal device can stop the resource selection process. Although the number of selected resources is less than the target number of resources, the first terminal device still uses the selected resources to send the first data, or the first terminal device can reselect again, and so on.
[0251] In an embodiment of the present application, if the number of resources that the first terminal device can select is less than the target number of resources, the first terminal device can reselect, so that the number of selected resources can be made greater than or equal to the target number of resources to meet the transmission requirements of the first data.
[0252] The first terminal device selects at least one resource for the first data from candidate resources other than the first resource in the candidate resources according to the first resource and the first interval. There may be multiple selection methods, which are described below by way of example.
[0253] 1. The first option.
[0254] In the first selection mode, the interval between two adjacent resources in the selected resources needs to be equal to the first interval. The first selection mode further distinguishes three situations.
[0255] The first case is that the first interval only includes the first time interval but does not include the first frequency interval, or the first interval includes the first time interval and the first frequency interval, but the first frequency interval is 0. If this is the case, it may mean that among the resources that need to be selected, the frequencies of two adjacent resources are the same. Then the first terminal device can use the time domain position where the first resource is located as the reference time domain position, move forward the first time interval in the time domain, or move backward the first time interval, or move forward the first time interval and move backward the first time interval, and the candidate resources corresponding to the moved time domain position can be used as part or all of the at least one resource. In various embodiments of the present application, taking the horizontal axis representing time as an example, moving forward in the time domain may mean moving to the left, and moving backward in the time domain may mean moving to the right.
[0256] If the candidate resources corresponding to the time domain position after the move are all the resources in at least one resource, it indicates that the resource selection process of the first terminal device is over. This may be because the number of selected resources (i.e., the total number of the first resource and at least one resource) is greater than or equal to the target number of resources, or it may be because there are no candidate resources that meet the selection criteria among the remaining candidate resources, and the number of selected resources is less than the target number of resources. If the candidate resources corresponding to the time domain position after the move are part of the resources in at least one resource, it indicates that the resource selection process of the first terminal device is not over yet. For example, the first terminal device uses the time domain position where the first resource is located as the reference time domain position, and moves forward in the time domain for a first time interval. If there is a candidate resource at the time domain position after the move, for example, the candidate resource is resource 2, the first terminal device can select resource 2, that is, resource 2 can be used as one of the at least one resource. If the number of currently selected resources is less than the target number of resources, the first terminal device can also use the time domain position of resource 2 as the reference time domain position, move forward in the time domain by a first time interval, and if there is a candidate resource at the time domain position after the move, for example, the candidate resource is resource 3, the first terminal device can select resource 3, that is, resource 3 can be used as one of the at least one resources. If the number of currently selected resources is less than the target number of resources, the first terminal device can also use the time domain position of resource 3 as the reference time domain position, move forward in the time domain by a first time interval, and so on, until the number of selected resources is greater than or equal to the target number of resources, or until there are no candidate resources at the time domain position after the move. If the first terminal device uses the time domain position where the first resource is located as the reference time domain position, and selects a resource by moving backward in the time domain by a first time interval, the method is the same as the above-mentioned method of moving forward by a first time interval to select a resource.
[0257] For example, assuming that the first frequency interval is zero, under the selection condition of the first time interval, the process of a method for the first terminal device to select resources can refer to Figure 8 .
[0258] S81: The first terminal device selects an initial resource R for the first data from the candidate resources included in the resource pool. i For example, the initial resource R i The corresponding time slot is T i .
[0259] For example, the first terminal device may randomly select an initial resource R i , i is, for example, 0. Initial resource R i It is the first resource.
[0260] S82: The first terminal device detects the first time interval (for example, Tgap) , T i Move forward or backward T gap Get T i+1 , T i+1 It refers to the time domain position after the move, for example, the time slot after the move.
[0261] S83, time slot T i+1 There is a candidate resource R i+1 .
[0262] N MAX Indicates the number of target resources. If i+1 <N MAX -1, then i=i+1, and S82 is repeated. Or, if i+1≥N MAX -1 indicates that the number of selected resources is greater than or equal to the number of target resources, then new resource selection can be stopped and the final resource can be determined from the selected candidate resources.
[0263] S84, time slot T i+1 There is no candidate resource R i+1 .
[0264] If K ≥ N MAX , indicating that the number of selected resources is greater than or equal to the target number of resources, new resource selection can be stopped and the final resource can be determined from the selected candidate resources. Or, if K <N MAX , and S81 is repeatedly executed. K represents the number of selected candidate resources.
[0265] The second case is that the first interval only includes the first frequency interval but not the first time interval, or the first interval includes the first time interval and the first frequency interval, but the first time interval is 0. If this is the case, it may mean that the time interval between two adjacent resources in the resources to be selected is 0. Then the first terminal device can use the frequency domain position where the first resource is located as the reference frequency domain position, move the first frequency interval upward in the frequency domain, or move the first frequency interval downward, or move the first frequency interval upward and move the first frequency interval downward, and the candidate resources corresponding to the moved frequency domain position can be used as part or all of the at least one resource. Moving upward in the frequency domain is, for example, understood as moving in the high frequency direction, and moving downward in the frequency domain is, for example, understood as moving in the low frequency direction.
[0266] If the candidate resources corresponding to the frequency domain position after the move are all the resources in at least one resource, it indicates that the resource selection process of the first terminal device is over. This may be because the number of selected resources (i.e., the total number of the first resource and at least one resource) is greater than or equal to the target number of resources, or it may be because there are no candidate resources that meet the selection criteria among the remaining candidate resources, and the number of selected resources is less than the target number of resources. If the candidate resources corresponding to the frequency domain position after the move are part of the resources in at least one resource, it indicates that the resource selection process of the first terminal device is not over yet. For example, the first terminal device uses the frequency domain position where the first resource is located as the reference frequency domain position, and moves upward by the first frequency interval in the frequency domain. If there is a candidate resource at the frequency domain position after the move, for example, the candidate resource is resource 4, the first terminal device can select resource 4, that is, resource 4 can be used as one of the at least one resource. If the number of currently selected resources is less than the target number of resources, the first terminal device can also use the frequency domain position of resource 4 as the reference frequency domain position, move the first frequency interval upward in the frequency domain, and if there is a candidate resource at the frequency domain position after the move, for example, the candidate resource is resource 5, the first terminal device can select resource 5, that is, resource 5 can be used as one of the at least one resources. If the number of currently selected resources is less than the target number of resources, the first terminal device can also use the frequency domain position of resource 5 as the reference frequency domain position, move the first frequency interval upward in the frequency domain, and so on, until the number of selected resources is greater than or equal to the target number of resources, or until there are no candidate resources at the frequency domain position after the move. If the first terminal device uses the frequency domain position where the first resource is located as the reference frequency domain position, and selects the resource by moving the first frequency interval downward in the frequency domain, the method is the same as the above-mentioned method of moving the first frequency interval upward to select the resource.
[0267] The third case is that the first interval includes both the first frequency interval and the first time interval, and both the first time interval and the first frequency interval are not 0. If this is the case, the first terminal device needs to take into account both the time domain conditions and the frequency domain conditions when selecting resources. For example, the first terminal device can use the time domain position where the first resource is located as a reference time domain position, and move the first time interval forward and / or backward in the time domain, and the first terminal device can use the frequency domain position where the first resource is located as a reference frequency domain position, and move the first frequency interval up and / or down in the frequency domain, and the candidate resources corresponding to the moved time domain position and frequency domain position can be used as part or all of the at least one resource.
[0268] Wherein, moving the first time interval forward and / or backward, for example, includes moving the first time interval forward, or moving the first time interval backward, or moving the first time interval forward and moving the first time interval backward. Similarly, moving the first frequency interval upward and / or downward, for example, includes moving the first frequency interval upward, or moving the first frequency interval downward, or moving the first frequency interval upward and moving the first frequency interval downward.
[0269] If the candidate resources corresponding to the time domain position and frequency domain position after the move are all the resources in at least one resource, it indicates that the resource selection process of the first terminal device is over. This may be because the number of selected resources (i.e., the total number of the first resource and at least one resource) is greater than or equal to the target number of resources, or it may be because there are no candidate resources that meet the selection criteria among the remaining candidate resources, and the number of selected resources is less than the target number of resources. If the candidate resources corresponding to the time domain position and frequency domain position after the move are part of the resources in at least one resource, it indicates that the resource selection process of the first terminal device is not over yet. For example, the first terminal device uses the frequency domain position where the first resource is located as the reference frequency domain position, moves up the first frequency interval in the frequency domain, and uses the time domain position where the first resource is located as the reference time domain position, and moves forward the first time domain interval in the time domain. If there is a candidate resource at the time domain position and frequency domain position after the move, for example, the candidate resource is resource 6, then the first terminal device can select resource 6, that is, resource 6 can be used as one of the at least one resource. If the number of currently selected resources is less than the target number of resources, the first terminal device may also use the frequency domain position of resource 6 as the reference frequency domain position, move up by a first frequency interval in the frequency domain, and use the time domain position of resource 6 as the reference time domain position, move forward by a first time interval in the time domain, and if there is a candidate resource at the moved time domain position and frequency domain position, for example, the candidate resource is resource 7, the first terminal device may select resource 7, that is, resource 7 may be used as one of the at least one resource. If the number of currently selected resources is less than the target number of resources, the first terminal device may also use the frequency domain position of resource 7 as the reference frequency domain position, move up by a first frequency interval in the frequency domain, and use the time domain position of resource 7 as the reference time domain position, move forward by a first time interval in the time domain, and so on, until the number of selected resources is greater than or equal to the target number of resources, or until there is no candidate resource at the moved time domain position and frequency domain position. If the first terminal device uses the frequency domain position of the first resource as the reference frequency domain position, moves downward by the first frequency interval in the frequency domain, and uses the time domain position of the first resource as the reference time domain position, and moves forward by the first time interval in the time domain to select resources, or uses the frequency domain position of the first resource as the reference frequency domain position, moves upward by the first frequency interval in the frequency domain, and uses the time domain position of the first resource as the reference time domain position, and moves backward by the first time interval in the time domain to select resources, or uses the frequency domain position of the first resource as the reference frequency domain position, moves downward by the first frequency interval in the frequency domain, and uses the time domain position of the first resource as the reference time domain position, and moves backward by the first time interval in the time domain to select resources, then the method is the same as the above-mentioned method of moving upward by the first frequency interval and moving forward by the first time interval to select resources.
[0270] The following takes the first case mentioned above (i.e., the first interval includes only the first time interval but not the first frequency interval, or the first interval includes the first time interval and the first frequency interval, but the first frequency interval is 0) as an example to introduce several cases when the number of target resources is different under the first selection mode. MAX Indicates the number of target resources.
[0271] When N MAX =2, the first terminal device can select the initial resource R0, that is, the first resource, and the time slot corresponding to the initial resource R0 is T0.
[0272] Afterwards, the first terminal device gap , shift time slot T0 forward by T gap Get time slot T 1_l , and shift T0 backward by T gap Get time slot T 1_r Time slot T 1_l and time slot T 1_r They are all time domain positions after movement.
[0273] like Fig. 9A As shown, if the time slot T 1_l There is a candidate resource R 1_l , time slot T 1_r There is a candidate resource R 1_r , the first terminal device can be from R0, R 1_l and R 1_r In this case, the number of selected resources is greater than the target number of resources. For example, the first terminal device can randomly select two adjacent resources from the three resources as resources for sending the first data. For example, the first terminal device selects R0 and R 1_r .
[0274] Alternatively, the number of selected resources may also be equal to the target number of resources. For example, the first terminal device may move the time slot T0 forward by T gap Get time slot T 1_l , without having to move T0 backward by T gap Alternatively, the first terminal device may move T0 backward by T gap Get time slot T 1_r , without moving T0 forward, or the first terminal device moves time slot T0 forward by T gap Get time slot T 1_l , and shift T0 backward by T gap Get time slot T 1_r , but the time slot T 1_l Time slot T 1_rThere may be no candidate resources at the location, and so on. These situations may make the number of selected resources equal to the number of target resources.
[0275] like Fig. 9B As shown, if the time slot T 1_l There is no candidate resource at time slot T 1_r If there is no candidate resource, the first terminal device may abandon the selected resource R0 and reselect a resource in the resource pool. For example, the first terminal device reselects resource R1.
[0276] After selecting the resource R1, the first terminal device may continue to gap , select a resource for the first data. For example, for the resource R1 selected for the second time, move the time slot T1 where the resource R1 is located forward by T gap Get time slot T 2_l , and move T1 backwards by T gap Get time slot T 2_r For example, time slot T 2_l There is a candidate resource R 2_l , time slot T 2_r There is a candidate resource R 2_r , the first terminal device can be connected from R1, R 2_l and R 2_r For example, the first terminal device selects R1 and R 2_l .
[0277] When N MAX =3, the first terminal device can select the initial resource R0, that is, the first resource. The time slot corresponding to the initial resource R0 is T0.
[0278] Afterwards, the first terminal device gap , shift time slot T0 forward by T gap Get time slot T 1_l , and shift T0 backward by T gap Get time slot T 1_r Time slot T 1_l and time slot T 1_r They are all time domain positions after movement.
[0279] like Fig. 10A As shown, if the time slot T 1_l There is a candidate resource R 1_l , time slot T 1_r There is a candidate resource R 1_r , the first terminal device can set T 1_l Move forward T gap Get time slot T 2_l , and T 1_rMove T backward gap Get time slot T 2_r .
[0280] If the time slot T 2_l There is a candidate resource R 2_l , time slot T 2_r There is a candidate resource R 2_r , the first terminal device can be from R0, R 1_l , R 1_r , R 2_l and R 2_r In this case, the number of selected resources is greater than the target number of resources. For example, the first terminal device can randomly select two adjacent resources from the five resources as resources for sending the first data. For example, the first terminal device selects R0, R 1_l and R 2_l Alternatively, the number of selected resources may be equal to the number of target resources, which will not be described in detail.
[0281] like Fig. 10B As shown, if the time slot T 2_l There is no candidate resource at time slot T 2_r If there is no candidate resource at the first terminal device, the first terminal device may reselect the initial resource. The first terminal device may abandon the selected resource R0 and reselect a resource in the resource pool. For example, the first terminal device reselects the resource R2.
[0282] After selecting resource R2, the first terminal device may continue to gap , select a resource for the first data. For example, for the resource R2 selected for the second time, move the time slot T2 where the resource R2 is located forward by T gap Get time slot T 3_l , and move T2 backwards by T gap Get time slot T 3_r For example, time slot T 3_l There is a candidate resource R 3_l , time slot T 3_r There is a candidate resource R 3_r , the first terminal device can set the time slot T 3_l Move forward T gap Get time slot T 4_l , the time slot T 3_r Move T backward gap Get time slot T 4_r For example, time slot T 4_l There is a candidate resource R 4_l , time slot T 4_r If there is no candidate resource at R2, R 3_l , R3_r and R 4_l For example, the first terminal device selects R2, R 3_l , R 3_r .
[0283] When N MAX =4, the first terminal device can select the initial resource R0, that is, the first resource. The time slot corresponding to the initial resource R0 is T0. The first terminal device selects the initial resource R0 according to the first time interval T gap , shift time slot T0 forward by T gap Get time slot T 1_l , and shift T0 backward by T gap Get time slot T 1_r Time slot T 1_l and time slot T 1_r They are all time domain positions after movement.
[0284] like Fig.11A As shown, if the time slot T 1_l There is a candidate resource R 1_l , time slot T 1_r There is a candidate resource R 1_r , the first terminal device can set T 1_l Move forward T gap Get time slot T 2_l , and T 1_r Move T backward gap Get time slot T 2_r .
[0285] If the time slot T 2_l There is a candidate resource R 2_l , time slot T 2_r There is a candidate resource R 2_r , the first terminal device can set T 2_l Move forward T gap Get time slot T 3_l , and T 2_r Move T backward gap Get time slot T 3_r If the time slot T 3_l There are candidate resources R 3_l , time slot T 3_r There is a candidate resource R 3_r , the first terminal device can be from R0, R 1_l , R 1_r , R 2_l , R 2_r , R 3_l and R 3_rIn this case, the number of selected resources is greater than the target number of resources. For example, the first terminal device can randomly select 4 adjacent resources from the 7 resources as resources for sending the first data. For example, the first terminal device selects R0, R 1_r , R 2_r and R 3_r Alternatively, the number of selected resources may be equal to the number of target resources, which will not be described in detail.
[0286] like Fig. 11B As shown, if the time slot T 1_l There is no candidate resource R 1_l , time slot T 1_r There is no candidate resource R 1_r , the first terminal device may reselect the initial resource. The first terminal device may abandon the selected resource R0 and reselect a resource in the resource pool. For example, the first terminal device reselects the resource R3.
[0287] After selecting resource R3, the first terminal device may continue to gap , select a resource for the first data. For example, for the resource R3 selected for the second time, move the time slot T3 where the resource R3 is located forward by T gap Get time slot T 4_l , and move T3 backwards by T gap Get time slot T 4_r For example, time slot T 4_l There is a candidate resource R 4_l , time slot T 4_r There is a candidate resource R 4_r , the first terminal device can set the time slot T 4_l Move forward T gap Get time slot T 5_l , the time slot T 4_r Move T backward gap Get time slot T 5_r For example, time slot T 5_l There is no candidate resource at time slot T 5_r There is a candidate resource R 5_r , the first terminal device can set the time slot T 5_r Move T backward gap Get time slot T 6_r For example, time slot T 6_r There is a candidate resource R 6_r , the first terminal device can be from R3, R 4_l , R 4_r , R 5_r and R 6_r For example, the first terminal device determines R3, R4_r , R 5_r and R 6_r .
[0288] The above are some examples of the first situation of the first selection method. The first terminal device selects at least one resource for the first data from the candidate resources other than the first resource in the candidate resources according to the first resource and the first interval. There may also be a second selection method, which is described below.
[0289] 2. The second option.
[0290] In the second selection mode, the interval requirements between the selected resources are relatively loose, for example, the time interval between adjacent resources does not need to be strictly required to be the first time interval, but only needs to be greater than or equal to the first time interval, or the frequency interval between adjacent resources does not need to be strictly required to be the first frequency interval, but only needs to be greater than or equal to the first frequency interval, making the selection conditions more relaxed, more conducive to selecting resources, and helping to improve the success rate of resource selection. In addition, the second selection mode also distinguishes three situations.
[0291] The first case is that the first interval only includes the first time interval but does not include the first frequency interval, or the first interval includes the first time interval and the first frequency interval, but the first frequency interval is 0. If this is the case, it may mean that among the resources that need to be selected, the frequencies of two adjacent resources are the same. Then the first terminal device can use the time domain position where the first resource is located as the reference time domain position, move forward the first time interval in the time domain, or move backward the first time interval, or move forward the first time interval and move backward the first time interval. The first terminal device can select resources within the first range corresponding to the time domain position after the move, and the selected resources are part of or all of the at least one resource. Among them, the first range does not include the time domain position between the reference time domain position and the time domain position after the move.
[0292] If the candidate resources corresponding to the time domain position after the move are all the resources in at least one resource, it indicates that the resource selection process of the first terminal device has ended. This may be because the number of selected resources (i.e., the total number of the first resource and at least one resource) is greater than or equal to the target number of resources, or it may be because there are no candidate resources that meet the selection conditions among the remaining candidate resources, and the number of selected resources is less than the target number of resources. If the candidate resources corresponding to the time domain position after the move are part of the resources in at least one resource, it indicates that the resource selection process of the first terminal device has not ended. For example, the first terminal device uses the time domain position where the first resource is located as the reference time domain position, and moves forward by a first time interval in the time domain. The first terminal device can select resources within the first range corresponding to the time domain position after the move. The first range corresponding to the time domain position after the move may include one or more candidate resources, and the selection range of the first terminal device is larger. For example, if the first terminal device selects resource 8 within the first range corresponding to the time domain position after the move, the first terminal device can select resource 8, that is, resource 8 can be used as one of the at least one resource. If the number of currently selected resources is less than the target number of resources, the first terminal device can also use the time domain position of resource 8 as the reference time domain position, move forward in the time domain by the first time interval, and select resources within the first range corresponding to the time domain position after the move. For example, the first terminal device selects resource 9 within the first range corresponding to the time domain position after the move, that is, resource 9 can be used as one of the at least one resources. If the number of currently selected resources is less than the target number of resources, the first terminal device can also use the time domain position of resource 9 as the reference time domain position, move forward in the time domain by the first time interval, and so on, until the number of selected resources is greater than or equal to the target number of resources, or until there are no candidate resources at the time domain position after the move. If the first terminal device uses the time domain position where the first resource is located as the reference time domain position, and selects resources by moving backward in the time domain by the first time interval, the method is the same as the above-mentioned method of moving forward by the first time interval to select resources.
[0293] Assuming that the first frequency interval is zero, under the selection condition of the first time interval, the process of a method for the first terminal device to select resources can refer to Fig.12 .
[0294] The first terminal device selects an initial resource R for the first data from the candidate resources included in the resource pool. i For example, the initial resource R i The corresponding time slot is T i .
[0295] For example, the first terminal device may randomly select an initial resource R i, i is, for example, 0. Initial resource R i It is the first resource.
[0296] The first terminal device calculates the first time interval (for example, T gap) , T i Move forward or backward T gap Get T i+1 , T i+1 It refers to the time domain position after the move, for example, the time slot after the move.
[0297] The first terminal device may determine a first range. At this time, the first range does not include the range from T i to T i+1 Candidate resources between.
[0298] If the first range does not include candidate resources, the first step is repeated, that is, an initial resource R is selected for the first data from the candidate resources included in the resource pool. i , for example, i is 1. This is equivalent to reselecting resources.
[0299] Alternatively, if the first range includes the candidate resource, the first terminal device may select the next resource R in the first range. i+1 , the resource R i+1 The corresponding time slot is T i+1 .
[0300] If i+1 <N MAX -1, then i=i+1, and repeat the first step. If i+1≥N MAX -1 indicates that the number of selected resources is greater than or equal to the number of target resources, then new resource selection can be stopped and the final resource can be determined from the selected candidate resources.
[0301] The second case is that the first interval only includes the first frequency interval but not the first time interval, or the first interval includes the first time interval and the first frequency interval, but the first time interval is 0. If this is the case, it may mean that the time interval between two adjacent resources in the resources to be selected is 0. Then the first terminal device can use the frequency domain position where the first resource is located as the reference frequency domain position, move the first frequency interval upward in the frequency domain, or move the first frequency interval downward, or move the first frequency interval upward and move the first frequency interval downward, and the first terminal device can select resources within the second range corresponding to the frequency domain position after the movement, and the selected resources are part of or all of the at least one resource. The second range does not include the frequency domain position between the reference frequency domain position and the frequency domain position after the movement. Moving upward in the frequency domain is, for example, understood as moving in the high frequency direction, and moving downward in the frequency domain is, for example, understood as moving in the low frequency direction.
[0302] If the candidate resources corresponding to the frequency domain position after the move are all the resources in at least one resource, it indicates that the resource selection process of the first terminal device is over. This may be because the number of selected resources (i.e., the total number of the first resource and at least one resource) is greater than or equal to the target number of resources, or it may be because there are no candidate resources that meet the selection conditions in the remaining candidate resources, and the number of selected resources is less than the target number of resources. If the candidate resources corresponding to the frequency domain position after the move are part of the resources in at least one resource, it indicates that the resource selection process of the first terminal device has not yet ended. For example, the first terminal device uses the frequency domain position where the first resource is located as the reference frequency domain position, and moves the first frequency interval upward in the frequency domain. The first terminal device can select resources within the second range corresponding to the frequency domain position after the move. The second range corresponding to the frequency domain position after the move may include one or more candidate resources, and the selection range of the first terminal device is larger. For example, if the first terminal device selects resource 10 within the second range corresponding to the frequency domain position after the move, the first terminal device can select resource 10, that is, resource 10 can be used as one of the at least one resource. If the number of currently selected resources is less than the target number of resources, the first terminal device can also use the frequency domain position of resource 10 as the reference frequency domain position, move the first frequency interval upward in the frequency domain, and select resources within the second range corresponding to the moved frequency domain position. For example, the first terminal device selects resource 11 within the second range corresponding to the moved frequency domain position, that is, resource 11 can be used as one of the at least one resources. If the number of currently selected resources is less than the target number of resources, the first terminal device can also use the frequency domain position of resource 11 as the reference frequency domain position, and move the first frequency interval upward in the frequency domain, and so on, until the number of selected resources is greater than or equal to the target number of resources, or until there are no candidate resources at the moved frequency domain position. If the first terminal device uses the frequency domain position where the first resource is located as the reference frequency domain position, and selects resources by moving the first frequency interval downward in the frequency domain, the method is the same as the above-mentioned method of moving the first frequency interval upward to select resources.
[0303] The third case is that the first interval includes both the first frequency interval and the first time interval, and both the first time interval and the first frequency interval are not 0. If this is the case, the first terminal device needs to take into account the time domain conditions and the frequency domain conditions when selecting resources. For example, the first terminal device can use the time domain position where the first resource is located as the reference time domain position, move the first time interval forward and / or backward in the time domain, and the first terminal device can use the frequency domain position where the first resource is located as the reference frequency domain position, move the first frequency interval up and / or down in the frequency domain, and the first terminal device can select resources within the third range corresponding to the moved time domain position and the moved frequency domain position, and the selected resources are part of or all of the at least one resource. The third range does not include the time domain position between the reference time domain position and the moved time domain position, and does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position.
[0304] Wherein, moving the first time interval forward and / or backward, for example, includes moving the first time interval forward, or moving the first time interval backward, or moving the first time interval forward and moving the first time interval backward. Similarly, moving the first frequency interval upward and / or downward, for example, includes moving the first frequency interval upward, or moving the first frequency interval downward, or moving the first frequency interval upward and moving the first frequency interval downward.
[0305] If the candidate resources corresponding to the time domain position and frequency domain position after the move are all the resources in at least one resource, it indicates that the resource selection process of the first terminal device is over. This may be because the number of selected resources (i.e., the total number of the first resource and at least one resource) is greater than or equal to the target number of resources, or it may be because there are no candidate resources that meet the selection conditions in the remaining candidate resources, and the number of selected resources is less than the target number of resources. If the candidate resources corresponding to the time domain position and frequency domain position after the move are part of the resources in at least one resource, it indicates that the resource selection process of the first terminal device is not over yet. For example, the first terminal device uses the frequency domain position where the first resource is located as the reference frequency domain position, moves up the first frequency interval in the frequency domain, and uses the time domain position where the first resource is located as the reference time domain position, moves forward the first time domain interval in the time domain. The first terminal device selects a resource from the candidate resources included in the third range corresponding to the moved time domain position and the moved frequency domain position. For example, the first terminal device selects resource 12, that is, resource 12 can be used as one of the at least one resource. If the number of currently selected resources is less than the target number of resources, the first terminal device may also use the frequency domain position of resource 12 as the reference frequency domain position, move up the first frequency interval in the frequency domain, and use the time domain position of resource 12 as the reference time domain position, move forward the first time interval in the time domain, and select resources from the candidate resources included in the third range (the third range at this time may be different from the previous third range) corresponding to the moved time domain position and the moved frequency domain position. For example, if the candidate resource is resource 13, the first terminal device may select resource 13, that is, resource 13 may be used as one of the at least one resources. If the number of currently selected resources is less than the target number of resources, the first terminal device may also use the frequency domain position of resource 13 as the reference frequency domain position, move up the first frequency interval in the frequency domain, and use the time domain position of resource 13 as the reference time domain position, move forward the first time interval in the time domain, and continue to select resources, and so on, until the number of selected resources is greater than or equal to the target number of resources, or until there are no candidate resources in the third range corresponding to the moved time domain position and the frequency domain position.If the first terminal device uses the frequency domain position of the first resource as the reference frequency domain position, moves downward by the first frequency interval in the frequency domain, and uses the time domain position of the first resource as the reference time domain position, and moves forward by the first time interval in the time domain to select resources, or uses the frequency domain position of the first resource as the reference frequency domain position, moves upward by the first frequency interval in the frequency domain, and uses the time domain position of the first resource as the reference time domain position, and moves backward by the first time interval in the time domain to select resources, or uses the frequency domain position of the first resource as the reference frequency domain position, moves downward by the first frequency interval in the frequency domain, and uses the time domain position of the first resource as the reference time domain position, and moves backward by the first time interval in the time domain to select resources, then the method is the same as the above-mentioned method of moving upward by the first frequency interval and moving forward by the first time interval to select resources.
[0306] The following is the first case mentioned above (that is, the first interval includes only the first time interval but not the first frequency interval, or the first interval includes the first time interval and the first frequency interval, but the first frequency interval is 0), and N MAX =3 is taken as an example. MAX Indicates the number of target resources.
[0307] For reference Fig.13 The first terminal device may select an initial resource R0, that is, a first resource, from the resource pool. The time slot corresponding to the initial resource R0 is T0. The first terminal device selects a first resource R0 from the resource pool. gap , shift time slot T0 forward by T gap Get time slot T 0_l , and shift T0 backward by T gap Get time slot T 0_r Time slot T 0_l and time slot T 0_r The first terminal device can determine the first range. At this time, the first range does not include time slots T0 and T 0_r The candidate resources between time slots T0 and T 0_l Candidate resources between.
[0308] If the first range at this time includes candidate resources, the first terminal device can select the next resource R1 within the first range, and the time slot corresponding to the resource R1 is T1. The first terminal device gap , shift time slot T1 forward by T gap Get time slot T 1_l , and move T1 backwards by T gap Get time slot T 1_r Time slot T 1_l and time slot T 1_rThe first terminal device can determine the first range. At this time, the first range does not include time slots T1 and T2. 1_r The candidate resources between time slots T1 and T 1_l Candidate resources between.
[0309] If the first range at this time includes candidate resources, the first terminal device can select the next resource R2 in the first range, so that the first terminal device has selected three resources, namely R0, R1 and R2. Alternatively, the first terminal device can continue to select after selecting three resources. For example, the first terminal device can select according to the first time interval T gap , move the time slot T2 where resource R2 is located forward by T gap Get time slot T 2_l , and move T2 backwards by T gap Get time slot T 2_r Time slot T 2_l and time slot T 2_r The first terminal device can determine the first range. At this time, the first range does not include time slots T2 and T 2_r The candidate resources between time slots T2 and T 2_l The first terminal device can continue to select resources in the first range at this time. In this way, the selected resources can be greater than the number of target resources, and then the first terminal device selects N from the selected resources. MAX resources.
[0310] The above examples of the first and second selection methods are only for the purpose of facilitating the understanding of the technical solution of the embodiment of the present application and cannot be regarded as limiting the solution provided by the embodiment of the present application. MAX The value of may also be larger or smaller, and when moving in the time domain, it may only move forward but not backward, etc., which is not limited in the embodiments of the present application.
[0311] S73: The first terminal device sends the first data to the second terminal device through the selected resource, and the second terminal device receives the first data from the first terminal device through the selected resource.
[0312] After selecting the resource, the first terminal device can send the first data to the second terminal device through the selected resource. The number of resources used by the first terminal device to send the first data can be equal to the number of target resources or less than the number of target resources. S73 is an optional step.
[0313] In an embodiment of the present application, the number of available candidate resources included in the resource pool is greater than or equal to X% of the total number of candidate resources included in the resource pool, and the value of X can be set according to different factors, such as the number of resources to be selected, the number of resources to be selected and the first time interval, the number of resources to be selected, the first time interval and the first frequency interval, or the priority of the service. For example, when the number of resources to be selected is large, the value of X can be set to be large, or when the priority of the service is high, the value of X can be set to be large, and so on. If the value of X is large, there are more optional resources, which can meet the needs of resource selection as much as possible, improve the efficiency of resource selection, and reduce the complexity of the resource selection process. And try to select enough resources to avoid some transmission processes from being unable to proceed due to lack of resources, thereby improving the success rate of transmission. In addition, in an embodiment of the present application, the value of X is no longer fixed, but can be set according to different needs, making the resource selection process more flexible.
[0314] Moreover, in the resource selection process, if the number of selected resources is less than the target number of resources, and there are no candidate resources that meet the selection conditions, you can reselect. Through this reselection method, you can try to select enough resources, which improves the success rate of resource selection.
[0315] The embodiments of the present application also further improve the overall resource allocation process and design under mode-2 of NR-V2X.
[0316] In order to solve the same technical problem, the present application embodiment provides a second resource selection method, see Fig.14 , which is a flowchart of the method. In the following introduction, the method is applied to Figure 6 Take the network architecture shown as an example. In addition, the method can be performed by two communication devices, such as a first communication device and a second communication device. Among them, the first communication device or the second communication device can be a network device or a communication device that can support the network device to implement the functions required by the method, or can be a terminal device or a communication device that can support the terminal device to implement the functions required by the method, and of course can also be other communication devices, such as a chip system. And there is no restriction on the implementation method of the first communication device or the second communication device. For example, the two communication devices can be implemented in the same form, such as both implemented in the form of devices, or the two communication devices can also be implemented in different forms, such as the first communication device is implemented in the form of a device, and the second communication device is implemented in the form of a chip system, and so on. Among them, the network device is, for example, a base station.
[0317] For the sake of convenience, the following takes the method being performed by a terminal device and a terminal device as an example, that is, the first communication device is a terminal device (for example, referred to as a first terminal device) and the second communication device is also a terminal device (for example, referred to as a second terminal device) as an example. Figure 6 Taking the network architecture shown in FIG. 1 as an example, therefore, the first terminal device described below can implement Figure 6 The functions of the terminal device 1 in the network architecture shown in the figure, the second terminal device described below can realize Figure 6 Functions of the terminal device 2 in the network architecture shown. For example, the first terminal device is a signal sending end, and the second terminal device is a signal receiving end.
[0318] S141. The first terminal device selects a first resource for first data from first candidate resources included in a resource pool, where the candidate resources include resources whose reference signal received power is less than or equal to a first threshold.
[0319] The first terminal device has data to be transmitted, such as first data, and the first terminal device can select a resource for the first data from the candidate resources included in the first resource pool. The first candidate resource mentioned here refers to an optional resource among the resources included in the first resource pool, for example, a resource whose RSRP measured by the first terminal device is less than or equal to a first threshold. The first candidate resource may include one or more candidate resources. The first threshold is, for example, Th as described above. RSRP , or may be other thresholds. The first resource pool is, for example, the resource selection window mentioned above.
[0320] In the embodiment of the present application, the value of X can continue to use the current value, such as 20. Alternatively, the value of X can also be Figure 7 The same as in the embodiment shown, for details, please refer to Figure 7 Relevant introduction of S71 in the embodiment shown.
[0321] In an embodiment of the present application, when the first terminal device needs to select a resource, it can first select a resource, such as a first resource. After selecting the first resource, the first resource can be used as a reference to select subsequent resources.
[0322] S142. The first terminal device determines, based on the first resource and the first interval, that there are no candidate resources in the first candidate resources except the first resource and the third resource (i.e., determines that there are no optional resources in the first candidate resources except the first resource and the third resource), and the total number of the first resource and the third resource is less than the number of target resources.
[0323] The third resource includes the selected resources other than the first resource in the first candidate resources. When selecting the resource, the first interval needs to be satisfied. The first interval may include the first time interval, or include the first frequency interval, or include the first time interval and the first frequency interval. The third resource may include one or more resources. The first time interval may refer to the time interval satisfied between two adjacent resources in the resources to be selected. For example, the first time interval may be T as described above. gap , or it may be the time interval set in the embodiment of the present application. The first frequency interval may refer to the frequency interval satisfied between two adjacent resources among the resources to be selected. For example, if the first resource and the third resource are both selected resources, then the first time interval may be the time interval satisfied between two adjacent resources among the first resource and the third resource, and the first frequency interval may be the frequency interval satisfied between two adjacent resources among the first resource and the third resource. In other words, the number of resources selected by the first terminal device is less than the number of target resources, but there are no candidate resources that meet the selection criteria to be selected.
[0324] As an optional method, the target number of resources for the first data may be related to the QoS of the first data, or may be related to the configuration information of the resource pool (for example, related to the configuration information of the first resource pool), or may be related to the QoS of the first data and the configuration information of the resource pool (for example, related to the configuration information of the first resource pool). Among them, being related to the QoS of the first data may also be understood as being related to the QoS of the service corresponding to the first data. For information about the configuration information of the resource pool, etc., please refer to Figure 7 Introduction of S71 in the embodiment shown.
[0325] S143: The first terminal device may replace the first resource pool with the second resource pool.
[0326] In an embodiment of the present application, if the total number of the first resource and at least one resource is greater than or equal to the target number of resources, the first terminal device can stop the resource selection process and can use the selected resource to send the first data. Alternatively, if the total number of the first resource and at least one resource is less than the target number of resources, and there are candidate resources that meet the selection conditions among the remaining candidate resources (the so-called selection conditions can be understood as the first interval), the first terminal device can continue to select. Alternatively, if the total number of the first resource and at least one resource is less than the target number of resources, but there are no candidate resources that meet the selection conditions among the remaining candidate resources, then the first terminal device can stop the resource selection process, although the number of selected resources is less than the target number of resources, the first terminal device still uses the selected resources to send the first data, or, in this case, the first terminal device can also take a measure, that is, reselect. If the first terminal device reselects, the first terminal device can replace the first resource pool with the second resource pool.
[0327] There are different ways for the first terminal device to replace the first resource pool with the second resource pool.
[0328] For example, in one method, the first terminal device can move the time domain end position of the first resource pool backward by a first duration in the time domain to obtain the second resource pool. For example, the time domain start position of the first resource pool is T1, and the time domain end position is T2. The first terminal device can move the time domain end position of the first resource pool backward by a first duration from T2 to T3 to obtain the second resource pool, and the time domain start position of the second resource pool is T1, and the time domain end position is T3. In this way, it is equivalent to expanding the first resource pool, so that the expanded first resource pool (i.e., the second resource pool) includes more candidate resources.
[0329] This method is equivalent to increasing candidate resources by sliding the time domain position of the resource pool, thereby increasing the minimum range of the final actual selected resources corresponding to X. Therefore, this method can also be considered as a way to implicitly configure the value of X.
[0330] For another example, in another way, the first terminal device can move the time domain starting position of the first resource pool backward by a second duration in the time domain, and move the time domain ending position of the first resource pool backward by a third duration in the time domain, to obtain the second resource pool. For example, the time domain starting position of the first resource pool is T1, and the time domain ending position is T2. The first terminal device can move the time domain starting position of the first resource pool backward from T1 to T4 by a second duration, and can move the time domain ending position of the first resource pool backward from T2 to T5 by a third duration, to obtain the second resource pool, and the time domain starting position of the second resource pool is T4, and the time domain ending position is T5. In this way, the first resource pool and the second resource pool may have an intersection, or may not have an intersection, and the time domain length of the first resource pool may be equal to or unequal to the time domain length of the second resource pool.
[0331] The first duration, the second duration or the third duration may be configured by the network device, or may be pre-configured in the first terminal device, or may be specified by a protocol, etc. The first duration, the second duration and the third duration may be equal, or may be unequal, or any two of them may be equal, and there is no specific limitation.
[0332] No matter which of the above methods is used, new candidate resources can be introduced to improve the success rate of resource selection.
[0333] S144: The first terminal device may select at least one resource from candidate resources other than the second resource in the second candidate resources included in the second resource pool according to the second resource in the second resource pool and the first interval.
[0334] The second candidate resource mentioned here refers to an optional resource in the resources included in the second resource pool, for example, a resource whose RSRP measured by the first terminal device is less than or equal to the first threshold. The second candidate resource may include one or more candidate resources.
[0335] After changing the resource pool, the first terminal device may reselect resources for the first data in the second resource pool.
[0336] The second resource and the first resource may be the same resource, and this method is applicable to the case where the first resource still exists in the second resource pool. That is, if the first resource exists in the second resource pool, the first terminal device does not need to reselect the first resource, but continues to use the first resource as a reference to select subsequent resources.
[0337] Alternatively, the second resource and the first resource may not be the same resource. For example, if the first resource does not exist in the second resource pool, the first terminal device may reselect a resource in the second resource pool. Alternatively, even if the first resource exists in the second resource pool, the first terminal device may reselect a resource in the second resource pool.
[0338] For example, you can refer to Fig.15 If the number of target resources N is MAX , the first time interval T gap and / or the first frequency interval F gap In the case where it is impossible to find a solution that satisfies the first time interval T gap and / or the first frequency interval F gap Required N MAX resources, the first terminal device may slide the first resource pool [n+Q1, n+Q2] to [n+Q1, n+Q2+T s ], where T s is the window sliding interval. The first terminal device is in the second resource pool [n+Q1, n+Q2+T s ] within the first time interval T, and if no resource that satisfies the first time interval T can be found in the second resource pool, gap and / or the first frequency interval F gap Required N MAX resources, the first terminal device can continue to slide the second resource pool, for example, it can slide to [n+Q1, n+Q2+2×T s ], for example, called the third resource pool, repeat the above process until the upper limit of the resource pool (for example, the end position of the time domain) is greater than the delay requirement of the resource selection, or until N is selected. MAX If there are multiple resources selected, the sliding stops and the selected resource is used as the final resource selection result.
[0339] The first terminal device selects at least one resource for the first data from the candidate resources other than the second resource in the second candidate resources according to the second resource and the first interval. There may also be different selection methods, which are described below by example.
[0340] 1. The first option.
[0341] In the first selection mode, the interval between two adjacent resources in the selected resources needs to be equal to the first interval. The first selection mode further distinguishes three situations.
[0342] The first case is that the first interval only includes the first time interval but not the first frequency interval, or the first interval includes the first time interval and the first frequency interval, but the first frequency interval is 0. If this is the case, it may mean that among the resources that need to be selected, the frequencies of the two adjacent resources are the same. Then the first terminal device can use the time domain position where the second resource is located as the reference time domain position, move forward the first time interval in the time domain, or move backward the first time interval, or move forward the first time interval and move backward the first time interval, and the candidate resources corresponding to the moved time domain position can be used as part or all of the at least one resource. For a detailed introduction to this situation, please refer to Figure 7 Relevant description of S72 in the embodiment shown.
[0343] For example, assuming that the first frequency interval is zero, under the selection condition of the first time interval, the process of a method for the first terminal device to select resources can refer to Fig.16 .
[0344] S161: The first terminal device selects an initial resource R for the first data from the candidate resources included in the resource pool. i For example, the initial resource R i The corresponding time slot is T i .
[0345] For example, the first terminal device may randomly select an initial resource R i , i is, for example, 0. Initial resource R i It is the first resource.
[0346] S162: The first terminal device detects the first time interval (for example, T gap) , T i Move forward or backward T gap Get T i+1 , T i+1 It refers to the time domain position after the move, for example, the time slot after the move.
[0347] S163, time slot T i+1 There is a candidate resource R i+1 .
[0348] N MAX Indicates the number of target resources. If i+1 <N MAX -1, then i=i+1, and S162 is repeated. Or, if i+1≥N MAX -1 indicates that the number of selected resources is greater than or equal to the number of target resources, then new resource selection can be stopped and the final resource can be determined from the selected candidate resources.
[0349] S164, time slot T i+1There is no candidate resource R i+1 .
[0350] If K ≥ N MAX , indicating that the number of selected resources is greater than or equal to the target number of resources, new resource selection can be stopped and the final resource can be determined from the selected candidate resources. Or, if K <N MAX , and the time domain end position of the first resource pool moves backward to meet the delay requirement, then the first resource pool can be replaced by the second resource pool, for example, the time domain end position of the first resource pool is moved backward by T s , and obtain the second resource pool. After obtaining the second resource pool, S161 or S162 may be repeatedly executed. Wherein, K represents the number of selected candidate resources.
[0351] The second situation is that the first interval only includes the first frequency interval but not the first time interval, or the first interval includes the first time interval and the first frequency interval, but the first time interval is 0. If this is the case, it may mean that among the resources that need to be selected, the time interval between two adjacent resources is 0. Then the first terminal device can use the frequency domain position where the second resource is located as the reference frequency domain position, move the first frequency interval upward in the frequency domain, or move the first frequency interval downward, or move the first frequency interval upward and move the first frequency interval downward, and the candidate resources corresponding to the moved frequency domain position can be used as part or all of the at least one resource. Moving upward in the frequency domain is, for example, understood as moving in the high frequency direction, and moving downward in the frequency domain is, for example, understood as moving in the low frequency direction. For a detailed introduction to this situation, please refer to. Figure 7 Relevant description of S72 in the embodiment shown.
[0352] The third case is that the first interval includes both the first frequency interval and the first time interval, and both the first time interval and the first frequency interval are not 0. If this is the case, the first terminal device needs to take into account both the time domain conditions and the frequency domain conditions when selecting resources. For example, the first terminal device can use the time domain position where the second resource is located as a reference time domain position, and move the first time interval forward and / or backward in the time domain, and the first terminal device can use the frequency domain position where the second resource is located as a reference frequency domain position, and move the first frequency interval up and / or down in the frequency domain, and the candidate resources corresponding to the moved time domain position and frequency domain position can be used as part or all of the at least one resource.
[0353] Wherein, moving the first time interval forward and / or backward, for example, includes moving the first time interval forward, or moving the first time interval backward, or moving the first time interval forward and moving the first time interval backward. Similarly, moving the first frequency interval upward and / or downward, for example, includes moving the first frequency interval upward, or moving the first frequency interval downward, or moving the first frequency interval upward and moving the first frequency interval downward.
[0354] For a detailed description of this situation, please refer to Figure 7 Relevant description of S72 in the embodiment shown.
[0355] The following is the first case mentioned above (that is, the first interval includes only the first time interval but not the first frequency interval, or the first interval includes the first time interval and the first frequency interval, but the first frequency interval is 0), and N MAX =4 as an example to introduce the resource selection process. MAX Indicates the number of target resources.
[0356] For reference Fig.17 , the first resource pool is [n+Q1, n+Q2], the first terminal device selects an initial resource R0 in the first resource pool, and the time slot corresponding to the initial resource R0 is T0. The first terminal device selects the initial resource R0 according to the first time interval T gap , shift time slot T0 forward by T gap Get time slot T 1_l , and shift T0 backward by T gap Get time slot T 1_r Time slot T 1_l and time slot T 1_r They are all time domain positions after movement.
[0357] If the time slot T 1_l There is no candidate resource R 1_l , time slot T 1_r There is no candidate resource R 1_r , and move the time domain end position of the first resource pool backward by T s If the latency requirement is still met, the first resource pool can be replaced by the second resource pool [n+Q1, n+Q2+T s ]. The first terminal device may reselect the resource R1 in the second resource pool, or, if R0 is also included in the second resource pool, the first terminal device may continue to use R0 as a selected resource. Fig.17 Taking the first terminal device reselecting R1 as an example, the time slot corresponding to R1 is T1.
[0358] The first terminal device calculates the first time interval T gap , shift time slot T1 forward by T gap Get time slot T2_l , and move T1 backwards by T gap Get time slot T 2_r Time slot T 2_l and time slot T 2_r They are all time domain positions after movement.
[0359] If the time slot T 2_l There is a candidate resource R 2_l , time slot T 2_r There is a candidate resource R 2_r The first terminal device is based on the first time interval T gap , the time slot T 2_l Move forward T gap Get time slot T 3_l , and T 2_r Move T backward gap Get time slot T 3_r Time slot T 3_l and time slot T 3_r They are all time domain positions after movement.
[0360] For example, time slot T 3_l There is no candidate resource R 3_l , time slot T 3_r There is a candidate resource R 3_r , the first terminal device is based on the first time interval T gap , T 3_r Move T backward gap Get time slot T 4_r For example, time slot T 4_r If there is no candidate resource at the first terminal device, the first terminal device may determine R1, R 2_l , R 2_r and R 3_r The resource for final selection.
[0361] The above are some examples of the first situation of the first selection method. The first terminal device selects at least one resource for the first data from the candidate resources other than the first resource in the candidate resources according to the first resource and the first interval. There may also be a second selection method, which is described below.
[0362] 2. The second option.
[0363] In the second selection mode, the interval requirements between the selected resources are relatively loose, for example, the time interval between adjacent resources does not need to be strictly required to be the first time interval, but only needs to be greater than or equal to the first time interval, or the frequency interval between adjacent resources does not need to be strictly required to be the first frequency interval, but only needs to be greater than or equal to the first frequency interval, making the selection conditions more relaxed, more conducive to selecting resources, and helping to improve the success rate of resource selection. In addition, the second selection mode also distinguishes three situations.
[0364] The first case is that the first interval only includes the first time interval but does not include the first frequency interval, or the first interval includes the first time interval and the first frequency interval, but the first frequency interval is 0. If this is the case, it may mean that among the resources that need to be selected, the frequencies of two adjacent resources are the same. Then the first terminal device can use the time domain position where the second resource is located as the reference time domain position, move forward the first time interval in the time domain, or move backward the first time interval, or move forward the first time interval and move backward the first time interval. The first terminal device can select resources within the first range corresponding to the time domain position after the move, and the selected resources are part or all of the at least one resource. Among them, the first range does not include the time domain position between the reference time domain position and the time domain position after the move. For a detailed introduction to this situation, please refer to Figure 7 Relevant description of S72 in the embodiment shown.
[0365] Assuming that the first frequency interval is zero, under the selection condition of the first time interval, the process of a method for the first terminal device to select resources can refer to Fig.18 .
[0366] The first terminal device selects an initial resource R for the first data from the candidate resources included in the resource pool. i For example, the initial resource R i The corresponding time slot is T i .
[0367] For example, the first terminal device may randomly select an initial resource R i , i is, for example, 0. Initial resource R i It is the first resource.
[0368] The first terminal device calculates the first time interval (for example, T gap) , T i Move forward or backward T gap Get T i+1 , T i+1 It refers to the time domain position after the move, for example, the time slot after the move.
[0369] The first terminal device may determine a first range. At this time, the first range does not include the range from T i to T i+1 Candidate resources between.
[0370] If the first range does not include the candidate resource, the time domain end position of the first resource pool is moved backward by T s If the latency requirement is still met, the first resource pool can be replaced by the second resource pool [n+Q1, n+Q2+T s ]. Afterwards, the first step is repeatedly performed (ie, the first terminal device selects an initial resource for the first data from the candidate resources included in the resource pool).
[0371] Alternatively, if the first range includes the candidate resource, the first terminal device may select the next resource R in the first range. i+1 , the resource R i+1 The corresponding time slot is T i+1 .
[0372] If i+1 <N MAX -1, then i=i+1, and the second step is repeated (i.e., the first terminal device sets T i Move forward or backward T gap Get T i+1 ). If i+1≥N MAX -1 indicates that the number of selected resources is greater than or equal to the number of target resources, then new resource selection can be stopped and the final resource can be determined from the selected candidate resources.
[0373] The second situation is that the first interval only includes the first frequency interval but not the first time interval, or the first interval includes the first time interval and the first frequency interval, but the first time interval is 0. If this is the case, it may mean that among the resources that need to be selected, the time interval between two adjacent resources is 0. Then the first terminal device can use the frequency domain position where the second resource is located as the reference frequency domain position, move the first frequency interval upward in the frequency domain, or move the first frequency interval downward, or move the first frequency interval upward and move the first frequency interval downward, and the first terminal device can select resources within the second range corresponding to the frequency domain position after the move, and the selected resources are part or all of the at least one resource. The second range does not include the frequency domain position between the reference frequency domain position and the frequency domain position after the move. Moving upward in the frequency domain is, for example, understood as moving in the high frequency direction, and moving downward in the frequency domain is, for example, understood as moving in the low frequency direction. For a detailed introduction to this situation, please refer to. Figure 7 Relevant description of S72 in the embodiment shown.
[0374] The third case is that the first interval includes both the first frequency interval and the first time interval, and both the first time interval and the first frequency interval are not 0. If this is the case, the first terminal device needs to take into account the time domain conditions and the frequency domain conditions when selecting resources. For example, the first terminal device can use the time domain position where the second resource is located as the reference time domain position, and move the first time interval forward and / or backward in the time domain, and the first terminal device can use the frequency domain position where the second resource is located as the reference frequency domain position, and move the first frequency interval up and / or down in the frequency domain. The first terminal device can select resources within the third range corresponding to the moved time domain position and the moved frequency domain position, and the selected resources are part of or all of the at least one resource. The third range does not include the time domain position between the reference time domain position and the moved time domain position, and does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position.
[0375] Wherein, moving the first time interval forward and / or backward, for example, includes moving the first time interval forward, or moving the first time interval backward, or moving the first time interval forward and moving the first time interval backward. Similarly, moving the first frequency interval upward and / or downward, for example, includes moving the first frequency interval upward, or moving the first frequency interval downward, or moving the first frequency interval upward and moving the first frequency interval downward.
[0376] For a detailed description of this situation, please refer to Figure 7 Relevant description of S72 in the embodiment shown.
[0377] The following is the first case mentioned above (that is, the first interval includes only the first time interval but not the first frequency interval, or the first interval includes the first time interval and the first frequency interval, but the first frequency interval is 0), and N MAX =4 is taken as an example. MAX Indicates the number of target resources.
[0378] For reference Fig.19 The first resource pool is [n+Q1, n+Q2]. The first terminal device selects an initial resource R0, i.e., a first resource, from the first resource pool. The time slot corresponding to the initial resource R0 is T0. The first terminal device gap , shift time slot T0 forward by T gap Get time slot T 1_l , and shift T0 backward by T gap Get time slot T 1_r Time slot T 1_l and time slot T 1_r The first terminal device can determine the first range. At this time, the first range does not include time slots T0 and T1_r The candidate resources between time slots T0 and T 1_l If the first range includes candidate resources at this time, the first terminal device can select resource R1 and resource R2 in the first range, the time slot corresponding to resource R1 is T1, and the time slot corresponding to resource R2 is T2.
[0379] The first terminal device calculates the first time interval T gap , shift time slot T1 forward by T gap Get time slot T 2_l , and move T2 backwards by T gap Get time slot T 2_r Time slot T 2_l and time slot T 2_r The first terminal device can determine the first range. At this time, the first range does not include time slots T2 and T 2_r The candidate resources between time slots T1 and T 2_l Candidate resources between.
[0380] For example, the first range at this time does not include candidate resources, and the time domain end position of the first resource pool is moved backward by T s If the latency requirement is still met, the first resource pool can be replaced by the second resource pool [n+Q1, n+Q2+T s ]. The first terminal device reselects the initial resource R3, ie, the first resource, in the second resource pool, and the time slot corresponding to the initial resource R3 is T3.
[0381] The first terminal device calculates the first time interval T gap , shift time slot T3 forward by T gap Get time slot T 4_l , and move T3 backwards by T gap Get time slot T 4_r Time slot T 4_l and time slot T 4_r The first terminal device can determine the first range. At this time, the first range does not include time slots T3 and T4. 4_r The candidate resources between time slots T3 and T 4_l If the first range includes candidate resources at this time, the first terminal device can select the next resource R4 in the first range, and the time slot corresponding to the resource R4 is T4.
[0382] The first terminal device calculates the first time interval T gap , move time slot T4 forward by T gap Get time slot T 5_l , and move T4 backwards by Tgap Get time slot T 5_r Time slot T 5_l and time slot T 5_r The first terminal device can determine the first range. At this time, the first range does not include time slots T4 and T 5_r The candidate resources between time slots T4 and T 5_l If the first range includes candidate resources at this time, the first terminal device can select the next resource R5 in the first range, and the time slot corresponding to the resource R5 is T5.
[0383] The first terminal device calculates the first time interval T gap , move time slot T5 forward by T gap Get time slot T 6_l , and move T5 backwards T gap Get time slot T 6_r Time slot T 6_l and time slot T 6_r The first terminal device can determine the first range. At this time, the first range does not include time slots T5 and T 6_r The candidate resources between time slots T5 and T 6_l If the first range includes candidate resources at this time, the first terminal device can select the next resource R6 in the first range, and the time slot corresponding to the resource R6 is T6.
[0384] At this point, the first terminal device has selected four resources, and these four resources R3, R4, R5 and R6 can be used as the final selected resources. Alternatively, the first terminal device can continue to select so that the selected resources are greater than the target number of resources, and then the first terminal device determines N from the selected resources. MAX resources.
[0385] The above examples of the first and second selection methods are only for the purpose of facilitating the understanding of the technical solution of the embodiment of the present application and cannot be regarded as limiting the solution provided by the embodiment of the present application. MAX The value may also be larger or smaller, and when moving in the time domain, it may only move forward but not backward. When replacing the first resource pool, both the time domain starting position and the time domain ending position of the first resource pool may be moved, and so on. The embodiments of the present application are not limited thereto.
[0386] S145: The first terminal device sends the first data to the second terminal device through the selected resource, and the second terminal device receives the first data from the first terminal device through the selected resource.
[0387] After selecting the resource, the first terminal device can send the first data to the second terminal device through the selected resource. The number of resources used by the first terminal device to send the first data can be equal to the number of target resources or less than the number of target resources. S145 is an optional step.
[0388] In the resource selection process provided by the embodiment of the present application, if the number of selected resources is less than the target number of resources and there are no candidate resources that meet the selection conditions, then a new selection can be made. For example, new candidate resources can be introduced by moving the resource pool, so that enough resources can be selected as much as possible, thereby improving the success rate of resource selection.
[0389] The embodiments of the present application also further improve the overall resource allocation process and design under mode-2 of NR-V2X.
[0390] The following describes the device used to implement the above method in the embodiment of the present application in conjunction with the accompanying drawings. Therefore, the above content can be used in subsequent embodiments, and the repeated content will not be repeated.
[0391] Fig. 20 This is a schematic block diagram of a communication device 2000 provided in an embodiment of the present application. Exemplarily, the communication device 2000 is, for example, a first terminal device 2000.
[0392] The first terminal device 2000 includes a processing module 2010 and a transceiver module 2020. Exemplarily, the first terminal device 2000 may be a terminal device, or may be a chip applied to a terminal device or other combined devices, components, etc. having the above-mentioned terminal device functions. When the first terminal device 2000 is a terminal device, the transceiver module 2020 may be a transceiver, which may include an antenna and a radio frequency circuit, etc., and the processing module 2010 may be a processor, such as a baseband processor, which may include one or more CPUs. When the first terminal device 2000 is a component having the function of a terminal device, the transceiver module 2020 may be a radio frequency unit, and the processing module 2010 may be a processor, such as a baseband processor. When the first terminal device 2000 is a chip system, the transceiver module 2020 may be an input and output interface of a chip (such as a baseband chip), and the processing module 2010 may be a processor of the chip system, which may include one or more central processing units. It should be understood that the processing module 2010 in the embodiment of the present application can be implemented by a processor or a processor-related circuit component, and the transceiver module 2020 can be implemented by a transceiver or a transceiver-related circuit component. Optionally, the first terminal device 2000 may also include a storage module, and the storage module may be, for example, a memory. Alternatively, the first terminal device 2000 may also not include a storage module, and the storage module is located outside the first terminal device 2000. Regardless of whether the storage module is located inside the first terminal device 2000 or outside the first terminal device 2000, the storage module can be used to store computer instructions, and the processing module 2010 calls the computer instructions stored in the storage module to execute Figure 7 The operations performed by the first terminal device in the illustrated embodiment.
[0393] The processing module 2010 can be used to execute Figure 7 In the embodiment shown, all operations except the transceiver operation performed by the first terminal device, such as S71 and S72, and / or other processes for supporting the technology described herein. The transceiver module 220 may be used to perform Figure 7 All receiving operations performed by the first terminal device in the illustrated embodiment, such as S73, and / or other processes for supporting the technology described herein.
[0394] In addition, the transceiver module 2020 may be a functional module that can perform both sending and receiving operations. For example, the transceiver module 2020 may be used to perform Figure 7In the embodiment shown, all sending operations and receiving operations performed by the first terminal device, for example, when performing a sending operation, the transceiver module 2020 can be considered as a sending module, and when performing a receiving operation, the transceiver module 2020 can be considered as a receiving module; or, the transceiver module 2020 can also be two functional modules, and the transceiver module can be regarded as a general term for the two functional modules, which are respectively a sending module (for example, corresponding to a transmitter, a radio frequency unit or an output interface) and a receiving module (for example, corresponding to a receiver, a radio frequency unit or an input interface). The sending module is used to complete the sending operation, for example, the sending module can be used to perform Figure 7 In the embodiment shown, all sending operations are performed by the first terminal device. The receiving module is used to complete the receiving operation. For example, the receiving module can be used to perform Figure 7 The embodiment shown shows all receiving operations performed by the first terminal device.
[0395] The processing module 2010 is configured to select a first resource for the first data from candidate resources included in the resource pool, wherein the candidate resources include resources whose reference signal received power is less than or equal to a first threshold;
[0396] The processing module 2010 is further configured to select at least one resource for the first data from candidate resources other than the first resource in the candidate resources according to the first resource and a first interval, wherein the first interval includes a first time interval satisfied between the selected first resource and two adjacent resources in the at least one resource, and / or includes a first frequency interval satisfied between the selected first resource and two adjacent resources in the at least one resource;
[0397] The number of candidate resources is greater than or equal to X% of the total number of resources included in the resource pool, and the value of X satisfies the following conditions:
[0398] The value of X is set according to the number of target resources; or,
[0399] The value of X is set according to the number of target resources and the first time interval; or,
[0400] The value of X is set according to the number of target resources, the first time interval and the first frequency interval; or, the value of X is set according to the priority of the service;
[0401] The total number of the first resource and the at least one resource is less than or equal to the target number of resources.
[0402] As an optional implementation manner, the transceiver module 2020 is configured to send the first data to the second terminal device through the selected resources. The selected resources, for example, include the first resource and the at least one resource.
[0403] In an optional implementation, the target number of resources is related to the QoS of the first data and / or configuration information of the resource pool.
[0404] As an optional implementation, the value of X is set according to the number of resources to be selected, including:
[0405] The larger the number of target resources is, the larger the value of X is.
[0406] As an optional implementation manner, the value of X is set according to the number of target resources and the first time interval, including:
[0407] On the premise that the number of target resources is certain, the smaller the first time interval is, the larger the value of X is.
[0408] As an optional implementation manner, the value of X is set according to the number of target resources, the first time interval and the first frequency interval, including:
[0409] On the premise that the number of target resources and the first time interval are constant, the smaller the first frequency interval is, the larger the value of X is.
[0410] As an optional implementation, the value of X is set according to the priority of the service, including:
[0411] The higher the priority of the service, the larger the value of X.
[0412] As an optional implementation manner, the processing module 2010 is further configured to:
[0413] Determining that there are no selectable candidate resources except the first resource and the third resource among the candidate resources, and the total number of the first resource and the third resource is less than the number of target resources, wherein the third resource includes the selected resources among the candidate resources except the first resource;
[0414] selecting a second resource from among the candidate resources;
[0415] One or more resources are selected for the first data from among the candidate resources excluding the second resource according to the second resource and the first interval.
[0416] As an optional implementation, the transceiver module 2020 is further configured to send the first data to the second terminal device via the selected resources. The selected resources, for example, include the second resource and the one or more resources.
[0417] As an optional implementation manner, the processing module 2010 is configured to select at least one resource from the candidate resources except the first resource in the candidate resources according to the first resource and the first interval in the following manner:
[0418] Taking the time domain position where the first resource is located as the reference time domain position, moving forward and / or backward in the time domain by a first time interval, and using the candidate resources corresponding to the moved time domain position as part or all of the at least one resource, wherein the first interval includes the first time interval; or,
[0419] Taking the frequency domain position where the first resource is located as the reference frequency domain position, moving a first frequency interval upward and / or downward in the frequency domain, and using the candidate resources corresponding to the moved frequency domain position as part or all of the at least one resource, the first interval including the first frequency interval; or,
[0420] Taking the time domain position where the first resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the first resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and use the candidate resources corresponding to the moved time domain position and frequency domain position as part or all of the at least one resource, and the first interval includes the first time interval and the first frequency interval.
[0421] As an optional implementation manner, the processing module 2010 is configured to select at least one resource from the candidate resources except the first resource in the candidate resources according to the first resource and the first interval in the following manner:
[0422] Taking the time domain position where the first resource is located as the reference time domain position, moving forward and / or backward for a first time interval in the time domain, selecting resources within a first range corresponding to the time domain position after the movement, wherein the selected resources are part or all of the at least one resource, the first range does not include the time domain position between the reference time domain position and the time domain position after the movement, and the first interval includes the first time interval; or,
[0423] Taking the frequency domain position where the first resource is located as the reference frequency domain position, moving the first frequency interval upward and / or downward in the frequency domain, selecting resources within a second range corresponding to the moved frequency domain position, wherein the selected resources are part or all of the at least one resource, the second range does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first frequency interval; or,
[0424] Taking the time domain position where the first resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the first resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and select resources within a third range corresponding to the moved time domain position and the moved frequency domain position, the selected resources are part or all of the at least one resource, the third range does not include the time domain position between the reference time domain position and the moved time domain position, and does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first time interval and the first frequency interval.
[0425] Fig.21 This is a schematic block diagram of a communication device 2100 provided in an embodiment of the present application. Exemplarily, the communication device 2100 is, for example, a first terminal device 2100.
[0426] The first terminal device 2100 includes a processing module 2110 and a transceiver module 2120. Exemplarily, the first terminal device 2100 may be a terminal device, or may be a chip applied to a terminal device or other combined devices, components, etc. having the above-mentioned terminal device functions. When the first terminal device 2100 is a terminal device, the transceiver module 2120 may be a transceiver, which may include an antenna and a radio frequency circuit, etc., and the processing module 2110 may be a processor, such as a baseband processor, which may include one or more CPUs. When the first terminal device 2100 is a component having the function of a terminal device, the transceiver module 2120 may be a radio frequency unit, and the processing module 2110 may be a processor, such as a baseband processor. When the first terminal device 2100 is a chip system, the transceiver module 2120 may be an input and output interface of a chip (such as a baseband chip), and the processing module 2110 may be a processor of the chip system, which may include one or more central processing units. It should be understood that the processing module 2010 in the embodiment of the present application can be implemented by a processor or a processor-related circuit component, and the transceiver module 2120 can be implemented by a transceiver or a transceiver-related circuit component. Optionally, the first terminal device 2100 may also include a storage module, and the storage module may be, for example, a memory. Alternatively, the first terminal device 2100 may not include a storage module, and the storage module may be located outside the first terminal device 2100. Regardless of whether the storage module is located inside or outside the first terminal device 2100, the storage module may be used to store computer instructions, and the processing module 2110 calls the computer instructions stored in the storage module to execute Fig.14 The operations performed by the first terminal device in the illustrated embodiment.
[0427] The processing module 2110 can be used to execute Fig.14 In the embodiment shown, all operations except the transceiver operation performed by the first terminal device, such as S141, S142, S143 and S144, and / or other processes for supporting the technology described herein. The transceiver module 2120 may be used to perform Fig.14 All receiving operations performed by the first terminal device in the illustrated embodiment, such as S145, and / or other processes for supporting the technology described herein.
[0428] In addition, the transceiver module 2120 may be a functional module that can perform both sending and receiving operations. For example, the transceiver module 2120 may be used to perform Fig.14In the embodiment shown, all sending operations and receiving operations performed by the first terminal device, for example, when performing a sending operation, the transceiver module 2120 can be considered as a sending module, and when performing a receiving operation, the transceiver module 2120 can be considered as a receiving module; or, the transceiver module 2120 can also be two functional modules, and the transceiver module can be regarded as a general term for the two functional modules, which are respectively a sending module (for example, corresponding to a transmitter, a radio frequency unit or an output interface) and a receiving module (for example, corresponding to a receiver, a radio frequency unit or an input interface). The sending module is used to complete the sending operation, for example, the sending module can be used to perform Fig.14 In the embodiment shown, all sending operations are performed by the first terminal device. The receiving module is used to complete the receiving operation. For example, the receiving module can be used to perform Fig.14 The embodiment shown shows all receiving operations performed by the first terminal device.
[0429] The processing module 2110 is configured to select a first resource for the first data from the first candidate resources included in the first resource pool, where the first candidate resources include resources whose reference signal received power is less than or equal to a first threshold;
[0430] The processing module 2110 is further used to determine, based on the first resource and the first interval, that there are no selectable candidate resources in the candidate resources other than the first resource and the third resource in the first candidate resources, and that the total number of the first resources and the third resources is less than the target number of resources, wherein the third resource includes selected resources in the candidate resources other than the first resource, and the first interval includes a first time interval satisfied between two adjacent resources selected from the first resource and the third resource, and / or includes a first frequency interval satisfied between two adjacent resources selected from the first resource and the third resource;
[0431] The processing module 2110 is further configured to replace the first resource pool with a second resource pool;
[0432] The processing module 2110 is also used to select at least one resource from the second candidate resources included in the second resource pool except the second resource based on the second resource in the second resource pool and the first interval, and the second candidate resources include resources whose reference signal receiving power is less than or equal to the first threshold.
[0433] As an optional implementation manner, the transceiver module 2120 is configured to send the first data to the second terminal device through the selected resources. The selected resources, for example, include the second resource and the at least one resource.
[0434] In an optional implementation, the target number of resources is related to the QoS of the first data and / or configuration information of the first resource pool.
[0435] As an optional implementation,
[0436] The second resource and the first resource are the same resource; or,
[0437] The processing module 2110 is further configured to select the second resource from the candidate resources included in the second resource pool.
[0438] As an optional implementation manner, the processing module 2110 is configured to replace the first resource pool with the second resource pool in the following manner:
[0439] In the time domain, the time domain end position of the first resource pool is moved backward by a first duration to obtain the second resource pool; or,
[0440] In the time domain, a time domain start position of the first resource pool is moved backward by a second duration, and a time domain end position of the first resource pool is moved backward by a third duration, so as to obtain the second resource pool.
[0441] As an optional implementation manner, the processing module 2110 is configured to select at least one resource from the second candidate resources included in the second resource pool except the second resource according to the second resource and the first interval in the following manner:
[0442] Taking the time domain position where the second resource is located as the reference time domain position, moving forward and / or backward in the time domain by a first time interval, and using the candidate resources corresponding to the moved time domain position as part or all of the at least one resource, the first interval including the first time interval; or,
[0443] Taking the frequency domain position where the second resource is located as the reference frequency domain position, moving the first frequency interval upward and / or downward in the frequency domain, and using the candidate resources corresponding to the moved frequency domain position as part or all of the at least one resource, the first interval including the first frequency interval; or,
[0444] Taking the time domain position where the second resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the second resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and use the candidate resources corresponding to the moved time domain position and frequency domain position as part or all of the at least one resource, and the first interval includes the first time interval and the first frequency interval.
[0445] As an optional implementation manner, the processing module 2110 is configured to select at least one resource from the second candidate resources included in the second resource pool except the second resource according to the second resource and the first interval in the following manner:
[0446] Taking the time domain position where the second resource is located as the reference time domain position, moving forward and / or backward for a first time interval in the time domain, selecting resources within a first range corresponding to the time domain position after the movement, wherein the selected resources are part or all of the at least one resource, the first range does not include the time domain position between the reference time domain position and the time domain position after the movement, and the first interval includes the first time interval; or,
[0447] Taking the frequency domain position where the second resource is located as the reference frequency domain position, moving the first frequency interval upward and / or downward in the frequency domain, selecting resources within a second range corresponding to the moved frequency domain position, wherein the selected resources are part or all of the at least one resource, the second range does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first frequency interval; or,
[0448] Taking the time domain position where the second resource is located as the reference time domain position, move forward and / or backward in the time domain for a first time interval, and taking the frequency domain position where the second resource is located as the reference frequency domain position, move up and / or down in the frequency domain for a first frequency interval, and select resources within a third range corresponding to the moved time domain position and the moved frequency domain position, the selected resources are part or all of the at least one resource, the third range does not include the time domain position between the reference time domain position and the moved time domain position, and does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first time interval and the first frequency interval.
[0449] The embodiment of the present application further provides a communication device, which may be a terminal device or a circuit. The communication device may be used to execute the action executed by the first terminal device in the above method embodiment.
[0450] When the communication device is a terminal device, Fig. 22 A simplified schematic diagram of the structure of a terminal device is shown. For ease of understanding and illustration, Fig. 22 In the example, a mobile phone is used as the terminal device. Fig. 22As shown, the terminal device includes a processor, a memory, a radio frequency circuit, an antenna, and an input-output device. The processor is mainly used to process communication protocols and communication data, as well as to control the terminal device, execute software programs, process software program data, etc. The memory is mainly used to store software programs and data. The radio frequency circuit is mainly used for conversion between baseband signals and radio frequency signals and processing of radio frequency signals. The antenna is mainly used to send and receive radio frequency signals in the form of electromagnetic waves. Input-output devices, such as touch screens, display screens, keyboards, etc., are mainly used to receive data input by users and output data to users. It should be noted that some types of terminal devices may not have input-output devices.
[0451] When data needs to be sent, the processor performs baseband processing on the data to be sent and outputs the baseband signal to the RF circuit. The RF circuit performs RF processing on the baseband signal and then sends the RF signal outward in the form of electromagnetic waves through the antenna. When data is sent to the terminal device, the RF circuit receives the RF signal through the antenna, converts the RF signal into a baseband signal, and outputs the baseband signal to the processor. The processor converts the baseband signal into data and processes the data. For ease of explanation, Fig. 22 Only one memory and processor are shown. In an actual terminal device product, there may be one or more processors and one or more memories. The memory may also be referred to as a storage medium or a storage device. The memory may be set independently of the processor or may be integrated with the processor, and the embodiments of the present application do not limit this.
[0452] In the embodiments of the present application, the antenna and the radio frequency circuit with transceiver functions may be regarded as the transceiver unit of the terminal device (the transceiver unit may be a functional unit that can realize the sending function and the receiving function; or the transceiver unit may also include two functional units, namely, a receiving unit that can realize the receiving function and a sending unit that can realize the sending function), and the processor with processing function may be regarded as the processing unit of the terminal device. Fig. 22 As shown, the terminal device includes a transceiver unit 2210 and a processing unit 2220. The transceiver unit may also be referred to as a transceiver, a transceiver, a transceiver device, etc. The processing unit may also be referred to as a processor, a processing board, a processing module, a processing device, etc. Optionally, the device used to implement the receiving function in the transceiver unit 2210 may be regarded as a receiving unit, and the device used to implement the sending function in the transceiver unit 2210 may be regarded as a sending unit, that is, the transceiver unit 2210 includes a receiving unit and / or a sending unit. The transceiver unit may also be sometimes referred to as a transceiver, a transceiver, or a transceiver circuit, etc. The receiving unit may also be sometimes referred to as a receiver, a receiver, or a receiving circuit, etc. The sending unit may also be sometimes referred to as a transmitter, a transmitter, or a transmitting circuit, etc.
[0453] It should be understood that the transceiver unit 2210 is used to perform the sending operation and the receiving operation on the first terminal device side in the above method embodiment, and the processing unit 2220 is used to perform other operations except the sending and receiving operation on the first terminal device in the above method embodiment.
[0454] For example, in one implementation, the transceiver unit 2210 is used to execute Figure 7 In the embodiment shown, all sending operations and receiving operations of the first terminal device, such as S73, and / or the transceiver unit 2210 is also used to perform other processes supporting the technology described herein. The processing unit 2220 is used to perform Figure 7 In the illustrated embodiment, all operations except the transceiver operations are performed by the first terminal device, such as S71 and S72, and / or the processing unit 2220 is also used to perform other processes supporting the technology described herein.
[0455] For example, in one implementation, the transceiver unit 2210 is used to execute Fig.14 In the embodiment shown, all sending operations and receiving operations of the first terminal device, such as S145, and / or the transceiver unit 2210 is also used to perform other processes supporting the technology described herein. The processing unit 2220 is used to perform Fig.14 In the illustrated embodiment, all operations except the sending and receiving operations performed by the first terminal device, such as S141 to S144, and / or the processing unit 2220 is also used to perform other processes supporting the technology described herein.
[0456] When the communication device is a chip-type device or circuit, the device may include a transceiver unit and a processing unit, wherein the transceiver unit may be an input / output circuit and / or a communication interface; and the processing unit may be an integrated processor or microprocessor or integrated circuit.
[0457] When the communication device in this embodiment is a terminal device, it can refer to Fig.23 As an example, the device can perform similar Fig. 20 As another example, the device can perform similar Fig.21 The function of processing module 2110 is Fig.23 In the embodiment, the device includes a processor 2310, a sending data processor 2320, and a receiving data processor 2330. The processing module 2010 in the above embodiment can be Fig.23 The processor 2310 in the embodiment can perform corresponding functions; the transceiver module 2310 in the embodiment can be Fig.23 The sending data processor 2320 and / or the receiving data processor 2330 in the embodiment can perform the corresponding functions. Alternatively, the processing module 2110 in the above embodiment can be Fig.23 The processor 2310 in the embodiment can perform corresponding functions; the transceiver module 2120 in the embodiment can be Fig.23 The sending data processor 2320 and / or the receiving data processor 2330 in the embodiment of the present invention perform the corresponding functions. Fig.23 A channel encoder and a channel decoder are shown in the figure, but it can be understood that these modules do not constitute a restrictive description of this embodiment and are only illustrative.
[0458] Fig.24 Another form of this embodiment is shown. The processing device 2400 includes modules such as a modulation subsystem, a central processing subsystem, and a peripheral subsystem. The communication device in this embodiment can be used as a modulation subsystem therein. Specifically, the modulation subsystem may include a processor 2403 and an interface 2404. Among them, the processor 2403 completes the function of the above-mentioned processing module 2010, and the interface 2404 completes the function of the above-mentioned transceiver module 2020. Alternatively, the processor 2403 completes the function of the above-mentioned processing module 2110, and the interface 2404 completes the function of the above-mentioned transceiver module 2120. As another variation, the modulation subsystem includes a memory 2406, a processor 2403, and a program stored on the memory 2406 and executable on the processor, and the processor 2403 implements the method on the terminal device side in the above-mentioned method embodiment when executing the program. It should be noted that the memory 2406 may be non-volatile or volatile, and its location may be located inside the modulation subsystem or in the processing device 2400, as long as the memory 2406 can be connected to the processor 2403.
[0459] The embodiment of the present application provides a first communication system. The first communication system may include the above Figure 7 The first terminal device involved in the embodiment shown is, for example, Fig. 20 The first terminal device 2000 in.
[0460] The embodiment of the present application provides a second communication system. The first communication system may include the above Fig.14 The first terminal device involved in the embodiment shown is, for example, Fig.21 The first terminal device 2100 in.
[0461] The first communication system and the second communication system may be the same communication system, or different communication systems.
[0462] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer can implement the method provided in the above method embodiment. Figure 7The process related to the first terminal device in the embodiment shown.
[0463] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer can implement the method provided in the above method embodiment. Fig.14 The process related to the first terminal device in the embodiment shown.
[0464] The present application also provides a computer program product, which is used to store a computer program. When the computer program is executed by a computer, the computer can implement the method provided in the above method embodiment. Figure 7 The process related to the first terminal device in the embodiment shown.
[0465] The present application also provides a computer program product, which is used to store a computer program. When the computer program is executed by a computer, the computer can implement the method provided in the above method embodiment. Fig.14 The process related to the first terminal device in the embodiment shown.
[0466] It should be understood that the processor mentioned in the embodiments of the present application may be a CPU, or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0467] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (doubledatarate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM), and direct rambus RAM (DR RAM).
[0468] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) is integrated in the processor.
[0469] It should be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0470] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0471] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0472] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0473] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0474] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0475] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0476] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0477] The above is only a specific implementation of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiments of the present application, which should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be based on the protection scope of the claims.
Claims
1. A resource selection method, characterized in that: include: Selecting a first resource for the first data from candidate resources included in the resource pool, wherein the candidate resources include resources whose reference signal received power is less than or equal to a first threshold; selecting at least one resource for the first data from candidate resources other than the first resource among the candidate resources according to the first resource and a first interval, wherein the first interval includes a first time interval satisfied between the selected first resource and two adjacent resources among the at least one resource, and / or includes a first frequency interval satisfied between the selected first resource and two adjacent resources among the at least one resource; The number of candidate resources is greater than or equal to X% of the total number of resources included in the resource pool, and the value of X satisfies the following conditions: The value of X is set according to the number of target resources, where the number of target resources is the number of resources required to be selected for transmitting the first data; or, The value of X is set according to the number of target resources and the first time interval, where the number of target resources is the number of resources required to be selected for transmitting the first data; or, The value of X is set according to the number of target resources, the first time interval and the first frequency interval, and the target number of resources is the number of resources required to be selected for transmitting the first data; or, The value of X is set according to the priority of the service; The total number of the first resource and the at least one resource is less than or equal to the target number of resources.
2. The method according to claim 1, characterized in that The target number of resources is related to the QoS of the first data and / or the configuration information of the resource pool.
3. The method according to claim 1 or 2, characterized in that: The value of X is set according to the number of resources to be selected, including: The larger the number of target resources is, the larger the value of X is.
4. The method according to claim 1 or 2, characterized in that: The value of X is set according to the number of target resources and the first time interval, including: On the premise that the number of target resources is certain, the smaller the first time interval is, the larger the value of X is.
5. The method according to claim 1 or 2, characterized in that: The value of X is set according to the number of target resources, the first time interval, and the first frequency interval, including: On the premise that the number of target resources and the first time interval are constant, the smaller the first frequency interval is, the larger the value of X is.
6. The method according to claim 1 or 2, characterized in that: The value of X is set according to the service priority, including: The higher the priority of the service, the larger the value of X.
7. The method according to claim 1 or 2, characterized in that: The method further comprises: Determining that there are no selectable candidate resources except the first resource and the third resource among the candidate resources, and the total number of the first resource and the third resource is less than the number of target resources, wherein the third resource includes the selected resources among the candidate resources except the first resource; selecting a second resource from among the candidate resources; One or more resources are selected for the first data from among the candidate resources excluding the second resource according to the second resource and the first interval.
8. The method according to claim 1 or 2, characterized in that: Selecting at least one resource from the candidate resources other than the first resource in the candidate resources according to the first resource and the first interval includes: Taking the time domain position where the first resource is located as the reference time domain position, moving forward and / or backward in the time domain by a first time interval, and using the candidate resources corresponding to the moved time domain position as part or all of the at least one resource, wherein the first interval includes the first time interval; or, Taking the frequency domain position where the first resource is located as the reference frequency domain position, moving a first frequency interval upward and / or downward in the frequency domain, and using the candidate resources corresponding to the moved frequency domain position as part or all of the at least one resource, the first interval including the first frequency interval; or, Taking the time domain position where the first resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the first resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and use the candidate resources corresponding to the moved time domain position and frequency domain position as part or all of the at least one resource, and the first interval includes the first time interval and the first frequency interval.
9. The method according to claim 1 or 2, characterized in that: Selecting at least one resource from the candidate resources other than the first resource in the candidate resources according to the first resource and the first interval includes: Taking the time domain position where the first resource is located as the reference time domain position, moving forward and / or backward for a first time interval in the time domain, selecting resources within a first range corresponding to the time domain position after the movement, wherein the selected resources are part or all of the at least one resource, the first range does not include the time domain position between the reference time domain position and the time domain position after the movement, and the first interval includes the first time interval; or, Taking the frequency domain position where the first resource is located as the reference frequency domain position, moving the first frequency interval upward and / or downward in the frequency domain, selecting resources within a second range corresponding to the moved frequency domain position, wherein the selected resources are part or all of the at least one resource, the second range does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first frequency interval; or, Taking the time domain position where the first resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the first resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and select resources within a third range corresponding to the moved time domain position and the moved frequency domain position, the selected resources are part or all of the at least one resource, the third range does not include the time domain position between the reference time domain position and the moved time domain position, and does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first time interval and the first frequency interval.
10. A terminal device, characterized in that: include: A communication interface for communicating with other devices; A processor, configured to select a first resource for the first data from candidate resources included in the resource pool, wherein the candidate resources include resources having a reference signal received power less than or equal to a first threshold; selecting at least one resource for the first data from candidate resources other than the first resource among the candidate resources according to the first resource and a first interval, wherein the first interval includes a first time interval satisfied between the selected first resource and two adjacent resources among the at least one resource, and / or includes a first frequency interval satisfied between the selected first resource and two adjacent resources among the at least one resource; The number of candidate resources is greater than or equal to X% of the total number of resources included in the resource pool, and the value of X satisfies the following conditions: The value of X is set according to the number of target resources, where the number of target resources is the number of resources required to be selected for transmitting the first data; or, The value of X is set according to the number of target resources and the first time interval, where the number of target resources is the number of resources required to be selected for transmitting the first data; or, The value of X is set according to the number of target resources, the first time interval and the first frequency interval, and the target number of resources is the number of resources required to be selected for transmitting the first data; or, The value of X is set according to the priority of the service; The total number of the first resource and the at least one resource is less than or equal to the target number of resources.
11. The terminal device according to claim 10, characterized in that: The target number of resources is related to the QoS of the first data and / or the configuration information of the resource pool.
12. The terminal device according to claim 10 or 11, characterized in that: The value of X is set according to the number of resources to be selected, including: The larger the number of target resources is, the larger the value of X is.
13. The terminal device according to claim 10 or 11, characterized in that: The value of X is set according to the number of target resources and the first time interval, including: On the premise that the number of target resources is certain, the smaller the first time interval is, the larger the value of X is.
14. The terminal device according to claim 10 or 11, characterized in that: The value of X is set according to the number of target resources, the first time interval, and the first frequency interval, including: On the premise that the number of target resources and the first time interval are constant, the smaller the first frequency interval is, the larger the value of X is.
15. The terminal device according to claim 10 or 11, characterized in that: The value of X is set according to the service priority, including: The higher the priority of the service, the larger the value of X.
16. The terminal device according to claim 10 or 11, characterized in that: The processor is further configured to: Determining that there are no selectable candidate resources except the first resource and the third resource among the candidate resources, and the total number of the first resource and the third resource is less than the number of target resources, wherein the third resource includes the selected resources among the candidate resources except the first resource; selecting a second resource from among the candidate resources; One or more resources are selected for the first data from among the candidate resources excluding the second resource according to the second resource and the first interval.
17. The terminal device according to claim 10 or 11, characterized in that: The processor is configured to select at least one resource from the candidate resources except the first resource in the candidate resources according to the first resource and the first interval in the following manner: Taking the time domain position where the first resource is located as the reference time domain position, moving forward and / or backward in the time domain by a first time interval, and using the candidate resources corresponding to the moved time domain position as part or all of the at least one resource, wherein the first interval includes the first time interval; or, Taking the frequency domain position where the first resource is located as the reference frequency domain position, moving a first frequency interval upward and / or downward in the frequency domain, and using the candidate resources corresponding to the moved frequency domain position as part or all of the at least one resource, the first interval including the first frequency interval; or, Taking the time domain position where the first resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the first resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and use the candidate resources corresponding to the moved time domain position and frequency domain position as part or all of the at least one resource, and the first interval includes the first time interval and the first frequency interval.
18. The terminal device according to claim 10 or 11, characterized in that: The processor is configured to select at least one resource from the candidate resources except the first resource in the candidate resources according to the first resource and the first interval in the following manner: Taking the time domain position where the first resource is located as the reference time domain position, moving forward and / or backward for a first time interval in the time domain, selecting resources within a first range corresponding to the time domain position after the movement, wherein the selected resources are part or all of the at least one resource, the first range does not include the time domain position between the reference time domain position and the time domain position after the movement, and the first interval includes the first time interval; or, Taking the frequency domain position where the first resource is located as the reference frequency domain position, moving the first frequency interval upward and / or downward in the frequency domain, selecting resources within a second range corresponding to the moved frequency domain position, wherein the selected resources are part or all of the at least one resource, the second range does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first frequency interval; or, Taking the time domain position where the first resource is located as the reference time domain position, move forward and / or backward in the time domain by a first time interval, and taking the frequency domain position where the first resource is located as the reference frequency domain position, move up and / or down in the frequency domain by a first frequency interval, and select resources within a third range corresponding to the moved time domain position and the moved frequency domain position, the selected resources are part or all of the at least one resource, the third range does not include the time domain position between the reference time domain position and the moved time domain position, and does not include the frequency domain position between the reference frequency domain position and the moved frequency domain position, and the first interval includes the first time interval and the first frequency interval.
19. A communication system, characterized in that: The communication system includes a terminal device as described in any one of claims 10 to 18.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 9.
21. A communication device, characterized in that: The communication device comprises one or more processors and a memory, wherein the one or more processors are coupled to the memory, and the memory is used to store instructions. When the instructions are executed by the one or more processors, the communication device executes the method according to any one of claims 1 to 9.
