Resource allocation method and device for d2d communication, medium, program product

By determining the intersection resources through information exchange and channel sensing between user equipment, the resource conflict problem of multiple user equipment access in D2D communication is solved, and reliable resource allocation and communication efficiency improvement are achieved.

CN116437456BActive Publication Date: 2026-01-23HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111674952.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2026-01-23
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

In D2D communication, resource conflicts are prone to occur when multiple user devices access the network simultaneously. Existing technologies struggle to reliably allocate resources, especially in cellular networks and decentralized networks where conflicts arise due to hidden user devices and random resource selection.

Method used

Through information exchange between the first user equipment and the second user equipment, the first user equipment receives the idle time domain resource information of the second user equipment, and determines the idle time domain resources in the intersection by combining its own channel sensing results, and sends a link establishment request message. The second user equipment carries the idle time domain resource information in the access response to assist in determining reliable resource allocation.

Benefits of technology

It achieves reliable resource allocation in D2D communication, avoids resource conflicts when multiple user devices access the network simultaneously, and improves the reliability and efficiency of communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116437456B_ABST
    Figure CN116437456B_ABST
Patent Text Reader

Abstract

The application discloses a resource allocation method and device for D2D communication, a medium, and a program product. The method comprises the following steps: a first user equipment sends an access request to a second user equipment, receives an access response from the second user equipment, wherein the access response comprises first idle time domain resource information of the second user equipment, and determines third idle time domain resources according to the first idle time domain resource information and second idle time domain resource information. The second idle time domain resource information comprises at least one second idle time domain resource determined according to a current channel listening result. And a link establishment request message is sent to the second user equipment according to the third idle time domain resources. According to the first idle time domain resource information of the second user equipment and the second idle time domain resource information determined by the first user equipment, the idle time domain resources for sending the link establishment request message can be accurately determined, the resource allocation for D2D communication can be reliably realized, and resource conflicts during simultaneous access of multiple user equipments can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a resource allocation method, apparatus, medium, and program product for device-to-device (D2D) communication. Background Technology

[0002] A centralized network consists of a management device and several member devices. For example... Figure 1 The diagram illustrates the process of a member device accessing a centralized network. When a member device needs to join the network, it first searches for the management device and sends message 1 (MSG1) to it at a specific time point. Upon receiving MSG1, the management device sends message 2 (MSG2) to the member device and allocates access resource candidate status to it. After receiving MSG2 from the management device, the member device sends message 3 (MSG3). Upon receiving MSG3, the management device authenticates the member device and sends the authentication result to it via message 4 (MSG4). If authentication is successful, service resources are allocated to the member device, which can then send service data.

[0003] When allocating access resources in a cellular network, the access network device indicates the transmission resource location of message 3 in message 2. Message 2 is scrambled using a radio network tempory identity (RNTI). User equipment (UE) that correctly descrambles message 2 directly uses the authorized resources it carries to send message 3. In a cellular network, access resources cannot be allocated to multiple user equipments simultaneously.

[0004] Long Term Evolution (LTE) vehicle-to-X (V2X) wireless communication technology employs a user equipment (UE) autonomous resource allocation scheme based on a decentralized network. Before transmitting service data, each UE listens for a period of time. Based on the sidelink control information (SCI) and signal strength detected, it excludes resources already used by other UEs and then randomly selects transmission resources from the remaining resource set. For example... Figure 2The diagram illustrating LTE V2X monitoring and resource reservation shows that, within the resource monitoring window, before User Equipment 2 transmits service data, it excludes resources already used by User Equipment 1 and randomly selects transmission resources from the remaining resource set. Similarly, before User Equipment 3 transmits service data, it excludes resources already used by User Equipment 1 and User Equipment 2 and randomly selects transmission resources from the remaining resource set. However, because User Equipment first excludes resources already occupied by other User Equipments and then randomly selects from the remaining free resources, there is a certain probability that multiple User Equipments will select the same transmission resource when they perform resource selection simultaneously.

[0005] In particular, such as Figure 3 The diagram illustrates a hidden user equipment (UE). This issue arises when UE autonomously selects resources. UE 2 and UE 3 need to send data simultaneously. However, due to the large distance between them, UE 2 and UE 3 cannot detect each other. Furthermore, UE 2 and UE 3 may select the same transmission resource. Consequently, UE 1, located between UE 2 and UE 3, cannot receive data from either UE 2 or UE 3.

[0006] In addition, the third-generation partnership program (3 rd The Data-to-Device (D2D) resource selection without network coverage, as defined by the Generation Partnership Project (3GPP), is based on random resource selection. User equipment (UE) randomly selects transmission resources for transmission when it needs to send data. However, when multiple UEs transmit data simultaneously, transmission resource conflicts can occur, compromising the reliability of resource allocation.

[0007] In view of this, for a centralized network, how to reliably allocate resources for D2D communication and avoid resource conflicts when multiple user devices access the network at the same time is the problem that this application needs to solve. Summary of the Invention

[0008] This application provides a resource allocation method, apparatus, medium, and program product for D2D communication, so as to achieve reliable resource allocation for D2D communication and avoid resource conflicts when multiple user devices access the network simultaneously.

[0009] In a first aspect, a resource allocation method for D2D communication is provided. The method includes: a first user equipment (User Equipment) sending an access request to a second user equipment (User Equipment); the first User Equipment receiving an access response from the second User Equipment, the access response including first idle time-domain resource information of the second User Equipment, the first idle time-domain resource information indicating at least one first idle time-domain resource; the first User Equipment determining a third idle time-domain resource based on the first idle time-domain resource information and second idle time-domain resource information, the second idle time-domain resource information including at least one second idle time-domain resource determined based on current channel sensing results, the third idle time-domain resource being an idle time-domain resource in the intersection of the at least one first idle time-domain resource and the at least one second idle time-domain resource; and the first User Equipment sending a link establishment request message to the second User Equipment based on the third idle time-domain resource. In this aspect, the first User Equipment can accurately determine the idle time-domain resource for sending the link establishment request message based on the first idle time-domain resource information of the second User Equipment and its own determined second idle time-domain resource information, reliably realizing resource allocation for D2D communication and avoiding resource conflicts when multiple User Equipments access simultaneously.

[0010] In one possible implementation, the access response also includes a maximum number of retransmissions. In this implementation, the access response includes a maximum number of retransmissions, allowing the first user equipment to retransmit the link establishment request message on idle time-domain resources within the specified maximum number of retransmissions, thereby improving the reliability of D2D communication.

[0011] In another possible implementation, the method further includes: when the link establishment request message fails to be sent, the first user equipment determines a fourth idle time domain resource based on the first idle time domain resource information, the second idle time domain resource information, and the maximum retransmission count, wherein the fourth idle time domain resource is an idle time domain resource in the intersection of the at least one first idle time domain resource and the at least one second idle time domain resource; and the first user equipment retransmits the link establishment request message to the second user equipment based on the fourth idle time domain resource. In this implementation, the fourth idle time domain resource can be any periodic idle time domain resource after the third idle time domain resource, and the fourth idle time domain resource is any one of a plurality of periodic idle time domain resources specified within the maximum retransmission count.

[0012] In another possible implementation, the first idle time-domain resource information is determined based on the channel sensing results of the second user equipment. In this implementation, the second user equipment can perform channel sensing within its communication range to obtain the first idle time-domain resource information. The communication range of the second user equipment can be the same as or different from that of the first user equipment, thereby avoiding the inability to sense the channel situation with hidden user equipment, which could lead to conflicts in allocated access resources.

[0013] In another possible implementation, the first idle time-domain resource information is determined based on the channel sensing results of the second user equipment and at least one third user equipment. In this implementation, the first idle time-domain resource information can be further determined based on the channel sensing results of the second user equipment and at least one third user equipment. The at least one third user equipment refers to other user equipment in the network managed by the second user equipment besides the first user equipment. The at least one third user equipment can perform channel sensing within its own communication range. The communication range of the at least one third user equipment can be the same as or different from the communication ranges of the first and second user equipment, thereby avoiding the inability to detect channel conditions with hidden user equipment, which could lead to conflicts in allocated access resources.

[0014] In another possible implementation, the method further includes: when the first user equipment detects the synchronization signal broadcast by the second user equipment, it performs channel listening to obtain the second idle time domain resource information. In this implementation, the first user equipment performs channel listening to obtain the second idle time domain resource information when synchronizing with the second user equipment, and continuously updates the second idle time domain resource information during the access process to obtain accurate channel listening results.

[0015] Secondly, a resource allocation method for D2D communication is provided. The method includes: a second user equipment receiving an access request from a first user equipment; the second user equipment sending an access response to the first user equipment, the access response including first idle time-domain resource information, the first idle time-domain resource information indicating at least one current first idle time-domain resource; and the second user equipment receiving a link establishment request message from the first user equipment, the link establishment request message being sent on a third idle time-domain resource, wherein the third idle time-domain resource is an idle time-domain resource in the intersection of the at least one first idle time-domain resource and the at least one second idle time-domain resource, the at least one second idle time-domain resource being determined based on channel sensing results of the first user equipment. In this aspect, by carrying the first idle time-domain resource information in the access response, the second user equipment enables the first user equipment to accurately determine the idle time-domain resource for sending the link establishment request message based on the second user equipment's first idle time-domain resource information and its own determined second idle time-domain resource information, reliably achieving resource allocation for D2D communication and avoiding resource conflicts when multiple user equipments access simultaneously.

[0016] In one possible implementation, the access response also includes a maximum number of retransmissions.

[0017] In another possible implementation, the method further includes: when the connection establishment request message fails to be received, the second user equipment receives a retransmitted connection establishment request message from the first user equipment, the retransmitted connection establishment request message being sent on a fourth idle time domain resource, the fourth idle time domain resource being an idle time domain resource in the intersection of at least one first idle time domain resource and at least one second idle time domain resource.

[0018] In another possible implementation, the first idle time-domain resource information is determined based on the current channel sensing results.

[0019] In another possible implementation, the method further includes: the second user equipment receiving channel sensing results from at least one third user equipment; wherein the first idle time domain resource information is determined based on the current channel sensing results and the channel sensing results from the at least one third user equipment.

[0020] Thirdly, a resource allocation device for D2D communication is provided. This resource allocation device can implement the method described in the first aspect. For example, the resource allocation device can be a chip or a terminal. The above method can be implemented through software, hardware, or by executing corresponding software through hardware.

[0021] In one possible implementation, the apparatus includes: a transceiver unit and a processing unit; wherein: the transceiver unit is configured to send an access request to a second user equipment; the transceiver unit is further configured to receive an access response from the second user equipment, the access response including first idle time domain resource information of the second user equipment, the first idle time domain resource information indicating at least one first idle time domain resource; the processing unit is configured to determine a third idle time domain resource based on the first idle time domain resource information and the second idle time domain resource information, the second idle time domain resource information including at least one second idle time domain resource determined based on the current channel sensing result, the third idle time domain resource being an idle time domain resource in the intersection of the at least one first idle time domain resource and the at least one second idle time domain resource; and the transceiver unit is further configured to send a link establishment request message to the second user equipment based on the third idle time domain resource.

[0022] Optionally, the access response may also include a maximum number of retransmissions.

[0023] Optionally, the processing unit is further configured to, when the link establishment request message fails to be sent, determine a fourth idle time domain resource based on the first idle time domain resource information, the second idle time domain resource information, and the maximum number of retransmissions, wherein the fourth idle time domain resource is an idle time domain resource in the intersection of the at least one first idle time domain resource and the at least one second idle time domain resource; and the transceiver unit is further configured to retransmit the link establishment request message to the second user equipment based on the fourth idle time domain resource.

[0024] Optionally, the first idle time domain resource information is determined based on the channel sensing results of the second user equipment.

[0025] Optionally, the first idle time domain resource information is determined based on the channel sensing results of the second user equipment and the channel sensing results of at least one third user equipment.

[0026] Optionally, the processing unit is further configured to perform channel listening when the synchronization signal broadcast by the second user equipment is detected, so as to obtain the second idle time domain resource information.

[0027] In another possible implementation, the resource allocation device for D2D communication is used to perform the methods described in the first aspect and its various possible implementations.

[0028] Fourthly, a resource allocation device for D2D communication is provided. This resource allocation device can implement the method described in the second aspect above. For example, the resource allocation device for D2D communication can be a chip or a terminal. The above method can be implemented through software, hardware, or by executing corresponding software through hardware.

[0029] In one possible implementation, the apparatus includes: a transceiver unit; wherein: the transceiver unit is configured to receive an access request from a first user equipment; the transceiver unit is further configured to send an access response to the first user equipment, the access response including first idle time domain resource information, the first idle time domain resource information being used to indicate at least one current first idle time domain resource; and the transceiver unit is further configured to receive a link establishment request message from the first user equipment, the link establishment request message being sent on a third idle time domain resource, wherein the third idle time domain resource is an idle time domain resource in the intersection of the at least one first idle time domain resource and the at least one second idle time domain resource, the at least one second idle time domain resource being determined based on channel sensing results of the first user equipment.

[0030] Optionally, the access response may also include a maximum number of retransmissions.

[0031] Optionally, the transceiver unit is further configured to receive a retransmitted link establishment request message from the first user equipment when the link establishment request message fails to be received, wherein the retransmitted link establishment request message is sent on a fourth idle time domain resource, and the fourth idle time domain resource is an idle time domain resource in the intersection of at least one first idle time domain resource and at least one second idle time domain resource.

[0032] Optionally, the first idle time domain resource information is determined based on the current channel sensing results.

[0033] Optionally, the transceiver unit is further configured to receive channel sensing results from at least one third user equipment; wherein the first idle time domain resource information is determined based on the current channel sensing results and the channel sensing results from the at least one third user equipment.

[0034] In another possible implementation, the resource allocation device for D2D communication is used to perform the methods described in the second aspect and its various possible implementations.

[0035] In another possible implementation, the resource allocation device for D2D communication in the third or fourth aspect described above includes a processor coupled to a memory; the processor is configured to support the device in performing corresponding functions in the resource allocation method for D2D communication described above. The memory is coupled to the processor and stores computer programs (or computer-executable instructions) and / or data necessary for the device. Optionally, the resource allocation device for D2D communication may further include a communication interface for supporting communication between the device and other network elements, such as the transmission or reception of data and / or signals. Exemplarily, the communication interface may be a transceiver, circuit, bus, module, or other type of communication interface. Optionally, the memory may be located inside the resource allocation device for D2D communication and integrated with the processor; or it may be located outside the resource allocation device for D2D communication.

[0036] In another possible implementation, the D2D communication resource allocation device in the third or fourth aspect described above includes a processor and a transceiver device. The processor is coupled to the transceiver device and is used to execute computer programs or instructions to control the transceiver device to receive and send information. When the processor executes the computer programs or instructions, it is also used to implement the above method through logic circuits or executed code instructions. The transceiver device can be a transceiver, transceiver circuit, or input / output interface, used to receive signals from other D2D communication resource allocation devices besides the D2D communication resource allocation device and transmit them to the processor, or to send signals from the processor to other D2D communication resource allocation devices besides the D2D communication resource allocation device. When the D2D communication resource allocation device is a chip, the transceiver device is a transceiver circuit or an input / output interface.

[0037] When the resource allocation device for D2D communication in the third or fourth aspect above is a chip, the transmitting unit can be an output unit, such as an output circuit or a communication interface; the receiving unit can be an input unit, such as an input circuit or a communication interface. When the resource allocation device for D2D communication is a terminal, the transmitting unit can be a transmitter or a receiver; the receiving unit can be a receiver or a receiver.

[0038] Fifthly, a communication system is provided, the communication system comprising a resource allocation device for implementing the D2D communication as described in the third aspect or any of the third aspect, and at least one resource allocation device for implementing the D2D communication as described in the fourth aspect or any of the fourth aspect.

[0039] A sixth aspect provides a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed by a processor, execute the method as described in the first aspect or any implementation thereof, or execute the method as described in the second aspect or any implementation thereof.

[0040] In a seventh aspect, a computer program product is provided that, when executed on a computing device, causes the method described in the first aspect or any implementation thereof to be executed, or the method described in the second aspect or any implementation thereof to be executed. Attached Figure Description

[0041] Figure 1 A flowchart illustrating the process of connecting member devices to the central network;

[0042] Figure 2 Diagram illustrating LTE V2X eavesdropping and resource reservation;

[0043] Figure 3 A diagram illustrating a hidden user device;

[0044] Figure 4 A schematic diagram of a communication system provided in an embodiment of this application;

[0045] Figure 5 A flowchart illustrating a resource allocation method for D2D communication provided in an embodiment of this application;

[0046] Figure 6 A flowchart illustrating another resource allocation method for D2D communication provided in an embodiment of this application;

[0047] Figure 7 A schematic diagram of at least one first idle time domain resource indicated by the first idle time domain resource information in this application example;

[0048] Figure 8 A schematic diagram of the third and fourth idle time domain resources determined for the first user equipment in this application example;

[0049] Figure 9 A schematic diagram of the structure of a resource allocation device for D2D communication provided in an embodiment of this application;

[0050] Figure 10 This is a schematic diagram of another D2D communication resource allocation device provided in an embodiment of this application. Detailed Implementation

[0051] The embodiments of this application are described below with reference to the accompanying drawings.

[0052] This application proposes a centralized communication system architecture in the absence of cellular network coverage. For example... Figure 4 The diagram shows a structural schematic of a communication system provided in this application. The communication system 4000 is located in a first network, which includes a second user equipment (UE) 401 and a first user equipment 402. The communication system 4000 may also include at least one third user equipment 403 (the diagram shows three third user equipments and their connections to the first and second user equipments; the number of third user equipments is not limited in this application and can be zero or a positive integer). The second user equipment 401 is the center of the first network, responsible for network establishment and management, and can therefore also be called a management device. Each centralized network has only one management device, but the management device can be changed. After the first user equipment 402 and at least one third user equipment 403 synchronize with the second user equipment 401, they become member devices of the management device. The first user equipment 402 needs to synchronize with the second user equipment 401 and access the network before it can communicate with other member devices. A centralized network can have multiple member devices.

[0053] Among them, the second user equipment 401 is responsible for sending synchronization information within the first network, managing member equipment access and allocating equipment identifiers, maintaining the member list, allocating and reclaiming communication resources within the first network, relaying messages within the first network, and detecting and updating inter-network identifier conflicts.

[0054] First User Equipment 402: Synchronizes with the management equipment. After connecting to the first network created by the management equipment, it periodically sends its own status via heartbeat messages. First User Equipment 402 can communicate with any member equipment within the first network, or it can select some member equipment to form a multicast group for communication.

[0055] The second user equipment 401, the first user equipment 402, and at least one third user equipment 403 can be D2D devices. For example, a D2D device can refer to a terminal in D2D communication. A terminal is a node with wireless transceiver capabilities that can be deployed on land, including indoors or outdoors, handheld, wearable, or vehicle-mounted; it can also be deployed on water, such as on a ship; and it can also be deployed in the air, such as on an airplane, drone, balloon, or satellite. D2D devices can be mobile phones, tablets, computers with wireless transceiver capabilities, terminals in vehicle-to-everything (V2X) systems, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical care, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, and so on. The embodiments in this application do not limit the application scenarios. Terminals may also be referred to as user equipment (UE), access terminal equipment, UE unit, mobile station, mobile station, remote station, remote terminal equipment, mobile device, wireless communication equipment, UE agent, or UE device, etc.

[0056] To address the issue of potential resource conflicts when allocating access resources to multiple user equipments, as mentioned in the background technology, this application provides a resource allocation scheme for D2D communication. By carrying first idle time domain resource information in the access response, the second user equipment enables the first user equipment to accurately determine the idle time domain resources for sending the link establishment request message based on the second user equipment's first idle time domain resource information and its own determined second idle time domain resource information. This reliably achieves resource allocation for D2D communication and avoids resource conflicts when multiple user equipments access the network simultaneously.

[0057] This solution can also be further applied to cellular networks. In scenarios where multiple user devices in a cellular network access the base station simultaneously, the solution in this application can be used to resolve the access conflict problem between multiple user devices.

[0058] based on Figure 4 The architecture of the communication system shown is illustrated below. The resource allocation scheme for D2D communication provided in the embodiments of this application will be described in detail below:

[0059] like Figure 5 The diagram shown is a flowchart illustrating a resource allocation method for D2D communication provided in an embodiment of this application. The method may include the following steps:

[0060] S501. The first user equipment sends an access request to the second user equipment.

[0061] Accordingly, the second user equipment receives the access request.

[0062] For a centralized network, a user equipment (UE) is first selected as the management device; for example, in this embodiment, a second UE is selected as the management device. The management device provides a synchronization source. Other UEs use the synchronization signal of the second UE as the target for synchronization discovery. After synchronization discovery is completed, random access processing is performed, thus forming a centralized network. This embodiment describes the random access of a first UE to this centralized network as an example.

[0063] When a first user equipment (User Equipment) needs to join a centralized network, it must first search for the synchronization signal broadcast by a second user equipment (User Equipment). After finding the synchronization signal, the first User Equipment sends an access request to the second User Equipment. This access request is used to request access to the network. This access request can be called a random access request, random access preamble, preamble, message 1, etc. The second User Equipment receives the access request.

[0064] For example, multiple first user equipments can simultaneously access the network. A second user equipment receives access requests from these multiple first user equipments.

[0065] S502. The second user equipment sends an access response to the first user equipment. The access response includes first idle time domain resource information.

[0066] Accordingly, the first user equipment receives the access response.

[0067] After receiving the access request from the first user equipment, the second user equipment sends an access response to the first user equipment. This access response is a response to the aforementioned access request. This access response may be called a random access response (RAR), message 2, etc. The first user equipment receives this access response.

[0068] In this embodiment, the access response includes first idle time-domain resource information. This first idle time-domain resource information is determined based on the channel listening results of the second user equipment. For example, after receiving an access request, the second user equipment listens to the current channel between at least one other user equipment within its communication range to obtain the first idle time-domain resource information. This first idle time-domain resource information is used to indicate at least one currently available first idle time-domain resource. For example, this at least one first idle time-domain resource may be a portion or all of the idle time-domain resources determined based on the channel listening results of the second user equipment; for instance, it may be 10% of the idle time-domain resources randomly selected by the second user equipment.

[0069] S503. The first user equipment determines the third idle time domain resource based on the first idle time domain resource information and the second idle time domain resource information.

[0070] After receiving the access response, the first user equipment obtains the first idle time domain resource information.

[0071] Furthermore, after detecting the aforementioned synchronization signal, the first user equipment can perform channel listening. For example, the first user equipment listens to the current channel between at least one other user equipment within its communication range to obtain second idle time-domain resource information. This second idle time-domain resource information includes at least one second idle time-domain resource determined based on the current channel listening result. For example, the communication range of the first user equipment may be the same as or different from the communication range of the second user equipment. Assume that user equipment 1 and user equipment 3 simultaneously request access to user equipment 2, but user equipment 1 and user equipment 3 are far apart and cannot listen to each other. User equipment 2 needs to allocate access resources to user equipment 1 and user equipment 3. In this embodiment, user equipment 2 can listen to user equipment 1 and user equipment 3. User equipment 1 determines a third idle time-domain resource not only based on its own second idle time-domain resource information but also based on the first reliable time-domain resource information received from user equipment 2, thus expanding the range of channel listening. This solves the problem of access resource conflicts caused by hidden user equipment, and therefore, resource allocation for D2D communication can be reliably realized, avoiding resource conflicts when multiple user equipment access simultaneously.

[0072] The first idle time domain resource information indicates at least one currently available first idle time domain resource, and the second idle time domain resource information includes at least one second idle time domain resource determined based on the current channel sensing results. Since the communication ranges for channel sensing by the first user equipment and the second user equipment may be the same or different, the obtained first and second idle time domain resource information may be completely identical or partially identical. At least one second idle time domain resource may include time domain resources for which the first user equipment's sensing result indicates a busy channel; the first user equipment needs to exclude these busy channel resources. Therefore, the first user equipment determines a third idle time domain resource based on the first and second idle time domain resource information. The third idle time domain resource is an idle time domain resource within the intersection of at least one first idle time domain resource and at least one second idle time domain resource. This intersection may include at least one idle time domain resource. The first user equipment may randomly select an idle time domain resource from these at least one idle time domain resources, or select an idle time domain resource according to a preset rule, to obtain the third idle time domain resource.

[0073] S504. The first user equipment sends a link establishment request message to the second user equipment based on the third idle time domain resources.

[0074] Accordingly, the second user equipment receives the link establishment request message from the first user equipment.

[0075] After determining the third idle time domain resource, the first user equipment can randomly select a frequency domain location and send a link establishment request message on that third idle time domain resource and that frequency domain location. This link establishment request message is used to request the establishment of a link with the first network / second user equipment. This link establishment request message can also be referred to as message 3.

[0076] According to an embodiment of this application, a resource allocation method for D2D communication is provided. The second user equipment carries first idle time domain resource information in the access response, so that the first user equipment can accurately determine the idle time domain resources for sending the link establishment request message based on the first idle time domain resource information of the second user equipment and the second idle time domain resource information determined by itself, thereby reliably realizing the resource allocation of D2D communication and avoiding resource conflicts when multiple user equipments access at the same time.

[0077] like Figure 6 The diagram shown is a flowchart illustrating another resource allocation method for D2D communication provided in this application embodiment. This method may include the following steps:

[0078] S601. When the first user equipment detects the synchronization signal broadcast by the second user equipment, it performs channel listening to obtain the second idle time domain resource information.

[0079] For a centralized network, a user equipment (UE) is first selected as the management device; for example, in this embodiment, a second UE is selected as the management device. The management device provides a synchronization source. Other UEs use the synchronization signal of the second UE as the target for synchronization discovery. After synchronization discovery is completed, random access processing is performed, thus forming a centralized network. This embodiment describes the random access of a first UE to this centralized network as an example.

[0080] When a first user equipment (UE) needs to join a centralized network, it must first search for the synchronization signal broadcast by the second user equipment. After finding the synchronization signal, the first UE becomes a member device of the network.

[0081] When a first user equipment detects a synchronization signal broadcast by a second user equipment, it performs channel listening to obtain second idle time-domain resource information. For example, the first user equipment listens to the channel between itself and at least one other user equipment within its communication range to obtain the second idle time-domain resource information. This second idle time-domain resource information includes at least one second idle time-domain resource determined based on the current channel listening results.

[0082] For example, when a first user equipment detects a synchronization signal broadcast by a second user equipment, it performs channel listening on at least one time-domain resource. The unit of this time-domain resource can be a subframe, a time slot, a micro-time slot, etc. This embodiment uses a subframe as the unit of time-domain resource for description. The first user equipment can perform channel listening on 0 to 10239 subframes. The channel listening result can be characterized by a first resource bitmap. For example, the first resource bitmap can include 160 bits. The first resource bitmap is initially all 0s, indicating that all subframes are idle.

[0083] The first user equipment maintains the first resource bitmap in real time. When the first user equipment is listening, if it finds that the received signal strength indication (RSSI) on any subband of the physical sidelink shared channel (PSSCH) in the current subframe r (0 ≤ r ≤ 10239) is greater than or equal to a first threshold value, it considers the subframe r to be occupied and therefore sets the j-th bit in the first resource bitmap to the first value. Here, j = n % 160, where % represents the remainder.

[0084] Furthermore, the time when the j-th bit is set to the first value can also be recorded. The first user equipment continues to perform channel listening, and if the RSSI of all subbands in the subframe corresponding to the j-th bit is less than or equal to the second threshold value for p consecutive times, then the j-th bit is set to the second value.

[0085] The second threshold value is lower than the first threshold value. The initial values ​​of the first and second threshold values ​​can be pre-configured by the second user equipment and communicated to all member equipment. The first and second threshold values ​​can also be factory-set.

[0086] The first value mentioned above can be "1" to indicate that the channel on the time domain resource is busy, and the corresponding second value can be "0" to indicate that the channel on the time domain resource is idle. Alternatively, the first value mentioned above can be "0" to indicate that the channel on the time domain resource is busy, and the corresponding second value can be "1" to indicate that the channel on the time domain resource is idle.

[0087] For example, the initial value of the first resource bitmap is (in hexadecimal): 0x00000000000000000000000000000000000000000000.

[0088] Assuming that the RSSI of the PSSCH channel is detected to be greater than or equal to the first threshold value in the 20th subframe, the first resource bitmap is updated to: 0x000080000000000000000000000000000000000000 (i.e., the 20th bit is "1").

[0089] Assuming that the RSSI of the PSSCH channel is detected to be greater than or equal to the first threshold value in the 210th subframe, the first resource bitmap is updated to: 0x0000800000004000000000000000000000000000000 (i.e., 210%160=50 bits are set to "1").

[0090] Assuming that the RSSI of the PSSCH channel detected on subframes 180#, 340#, 500#, 660#, ... 1620# is less than or equal to the second threshold value, the first resource bitmap is updated to: 0x00000000000040000000000000000000000000000 (i.e., the 20th bit is "0").

[0091] Assuming the first user equipment finds the synchronization signal in subframe 1#, it performs channel listening from subframe (1+1)# to determine at least one second idle resource, thereby obtaining second idle time-domain resource information. This second idle time-domain resource information is the bit value of the first resource bitmap that takes the second value. For example, if the first resource bitmap is 0xFFFFFFFFFFFFFFFFFFFF01000800000000000000, that is, the channel is busy in the subframes corresponding to bits 0-79 and 87 and 100, while the channel is idle in the subframes corresponding to the remaining bits (bits 80-86, 88-99, and 101-159).

[0092] S602. The first user equipment sends an access request to the second user equipment.

[0093] Accordingly, the second user equipment receives the access request.

[0094] The specific implementation of this step can be referred to step S501 in the above embodiment, and will not be repeated here.

[0095] S603. At least one third user equipment sends the channel listening results to the second user equipment.

[0096] Accordingly, the second user equipment receives the channel sensing results from at least one third user equipment.

[0097] In this embodiment, the second user equipment can also receive channel listening results from at least one third user equipment. The at least one third user equipment can be a member equipment already connected to the network. Each third user equipment can listen to the channel between itself and other user equipment within its communication range, obtaining its own channel listening results. At least one third user equipment can send its own channel listening results to the second user equipment.

[0098] Each third user equipment can also maintain its own resource bitmap. The channel sensing result can also be the bitmap value in the resource bitmap where the bit value is the second value.

[0099] The communication range of each third user equipment may be the same or different. The communication range of at least one user equipment may also be the same or different from that of the second user equipment.

[0100] Assume that user equipment 3 and user equipment 4 are already connected to user equipment 2, but the distance between them is relatively large, and user equipment 3 and user equipment 4 cannot hear each other. Both user equipment 3 and user equipment 4 send their respective channel listening results to user equipment 2. Then user equipment 2 can obtain the channel listening results of user equipment 3 and user equipment 4, thus expanding the range of channel listening.

[0101] S604. The second user equipment sends an access response to the first user equipment. This access response includes first idle time domain resource information. The first idle time domain resource information is determined based on the current channel sensing results and the channel sensing results of at least one third user equipment. This first idle time domain resource information is used to indicate at least one current first idle time domain resource.

[0102] Accordingly, the first user equipment receives the access response.

[0103] Unlike step S503 in the above embodiment, the first idle time-domain resource information is determined based on the current channel sensing result and the channel sensing result of at least one third user equipment. The at least one first idle time-domain resource is the idle time-domain resource obtained by the second user equipment after excluding conflicting time-domain resources based on the current channel sensing result and the channel sensing result of at least one third user equipment.

[0104] Suppose that User Equipment 1 and User Equipment 3 simultaneously request access from User Equipment 2. User Equipment 1 and User Equipment 3 are far apart and cannot hear each other. User Equipment 2 also cannot hear User Equipment 3, but can only hear User Equipment 1. User Equipment 2 needs to allocate access resources to User Equipment 1 and User Equipment 3. User Equipment 2 listens to the channel between itself and User Equipment 1 within its communication range and receives the channel listening results sent by User Equipment 4 (User Equipment 4 can listen to the channel between itself and User Equipment 3 within its communication range). User Equipment 2 can determine the first idle time domain resource information based on the current channel listening results and the channel listening results of User Equipment 4, thus expanding the channel listening range. This solves the access resource conflict problem caused by hidden user equipment, and therefore, resource allocation for D2D communication can be reliably realized, avoiding resource conflicts when multiple user equipments access simultaneously.

[0105] The second user equipment can also maintain its second resource bitmap by referring to the same method used by the first user equipment in step S601 above to maintain the first resource bitmap.

[0106] Furthermore, the second user equipment determines the first idle time domain resource information based on the current channel sensing results and the channel sensing results of at least one third user equipment.

[0107] The access response includes first idle time domain resource information. For example, this first idle time domain resource information can be included in the media access control-control element (MAC-CE) of the access response. The MAC-CE may include the following information elements: at least one bitmap bit value (RES(1)~RES(n)) of the first idle time domain resource, and may also include the maximum number of retransmissions (MAX_RETX_NUM). The format of the MAC-CE is shown in Table 1 below:

[0108] Table 1. Format of MAC CE in Access Response

[0109] cell Length (bytes) RES(1) 1 RES(2) 1 … … RES(n) 1 MAX_RETX_NUM 1

[0110] like Figure 7Schematic diagram of at least one first idle time-domain resource indicated by the first idle time-domain resource information of the example of the present application shown. The second user equipment sends an access response in the m-th subframe. At least one first idle time-domain resource included in the MAC CE in this access response is RES(1) to RES(n), and the maximum number of retransmissions is k. Then the positions of the corresponding at least one first idle time-domain resource are: b + RES(1), b + RES(2), …, b + RES(n), and the positions of the idle time-domain resources that can be selected during retransmission are: b + RES(1) + 160*k, b + RES(2) + 160*k, …, b + RES(n) + 160*k. Among them, represents rounding down. k is a non-negative integer. The value range of RES(1) to RES(n) is 0 to 159. The maximum number of retransmissions indicates the maximum number of transmission times that this access resource sequence can use, including the total number of initial transmission and retransmission. When t % RES(i) == 0 and t < m / 160*160 + 160*MAX_RETX_NUM, a link establishment request message can be sent at the current position; where t is the current frame number * 10 + subframe number, i is any value within 0 to n, and m is the frame number * 10 + subframe number when the access response is received.

[0111] For example, the second user equipment updates the second resource bitmap according to the current listening result to: 0xFFFFFFFFFFFFFFFFFFFF00000000000000000000. Assume that the listening results of at least one third user equipment are the same as this second resource bitmap. This second resource bitmap indicates that the channels on the subframes corresponding to the 0th to 79th bits are occupied. Then the second user equipment can randomly select 8 resources (RES(1) to RES(8)) within the range of the 80th to 159th bits, which are: 85, 87, 93, 100, 104, 116, 138, 152. Assume that the second user equipment sends an access response in the 500th subframe, and the first user equipment receives this access response in the 500th subframe, and the maximum number of retransmissions is 2 (i.e., initial transmission and 1 retransmission). Then the positions (in units of subframes) of at least one first idle time-domain resource can be obtained as:

[0112] S605. The first user equipment determines a third idle time-domain resource according to the first idle time-domain resource information and the second idle time-domain resource information. Among them, the second idle time-domain resource information includes at least one second idle time-domain resource determined according to the current channel listening result. The third idle time-domain resource is an idle time-domain resource in the intersection of at least one first idle time-domain resource and at least one second idle time-domain resource.

[0113] For the specific implementation of this step, reference can be made to step S503 of the above embodiment.

[0114] like Figure 7 As shown, the first user equipment receives an access response from the second user equipment in the m-th subframe. The access response includes RES(1) to RES(n) and the maximum number of retransmissions k. The first user equipment parses and obtains the positions of at least one first idle time domain resource as: b+RES(1), b+RES(2), ... b+RES(n), and the positions of the idle time domain resources that can be selected during retransmission as: b+RES(1)+160*k, b+RES(2)+160*k, ... b+RES(n)+160*k.

[0115] In the example above, n = 8, and RES(1) to RES(8) are 85, 87, 93, 100, 104, 116, 138, and 152, respectively.

[0116] The resource bitmap updated by the first user equipment based on its own monitoring results is: 0xFFFFFFFFFFFFFFFFFF01000800000000000000, where bits 87 and 100 have a value of 1. Therefore, bits 87 and 100 need to be excluded, resulting in the second idle time domain resource information: 85, 93, 104, 116, 138, 152. Therefore, based on the first and second idle time domain resource information, the first user equipment can determine the intersection of the first and second idle time domain resource information as: 85, 93, 104, 116, 138, 152. The first user equipment randomly selects a resource from this intersection to obtain the third idle time domain resource, assuming it is 116. The corresponding time domain position is 596 = 506 / 160*160 + 116.

[0117] S606. The first user equipment sends a link establishment request message to the second user equipment based on the third idle time domain resources.

[0118] Accordingly, the second user equipment receives the link establishment request message from the first user equipment.

[0119] For a specific implementation of this step, please refer to step S504 of the above embodiment.

[0120] After determining the third idle time domain resource, the first user equipment can randomly select a frequency domain position, assuming it is the 8th sub-band. Then, the first user equipment sends a link establishment request message on subframe 596# and the 8th sub-band.

[0121] S607. When the first user equipment fails to send the link establishment request message, it determines the fourth idle time domain resource based on the first idle time domain resource information, the second idle time domain resource information, and the maximum number of retransmissions.

[0122] In this embodiment, if the first user equipment does not receive a link establishment request response from the second user equipment within a set time in step S606, it can be determined that the transmission of the link establishment request message failed. The first user equipment can further determine the fourth idle time domain resource based on the first idle time domain resource information, the second idle time domain resource information, and the maximum number of retransmissions.

[0123] The fourth idle time domain resource is an idle time domain resource from the intersection of at least one first idle time domain resource and at least one second idle time domain resource. For example, for the first retransmission, the fourth idle time domain resource is any idle time domain resource in the next cycle after the third idle time domain resource; for the k-th retransmission, and so on. Figure 8 As shown, the fourth idle time domain resource can be any one of b+RES(1)+160*k, b+RES(2)+160*k, ..., b+RES(n)+160*k, and the fourth idle time domain resource cannot exceed b+RES(n)+160*k. During the first retransmission, k=1. If the selected third idle time domain resource is RES(1), the fourth idle time domain resource can be any one of b+RES(1)+160*k, b+RES(2)+160*k, ..., b+RES(n)+160*k. This application does not impose any restrictions on this.

[0124] like Figure 8 As shown, the first user equipment detects that the time domain resource corresponding to b+RES(1)+160*k is occupied, selects b+RES(n)+160*k, randomly selects the frequency domain position of the retransmission link establishment request message at the time domain position corresponding to b+RES(n)+160*k, and retransmits the link establishment request message at the selected time domain position and frequency domain position.

[0125] For example, in the example above, the selected third idle time domain resource is 116, and the corresponding time domain position is 596. Then the time domain position corresponding to the fourth idle time domain resource can be any one of the idle time domain resource positions: 725, 727, 733, 740, 756, 778, and 792.

[0126] S608. The first user equipment retransmits the link establishment request message to the second user equipment based on the fourth idle time domain resources.

[0127] Accordingly, the second user equipment receives the retransmitted link establishment request message.

[0128] After the first user equipment determines the fourth idle time domain resource, it can retransmit the link establishment request message to the second user equipment on the fourth idle time domain resource, which can improve the reliability of the link establishment request message transmission.

[0129] It is understandable that the above steps S607 and S608 can be repeated, and the number of retransmissions should not exceed the maximum number of retransmissions minus 1.

[0130] According to an embodiment of this application, a resource allocation method for D2D communication is provided. The second user equipment carries first idle time domain resource information in the access response, so that the first user equipment can accurately determine the idle time domain resources for sending the link establishment request message based on the first idle time domain resource information of the second user equipment and the second idle time domain resource information determined by itself, thereby reliably realizing the resource allocation of D2D communication and avoiding resource conflicts when multiple user equipments access at the same time.

[0131] The access response also includes a maximum number of retransmissions. The first user equipment can retransmit the link establishment request message on the idle time domain resources specified within the maximum number of retransmissions, which improves the reliability of D2D communication.

[0132] The second user equipment can determine the first idle time domain resource information based on the channel sensing results of the second user equipment and at least one third user equipment, thereby improving the accuracy of the first idle time domain resource information and the reliability of resource allocation.

[0133] Exemplarily, in this embodiment, the first user equipment or the second user equipment includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software. Furthermore, this embodiment does not specifically limit the structure of the execution entity of the method provided in this embodiment, as long as it can communicate according to the method provided in this embodiment by running a program that records the code of the method provided in this embodiment. For example, the execution entity of the method provided in this embodiment can be a terminal, or a functional module in the first or second user equipment capable of calling and executing a program.

[0134] In other words, the relevant functions of the first user equipment or the second user equipment in the embodiments of this application can be implemented by one device, or by multiple devices, or by one or more functional modules within one device. The embodiments of this application do not specifically limit this. It is understood that the above functions can be network elements in hardware devices, software functions running on dedicated hardware, a combination of hardware and software, or virtualization functions instantiated on a platform (e.g., a cloud platform).

[0135] It is understood that, in order to achieve the functions in the above embodiments, the first user equipment or the second user equipment includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the units and method steps of the various examples described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0136] Figure 9 and Figure 10 This is a schematic diagram of a possible D2D communication resource allocation device provided for embodiments of this application. This D2D communication resource allocation device can also be a communication device. These D2D communication resource allocation devices can be used to implement the functions of the first user equipment or the second user equipment in the above method embodiments, and therefore can also achieve the beneficial effects of the above method embodiments. In the embodiments of this application, the D2D communication resource allocation device can be the first user equipment or the second user equipment, or it can be a module (such as a chip) applied to the first user equipment or the second user equipment.

[0137] like Figure 9 As shown, the D2D communication resource allocation device 900 includes a processing unit 910 and a transceiver unit 920. The D2D communication resource allocation device 900 is used to implement the above... Figure 5 , Figure 6 The method embodiments shown depict the functions of the first user equipment or the second user equipment.

[0138] When the resource allocation device 900 for D2D communication is used to implement Figure 5 or Figure 6In the illustrated method embodiment, the first user equipment functions as follows: the transceiver unit 920 is configured to send an access request to the second user equipment; the transceiver unit 920 is further configured to receive an access response from the second user equipment, the access response including first idle time domain resource information of the second user equipment, the first idle time domain resource information indicating at least one first idle time domain resource; the processing unit 910 is configured to determine a third idle time domain resource based on the first idle time domain resource information and the second idle time domain resource information, the second idle time domain resource information including at least one second idle time domain resource determined based on the current channel sensing result, the third idle time domain resource being an idle time domain resource in the intersection of the at least one first idle time domain resource and the at least one second idle time domain resource; and the transceiver unit 920 is further configured to send a link establishment request message to the second user equipment based on the third idle time domain resource.

[0139] Optionally, the access response may also include a maximum number of retransmissions.

[0140] Optionally, the processing unit 910 is further configured to, when the link establishment request message fails to be sent, determine a fourth idle time domain resource based on the first idle time domain resource information, the second idle time domain resource information, and the maximum number of retransmissions, wherein the fourth idle time domain resource is an idle time domain resource in the intersection of the at least one first idle time domain resource and the at least one second idle time domain resource; and the transceiver unit 920 is further configured to retransmit the link establishment request message to the second user equipment based on the fourth idle time domain resource.

[0141] Optionally, the first idle time domain resource information is determined based on the channel sensing results of the second user equipment.

[0142] Optionally, the first idle time domain resource information is determined based on the channel sensing results of the second user equipment and the channel sensing results of at least one third user equipment.

[0143] Optionally, the processing unit 910 is further configured to perform channel listening when the synchronization signal broadcast by the second user equipment is detected, so as to obtain the second idle time domain resource information.

[0144] When the resource allocation device 900 for D2D communication is used to implement Figure 5 or Figure 6In the illustrated method embodiment, the function of the second user equipment is as follows: the transceiver unit 920 is configured to receive an access request from the first user equipment; the transceiver unit 920 is further configured to send an access response to the first user equipment, the access response including first idle time domain resource information, the first idle time domain resource information being used to indicate at least one current first idle time domain resource; and the transceiver unit 920 is further configured to receive a link establishment request message from the first user equipment, the link establishment request message being sent on a third idle time domain resource, wherein the third idle time domain resource is an idle time domain resource in the intersection of the at least one first idle time domain resource and the at least one second idle time domain resource, the at least one second idle time domain resource being determined based on the channel sensing results of the first user equipment.

[0145] Optionally, the access response may also include a maximum number of retransmissions.

[0146] Optionally, the transceiver unit 920 is further configured to receive a retransmitted link establishment request message from the first user equipment when the link establishment request message fails to be received. The retransmitted link establishment request message is sent on a fourth idle time domain resource, which is an idle time domain resource in the intersection of at least one first idle time domain resource and at least one second idle time domain resource.

[0147] Optionally, the first idle time domain resource information is determined based on the current channel sensing results.

[0148] Optionally, the transceiver unit 920 is further configured to receive channel sensing results from at least one third user equipment; wherein the first idle time domain resource information is determined based on the current channel sensing results and the channel sensing results from the at least one third user equipment.

[0149] For a more detailed description of the processing unit 910 and the transceiver unit 920, please refer to [link / reference needed]. Figure 5 , Figure 6 The relevant descriptions in the method embodiments shown are directly obtained and will not be repeated here.

[0150] like Figure 10 As shown, the D2D communication resource allocation device 1000 includes a processor 1010 and an interface circuit 1020. The processor 1010 and the interface circuit 1020 are coupled to each other. It is understood that the interface circuit 1020 can be a transceiver or an input / output interface. Exemplarily, the D2D communication resource allocation device 1000 may also include a memory 1030 for storing instructions executed by the processor 1010, or storing input data required by the processor 1010 to execute instructions, or storing data generated after the processor 1010 executes instructions.

[0151] When the resource allocation device 1000 for D2D communication is used to implement Figure 5 , Figure 6 In the method shown, the processor 1010 is used to implement the functions of the processing unit 910, and the interface circuit 1020 is used to implement the functions of the transceiver unit 920.

[0152] When the resource allocation device for the aforementioned D2D communication is a chip applied to the first user equipment / second user equipment, the chip implements the functions of the first user equipment / second user equipment in the above method embodiments. The chip receives information from other modules (such as radio frequency modules or antennas) in the first user equipment / second user equipment, the information being sent to the first user equipment / second user equipment by other user equipment; or, the chip sends information to other modules (such as radio frequency modules or antennas) in the first user equipment / second user equipment, the information being sent to other user equipment by the first user equipment / second user equipment.

[0153] It is understood that the processor in the embodiments of this application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. A general-purpose processor may be a microprocessor or any conventional processor.

[0154] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0155] The method steps in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, hard disks, portable hard disks, compact disc read-only memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside in an ASIC. Alternatively, the ASIC can reside in a base station or terminal. Of course, the processor and storage medium can also exist as discrete components in the base station or terminal.

[0156] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are performed entirely or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a base station, a user equipment, or other programmable device. The computer program or instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video optical disc; or it can be a semiconductor medium, such as a solid-state drive.

[0157] In the various embodiments of this application, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions of different embodiments are consistent and can be referenced by each other. The technical features of different embodiments can be combined to form new embodiments according to their inherent logical relationship.

[0158] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. In the textual description of this application, the character " / " generally indicates an "or" relationship between the preceding and following related objects; in the formulas of this application, the character " / " indicates a "division" relationship between the preceding and following related objects.

[0159] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application. The order of the process numbers does not imply the order of execution; the execution order of each process should be determined by its function and internal logic. It should also be understood that the ordinal numbers such as "first" and "second" mentioned in the embodiments of this application are used to distinguish multiple objects and are not used to limit the size, content, order, timing, priority, or importance of multiple objects.

Claims

1. A method for resource allocation for D2D communication, characterized by, The method comprises: sending an access request to a second user equipment; receiving an access response from the second user equipment, the access response comprising first idle time domain resource information of the second user equipment, the first idle time domain resource information being used to indicate at least one first idle time domain resource, the first idle time domain resource information being determined according to channel sensing results of the second user equipment and channel sensing results of at least one third user equipment; determining a third idle time domain resource according to the first idle time domain resource information and second idle time domain resource information, the second idle time domain resource information comprising at least one second idle time domain resource determined according to current channel sensing results, the third idle time domain resource being one idle time domain resource in an intersection of the at least one first idle time domain resource and the at least one second idle time domain resource; sending a link establishment request message to the second user equipment according to the third idle time domain resource.

2. The method of claim 1, wherein, The access response further comprises a maximum retransmission number.

3. The method of claim 2, wherein, The method further comprises: when the link establishment request message fails to be sent, determining a fourth idle time domain resource according to the first idle time domain resource information, the second idle time domain resource information and the maximum retransmission number, the fourth idle time domain resource being one idle time domain resource in an intersection of the at least one first idle time domain resource and the at least one second idle time domain resource; retransmitting the link establishment request message to the second user equipment according to the fourth idle time domain resource.

4. The method according to any one of claims 1-3, characterized in that, The method further comprises: when a synchronization signal broadcast by the second user equipment is searched, performing channel sensing to obtain the second idle time domain resource information.

5. A resource allocation method for D2D communication, characterized by, The method comprises: receiving an access request from a first user equipment; sending an access response to the first user equipment, the access response comprising first idle time domain resource information, the first idle time domain resource information being used to indicate at least one first idle time domain resource, the first idle time domain resource information being determined according to channel sensing results of a second user equipment and channel sensing results of at least one third user equipment; receiving a link establishment request message from the first user equipment, the link establishment request message being sent on a third idle time domain resource, wherein the third idle time domain resource is one idle time domain resource in an intersection of the at least one first idle time domain resource and at least one second idle time domain resource, the at least one second idle time domain resource being determined according to channel sensing results of the first user equipment.

6. The method of claim 5, wherein, The access response further comprises a maximum retransmission number.

7. The method of claim 6, wherein, The method further comprises: when the link establishment request message fails to be received, receiving a retransmitted link establishment request message from the first user equipment, the retransmitted link establishment request message being sent on a fourth idle time domain resource, the fourth idle time domain resource being one idle time domain resource in an intersection of the at least one first idle time domain resource and the at least one second idle time domain resource.

8. The method of claim 5, wherein, The method further comprises: receiving channel sensing results of the at least one third user equipment.

9. A resource allocation apparatus for D2D communication, characterized by comprising: The apparatus comprises: The transceiver is configured to send an access request to a second user equipment; The transceiver is further configured to receive an access response from the second user equipment, the access response comprising first free time domain resource information of the second user equipment, the first free time domain resource information being used to indicate at least one first free time domain resource, the first free time domain resource information being determined according to a channel sensing result of the second user equipment and a channel sensing result of at least one third user equipment; The processing unit is configured to determine a third free time domain resource according to the first free time domain resource information and second free time domain resource information, the second free time domain resource information comprising at least one second free time domain resource determined according to a current channel sensing result, the third free time domain resource being one free time domain resource in an intersection of the at least one first free time domain resource and the at least one second free time domain resource; The transceiver is further configured to send a link establishment request message to the second user equipment according to the third free time domain resource.

10. The apparatus of claim 9, wherein, The access response further comprises a maximum retransmission number.

11. The apparatus of claim 10, wherein, The processing unit is further configured to determine a fourth free time domain resource according to the first free time domain resource information, the second free time domain resource information and the maximum retransmission number when the link establishment request message fails to be sent, the fourth free time domain resource being one free time domain resource in an intersection of the at least one first free time domain resource and the at least one second free time domain resource; The transceiver is further configured to retransmit the link establishment request message to the second user equipment according to the fourth free time domain resource.

12. The apparatus of any one of claims 9-11, wherein, The processing unit is further configured to perform channel sensing to obtain the second free time domain resource information when a synchronization signal broadcast by the second user equipment is searched.

13. A resource allocation apparatus for D2D communication, characterized by comprising: The apparatus comprises: The transceiver is configured to receive an access request from a first user equipment; The transceiver is further configured to send an access response to the first user equipment, the access response comprising first free time domain resource information, the first free time domain resource information being used to indicate at least one first free time domain resource, the first free time domain resource information being determined according to a channel sensing result of the apparatus and a channel sensing result of at least one third user equipment; The transceiver is further configured to receive a link establishment request message from the first user equipment, the link establishment request message being sent on a third free time domain resource, wherein the third free time domain resource is one free time domain resource in an intersection of the at least one first free time domain resource and at least one second free time domain resource, the at least one second free time domain resource being determined according to a channel sensing result of the first user equipment.

14. The apparatus of claim 13, wherein, The access response further comprises a maximum retransmission number.

15. The apparatus of claim 14, wherein, The transceiver unit is further configured to receive, from the first user equipment, a retransmitted link establishment request message when the link establishment request message fails to be received, the retransmitted link establishment request message being transmitted on a fourth idle time domain resource, the fourth idle time domain resource being one idle time domain resource in an intersection of the at least one first idle time domain resource and the at least one second idle time domain resource.

16. The apparatus of claim 13, wherein, The transceiver unit is further configured to receive a channel sensing result of at least one third user equipment.

17. A resource allocation apparatus for D2D communication, characterized by comprising: A processor coupled to a memory, the processor configured to read instructions from the memory to implement the method of any of claims 1-4, or to implement the method of any of claims 5-8.

18. A computer readable storage medium having stored thereon a computer program, characterized in that, The program which, when executed by the processor, implements the method of any of claims 1-4, or implements the method of any of claims 5-8.

19. A computer program product for, when executed on a computing device, performing the method of any of claims 1-4, or performing the method of any of claims 5-8.

Citation Information

Patent Citations

  • Scheduling resource indication and acquisition method, base station, terminal and readable medium

    CN110392429A

  • Random access method, terminal device and network device

    CN112997574A