[go: up one dir, main page]

WO2015096103A1 - Base station, terminal, resource allocation method and system - Google Patents

Base station, terminal, resource allocation method and system Download PDF

Info

Publication number
WO2015096103A1
WO2015096103A1 PCT/CN2013/090588 CN2013090588W WO2015096103A1 WO 2015096103 A1 WO2015096103 A1 WO 2015096103A1 CN 2013090588 W CN2013090588 W CN 2013090588W WO 2015096103 A1 WO2015096103 A1 WO 2015096103A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
resource
response
base station
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2013/090588
Other languages
French (fr)
Chinese (zh)
Inventor
张祺智
夏亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201380032916.9A priority Critical patent/CN104995976B/en
Priority to PCT/CN2013/090588 priority patent/WO2015096103A1/en
Publication of WO2015096103A1 publication Critical patent/WO2015096103A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/121Wireless traffic scheduling for groups of terminals or users

Definitions

  • the present invention relates to the field of wireless communications, and in particular, to a base station, a terminal, a resource allocation method, and a system. Background technique
  • D2D Device-to-Device
  • end-to-end communication is a technology that allows direct communication between terminals under system control.
  • the base station In D2D communication, in order to avoid interference between individual terminals, the base station needs to allocate respective D2D resources for each D2D terminal.
  • the base station pre-partitions a part of communication resources as D2D resources; when the first terminal discovers the second terminal that can perform D2D communication, sends a request for establishing D2D communication with the second terminal to the base station; After the request, it is detected whether there is an idle resource in the D2D resource, and if yes, part or all of the idle resource is allocated as a resource that the first terminal sends a D2D communication signal to the second terminal.
  • the resources available for D2D communication are limited. When there are a large number of terminals performing D2D communication within the coverage of the base station, there may be no idle D2D resources. In the case of a terminal allocated for newly requesting D2D communication, resource utilization is not high and system capacity is low. Summary of the invention
  • an embodiment of the present invention provides a Base station, terminal, resource allocation method and system. The technical solution is as follows:
  • a base station in a first aspect, includes:
  • a request receiving module configured to receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal;
  • a resource determining module configured to determine, in the already allocated D2D resource, the first terminal a reusable resource multiplexed with the second terminal;
  • a first resource allocation module configured to allocate a target resource from the reusable resource
  • a first resource sending module configured to send the target resource to the first terminal, where the first terminal sends a D2D communication signal according to the target resource
  • a second resource sending module configured to send the target resource to the second terminal, where the second terminal receives the D2D communication signal according to the target resource.
  • the resource determining module includes: a first instruction sending unit, configured to send a first instruction to the third terminal, where the first instruction is used to indicate the third The terminal monitors the discovery signal sent by the first terminal;
  • a first response receiving unit configured to receive a first response returned by the third terminal, where the first response is applied to indicate whether a signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold
  • a second instruction sending unit configured to send, to the second terminal, the first resource, if the first response indicates that the signal quality of the discovery signal monitored by the third terminal is less than the predetermined quality threshold
  • the second command, the first resource is a D2D resource that is allocated to the third terminal to receive the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D according to the first resource.
  • a second response receiving unit configured to receive a second response returned by the second terminal, where the second response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than Predetermined intensity threshold;
  • a first determining unit configured to: if the received second response indicates that the signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than the predetermined intensity threshold, The resource is determined to be the reusable resource.
  • the first response receiving unit configured to receive, by the third terminal, the first response a first response frame, where the first response frame is a first D2D communication frame sent by the third terminal according to the first resource after receiving the first instruction.
  • the resource determining module includes: a third instruction sending unit, configured to send, to the second terminal, a third instruction that includes a second resource, where the second The resource is a D2D resource that has been allocated to the fourth terminal to receive the D2D communication signal; the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource; a third response receiving unit, configured to receive a third response returned by the second terminal, where the third response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the second resource is less than Predetermined intensity threshold;
  • a fourth instruction sending unit configured to send, to the fourth terminal, if the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold a fourth instruction, where the fourth instruction is used to instruct the fourth terminal to listen to the discovery signal sent by the first terminal;
  • a fourth response receiving unit configured to receive a fourth response returned by the fourth terminal, where the fourth ring is applied to indicate whether a signal quality of the discovery signal monitored by the fourth terminal is less than a predetermined quality threshold
  • a second determining unit configured to determine, according to the fourth response that the received fourth signal indicates that the signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold, Reusable resources.
  • the fourth response receiving unit configured to receive, by the fourth terminal, the fourth response a second response frame, where the second response frame is a first D2D communication frame sent by the fourth terminal according to the second resource after receiving the fourth instruction.
  • the base station further includes:
  • a first detecting module configured to detect whether the target resource is sufficient after the target resource is allocated from the reusable resource
  • a second detecting module configured to detect whether there is an idle D2D resource if the detection result of the first detecting module is that the target resource is insufficient;
  • a second resource allocation module configured to allocate the target resource from the idle D2D resource if the detection result of the second detection module is that there is an idle D2D resource.
  • the base station further includes:
  • a third detecting module configured to detect whether there is an idle D2D resource before the first resource allocation module allocates the target resource from the reusable resource; a third resource allocation module, configured to: if the detection result of the third detection module is idle
  • the target resource is allocated from the idle D2D resource
  • a fourth detecting module configured to detect whether the target resource is sufficient after the target resource is allocated from the idle D2D resource
  • the first resource allocation module is configured to perform the step of allocating the target resource from the reusable resource if the detection result of the fourth detecting module is that the target resource is insufficient.
  • a base station in a second aspect, includes: a receiver, a processor, and a transmitter, where the receiver is configured to receive, by the first terminal, an end-to-end D2D communication with the second terminal.
  • the processor configured to determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal;
  • the processor configured to allocate a target resource from the reusable resource
  • the processor is configured to control the transmitter to send the target resource to the first terminal and the second terminal, where the first terminal sends a D2D communication signal according to the target resource, and The second terminal receives the D2D communication signal according to the target resource.
  • the processor is configured to control the transmitter to send a first instruction to a third terminal, where the first instruction is used to instruct the third terminal to monitor the a discovery signal sent by the first terminal;
  • the receiver is configured to receive a first response returned by the third terminal, where the first response is used to indicate whether a signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold; a processor, configured to: if the first response indicates that a signal quality of the discovery signal monitored by the third terminal is less than the predetermined quality threshold, control the transmitter to send the second terminal to include a second instruction of a resource, the first resource is allocated to the third terminal for receiving
  • the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource
  • the receiver is configured to receive a second response returned by the second terminal, where the second response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than a predetermined Intensity threshold
  • the processor configured to: if the second response received by the receiver indicates that a signal strength of the D2D communication signal that the second terminal monitors according to the first resource is less than the predetermined intensity threshold, The first resource is determined to be the reusable resource.
  • the receiver is configured to receive, by the third terminal, the first that includes the first response
  • the first response frame is a first D2D communication frame sent by the third terminal according to the first resource after receiving the first instruction.
  • the processor is configured to control the transmitter to send, to the second terminal, a third instruction that includes a second resource, where the second resource is allocated
  • the fourth terminal is configured to receive the D2D resource of the D2D communication signal; the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource;
  • the receiver is configured to receive a third response returned by the second terminal, where the third response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the second resource is less than a predetermined Intensity threshold
  • the processor if the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold, controlling the transmitter to the The fourth terminal sends a fourth instruction, where the fourth instruction is used to instruct the fourth terminal to listen to the discovery signal sent by the first terminal;
  • the receiver is configured to receive a fourth response returned by the fourth terminal, where the fourth response is used to indicate whether a signal quality of the discovery signal monitored by the fourth terminal is less than a predetermined quality threshold; a processor, configured to determine, according to the fourth response received by the receiver, that a signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold, determine the second resource as The reusable resource.
  • the receiver is configured to receive, by the fourth terminal, a part that includes the fourth response a second response frame, where the second response frame is a first D2D communication frame sent by the fourth terminal according to the second resource after receiving the fourth instruction.
  • the processor is further configured to detect whether the target resource is sufficient after the target resource is allocated from the reusable resource;
  • the processor is configured to detect whether there is an idle D2D resource if the detection result is that the target resource is insufficient;
  • the processor is configured to: if the detection result is that there is an idle D2D resource, the idle The target resource is allocated in the D2D resource.
  • the processor is configured to detect whether there is an idle D2D resource before allocating the target resource from the reusable resource;
  • the processor is configured to allocate the target resource from the idle D2D resource if the detection result is that there is an idle D2D resource;
  • the processor is configured to detect whether the target resource is sufficient after the target resource is allocated from the idle D2D resource;
  • the processor is configured to perform the step of allocating the target resource from the reusable resource if the detection result is that the target resource is insufficient.
  • a first terminal where the first terminal includes:
  • a request sending module configured to send, to the base station, a request for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines, in the already allocated D2D resource, that the first terminal and the Decoding a reusable resource multiplexed by the second terminal, and allocating the target resource from the reusable resource;
  • a first resource receiving module configured to receive a target resource sent by the base station
  • a communication signal sending module configured to send a D2D communication signal to the second terminal according to the target resource.
  • the first terminal further includes:
  • the discovery signal sending module is configured to periodically send the discovery signal.
  • a first terminal in a fourth aspect, includes: a processor, a transmitter, and a receiver;
  • the processor is configured to control, by the transmitter, a request for establishing an end-to-end D2D communication with a second terminal, where the request is used to indicate that the base station determines that the D2D resource that has been allocated can be Decoding a reusable resource multiplexed by the first terminal and the second terminal, and allocating a target resource from the reusable resource;
  • the receiver is configured to receive a target resource sent by the base station
  • the processor is configured to control the transmitter to send a D2D communication signal to the second terminal according to the target resource.
  • the processor is further configured to control the transmitting The machine periodically sends a discovery signal.
  • a second terminal where the second terminal includes:
  • a second resource receiving module configured to receive a target resource that is sent by the base station, where the target resource is after the base station receives the request sent by the first terminal to establish end-to-end D2D communication with the second terminal, Determining, among the allocated D2D resources, reusable resources multiplexable by the first terminal and the second terminal, and resources allocated from the reusable resources;
  • a communication signal receiving module configured to receive, according to the target resource, a D2D communication signal sent by the first terminal.
  • the second terminal further includes:
  • a second instruction receiving module configured to receive, after the second resource receiving module receives the target resource sent by the base station, a second instruction that is sent by the base station and includes the first resource, where the first resource is allocated to the first The D2D resource used by the three terminals to receive the D2D communication signal;
  • a first monitoring module configured to monitor a D2D communication signal according to the first resource
  • a fifth detecting module configured to detect a signal strength of the D2D communication signal that is monitored according to the first resource, to obtain a first detection result
  • a second response sending module configured to send a second response to the base station according to the first detection result, where the second response is used to indicate whether a signal strength of the D2D communication signal that is monitored according to the first resource is less than a predetermined Intensity threshold.
  • the second terminal further includes:
  • a third instruction receiving module configured to receive, after the second resource receiving module receives the target resource sent by the base station, a third instruction that is sent by the base station and includes a second resource, where the second resource is allocated to the first Four terminals are used to receive resources of the D2D communication signal;
  • a second monitoring module configured to monitor a D2D communication signal according to the second resource
  • a sixth detecting module configured to detect a signal strength of the D2D communication signal that is monitored according to the second resource, to obtain a second detection result
  • a third response sending module configured to send a third response to the base station according to the second detection result, where the third response is used to indicate whether a signal strength of the D2D communication signal that is monitored according to the second resource is less than a predetermined Intensity threshold.
  • a second terminal includes: a receiver and a processor; the receiver is configured to receive a target resource that is sent by the base station, and the target resource is that the base station receives the first terminal After transmitting a request for establishing end-to-end D2D communication with the second terminal, Determining, among the allocated D2D resources, reusable resources multiplexable by the first terminal and the second terminal, and resources allocated from the reusable resources;
  • the processor is configured to control the receiver to receive a D2D communication signal sent by the first terminal according to the target resource.
  • the second terminal further includes: a transmitter, where the receiver is further configured to: before receiving the target resource sent by the base station, receive the a second instruction of a resource, the first resource is allocated to a third terminal for receiving
  • the processor is configured to control the receiver to monitor a D2D communication signal according to the first resource, where the processor is configured to detect a signal strength of a D2D communication signal that is monitored according to the first resource, to obtain a first Test results;
  • the processor is configured to control the transmitter to send a second response to the base station according to the first detection result, where the second response is used to indicate a signal of a D2D communication signal that is monitored according to the first resource. Whether the intensity is less than a predetermined intensity threshold.
  • the second terminal further includes: a transmitter, configured to: before receiving the target resource sent by the base station, receiving, by the base station, the second a third instruction of the resource, where the second resource is a resource that has been allocated to the fourth terminal to receive the D2D communication signal;
  • the processor is configured to control the receiver to monitor a D2D communication signal according to the second resource, where the processor is configured to detect a signal strength of a D2D communication signal that is monitored according to the second resource, to obtain a second Test results;
  • the processor is configured to control the transmitter to send a third response to the base station according to the second detection result, where the third response is used to indicate a signal of a D2D communication signal that is monitored according to the second resource. Whether the intensity is less than a predetermined intensity threshold.
  • a third terminal is provided, where the third terminal includes:
  • a first instruction receiving module configured to receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request for establishing a D2D communication with the second terminal sent by the first terminal;
  • a third monitoring module configured to monitor a discovery signal sent by the first terminal
  • a seventh detecting module configured to detect a signal quality of the discovery signal that is monitored by the third monitoring module, to obtain a third detection result
  • a first response sending module configured to send, according to the third detection result, a first response to the base station; when the signal quality of the discovery signal that the base station indicates that the first discovery response is less than a predetermined quality threshold Transmitting, to the second terminal, a second instruction including a first resource, and receiving a second response returned by the second terminal, and indicating, in the second response, the second terminal according to the first resource
  • the signal strength of the monitored D2D communication signal is less than a predetermined intensity threshold, determining the first resource as a reusable resource, allocating a target resource from the reusable resource, and transmitting the target resource to the The first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource; wherein, the first resource a D2D resource that has been allocated to the third
  • the first response sending module is configured to send, to the base station, a first response frame that includes the first response, where the first response frame is received After the first instruction, the first D2D communication frame sent according to the first resource.
  • a third terminal includes: a receiver, a processor, and a transmitter;
  • the receiver is configured to receive a first instruction sent by the base station, where the first instruction is an instruction that is sent by the base station after receiving a request for establishing a D2D communication with the second terminal by the first terminal; a processor, configured to control the receiver to monitor a discovery signal sent by the first terminal, where the processor is configured to detect a signal quality of the monitored discovery signal, and obtain a third detection result;
  • the processor is configured to control the transmitter to send a first response to the base station according to the third detection result; and the signal quality of the discovery signal that is monitored by the base station in the first response indication is less than When the quality threshold is predetermined, sending a second instruction including the first resource to the second terminal, and receiving a second response returned by the second terminal, and indicating, in the second response, the second terminal according to the When the signal strength of the D2D communication signal monitored by the first resource is less than a predetermined intensity threshold, determining the first resource as a reusable resource, allocating a target resource from the reusable resource, and using the target resource Sending to the first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource;
  • the first resource is a D2D resource that has been allocated to the third terminal for receiving a D2D communication signal
  • the second instruction is used to instruct the second terminal to monitor a D2D communication signal according to the first resource
  • the processor is configured to control the transmitter to send, to the base station, a first response frame that includes the first response, where the first response frame is After receiving the first instruction, according to the first D2D communication frame sent by the first resource.
  • a fourth terminal is provided, where the fourth terminal includes:
  • a fourth instruction receiving module configured to receive a fourth command sent by the base station, where the fourth command is a request that the base station sends, by the first terminal, a D2D communication with the second terminal, to the second Transmitting, by the terminal, a third instruction including the second resource, receiving a third response returned by the second terminal, and indicating, in the third response, the D2D communication signal that the second terminal monitors according to the second resource
  • the second resource is a resource that has been allocated to the fourth terminal to receive the D2D communication signal
  • the third instruction is used to indicate that the second terminal is configured according to the
  • the second resource is configured to monitor the D2D communication signal, where the third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;
  • a fourth monitoring module configured to monitor a discovery signal sent by the first terminal
  • An eighth detecting module configured to detect a signal quality of the detected discovery signal, and obtain a fourth detection result
  • a fourth response sending module configured to send a fourth response to the base station according to the fourth detection result; the fourth response is used to indicate whether the signal quality of the monitored discovery signal is less than a predetermined quality threshold; Determining, by the base station, that the signal quality of the discovery signal that is monitored by the fourth response is less than the predetermined quality threshold, determining, by the second resource, a reusable resource, and allocating a target from the reusable resource And transmitting the target resource to the first terminal and the second terminal, where the first terminal sends a D2D communication signal according to the target resource, and the second terminal is configured according to the target resource. Receive D2D communication signals.
  • the fourth response sending module is configured to send, to the base station, a second response frame that includes the fourth response, where the second response frame is After receiving the fourth instruction, the first D2D communication frame sent according to the second resource.
  • a fourth terminal includes: a receiver, a processor, and a transmitting Machine
  • the receiver is configured to receive a fourth command sent by the base station, where the fourth command is that the base station receives a request for establishing a D2D communication with the second terminal, where the base station sends, to the second terminal Transmitting a third instruction including the second resource, receiving a third response returned by the second terminal, and indicating, in the third response, a signal of the D2D communication signal that the second terminal monitors according to the second resource An instruction sent when the strength is less than a predetermined strength threshold; the second resource is a resource that is allocated to the fourth terminal to receive a D2D communication signal, and the third instruction is used to indicate that the second terminal is configured according to the The second resource is used to monitor the D2D communication signal, and the third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;
  • the processor is configured to control the receiver to monitor a discovery signal sent by the first terminal, where the processor is configured to detect a signal quality of the detected discovery signal, and obtain a fourth detection result;
  • the processor is configured to control the transmitter to send a fourth response to the base station according to the fourth detection result, where the fourth response is used to indicate whether the signal quality of the monitored discovery signal is less than a predetermined quality. Threshold; determining, by the base station, that the signal quality of the discovery signal that is monitored by the fourth response is less than the predetermined quality threshold, determining the second resource as a reusable resource, from the reusable Allocating a target resource in the resource, and sending the target resource to the first terminal and the second terminal, where the first terminal sends a D2D communication signal according to the target resource, and is configured by the second terminal according to the second terminal The target resource receives a D2D communication signal.
  • the processor is configured to control the transmitter to send, to the base station, a second response frame that includes the fourth response, where the second response frame is And the first D2D communication frame sent according to the second resource after receiving the fourth instruction.
  • a resource allocation method for a base station, where the method includes: receiving a request sent by a first terminal to establish end-to-end D2D communication with a second terminal; and the allocated D2D resource Determining a reusable resource that can be multiplexed by the first terminal and the second terminal;
  • the first terminal transmitting a D2D communication signal according to the target resource, and receiving, by the second terminal, the D2D communication according to the target resource signal.
  • the determining, by the allocated D2D resources, the reusable resources that can be multiplexed by the first terminal and the second terminal includes:
  • a resource is a D2D resource that has been allocated to the third terminal for receiving a D2D communication signal
  • the second instruction is used to instruct the second terminal to monitor a D2D communication signal according to the first resource
  • receive the second a second response returned by the terminal the second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than a predetermined intensity threshold; if the second response is received And indicating that the signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than the predetermined strength threshold, determining the first resource as the reusable resource.
  • the receiving the first response returned by the third terminal includes:
  • the determining, by the allocated D2D resources, the reusable resources that can be multiplexed by the first terminal and the second terminal includes:
  • the second terminal monitors the D2D communication signal according to the second resource;
  • the third response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the second resource is less than a predetermined intensity threshold;
  • the third response indicates that the signal strength of the D2D communication signal that the second terminal monitors according to the second resource is less than the predetermined intensity threshold, and sends a fourth instruction to the fourth terminal, where the fourth command is used to indicate
  • the fourth terminal listens to the discovery signal sent by the first terminal;
  • the received fourth response indicates that the signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold, determining the second resource as the reusable resource.
  • the receiving the fourth response returned by the fourth terminal includes:
  • the method further includes: detecting, after the target resource is allocated from the reusable resource, whether the target resource is sufficient; If the target resource is insufficient, it is detected whether there is an idle D2D resource; if the detection result is that there is an idle D2D resource, the target resource is allocated from the idle D2D resource.
  • the method further includes:
  • the target resource is allocated from the idle D2D resource
  • the step of allocating the target resource from the reusable resource is performed.
  • a twelfth aspect provides a resource allocation method for a first terminal, where the method includes: sending, to a base station, a request for establishing end-to-end D2D communication with a second terminal, where the request is used to indicate Determining, by the base station, reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources, and allocating target resources from the reusable resources;
  • the method further includes:
  • the discovery signal is sent periodically.
  • a thirteenth aspect provides a resource allocation method, in a second terminal, where the method includes: receiving a target resource sent by a base station, where the target resource is sent by the base station to be sent by the first terminal After the second terminal establishes a request for end-to-end D2D communication, determining, in the already allocated D2D resource, a reusable resource that can be multiplexed by the first terminal and the second terminal, and recovering from the Use resources allocated in resources;
  • the method before the receiving the target resource sent by the base station, the method further includes:
  • the method before the receiving the target resource that is sent by the base station, the method further includes:
  • a resource allocation method for a third terminal, where the method includes: receiving a first instruction sent by a base station, where the first instruction is sent by the base station after receiving the first terminal An instruction sent after a request for establishing a D2D communication with the second terminal;
  • the second terminal determines the first resource as a reusable resource, and allocates a target resource from the reusable resource. And sending the target resource to the first terminal and the second terminal, where the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D according to the target resource.
  • the first resource is a D2D resource that has been allocated to the third terminal for receiving a D2D communication signal, and the second instruction is used to instruct the second terminal to monitor a D2D communication signal according to the first resource;
  • the second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.
  • the sending the first response to the base station according to the third detection result includes:
  • a method for allocating a resource includes: receiving a fourth instruction sent by a base station; where the fourth instruction is sent by the base station after receiving the first terminal a request for establishing D2D communication with the second terminal, transmitting, to the second terminal, a third instruction including the second resource, receiving a third response returned by the second terminal, and indicating the third response
  • the second terminal is configured to send an instruction when the signal strength of the D2D communication signal monitored by the second resource is less than a predetermined intensity threshold; the second resource is a resource that is allocated to the fourth terminal to receive the D2D communication signal.
  • the third command is used to indicate that the second terminal monitors the D2D communication signal according to the second resource
  • the third response is used to indicate that the second terminal monitors the D2D communication signal according to the second resource.
  • the fourth response is used to indicate whether the signal quality of the monitored discovery signal is less than a predetermined quality threshold; and the fourth response by the base station
  • the fourth response by the base station
  • the sending, by the fourth detection result, the fourth response to the base station according to the fourth detection result includes:
  • a resource allocation system comprising:
  • a base station a first terminal, a second terminal, and at least one third terminal and/or at least one fourth terminal as described in the above aspect.
  • the first terminal and the second terminal reusable resources are determined in the already allocated D2D resources, and are reusable
  • the allocation of the target resource in the resource solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be a situation that no idle D2D resources are available for allocation, thereby improving resource utilization and system capacity. the goal of. DRAWINGS
  • FIG. 1 is a device configuration diagram of a base station according to an embodiment of the present invention.
  • FIG. 2 is a device configuration diagram of a base station according to another embodiment of the present invention.
  • FIG. 3 is a device configuration diagram of a base station according to another embodiment of the present invention.
  • FIG. 4 is a device configuration diagram of a base station according to still another embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a device of a first terminal according to an embodiment of the present invention.
  • FIG. 6 is a device configuration diagram of a first terminal according to another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a device of a first terminal according to another embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a device of a first terminal according to still another embodiment of the present invention
  • FIG. FIG. 9 is a structural diagram of a device of a second terminal according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a device of a second terminal according to another embodiment of the present invention.
  • FIG. 11 is a device configuration diagram of a second terminal according to another embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a device of a second terminal according to still another embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a device of a third terminal according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a device of a third terminal according to another embodiment of the present invention.
  • FIG. 15 is a device configuration diagram of a third terminal according to another embodiment of the present invention.
  • FIG. 16 is a device configuration diagram of a third terminal according to still another embodiment of the present invention.
  • FIG. 17 is a device configuration diagram of a fourth terminal according to an embodiment of the present invention.
  • FIG. 18 is a device configuration diagram of a fourth terminal according to another embodiment of the present invention.
  • FIG. 19 is a device configuration diagram of a fourth terminal according to another embodiment of the present invention.
  • FIG. 20 is a device configuration diagram of a fourth terminal according to still another embodiment of the present invention.
  • 21 is a flowchart of a method for resource allocation according to an embodiment of the present invention.
  • FIG. 22 is a flowchart of a method for resource allocation according to another embodiment of the present invention.
  • 25 is a flowchart of a method for resource allocation according to another embodiment of the present invention.
  • 26 is a flowchart of a method for resource allocation according to an embodiment of the present invention.
  • FIG. 27 is a flowchart of a method for resource allocation according to another embodiment of the present invention.
  • 29 is a flowchart of a method for resource allocation according to an embodiment of the present invention.
  • FIG. 30 is a flowchart of a method for resource allocation according to another embodiment of the present invention.
  • FIG. 31 is a flowchart of a method for resource allocation according to an embodiment of the present invention.
  • FIG. 34 is a flowchart of a method for resource allocation according to another embodiment of the present invention.
  • FIG. 35 is a system configuration diagram of a resource allocation system according to an embodiment of the present invention. detailed description
  • the base station can be used to allocate D2D resources for terminals requesting D2D communication.
  • the base station can include:
  • the request receiving module 101 is configured to receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal;
  • the resource determining module 102 is configured to determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal;
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • a first resource allocation module 103 configured to allocate a target resource from the reusable resource
  • the first resource sending module 104 is configured to send the target resource to the first terminal, where the first terminal sends a D2D communication signal according to the target resource;
  • the second resource sending module 105 is configured to send the target resource to the second terminal, and the second terminal receives the D2D communication signal according to the target resource.
  • the base station determines the first terminal and the first D2D resource in the allocated D2D resource after receiving the request for establishing the end-to-end D2D communication with the second terminal, which is sent by the first terminal.
  • the second terminal is multiplexable and allocates the target resource from the reusable resource.
  • the number of terminals requesting D2D communication within the coverage of the base station is large in the prior art, there may be no idle D2D resources available for allocation. The problem of the situation is to achieve the purpose of improving resource utilization and system capacity.
  • FIG. 2 a device configuration diagram of a base station according to another embodiment of the present invention is shown.
  • the base station can be configured to allocate a D2D resource for transmitting a D2D communication signal to the second terminal for the first terminal requesting the D2D communication.
  • the base station can include:
  • the request receiving module 201 is configured to receive, by the first terminal, a request for establishing end-to-end D2D communication with the second terminal;
  • a terminal supporting D2D communication can periodically send a discovery signal on a predetermined time-frequency resource.
  • the discovery signal when the first terminal receives the discovery signal sent by the second terminal and detects that the second terminal can perform D2D communication, may send a request for D2D communication with the second terminal to the base station.
  • the resource determining module 202 is configured to determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal;
  • the signal quality of the discovery signal sent by the terminal allocated to receive the D2D communication to the first terminal is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than a predetermined one.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not
  • the second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.
  • the discovery signal sent by the first terminal may carry the reference content known in advance by each terminal. After receiving the discovery signal, each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.
  • the discovery signal sent by the first terminal may be interfered by the discovery signal sent by other terminals.
  • the receiving end receives the mixed signal of the discovery signal and the interference signal sent by the first terminal. If based on the signal strength, the receiving end can only measure the strength of the mixed signal, and cannot represent the signal of the first terminal. Intensity, therefore, the embodiment of the present invention sets the determination threshold according to the signal quality of the discovery signal of the first terminal, and can improve the accuracy of the determination.
  • the second terminal When detecting the interference on the allocated D2D resources, the second terminal needs to detect the total interference on a certain time-frequency resource, and does not need to distinguish which D2D terminals the interference comes from, therefore, it only needs to detect according to the allocated D2D.
  • the signal strength of the communication signal received by the resource is sufficient.
  • a first resource allocation module 203 configured to allocate a target resource from the reusable resource
  • the base station may allocate some or all of the resources from all eligible reusable resources as target resources.
  • the first resource sending module 204 is configured to send the target resource to the first terminal, where the first terminal sends a D2D communication signal according to the target resource;
  • the second resource sending module 205 is configured to send the target resource to the second terminal, and the second terminal receives the D2D communication signal according to the target resource.
  • the resource determining module 202 includes:
  • the first instruction sending unit 202a is configured to send, to the third terminal, a first instruction, where the first instruction is used to instruct the third terminal to listen to the discovery signal sent by the first terminal;
  • the first response receiving unit 202b is configured to receive a first response returned by the third terminal, where the first response is applied to indicate whether a signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold;
  • the second instruction sending unit 202c is configured to: if the first response indicates that the signal quality of the discovery signal monitored by the third terminal is less than the predetermined quality threshold, send a second instruction including the first resource to the second terminal
  • the first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource
  • the second response receiving unit 202d And receiving, by the second terminal, a second response, where the second response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than a predetermined intensity threshold;
  • the first determining unit 202e is configured to determine, when the received second response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined strength threshold, determining the first resource as the Reusable resources.
  • the detection order of the above two conditions may be set according to actual conditions, and the first condition may be detected first, and then the second condition may be detected; or the second condition may be detected first, and then the first condition is detected.
  • the base station may send a first instruction to each terminal that has been allocated D2D resources for performing D2D communication by using the high layer signaling, after each D2D terminal receives the first instruction, Listening to the discovery signal Discovery signal sent by the first terminal on the predetermined time-frequency resource, and returning the first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminals monitor the discovery sent by the first terminal.
  • the signal quality of the signal is less than a predetermined quality threshold, and the D2D resource of the terminal allocated to the monitored signal of the first terminal transmitted by the monitored first terminal is determined to be the first resource.
  • the base station sends a second indication that includes the first resource to the second terminal, and after receiving the second indication, the second terminal monitors according to the second resource.
  • the D2D communication signal sent by the other terminal through the second resource, and the second response is returned to the base station according to the monitoring result, and the base station determines, according to the second response, that the signal strength of the D2D communication signal monitored by the second terminal is less than a predetermined signal strength threshold.
  • Resources are reusable resources.
  • the strength of the monitored D2D communication signal or the signal quality of the discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal strength is less than Whether the predetermined strength threshold or the signal quality is less than the predetermined quality threshold; the second terminal or the D2D terminal may also first detect whether the signal strength is less than a predetermined intensity threshold or whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.
  • the first response receiving unit 202b is configured to receive a first response frame that is sent by the third terminal and includes the first response, where the first response frame is that the third terminal receives the first instruction, according to the The first D2D communication frame sent by the first resource.
  • the resource determining module 202 includes:
  • the third instruction sending unit 202f is configured to send, to the second terminal, a third instruction that includes a second resource, where the second resource is a D2D resource that is allocated to the fourth terminal to receive the D2D communication signal; And configured to instruct the second terminal to monitor the D2D communication signal according to the second resource;
  • the third response receiving unit 202g is configured to receive a third response returned by the second terminal, where the third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined intensity threshold. ;
  • the fourth command sending unit 202h is configured to: if the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold, send a fourth instruction to the fourth terminal, The fourth instruction is used to instruct the fourth terminal to listen to the discovery signal sent by the first terminal;
  • the fourth response receiving unit 202i is configured to receive a fourth response returned by the fourth terminal, where the fourth response is applied to indicate whether the signal quality of the discovery signal monitored by the fourth terminal is less than a predetermined quality threshold;
  • the second determining unit 202j is configured to determine the second resource as the reusable resource if the received fourth response indicates that the signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold.
  • the base station may send the currently allocated D2D resource to the second terminal by using the high layer signaling, and the second terminal monitors the D2D resource according to the base station. Listening to the D2D communication signal, and returning a third response to the base station according to the monitoring result, the base station determining, according to the third response, that the D2D resource whose signal strength of the D2D communication signal received by the second terminal is less than a predetermined intensity threshold is the second resource, and The terminal that allocates the second resource to receive the D2D communication signal is determined to be the fourth terminal. The base station sends a fourth command to the fourth terminal.
  • the fourth terminal After receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result, and the base station responds according to the fourth response.
  • the resource for receiving the D2D communication signal corresponding to the terminal that monitors the signal quality of the discovery signal sent by the first terminal is less than the predetermined quality threshold is determined as a reusable resource.
  • the fourth response receiving unit 202i is configured to receive a second response frame that is sent by the fourth terminal and includes the fourth response, where the second response frame is that the fourth terminal receives the fourth command, according to the The first D2D communication frame sent by the second resource.
  • the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal.
  • the response returned to the base station may be carried by receiving the first instruction or The first OFDM (Orthogonal Frequency Division Multiplexing) symbol in the first D2D communication frame transmitted after the fourth instruction.
  • the base station After transmitting the first instruction or the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the return of each D2D terminal. The first response or the fourth response.
  • the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.
  • the base station also includes:
  • the first detecting module 206 is configured to detect whether the target resource is sufficient after the target resource is allocated from the reusable resource;
  • the second detecting module 207 is configured to detect whether there is an idle D2D resource if the detection result of the first detecting module 206 is that the target resource is insufficient;
  • the second resource allocation module 208 is configured to allocate the target resource from the idle D2D resource if the detection result of the second detecting module 207 is that there is a free D2D resource.
  • the base station can allocate some resources or all resources as the target resources from the idle D2D resources according to the actual situation.
  • the base station may consider allocating idle D2D resources first, and then considering multiplexing the allocated D2D resources when no idle D2D resources are available for allocation; or, the base station may first The allocated D2D resources are multiplexed, and the free D2D resources are allocated when there are no D2D resources available for multiplexing.
  • the base station can detect whether the target resources are sufficient, and if sufficient, the resources are no longer allocated. Idle D2D resources, otherwise, target resources are further allocated from idle D2D resources.
  • the base station also includes:
  • the third detecting module 209 is configured to detect whether there is an idle D2D resource before the first resource allocation module 203 allocates the target resource from the reusable resource;
  • the third resource allocation module 210 is configured to allocate the target resource from the idle D2D resource if the detection result of the third detecting module 209 is that there is a free D2D resource;
  • the base station can allocate part of the resources or all resources as the target resources from the idle D2D resources in combination with the actual situation.
  • a fourth detecting module 211 configured to detect whether the target resource is sufficient after the target resource is allocated from the idle D2D resource
  • the first resource allocation module 203 is configured to perform the step of allocating the target resource from the reusable resource if the detection result of the fourth detecting module 211 is that the target resource is insufficient.
  • the base station If the base station first considers allocating idle D2D resources and then considering multiplexing the allocated D2D resources, the base station detects whether there are idle D2D resources before allocating the target resources from the reusable resources, and if so, is idle. The target resource is allocated in the D2D resource. If the target resource is still insufficient after the target resource is allocated from the idle D2D resource, the target resource is further allocated from the reusable resource. In addition, if the target resource allocated from the idle D2D resource is sufficient, the base station may not perform the step of determining the reusable resource subsequently, thereby saving system resources and reducing consumption.
  • the base station may send all the allocated D2D resources and the idle D2D resources to the second terminal, and the second terminal monitors the D2D communication signal according to all the D2D resources, and according to the monitoring result.
  • the base station determining whether there is an idle resource in the resource whose signal strength of the D2D communication signal received by the second terminal is less than a predetermined intensity threshold, and if yes, preferentially allocating the target resource from the idle resource. If there are no idle resources or insufficient idle resources, the base station further performs the step of transmitting a fourth instruction to the fourth terminal.
  • the base station determines the first among the allocated D2D resources after receiving the request for establishing the end-to-end D2D communication with the second terminal, which is sent by the first terminal.
  • a resource that can be multiplexed by the terminal and the second terminal, and a target resource is allocated from the reusable resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources.
  • FIG. 3 shows a device configuration diagram of a base station according to another embodiment of the present invention.
  • the base station can be used to allocate D2D resources for terminals requesting D2D communication.
  • the base station may include: a receiver 001, a processor 002, and a transmitter 003;
  • the receiver 001 is configured to receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal;
  • the processor 002 is configured to determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal;
  • the processor 002 is configured to allocate a target resource from the reusable resource
  • the processor 002 is configured to control the transmitter 003 to send the target resource to the first terminal and the second terminal, where the first terminal sends a D2D communication signal according to the target resource, and the second terminal is configured according to the The target resource receives the D2D communication signal.
  • the base station determines the first terminal and the first D2D resource in the allocated D2D resource after receiving the request for establishing the end-to-end D2D communication with the second terminal, which is sent by the first terminal.
  • the second terminal is multiplexable and allocates the target resource from the reusable resource.
  • the base station can be configured to allocate a D2D resource for transmitting a D2D communication signal to the second terminal for the first terminal requesting the D2D communication.
  • the base station can include: a receiver 004, a processor 005, and a transmitter 006;
  • the receiver 004 is configured to receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal.
  • the terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the discovery signal sent by the second terminal and detects that the D2D communication can be performed with the second terminal. Sending a D2D connection with the second terminal to the base station Letter request.
  • the processor 005 is configured to determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal;
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not
  • the second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.
  • the discovery signal sent by the first terminal may carry the reference content known in advance by each terminal. After receiving the discovery signal, each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.
  • the discovery signal sent by the first terminal may be interfered by the discovery signal sent by other terminals.
  • the receiving end receives the mixed signal of the discovery signal and the interference signal sent by the first terminal. If based on the signal strength, the receiving end can only measure the strength of the mixed signal, and cannot represent the signal of the first terminal. Intensity, therefore, the embodiment of the present invention sets the determination threshold according to the signal quality of the discovery signal of the first terminal, and can improve the accuracy of the determination.
  • the second terminal When the second terminal detects the interference of the signal received according to the allocated D2D resource, it needs to detect the total interference on a certain time-frequency resource, and does not need to distinguish which D2D terminal the interference comes from, therefore, only need to detect
  • the signal strength of the communication signal received according to the allocated D2D resource may be used.
  • the processor 005 is configured to allocate a target resource from the reusable resource
  • the base station can allocate some or all of the resources from all eligible reusable resources as target resources.
  • the processor 005 is configured to control the transmitter 006 to send the target resource to the first terminal and
  • the second terminal transmits, by the first terminal, a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.
  • the processor 005 is configured to control the transmitter 005 to send a first instruction to the third terminal, where the first instruction is used to instruct the third terminal to listen to the discovery signal sent by the first terminal;
  • the receiver 004 is configured to receive a first response returned by the third terminal, where the first response is used to indicate whether a signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold;
  • the processor 005 is configured to: if the first response indicates that the signal quality of the discovery signal monitored by the third terminal is less than the predetermined quality threshold, control the transmitter to send the first resource to the second terminal a second command, the first resource is a D2D resource that is allocated to the third terminal to receive the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource;
  • the receiver 004 is configured to receive a second response returned by the second terminal, where the second response is used to indicate whether a signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than a predetermined intensity threshold;
  • the processor 005 is configured to: if the second response received by the receiver 004 indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined strength threshold, the first resource is used. Determined as this reusable resource.
  • the detection order of the above two conditions may be set according to actual conditions, and the first condition may be detected first, and then the second condition may be detected; or the second condition may be detected first, and then the first condition is detected.
  • the base station may send a first instruction to each terminal that has been allocated D2D resources for performing D2D communication by using the high layer signaling, after each D2D terminal receives the first instruction, Listening to the discovery signal Discovery signal sent by the first terminal on the predetermined time-frequency resource, and returning the first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminals monitor the discovery sent by the first terminal.
  • the signal quality of the signal is less than a predetermined quality threshold, and the D2D resource of the terminal allocated to the monitored signal of the first terminal transmitted by the monitored first terminal is determined to be the first resource.
  • the base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.
  • the strength of the monitored D2D communication signal or the signal quality of the discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal strength is less than Whether the predetermined intensity threshold or the signal quality is less than the predetermined quality threshold; or the D2D terminal or the second terminal may first detect whether the signal strength is less than a predetermined intensity threshold or whether the signal quality is less than a predetermined quality threshold, and the detection result is carried in the response and sent to the response Base station.
  • the receiver 004 is configured to receive a first response frame that is sent by the third terminal and includes the first response, where the first response frame is that the third terminal receives the first instruction, according to the first resource.
  • the processor 005 is configured to control the transmitter 006 to send, to the second terminal, a third instruction that includes a second resource, where the second resource is a D2D resource that is allocated to the fourth terminal to receive the D2D communication signal;
  • the third command is used to indicate that the second terminal monitors the D2D communication signal according to the second resource;
  • the receiver 004 is configured to receive a third response returned by the second terminal, where the third response is used to indicate that the second terminal is configured according to Whether the signal strength of the D2D communication signal monitored by the second resource is less than a predetermined intensity threshold;
  • the processor 005 is configured to: if the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold, then control the transmitter to send the fourth terminal to the fourth terminal.
  • the fourth instruction is used to instruct the fourth terminal to listen to the discovery signal sent by the first terminal;
  • the receiver 004 is configured to receive a fourth response returned by the fourth terminal, where the fourth response is used to indicate whether a signal quality of the discovery signal monitored by the fourth terminal is less than a predetermined quality threshold;
  • the processor 005 is configured to determine the second resource as the recoverable if the fourth response received by the receiver 004 indicates that the signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold. Use resources.
  • the base station may send the currently allocated D2D resource to the second terminal by using the high layer signaling, and the second terminal monitors the D2D communication signal according to the D2D resource sent by the base station, and according to The monitoring result returns a third response to the base station, and the base station determines, according to the third response, that the D2D resource whose signal strength of the D2D communication signal received by the second terminal is less than a predetermined intensity threshold is the second resource, and allocates the second resource to The terminal receiving the D2D communication signal is determined to be the fourth terminal.
  • the base station sends a fourth command to the fourth terminal.
  • the fourth terminal After receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns the fourth ring to the base station according to the monitoring result.
  • the base station determines, according to the fourth response, the resource for receiving the D2D communication signal corresponding to the terminal that the signal quality of the discovery signal sent by the first terminal is less than the predetermined quality threshold is determined as the reusable resource.
  • the receiver 004 is configured to receive a second response frame that is sent by the fourth terminal and includes the fourth response, where the second response frame is that the fourth terminal receives the fourth instruction, according to the second resource.
  • the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal.
  • the response returned to the base station may be carried by receiving the first instruction or The first OFDM (Orthogonal Frequency Division Multiplexing) symbol in the first D2D communication frame transmitted after the fourth instruction.
  • the base station After transmitting the first instruction or the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the return of each D2D terminal. The first response or the fourth response.
  • the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.
  • the processor 005 is further configured to detect whether the target resource is sufficient after the target resource is allocated from the reusable resource;
  • the processor 005 is configured to detect whether there is an idle D2D resource if the detection result is that the target resource is insufficient;
  • the processor 005 is configured to allocate the target resource from the idle D2D resource if the detection result is that there is an idle D2D resource.
  • the base station can allocate some resources or all resources as the target resources from the idle D2D resources according to the actual situation.
  • the base station may consider allocating idle D2D resources first, and then considering multiplexing the allocated D2D resources when no idle D2D resources are available for allocation; or, the base station may first reuse the allocated D2D resources. When there are no D2D resources available for reuse, allocate free D2D resources.
  • the base station can detect whether the target resources are sufficient, and if sufficient, the resources are no longer allocated. Idle D2D resources, otherwise, target resources are further allocated from idle D2D resources.
  • the processor 005 is configured to detect whether there is an idle D2D resource before allocating the target resource from the reusable resource;
  • the processor 005 is configured to: if the detection result is that there is an idle D2D resource, allocate the target resource from the idle D2D resource;
  • the processor 005 is configured to detect whether the target resource is sufficient after the target resource is allocated from the idle D2D resource.
  • the processor 005 is configured to perform the step of allocating the target resource from the reusable resource if the detection result is that the target resource is insufficient.
  • the base station If the base station first considers allocating idle D2D resources and then considering multiplexing the allocated D2D resources, the base station detects whether there are idle D2D resources before allocating the target resources from the reusable resources, and if so, is idle. The target resource is allocated in the D2D resource. If the target resource is still insufficient after the target resource is allocated from the idle D2D resource, the target resource is further allocated from the reusable resource. In addition, if the target resource allocated from the idle D2D resource is sufficient, the base station may not perform the step of determining the reusable resource subsequently, thereby saving system resources and reducing consumption.
  • the base station may send all the allocated D2D resources and the idle D2D resources to the second terminal, and the second terminal monitors the D2D communication signal according to all the D2D resources, and according to the monitoring result.
  • the base station determining whether there is an idle resource in the resource whose signal strength of the D2D communication signal received by the second terminal is less than a predetermined intensity threshold, and if yes, preferentially allocating the target resource from the idle resource. If there are no idle resources or insufficient idle resources, the base station further performs the step of transmitting a fourth instruction to the fourth terminal.
  • the base station determines the first terminal and the first D2D resource in the allocated D2D resource after receiving the request for establishing the end-to-end D2D communication with the second terminal, which is sent by the first terminal.
  • the second terminal is multiplexable and allocates the target resource from the reusable resource.
  • the number of terminals requesting D2D communication within the coverage of the base station is large, there may be no idle D2D resources available for allocation.
  • the problem of the situation is to achieve the purpose of improving resource utilization and system capacity.
  • FIG. 5 shows a device configuration diagram of a first terminal according to an embodiment of the present invention.
  • the first terminal may be configured to request, from the base station, a D2D resource for transmitting a D2D communication signal to the second terminal.
  • the first terminal may include:
  • the request sending module 301 is configured to send, to the base station, an end-to-end D2D communication with the second terminal. And the request is used to indicate that the base station determines, among the allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal, and allocates a target resource from the reusable resource; a resource receiving module 302, configured to receive a target resource sent by the base station;
  • the communication signal sending module 303 is configured to send a D2D communication signal to the second terminal according to the target resource.
  • the first terminal provided by the embodiment of the present invention, by transmitting a request for establishing D2D communication with the second terminal to the base station, is allocated by the base station from the allocated D2D resources and can be reused by the first terminal and the second terminal. And transmitting the D2D communication signal according to the resource allocated by the base station, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resource is available for allocation. Achieve the goal of improving resource utilization and system capacity.
  • FIG. 6 a device configuration diagram of a first terminal according to another embodiment of the present invention is shown.
  • the first terminal may be configured to request, from the base station, a D2D resource for transmitting a D2D communication signal to the second terminal.
  • the first terminal may include:
  • the request sending module 401 is configured to send, to the base station, a request for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines, by the allocated D2D resources, that the first terminal and the second a terminal multiplexed reusable resource, and a target resource is allocated from the reusable resource; the terminal supporting the D2D communication may send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the second terminal to send The discovery signal and detecting that the D2D communication can be performed with the second terminal may send a request for D2D communication with the second terminal to the base station.
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not Will have an impact; satisfying the second condition that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource is not for the second terminal Will have an impact.
  • the base station to determine the reusable resource refer to the description in the corresponding embodiment of the base station shown in FIG. 2, which is not described in this embodiment.
  • the first resource receiving module 402 is configured to receive a target resource sent by the base station
  • the communication signal sending module 403 is configured to send a D2D communication signal to the second terminal according to the target resource.
  • the first terminal further includes:
  • the discovery signal sending module 404 is configured to periodically send the discovery signal.
  • the discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal.
  • each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain Determining the accuracy rate, and using the parsing accuracy as the signal quality of the received discovery signal sent by the first terminal, and subsequently assisting the base station to determine the reusable resource according to the signal quality of the discovery signal sent by the first terminal, as shown in the figure.
  • the base station shown in FIG. 2 corresponds to the description in the embodiment, and is not described in this embodiment.
  • the first terminal provided by the embodiment of the present invention by transmitting a request for establishing D2D communication with the second terminal to the base station, is allocated by the base station from the allocated D2D resources and can be reused by the first terminal and the second terminal. And transmitting the D2D communication signal according to the resource allocated by the base station, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resource is available for allocation. Achieve the goal of improving resource utilization and system capacity.
  • FIG. 7 a device configuration diagram of a first terminal according to another embodiment of the present invention is shown.
  • the first terminal may be configured to request, from the base station, a D2D resource for transmitting a D2D communication signal to the second terminal.
  • the first terminal may include: a processor 007, a transmitter 008, and a receiver 009;
  • the processor 007 is configured to control the transmitter 008 to send, to the base station, a request for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines, in the already allocated D2D resource, that the first a reusable resource multiplexed by the terminal and the second terminal, and a target resource is allocated from the reusable resource;
  • the receiver 009 is configured to receive a target resource sent by the base station
  • the processor 007 is configured to control the transmitter 008 to send a D2D communication signal to the second terminal according to the target resource.
  • the first terminal provided by the embodiment of the present invention is configured to send to the base station by sending to the second terminal.
  • the base station allocates resources that can be multiplexed by the first terminal and the second terminal from the allocated D2D resources, and sends the D2D communication signal according to the resources allocated by the base station, which solves the problem of the base station coverage in the prior art.
  • the number of terminals requesting to establish D2D communication is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved.
  • FIG. 8 a device configuration diagram of a first terminal according to still another embodiment of the present invention is shown.
  • the first terminal may be configured to request, from the base station, a D2D resource for transmitting a D2D communication signal to the second terminal.
  • the first terminal may include: a processor 010, a transmitter 011, and a receiver 012;
  • the processor 010 is configured to control the transmitter 011 to send, to the base station, a request for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines, in the already allocated D2D resource, that the first a reusable resource multiplexed by the terminal and the second terminal, and a target resource is allocated from the reusable resource;
  • the terminal supporting the D2D communication may send the discovery signal Discovery signal on the predetermined time-frequency resource.
  • the terminal may send and send to the base station.
  • the second terminal makes a request for D2D communication.
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not
  • the second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.
  • the receiver 012 is configured to receive a target resource sent by the base station
  • the processor 010 is configured to control the transmitter 011 to send a D2D communication signal to the second terminal according to the target resource.
  • the processor 010 is further configured to control the transmitter 011 to periodically send a discovery signal.
  • the discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal.
  • each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain Determining the accuracy rate, and using the parsing accuracy as the signal quality of the received discovery signal sent by the first terminal, and subsequently assisting the base station to determine the reusable resource according to the signal quality of the discovery signal sent by the first terminal, as shown in the figure.
  • the base station shown in FIG. 4 corresponds to the description in the embodiment, and is not described in this embodiment.
  • the first terminal provided by the embodiment of the present invention by transmitting a request for establishing D2D communication with the second terminal to the base station, is allocated by the base station from the allocated D2D resources and can be reused by the first terminal and the second terminal. And transmitting the D2D communication signal according to the resource allocated by the base station, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resource is available for allocation. Achieve the goal of improving resource utilization and system capacity.
  • FIG. 9 a device configuration diagram of a second terminal according to an embodiment of the present invention is shown.
  • the second terminal may be configured to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station.
  • the second terminal can include:
  • the second resource receiving module 501 is configured to receive a target resource that is sent by the base station, where the target resource is that the base station receives the request sent by the first terminal to establish end-to-end D2D communication with the second terminal, Determining, among the D2D resources, a reusable resource multiplexable by the first terminal and the second terminal, and a resource allocated from the reusable resource;
  • the communication signal receiving module 502 is configured to receive the D2D communication signal sent by the first terminal according to the target resource.
  • the second terminal provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources.
  • a target resource allocated in the resource, and receiving the D2D communication signal sent by the first base station according to the target resource which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources.
  • FIG. 10 shows a device configuration diagram of a second terminal according to another embodiment of the present invention.
  • the second terminal may be configured to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station.
  • the second terminal can include:
  • the second resource receiving module 601 is configured to receive a target resource that is sent by the base station, where the target resource is that the base station receives the request sent by the first terminal to establish end-to-end D2D communication with the second terminal, Determining, among the D2D resources, a reusable resource multiplexable by the first terminal and the second terminal, and a resource allocated from the reusable resource;
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not
  • the second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.
  • the communication signal receiving module 602 is configured to receive the D2D communication signal sent by the first terminal according to the target resource.
  • the second terminal further includes:
  • the second instruction receiving module 603 is configured to receive, after the second resource receiving module 601 receives the target resource sent by the base station, a second instruction that is sent by the base station and includes the first resource, where the first resource is allocated to the third resource.
  • the terminal is configured to receive the D2D resource of the D2D communication signal;
  • the first monitoring module 604 is configured to monitor the D2D communication signal according to the first resource
  • the fifth detecting module 605 is configured to detect a signal strength of the D2D communication signal that is monitored according to the first resource, and obtain a first detection result;
  • the second response sending module 606 is configured to send a second response to the base station according to the first detection result, where the second response is used to indicate whether a signal strength of the D2D communication signal monitored according to the first resource is less than a predetermined intensity threshold.
  • the detection sequence of the above two conditions may be set according to actual conditions, the base station may detect the first condition first, and then detect the second condition; the base station may also detect the second condition before detecting The first condition.
  • the base station may send a first instruction to each terminal that has been allocated D2D resources for performing D2D communication by using the high layer signaling, after each D2D terminal receives the first instruction, Listening to the discovery signal Discovery signal sent by the first terminal on the predetermined time-frequency resource, and returning the first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminals monitor the discovery sent by the first terminal.
  • the signal quality of the signal is less than a predetermined quality threshold, and the D2D resource of the terminal allocated to the monitored signal of the first terminal transmitted by the monitored first terminal is determined to be the first resource.
  • the base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.
  • the second terminal further includes:
  • the third instruction receiving module 607 is configured to receive, after the second resource receiving module 601 receives the target resource sent by the base station, a third instruction that is sent by the base station and includes the second resource, where the second resource is allocated to the fourth resource. a resource used by the terminal to receive the D2D communication signal;
  • a second monitoring module 608, configured to monitor a D2D communication signal according to the second resource
  • a sixth detecting module 609 configured to detect a signal strength of the D2D communication signal that is monitored according to the second resource, to obtain a second detection result
  • the third response sending module 610 is configured to send a third response to the base station according to the second detection result, where the third response is used to indicate whether a signal strength of the D2D communication signal monitored according to the second resource is less than a predetermined intensity threshold.
  • the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource, to the second terminal.
  • the terminal monitors the D2D communication signal according to the second resource sent by the base station, and returns a third response to the base station according to the monitoring result, and the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined one.
  • the fourth terminal sends a fourth command to the fourth terminal, and after receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result.
  • the response determines that the fourth terminal monitors that the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and determines the second resource as a reusable resource that can be multiplexed by the first terminal and the second terminal.
  • the strength of the monitored D2D communication signal may be directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined intensity threshold; or the second terminal may also detect Whether the signal strength is less than a predetermined intensity threshold, and the detection result is carried in the response and sent to the base station.
  • the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.
  • the second terminal provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources.
  • a target resource allocated in the resource, and receiving the D2D communication signal sent by the first base station according to the target resource which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources.
  • FIG. 11 a device configuration diagram of a second terminal according to another embodiment of the present invention is shown.
  • the second terminal may be configured to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station.
  • the second terminal may include: a receiver 013 and a processor 014;
  • the receiver 013 is configured to receive a target resource that is sent by the base station, where the target resource is the D2D resource that has been allocated after the base station receives the request sent by the first terminal to establish end-to-end D2D communication with the second terminal. Determining, among the reusable resources that can be multiplexed by the first terminal and the second terminal, and resources allocated from the reusable resources;
  • the processor 014 is configured to control the receiver 013 to receive the D2D communication signal sent by the first terminal according to the target resource.
  • the second terminal provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources.
  • a target resource allocated in the resource, and receiving the D2D communication signal sent by the first base station according to the target resource which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources.
  • FIG. 12 shows a device configuration diagram of a second terminal according to still another embodiment of the present invention.
  • the second terminal may be configured to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station.
  • the second terminal may include: a receiver 015 and a processor 016;
  • the receiver 015 is configured to receive a target resource that is sent by the base station, where the target resource is the D2D resource that has been allocated after the base station receives the request sent by the first terminal to establish end-to-end D2D communication with the second terminal. Determining, among the reusable resources that can be multiplexed by the first terminal and the second terminal, and resources allocated from the reusable resources;
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not
  • the second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.
  • the processor 016 is configured to control the receiver 015 to receive the D2D communication signal sent by the first terminal according to the target resource.
  • the second terminal further includes: a transmitter 017;
  • the receiver 015 is further configured to: before receiving the target resource sent by the base station, receive a second command that is sent by the base station and includes the first resource, where the first resource is allocated to the third terminal for receiving the D2D communication signal. D2D resources;
  • the processor 016 is configured to control the receiver 015 to monitor the D2D communication signal according to the first resource.
  • the processor 016 is configured to detect a signal strength of the D2D communication signal that is monitored according to the first resource, to obtain a first detection result. ;
  • the processor 016 is configured to control the transmitter 017 to send a second response to the base station according to the first detection result, where the second response is used to indicate whether a signal strength of the D2D communication signal monitored according to the first resource is less than a predetermined one. Intensity threshold.
  • the detection sequence of the above two conditions may be set according to actual conditions, the base station may detect the first condition first, and then detect the second condition; the base station may also detect the second condition before detecting the first condition.
  • the base station can Each terminal that is allocated D2D resources for performing D2D communication sends a first instruction, and after receiving the first instruction, each D2D terminal monitors a discovery signal Discovery signal sent by the first terminal on a predetermined time-frequency resource, and according to the monitoring
  • the discovery signal returns a first response to the base station, and the base station determines, according to the first response, which terminals the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and allocates the discovery to the monitored first terminal.
  • the D2D resource of the terminal whose signal quality is less than the predetermined quality threshold is determined as the first resource.
  • the base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.
  • the receiver 015 is configured to: before receiving the target resource sent by the base station, receive a third command that is sent by the base station and includes a second resource, where the second resource is a resource that is allocated to the fourth terminal to receive the D2D communication signal. ;
  • the processor 016 is configured to control the receiver 015 to monitor the D2D communication signal according to the second resource.
  • the processor 016 is configured to detect a signal strength of the D2D communication signal that is monitored according to the second resource, to obtain a second detection result. ;
  • the processor 016 is configured to control the transmitter 017 to send a third response to the base station according to the second detection result, where the third response is used to indicate whether a signal strength of the D2D communication signal monitored according to the second resource is less than a predetermined one. Intensity threshold.
  • the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource, to the second terminal.
  • the terminal monitors the D2D communication signal according to the second resource sent by the base station, and returns a third response to the base station according to the monitoring result, and the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined one.
  • the fourth terminal sends a fourth command to the fourth terminal, and after receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result.
  • the response determines that the fourth terminal monitors that the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and determines the second resource as a reusable resource that can be multiplexed by the first terminal and the second terminal.
  • the strength of the monitored D2D communication signal may be directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined intensity threshold; or the second terminal may also detect Whether the signal strength is less than a predetermined intensity threshold, and the detection result is carried
  • the band is sent to the base station in response.
  • the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.
  • the second terminal provided by the embodiment of the present invention is already allocated by receiving the base station.
  • FIG. 13 is a device configuration diagram of a third terminal according to an embodiment of the present invention, where the third terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the third terminal is configured to receive at the base station.
  • the assistance base station determines the reusable resource in the allocated D2D resource.
  • the third terminal may include:
  • the first instruction receiving module 701 is configured to receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request for establishing a D2D communication with the second terminal by the first terminal;
  • a third monitoring module 702 configured to monitor a discovery signal sent by the first terminal
  • the seventh detecting module 703 is configured to detect a signal quality of the discovery signal that is monitored by the third monitoring module 702, and obtain a third detection result;
  • the first response sending module 704 is configured to send a first response to the base station according to the third detection result; when the signal quality of the discovery signal that the base station indicates that the monitored signal is less than a predetermined quality threshold, the base station The second terminal sends a second command including the first resource, and receives the second response returned by the second terminal, and indicates, in the second response, the signal strength of the D2D communication signal that the second terminal monitors according to the first resource.
  • the first resource is determined as a reusable resource, the target resource is allocated from the reusable resource, and the target resource is sent to the first terminal and the second terminal, by the first Transmitting, by the terminal, a D2D communication signal according to the target resource, and receiving, by the second terminal, the D2D communication signal according to the target resource;
  • the first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.
  • the third terminal listens to the discovery signal sent by the first terminal after receiving the first instruction sent by the base station, and returns a first response to the base station according to the monitoring result, where the base station is in the The first response indicates that the signal quality of the discovery signal of the first terminal received by the third terminal is less than the predetermined quality threshold, and sends a second instruction to the second terminal, and indicates that the second terminal is based on the second response returned by the second terminal.
  • the signal strength of the D2D communication signal that is received by the first resource that is received by the third terminal is less than the predetermined strength threshold, the first resource is determined to be a reusable resource, which solves the problem in the prior art when the base station is in coverage.
  • FIG. 14 is a device configuration diagram of a third terminal according to another embodiment of the present invention, where the third terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the third terminal may be used in the base station.
  • the assistance base station After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource.
  • the third terminal may include:
  • the first instruction receiving module 801 is configured to receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request sent by the first terminal for establishing D2D communication with the second terminal;
  • a third monitoring module 802 configured to monitor a discovery signal sent by the first terminal
  • the terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the discovery signal sent by the second terminal and detects that the D2D communication can be performed with the second terminal.
  • the base station may send a request for D2D communication with the second terminal.
  • the third terminal may monitor the discovery signal periodically sent by the first terminal.
  • the seventh detecting module 803 is configured to detect a signal quality of the discovery signal that is monitored by the third monitoring module 802, and obtain a third detection result;
  • the discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal.
  • the third terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.
  • the first response sending module 804 is configured to send a first response to the base station according to the third detection result; the signal quality of the discovery signal monitored by the base station in the first response is less than a predetermined quality threshold Transmitting, to the second terminal, a second instruction including the first resource, and receiving a second response returned by the second terminal, and indicating, in the second response, that the second terminal is monitored according to the first resource.
  • the first resource is determined as a reusable resource, the target resource is allocated from the reusable resource, and the target resource is sent to the first terminal and the second a terminal, wherein the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource;
  • the first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not
  • the second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.
  • the base station may send, by using the high layer signaling, the first instruction to each terminal that has been allocated the D2D resource for D2D communication, and after receiving the first instruction, each D2D terminal monitors the discovery signal sent by the first terminal on the predetermined time-frequency resource.
  • the discovery signal returns a first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminal monitors the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and allocates the sound to the monitoring.
  • the D2D resource of the terminal whose signal quality of the discovery signal transmitted by the first terminal is less than the predetermined quality threshold is determined as the first resource.
  • the base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is reconfigurable.
  • the first response sending module 804 is configured to send, to the base station, a first response frame that includes the first response, where the first response frame is sent according to the first resource after receiving the first command. D2D communication frames.
  • the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal.
  • the response returned to the base station may be carried after receiving the first instruction.
  • the base station After transmitting the first instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the first response returned by each D2D terminal. .
  • the signal quality of the monitored discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal quality is less than a predetermined quality threshold; or, the third terminal It is also possible to first detect whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.
  • the third terminal listens to the discovery signal sent by the first terminal after receiving the first instruction sent by the base station, and returns a first response to the base station according to the monitoring result, where the base station is in the The first response indicates that the signal quality of the discovery signal of the first terminal received by the third terminal is less than the predetermined quality threshold, and sends a second instruction to the second terminal, and indicates that the second terminal is based on the second response returned by the second terminal.
  • the signal strength of the D2D communication signal that is received by the first resource that is received by the third terminal is less than the predetermined strength threshold, the first resource is determined to be a reusable resource, which solves the problem in the prior art when the base station is in coverage.
  • FIG. 15 is a device configuration diagram of a third terminal according to another embodiment of the present invention, where the third terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the third terminal may be used in the base station.
  • the assistance base station After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource.
  • the third terminal may include: a receiver 018, a processor 019, and a transmitter 020;
  • the receiver 018 is configured to receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request for establishing a D2D communication with the second terminal by the first terminal;
  • the processor 019 is configured to control the receiver 018 to monitor the discovery signal sent by the first terminal, and the processor 019 is configured to detect the monitored signal quality of the discovery signal to obtain a third detection result.
  • the processor 019 is configured to control the transmitter 020 to send a first response to the base station according to the third detection result; when the signal quality of the discovery signal that the base station indicates that the first response indicates that the signal quality of the discovery signal is less than a predetermined quality threshold, Transmitting, to the second terminal, a second instruction including the first resource, and receiving a second response returned by the second terminal, and indicating, in the second response, the D2D communication signal that the second terminal monitors according to the first resource
  • the signal strength is less than the predetermined strength threshold
  • the first resource is determined as a reusable resource
  • the target resource is allocated from the reusable resource
  • the target resource is sent to the first terminal and the second terminal
  • the first terminal sends a D2D communication signal according to the target resource
  • the second terminal receives the D2D communication signal according to the target resource;
  • the first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.
  • the third terminal listens to the discovery signal sent by the first terminal after receiving the first instruction sent by the base station, and returns a first response to the base station according to the monitoring result, where the base station is in the The first response indicates that the signal quality of the discovery signal of the first terminal received by the third terminal is less than the predetermined quality threshold, and sends a second instruction to the second terminal, and indicates that the second terminal is based on the second response returned by the second terminal.
  • the signal strength of the D2D communication signal that is received by the first resource that is received by the third terminal is less than the predetermined strength threshold, the first resource is determined to be a reusable resource, which solves the problem in the prior art when the base station is in coverage.
  • FIG. 16 is a device configuration diagram of a third terminal according to another embodiment of the present invention, where the third terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the third terminal may be used in the base station.
  • the assistance base station After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource.
  • the third terminal may include: a receiver 021, a processor 022, and a transmitter 023;
  • the receiver 021 is configured to receive a first instruction sent by the base station, where the first instruction is that the base station is connected Receiving an instruction sent by the first terminal to send a request for establishing a D2D communication with the second terminal; the processor 022, configured to control the receiver 021 to monitor the discovery signal sent by the first terminal; specifically, supporting the D2D
  • the communication terminal may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource.
  • the terminal may send the signal to the base station.
  • the third terminal may monitor the discovery signal periodically sent by the first terminal.
  • the processor 022 is configured to detect a signal quality of the detected discovery signal, and obtain a third detection result
  • the discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal.
  • the third terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.
  • the processor 022 is configured to control the transmitter 023 to send a first response to the base station according to the third detection result; when the signal quality of the discovery signal that the base station indicates that the first response is detected by the base station is less than a predetermined quality threshold, Transmitting, to the second terminal, a second instruction including the first resource, and receiving a second response returned by the second terminal, and indicating, in the second response, the D2D communication signal that the second terminal monitors according to the first resource
  • the signal strength is less than the predetermined strength threshold
  • the first resource is determined as a reusable resource
  • the target resource is allocated from the reusable resource
  • the target resource is sent to the first terminal and the second terminal
  • the first terminal sends a D2D communication signal according to the target resource
  • the second terminal receives the D2D communication signal according to the target resource;
  • the first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the second terminal receives the D2D communication signal according to the reusable resource The intensity of the number is less than the predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not
  • the second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.
  • the base station may send, by using the high layer signaling, the first instruction to each terminal that has been allocated the D2D resource for D2D communication, and after receiving the first instruction, each D2D terminal monitors the discovery signal sent by the first terminal on the predetermined time-frequency resource.
  • the discovery signal returns a first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminal monitors the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and allocates the sound to the monitoring.
  • the D2D resource of the terminal whose signal quality of the discovery signal transmitted by the first terminal is less than the predetermined quality threshold is determined as the first resource.
  • the base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.
  • the processor 022 is configured to control the transmitter 023 to send, to the base station, a first response frame that includes the first response, where the first response frame is sent according to the first resource after receiving the first command.
  • the first D2D communication frame is configured to control the transmitter 023 to send, to the base station, a first response frame that includes the first response, where the first response frame is sent according to the first resource after receiving the first command.
  • the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal.
  • the response returned to the base station may be carried after receiving the first instruction.
  • the base station After transmitting the first instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the first response returned by each D2D terminal. .
  • the signal quality of the monitored discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal quality is less than a predetermined quality threshold; or, the third terminal It is also possible to first detect whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.
  • the third terminal listens to the discovery signal sent by the first terminal after receiving the first instruction sent by the base station, and returns a first response to the base station according to the monitoring result.
  • the base station sends a second instruction to the second terminal, and indicates the second response returned according to the second terminal.
  • the second terminal determines the first resource as a reusable resource according to the signal strength of the D2D communication signal that is monitored by the first resource that is used by the third terminal to receive the D2D communication signal, and solves the problem in the prior art.
  • FIG. 17 is a device configuration diagram of a fourth terminal according to an embodiment of the present invention, where the fourth terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the fourth terminal is configured to receive at the base station.
  • the assistance base station determines the reusable resource in the allocated D2D resource.
  • the fourth terminal may include:
  • the fourth instruction receiving module 901 is configured to receive a fourth command sent by the base station, where the fourth command is that the base station sends a request for establishing D2D communication with the second terminal by the first terminal, and sends the request to the second terminal. And a third command including the second resource, receiving the third response returned by the second terminal, and indicating, in the third response, that the signal strength of the D2D communication signal that the second terminal monitors according to the second resource is less than a predetermined intensity threshold
  • the second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal, and the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource, the third Responsive to indicating whether a signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;
  • a fourth monitoring module 902 configured to monitor a discovery signal sent by the first terminal
  • the eighth detecting module 903 is configured to detect the signal quality of the detected discovery signal, and obtain a fourth detection result
  • the fourth response sending module 904 is configured to send a fourth response to the base station according to the fourth detection result, where the fourth response is used to indicate whether the monitored signal quality of the discovery signal is less than a predetermined quality threshold;
  • the fourth response indicates that the monitored signal quality of the discovery signal is less than the predetermined quality threshold, determining the second resource as a reusable resource, allocating the target resource from the reusable resource, and sending the target resource to The first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.
  • the fourth terminal provided by the embodiment of the present invention transmits, by the receiving base station, a third instruction including the second resource to the second terminal, and according to the third response indication returned by the received second terminal.
  • the second terminal After detecting the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold, the second terminal detects the signal quality of the detected discovery signal sent by the first terminal, and returns to the base station according to the detection result.
  • the fourth response is determined by the base station as the reusable resource when the signal quality of the discovery signal sent by the first terminal that is detected by the fourth terminal in the fourth response is less than the predetermined quality threshold, and the prior art is When the number of terminals requesting D2D communication within the coverage of the base station is large, there may be a problem that no idle D2D resources are available for allocation, thereby achieving the purpose of improving resource utilization and system capacity.
  • FIG. 18 it is a device configuration diagram of a fourth terminal according to another embodiment of the present invention.
  • the fourth terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the fourth terminal may be used in the base station. After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource.
  • the fourth terminal may include:
  • the fourth instruction receiving module 1001 is configured to receive a fourth instruction sent by the base station, where the fourth instruction is that the base station sends a request for establishing a D2D communication with the second terminal by the first terminal, and sends the request to the second terminal. And a third command including the second resource, receiving the third response returned by the second terminal, and indicating, in the third response, that the signal strength of the D2D communication signal that the second terminal monitors according to the second resource is less than a predetermined intensity threshold
  • the second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal, and the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource, the third Responsive to indicating whether a signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not
  • the second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.
  • the fourth monitoring module 1002 is configured to monitor the discovery signal sent by the first terminal
  • the eighth detection module 1003 is configured to detect the signal quality of the detected discovery signal, and obtain a fourth detection result;
  • the method for the fourth terminal to listen to the discovery signal sent by the first terminal and detect the signal quality of the discovery signal is similar to that of the third terminal, and details are not described herein again.
  • the fourth response sending module 1004 is configured to send a fourth response to the base station according to the fourth detection result, where the fourth response is used to indicate whether the monitored signal quality of the discovery signal is less than a predetermined quality threshold;
  • the fourth response indicates that the monitored signal quality of the discovery signal is less than the predetermined quality threshold, determining the second resource as a reusable resource, allocating the target resource from the reusable resource, and sending the target resource to The first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.
  • the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal to the second terminal, and the second terminal monitors the D2D communication signal according to the second resource sent by the base station, and according to The monitoring result returns a third response to the base station, and when the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined intensity threshold, the fourth command is sent to the fourth terminal, and the fourth After receiving the instruction, the terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result, where the fourth response indicates that the fourth terminal monitors the discovery signal sent by the first terminal.
  • the second resource is determined to be a reusable resource that can be multiplexed by the first terminal and the second terminal.
  • the fourth response sending module 1004 is configured to send, to the base station, a second response frame that includes the fourth response, where the second response frame is sent according to the second resource after receiving the fourth command.
  • a D2D communication frame is configured to send, to the base station, a second response frame that includes the fourth response, where the second response frame is sent according to the second resource after receiving the fourth command.
  • the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal.
  • the response returned to the base station may be carried after receiving the fourth instruction.
  • the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the fourth response returned by each D2D terminal. .
  • the signal quality of the monitored discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal quality is less than the predetermined quality.
  • the threshold may be used to detect whether the signal quality is less than a predetermined quality threshold, and the detection result is carried in the response and sent to the base station.
  • the fourth terminal provided by the embodiment of the present invention, by the receiving base station, sends a third instruction including the second resource to the second terminal, and indicates the second terminal according to the received third response returned by the second terminal.
  • the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold detecting the signal quality of the detected discovery signal sent by the first terminal, and returning the fourth response to the base station according to the detection result.
  • FIG. 19 it is a device configuration diagram of a fourth terminal according to another embodiment of the present invention.
  • the fourth terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the fourth terminal may be used in the base station.
  • the assistance base station After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource.
  • the fourth terminal may include: a receiver 024, a processor 025, and a transmitter 026;
  • the receiver 024 is configured to receive a fourth command sent by the base station, where the fourth command is sent by the base station to receive a request for establishing a D2D communication with the second terminal, and send the a third instruction of the second resource, receiving a third response returned by the second terminal, and sending, when the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined intensity threshold
  • the second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal, and the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource, where the third response is used. And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;
  • the processor 025 is configured to control the receiver 024 to monitor the discovery signal sent by the first terminal.
  • the processor 025 is configured to detect the signal quality of the detected discovery signal, and obtain a fourth detection result.
  • the processor 025 is configured to control the transmitter 026 to send a fourth response to the base station according to the fourth detection result; the fourth response is used to indicate whether the monitored signal quality of the discovery signal is less than a predetermined quality threshold; The signal quality of the discovery signal monitored by the base station in the fourth response indication is less than the Determining, by the first terminal, the second resource, the second resource is determined as a reusable resource, the target resource is allocated from the reusable resource, and the target resource is sent to the first terminal and the second terminal, by the first terminal Transmitting a D2D communication signal according to the target resource, and receiving, by the second terminal, the D2D communication signal according to the target resource.
  • the fourth terminal provided by the embodiment of the present invention, by the receiving base station, sends a third instruction including the second resource to the second terminal, and indicates the second terminal according to the received third response returned by the second terminal.
  • the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold detecting the signal quality of the detected discovery signal sent by the first terminal, and returning the fourth response to the base station according to the detection result.
  • FIG. 20 it is a device configuration diagram of a fourth terminal according to another embodiment of the present invention.
  • the fourth terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the fourth terminal may be used in the base station.
  • the assistance base station After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource.
  • the fourth terminal may include: a receiver 027, a processor 028, and a transmitter 029;
  • the receiver 027 is configured to receive a fourth command sent by the base station, where the fourth command is sent by the base station to receive a request for establishing a D2D communication with the second terminal, and send the a third instruction of the second resource, receiving a third response returned by the second terminal, and sending, when the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined intensity threshold
  • the second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal, and the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource, where the third response is used. And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: First, the reusable resource is allocated. The signal quality of the discovery signal sent by the first terminal received by the terminal receiving the D2D communication is less than a predetermined quality threshold. Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.
  • the processor 028 is configured to control the receiver 027 to monitor the discovery signal sent by the first terminal; the processor 028 is configured to detect the signal quality of the detected discovery signal, and obtain a fourth detection result;
  • the processor 028 is configured to control the transmitter 029 to send a fourth response to the base station according to the fourth detection result; the fourth response is used to indicate whether the monitored signal quality of the discovery signal is less than a predetermined quality threshold;
  • the base station determines the second resource as a reusable resource, allocates a target resource from the reusable resource, and uses the target
  • the resource is sent to the first terminal and the second terminal, and the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.
  • the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal to the second terminal, and the second terminal monitors the D2D communication signal according to the second resource sent by the base station, and according to The monitoring result returns a third response to the base station, and when the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined intensity threshold, the fourth command is sent to the fourth terminal, and the fourth After receiving the instruction, the terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result, where the fourth response indicates that the fourth terminal monitors the discovery signal sent by the first terminal.
  • the second resource is determined to be a reusable resource that can be multiplexed by the first terminal and the second terminal.
  • the processor 028 is configured to control the transmitter 029 to send, to the base station, a second response frame that includes the fourth response, where the second response frame is sent according to the second resource after receiving the fourth instruction.
  • the first D2D communication frame is configured to control the transmitter 029 to send, to the base station, a second response frame that includes the fourth response, where the second response frame is sent according to the second resource after receiving the fourth instruction.
  • the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal, for example, the response that may be returned to the base station.
  • the base station After transmitting the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the fourth response returned by each D2D terminal. .
  • the signal quality of the detected first terminal's discovery signal may be directly sent to the base station, and the base station detects whether the signal quality is less than a predetermined quality threshold; or, the fourth terminal It is also possible to first detect whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.
  • the fourth terminal provided by the embodiment of the present invention, by the receiving base station, sends a third instruction including the second resource to the second terminal, and indicates the second terminal according to the received third response returned by the second terminal.
  • the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold detecting the signal quality of the detected discovery signal sent by the first terminal, and returning the fourth response to the base station according to the detection result.
  • FIG. 21 a flow chart of a method for resource allocation according to an embodiment of the present invention is shown.
  • the method can be used to allocate D2D resources for terminals requesting D2D communication in a base station as shown in any of Figures 1 to 4.
  • the resource allocation method can include:
  • Step 1101 Receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal.
  • Step 1102 Determine, among the allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal.
  • the reusable resource is a signal that the signal quality of the discovery signal sent by the first terminal that is received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold, and the second terminal receives the received D2D communication signal.
  • the D2D resource can be a time-frequency resource.
  • Step 1103 Allocate a target resource from the reusable resource.
  • Step 1104 Send the target resource to the first terminal and the second terminal, by using the first terminal. Transmitting a D2D communication signal according to the target resource, and receiving, by the second terminal, the D2D communication signal according to the target resource.
  • the resource allocation method determines the first terminal in the already allocated D2D resource after receiving the request for establishing end-to-end D2D communication with the second terminal, which is sent by the first terminal.
  • the resource that can be multiplexed with the second terminal, and the target resource is allocated from the reusable resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources.
  • the problem of the situation for distribution to achieve the purpose of improving resource utilization and system capacity.
  • FIG. 22 a flow chart of a method for resource allocation according to another embodiment of the present invention is shown. The method can be used to allocate, in a base station as shown in any of Figures 1 to 4, a D2D resource for transmitting a D2D communication signal to a second terminal for a first terminal requesting D2D communication.
  • the resource allocation method can include:
  • Step 1201 Receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal.
  • the terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource.
  • the terminal may The base station transmits a request for D2D communication with the second terminal.
  • Step 1202 Determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal.
  • the reusable resource is a signal that the signal quality of the discovery signal sent by the first terminal that is received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold, and the second terminal receives the received D2D communication signal.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not Will have an effect; meet the second condition to indicate that A D2D communication signal transmitted by another terminal other than a terminal using the reusable resource does not affect the second terminal.
  • the discovery signal sent by the first terminal may carry the reference content known in advance by each terminal. After receiving the discovery signal, each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.
  • the discovery signal sent by the first terminal may be interfered by the discovery signal sent by other terminals.
  • the receiving end receives the mixed signal of the discovery signal and the interference signal sent by the first terminal. If based on the signal strength, the receiving end can only measure the strength of the mixed signal, and cannot represent the signal of the first terminal. Intensity, therefore, the embodiment of the present invention sets the determination threshold according to the signal quality of the discovery signal of the first terminal, and can improve the accuracy of the determination.
  • the second terminal When the second terminal detects the interference of the signal received according to the allocated D2D resource, it needs to detect the total interference on a certain time-frequency resource, and does not need to distinguish which D2D terminal the interference comes from, therefore, only need to detect
  • the signal strength of the communication signal received according to the allocated D2D resource may be used.
  • the detection order of the above two conditions may be set according to actual conditions, and the first condition may be detected first, and then the second condition may be detected; or the second condition may be detected first, and then the first condition is detected.
  • the base station may send a first instruction to each terminal that has been allocated D2D resources for performing D2D communication by using the high layer signaling, after each D2D terminal receives the first instruction, Listening to the discovery signal Discovery signal sent by the first terminal on the predetermined time-frequency resource, and returning the first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminals monitor the discovery sent by the first terminal.
  • the signal quality of the signal is less than a predetermined quality threshold, and the D2D resource of the terminal allocated to the monitored signal of the first terminal transmitted by the monitored first terminal is determined to be the first resource.
  • the base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.
  • the strength of the monitored D2D communication signal or the signal quality of the discovery signal of the first terminal may be directly sent to the base.
  • the base station detects whether the signal strength is less than a predetermined intensity threshold or whether the signal quality is less than a predetermined quality threshold; or the D2D terminal or the second terminal may first detect whether the signal strength is less than a predetermined intensity threshold or whether the signal quality is less than a predetermined quality threshold, and The detection result is carried in the response and sent to the base station.
  • the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource, to the second terminal.
  • the terminal monitors the D2D communication signal according to the second resource sent by the base station, and returns a third response to the base station according to the monitoring result, and the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined one.
  • the fourth terminal sends a fourth command to the fourth terminal, and after receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result.
  • the response determines that the fourth terminal monitors that the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and determines the second resource as a reusable resource that can be multiplexed by the first terminal and the second terminal.
  • the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal.
  • the response returned to the base station may be carried by receiving the first instruction or The first OFDM symbol in the first D2D communication frame transmitted after the fourth instruction.
  • the base station After transmitting the first instruction or the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the return of each D2D terminal. The first response or the fourth response.
  • the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.
  • Step 1203 Allocate a target resource from the reusable resource.
  • the base station can allocate some or all of the resources from all eligible reusable resources as target resources.
  • Step 1204 detecting whether the target resource is sufficient; if yes, proceeding to step 1207, otherwise, proceeding to step 1205;
  • Step 1205 detecting whether there is an idle D2D resource; if yes, proceeding to step 1206, no, and proceeding to step 1207;
  • Step 1206 allocating target resources from idle D2D resources
  • the base station can allocate part or all resources from the idle D2D resources as the target resources according to the actual situation.
  • the base station may consider multiplexing the allocated D2D resources first, and then allocating the idle D2D resources when there is no D2D resources available for multiplexing.
  • the base station after the base station allocates the target resource from the reusable resources, it can detect whether the target resource is sufficient. If sufficient, the idle D2D resource is no longer allocated. Otherwise, the target resource is further allocated from the idle D2D resource.
  • Step 1207 The target resource is sent to the first terminal and the second terminal, and the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.
  • the resource allocation method determines the first terminal in the already allocated D2D resource after receiving the request for establishing end-to-end D2D communication with the second terminal, which is sent by the first terminal.
  • the resource that can be multiplexed with the second terminal, and the target resource is allocated from the reusable resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources.
  • the problem of the situation for distribution to achieve the purpose of improving resource utilization and system capacity.
  • FIG. 23 a flow chart of a method for resource allocation according to another embodiment of the present invention is shown. The method can be used to allocate, in a base station as shown in any of Figures 1 to 4, a D2D resource for transmitting a D2D communication signal to a second terminal for a first terminal requesting D2D communication.
  • the resource allocation method can include:
  • Step 1301 Receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal.
  • the terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource.
  • the terminal may The base station transmits a request for D2D communication with the second terminal.
  • Step 1302 detecting whether there is an idle D2D resource; if yes, proceeding to step 1303, no, and proceeding to step 1305;
  • Step 1303 Allocate a target resource from an idle D2D resource.
  • the base station can allocate some resources or all resources as the target resources from the idle D2D resources according to the actual situation.
  • Step 1304 detecting whether the target resource is sufficient; if yes, proceeding to step 1307, otherwise, entering Step 1305;
  • Step 1305 Determine, among the allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal.
  • the reusable resource is a signal that the signal quality of the discovery signal sent by the first terminal that is received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold, and the second terminal receives the received D2D communication signal.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not
  • the second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.
  • the discovery signal sent by the first terminal may carry the reference content known in advance by each terminal. After receiving the discovery signal, each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.
  • the discovery signal sent by the first terminal may be interfered by the discovery signal sent by other terminals.
  • the receiving end receives the mixed signal of the discovery signal and the interference signal sent by the first terminal. If based on the signal strength, the receiving end can only measure the strength of the mixed signal, and cannot represent the signal of the first terminal. Intensity, therefore, the embodiment of the present invention sets the determination threshold according to the signal quality of the discovery signal of the first terminal, and can improve the accuracy of the determination.
  • the second terminal When the second terminal detects the interference of the signal received according to the allocated D2D resource, it needs to detect the total interference on a certain time-frequency resource, and does not need to distinguish which D2D terminal the interference comes from, therefore, only need to detect
  • the signal strength of the communication signal received according to the allocated D2D resource may be used.
  • the detection order of the above two conditions may be set according to actual conditions, and the first condition may be detected first, and then the second condition may be detected; or the second condition may be detected first, and then the first condition is detected.
  • the base station may send a first instruction to each terminal that has been allocated D2D resources for performing D2D communication by using the high layer signaling, after each D2D terminal receives the first instruction, Listening to the discovery signal Discovery signal sent by the first terminal on the predetermined time-frequency resource, and returning the first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminals monitor the discovery sent by the first terminal.
  • the signal quality of the signal is less than a predetermined quality threshold, and the D2D resource of the terminal allocated to the monitored signal of the first terminal transmitted by the monitored first terminal is determined to be the first resource.
  • the base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.
  • the strength of the monitored D2D communication signal or the signal quality of the discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal strength is less than Whether the predetermined intensity threshold or the signal quality is less than the predetermined quality threshold; or the D2D terminal or the second terminal may first detect whether the signal strength is less than a predetermined intensity threshold or whether the signal quality is less than a predetermined quality threshold, and the detection result is carried in the response and sent to the response Base station.
  • the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource, to the second terminal.
  • the terminal monitors the D2D communication signal according to the second resource sent by the base station, and returns a third response to the base station according to the monitoring result, and the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined one.
  • the fourth terminal sends a fourth command to the fourth terminal, and after receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result.
  • the response determines that the fourth terminal monitors that the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and determines the second resource as a reusable resource that can be multiplexed by the first terminal and the second terminal.
  • the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal.
  • the response returned to the base station may be carried by receiving the first instruction or The first OFDM symbol in the first D2D communication frame transmitted after the fourth instruction.
  • the base station After transmitting the first instruction or the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first one of the received D2D communication frames. OFDM symbols to obtain a first response or a fourth response returned by each D2D terminal.
  • the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.
  • Step 1306 Allocate a target resource from the reusable resource.
  • the base station can allocate some or all of the resources from all eligible reusable resources as target resources.
  • the base station may consider allocating idle D2D resources first, and then considering multiplexing the allocated D2D resources when there are no idle D2D resources available for allocation.
  • the base station may first detect whether there is an idle D2D resource, and if yes, allocate the target resource from the idle D2D resource. If the target resource is still insufficient after allocating the target resource from the idle D2D resource, the reusable resource is further determined. And allocate target resources from reusable resources. In addition, if the target resource allocated from the idle D2D resource is sufficient, the base station may not perform the subsequent step of determining the reusable resource, thereby saving system resources and reducing consumption.
  • the base station may send all the allocated D2D resources and the idle D2D resources to the second terminal, and the second terminal monitors the D2D communication signal according to all the D2D resources, and according to the monitoring result.
  • the base station determining whether there is an idle resource in the resource whose signal strength of the D2D communication signal received by the second terminal is less than a predetermined intensity threshold, and if yes, preferentially allocating the target resource from the idle resource. If there are no idle resources or insufficient idle resources, the base station further performs the step of transmitting a fourth instruction to the fourth terminal.
  • Step 1307 The target resource is sent to the first terminal and the second terminal, and the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.
  • the resource allocation method determines the first terminal in the already allocated D2D resource after receiving the request for establishing end-to-end D2D communication with the second terminal, which is sent by the first terminal.
  • the resource that can be multiplexed with the second terminal, and the target resource is allocated from the reusable resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources.
  • the problem of the situation for distribution to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 24, a flowchart of a method for resource allocation according to an embodiment of the present invention is shown.
  • the method can be used in a first terminal as shown in any one of FIG. 5 to FIG.
  • the D2D resource of the D2D communication signal is transmitted to the second terminal.
  • the resource allocation method may include: Step 1401: Send, to the base station, a request for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines, in the already allocated D2D resource, that the first terminal and the The second terminal multiplexes the reusable resources, and allocates the target resources from the reusable resources;
  • Step 1402 Receive a target resource sent by the base station.
  • Step 1403 Send a D2D communication signal to the second terminal according to the target resource.
  • the resource allocation method provided by the embodiment of the present invention, by transmitting a request for establishing D2D communication with a second terminal to a base station, is allocated by the base station from the allocated D2D resources and can be reused by the first terminal and the second terminal. And transmitting the D2D communication signal according to the resource allocated by the base station, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resource is available for allocation. Achieve the goal of improving resource utilization and system capacity.
  • FIG. 25 a flow chart of a method for resource allocation according to another embodiment of the present invention is shown. The method can be used to request a D2D resource for transmitting a D2D communication signal to a second terminal to a base station in the first terminal as shown in any of Figures 5-8.
  • the resource allocation method can include:
  • Step 1501 periodically sending a discovery signal
  • a terminal supporting D2D communication can periodically transmit a discovery signal Discovery signal on a predetermined time-frequency resource.
  • Step 1502 Send, to the base station, a request for establishing end-to-end D2D communication with the second terminal.
  • the request is used to indicate that the base station determines, in the already allocated D2D resource, that the first terminal and the second terminal are multiplexed.
  • the resources can be reused and the target resources are allocated from the reusable resources.
  • the base station may send a request for D2D communication with the second terminal.
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal passes the recoverable
  • the D2D communication signal is sent to the second terminal by using the resource, the terminal that receives the D2D communication signal using the reusable resource other than the second terminal has no influence
  • the second condition is satisfied to indicate that the first terminal is
  • the D2D communication signal sent by the other terminal using the reusable resource has no influence on the second terminal.
  • the discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal, and after receiving the discovery signal, each D2D terminal parses the discovery signal, and performs the parsed content and the reference content. Comparing, obtaining the parsing accuracy rate, and using the parsing accuracy rate as the signal quality of the received discovery signal sent by the first terminal, and subsequently assisting the base station to determine the reusable resource according to the signal quality of the discovery signal sent by the first terminal, specifically Please refer to the description in the corresponding embodiment of the base station shown in FIG. 2, which is not described in this embodiment.
  • Step 1503 Receive a target resource sent by the base station.
  • Step 1504 Send a D2D communication signal to the second terminal according to the target resource.
  • the resource allocation method provided by the embodiment of the present invention, by transmitting a request for establishing D2D communication with a second terminal to a base station, is allocated by the base station from the allocated D2D resources and can be reused by the first terminal and the second terminal. And transmitting the D2D communication signal according to the resource allocated by the base station, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resource is available for allocation. Achieve the goal of improving resource utilization and system capacity.
  • FIG. 26 a flow chart of a method for resource allocation according to an embodiment of the present invention is shown.
  • the method can be used to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station in the second terminal shown in any one of FIG. 9 to FIG.
  • the resource allocation method may include: Step 1601: Receive a target resource sent by a base station, where the target resource is already allocated after the base station receives a request sent by the first terminal to establish end-to-end D2D communication with the second terminal. Determining, among the D2D resources, reusable resources multiplexed by the first terminal and the second terminal, and resources allocated from the reusable resources;
  • Step 1602 Receive, according to the target resource, a D2D communication signal sent by the first terminal.
  • the resource allocation method provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources.
  • a target resource allocated in the resource, and receiving the D2D sent by the first base station according to the target resource The communication signal solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved.
  • FIG. 27 a flowchart of a method for resource allocation according to another embodiment of the present invention is shown.
  • the method may be used to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station in the second terminal as shown in any one of FIG. 9 to FIG.
  • the resource allocation method may include: Step 1701: Receive a second instruction that is sent by the base station and includes the first resource;
  • the first resource is a D2D resource that has been allocated to the third terminal for receiving the D2D communication signal.
  • the base station may send, by using the high layer signaling, the first instruction to each terminal that has been allocated the D2D resource for the D2D communication, and after receiving the first instruction, each D2D terminal monitors the first terminal to send the predetermined time-frequency resource. Detecting a signal Discovery signal, and returning a first response to the base station according to the monitored discovery signal, the base station determining, according to the first response, which terminal the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and assigning The D2D resource of the terminal whose monitored signal quality of the discovery signal sent by the first terminal is less than the predetermined quality threshold is determined as the first resource.
  • Step 1702 Monitor a D2D communication signal according to the first resource, and detect a signal strength of the D2D communication signal that is monitored according to the first resource, to obtain a first detection result.
  • Step 1703 Send a second response to the base station according to the first detection result.
  • the second response is for indicating whether the signal strength of the D2D communication signal monitored according to the first resource is less than a predetermined intensity threshold.
  • the strength of the monitored D2D communication signal may be directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined intensity threshold; or the second terminal may also First, it is detected whether the signal strength is less than a predetermined intensity threshold, and the detection result is carried in the response and sent to the base station.
  • the resources used by the second terminal to return the second response to the base station can be dynamically configured by the base station.
  • Step 1704 Receive a target resource sent by the base station.
  • the target resource is a resource allocated by the base station from the reusable resource;
  • Step 1705 Receive a D2D communication signal sent by the first terminal according to the target resource.
  • the resource allocation method provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources.
  • a target resource allocated in the resource, and receiving the D2D communication signal sent by the first base station according to the target resource which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources.
  • the method can be used to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station in the second terminal shown in any one of FIG. 9 to FIG.
  • the resource allocation method may include: Step 1801: Receive a third instruction that is sent by the base station and includes the second resource;
  • the second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal. Step 1802, detecting, according to the second resource, the D2D communication signal, detecting a signal strength of the D2D communication signal that is monitored according to the second resource, and obtaining Second test result;
  • Step 1803 Send a third response to the base station according to the second detection result.
  • the third response is for indicating whether the signal strength of the D2D communication signal monitored according to the second resource is less than a predetermined intensity threshold.
  • the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource, and the second terminal monitors the D2D communication according to the second resource sent by the base station.
  • the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result, where the fourth response indicates that the fourth terminal monitors the first terminal to send
  • the second resource is determined as a reusable resource that can be multiplexed by the first terminal and the second terminal.
  • the strength of the monitored D2D communication signal may be directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined intensity threshold; or the second terminal may also First, it is detected whether the signal strength is less than a predetermined intensity threshold, and the detection result is carried in the response and sent to the base station.
  • the second terminal returns a third response to the base station,
  • the resources used can be dynamically configured by the base station.
  • Step 1804 Receive a target resource sent by the base station.
  • the target resource is a resource allocated by the base station from the reusable resource
  • Step 1805 Receive a D2D communication signal sent by the first terminal according to the target resource.
  • the resource allocation method provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources.
  • a target resource allocated in the resource, and receiving the D2D communication signal sent by the first base station according to the target resource which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources.
  • FIG. 29 a flow chart of a method for resource allocation according to an embodiment of the present invention is shown. The method may be used to assist the base station in the allocated D2D resource after receiving the request by the first terminal to establish D2D communication with the second terminal in the third terminal as shown in any one of FIG. 13 to FIG. Determine reusable resources.
  • the resource allocation method can include:
  • Step 1901 Receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request for establishing a D2D communication with the second terminal sent by the first terminal;
  • Step 1902 Listen to the discovery signal sent by the first terminal.
  • Step 1903 Detect the signal quality of the detected discovery signal, and obtain a third detection result.
  • Step 1904 send a first response to the base station according to the third detection result; and the base station instructs the monitored response in the first response.
  • the signal quality of the discovery signal is less than the predetermined quality threshold, sending a second instruction including the first resource to the second terminal, and receiving a second response returned by the second terminal, and indicating the second terminal in the second response
  • the signal strength of the D2D communication signal monitored by the first resource is less than a predetermined intensity threshold, determining the first resource as a reusable resource, allocating a target resource from the reusable resource, and sending the target resource to The first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource; wherein the first resource is assigned to the
  • the third terminal is configured to receive the D2D resource of the D2D communication signal, where the second instruction is used to instruct the second terminal
  • the resource allocation method provided by the embodiment of the present invention is sent by receiving a base station. After the first instruction, the discovery signal sent by the first terminal is monitored, and the first response is returned to the base station according to the monitoring result, where the signal quality of the discovery signal of the first terminal received by the base station in the first response is less than the predetermined quality. Sending a second instruction to the second terminal after the threshold, and indicating, according to the second response returned by the second terminal, the signal strength of the D2D communication signal that the second terminal monitors according to the first resource used by the third terminal to receive the D2D communication signal.
  • the first resource is determined as a reusable resource, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be no idle D2D resources available for allocation. The problem is to achieve the goal of improving resource utilization and system capacity.
  • FIG. 30 a flowchart of a method for resource allocation according to another embodiment of the present invention is shown. The method may be used to assist the base station in the allocated D2D resource after receiving the request by the first terminal to establish D2D communication with the second terminal in the third terminal as shown in any one of FIG. 13 to FIG. Determine reusable resources.
  • the resource allocation method can include:
  • Step 2001 receiving a first instruction sent by the base station
  • the first instruction is an instruction sent by the base station after receiving a request sent by the first terminal for establishing D2D communication with the second terminal;
  • Step 2002 Listening to the discovery signal sent by the first terminal
  • the terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the discovery signal sent by the second terminal and detects that the D2D communication can be performed with the second terminal.
  • the base station may send a request for D2D communication with the second terminal.
  • the third terminal may monitor the discovery signal periodically sent by the first terminal.
  • Step 2003 Detecting the signal quality of the detected discovery signal, and obtaining a third detection result;
  • the discovery signal sent by the first terminal may carry the reference content previously known by each terminal, and after receiving the discovery signal, the third terminal
  • the discovery signal is parsed, and the content obtained by the parsing is compared with the reference content to obtain the parsing accuracy rate, and the parsing accuracy rate is used as the signal quality of the received discovery signal sent by the first terminal.
  • Step 2004 Send a first response to the base station according to the third detection result.
  • the third terminal may send a first response frame including the first response to the base station, where the first response frame is a first D2D communication frame sent according to the first resource after receiving the first instruction.
  • the resource for transmitting the D2D signal returns a response to the base station.
  • the response returned to the base station may be carried in the first OFDM symbol in the first D2D communication frame transmitted after receiving the first instruction.
  • the base station After transmitting the first instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the first response returned by the third terminal. .
  • the base station sends a second command including the first resource to the second terminal, and receives a second response returned by the second terminal, when the first response indicates that the signal quality of the detected signal is less than a predetermined quality threshold.
  • the second response indicates that the signal strength of the D2D communication signal that the second terminal monitors according to the first resource is less than a predetermined strength threshold, determining the first resource as a reusable resource, from the reusable resource. Allocating a target resource, and transmitting the target resource to the first terminal and the second terminal, wherein the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource;
  • the first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not
  • the second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.
  • the base station may send, by using the high layer signaling, a first instruction to the third terminal that has been allocated the D2D resource for the D2D communication, and after receiving the first instruction, the third terminal monitors the discovery sent by the first terminal on the predetermined time-frequency resource. a signal of the Discovery signal, and returning a first response to the base station according to the monitored discovery signal, the base station determining, according to the first response, the discovery message sent by the first terminal monitored by the third terminal When the signal quality of the number is less than the predetermined quality threshold, the D2D resource allocated to the third terminal is determined as the first resource.
  • the base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.
  • the signal quality of the monitored discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal quality is less than a predetermined quality threshold; or, the third terminal It is also possible to first detect whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.
  • the resource allocation method listens to the discovery signal sent by the first terminal after receiving the first instruction sent by the base station, and returns a first response to the base station according to the monitoring result, where the base station is in the The first response indicates that the signal quality of the discovery signal of the first terminal received by the third terminal is less than the predetermined quality threshold, and sends a second instruction to the second terminal, and indicates that the second terminal is based on the second response returned by the second terminal.
  • the first resource is determined to be a reusable resource, which solves the problem in the prior art when the base station is in coverage.
  • FIG. 31 a flow chart of a method for resource allocation according to an embodiment of the present invention is shown. The method may be used to assist the base station in the allocated D2D resource after receiving the request of the first terminal to establish D2D communication with the second terminal in the fourth terminal as shown in any one of FIG. 17 to FIG. Determine reusable resources.
  • the resource allocation method can include:
  • Step 2101 Receive a fourth command sent by the base station, where the fourth command is that the base station receives a request for establishing a D2D communication with the second terminal, and sends a second resource to the second terminal.
  • a third instruction receiving a third response returned by the second terminal, and transmitting, by the third terminal, an instruction sent by the second terminal according to the signal strength of the D2D communication signal monitored by the second resource is less than a predetermined intensity threshold
  • the second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal, and the third command is used to instruct the second terminal to monitor the D2D communication signal according to the second resource, where the third response is used to indicate the The D2D communication signal monitored by the second terminal according to the second resource Whether the signal strength is less than the predetermined intensity threshold;
  • Step 2102 Listen to the discovery signal sent by the first terminal.
  • Step 2103 Detect the signal quality of the detected discovery signal, and obtain a fourth detection result.
  • Step 2104 Send a fourth response to the base station according to the fourth detection result.
  • the fourth response is used to indicate the detected discovery signal. Whether the signal quality is less than a predetermined quality threshold; when the signal quality of the discovery signal monitored by the fourth response indication is less than the predetermined quality threshold, the second resource is determined as a reusable resource, and the Allocating a target resource with a resource, and transmitting the target resource to the first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D according to the target resource. Communication signal.
  • the receiving base station sends a third instruction including the second resource to the second terminal, and indicates the second terminal according to the received third response returned by the second terminal.
  • the receiving base station After detecting the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold, detecting the signal quality of the detected discovery signal sent by the first terminal, and returning the fourth response to the base station according to the detection result.
  • FIG. 32 a flow chart of a method for resource allocation according to another embodiment of the present invention is shown. The method may be used to assist the base station in the allocated D2D resource after receiving the request of the first terminal to establish D2D communication with the second terminal in the fourth terminal as shown in any one of FIG. 17 to FIG. Determine reusable resources.
  • the resource allocation method can include:
  • Step 2201 Receive a fourth instruction sent by the base station.
  • the fourth instruction is that the base station receives a request for establishing D2D communication with the second terminal by the first terminal, and sends a third instruction including the second resource to the second terminal, and receives the return of the second terminal.
  • the second resource is allocated to the fourth terminal a third command for instructing the second terminal to monitor the D2D communication signal according to the second resource, where the third command is used to indicate that the second terminal is listening to the D2D according to the second resource.
  • Step 2202 Listen to the discovery signal sent by the first terminal.
  • Step 2203 detecting the signal quality of the detected discovery signal, and obtaining a fourth detection result.
  • the method for the fourth terminal to listen to the discovery signal sent by the first terminal and detecting the signal quality of the discovery signal is similar to the third terminal, and is no longer here. Narration.
  • Step 2204 Send a fourth response to the base station according to the fourth detection result.
  • the fourth response is used to indicate whether the monitored signal quality of the discovery signal is less than a predetermined quality threshold.
  • the fourth terminal sends a second response frame including the fourth response to the base station, where the second response frame is the first D2D communication frame sent according to the second resource after receiving the fourth instruction.
  • the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal.
  • the response returned to the base station may be carried after receiving the fourth instruction.
  • the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the fourth response returned by each D2D terminal. .
  • the signal quality of the detected first terminal's discovery signal may be directly sent to the base station, and the base station detects whether the signal quality is less than a predetermined quality threshold; or, the fourth terminal It is also possible to first detect whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.
  • the base station determines the second resource as a reusable resource, allocates a target resource from the reusable resource, and allocates the signal to the reusable resource when the fourth response indicates that the signal quality of the detected signal is less than the predetermined quality threshold.
  • the target resource is sent to the first terminal and the second terminal, and the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.
  • the signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.
  • the D2D resource can be a time-frequency resource.
  • the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.
  • satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not Will have an effect; meet the second condition to indicate that A D2D communication signal transmitted by another terminal other than a terminal using the reusable resource does not affect the second terminal.
  • the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource to the second terminal, and the second terminal monitors the D2D communication signal according to the second resource sent by the base station, and according to The monitoring result returns a third response to the base station, and when the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined intensity threshold, the fourth command is sent to the fourth terminal, and the fourth After receiving the instruction, the terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result, where the fourth response indicates that the fourth terminal monitors the discovery signal sent by the first terminal.
  • the second resource is determined to be a reusable resource that can be multiplexed by the first terminal and the second terminal.
  • the receiving base station sends a third instruction including the second resource to the second terminal, and indicates the second terminal according to the received third response returned by the second terminal.
  • the receiving base station After detecting the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold, detecting the signal quality of the detected discovery signal sent by the first terminal, and returning the fourth response to the base station according to the detection result.
  • FIG. 33 a flow chart of a method for resource allocation according to an embodiment of the present invention is shown.
  • the method can be used to allocate reusable resources for terminals requesting D2D communication in an allocated D2D resource. It is assumed that the D2D resources in the system are not fixed, and the base station dynamically configures the terminal logarithm of the D2D communication according to the current needs.
  • the base station first considers multiplexing the allocated D2D resources.
  • the resource allocation method can include:
  • Step 2301 The first terminal sends a request for establishing D2D communication with the second terminal to the base station.
  • the terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the second terminal.
  • the transmitted discovery signal and detecting that the D2D communication can be performed with the second terminal may send a request for D2D communication with the second terminal to the base station.
  • Step 2302 The base station sends a first instruction to the third terminal.
  • the base station may broadcast the high layer signaling to the terminal that has been allocated the D2D resource for the D2D communication, and indicates that each terminal that has allocated the D2D resource listens to the discovery signal sent by the first terminal.
  • Step 2303 The third terminal monitors the discovery signal sent by the first terminal according to the first instruction.
  • the first response is used to indicate whether the signal quality of the discovery signal sent by the first terminal monitored by the third terminal is less than a predetermined quality threshold.
  • the discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal, and after receiving the discovery signal, each terminal that has been allocated the D2D resource parses the discovery signal, and parses the obtained content and The reference content is compared, and the resolution accuracy is obtained, and the resolution accuracy is used as the signal quality of the received discovery signal transmitted by the first terminal.
  • Step 2305 The base station sends a second instruction including the first resource to the second terminal, when the first response indicates that the signal quality of the discovery signal sent by the first terminal that is monitored by the third terminal is less than a predetermined quality threshold.
  • the first resource is pre-assigned to the third terminal by the base station, so that the third terminal receives the D2D resource of the D2D communication signal.
  • the base station may use, as the first resource, the D2D resource used by the terminal corresponding to the response corresponding to the response that the signal quality of the discovery signal of the first terminal received in the previous step is less than the predetermined quality threshold to receive the D2D communication signal.
  • the signal quality of the detected first terminal is directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined quality threshold.
  • the base station detects whether the signal strength is less than a predetermined quality threshold.
  • the discovery signal sent by the first terminal may be interfered by the discovery signal sent by other terminals.
  • the receiving end receives the mixed signal of the discovery signal and the interference signal sent by the first terminal. If based on the signal strength, the receiving end can only measure the strength of the mixed signal, and cannot represent the signal of the first terminal. Intensity, therefore, the embodiment of the present invention sets the determination threshold according to the signal quality of the discovery signal of the first terminal, and can improve the accuracy of the determination.
  • Step 2306 the second terminal monitors the D2D communication signal according to the first resource.
  • the second terminal monitors the D2D communication signal according to the first resource, and detects the monitored D2D communication. The strength of the signal.
  • Step 2307 The second terminal returns a second response to the base station.
  • the second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than a predetermined intensity threshold.
  • the strength of the monitored D2D communication signal may be directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined intensity threshold; or the second terminal may first detect whether the signal strength is less than a predetermined one.
  • the intensity threshold is carried and the detection result is carried in the response and sent to the base station.
  • Step 2308 The base station determines, according to the second response, that the signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than a predetermined strength threshold, determining the first resource as a reusable resource;
  • the base station After receiving the second response returned by the second terminal, the base station determines, according to the second response, the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined strength threshold as the reusable resource.
  • Step 2309 The base station allocates a target resource from the reusable resources.
  • the base station may allocate some or all of the resources of the reusable resource as the target resource according to actual conditions or pre-specified rules.
  • Step 2310 If the target resource is insufficient, the base station further allocates the target resource from the idle D2D resource.
  • the base station After the base station allocates the target resource from the reusable resource, it can detect whether the target resource is sufficient. If the target resource allocated from the reusable resource is sufficient, the idle D2D resource is no longer allocated; if the second terminal does not exist According to the resource whose signal strength of the D2D communication signal is less than the predetermined intensity threshold, or the target resource allocated from the reusable resource is still insufficient, the base station detects whether there is an idle D2D resource, and if there is an idle D2D resource, The target resource is further allocated from the idle D2D resources.
  • Step 2311 The base station sends the target resource to the first terminal and the second terminal, where the first terminal sends the D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.
  • the base station first considers multiplexing the allocated resources, and when the multiplexable resources are insufficient, the idle D2D resources are taken as an example for description. In practical applications, the idle allocation may also be considered first. D2D resources, when the idle D2D resources are insufficient, consider multiplexing the allocated resources.
  • the resource allocation method after receiving the request of the first terminal to establish D2D communication with the second terminal, the base station instructs the third terminal to monitor the sending of the first terminal. a signal, and when the signal quality of the discovery signal sent by the first terminal monitored by the third terminal is less than a predetermined quality threshold, instructing the second terminal to monitor the D2D communication signal according to the first resource used by the third terminal to receive the D2D communication signal, And determining, by the second terminal, that the signal strength of the D2D communication signal that is monitored by the first resource is less than a predetermined strength threshold, determining the first resource as a reusable resource, and allocating the first terminal to the first in the reusable resource
  • the second terminal sends the target resource of the D2D communication signal, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be a situation that no idle D2D resources are available for allocation, thereby improving resource
  • the method can be used to allocate reusable resources to terminals requesting D2D communication in an allocated D2D resource.
  • the D2D resource in the system is fixed.
  • the base station When the first terminal requests to establish D2D communication with the second terminal, the base station first considers allocating idle D2D resources, and then considers multiplexing the allocated D2D resources.
  • the resource allocation method can include:
  • Step 2401 the first terminal sends a request for establishing D2D communication with the second terminal to the base station; the terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the second terminal.
  • the transmitted discovery signal and detecting that the D2D communication can be performed with the second terminal may send a request for D2D communication with the second terminal to the base station.
  • Step 2402 The base station detects whether there is an idle D2D resource.
  • the target resource is allocated from the idle D2D resource, and the allocated target resource is detected to be sufficient. If the allocated target resource is sufficient, the subsequent step is not performed.
  • Step 2403 If there is no idle D2D resource, the base station sends a third instruction including the second resource to the second terminal.
  • the base station If the target resource allocated by the base station from the idle D2D resource is insufficient or there is no idle D2D resource, the base station sends the resource that has been allocated to the fourth terminal as the receiving D2D communication signal as the second resource to the second terminal.
  • the base station may broadcast the high layer signaling to the second terminal, where the broadcast high layer signaling carries the second resource, to indicate that the second terminal monitors the D2D communication signal according to the second resource.
  • Step 2404 The second terminal monitors the D2D communication signal according to the second resource.
  • Step 2405 The second terminal returns a third response to the base station.
  • the third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined intensity threshold.
  • the second terminal monitors the D2D communication signal according to the first resource, and returns the first response to the base station. The steps are similar and will not be described here.
  • Step 2406 The base station sends a fourth instruction to the fourth terminal when the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined strength threshold.
  • the base station may send all the allocated D2D resources to the second terminal, and the second terminal monitors the D2D communication signal according to the allocated D2D resources, and returns a third response to the base station according to the monitoring result. Determining, by the base station, the resource indicated by the second terminal in the third response that the signal strength of the D2D communication signal that is monitored is less than the predetermined strength threshold is a primary resource, and the terminal that is allocated the primary resource to receive the D2D communication signal Send the fourth command.
  • Step 2407 the fourth terminal monitors the discovery signal sent by the first terminal.
  • Step 2408 The fourth terminal returns a fourth response to the base station.
  • the fourth response is used to indicate whether the signal quality of the discovery signal sent by the first terminal monitored by the fourth terminal is less than a predetermined quality threshold.
  • Step 2409 The base station determines the second resource as a reusable resource when the fourth response indicates that the signal quality of the discovery signal sent by the first terminal monitored by the fourth terminal is less than a predetermined quality threshold.
  • the base station determines the primary resource as a reusable resource.
  • Step 2410 The base station allocates a target resource from the reusable resource.
  • the base station may allocate some or all of the resources of the reusable resource as the target resource according to actual conditions or pre-specified rules.
  • Step 2411 The base station sends the target resource to the first terminal and the second terminal, where the first terminal sends the D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.
  • the base station first considers allocating idle D2D resources, and when the idle D2D resources are insufficient, considering multiplexing the allocated resources as an example, in practical applications, the first application may be considered.
  • the allocated D2D resources when there are no reusable resources in the allocated resources or when the reusable resources are insufficient, consider allocating idle D2D resources.
  • the base station after receiving the request for establishing D2D communication with the second terminal by the first terminal, the base station instructs the second terminal to allocate the D2D communication according to the fourth terminal.
  • the second resource of the signal monitors the D2D communication signal, and when the signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined intensity threshold, instructs the fourth terminal to monitor the discovery signal sent by the first terminal, and the fourth terminal monitors the discovery.
  • the signal quality of the signal is less than the predetermined quality threshold, determining the second resource as a reusable resource, and allocating, in the reusable resource, the target resource used by the first terminal to send the D2D communication signal to the second terminal.
  • the system may include a base station 2501 as described in any of FIGS. 1 to 4, a first terminal 25002 as described in any of FIGS. 5 to 8, a second terminal 2503 as described in any of FIGS. 9 to 12, and At least one third terminal 2504 as described in any of FIGS. 13 to 16 and/or at least one fourth terminal 2505 as described in any of FIGS. 17 to 20.
  • the resource allocation system determines the first terminal in the already allocated D2D resource after receiving the request for establishing end-to-end D2D communication with the second terminal, which is sent by the first terminal.
  • the resource that can be multiplexed with the second terminal, and the target resource is allocated from the reusable resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources.
  • the problem of the situation for distribution to achieve the purpose of improving resource utilization and system capacity. It should be noted that, when the D2D resource is allocated, the base station and the terminal provided by the foregoing embodiment are only illustrated by using the foregoing functional modules.
  • the function allocation may be completed by different functional modules as needed.
  • the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the base station, the first terminal, the second terminal, the third terminal, and the fourth terminal provided by the foregoing embodiments are in the same concept as the resource allocation method embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a base station, a terminal, and a resource allocation method and system, relating to the field of wireless communications. The base station comprises: a request reception module, a resource determination module, a first resource allocation module, a first resource sending module and a second resource sending module. After receiving a request to establish an end to end (D2D) communication with a second terminal which is sent by a first terminal, by way of determining resources which may be multiplexed by the first terminal and the second terminal and allocating target resources from multiplex resources, the present invention solves the problem in the prior art that the situation of no idle D2D resources for allocation may arise when there are many terminals requesting to establish a D2D communication within a coverage area of the base station, and achieves the purpose of improving the resource utilization rate and system capacity.

Description

说 明 书 基站、 终端、 资源分配方法及系统 技术领域  Description base station, terminal, resource allocation method and system

本发明涉及无线通信领域, 特别涉及一种基站、 终端、 资源分配方法及系 统。 背景技术  The present invention relates to the field of wireless communications, and in particular, to a base station, a terminal, a resource allocation method, and a system. Background technique

Device-to-Device(D2D , 端到端)通信是一种在系统控制下, 允许终端之间 直接进行通信的技术。 在 D2D通信中, 为了避免各个终端之间的干扰, 基站 需要为每个 D2D终端分配各自的 D2D资源。  Device-to-Device (D2D, end-to-end) communication is a technology that allows direct communication between terminals under system control. In D2D communication, in order to avoid interference between individual terminals, the base station needs to allocate respective D2D resources for each D2D terminal.

在现有的 D2D资源分配方法中, 基站预先划分一部分通信资源作为 D2D 资源; 当第一终端发现可进行 D2D通信的第二终端时, 向基站发送与第二终 端建立 D2D通信的请求; 基站接收该请求后, 检测 D2D资源中是否存在空闲 资源, 若是, 则将该空闲资源中的部分或者全部分配为第一终端向第二终端发 送 D2D通信信号的资源。  In the existing D2D resource allocation method, the base station pre-partitions a part of communication resources as D2D resources; when the first terminal discovers the second terminal that can perform D2D communication, sends a request for establishing D2D communication with the second terminal to the base station; After the request, it is detected whether there is an idle resource in the D2D resource, and if yes, part or all of the idle resource is allocated as a resource that the first terminal sends a D2D communication signal to the second terminal.

在实现本发明的过程中, 发明人发现现有技术至少存在以下问题: 可用于进行 D2D通信的资源有限, 当基站覆盖范围内进行 D2D通信的终 端数量较多时, 可能出现没有空闲的 D2D资源可供分配给新请求建立 D2D通 信的终端的情形, 资源利用率不高, 系统容量低。 发明内容  In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems: The resources available for D2D communication are limited. When there are a large number of terminals performing D2D communication within the coverage of the base station, there may be no idle D2D resources. In the case of a terminal allocated for newly requesting D2D communication, resource utilization is not high and system capacity is low. Summary of the invention

为了解决现有技术中当基站覆盖范围内进行 D2D通信的终端数量较多时, 可能出现没有空闲的 D2D资源可供分配给新请求建立 D2D通信的终端的情形 的问题, 本发明实施例提供了一种基站、 终端、 资源分配方法及系统。 所述技 术方案如下:  In order to solve the problem in the prior art, when there are a large number of terminals performing D2D communication in the coverage of the base station, there may be a problem that no idle D2D resources are available for allocation to a terminal that newly requests to establish D2D communication, and an embodiment of the present invention provides a Base station, terminal, resource allocation method and system. The technical solution is as follows:

第一方面, 提供了一种基站, 所述基站包括:  In a first aspect, a base station is provided, where the base station includes:

请求接收模块,用于接收第一终端发送的用于与第二终端建立端到端 D2D 通信的请求;  a request receiving module, configured to receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal;

资源确定模块, 用于在已经分配的 D2D 资源中确定能够被所述第一终端 和所述第二终端复用的可复用资源; a resource determining module, configured to determine, in the already allocated D2D resource, the first terminal a reusable resource multiplexed with the second terminal;

第一资源分配模块, 用于从所述可复用资源中分配目标资源;  a first resource allocation module, configured to allocate a target resource from the reusable resource;

第一资源发送模块, 用于将所述目标资源发送给所述第一终端, 由所述第 一终端根据所述目标资源发送 D2D通信信号;  a first resource sending module, configured to send the target resource to the first terminal, where the first terminal sends a D2D communication signal according to the target resource;

第二资源发送模块, 用于将所述目标资源发送给所述第二终端, 由所述第 二终端根据所述目标资源接收 D2D通信信号。  And a second resource sending module, configured to send the target resource to the second terminal, where the second terminal receives the D2D communication signal according to the target resource.

在第一方面的第一种可能实现方式中, 所述资源确定模块, 包括: 第一指令发送单元, 用于向第三终端发送第一指令, 所述第一指令用于指 示所述第三终端监听所述第一终端发送的发现信号;  In a first possible implementation manner of the first aspect, the resource determining module includes: a first instruction sending unit, configured to send a first instruction to the third terminal, where the first instruction is used to indicate the third The terminal monitors the discovery signal sent by the first terminal;

第一响应接收单元, 用于接收所述第三终端返回的第一响应, 所述第一响 应用于指示所述第三终端监听到的所述发现信号的信号质量是否小于预定质 量阈值;  a first response receiving unit, configured to receive a first response returned by the third terminal, where the first response is applied to indicate whether a signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold;

第二指令发送单元, 用于若所述第一响应指示所述第三终端监听到的所述 发现信号的信号质量小于所述预定质量阈值, 则向所述第二终端发送包含有第 一资源的第二指令, 所述第一资源为已分配给所述第三终端用以接收 D2D通 信信号的 D2D 资源, 所述第二指令用于指示所述第二终端根据所述第一资源 监听 D2D通信信号;  a second instruction sending unit, configured to send, to the second terminal, the first resource, if the first response indicates that the signal quality of the discovery signal monitored by the third terminal is less than the predetermined quality threshold The second command, the first resource is a D2D resource that is allocated to the third terminal to receive the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D according to the first resource. Communication signal

第二响应接收单元, 用于接收所述第二终端返回的第二响应, 所述第二响 应用于指示所述第二终端根据所述第一资源监听到的 D2D通信信号的信号强 度是否小于预定强度阈值;  a second response receiving unit, configured to receive a second response returned by the second terminal, where the second response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than Predetermined intensity threshold;

第一确定单元, 用于若接收到的所述第二响应指示所述第二终端根据所述 第一资源监听到的 D2D通信信号的信号强度小于所述预定强度阈值, 则将所 述第一资源确定为所述可复用资源。  a first determining unit, configured to: if the received second response indicates that the signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than the predetermined intensity threshold, The resource is determined to be the reusable resource.

结合第一方面的第一种可能实现方式,在第一方面的第二种可能实现方式 中, 所述第一响应接收单元, 用于接收所述第三终端发送的包含有所述第一响 应的第一响应帧, 所述第一响应帧为所述第三终端在接收到所述第一指令后, 根据所述第一资源发送的第一个 D2D通信帧。  With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the first response receiving unit, configured to receive, by the third terminal, the first response a first response frame, where the first response frame is a first D2D communication frame sent by the third terminal according to the first resource after receiving the first instruction.

在第一方面的第三种可能实现方式中, 所述资源确定模块, 包括: 第三指令发送单元, 用于向所述第二终端发送包含有第二资源的第三指 令, 所述第二资源为已分配给第四终端用以接收 D2D通信信号的 D2D资源; 所述第三指令用于指示所述第二终端根据所述第二资源监听 D2D通信信号; 第三响应接收单元, 用于接收所述第二终端返回的第三响应, 所述第三响 应用于指示所述第二终端根据所述第二资源监听到的 D2D通信信号的信号强 度是否小于预定强度阈值; In a third possible implementation manner of the first aspect, the resource determining module includes: a third instruction sending unit, configured to send, to the second terminal, a third instruction that includes a second resource, where the second The resource is a D2D resource that has been allocated to the fourth terminal to receive the D2D communication signal; the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource; a third response receiving unit, configured to receive a third response returned by the second terminal, where the third response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the second resource is less than Predetermined intensity threshold;

第四指令发送单元, 用于若所述第三响应指示所述第二终端根据所述第二 资源监听到的 D2D通信信号的信号强度小于所述预定强度阈值, 则向所述第 四终端发送第四指令, 所述第四指令用于指示所述第四终端监听所述第一终端 发送的发现信号;  a fourth instruction sending unit, configured to send, to the fourth terminal, if the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold a fourth instruction, where the fourth instruction is used to instruct the fourth terminal to listen to the discovery signal sent by the first terminal;

第四响应接收单元, 用于接收所述第四终端返回的第四响应, 所述第四响 应用于指示所述第四终端监听到的所述发现信号的信号质量是否小于预定质 量阈值;  a fourth response receiving unit, configured to receive a fourth response returned by the fourth terminal, where the fourth ring is applied to indicate whether a signal quality of the discovery signal monitored by the fourth terminal is less than a predetermined quality threshold;

第二确定单元, 用于若接收到的所述第四响应指示所述第四终端监听到的 所述发现信号的信号质量小于所述预定质量阈值, 则将所述第二资源确定为所 述可复用资源。  a second determining unit, configured to determine, according to the fourth response that the received fourth signal indicates that the signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold, Reusable resources.

结合第一方面的第三种可能实现方式,在第一方面的第四种可能实现方式 中, 所述第四响应接收单元, 用于接收所述第四终端发送的包含有所述第四响 应的第二响应帧, 所述第二响应帧为所述第四终端在接收到所述第四指令后, 根据所述第二资源发送的第一个 D2D通信帧。  With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the fourth response receiving unit, configured to receive, by the fourth terminal, the fourth response a second response frame, where the second response frame is a first D2D communication frame sent by the fourth terminal according to the second resource after receiving the fourth instruction.

结合第一方面、 第一方面的第一种可能实现方式中、 第一方面的第二种可 能实现方式、 第一方面的第三种可能实现方式或者第一方面的第四种可能实现 方式, 在第一方面的第五种可能实现方式中, 所述基站还包括:  With reference to the first aspect, the first possible implementation manner of the first aspect, the second possible implementation manner of the first aspect, the third possible implementation manner of the first aspect, or the fourth possible implementation manner of the first aspect, In a fifth possible implementation manner of the foregoing aspect, the base station further includes:

第一检测模块, 用于检测从所述可复用资源中分配目标资源之后, 所述目 标资源是否充足;  a first detecting module, configured to detect whether the target resource is sufficient after the target resource is allocated from the reusable resource;

第二检测模块, 用于若所述第一检测模块的检测结果为所述目标资源不 足, 则检测是否存在空闲的 D2D资源;  a second detecting module, configured to detect whether there is an idle D2D resource if the detection result of the first detecting module is that the target resource is insufficient;

第二资源分配模块, 用于若所述第二检测模块的检测结果为存在空闲的 D2D资源, 则从所述空闲的 D2D资源中分配所述目标资源。  And a second resource allocation module, configured to allocate the target resource from the idle D2D resource if the detection result of the second detection module is that there is an idle D2D resource.

结合第一方面、 第一方面的第一种可能实现方式中、 第一方面的第二种可 能实现方式、 第一方面的第三种可能实现方式或者第一方面的第四种可能实现 方式, 在第一方面的第六种可能实现方式中, 所述基站还包括:  With reference to the first aspect, the first possible implementation manner of the first aspect, the second possible implementation manner of the first aspect, the third possible implementation manner of the first aspect, or the fourth possible implementation manner of the first aspect, In a sixth possible implementation manner of the foregoing aspect, the base station further includes:

第三检测模块, 用于在所述第一资源分配模块从所述可复用资源中分配目 标资源之前, 检测是否存在空闲的 D2D资源; 第三资源分配模块, 用于若所述第三检测模块的检测结果为存在空闲的a third detecting module, configured to detect whether there is an idle D2D resource before the first resource allocation module allocates the target resource from the reusable resource; a third resource allocation module, configured to: if the detection result of the third detection module is idle

D2D资源, 则从所述空闲的 D2D资源中分配所述目标资源; a D2D resource, the target resource is allocated from the idle D2D resource;

第四检测模块, 用于检测从所述空闲的 D2D资源中分配所述目标资源之 后, 所述目标资源是否充足;  a fourth detecting module, configured to detect whether the target resource is sufficient after the target resource is allocated from the idle D2D resource;

所述第一资源分配模块, 用于若所述第四检测模块的检测结果为所述目标 资源不足, 则执行所述从所述可复用资源分配目标资源的步骤。  And the first resource allocation module is configured to perform the step of allocating the target resource from the reusable resource if the detection result of the fourth detecting module is that the target resource is insufficient.

第二方面, 提供了一种基站, 所述基站包括: 接收机、 处理器和发射机; 所述接收机, 用于接收第一终端发送的用于与第二终端建立端到端 D2D 通信的请求;  In a second aspect, a base station is provided, where the base station includes: a receiver, a processor, and a transmitter, where the receiver is configured to receive, by the first terminal, an end-to-end D2D communication with the second terminal. Request

所述处理器, 用于在已经分配的 D2D资源中确定能够被所述第一终端和 所述第二终端复用的可复用资源;  The processor, configured to determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal;

所述处理器, 用于从所述可复用资源中分配目标资源;  The processor, configured to allocate a target resource from the reusable resource;

所述处理器, 用于控制所述发射机将所述目标资源发送给所述第一终端和 所述第二终端, 由所述第一终端根据所述目标资源发送 D2D通信信号, 并由 所述第二终端根据所述目标资源接收 D2D通信信号。  The processor is configured to control the transmitter to send the target resource to the first terminal and the second terminal, where the first terminal sends a D2D communication signal according to the target resource, and The second terminal receives the D2D communication signal according to the target resource.

在第二方面的第一种可能实现方式中, 所述处理器, 用于控制所述发射机 向第三终端发送第一指令, 所述第一指令用于指示所述第三终端监听所述第一 终端发送的发现信号;  In a first possible implementation manner of the second aspect, the processor is configured to control the transmitter to send a first instruction to a third terminal, where the first instruction is used to instruct the third terminal to monitor the a discovery signal sent by the first terminal;

所述接收机, 用于接收所述第三终端返回的第一响应, 所述第一响应用于 指示所述第三终端监听到的所述发现信号的信号质量是否小于预定质量阈值; 所述处理器, 用于若所述第一响应指示所述第三终端监听到的所述发现信 号的信号质量小于所述预定质量阈值, 则控制所述发射机向所述第二终端发送 包含有第一资源的第二指令, 所述第一资源为已分配给所述第三终端用以接收 The receiver is configured to receive a first response returned by the third terminal, where the first response is used to indicate whether a signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold; a processor, configured to: if the first response indicates that a signal quality of the discovery signal monitored by the third terminal is less than the predetermined quality threshold, control the transmitter to send the second terminal to include a second instruction of a resource, the first resource is allocated to the third terminal for receiving

D2D通信信号的 D2D资源, 所述第二指令用于指示所述第二终端根据所述第 一资源监听 D2D通信信号; a D2D resource of the D2D communication signal, the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource;

所述接收机, 用于接收所述第二终端返回的第二响应, 所述第二响应用于 指示所述第二终端根据所述第一资源监听到的 D2D通信信号的信号强度是否 小于预定强度阈值;  The receiver is configured to receive a second response returned by the second terminal, where the second response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than a predetermined Intensity threshold

所述处理器, 用于若所述接收机接收到的所述第二响应指示所述第二终端 根据所述第一资源监听到的 D2D通信信号的信号强度小于所述预定强度阈值, 则将所述第一资源确定为所述可复用资源。 结合第二方面的第一种可能实现方式,在第二方面的第二种可能实现方式 中, 所述接收机, 用于接收所述第三终端发送的包含有所述第一响应的第一响 应帧, 所述第一响应帧为所述第三终端在接收到所述第一指令后, 根据所述第 一资源发送的第一个 D2D通信帧。 The processor, configured to: if the second response received by the receiver indicates that a signal strength of the D2D communication signal that the second terminal monitors according to the first resource is less than the predetermined intensity threshold, The first resource is determined to be the reusable resource. With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the receiver is configured to receive, by the third terminal, the first that includes the first response The first response frame is a first D2D communication frame sent by the third terminal according to the first resource after receiving the first instruction.

在第二方面的第三种可能实现方式中, 所述处理器, 用于控制所述发射机 向所述第二终端发送包含有第二资源的第三指令, 所述第二资源为已分配给第 四终端用以接收 D2D通信信号的 D2D资源; 所述第三指令用于指示所述第二 终端根据所述第二资源监听 D2D通信信号;  In a third possible implementation manner of the second aspect, the processor is configured to control the transmitter to send, to the second terminal, a third instruction that includes a second resource, where the second resource is allocated The fourth terminal is configured to receive the D2D resource of the D2D communication signal; the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource;

所述接收机, 用于接收所述第二终端返回的第三响应, 所述第三响应用于 指示所述第二终端根据所述第二资源监听到的 D2D通信信号的信号强度是否 小于预定强度阈值;  The receiver is configured to receive a third response returned by the second terminal, where the third response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the second resource is less than a predetermined Intensity threshold

所述处理器, 用于若所述第三响应指示所述第二终端根据所述第二资源监 听到的 D2D通信信号的信号强度小于所述预定强度阈值, 则控制所述发射机 向所述第四终端发送第四指令, 所述第四指令用于指示所述第四终端监听所述 第一终端发送的发现信号;  The processor, if the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold, controlling the transmitter to the The fourth terminal sends a fourth instruction, where the fourth instruction is used to instruct the fourth terminal to listen to the discovery signal sent by the first terminal;

所述接收机, 用于接收所述第四终端返回的第四响应, 所述第四响应用于 指示所述第四终端监听到的所述发现信号的信号质量是否小于预定质量阈值; 所述处理器, 用于若所述接收机接收到的所述第四响应指示所述第四终端 监听到的所述发现信号的信号质量小于所述预定质量阈值, 则将所述第二资源 确定为所述可复用资源。  The receiver is configured to receive a fourth response returned by the fourth terminal, where the fourth response is used to indicate whether a signal quality of the discovery signal monitored by the fourth terminal is less than a predetermined quality threshold; a processor, configured to determine, according to the fourth response received by the receiver, that a signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold, determine the second resource as The reusable resource.

结合第二方面的第三种可能实现方式,在第二方面的第四种可能实现方式 中, 所所述接收机, 用于接收所述第四终端发送的包含有所述第四响应的第二 响应帧, 所述第二响应帧为所述第四终端在接收到所述第四指令后, 根据所述 第二资源发送的第一个 D2D通信帧。  With reference to the third possible implementation of the second aspect, in a fourth possible implementation manner of the second aspect, the receiver is configured to receive, by the fourth terminal, a part that includes the fourth response a second response frame, where the second response frame is a first D2D communication frame sent by the fourth terminal according to the second resource after receiving the fourth instruction.

结合第二方面、 第二方面的第一种可能实现方式中、 第二方面的第二种可 能实现方式、 第二方面的第三种可能实现方式或者第二方面的第四种可能实现 方式, 在第二方面的第五种可能实现方式中, 所述处理器, 还用于检测从所述 可复用资源中分配目标资源之后, 所述目标资源是否充足;  With reference to the second aspect, the first possible implementation manner of the second aspect, the second possible implementation manner of the second aspect, the third possible implementation manner of the second aspect, or the fourth possible implementation manner of the second aspect, In a fifth possible implementation manner of the second aspect, the processor is further configured to detect whether the target resource is sufficient after the target resource is allocated from the reusable resource;

所述处理器, 用于若检测结果为所述目标资源不足, 则检测是否存在空闲 的 D2D资源;  The processor is configured to detect whether there is an idle D2D resource if the detection result is that the target resource is insufficient;

所述处理器, 用于若检测结果为存在空闲的 D2D 资源, 则从所述空闲的 D2D资源中分配所述目标资源。 The processor is configured to: if the detection result is that there is an idle D2D resource, the idle The target resource is allocated in the D2D resource.

结合第二方面、 第二方面的第一种可能实现方式中、 第二方面的第二种可 能实现方式、 第二方面的第三种可能实现方式或者第二方面的第四种可能实现 方式, 在第二方面的第六种可能实现方式中, 所述处理器, 用于在从所述可复 用资源中分配目标资源之前, 检测是否存在空闲的 D2D资源;  With reference to the second aspect, the first possible implementation manner of the second aspect, the second possible implementation manner of the second aspect, the third possible implementation manner of the second aspect, or the fourth possible implementation manner of the second aspect, In a sixth possible implementation manner of the second aspect, the processor is configured to detect whether there is an idle D2D resource before allocating the target resource from the reusable resource;

所述处理器, 用于若检测结果为存在空闲的 D2D 资源, 则从所述空闲的 D2D资源中分配所述目标资源;  The processor is configured to allocate the target resource from the idle D2D resource if the detection result is that there is an idle D2D resource;

所述处理器, 用于检测从所述空闲的 D2D资源中分配所述目标资源之后, 所述目标资源是否充足;  The processor is configured to detect whether the target resource is sufficient after the target resource is allocated from the idle D2D resource;

所述处理器, 用于若检测结果为所述目标资源不足, 则执行所述从所述可 复用资源分配目标资源的步骤。  And the processor is configured to perform the step of allocating the target resource from the reusable resource if the detection result is that the target resource is insufficient.

第三方面, 提供了第一终端, 所述第一终端包括:  In a third aspect, a first terminal is provided, where the first terminal includes:

请求发送模块, 用于向基站发送用于与第二终端建立端到端 D2D通信的 请求, 所述请求用于指示所述基站在已经分配的 D2D 资源中确定能够被所述 第一终端和所述第二终端复用的可复用资源, 并从所述可复用资源中分配目标 资源;  a request sending module, configured to send, to the base station, a request for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines, in the already allocated D2D resource, that the first terminal and the Decoding a reusable resource multiplexed by the second terminal, and allocating the target resource from the reusable resource;

第一资源接收模块, 用于接收所述基站发送的目标资源;  a first resource receiving module, configured to receive a target resource sent by the base station;

通信信号发送模块, 用于根据所述目标资源向所述第二终端发送 D2D通 信信号。  And a communication signal sending module, configured to send a D2D communication signal to the second terminal according to the target resource.

在第三方面的第一种可能实现方式中, 所述第一终端还包括:  In a first possible implementation manner of the third aspect, the first terminal further includes:

发现信号发送模块, 用于周期性发送发现信号。  The discovery signal sending module is configured to periodically send the discovery signal.

第四方面, 提供了第一终端, 所述第一终端包括: 处理器、 发射机和接收 机;  In a fourth aspect, a first terminal is provided, where the first terminal includes: a processor, a transmitter, and a receiver;

所述处理器, 用于控制所述发射机向基站发送用于与第二终端建立端到端 D2D通信的请求, 所述请求用于指示所述基站在已经分配的 D2D资源中确定 能够被所述第一终端和所述第二终端复用的可复用资源, 并从所述可复用资源 中分配目标资源;  The processor is configured to control, by the transmitter, a request for establishing an end-to-end D2D communication with a second terminal, where the request is used to indicate that the base station determines that the D2D resource that has been allocated can be Decoding a reusable resource multiplexed by the first terminal and the second terminal, and allocating a target resource from the reusable resource;

所述接收机, 用于接收所述基站发送的目标资源;  The receiver is configured to receive a target resource sent by the base station;

所述处理器, 用于控制所述发射机根据所述目标资源向所述第二终端发送 D2D通信信号。  The processor is configured to control the transmitter to send a D2D communication signal to the second terminal according to the target resource.

在第四方面的第一种可能实现方式中, 所述处理器, 还用于控制所述发射 机周期性发送发现信号。 In a first possible implementation manner of the fourth aspect, the processor is further configured to control the transmitting The machine periodically sends a discovery signal.

第五方面, 提供了第二终端, 所述第二终端包括:  In a fifth aspect, a second terminal is provided, where the second terminal includes:

第二资源接收模块, 用于接收基站发送的目标资源, 所述目标资源为所述 基站接收到第一终端发送的用于与所述第二终端建立端到端 D2D通信的请求 后, 在已经分配的 D2D 资源中确定能够被所述第一终端和所述第二终端复用 的可复用资源, 并从所述可复用资源中分配的资源;  a second resource receiving module, configured to receive a target resource that is sent by the base station, where the target resource is after the base station receives the request sent by the first terminal to establish end-to-end D2D communication with the second terminal, Determining, among the allocated D2D resources, reusable resources multiplexable by the first terminal and the second terminal, and resources allocated from the reusable resources;

通信信号接收模块,用于根据所述目标资源接收所述第一终端发送的 D2D 通信信号。  And a communication signal receiving module, configured to receive, according to the target resource, a D2D communication signal sent by the first terminal.

在第五方面的第一种可能实现方式中, 所述第二终端还包括:  In a first possible implementation manner of the fifth aspect, the second terminal further includes:

第二指令接收模块, 用于在所述第二资源接收模块接收基站发送的目标资 源之前, 接收所述基站发送的包含有第一资源的第二指令, 所述第一资源为已 分配给第三终端用以接收 D2D通信信号的 D2D资源;  a second instruction receiving module, configured to receive, after the second resource receiving module receives the target resource sent by the base station, a second instruction that is sent by the base station and includes the first resource, where the first resource is allocated to the first The D2D resource used by the three terminals to receive the D2D communication signal;

第一监听模块, 用于根据所述第一资源监听 D2D通信信号;  a first monitoring module, configured to monitor a D2D communication signal according to the first resource;

第五检测模块, 用于检测根据所述第一资源监听到的 D2D通信信号的信 号强度, 获得第一检测结果;  a fifth detecting module, configured to detect a signal strength of the D2D communication signal that is monitored according to the first resource, to obtain a first detection result;

第二响应发送模块, 用于根据所述第一检测结果向所述基站发送第二响 应, 所述第二响应用于指示根据所述第一资源监听到的 D2D通信信号的信号 强度是否小于预定强度阈值。  a second response sending module, configured to send a second response to the base station according to the first detection result, where the second response is used to indicate whether a signal strength of the D2D communication signal that is monitored according to the first resource is less than a predetermined Intensity threshold.

在第五方面的第二种可能实现方式中, 所述第二终端还包括:  In a second possible implementation manner of the fifth aspect, the second terminal further includes:

第三指令接收模块, 用于在所述第二资源接收模块接收基站发送的目标资 源之前, 接收所述基站发送的包含有第二资源的第三指令, 所述第二资源为已 分配给第四终端用以接收 D2D通信信号的资源;  a third instruction receiving module, configured to receive, after the second resource receiving module receives the target resource sent by the base station, a third instruction that is sent by the base station and includes a second resource, where the second resource is allocated to the first Four terminals are used to receive resources of the D2D communication signal;

第二监听模块, 用于根据所述第二资源监听 D2D通信信号;  a second monitoring module, configured to monitor a D2D communication signal according to the second resource;

第六检测模块, 用于检测根据所述第二资源监听到的 D2D通信信号的信 号强度, 获得第二检测结果;  a sixth detecting module, configured to detect a signal strength of the D2D communication signal that is monitored according to the second resource, to obtain a second detection result;

第三响应发送模块, 用于根据所述第二检测结果向所述基站发送第三响 应, 所述第三响应用于指示根据所述第二资源监听到的 D2D通信信号的信号 强度是否小于预定强度阈值。  a third response sending module, configured to send a third response to the base station according to the second detection result, where the third response is used to indicate whether a signal strength of the D2D communication signal that is monitored according to the second resource is less than a predetermined Intensity threshold.

第六方面, 提供了第二终端, 所述第二终端包括: 接收机和处理器; 所述接收机, 用于接收基站发送的目标资源, 所述目标资源为所述基站接 收到第一终端发送的用于与所述第二终端建立端到端 D2D通信的请求后, 在 已经分配的 D2D 资源中确定能够被所述第一终端和所述第二终端复用的可复 用资源, 并从所述可复用资源中分配的资源; In a sixth aspect, a second terminal is provided, where the second terminal includes: a receiver and a processor; the receiver is configured to receive a target resource that is sent by the base station, and the target resource is that the base station receives the first terminal After transmitting a request for establishing end-to-end D2D communication with the second terminal, Determining, among the allocated D2D resources, reusable resources multiplexable by the first terminal and the second terminal, and resources allocated from the reusable resources;

所述处理器, 用于控制所述接收机根据所述目标资源接收所述第一终端发 送的 D2D通信信号。  The processor is configured to control the receiver to receive a D2D communication signal sent by the first terminal according to the target resource.

在第六方面的第一种可能实现方式中, 所述第二终端还包括: 发射机; 所述接收机, 还用于在接收基站发送的目标资源之前, 接收所述基站发送 的包含有第一资源的第二指令, 所述第一资源为已分配给第三终端用以接收 In a first possible implementation manner of the sixth aspect, the second terminal further includes: a transmitter, where the receiver is further configured to: before receiving the target resource sent by the base station, receive the a second instruction of a resource, the first resource is allocated to a third terminal for receiving

D2D通信信号的 D2D资源; D2D resources of D2D communication signals;

所述处理器, 用于控制所述接收机根据所述第一资源监听 D2D通信信号; 所述处理器, 用于检测根据所述第一资源监听到的 D2D通信信号的信号 强度, 获得第一检测结果;  The processor is configured to control the receiver to monitor a D2D communication signal according to the first resource, where the processor is configured to detect a signal strength of a D2D communication signal that is monitored according to the first resource, to obtain a first Test results;

所述处理器, 用于控制所述发射机根据所述第一检测结果向所述基站发送 第二响应, 所述第二响应用于指示根据所述第一资源监听到的 D2D通信信号 的信号强度是否小于预定强度阈值。  The processor is configured to control the transmitter to send a second response to the base station according to the first detection result, where the second response is used to indicate a signal of a D2D communication signal that is monitored according to the first resource. Whether the intensity is less than a predetermined intensity threshold.

在第六方面的第二种可能实现方式中, 所述第二终端还包括: 发射机; 所述接收机, 用于在接收基站发送的目标资源之前, 接收所述基站发送的 包含有第二资源的第三指令,所述第二资源为已分配给第四终端用以接收 D2D 通信信号的资源;  In a second possible implementation manner of the sixth aspect, the second terminal further includes: a transmitter, configured to: before receiving the target resource sent by the base station, receiving, by the base station, the second a third instruction of the resource, where the second resource is a resource that has been allocated to the fourth terminal to receive the D2D communication signal;

所述处理器, 用于控制所述接收机根据所述第二资源监听 D2D通信信号; 所述处理器, 用于检测根据所述第二资源监听到的 D2D通信信号的信号 强度, 获得第二检测结果;  The processor is configured to control the receiver to monitor a D2D communication signal according to the second resource, where the processor is configured to detect a signal strength of a D2D communication signal that is monitored according to the second resource, to obtain a second Test results;

所述处理器, 用于控制所述发射机根据所述第二检测结果向所述基站发送 第三响应, 所述第三响应用于指示根据所述第二资源监听到的 D2D通信信号 的信号强度是否小于预定强度阈值。  The processor is configured to control the transmitter to send a third response to the base station according to the second detection result, where the third response is used to indicate a signal of a D2D communication signal that is monitored according to the second resource. Whether the intensity is less than a predetermined intensity threshold.

第七方面, 提供了第三终端, 所述第三终端包括:  In a seventh aspect, a third terminal is provided, where the third terminal includes:

第一指令接收模块, 用于接收基站发送的第一指令, 所述第一指令为所述 基站在接收到第一终端发送的用于与第二终端建立 D2D通信的请求后发送的 指令;  a first instruction receiving module, configured to receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request for establishing a D2D communication with the second terminal sent by the first terminal;

第三监听模块, 用于监听所述第一终端发送的发现信号;  a third monitoring module, configured to monitor a discovery signal sent by the first terminal;

第七检测模块, 用于检测所述第三监听模块监听到的所述发现信号的信号 质量, 获得第三检测结果; 第一响应发送模块, 用于根据所述第三检测结果向所述基站发送第一响 应; 由所述基站在所述第一响应指示监听到的所述发现信号的信号质量小于预 定质量阈值时, 向所述第二终端发送包含有第一资源的第二指令, 并接收所述 第二终端返回的第二响应, 并在所述第二响应指示所述第二终端根据所述第一 资源监听到的 D2D通信信号的信号强度小于预定强度阈值时, 将所述第一资 源确定为可复用资源, 从所述可复用资源中分配目标资源, 并将所述目标资源 发送给所述第一终端和所述第二终端, 由所述第一终端根据所述目标资源发送 D2D通信信号, 并由所述第二终端根据所述目标资源接收 D2D通信信号; 其中, 所述第一资源为已分配给所述第三终端用以接收 D2D通信信号的 D2D 资源, 所述第二指令用于指示所述第二终端根据所述第一资源监听 D2D 通信信号; 所述第二响应用于指示所述第二终端根据所述第一资源监听到的 D2D通信信号的信号强度是否小于所述预定强度阈值。 a seventh detecting module, configured to detect a signal quality of the discovery signal that is monitored by the third monitoring module, to obtain a third detection result; a first response sending module, configured to send, according to the third detection result, a first response to the base station; when the signal quality of the discovery signal that the base station indicates that the first discovery response is less than a predetermined quality threshold Transmitting, to the second terminal, a second instruction including a first resource, and receiving a second response returned by the second terminal, and indicating, in the second response, the second terminal according to the first resource When the signal strength of the monitored D2D communication signal is less than a predetermined intensity threshold, determining the first resource as a reusable resource, allocating a target resource from the reusable resource, and transmitting the target resource to the The first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource; wherein, the first resource a D2D resource that has been allocated to the third terminal for receiving a D2D communication signal, where the second instruction is used to instruct the second terminal to monitor a D2D communication signal according to the first resource. For the second response indicating whether the signal strength of the second terminal monitors according to the first resource D2D communication signal strength is smaller than the predetermined threshold value.

在第七方面的第一种可能实现方式中, 所述第一响应发送模块, 用于向所 述基站发送包含有所述第一响应的第一响应帧, 所述第一响应帧为在接收到所 述第一指令后, 根据所述第一资源发送的第一个 D2D通信帧。  In a first possible implementation manner of the seventh aspect, the first response sending module is configured to send, to the base station, a first response frame that includes the first response, where the first response frame is received After the first instruction, the first D2D communication frame sent according to the first resource.

第八方面, 提供了第三终端, 所述第三终端包括: 接收机、 处理器和发射 机;  In an eighth aspect, a third terminal is provided, where the third terminal includes: a receiver, a processor, and a transmitter;

所述接收机, 用于接收基站发送的第一指令, 所述第一指令为所述基站在 接收到第一终端发送的用于与第二终端建立 D2D通信的请求后发送的指令; 所述处理器, 用于控制所述接收机监听所述第一终端发送的发现信号; 所述处理器, 用于检测监听到的所述发现信号的信号质量, 获得第三检测 结果;  The receiver is configured to receive a first instruction sent by the base station, where the first instruction is an instruction that is sent by the base station after receiving a request for establishing a D2D communication with the second terminal by the first terminal; a processor, configured to control the receiver to monitor a discovery signal sent by the first terminal, where the processor is configured to detect a signal quality of the monitored discovery signal, and obtain a third detection result;

所述处理器, 用于控制所述发射机根据所述第三检测结果向所述基站发送 第一响应; 由所述基站在所述第一响应指示监听到的所述发现信号的信号质量 小于预定质量阈值时, 向所述第二终端发送包含有第一资源的第二指令, 并接 收所述第二终端返回的第二响应, 并在所述第二响应指示所述第二终端根据所 述第一资源监听到的 D2D通信信号的信号强度小于预定强度阈值时, 将所述 第一资源确定为可复用资源, 从所述可复用资源中分配目标资源, 并将所述目 标资源发送给所述第一终端和所述第二终端, 由所述第一终端根据所述目标资 源发送 D2D通信信号, 并由所述第二终端根据所述目标资源接收 D2D通信信 号; 其中, 所述第一资源为已分配给所述第三终端用以接收 D2D通信信号的 D2D 资源, 所述第二指令用于指示所述第二终端根据所述第一资源监听 D2D 通信信号; 所述第二响应用于指示所述第二终端根据所述第一资源监听到的 D2D通信信号的信号强度是否小于所述预定强度阈值。 The processor is configured to control the transmitter to send a first response to the base station according to the third detection result; and the signal quality of the discovery signal that is monitored by the base station in the first response indication is less than When the quality threshold is predetermined, sending a second instruction including the first resource to the second terminal, and receiving a second response returned by the second terminal, and indicating, in the second response, the second terminal according to the When the signal strength of the D2D communication signal monitored by the first resource is less than a predetermined intensity threshold, determining the first resource as a reusable resource, allocating a target resource from the reusable resource, and using the target resource Sending to the first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource; The first resource is a D2D resource that has been allocated to the third terminal for receiving a D2D communication signal, and the second instruction is used to instruct the second terminal to monitor a D2D communication signal according to the first resource; The second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.

在第八方面的第一种可能实现方式中, 所述处理器, 用于控制所述发射机 向所述基站发送包含有所述第一响应的第一响应帧, 所述第一响应帧为在接收 到所述第一指令后, 根据所述第一资源发送的第一个 D2D通信帧。  In a first possible implementation manner of the eighth aspect, the processor is configured to control the transmitter to send, to the base station, a first response frame that includes the first response, where the first response frame is After receiving the first instruction, according to the first D2D communication frame sent by the first resource.

第九方面, 提供了第四终端, 所述第四终端包括:  In a ninth aspect, a fourth terminal is provided, where the fourth terminal includes:

第四指令接收模块, 用于接收基站发送的第四指令; 所述第四指令为所述 基站在接收到第一终端发送的用于与第二终端建立 D2D通信的请求, 向所述 第二终端发送包含有第二资源的第三指令, 接收所述第二终端返回的第三响 应, 并在所述第三响应指示所述第二终端根据所述第二资源监听到的 D2D通 信信号的信号强度小于预定强度阈值时发送的指令; 所述第二资源为已分配给 所述第四终端用以接收 D2D通信信号的资源, 所述第三指令用于指示所述第 二终端根据所述第二资源监听 D2D通信信号, 所述第三响应用于指示所述第 二终端根据所述第二资源监听到的 D2D通信信号的信号强度是否小于所述预 定强度阈值;  a fourth instruction receiving module, configured to receive a fourth command sent by the base station, where the fourth command is a request that the base station sends, by the first terminal, a D2D communication with the second terminal, to the second Transmitting, by the terminal, a third instruction including the second resource, receiving a third response returned by the second terminal, and indicating, in the third response, the D2D communication signal that the second terminal monitors according to the second resource The command sent when the signal strength is less than the predetermined strength threshold; the second resource is a resource that has been allocated to the fourth terminal to receive the D2D communication signal, and the third instruction is used to indicate that the second terminal is configured according to the The second resource is configured to monitor the D2D communication signal, where the third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;

第四监听模块, 用于监听所述第一终端发送的发现信号;  a fourth monitoring module, configured to monitor a discovery signal sent by the first terminal;

第八检测模块, 用于检测监听到的所述发现信号的信号质量, 获得第四检 测结果;  An eighth detecting module, configured to detect a signal quality of the detected discovery signal, and obtain a fourth detection result;

第四响应发送模块, 用于根据所述第四检测结果向所述基站发送第四响 应; 所述第四响应用于指示监听到的所述发现信号的信号质量是否小于预定质 量阈值; 由所述基站在所述第四响应指示监听到的所述发现信号的信号质量小 于所述预定质量阈值时, 将所述第二资源确定为可复用资源, 从所述可复用资 源中分配目标资源, 并将所述目标资源发送给所述第一终端和所述第二终端, 由所述第一终端根据所述目标资源发送 D2D通信信号, 并由所述第二终端根 据所述目标资源接收 D2D通信信号。  a fourth response sending module, configured to send a fourth response to the base station according to the fourth detection result; the fourth response is used to indicate whether the signal quality of the monitored discovery signal is less than a predetermined quality threshold; Determining, by the base station, that the signal quality of the discovery signal that is monitored by the fourth response is less than the predetermined quality threshold, determining, by the second resource, a reusable resource, and allocating a target from the reusable resource And transmitting the target resource to the first terminal and the second terminal, where the first terminal sends a D2D communication signal according to the target resource, and the second terminal is configured according to the target resource. Receive D2D communication signals.

在第九方面的第一种可能实现方式中, 所述第四响应发送模块, 用于向所 述基站发送包含有所述第四响应的第二响应帧, 所述第二响应帧为所述在接收 到所述第四指令后, 根据所述第二资源发送的第一个 D2D通信帧。  In a first possible implementation manner of the ninth aspect, the fourth response sending module is configured to send, to the base station, a second response frame that includes the fourth response, where the second response frame is After receiving the fourth instruction, the first D2D communication frame sent according to the second resource.

第十方面, 提供了第四终端, 所述第四终端包括: 接收机、 处理器和发射 机; In a tenth aspect, a fourth terminal is provided, where the fourth terminal includes: a receiver, a processor, and a transmitting Machine

所述接收机, 用于接收基站发送的第四指令; 所述第四指令为所述基站在 接收到第一终端发送的用于与第二终端建立 D2D通信的请求, 向所述第二终 端发送包含有第二资源的第三指令, 接收所述第二终端返回的第三响应, 并在 所述第三响应指示所述第二终端根据所述第二资源监听到的 D2D通信信号的 信号强度小于预定强度阈值时发送的指令; 所述第二资源为已分配给所述第四 终端用以接收 D2D通信信号的资源, 所述第三指令用于指示所述第二终端根 据所述第二资源监听 D2D通信信号, 所述第三响应用于指示所述第二终端根 据所述第二资源监听到的 D2D通信信号的信号强度是否小于所述预定强度阈 值;  The receiver is configured to receive a fourth command sent by the base station, where the fourth command is that the base station receives a request for establishing a D2D communication with the second terminal, where the base station sends, to the second terminal Transmitting a third instruction including the second resource, receiving a third response returned by the second terminal, and indicating, in the third response, a signal of the D2D communication signal that the second terminal monitors according to the second resource An instruction sent when the strength is less than a predetermined strength threshold; the second resource is a resource that is allocated to the fourth terminal to receive a D2D communication signal, and the third instruction is used to indicate that the second terminal is configured according to the The second resource is used to monitor the D2D communication signal, and the third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;

所述处理器, 用于控制所述接收机监听所述第一终端发送的发现信号; 所述处理器, 用于检测监听到的所述发现信号的信号质量, 获得第四检测 结果;  The processor is configured to control the receiver to monitor a discovery signal sent by the first terminal, where the processor is configured to detect a signal quality of the detected discovery signal, and obtain a fourth detection result;

所述处理器, 用于控制所述发射机根据所述第四检测结果向所述基站发送 第四响应; 所述第四响应用于指示监听到的所述发现信号的信号质量是否小于 预定质量阈值; 由所述基站在所述第四响应指示监听到的所述发现信号的信号 质量小于所述预定质量阈值时, 将所述第二资源确定为可复用资源, 从所述可 复用资源中分配目标资源, 并将所述目标资源发送给所述第一终端和所述第二 终端, 由所述第一终端根据所述目标资源发送 D2D通信信号, 并由所述第二 终端根据所述目标资源接收 D2D通信信号。  The processor is configured to control the transmitter to send a fourth response to the base station according to the fourth detection result, where the fourth response is used to indicate whether the signal quality of the monitored discovery signal is less than a predetermined quality. Threshold; determining, by the base station, that the signal quality of the discovery signal that is monitored by the fourth response is less than the predetermined quality threshold, determining the second resource as a reusable resource, from the reusable Allocating a target resource in the resource, and sending the target resource to the first terminal and the second terminal, where the first terminal sends a D2D communication signal according to the target resource, and is configured by the second terminal according to the second terminal The target resource receives a D2D communication signal.

在第十方面的第一种可能实现方式中, 所述处理器, 用于控制所述发射机 向所述基站发送包含有所述第四响应的第二响应帧, 所述第二响应帧为所述在 接收到所述第四指令后, 根据所述第二资源发送的第一个 D2D通信帧。  In a first possible implementation manner of the tenth aspect, the processor is configured to control the transmitter to send, to the base station, a second response frame that includes the fourth response, where the second response frame is And the first D2D communication frame sent according to the second resource after receiving the fourth instruction.

第十一方面, 提供了一种资源分配方法, 用于基站中, 所述方法包括: 接收第一终端发送的用于与第二终端建立端到端 D2D通信的请求; 在已经分配的 D2D 资源中确定能够被所述第一终端和所述第二终端复用 的可复用资源;  In an eleventh aspect, a resource allocation method is provided for a base station, where the method includes: receiving a request sent by a first terminal to establish end-to-end D2D communication with a second terminal; and the allocated D2D resource Determining a reusable resource that can be multiplexed by the first terminal and the second terminal;

从所述可复用资源中分配目标资源;  Allocating target resources from the reusable resources;

将所述目标资源发送给所述第一终端和所述第二终端, 由所述第一终端根 据所述目标资源发送 D2D通信信号, 并由所述第二终端根据所述目标资源接 收 D2D通信信号。 在第十一方面的第一种可能实现方式中, 所述在已经分配的 D2D 资源中 确定能够被所述第一终端和所述第二终端复用的可复用资源, 包括: Transmitting the target resource to the first terminal and the second terminal, the first terminal transmitting a D2D communication signal according to the target resource, and receiving, by the second terminal, the D2D communication according to the target resource signal. In a first possible implementation manner of the eleventh aspect, the determining, by the allocated D2D resources, the reusable resources that can be multiplexed by the first terminal and the second terminal, includes:

向第三终端发送第一指令, 所述第一指令用于指示所述第三终端监听所述 第一终端发送的发现信号;  Transmitting, to the third terminal, a first instruction, where the first instruction is used to instruct the third terminal to listen to the discovery signal sent by the first terminal;

接收所述第三终端返回的第一响应, 所述第一响应用于指示所述第三终端 监听到的所述发现信号的信号质量是否小于预定质量阈值;  Receiving a first response returned by the third terminal, where the first response is used to indicate whether a signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold;

若所述第一响应指示所述第三终端监听到的所述发现信号的信号质量小 于所述预定质量阈值, 则向所述第二终端发送包含有第一资源的第二指令, 所 述第一资源为已分配给所述第三终端用以接收 D2D通信信号的 D2D资源, 所 述第二指令用于指示所述第二终端根据所述第一资源监听 D2D通信信号; 接收所述第二终端返回的第二响应, 所述第二响应用于指示所述第二终端 根据所述第一资源监听到的 D2D通信信号的信号强度是否小于预定强度阈值; 若接收到的所述第二响应指示所述第二终端根据所述第一资源监听到的 D2D通信信号的信号强度小于所述预定强度阈值,则将所述第一资源确定为所 述可复用资源。  Sending, to the second terminal, a second instruction including the first resource, where the first response indicates that the signal quality of the discovery signal monitored by the third terminal is less than the predetermined quality threshold, a resource is a D2D resource that has been allocated to the third terminal for receiving a D2D communication signal, the second instruction is used to instruct the second terminal to monitor a D2D communication signal according to the first resource, and receive the second a second response returned by the terminal, the second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than a predetermined intensity threshold; if the second response is received And indicating that the signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than the predetermined strength threshold, determining the first resource as the reusable resource.

结合第十一方面的第一种可能实现方式, 在第十一方面的第二种可能实现 方式中, 所述接收所述第三终端返回的第一响应, 包括:  With reference to the first possible implementation manner of the eleventh aspect, in a second possible implementation manner of the eleventh aspect, the receiving the first response returned by the third terminal includes:

接收所述第三终端发送的包含有所述第一响应的第一响应帧, 所述第一响 应帧为所述第三终端在接收到所述第一指令后,根据所述第一资源发送的第一 个 D2D通信帧。  Receiving, by the third terminal, a first response frame that includes the first response, where the first response frame is sent by the third terminal according to the first resource after receiving the first instruction The first D2D communication frame.

在第十一方面的第三种可能实现方式中, 所述在已经分配的 D2D 资源中 确定能够被所述第一终端和所述第二终端复用的可复用资源, 包括:  In a third possible implementation manner of the eleventh aspect, the determining, by the allocated D2D resources, the reusable resources that can be multiplexed by the first terminal and the second terminal, includes:

向所述第二终端发送包含有第二资源的第三指令, 所述第二资源为已分配 给第四终端用以接收 D2D通信信号的 D2D资源; 所述第三指令用于指示所述 第二终端根据所述第二资源监听 D2D通信信号;  Transmitting, to the second terminal, a third instruction that includes a second resource, where the second resource is a D2D resource that is allocated to the fourth terminal to receive the D2D communication signal, where the third instruction is used to indicate the The second terminal monitors the D2D communication signal according to the second resource;

接收所述第二终端返回的第三响应, 所述第三响应用于指示所述第二终端 根据所述第二资源监听到的 D2D通信信号的信号强度是否小于预定强度阈值; 若所述第三响应指示所述第二终端根据所述第二资源监听到的 D2D通信 信号的信号强度小于所述预定强度阈值, 则向所述第四终端发送第四指令, 所 述第四指令用于指示所述第四终端监听所述第一终端发送的发现信号;  Receiving a third response returned by the second terminal, where the third response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the second resource is less than a predetermined intensity threshold; The third response indicates that the signal strength of the D2D communication signal that the second terminal monitors according to the second resource is less than the predetermined intensity threshold, and sends a fourth instruction to the fourth terminal, where the fourth command is used to indicate The fourth terminal listens to the discovery signal sent by the first terminal;

接收所述第四终端返回的第四响应, 所述第四响应用于指示所述第四终端 监听到的所述发现信号的信号质量是否小于预定质量阈值; Receiving a fourth response returned by the fourth terminal, where the fourth response is used to indicate the fourth terminal Whether the signal quality of the detected signal is less than a predetermined quality threshold;

若接收到的所述第四响应指示所述第四终端监听到的所述发现信号的信 号质量小于所述预定质量阈值, 则将所述第二资源确定为所述可复用资源。  And if the received fourth response indicates that the signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold, determining the second resource as the reusable resource.

结合第十一方面的第三种可能实现方式, 在第十一方面的第四种可能实现 方式中, 所述接收所述第四终端返回的第四响应, 包括:  With reference to the third possible implementation manner of the eleventh aspect, in a fourth possible implementation manner of the eleventh aspect, the receiving the fourth response returned by the fourth terminal includes:

接收所述第四终端发送的包含有所述第四响应的第二响应帧, 所述第二响 应帧为所述第四终端在接收到所述第四指令后,根据所述第二资源发送的第一 个 D2D通信帧。  Receiving, by the fourth terminal, a second response frame that includes the fourth response, where the second response frame is sent by the fourth terminal according to the second resource after receiving the fourth instruction The first D2D communication frame.

结合第十一方面、 第一方面的第一种可能实现方式中、 第十一方面的第二 种可能实现方式、 第十一方面的第三种可能实现方式或者第十一方面的第四种 可能实现方式, 在第十一方面的第五种可能实现方式中, 所述方法还包括: 检测从所述可复用资源中分配目标资源之后, 所述目标资源是否充足; 若检测结果为所述目标资源不足, 则检测是否存在空闲的 D2D资源; 若检测结果为存在空闲的 D2D资源, 则从所述空闲的 D2D资源中分配所 述目标资源。  With reference to the eleventh aspect, the first possible implementation manner of the first aspect, the second possible implementation manner of the eleventh aspect, the third possible implementation manner of the eleventh aspect, or the fourth In a fifth possible implementation manner of the eleventh aspect, the method further includes: detecting, after the target resource is allocated from the reusable resource, whether the target resource is sufficient; If the target resource is insufficient, it is detected whether there is an idle D2D resource; if the detection result is that there is an idle D2D resource, the target resource is allocated from the idle D2D resource.

结合第十一方面、 第十一方面的第一种可能实现方式中、 第十一方面的第 二种可能实现方式、 第十一方面的第三种可能实现方式或者第十一方面的第四 种可能实现方式, 在第十一方面的第六种可能实现方式中, 所述从所述可复用 资源中分配目标资源之前, 所述方法还包括:  With reference to the eleventh aspect, the first possible implementation manner of the eleventh aspect, the second possible implementation manner of the eleventh aspect, the third possible implementation manner of the eleventh aspect, or the fourth eleventh aspect A possible implementation manner, in a sixth possible implementation manner of the eleventh aspect, before the allocating the target resource from the reusable resource, the method further includes:

检测是否存在空闲的 D2D资源;  Detect whether there are idle D2D resources;

若检测结果为存在空闲的 D2D资源, 则从所述空闲的 D2D资源中分配所 述目标资源;  If the detection result is that there is an idle D2D resource, the target resource is allocated from the idle D2D resource;

检测从所述空闲的 D2D资源中分配所述目标资源之后, 所述目标资源是 否充足;  Detecting whether the target resource is sufficient after the target resource is allocated from the idle D2D resource;

若检测结果为所述目标资源不足, 则执行所述从所述可复用资源分配目标 资源的步骤。  If the detection result is that the target resource is insufficient, the step of allocating the target resource from the reusable resource is performed.

第十二方面,提供了一种资源分配方法,用于第一终端中,所述方法包括: 向基站发送用于与第二终端建立端到端 D2D通信的请求, 所述请求用于 指示所述基站在已经分配的 D2D资源中确定能够被所述第一终端和所述第二 终端复用的可复用资源, 并从所述可复用资源中分配目标资源;  A twelfth aspect provides a resource allocation method for a first terminal, where the method includes: sending, to a base station, a request for establishing end-to-end D2D communication with a second terminal, where the request is used to indicate Determining, by the base station, reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources, and allocating target resources from the reusable resources;

接收所述基站发送的目标资源; 根据所述目标资源向所述第二终端发送 D2D通信信号。 Receiving a target resource sent by the base station; And transmitting a D2D communication signal to the second terminal according to the target resource.

在第十二方面的第一种可能实现方式中, 所述方法还包括:  In a first possible implementation manner of the twelfth aspect, the method further includes:

周期性发送发现信号。  The discovery signal is sent periodically.

第十三方面,提供了一种资源分配方法,用于第二终端中,所述方法包括: 接收基站发送的目标资源, 所述目标资源为所述基站接收到第一终端发送 的用于与所述第二终端建立端到端 D2D通信的请求后, 在已经分配的 D2D资 源中确定能够被所述第一终端和所述第二终端复用的可复用资源, 并从所述可 复用资源中分配的资源;  A thirteenth aspect provides a resource allocation method, in a second terminal, where the method includes: receiving a target resource sent by a base station, where the target resource is sent by the base station to be sent by the first terminal After the second terminal establishes a request for end-to-end D2D communication, determining, in the already allocated D2D resource, a reusable resource that can be multiplexed by the first terminal and the second terminal, and recovering from the Use resources allocated in resources;

根据所述目标资源接收所述第一终端发送的 D2D通信信号。  Receiving, by the target resource, a D2D communication signal sent by the first terminal.

在第十三方面的第一种可能实现方式中, 所述接收基站发送的目标资源之 前, 所述方法还包括:  In a first possible implementation manner of the thirteenth aspect, before the receiving the target resource sent by the base station, the method further includes:

接收所述基站发送的包含有第一资源的第二指令, 所述第一资源为已分配 给第三终端用以接收 D2D通信信号的 D2D资源;  Receiving, by the base station, a second instruction that includes a first resource, where the first resource is a D2D resource that has been allocated to a third terminal to receive a D2D communication signal;

根据所述第一资源监听 D2D通信信号;  Listening to the D2D communication signal according to the first resource;

检测根据所述第一资源监听到的 D2D通信信号的信号强度, 获得第一检 测结果;  Detecting a signal strength of the D2D communication signal that is monitored according to the first resource, and obtaining a first detection result;

根据所述第一检测结果向所述基站发送第二响应, 所述第二响应用于指示 根据所述第一资源监听到的 D2D通信信号的信号强度是否小于预定强度阈值。 在第十三方面的第二种可能实现方式中, 所述接收基站发送的目标资源之前, 所述方法还包括:  And sending, by the first detection result, a second response to the base station, where the second response is used to indicate whether a signal strength of the D2D communication signal that is monitored according to the first resource is less than a predetermined intensity threshold. In a second possible implementation manner of the thirteenth aspect, before the receiving the target resource that is sent by the base station, the method further includes:

接收所述基站发送的包含有第二资源的第三指令, 所述第二资源为已分配 给第四终端用以接收 D2D通信信号的资源;  Receiving, by the base station, a third instruction that includes a second resource, where the second resource is a resource that is allocated to the fourth terminal to receive the D2D communication signal;

根据所述第二资源监听 D2D通信信号;  Listening to the D2D communication signal according to the second resource;

检测根据所述第二资源监听到的 D2D通信信号的信号强度, 获得第二检 测结果;  Detecting a signal strength of the D2D communication signal that is monitored according to the second resource, and obtaining a second detection result;

根据所述第二检测结果向所述基站发送第三响应, 所述第三响应用于指示 根据所述第二资源监听到的 D2D通信信号的信号强度是否小于预定强度阈值。  And sending, by the second detection result, a third response to the base station, where the third response is used to indicate whether a signal strength of the D2D communication signal that is monitored according to the second resource is less than a predetermined intensity threshold.

第十四方面,提供了一种资源分配方法,用于第三终端中,所述方法包括: 接收基站发送的第一指令, 所述第一指令为所述基站在接收到第一终端发 送的用于与第二终端建立 D2D通信的请求后发送的指令;  According to a fourteenth aspect, a resource allocation method is provided for a third terminal, where the method includes: receiving a first instruction sent by a base station, where the first instruction is sent by the base station after receiving the first terminal An instruction sent after a request for establishing a D2D communication with the second terminal;

监听所述第一终端发送的发现信号; 检测监听到的所述发现信号的信号质量, 获得第三检测结果; 根据所述第三检测结果向所述基站发送第一响应; 由所述基站在所述第一 响应指示监听到的所述发现信号的信号质量小于预定质量阈值时, 向所述第二 终端发送包含有第一资源的第二指令, 并接收所述第二终端返回的第二响应, 并在所述第二响应指示所述第二终端根据所述第一资源监听到的 D2D通信信 号的信号强度小于预定强度阈值时, 将所述第一资源确定为可复用资源, 从所 述可复用资源中分配目标资源, 并将所述目标资源发送给所述第一终端和所述 第二终端, 由所述第一终端根据所述目标资源发送 D2D通信信号, 并由所述 第二终端根据所述目标资源接收 D2D通信信号; Monitoring the discovery signal sent by the first terminal; Detecting a signal quality of the detected discovery signal, obtaining a third detection result; transmitting a first response to the base station according to the third detection result; and the monitored by the base station in the first response indication And when the signal quality of the discovery signal is less than a predetermined quality threshold, sending a second instruction including the first resource to the second terminal, and receiving a second response returned by the second terminal, and indicating the second response in the second response When the signal strength of the D2D communication signal monitored by the first resource is less than a predetermined strength threshold, the second terminal determines the first resource as a reusable resource, and allocates a target resource from the reusable resource. And sending the target resource to the first terminal and the second terminal, where the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D according to the target resource. Communication signal

其中, 所述第一资源为已分配给所述第三终端用以接收 D2D通信信号的 D2D 资源, 所述第二指令用于指示所述第二终端根据所述第一资源监听 D2D 通信信号; 所述第二响应用于指示所述第二终端根据所述第一资源监听到的 D2D通信信号的信号强度是否小于所述预定强度阈值。  The first resource is a D2D resource that has been allocated to the third terminal for receiving a D2D communication signal, and the second instruction is used to instruct the second terminal to monitor a D2D communication signal according to the first resource; The second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.

在第十四方面的第一种可能实现方式中, 所述根据所述第三检测结果向所 述基站发送第一响应, 包括:  In a first possible implementation manner of the fourteenth aspect, the sending the first response to the base station according to the third detection result includes:

向所述基站发送包含有所述第一响应的第一响应帧, 所述第一响应帧为在 接收到所述第一指令后, 根据所述第一资源发送的第一个 D2D通信帧。  Transmitting, to the base station, a first response frame that includes the first response, where the first response frame is a first D2D communication frame that is sent according to the first resource after receiving the first instruction.

第十五方面,提供了一种资源分配方法,用于第四终端中,所述方法包括: 接收基站发送的第四指令; 所述第四指令为所述基站在接收到第一终端发 送的用于与第二终端建立 D2D通信的请求, 向所述第二终端发送包含有第二 资源的第三指令, 接收所述第二终端返回的第三响应, 并在所述第三响应指示 所述第二终端根据所述第二资源监听到的 D2D通信信号的信号强度小于预定 强度阈值时发送的指令;所述第二资源为已分配给所述第四终端用以接收 D2D 通信信号的资源, 所述第三指令用于指示所述第二终端根据所述第二资源监听 D2D通信信号,所述第三响应用于指示所述第二终端根据所述第二资源监听到 的 D2D通信信号的信号强度是否小于所述预定强度阈值;  According to a fifteenth aspect, a method for allocating a resource is provided in a fourth terminal, where the method includes: receiving a fourth instruction sent by a base station; where the fourth instruction is sent by the base station after receiving the first terminal a request for establishing D2D communication with the second terminal, transmitting, to the second terminal, a third instruction including the second resource, receiving a third response returned by the second terminal, and indicating the third response The second terminal is configured to send an instruction when the signal strength of the D2D communication signal monitored by the second resource is less than a predetermined intensity threshold; the second resource is a resource that is allocated to the fourth terminal to receive the D2D communication signal. The third command is used to indicate that the second terminal monitors the D2D communication signal according to the second resource, and the third response is used to indicate that the second terminal monitors the D2D communication signal according to the second resource. Whether the signal strength is less than the predetermined intensity threshold;

监听所述第一终端发送的发现信号;  Monitoring the discovery signal sent by the first terminal;

检测监听到的所述发现信号的信号质量, 获得第四检测结果;  Detecting the signal quality of the detected discovery signal, and obtaining a fourth detection result;

根据所述第四检测结果向所述基站发送第四响应; 所述第四响应用于指示 监听到的所述发现信号的信号质量是否小于预定质量阈值; 由所述基站在所述 第四响应指示监听到的所述发现信号的信号质量小于所述预定质量阈值时, 将 所述第二资源确定为可复用资源, 从所述可复用资源中分配目标资源, 并将所 述目标资源发送给所述第一终端和所述第二终端, 由所述第一终端根据所述目 标资源发送 D2D通信信号, 并由所述第二终端根据所述目标资源接收 D2D通 信信号。 And transmitting, according to the fourth detection result, a fourth response to the base station; the fourth response is used to indicate whether the signal quality of the monitored discovery signal is less than a predetermined quality threshold; and the fourth response by the base station When it is indicated that the signal quality of the discovered discovery signal is less than the predetermined quality threshold, Determining, by the second resource, a reusable resource, allocating a target resource from the reusable resource, and sending the target resource to the first terminal and the second terminal, by using the first terminal Transmitting a D2D communication signal according to the target resource, and receiving, by the second terminal, a D2D communication signal according to the target resource.

在第十五方面的第一种可能实现方式中, 所述根据所述第四检测结果向所 述基站发送第四响应, 包括:  In a first possible implementation manner of the fifteenth aspect, the sending, by the fourth detection result, the fourth response to the base station according to the fourth detection result includes:

向所述基站发送包含有所述第四响应的第二响应帧, 所述第二响应帧为所 述在接收到所述第四指令后, 根据所述第二资源发送的第一个 D2D通信帧。  Transmitting, to the base station, a second response frame that includes the fourth response, where the second response frame is the first D2D communication sent according to the second resource after receiving the fourth instruction frame.

第十六方面, 提供了一种资源分配系统, 所述系统包括:  In a sixteenth aspect, a resource allocation system is provided, the system comprising:

如上述方面所述的基站、 第一终端、 第二终端以及至少一个第三终端和 / 或至少一个第四终端。  A base station, a first terminal, a second terminal, and at least one third terminal and/or at least one fourth terminal as described in the above aspect.

本发明实施例提供的技术方案的有益效果是:  The beneficial effects of the technical solutions provided by the embodiments of the present invention are:

通过在接收到第一终端发送的, 与第二终端建立端到端 D2D通信的请求 后, 在已经分配的 D2D 资源中确定第一终端和第二终端可复用的资源, 并从 可复用资源中分配目标资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出现没有空闲的 D2D资源可供分配的情形 的问题, 达到提高资源利用率和系统容量的目的。 附图说明  After receiving the request for establishing end-to-end D2D communication with the second terminal, the first terminal and the second terminal reusable resources are determined in the already allocated D2D resources, and are reusable The allocation of the target resource in the resource solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be a situation that no idle D2D resources are available for allocation, thereby improving resource utilization and system capacity. the goal of. DRAWINGS

为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所 需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.

图 1是本发明一个实施例提供的基站的设备构成图;  1 is a device configuration diagram of a base station according to an embodiment of the present invention;

图 2是本发明另一实施例提供的基站的设备构成图;  2 is a device configuration diagram of a base station according to another embodiment of the present invention;

图 3是本发明又一实施例提供的基站的设备构成图;  3 is a device configuration diagram of a base station according to another embodiment of the present invention;

图 4是本发明再一实施例提供的基站的设备构成图;  4 is a device configuration diagram of a base station according to still another embodiment of the present invention;

图 5是本发明一个实施例提供的第一终端的设备构成图;  FIG. 5 is a schematic structural diagram of a device of a first terminal according to an embodiment of the present invention; FIG.

图 6是本发明另一实施例提供的第一终端的设备构成图;  6 is a device configuration diagram of a first terminal according to another embodiment of the present invention;

图 7是本发明又一实施例提供的第一终端的设备构成图;  FIG. 7 is a schematic structural diagram of a device of a first terminal according to another embodiment of the present invention; FIG.

图 8是本发明再一实施例提供的第一终端的设备构成图; 图 9是本发明一个实施例提供的第二终端的设备构成图; FIG. 8 is a schematic structural diagram of a device of a first terminal according to still another embodiment of the present invention; FIG. FIG. 9 is a structural diagram of a device of a second terminal according to an embodiment of the present invention;

图 10是本发明另一实施例提供的第二终端的设备构成图;  FIG. 10 is a schematic structural diagram of a device of a second terminal according to another embodiment of the present invention; FIG.

图 11是本发明又一实施例提供的第二终端的设备构成图;  11 is a device configuration diagram of a second terminal according to another embodiment of the present invention;

图 12是本发明再一实施例提供的第二终端的设备构成图;  FIG. 12 is a schematic structural diagram of a device of a second terminal according to still another embodiment of the present invention; FIG.

图 13是本发明一个实施例提供的第三终端的设备构成图;  FIG. 13 is a schematic structural diagram of a device of a third terminal according to an embodiment of the present invention; FIG.

图 14是本发明另一实施例提供的第三终端的设备构成图;  FIG. 14 is a schematic structural diagram of a device of a third terminal according to another embodiment of the present invention; FIG.

图 15是本发明又一实施例提供的第三终端的设备构成图;  15 is a device configuration diagram of a third terminal according to another embodiment of the present invention;

图 16是本发明再一实施例提供的第三终端的设备构成图;  16 is a device configuration diagram of a third terminal according to still another embodiment of the present invention;

图 17是本发明一个实施例提供的第四终端的设备构成图;  17 is a device configuration diagram of a fourth terminal according to an embodiment of the present invention;

图 18是本发明另一实施例提供的第四终端的设备构成图;  18 is a device configuration diagram of a fourth terminal according to another embodiment of the present invention;

图 19是本发明又一实施例提供的第四终端的设备构成图;  19 is a device configuration diagram of a fourth terminal according to another embodiment of the present invention;

图 20是本发明再一实施例提供的第四终端的设备构成图;  20 is a device configuration diagram of a fourth terminal according to still another embodiment of the present invention;

图 21是本发明一个实施例提供的资源分配方法的方法流程图;  21 is a flowchart of a method for resource allocation according to an embodiment of the present invention;

图 22是本发明另一实施例提供的资源分配方法的方法流程图;  FIG. 22 is a flowchart of a method for resource allocation according to another embodiment of the present invention;

图 23是本发明又一实施例提供的资源分配方法的方法流程图;  23 is a flowchart of a method for resource allocation according to another embodiment of the present invention;

图 24是本发明一个实施例提供的资源分配方法的方法流程图;  24 is a flowchart of a method for resource allocation according to an embodiment of the present invention;

图 25是本发明另一实施例提供的资源分配方法的方法流程图;  25 is a flowchart of a method for resource allocation according to another embodiment of the present invention;

图 26是本发明一个实施例提供的资源分配方法的方法流程图;  26 is a flowchart of a method for resource allocation according to an embodiment of the present invention;

图 27是本发明另一实施例提供的资源分配方法的方法流程图;  FIG. 27 is a flowchart of a method for resource allocation according to another embodiment of the present invention;

图 28是本发明又一实施例提供的资源分配方法的方法流程图;  28 is a flowchart of a method for resource allocation according to another embodiment of the present invention;

图 29是本发明一个实施例提供的资源分配方法的方法流程图;  29 is a flowchart of a method for resource allocation according to an embodiment of the present invention;

图 30是本发明另一实施例提供的资源分配方法的方法流程图;  FIG. 30 is a flowchart of a method for resource allocation according to another embodiment of the present invention;

图 31是本发明一个实施例提供的资源分配方法的方法流程图;  FIG. 31 is a flowchart of a method for resource allocation according to an embodiment of the present invention;

图 32是本发明另一实施例提供的资源分配方法的方法流程图;  32 is a flowchart of a method for resource allocation according to another embodiment of the present invention;

图 33是本发明一个实施例提供的资源分配方法的方法流程图;  33 is a flowchart of a method for resource allocation according to an embodiment of the present invention;

图 34是本发明另一实施例提供的资源分配方法的方法流程图;  FIG. 34 is a flowchart of a method for resource allocation according to another embodiment of the present invention;

图 35是本发明一个实施例提供的资源分配系统的系统构成图。 具体实施方式  FIG. 35 is a system configuration diagram of a resource allocation system according to an embodiment of the present invention. detailed description

为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明 实施方式作进一步地详细描述。 请参见图 1 , 其示出了本发明一个实施例提供的基站的设备构成图。 该基 站可以用于为请求 D2D通信的终端分配 D2D资源。 该基站可以包括: The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Referring to FIG. 1, a device configuration diagram of a base station according to an embodiment of the present invention is shown. The base station can be used to allocate D2D resources for terminals requesting D2D communication. The base station can include:

请求接收模块 101 , 用于接收第一终端发送的用于与第二终端建立端到端 D2D通信的请求;  The request receiving module 101 is configured to receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal;

资源确定模块 102,用于在已经分配的 D2D资源中确定能够被该第一终端 和该第二终端复用的可复用资源;  The resource determining module 102 is configured to determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal;

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。  Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold.

第一资源分配模块 103 , 用于从该可复用资源中分配目标资源;  a first resource allocation module 103, configured to allocate a target resource from the reusable resource;

第一资源发送模块 104, 用于将该目标资源发送给该第一终端, 由该第一 终端根据该目标资源发送 D2D通信信号;  The first resource sending module 104 is configured to send the target resource to the first terminal, where the first terminal sends a D2D communication signal according to the target resource;

第二资源发送模块 105, 用于将该目标资源发送给该第二终端, 由该第二 终端根据该目标资源接收 D2D通信信号。  The second resource sending module 105 is configured to send the target resource to the second terminal, and the second terminal receives the D2D communication signal according to the target resource.

综上所述, 本发明实施例提供的基站, 通过在接收到第一终端发送的, 与 第二终端建立端到端 D2D通信的请求后, 在已经分配的 D2D资源中确定第一 终端和第二终端可复用的资源, 并从可复用资源中分配目标资源, 解决了现有 技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出现没 有空闲的 D2D 资源可供分配的情形的问题, 达到提高资源利用率和系统容量 的目的。 请参见图 2, 其示出了本发明另一实施例提供的基站的设备构成图。 该基 站可以用于为请求 D2D通信的第一终端分配向第二终端发送 D2D通信信号的 D2D资源。 该基站可以包括:  In summary, the base station provided by the embodiment of the present invention determines the first terminal and the first D2D resource in the allocated D2D resource after receiving the request for establishing the end-to-end D2D communication with the second terminal, which is sent by the first terminal. The second terminal is multiplexable and allocates the target resource from the reusable resource. When the number of terminals requesting D2D communication within the coverage of the base station is large in the prior art, there may be no idle D2D resources available for allocation. The problem of the situation is to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 2, a device configuration diagram of a base station according to another embodiment of the present invention is shown. The base station can be configured to allocate a D2D resource for transmitting a D2D communication signal to the second terminal for the first terminal requesting the D2D communication. The base station can include:

请求接收模块 201 , 用于接收第一终端发送的用于与第二终端建立端到端 D2D通信的请求;  The request receiving module 201 is configured to receive, by the first terminal, a request for establishing end-to-end D2D communication with the second terminal;

支持 D2D 通信的终端可以在预定的时频资源上周期性的发送发现信号 Discovery信号, 当第一终端接收到第二终端发送的发现信号并检测可以与该 第二终端进行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通信的请 求。 A terminal supporting D2D communication can periodically send a discovery signal on a predetermined time-frequency resource. The discovery signal, when the first terminal receives the discovery signal sent by the second terminal and detects that the second terminal can perform D2D communication, may send a request for D2D communication with the second terminal to the base station.

资源确定模块 202,用于在已经分配的 D2D资源中确定能够被该第一终端 和该第二终端复用的可复用资源;  The resource determining module 202 is configured to determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal;

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到第一终端发 送的发现信号的信号质量小于预定质量阈值, 且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the terminal allocated to receive the D2D communication to the first terminal is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than a predetermined one. The resource of the intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。  Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.

第一终端发送的发现信号中可以携带有各个终端预先已知的参考内容, 各 个 D2D终端接收到发现信号后, 对发现信号进行解析, 并将解析获得的内容 与参考内容进行对比, 获得解析准确率, 并将该解析准确率作为接收到的第一 终端发送的发现信号的信号质量。  The discovery signal sent by the first terminal may carry the reference content known in advance by each terminal. After receiving the discovery signal, each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.

其中, 第一终端发送的发现信号可能受到其它终端发送的发现信号的干 扰。 接收端接收到的是第一终端发送的发现信号与干扰信号的混合信号, 如果 以信号强度为依据, 接收端只能测出这个混合信号的强度, 并不能代表第一终 端的发现信号的信号强度, 因此, 本发明实施例根据第一终端的发现信号的信 号质量来设定判断阈值, 能够提高判断的准确性。  The discovery signal sent by the first terminal may be interfered by the discovery signal sent by other terminals. The receiving end receives the mixed signal of the discovery signal and the interference signal sent by the first terminal. If based on the signal strength, the receiving end can only measure the strength of the mixed signal, and cannot represent the signal of the first terminal. Intensity, therefore, the embodiment of the present invention sets the determination threshold according to the signal quality of the discovery signal of the first terminal, and can improve the accuracy of the determination.

第二终端在检测已分配的 D2D 资源上的干扰时, 需要检测的是在某一时 频资源上的总干扰, 不需要区分该干扰来自于哪些 D2D终端, 因此, 只需要 检测根据已分配的 D2D资源接收到的通信信号的信号强度即可。  When detecting the interference on the allocated D2D resources, the second terminal needs to detect the total interference on a certain time-frequency resource, and does not need to distinguish which D2D terminals the interference comes from, therefore, it only needs to detect according to the allocated D2D. The signal strength of the communication signal received by the resource is sufficient.

第一资源分配模块 203, 用于从该可复用资源中分配目标资源;  a first resource allocation module 203, configured to allocate a target resource from the reusable resource;

基站可以从所有符合条件的可复用资源中分配部分或者全部资源作为目 标资源。 第一资源发送模块 204, 用于将该目标资源发送给该第一终端, 由该第一 终端根据该目标资源发送 D2D通信信号; The base station may allocate some or all of the resources from all eligible reusable resources as target resources. The first resource sending module 204 is configured to send the target resource to the first terminal, where the first terminal sends a D2D communication signal according to the target resource;

第二资源发送模块 205, 用于将该目标资源发送给该第二终端, 由该第二 终端根据该目标资源接收 D2D通信信号。  The second resource sending module 205 is configured to send the target resource to the second terminal, and the second terminal receives the D2D communication signal according to the target resource.

该资源确定模块 202, 包括:  The resource determining module 202 includes:

第一指令发送单元 202a, 用于向第三终端发送第一指令, 该第一指令用于 指示该第三终端监听该第一终端发送的发现信号;  The first instruction sending unit 202a is configured to send, to the third terminal, a first instruction, where the first instruction is used to instruct the third terminal to listen to the discovery signal sent by the first terminal;

第一响应接收单元 202b,用于接收该第三终端返回的第一响应,该第一响 应用于指示该第三终端监听到的该发现信号的信号质量是否小于预定质量阈 值;  The first response receiving unit 202b is configured to receive a first response returned by the third terminal, where the first response is applied to indicate whether a signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold;

第二指令发送单元 202c,用于若该第一响应指示该第三终端监听到的该发 现信号的信号质量小于该预定质量阈值, 则向该第二终端发送包含有第一资源 的第二指令,该第一资源为已分配给该第三终端用以接收 D2D通信信号的 D2D 资源, 该第二指令用于指示该第二终端根据该第一资源监听 D2D通信信号; 第二响应接收单元 202d,用于接收该第二终端返回的第二响应,该第二响 应用于指示该第二终端根据该第一资源监听到的 D2D通信信号的信号强度是 否小于预定强度阈值;  The second instruction sending unit 202c is configured to: if the first response indicates that the signal quality of the discovery signal monitored by the third terminal is less than the predetermined quality threshold, send a second instruction including the first resource to the second terminal The first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; the second response receiving unit 202d And receiving, by the second terminal, a second response, where the second response is used to indicate whether a signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than a predetermined intensity threshold;

第一确定单元 202e,用于若接收到的该第二响应指示该第二终端根据该第 一资源监听到的 D2D通信信号的信号强度小于该预定强度阈值, 则将该第一 资源确定为该可复用资源。  The first determining unit 202e is configured to determine, when the received second response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined strength threshold, determining the first resource as the Reusable resources.

其中, 上述两个条件的检测顺序可以根据实际情况进行设置, 可以先检测 第一个条件, 再检测第二个条件; 也可以先检测第二个条件, 再检测第一个条 件。  The detection order of the above two conditions may be set according to actual conditions, and the first condition may be detected first, and then the second condition may be detected; or the second condition may be detected first, and then the first condition is detected.

当先检测第一个条件, 再检测第二个条件时, 基站可以通过高层信令向已 经分配有 D2D资源进行 D2D通信的各个终端发送第一指令, 各个 D2D终端 接收到该第一指令后, 在预定的时频资源上的监听第一终端发送的发现信号 Discovery信号, 并根据监听到的发现信号向基站返回第一响应, 基站根据该 第一响应判断哪些终端监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值, 并将分配给监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值的终端的 D2D资源确定为第一资源。 基站向第二终端发送包含有 该第一资源的第二指示, 第二终端接收到该第二指示后, 根据该第二资源监听 其它终端通过该第二资源发送的 D2D通信信号, 并根据监听结果向基站返回 第二响应, 基站根据该第二响应确定第二终端据以监听到的 D2D通信信号的 信号强度小于预定信号强度阈值的资源为可复用资源。 When the first condition is detected first, and then the second condition is detected, the base station may send a first instruction to each terminal that has been allocated D2D resources for performing D2D communication by using the high layer signaling, after each D2D terminal receives the first instruction, Listening to the discovery signal Discovery signal sent by the first terminal on the predetermined time-frequency resource, and returning the first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminals monitor the discovery sent by the first terminal. The signal quality of the signal is less than a predetermined quality threshold, and the D2D resource of the terminal allocated to the monitored signal of the first terminal transmitted by the monitored first terminal is determined to be the first resource. The base station sends a second indication that includes the first resource to the second terminal, and after receiving the second indication, the second terminal monitors according to the second resource. The D2D communication signal sent by the other terminal through the second resource, and the second response is returned to the base station according to the monitoring result, and the base station determines, according to the second response, that the signal strength of the D2D communication signal monitored by the second terminal is less than a predetermined signal strength threshold. Resources are reusable resources.

需要说明的是, 第二终端或者 D2D终端向基站返回的响应中, 可以直接 将监听到的 D2D通信信号的强度或者第一终端的发现信号的信号质量发送给 基站, 由基站检测信号强度是否小于预定强度阈值或者信号质量是否小于预定 质量阈值; 第二终端或者 D2D终端也可以先检测信号强度是否小于预定强度 阈值或者信号质量是否小于预定质量阈值, 并将检测结果携带在响应中发送给 基站。  It should be noted that, in the response returned by the second terminal or the D2D terminal to the base station, the strength of the monitored D2D communication signal or the signal quality of the discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal strength is less than Whether the predetermined strength threshold or the signal quality is less than the predetermined quality threshold; the second terminal or the D2D terminal may also first detect whether the signal strength is less than a predetermined intensity threshold or whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.

该第一响应接收单元 202b,用于接收该第三终端发送的包含有该第一响应 的第一响应帧, 该第一响应帧为该第三终端在接收到该第一指令后, 根据该第 一资源发送的第一个 D2D通信帧。  The first response receiving unit 202b is configured to receive a first response frame that is sent by the third terminal and includes the first response, where the first response frame is that the third terminal receives the first instruction, according to the The first D2D communication frame sent by the first resource.

该资源确定模块 202, 包括:  The resource determining module 202 includes:

第三指令发送单元 202f,用于向该第二终端发送包含有第二资源的第三指 令, 该第二资源为已分配给第四终端用以接收 D2D通信信号的 D2D资源; 该 第三指令用于指示该第二终端根据该第二资源监听 D2D通信信号;  The third instruction sending unit 202f is configured to send, to the second terminal, a third instruction that includes a second resource, where the second resource is a D2D resource that is allocated to the fourth terminal to receive the D2D communication signal; And configured to instruct the second terminal to monitor the D2D communication signal according to the second resource;

第三响应接收单元 202g,用于接收该第二终端返回的第三响应,该第三响 应用于指示该第二终端根据该第二资源监听到的 D2D通信信号的信号强度是 否小于预定强度阈值;  The third response receiving unit 202g is configured to receive a third response returned by the second terminal, where the third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined intensity threshold. ;

第四指令发送单元 202h,用于若该第三响应指示该第二终端根据该第二资 源监听到的 D2D通信信号的信号强度小于该预定强度阈值, 则向该第四终端 发送第四指令, 该第四指令用于指示该第四终端监听该第一终端发送的发现信 号;  The fourth command sending unit 202h is configured to: if the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold, send a fourth instruction to the fourth terminal, The fourth instruction is used to instruct the fourth terminal to listen to the discovery signal sent by the first terminal;

第四响应接收单元 202i, 用于接收该第四终端返回的第四响应, 该第四响 应用于指示该第四终端监听到的该发现信号的信号质量是否小于预定质量阈 值;  The fourth response receiving unit 202i is configured to receive a fourth response returned by the fourth terminal, where the fourth response is applied to indicate whether the signal quality of the discovery signal monitored by the fourth terminal is less than a predetermined quality threshold;

第二确定单元 202j ,用于若接收到的该第四响应指示该第四终端监听到的 该发现信号的信号质量小于该预定质量阈值, 则将该第二资源确定为该可复用 资源。  The second determining unit 202j is configured to determine the second resource as the reusable resource if the received fourth response indicates that the signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold.

当先检测第二个条件, 再检测第一个条件时, 基站可以通过高层信令将当 前已分配的 D2D资源发送给第二终端, 第二终端根据基站发送的 D2D资源监 听 D2D通信信号, 并根据监听结果向基站返回第三响应, 基站根据该第三响 应确定第二终端据以接收到的 D2D通信信号的信号强度小于预定强度阈值的 D2D资源为第二资源, 并将分配该第二资源以接收 D2D通信信号的终端确定 为第四终端。 基站向第四终端发送第四指令, 第四终端接收到该指令后, 在预 定的资源上监听第一终端发送的发现信号, 并根据监听结果向基站返回第四响 应, 基站根据该第四响应将第四终端中, 监听到第一终端发送的发现信号的信 号质量小于预定质量阈值的终端对应的用以接收 D2D通信信号的资源确定为 可复用资源。 When the second condition is detected first, and then the first condition is detected, the base station may send the currently allocated D2D resource to the second terminal by using the high layer signaling, and the second terminal monitors the D2D resource according to the base station. Listening to the D2D communication signal, and returning a third response to the base station according to the monitoring result, the base station determining, according to the third response, that the D2D resource whose signal strength of the D2D communication signal received by the second terminal is less than a predetermined intensity threshold is the second resource, and The terminal that allocates the second resource to receive the D2D communication signal is determined to be the fourth terminal. The base station sends a fourth command to the fourth terminal. After receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result, and the base station responds according to the fourth response. In the fourth terminal, the resource for receiving the D2D communication signal corresponding to the terminal that monitors the signal quality of the discovery signal sent by the first terminal is less than the predetermined quality threshold is determined as a reusable resource.

该第四响应接收单元 202i,用于接收该第四终端发送的包含有该第四响应 的第二响应帧, 该第二响应帧为该第四终端在接收到该第四指令后, 根据该第 二资源发送的第一个 D2D通信帧。  The fourth response receiving unit 202i is configured to receive a second response frame that is sent by the fourth terminal and includes the fourth response, where the second response frame is that the fourth terminal receives the fourth command, according to the The first D2D communication frame sent by the second resource.

其中, 已分配有 D2D资源的终端向基站返回响应时, 可以通过已分配的, 用以发送 D2D信号的资源向基站返回响应, 比如, 可以将返回给基站的响应 携带在接收到第一指令或者第四指令后发送的第一个 D2D通信帧中的第一个 OFDM ( Orthogonal Frequency Division Multiplexing , 正交频分复用 )符号中。 基站在发送第一指令或者第四指令后, 接收根据已经分配的 D2D资源发送的 第一个 D2D通信帧,并解析接收到的 D2D通信帧中的第一个 OFDM符号, 以 获取各个 D2D终端返回的第一响应或者第四响应。  When the terminal that has been allocated the D2D resource returns a response to the base station, the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal. For example, the response returned to the base station may be carried by receiving the first instruction or The first OFDM (Orthogonal Frequency Division Multiplexing) symbol in the first D2D communication frame transmitted after the fourth instruction. After transmitting the first instruction or the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the return of each D2D terminal. The first response or the fourth response.

此外, 需要说明的是, 第二终端向基站返回第二响应或者第三响应时所使 用的资源可以由基站动态配置。  In addition, it should be noted that the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.

该基站还包括:  The base station also includes:

第一检测模块 206, 用于检测从该可复用资源中分配目标资源之后, 该目 标资源是否充足;  The first detecting module 206 is configured to detect whether the target resource is sufficient after the target resource is allocated from the reusable resource;

第二检测模块 207, 用于若该第一检测模块 206的检测结果为该目标资源 不足, 则检测是否存在空闲的 D2D资源;  The second detecting module 207 is configured to detect whether there is an idle D2D resource if the detection result of the first detecting module 206 is that the target resource is insufficient;

第二资源分配模块 208, 用于若该第二检测模块 207的检测结果为存在空 闲的 D2D资源, 则从该空闲的 D2D资源中分配该目标资源。  The second resource allocation module 208 is configured to allocate the target resource from the idle D2D resource if the detection result of the second detecting module 207 is that there is a free D2D resource.

基站可以结合实际情况, 从空闲的 D2D 资源中分配部分资源或者全部资 源作为目标资源。  The base station can allocate some resources or all resources as the target resources from the idle D2D resources according to the actual situation.

在分配 D2D资源时, 基站可以考虑先分配空闲的 D2D资源, 在没有空闲 的 D2D资源可供分配时, 再考虑复用已分配的 D2D资源; 或者, 基站可以先 复用已分配的 D2D资源, 在没有可供复用的 D2D资源时, 再分配空闲的 D2D 资源。 When allocating D2D resources, the base station may consider allocating idle D2D resources first, and then considering multiplexing the allocated D2D resources when no idle D2D resources are available for allocation; or, the base station may first The allocated D2D resources are multiplexed, and the free D2D resources are allocated when there are no D2D resources available for multiplexing.

比如,若基站先考虑复用已分配 D2D资源,再考虑分配空闲的 D2D资源, 则基站从可复用资源中分配目标资源之后, 可以检测目标资源是否够用, 若够 用, 则不再分配空闲的 D2D资源, 否则, 从空闲的 D2D资源中进一步分配目 标资源。  For example, if the base station first considers multiplexing the allocated D2D resources and then considers allocating the idle D2D resources, after the base station allocates the target resources from the reusable resources, the base station can detect whether the target resources are sufficient, and if sufficient, the resources are no longer allocated. Idle D2D resources, otherwise, target resources are further allocated from idle D2D resources.

该基站还包括:  The base station also includes:

第三检测模块 209, 用于在该第一资源分配模块 203从该可复用资源中分 配目标资源之前, 检测是否存在空闲的 D2D资源;  The third detecting module 209 is configured to detect whether there is an idle D2D resource before the first resource allocation module 203 allocates the target resource from the reusable resource;

第三资源分配模块 210, 用于若该第三检测模块 209的检测结果为存在空 闲的 D2D资源, 则从该空闲的 D2D资源中分配该目标资源;  The third resource allocation module 210 is configured to allocate the target resource from the idle D2D resource if the detection result of the third detecting module 209 is that there is a free D2D resource;

同样的, 基站可以结合实际情况, 从空闲的 D2D 资源中分配部分资源或 者全部资源作为目标资源。  Similarly, the base station can allocate part of the resources or all resources as the target resources from the idle D2D resources in combination with the actual situation.

第四检测模块 211 ,用于检测从该空闲的 D2D资源中分配该目标资源之后, 该目标资源是否充足;  a fourth detecting module 211, configured to detect whether the target resource is sufficient after the target resource is allocated from the idle D2D resource;

该第一资源分配模块 203, 用于若该第四检测模块 211的检测结果为该目 标资源不足, 则执行该从该可复用资源分配目标资源的步骤。  The first resource allocation module 203 is configured to perform the step of allocating the target resource from the reusable resource if the detection result of the fourth detecting module 211 is that the target resource is insufficient.

若基站先考虑分配空闲的 D2D资源, 再考虑复用已分配的 D2D资源, 则 当基站在从可复用资源中分配目标资源之前, 先检测是否有空闲的 D2D资源, 若有, 则从空闲的 D2D资源中分配目标资源, 若从空闲的 D2D资源中分配目 标资源后, 该目标资源依然不足, 则进一步从可复用的资源中分配目标资源。 此外, 若从空闲的 D2D 资源中分配的目标资源已经足够, 则基站可以不进行 后续确定可复用资源的步骤, 从而节约系统资源, 减少消耗。  If the base station first considers allocating idle D2D resources and then considering multiplexing the allocated D2D resources, the base station detects whether there are idle D2D resources before allocating the target resources from the reusable resources, and if so, is idle. The target resource is allocated in the D2D resource. If the target resource is still insufficient after the target resource is allocated from the idle D2D resource, the target resource is further allocated from the reusable resource. In addition, if the target resource allocated from the idle D2D resource is sufficient, the base station may not perform the step of determining the reusable resource subsequently, thereby saving system resources and reducing consumption.

或者, 基站在向第二终端发送第三指令时, 可以将已分配的 D2D 资源和 空闲的 D2D 资源全部发送给第二终端, 第二终端根据全部的 D2D 资源监听 D2D通信信号, 并根据监听结果向基站返回第三响应,基站确定第二终端据以 接收到的 D2D通信信号的信号强度小于预定强度阈值的资源中, 是否存在空 闲的资源, 若是, 则优先从空闲的资源中分配目标资源, 若没有空闲的资源或 者空闲的资源不足, 则基站进一步执行向第四终端发送第四指令的步骤。  Alternatively, when the third command is sent to the second terminal, the base station may send all the allocated D2D resources and the idle D2D resources to the second terminal, and the second terminal monitors the D2D communication signal according to all the D2D resources, and according to the monitoring result. Returning a third response to the base station, the base station determining whether there is an idle resource in the resource whose signal strength of the D2D communication signal received by the second terminal is less than a predetermined intensity threshold, and if yes, preferentially allocating the target resource from the idle resource. If there are no idle resources or insufficient idle resources, the base station further performs the step of transmitting a fourth instruction to the fourth terminal.

综上所述, 本发明实施例提供的基站, 通过在接收到第一终端发送的, 与 第二终端建立端到端 D2D通信的请求后, 在已经分配的 D2D资源中确定第一 终端和第二终端可复用的资源, 并从可复用资源中分配目标资源, 解决了现有 技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出现没 有空闲的 D2D 资源可供分配的情形的问题, 达到提高资源利用率和系统容量 的目的。 请参见图 3, 其示出了本发明又一实施例提供的基站的设备构成图。 该基 站可以用于为请求 D2D通信的终端分配 D2D资源。 该基站可以包括: 接收机 001、 处理器 002和发射机 003; In summary, the base station provided by the embodiment of the present invention determines the first among the allocated D2D resources after receiving the request for establishing the end-to-end D2D communication with the second terminal, which is sent by the first terminal. A resource that can be multiplexed by the terminal and the second terminal, and a target resource is allocated from the reusable resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources. The problem of the situation that can be allocated to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 3, it shows a device configuration diagram of a base station according to another embodiment of the present invention. The base station can be used to allocate D2D resources for terminals requesting D2D communication. The base station may include: a receiver 001, a processor 002, and a transmitter 003;

该接收机 001 , 用于接收第一终端发送的用于与第二终端建立端到端 D2D 通信的请求;  The receiver 001 is configured to receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal;

该处理器 002,用于在已经分配的 D2D资源中确定能够被该第一终端和该 第二终端复用的可复用资源;  The processor 002 is configured to determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal;

该处理器 002, 用于从该可复用资源中分配目标资源;  The processor 002 is configured to allocate a target resource from the reusable resource;

该处理器 002, 用于控制该发射机 003将该目标资源发送给该第一终端和 该第二终端, 由该第一终端根据该目标资源发送 D2D通信信号, 并由该第二 终端根据该目标资源接收 D2D通信信号。  The processor 002 is configured to control the transmitter 003 to send the target resource to the first terminal and the second terminal, where the first terminal sends a D2D communication signal according to the target resource, and the second terminal is configured according to the The target resource receives the D2D communication signal.

综上所述, 本发明实施例提供的基站, 通过在接收到第一终端发送的, 与 第二终端建立端到端 D2D通信的请求后, 在已经分配的 D2D资源中确定第一 终端和第二终端可复用的资源, 并从可复用资源中分配目标资源, 解决了现有 技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出现没 有空闲的 D2D 资源可供分配的情形的问题, 达到提高资源利用率和系统容量 的目的。 请参见图 4, 其示出了本发明再一实施例提供的基站的设备构成图。 该基 站可以用于为请求 D2D通信的第一终端分配向第二终端发送 D2D通信信号的 D2D资源。 该基站可以包括: 接收机 004、 处理器 005和发射机 006;  In summary, the base station provided by the embodiment of the present invention determines the first terminal and the first D2D resource in the allocated D2D resource after receiving the request for establishing the end-to-end D2D communication with the second terminal, which is sent by the first terminal. The second terminal is multiplexable and allocates the target resource from the reusable resource. When the number of terminals requesting D2D communication within the coverage of the base station is large in the prior art, there may be no idle D2D resources available for allocation. The problem of the situation is to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 4, a device configuration diagram of a base station according to still another embodiment of the present invention is shown. The base station can be configured to allocate a D2D resource for transmitting a D2D communication signal to the second terminal for the first terminal requesting the D2D communication. The base station can include: a receiver 004, a processor 005, and a transmitter 006;

该接收机 004, 用于接收第一终端发送的用于与第二终端建立端到端 D2D 通信的请求;  The receiver 004 is configured to receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal.

具体的, 支持 D2D通信的终端可以在预定的时频资源上周期性的发送发 现信号 Discovery信号, 当第一终端接收到第二终端发送的发现信号并检测可 以与该第二终端进行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通 信的请求。 Specifically, the terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the discovery signal sent by the second terminal and detects that the D2D communication can be performed with the second terminal. Sending a D2D connection with the second terminal to the base station Letter request.

该处理器 005,用于在已经分配的 D2D资源中确定能够被该第一终端和该 第二终端复用的可复用资源;  The processor 005 is configured to determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal;

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。  Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.

第一终端发送的发现信号中可以携带有各个终端预先已知的参考内容, 各 个 D2D终端接收到发现信号后, 对发现信号进行解析, 并将解析获得的内容 与参考内容进行对比, 获得解析准确率, 并将该解析准确率作为接收到的第一 终端发送的发现信号的信号质量。  The discovery signal sent by the first terminal may carry the reference content known in advance by each terminal. After receiving the discovery signal, each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.

其中, 第一终端发送的发现信号可能受到其它终端发送的发现信号的干 扰。 接收端接收到的是第一终端发送的发现信号与干扰信号的混合信号, 如果 以信号强度为依据, 接收端只能测出这个混合信号的强度, 并不能代表第一终 端的发现信号的信号强度, 因此, 本发明实施例根据第一终端的发现信号的信 号质量来设定判断阈值, 能够提高判断的准确性。  The discovery signal sent by the first terminal may be interfered by the discovery signal sent by other terminals. The receiving end receives the mixed signal of the discovery signal and the interference signal sent by the first terminal. If based on the signal strength, the receiving end can only measure the strength of the mixed signal, and cannot represent the signal of the first terminal. Intensity, therefore, the embodiment of the present invention sets the determination threshold according to the signal quality of the discovery signal of the first terminal, and can improve the accuracy of the determination.

而第二终端在检测根据已分配的 D2D资源接收到的信号的干扰时, 需要 检测的是在某一时频资源上的总干扰, 不需要区分该干扰来自于哪些 D2D终 端, 因此, 只需要检测根据已分配的 D2D资源接收到的通信信号的信号强度 即可。  When the second terminal detects the interference of the signal received according to the allocated D2D resource, it needs to detect the total interference on a certain time-frequency resource, and does not need to distinguish which D2D terminal the interference comes from, therefore, only need to detect The signal strength of the communication signal received according to the allocated D2D resource may be used.

该处理器 005, 用于从该可复用资源中分配目标资源;  The processor 005 is configured to allocate a target resource from the reusable resource;

基站可以从所有符合条件的可复用资源中分配部分或者全部资源作为目 标资源。  The base station can allocate some or all of the resources from all eligible reusable resources as target resources.

该处理器 005 , 用于控制该发射机 006将该目标资源发送给该第一终端和 该第二终端, 由该第一终端根据该目标资源发送 D2D通信信号, 并由该第二 终端根据该目标资源接收 D2D通信信号。 The processor 005 is configured to control the transmitter 006 to send the target resource to the first terminal and The second terminal transmits, by the first terminal, a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.

该处理器 005 , 用于控制该发射机 005向第三终端发送第一指令, 该第一 指令用于指示该第三终端监听该第一终端发送的发现信号;  The processor 005 is configured to control the transmitter 005 to send a first instruction to the third terminal, where the first instruction is used to instruct the third terminal to listen to the discovery signal sent by the first terminal;

该接收机 004, 用于接收该第三终端返回的第一响应, 该第一响应用于指 示该第三终端监听到的该发现信号的信号质量是否小于预定质量阈值;  The receiver 004 is configured to receive a first response returned by the third terminal, where the first response is used to indicate whether a signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold;

该处理器 005, 用于若该第一响应指示该第三终端监听到的该发现信号的 信号质量小于该预定质量阈值, 则控制该发射机向该第二终端发送包含有第一 资源的第二指令, 该第一资源为已分配给该第三终端用以接收 D2D通信信号 的 D2D资源, 该第二指令用于指示该第二终端根据该第一资源监听 D2D通信 信号;  The processor 005 is configured to: if the first response indicates that the signal quality of the discovery signal monitored by the third terminal is less than the predetermined quality threshold, control the transmitter to send the first resource to the second terminal a second command, the first resource is a D2D resource that is allocated to the third terminal to receive the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource;

该接收机 004, 用于接收该第二终端返回的第二响应, 该第二响应用于指 示该第二终端根据该第一资源监听到的 D2D通信信号的信号强度是否小于预 定强度阈值;  The receiver 004 is configured to receive a second response returned by the second terminal, where the second response is used to indicate whether a signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than a predetermined intensity threshold;

该处理器 005 , 用于若该接收机 004接收到的该第二响应指示该第二终端 根据该第一资源监听到的 D2D通信信号的信号强度小于该预定强度阈值, 则 将该第一资源确定为该可复用资源。  The processor 005 is configured to: if the second response received by the receiver 004 indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined strength threshold, the first resource is used. Determined as this reusable resource.

其中, 上述两个条件的检测顺序可以根据实际情况进行设置, 可以先检测 第一个条件, 再检测第二个条件; 也可以先检测第二个条件, 再检测第一个条 件。  The detection order of the above two conditions may be set according to actual conditions, and the first condition may be detected first, and then the second condition may be detected; or the second condition may be detected first, and then the first condition is detected.

当先检测第一个条件, 再检测第二个条件时, 基站可以通过高层信令向已 经分配有 D2D资源进行 D2D通信的各个终端发送第一指令, 各个 D2D终端 接收到该第一指令后, 在预定的时频资源上的监听第一终端发送的发现信号 Discovery信号, 并根据监听到的发现信号向基站返回第一响应, 基站根据该 第一响应判断哪些终端监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值, 并将分配给监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值的终端的 D2D资源确定为第一资源。 基站向第二终端发送包含有 该第一资源的第二指示, 第二终端接收到该第二指示后, 根据该第二资源监听 其它终端通过该第二资源发送的 D2D通信信号, 并根据监听结果向基站返回 第二响应, 基站根据该第二响应确定第二终端据以监听到的 D2D通信信号的 信号强度小于预定信号强度阈值的资源为可复用资源。 需要说明的是, D2D终端或者第二终端向基站返回的响应中, 可以直接将 监听到的 D2D通信信号的强度或者第一终端的发现信号的信号质量发送给基 站, 由基站检测信号强度是否小于预定强度阈值或者信号质量是否小于预定质 量阈值; 或者, D2D终端或者第二终端也可以先检测信号强度是否小于预定强 度阈值或者信号质量是否小于预定质量阈值, 并将检测结果携带在响应中发送 给基站。 When the first condition is detected first, and then the second condition is detected, the base station may send a first instruction to each terminal that has been allocated D2D resources for performing D2D communication by using the high layer signaling, after each D2D terminal receives the first instruction, Listening to the discovery signal Discovery signal sent by the first terminal on the predetermined time-frequency resource, and returning the first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminals monitor the discovery sent by the first terminal. The signal quality of the signal is less than a predetermined quality threshold, and the D2D resource of the terminal allocated to the monitored signal of the first terminal transmitted by the monitored first terminal is determined to be the first resource. The base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource. It should be noted that, in the response returned by the D2D terminal or the second terminal to the base station, the strength of the monitored D2D communication signal or the signal quality of the discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal strength is less than Whether the predetermined intensity threshold or the signal quality is less than the predetermined quality threshold; or the D2D terminal or the second terminal may first detect whether the signal strength is less than a predetermined intensity threshold or whether the signal quality is less than a predetermined quality threshold, and the detection result is carried in the response and sent to the response Base station.

该接收机 004, 用于接收该第三终端发送的包含有该第一响应的第一响应 帧, 该第一响应帧为该第三终端在接收到该第一指令后, 根据该第一资源发送 的第一个 D2D通信帧。  The receiver 004 is configured to receive a first response frame that is sent by the third terminal and includes the first response, where the first response frame is that the third terminal receives the first instruction, according to the first resource. The first D2D communication frame sent.

该处理器 005 , 用于控制该发射机 006向该第二终端发送包含有第二资源 的第三指令, 该第二资源为已分配给第四终端用以接收 D2D通信信号的 D2D 资源; 该第三指令用于指示该第二终端根据该第二资源监听 D2D通信信号; 该接收机 004, 用于接收该第二终端返回的第三响应, 该第三响应用于指 示该第二终端根据该第二资源监听到的 D2D通信信号的信号强度是否小于预 定强度阈值;  The processor 005 is configured to control the transmitter 006 to send, to the second terminal, a third instruction that includes a second resource, where the second resource is a D2D resource that is allocated to the fourth terminal to receive the D2D communication signal; The third command is used to indicate that the second terminal monitors the D2D communication signal according to the second resource; the receiver 004 is configured to receive a third response returned by the second terminal, where the third response is used to indicate that the second terminal is configured according to Whether the signal strength of the D2D communication signal monitored by the second resource is less than a predetermined intensity threshold;

该处理器 005, 用于若该第三响应指示该第二终端根据该第二资源监听到 的 D2D通信信号的信号强度小于该预定强度阈值, 则控制该发射机向该第四 终端发送第四指令, 该第四指令用于指示该第四终端监听该第一终端发送的发 现信号;  The processor 005 is configured to: if the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold, then control the transmitter to send the fourth terminal to the fourth terminal. The fourth instruction is used to instruct the fourth terminal to listen to the discovery signal sent by the first terminal;

该接收机 004, 用于接收该第四终端返回的第四响应, 该第四响应用于指 示该第四终端监听到的该发现信号的信号质量是否小于预定质量阈值;  The receiver 004 is configured to receive a fourth response returned by the fourth terminal, where the fourth response is used to indicate whether a signal quality of the discovery signal monitored by the fourth terminal is less than a predetermined quality threshold;

该处理器 005 , 用于若该接收机 004接收到的该第四响应指示该第四终端 监听到的该发现信号的信号质量小于该预定质量阈值, 则将该第二资源确定为 该可复用资源。  The processor 005 is configured to determine the second resource as the recoverable if the fourth response received by the receiver 004 indicates that the signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold. Use resources.

当先检测第二个条件, 再检测第一个条件时, 基站可以通过高层信令将当 前已分配的 D2D资源发送给第二终端, 第二终端根据基站发送的 D2D资源监 听 D2D通信信号, 并根据监听结果向基站返回第三响应, 基站根据该第三响 应确定第二终端据以接收到的 D2D通信信号的信号强度小于预定强度阈值的 D2D资源为第二资源, 并将分配该第二资源以接收 D2D通信信号的终端确定 为第四终端。 基站向第四终端发送第四指令, 第四终端接收到该指令后, 在预 定的资源上监听第一终端发送的发现信号, 并根据监听结果向基站返回第四响 应, 基站根据该第四响应将第四终端中, 监听到第一终端发送的发现信号的信 号质量小于预定质量阈值的终端对应的用以接收 D2D通信信号的资源确定为 可复用资源。 When detecting the second condition and detecting the first condition, the base station may send the currently allocated D2D resource to the second terminal by using the high layer signaling, and the second terminal monitors the D2D communication signal according to the D2D resource sent by the base station, and according to The monitoring result returns a third response to the base station, and the base station determines, according to the third response, that the D2D resource whose signal strength of the D2D communication signal received by the second terminal is less than a predetermined intensity threshold is the second resource, and allocates the second resource to The terminal receiving the D2D communication signal is determined to be the fourth terminal. The base station sends a fourth command to the fourth terminal. After receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns the fourth ring to the base station according to the monitoring result. The base station determines, according to the fourth response, the resource for receiving the D2D communication signal corresponding to the terminal that the signal quality of the discovery signal sent by the first terminal is less than the predetermined quality threshold is determined as the reusable resource.

该接收机 004, 用于接收该第四终端发送的包含有该第四响应的第二响应 帧, 该第二响应帧为该第四终端在接收到该第四指令后, 根据该第二资源发送 的第一个 D2D通信帧。  The receiver 004 is configured to receive a second response frame that is sent by the fourth terminal and includes the fourth response, where the second response frame is that the fourth terminal receives the fourth instruction, according to the second resource. The first D2D communication frame sent.

其中, 已分配有 D2D资源的终端向基站返回响应时, 可以通过已分配的, 用以发送 D2D信号的资源向基站返回响应, 比如, 可以将返回给基站的响应 携带在接收到第一指令或者第四指令后发送的第一个 D2D通信帧中的第一个 OFDM ( Orthogonal Frequency Division Multiplexing , 正交频分复用 )符号中。 基站在发送第一指令或者第四指令后, 接收根据已经分配的 D2D资源发送的 第一个 D2D通信帧,并解析接收到的 D2D通信帧中的第一个 OFDM符号, 以 获取各个 D2D终端返回的第一响应或者第四响应。  When the terminal that has been allocated the D2D resource returns a response to the base station, the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal. For example, the response returned to the base station may be carried by receiving the first instruction or The first OFDM (Orthogonal Frequency Division Multiplexing) symbol in the first D2D communication frame transmitted after the fourth instruction. After transmitting the first instruction or the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the return of each D2D terminal. The first response or the fourth response.

此外, 需要说明的是, 第二终端向基站返回第二响应或者第三响应时所使 用的资源可以由基站动态配置。  In addition, it should be noted that the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.

该处理器 005, 还用于检测从该可复用资源中分配目标资源之后, 该目标 资源是否充足;  The processor 005 is further configured to detect whether the target resource is sufficient after the target resource is allocated from the reusable resource;

该处理器 005, 用于若检测结果为该目标资源不足, 则检测是否存在空闲 的 D2D资源;  The processor 005 is configured to detect whether there is an idle D2D resource if the detection result is that the target resource is insufficient;

该处理器 005, 用于若检测结果为存在空闲的 D2D 资源, 则从该空闲的 D2D资源中分配该目标资源。  The processor 005 is configured to allocate the target resource from the idle D2D resource if the detection result is that there is an idle D2D resource.

基站可以结合实际情况, 从空闲的 D2D 资源中分配部分资源或者全部资 源作为目标资源。  The base station can allocate some resources or all resources as the target resources from the idle D2D resources according to the actual situation.

在分配 D2D资源时, 基站可以考虑先分配空闲的 D2D资源, 在没有空闲 的 D2D资源可供分配时, 再考虑复用已分配的 D2D资源; 或者, 基站可以先 复用已分配的 D2D资源, 在没有可供复用的 D2D资源时, 再分配空闲的 D2D 资源。  When allocating D2D resources, the base station may consider allocating idle D2D resources first, and then considering multiplexing the allocated D2D resources when no idle D2D resources are available for allocation; or, the base station may first reuse the allocated D2D resources. When there are no D2D resources available for reuse, allocate free D2D resources.

比如,若基站先考虑复用已分配 D2D资源,再考虑分配空闲的 D2D资源, 则基站从可复用资源中分配目标资源之后, 可以检测目标资源是否够用, 若够 用, 则不再分配空闲的 D2D资源, 否则, 从空闲的 D2D资源中进一步分配目 标资源。 该处理器 005, 用于在从该可复用资源中分配目标资源之前, 检测是否存 在空闲的 D2D资源; For example, if the base station first considers multiplexing the allocated D2D resources and then considers allocating the idle D2D resources, after the base station allocates the target resources from the reusable resources, the base station can detect whether the target resources are sufficient, and if sufficient, the resources are no longer allocated. Idle D2D resources, otherwise, target resources are further allocated from idle D2D resources. The processor 005 is configured to detect whether there is an idle D2D resource before allocating the target resource from the reusable resource;

该处理器 005, 用于若检测结果为存在空闲的 D2D 资源, 则从该空闲的 D2D资源中分配该目标资源;  The processor 005 is configured to: if the detection result is that there is an idle D2D resource, allocate the target resource from the idle D2D resource;

该处理器 005, 用于检测从该空闲的 D2D资源中分配该目标资源之后, 该 目标资源是否充足;  The processor 005 is configured to detect whether the target resource is sufficient after the target resource is allocated from the idle D2D resource.

该处理器 005, 用于若检测结果为该目标资源不足, 则执行该从该可复用 资源分配目标资源的步骤。  The processor 005 is configured to perform the step of allocating the target resource from the reusable resource if the detection result is that the target resource is insufficient.

若基站先考虑分配空闲的 D2D资源, 再考虑复用已分配的 D2D资源, 则 当基站在从可复用资源中分配目标资源之前, 先检测是否有空闲的 D2D资源, 若有, 则从空闲的 D2D资源中分配目标资源, 若从空闲的 D2D资源中分配目 标资源后, 该目标资源依然不足, 则进一步从可复用的资源中分配目标资源。 此外, 若从空闲的 D2D 资源中分配的目标资源已经足够, 则基站可以不进行 后续确定可复用资源的步骤, 从而节约系统资源, 减少消耗。  If the base station first considers allocating idle D2D resources and then considering multiplexing the allocated D2D resources, the base station detects whether there are idle D2D resources before allocating the target resources from the reusable resources, and if so, is idle. The target resource is allocated in the D2D resource. If the target resource is still insufficient after the target resource is allocated from the idle D2D resource, the target resource is further allocated from the reusable resource. In addition, if the target resource allocated from the idle D2D resource is sufficient, the base station may not perform the step of determining the reusable resource subsequently, thereby saving system resources and reducing consumption.

或者, 基站在向第二终端发送第三指令时, 可以将已分配的 D2D 资源和 空闲的 D2D 资源全部发送给第二终端, 第二终端根据全部的 D2D 资源监听 D2D通信信号, 并根据监听结果向基站返回第三响应,基站确定第二终端据以 接收到的 D2D通信信号的信号强度小于预定强度阈值的资源中, 是否存在空 闲的资源, 若是, 则优先从空闲的资源中分配目标资源, 若没有空闲的资源或 者空闲的资源不足, 则基站进一步执行向第四终端发送第四指令的步骤。  Alternatively, when the third command is sent to the second terminal, the base station may send all the allocated D2D resources and the idle D2D resources to the second terminal, and the second terminal monitors the D2D communication signal according to all the D2D resources, and according to the monitoring result. Returning a third response to the base station, the base station determining whether there is an idle resource in the resource whose signal strength of the D2D communication signal received by the second terminal is less than a predetermined intensity threshold, and if yes, preferentially allocating the target resource from the idle resource. If there are no idle resources or insufficient idle resources, the base station further performs the step of transmitting a fourth instruction to the fourth terminal.

综上所述, 本发明实施例提供的基站, 通过在接收到第一终端发送的, 与 第二终端建立端到端 D2D通信的请求后, 在已经分配的 D2D资源中确定第一 终端和第二终端可复用的资源, 并从可复用资源中分配目标资源, 解决了现有 技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出现没 有空闲的 D2D资源可供分配的情形的问题, 达到提高资源利用率和系统容量 的目的。 请参见图 5, 其示出了本发明一个实施例提供的第一终端的设备构成图。 该第一终端可以用于向基站请求用于向第二终端发送 D2D通信信号的 D2D资 源。 该第一终端可以包括:  In summary, the base station provided by the embodiment of the present invention determines the first terminal and the first D2D resource in the allocated D2D resource after receiving the request for establishing the end-to-end D2D communication with the second terminal, which is sent by the first terminal. The second terminal is multiplexable and allocates the target resource from the reusable resource. When the number of terminals requesting D2D communication within the coverage of the base station is large, there may be no idle D2D resources available for allocation. The problem of the situation is to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 5, it shows a device configuration diagram of a first terminal according to an embodiment of the present invention. The first terminal may be configured to request, from the base station, a D2D resource for transmitting a D2D communication signal to the second terminal. The first terminal may include:

请求发送模块 301 ,用于向基站发送用于与第二终端建立端到端 D2D通信 的请求, 该请求用于指示该基站在已经分配的 D2D 资源中确定能够被该第一 终端和该第二终端复用的可复用资源, 并从该可复用资源中分配目标资源; 第一资源接收模块 302, 用于接收该基站发送的目标资源; The request sending module 301 is configured to send, to the base station, an end-to-end D2D communication with the second terminal. And the request is used to indicate that the base station determines, among the allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal, and allocates a target resource from the reusable resource; a resource receiving module 302, configured to receive a target resource sent by the base station;

通信信号发送模块 303 ,用于根据该目标资源向该第二终端发送 D2D通信 信号。  The communication signal sending module 303 is configured to send a D2D communication signal to the second terminal according to the target resource.

综上所述, 本发明实施例提供的第一终端, 通过向基站发送与第二终端建 立 D2D通信的请求, 由基站从已分配的 D2D资源中分配能够被第一终端和第 二终端复用的资源, 并根据基站分配的资源发送 D2D通信信号, 解决了现有 技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出现没 有空闲的 D2D资源可供分配的情形的问题, 达到提高资源利用率和系统容量 的目的。 请参见图 6, 其示出了本发明另一实施例提供的第一终端的设备构成图。 该第一终端可以用于向基站请求用于向第二终端发送 D2D通信信号的 D2D资 源。 该第一终端可以包括:  In summary, the first terminal provided by the embodiment of the present invention, by transmitting a request for establishing D2D communication with the second terminal to the base station, is allocated by the base station from the allocated D2D resources and can be reused by the first terminal and the second terminal. And transmitting the D2D communication signal according to the resource allocated by the base station, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resource is available for allocation. Achieve the goal of improving resource utilization and system capacity. Referring to FIG. 6, a device configuration diagram of a first terminal according to another embodiment of the present invention is shown. The first terminal may be configured to request, from the base station, a D2D resource for transmitting a D2D communication signal to the second terminal. The first terminal may include:

请求发送模块 401 ,用于向基站发送用于与第二终端建立端到端 D2D通信 的请求, 该请求用于指示该基站在已经分配的 D2D资源中确定能够被该第一 终端和该第二终端复用的可复用资源, 并从该可复用资源中分配目标资源; 支持 D2D通信的终端可以在预定的时频资源上发送发现信号 Discovery信 号, 当第一终端接收到第二终端发送的发现信号并检测可以与该第二终端进行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通信的请求。  The request sending module 401 is configured to send, to the base station, a request for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines, by the allocated D2D resources, that the first terminal and the second a terminal multiplexed reusable resource, and a target resource is allocated from the reusable resource; the terminal supporting the D2D communication may send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the second terminal to send The discovery signal and detecting that the D2D communication can be performed with the second terminal may send a request for D2D communication with the second terminal to the base station.

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。 其中, 基站确定可复用资源的具体方法请参见图 2所示的基站对 应实施例中的描述, 本实施例不再赘述。 Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not Will have an impact; satisfying the second condition that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource is not for the second terminal Will have an impact. For a specific method for the base station to determine the reusable resource, refer to the description in the corresponding embodiment of the base station shown in FIG. 2, which is not described in this embodiment.

第一资源接收模块 402, 用于接收该基站发送的目标资源;  The first resource receiving module 402 is configured to receive a target resource sent by the base station;

通信信号发送模块 403 ,用于根据该目标资源向该第二终端发送 D2D通信 信号。  The communication signal sending module 403 is configured to send a D2D communication signal to the second terminal according to the target resource.

该第一终端还包括:  The first terminal further includes:

发现信号发送模块 404, 用于周期性发送发现信号。  The discovery signal sending module 404 is configured to periodically send the discovery signal.

其中, 第一终端发送的发现信号中可以携带有各个终端预先已知的参考内 容, 各个 D2D终端接收到发现信号后, 对发现信号进行解析, 并将解析获得 的内容与参考内容进行对比, 获得解析准确率, 并将该解析准确率作为接收到 的第一终端发送的发现信号的信号质量,后续根据该第一终端发送的发现信号 的信号质量协助基站确定可复用资源, 具体请参见图 2所示的基站对应实施例 中的描述, 本实施例不再赘述。  The discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal. After receiving the discovery signal, each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain Determining the accuracy rate, and using the parsing accuracy as the signal quality of the received discovery signal sent by the first terminal, and subsequently assisting the base station to determine the reusable resource according to the signal quality of the discovery signal sent by the first terminal, as shown in the figure. The base station shown in FIG. 2 corresponds to the description in the embodiment, and is not described in this embodiment.

综上所述, 本发明实施例提供的第一终端, 通过向基站发送与第二终端建 立 D2D通信的请求, 由基站从已分配的 D2D资源中分配能够被第一终端和第 二终端复用的资源, 并根据基站分配的资源发送 D2D通信信号, 解决了现有 技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出现没 有空闲的 D2D 资源可供分配的情形的问题, 达到提高资源利用率和系统容量 的目的。 请参见图 7, 其示出了本发明又一实施例提供的第一终端的设备构成图。 该第一终端可以用于向基站请求用于向第二终端发送 D2D通信信号的 D2D资 源。 该第一终端可以包括: 处理器 007、 发射机 008和接收机 009;  In summary, the first terminal provided by the embodiment of the present invention, by transmitting a request for establishing D2D communication with the second terminal to the base station, is allocated by the base station from the allocated D2D resources and can be reused by the first terminal and the second terminal. And transmitting the D2D communication signal according to the resource allocated by the base station, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resource is available for allocation. Achieve the goal of improving resource utilization and system capacity. Referring to FIG. 7, a device configuration diagram of a first terminal according to another embodiment of the present invention is shown. The first terminal may be configured to request, from the base station, a D2D resource for transmitting a D2D communication signal to the second terminal. The first terminal may include: a processor 007, a transmitter 008, and a receiver 009;

该处理器 007, 用于控制该发射机 008向基站发送用于与第二终端建立端 到端 D2D通信的请求, 该请求用于指示该基站在已经分配的 D2D资源中确定 能够被该第一终端和该第二终端复用的可复用资源, 并从该可复用资源中分配 目标资源;  The processor 007 is configured to control the transmitter 008 to send, to the base station, a request for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines, in the already allocated D2D resource, that the first a reusable resource multiplexed by the terminal and the second terminal, and a target resource is allocated from the reusable resource;

该接收机 009 , 用于接收该基站发送的目标资源;  The receiver 009 is configured to receive a target resource sent by the base station;

该处理器 007, 用于控制该发射机 008根据该目标资源向该第二终端发送 D2D通信信号。  The processor 007 is configured to control the transmitter 008 to send a D2D communication signal to the second terminal according to the target resource.

综上所述, 本发明实施例提供的第一终端, 通过向基站发送与第二终端建 立 D2D通信的请求, 由基站从已分配的 D2D资源中分配能够被第一终端和第 二终端复用的资源, 并根据基站分配的资源发送 D2D通信信号, 解决了现有 技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出现没 有空闲的 D2D资源可供分配的情形的问题, 达到提高资源利用率和系统容量 的目的。 请参见图 8, 其示出了本发明再一实施例提供的第一终端的设备构成图。 该第一终端可以用于向基站请求用于向第二终端发送 D2D通信信号的 D2D资 源。 该第一终端可以包括: 处理器 010、 发射机 011和接收机 012; In summary, the first terminal provided by the embodiment of the present invention is configured to send to the base station by sending to the second terminal. In the request of the D2D communication, the base station allocates resources that can be multiplexed by the first terminal and the second terminal from the allocated D2D resources, and sends the D2D communication signal according to the resources allocated by the base station, which solves the problem of the base station coverage in the prior art. When the number of terminals requesting to establish D2D communication is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 8, a device configuration diagram of a first terminal according to still another embodiment of the present invention is shown. The first terminal may be configured to request, from the base station, a D2D resource for transmitting a D2D communication signal to the second terminal. The first terminal may include: a processor 010, a transmitter 011, and a receiver 012;

该处理器 010, 用于控制该发射机 011向基站发送用于与第二终端建立端 到端 D2D通信的请求, 该请求用于指示该基站在已经分配的 D2D资源中确定 能够被该第一终端和该第二终端复用的可复用资源, 并从该可复用资源中分配 目标资源;  The processor 010 is configured to control the transmitter 011 to send, to the base station, a request for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines, in the already allocated D2D resource, that the first a reusable resource multiplexed by the terminal and the second terminal, and a target resource is allocated from the reusable resource;

支持 D2D通信的终端可以在预定的时频资源上发送发现信号 Discovery信 号, 当第一终端接收到第二终端发送的发现信号并检测可以与该第二终端进行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通信的请求。  The terminal supporting the D2D communication may send the discovery signal Discovery signal on the predetermined time-frequency resource. When the first terminal receives the discovery signal sent by the second terminal and detects that the second terminal can perform D2D communication, the terminal may send and send to the base station. The second terminal makes a request for D2D communication.

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。 其中, 基站确定可复用资源的具体方法请参见图 4所示的基站对 应实施例中的描述, 本实施例不再赘述。  Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal. For a specific method for the base station to determine the reusable resource, refer to the description in the corresponding embodiment of the base station shown in FIG. 4, which is not described in this embodiment.

该接收机 012, 用于接收该基站发送的目标资源;  The receiver 012 is configured to receive a target resource sent by the base station;

该处理器 010, 用于控制该发射机 011根据该目标资源向该第二终端发送 D2D通信信号。 该处理器 010, 还用于控制该发射机 011周期性发送发现信号。 其中, 第一终端发送的发现信号中可以携带有各个终端预先已知的参考内 容, 各个 D2D终端接收到发现信号后, 对发现信号进行解析, 并将解析获得 的内容与参考内容进行对比, 获得解析准确率, 并将该解析准确率作为接收到 的第一终端发送的发现信号的信号质量,后续根据该第一终端发送的发现信号 的信号质量协助基站确定可复用资源, 具体请参见图 4所示的基站对应实施例 中的描述, 本实施例不再赘述。 The processor 010 is configured to control the transmitter 011 to send a D2D communication signal to the second terminal according to the target resource. The processor 010 is further configured to control the transmitter 011 to periodically send a discovery signal. The discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal. After receiving the discovery signal, each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain Determining the accuracy rate, and using the parsing accuracy as the signal quality of the received discovery signal sent by the first terminal, and subsequently assisting the base station to determine the reusable resource according to the signal quality of the discovery signal sent by the first terminal, as shown in the figure. The base station shown in FIG. 4 corresponds to the description in the embodiment, and is not described in this embodiment.

综上所述, 本发明实施例提供的第一终端, 通过向基站发送与第二终端建 立 D2D通信的请求, 由基站从已分配的 D2D资源中分配能够被第一终端和第 二终端复用的资源, 并根据基站分配的资源发送 D2D通信信号, 解决了现有 技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出现没 有空闲的 D2D 资源可供分配的情形的问题, 达到提高资源利用率和系统容量 的目的。 请参见图 9, 其示出了本发明一个实施例提供的第二终端的设备构成图。 该第二终端可以用于根据基站分配的 D2D资源接收第一终端发送的 D2D通信 信号。 该第二终端可以包括:  In summary, the first terminal provided by the embodiment of the present invention, by transmitting a request for establishing D2D communication with the second terminal to the base station, is allocated by the base station from the allocated D2D resources and can be reused by the first terminal and the second terminal. And transmitting the D2D communication signal according to the resource allocated by the base station, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resource is available for allocation. Achieve the goal of improving resource utilization and system capacity. Referring to FIG. 9, a device configuration diagram of a second terminal according to an embodiment of the present invention is shown. The second terminal may be configured to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station. The second terminal can include:

第二资源接收模块 501 , 用于接收基站发送的目标资源, 该目标资源为该 基站接收到第一终端发送的用于与该第二终端建立端到端 D2D通信的请求后, 在已经分配的 D2D资源中确定能够被该第一终端和该第二终端复用的可复用 资源, 并从该可复用资源中分配的资源;  The second resource receiving module 501 is configured to receive a target resource that is sent by the base station, where the target resource is that the base station receives the request sent by the first terminal to establish end-to-end D2D communication with the second terminal, Determining, among the D2D resources, a reusable resource multiplexable by the first terminal and the second terminal, and a resource allocated from the reusable resource;

通信信号接收模块 502, 用于根据该目标资源接收该第一终端发送的 D2D 通信信号。  The communication signal receiving module 502 is configured to receive the D2D communication signal sent by the first terminal according to the target resource.

综上所述, 本发明实施例提供的第二终端, 通过接收基站在已经分配的 D2D资源中确定能够被该第一终端和该第二终端复用的可复用资源后,从可复 用资源中分配的目标资源, 并根据该目标资源接收第一基站发送的 D2D通信 信号, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较 多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资源 利用率和系统容量的目的。 请参见图 10, 其示出了本发明另一实施例提供的第二终端的设备构成图。 该第二终端可以用于根据基站分配的 D2D资源接收第一终端发送的 D2D通信 信号。 该第二终端可以包括: In summary, the second terminal provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources. A target resource allocated in the resource, and receiving the D2D communication signal sent by the first base station according to the target resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources. The problem of the situation that can be allocated to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 10, it shows a device configuration diagram of a second terminal according to another embodiment of the present invention. The second terminal may be configured to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station. The second terminal can include:

第二资源接收模块 601 , 用于接收基站发送的目标资源, 该目标资源为该 基站接收到第一终端发送的用于与该第二终端建立端到端 D2D通信的请求后, 在已经分配的 D2D资源中确定能够被该第一终端和该第二终端复用的可复用 资源, 并从该可复用资源中分配的资源;  The second resource receiving module 601 is configured to receive a target resource that is sent by the base station, where the target resource is that the base station receives the request sent by the first terminal to establish end-to-end D2D communication with the second terminal, Determining, among the D2D resources, a reusable resource multiplexable by the first terminal and the second terminal, and a resource allocated from the reusable resource;

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。  Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.

通信信号接收模块 602, 用于根据该目标资源接收该第一终端发送的 D2D 通信信号。  The communication signal receiving module 602 is configured to receive the D2D communication signal sent by the first terminal according to the target resource.

该第二终端还包括:  The second terminal further includes:

第二指令接收模块 603, 用于在该第二资源接收模块 601接收基站发送的 目标资源之前, 接收该基站发送的包含有第一资源的第二指令, 该第一资源为 已分配给第三终端用以接收 D2D通信信号的 D2D资源;  The second instruction receiving module 603 is configured to receive, after the second resource receiving module 601 receives the target resource sent by the base station, a second instruction that is sent by the base station and includes the first resource, where the first resource is allocated to the third resource. The terminal is configured to receive the D2D resource of the D2D communication signal;

第一监听模块 604, 用于根据该第一资源监听 D2D通信信号;  The first monitoring module 604 is configured to monitor the D2D communication signal according to the first resource;

第五检测模块 605,用于检测根据该第一资源监听到的 D2D通信信号的信 号强度, 获得第一检测结果;  The fifth detecting module 605 is configured to detect a signal strength of the D2D communication signal that is monitored according to the first resource, and obtain a first detection result;

第二响应发送模块 606,用于根据该第一检测结果向该基站发送第二响应, 该第二响应用于指示根据该第一资源监听到的 D2D通信信号的信号强度是否 小于预定强度阈值。  The second response sending module 606 is configured to send a second response to the base station according to the first detection result, where the second response is used to indicate whether a signal strength of the D2D communication signal monitored according to the first resource is less than a predetermined intensity threshold.

其中, 上述两个条件的检测顺序可以根据实际情况进行设置, 基站可以先 检测第一个条件, 再检测第二个条件; 基站也可以先检测第二个条件, 再检测 第一个条件。 The detection sequence of the above two conditions may be set according to actual conditions, the base station may detect the first condition first, and then detect the second condition; the base station may also detect the second condition before detecting The first condition.

当先检测第一个条件, 再检测第二个条件时, 基站可以通过高层信令向已 经分配有 D2D资源进行 D2D通信的各个终端发送第一指令, 各个 D2D终端 接收到该第一指令后, 在预定的时频资源上的监听第一终端发送的发现信号 Discovery信号, 并根据监听到的发现信号向基站返回第一响应, 基站根据该 第一响应判断哪些终端监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值, 并将分配给监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值的终端的 D2D资源确定为第一资源。 基站向第二终端发送包含有 该第一资源的第二指示, 第二终端接收到该第二指示后, 根据该第二资源监听 其它终端通过该第二资源发送的 D2D通信信号, 并根据监听结果向基站返回 第二响应, 基站根据该第二响应确定第二终端据以监听到的 D2D通信信号的 信号强度小于预定信号强度阈值的资源为可复用资源。  When the first condition is detected first, and then the second condition is detected, the base station may send a first instruction to each terminal that has been allocated D2D resources for performing D2D communication by using the high layer signaling, after each D2D terminal receives the first instruction, Listening to the discovery signal Discovery signal sent by the first terminal on the predetermined time-frequency resource, and returning the first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminals monitor the discovery sent by the first terminal. The signal quality of the signal is less than a predetermined quality threshold, and the D2D resource of the terminal allocated to the monitored signal of the first terminal transmitted by the monitored first terminal is determined to be the first resource. The base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.

该第二终端还包括:  The second terminal further includes:

第三指令接收模块 607, 用于在该第二资源接收模块 601接收基站发送的 目标资源之前, 接收该基站发送的包含有第二资源的第三指令, 该第二资源为 已分配给第四终端用以接收 D2D通信信号的资源;  The third instruction receiving module 607 is configured to receive, after the second resource receiving module 601 receives the target resource sent by the base station, a third instruction that is sent by the base station and includes the second resource, where the second resource is allocated to the fourth resource. a resource used by the terminal to receive the D2D communication signal;

第二监听模块 608, 用于根据该第二资源监听 D2D通信信号;  a second monitoring module 608, configured to monitor a D2D communication signal according to the second resource;

第六检测模块 609,用于检测根据该第二资源监听到的 D2D通信信号的信 号强度, 获得第二检测结果;  a sixth detecting module 609, configured to detect a signal strength of the D2D communication signal that is monitored according to the second resource, to obtain a second detection result;

第三响应发送模块 610,用于根据该第二检测结果向该基站发送第三响应, 该第三响应用于指示根据该第二资源监听到的 D2D通信信号的信号强度是否 小于预定强度阈值。  The third response sending module 610 is configured to send a third response to the base station according to the second detection result, where the third response is used to indicate whether a signal strength of the D2D communication signal monitored according to the second resource is less than a predetermined intensity threshold.

当先检测第二个条件, 再检测第一个条件时, 基站可以通过高层信令将当 前已分配给第四终端用以接收 D2D通信信号的 D2D资源作为第二资源发送给 第二终端, 第二终端根据基站发送的第二资源监听 D2D通信信号, 并根据监 听结果向基站返回第三响应, 当基站根据该第三响应确定第二终端根据第二资 源接收到的 D2D通信信号的信号强度小于预定强度阈值时, 向第四终端发送 第四指令, 第四终端接收到该指令后, 在预定的资源上监听第一终端发送的发 现信号, 并根据监听结果向基站返回第四响应, 当第四响应指示第四终端监听 到第一终端发送的发现信号的信号质量小于预定质量阈值时, 将第二资源确定 为能够被第一终端和第二终端复用的可复用资源。 需要说明的是, 第二终端向基站返回的响应中, 可以直接将监听到的 D2D 通信信号的强度发送给基站, 由基站检测信号强度是否小于预定强度阈值; 或 者, 第二终端也可以先检测信号强度是否小于预定强度阈值, 并将检测结果携 带在响应中发送给基站。 此外, 第二终端向基站返回第二响应或者第三响应时 所使用的资源可以由基站动态配置。 When the second condition is detected, and the first condition is detected, the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource, to the second terminal. The terminal monitors the D2D communication signal according to the second resource sent by the base station, and returns a third response to the base station according to the monitoring result, and the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined one. The fourth terminal sends a fourth command to the fourth terminal, and after receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result. The response determines that the fourth terminal monitors that the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and determines the second resource as a reusable resource that can be multiplexed by the first terminal and the second terminal. It should be noted that, in the response returned by the second terminal to the base station, the strength of the monitored D2D communication signal may be directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined intensity threshold; or the second terminal may also detect Whether the signal strength is less than a predetermined intensity threshold, and the detection result is carried in the response and sent to the base station. In addition, the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.

综上所述, 本发明实施例提供的第二终端, 通过接收基站在已经分配的 D2D资源中确定能够被该第一终端和该第二终端复用的可复用资源后,从可复 用资源中分配的目标资源, 并根据该目标资源接收第一基站发送的 D2D通信 信号, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较 多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资源 利用率和系统容量的目的。 请参见图 11 , 其示出了本发明又一实施例提供的第二终端的设备构成图。 该第二终端可以用于根据基站分配的 D2D资源接收第一终端发送的 D2D通信 信号。 该第二终端可以包括: 接收机 013和处理器 014;  In summary, the second terminal provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources. A target resource allocated in the resource, and receiving the D2D communication signal sent by the first base station according to the target resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources. The problem of the situation that can be allocated to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 11, a device configuration diagram of a second terminal according to another embodiment of the present invention is shown. The second terminal may be configured to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station. The second terminal may include: a receiver 013 and a processor 014;

该接收机 013, 用于接收基站发送的目标资源, 该目标资源为该基站接收 到第一终端发送的用于与该第二终端建立端到端 D2D通信的请求后, 在已经 分配的 D2D资源中确定能够被该第一终端和该第二终端复用的可复用资源, 并从该可复用资源中分配的资源;  The receiver 013 is configured to receive a target resource that is sent by the base station, where the target resource is the D2D resource that has been allocated after the base station receives the request sent by the first terminal to establish end-to-end D2D communication with the second terminal. Determining, among the reusable resources that can be multiplexed by the first terminal and the second terminal, and resources allocated from the reusable resources;

该处理器 014, 用于控制该接收机 013根据该目标资源接收该第一终端发 送的 D2D通信信号。  The processor 014 is configured to control the receiver 013 to receive the D2D communication signal sent by the first terminal according to the target resource.

综上所述, 本发明实施例提供的第二终端, 通过接收基站在已经分配的 D2D资源中确定能够被该第一终端和该第二终端复用的可复用资源后,从可复 用资源中分配的目标资源, 并根据该目标资源接收第一基站发送的 D2D通信 信号, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较 多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资源 利用率和系统容量的目的。 请参见图 12, 其示出了本发明再一实施例提供的第二终端的设备构成图。 该第二终端可以用于根据基站分配的 D2D资源接收第一终端发送的 D2D通信 信号。 该第二终端可以包括: 接收机 015和处理器 016; 该接收机 015, 用于接收基站发送的目标资源, 该目标资源为该基站接收 到第一终端发送的用于与该第二终端建立端到端 D2D通信的请求后, 在已经 分配的 D2D资源中确定能够被该第一终端和该第二终端复用的可复用资源, 并从该可复用资源中分配的资源; In summary, the second terminal provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources. A target resource allocated in the resource, and receiving the D2D communication signal sent by the first base station according to the target resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources. The problem of the situation that can be allocated to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 12, it shows a device configuration diagram of a second terminal according to still another embodiment of the present invention. The second terminal may be configured to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station. The second terminal may include: a receiver 015 and a processor 016; The receiver 015 is configured to receive a target resource that is sent by the base station, where the target resource is the D2D resource that has been allocated after the base station receives the request sent by the first terminal to establish end-to-end D2D communication with the second terminal. Determining, among the reusable resources that can be multiplexed by the first terminal and the second terminal, and resources allocated from the reusable resources;

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。  Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.

该处理器 016, 用于控制该接收机 015根据该目标资源接收该第一终端发 送的 D2D通信信号。  The processor 016 is configured to control the receiver 015 to receive the D2D communication signal sent by the first terminal according to the target resource.

该第二终端还包括: 发射机 017;  The second terminal further includes: a transmitter 017;

该接收机 015, 还用于在接收基站发送的目标资源之前, 接收该基站发送 的包含有第一资源的第二指令,该第一资源为已分配给第三终端用以接收 D2D 通信信号的 D2D资源;  The receiver 015 is further configured to: before receiving the target resource sent by the base station, receive a second command that is sent by the base station and includes the first resource, where the first resource is allocated to the third terminal for receiving the D2D communication signal. D2D resources;

该处理器 016,用于控制该接收机 015根据该第一资源监听 D2D通信信号; 该处理器 016,用于检测根据该第一资源监听到的 D2D通信信号的信号强 度, 获得第一检测结果;  The processor 016 is configured to control the receiver 015 to monitor the D2D communication signal according to the first resource. The processor 016 is configured to detect a signal strength of the D2D communication signal that is monitored according to the first resource, to obtain a first detection result. ;

该处理器 016, 用于控制该发射机 017根据该第一检测结果向该基站发送 第二响应, 该第二响应用于指示根据该第一资源监听到的 D2D通信信号的信 号强度是否小于预定强度阈值。  The processor 016 is configured to control the transmitter 017 to send a second response to the base station according to the first detection result, where the second response is used to indicate whether a signal strength of the D2D communication signal monitored according to the first resource is less than a predetermined one. Intensity threshold.

其中, 上述两个条件的检测顺序可以根据实际情况进行设置, 基站可以先 检测第一个条件, 再检测第二个条件; 基站也可以先检测第二个条件, 再检测 第一个条件。  The detection sequence of the above two conditions may be set according to actual conditions, the base station may detect the first condition first, and then detect the second condition; the base station may also detect the second condition before detecting the first condition.

当先检测第一个条件, 再检测第二个条件时, 基站可以通过高层信令向已 经分配有 D2D资源进行 D2D通信的各个终端发送第一指令, 各个 D2D终端 接收到该第一指令后, 在预定的时频资源上的监听第一终端发送的发现信号 Discovery信号, 并根据监听到的发现信号向基站返回第一响应, 基站根据该 第一响应判断哪些终端监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值, 并将分配给监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值的终端的 D2D资源确定为第一资源。 基站向第二终端发送包含有 该第一资源的第二指示, 第二终端接收到该第二指示后, 根据该第二资源监听 其它终端通过该第二资源发送的 D2D通信信号, 并根据监听结果向基站返回 第二响应, 基站根据该第二响应确定第二终端据以监听到的 D2D通信信号的 信号强度小于预定信号强度阈值的资源为可复用资源。 When the first condition is detected first, and then the second condition is detected, the base station can Each terminal that is allocated D2D resources for performing D2D communication sends a first instruction, and after receiving the first instruction, each D2D terminal monitors a discovery signal Discovery signal sent by the first terminal on a predetermined time-frequency resource, and according to the monitoring The discovery signal returns a first response to the base station, and the base station determines, according to the first response, which terminals the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and allocates the discovery to the monitored first terminal. The D2D resource of the terminal whose signal quality is less than the predetermined quality threshold is determined as the first resource. The base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.

该接收机 015, 用于在接收基站发送的目标资源之前, 接收该基站发送的 包含有第二资源的第三指令, 该第二资源为已分配给第四终端用以接收 D2D 通信信号的资源;  The receiver 015 is configured to: before receiving the target resource sent by the base station, receive a third command that is sent by the base station and includes a second resource, where the second resource is a resource that is allocated to the fourth terminal to receive the D2D communication signal. ;

该处理器 016,用于控制该接收机 015根据该第二资源监听 D2D通信信号; 该处理器 016,用于检测根据该第二资源监听到的 D2D通信信号的信号强 度, 获得第二检测结果;  The processor 016 is configured to control the receiver 015 to monitor the D2D communication signal according to the second resource. The processor 016 is configured to detect a signal strength of the D2D communication signal that is monitored according to the second resource, to obtain a second detection result. ;

该处理器 016, 用于控制该发射机 017根据该第二检测结果向该基站发送 第三响应, 该第三响应用于指示根据该第二资源监听到的 D2D通信信号的信 号强度是否小于预定强度阈值。  The processor 016 is configured to control the transmitter 017 to send a third response to the base station according to the second detection result, where the third response is used to indicate whether a signal strength of the D2D communication signal monitored according to the second resource is less than a predetermined one. Intensity threshold.

当先检测第二个条件, 再检测第一个条件时, 基站可以通过高层信令将当 前已分配给第四终端用以接收 D2D通信信号的 D2D资源作为第二资源发送给 第二终端, 第二终端根据基站发送的第二资源监听 D2D通信信号, 并根据监 听结果向基站返回第三响应, 当基站根据该第三响应确定第二终端根据第二资 源接收到的 D2D通信信号的信号强度小于预定强度阈值时, 向第四终端发送 第四指令, 第四终端接收到该指令后, 在预定的资源上监听第一终端发送的发 现信号, 并根据监听结果向基站返回第四响应, 当第四响应指示第四终端监听 到第一终端发送的发现信号的信号质量小于预定质量阈值时, 将第二资源确定 为能够被第一终端和第二终端复用的可复用资源。  When the second condition is detected, and the first condition is detected, the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource, to the second terminal. The terminal monitors the D2D communication signal according to the second resource sent by the base station, and returns a third response to the base station according to the monitoring result, and the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined one. The fourth terminal sends a fourth command to the fourth terminal, and after receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result. The response determines that the fourth terminal monitors that the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and determines the second resource as a reusable resource that can be multiplexed by the first terminal and the second terminal.

需要说明的是, 第二终端向基站返回的响应中, 可以直接将监听到的 D2D 通信信号的强度发送给基站, 由基站检测信号强度是否小于预定强度阈值; 或 者, 第二终端也可以先检测信号强度是否小于预定强度阈值, 并将检测结果携 带在响应中发送给基站。 此外, 第二终端向基站返回第二响应或者第三响应时 所使用的资源可以由基站动态配置。 It should be noted that, in the response returned by the second terminal to the base station, the strength of the monitored D2D communication signal may be directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined intensity threshold; or the second terminal may also detect Whether the signal strength is less than a predetermined intensity threshold, and the detection result is carried The band is sent to the base station in response. In addition, the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.

综上所述, 本发明实施例提供的第二终端, 通过接收基站在已经分配的 In summary, the second terminal provided by the embodiment of the present invention is already allocated by receiving the base station.

D2D资源中确定能够被该第一终端和该第二终端复用的可复用资源后,从可复 用资源中分配的目标资源, 并根据该目标资源接收第一基站发送的 D2D通信 信号, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较 多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资源 利用率和系统容量的目的。 请参见图 13, 其示出了本发明一个实施例提供的第三终端的设备构成图, 该第三终端为基站已经分配 D2D资源进行 D2D通信的终端, 该第三终端可以 用于在基站接收到第一终端发送的与第二终端建立 D2D通信的请求后, 协助 基站在已分配的 D2D资源中确定可复用资源。 该第三终端可以包括: Determining, by the D2D resource, a target resource that is allocated from the reusable resource after being multiplexed by the first terminal and the second terminal, and receiving the D2D communication signal sent by the first base station according to the target resource, In the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 13, which is a device configuration diagram of a third terminal according to an embodiment of the present invention, where the third terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the third terminal is configured to receive at the base station. After the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource. The third terminal may include:

第一指令接收模块 701 , 用于接收基站发送的第一指令, 该第一指令为该 基站在接收到第一终端发送的用于与第二终端建立 D2D通信的请求后发送的 指令;  The first instruction receiving module 701 is configured to receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request for establishing a D2D communication with the second terminal by the first terminal;

第三监听模块 702, 用于监听该第一终端发送的发现信号;  a third monitoring module 702, configured to monitor a discovery signal sent by the first terminal;

第七检测模块 703, 用于检测该第三监听模块 702监听到的该发现信号的 信号质量, 获得第三检测结果;  The seventh detecting module 703 is configured to detect a signal quality of the discovery signal that is monitored by the third monitoring module 702, and obtain a third detection result;

第一响应发送模块 704,用于根据该第三检测结果向该基站发送第一响应; 由该基站在该第一响应指示监听到的该发现信号的信号质量小于预定质量阈 值时, 向该第二终端发送包含有第一资源的第二指令, 并接收该第二终端返回 的第二响应, 并在该第二响应指示该第二终端根据该第一资源监听到的 D2D 通信信号的信号强度小于预定强度阈值时, 将该第一资源确定为可复用资源, 从该可复用资源中分配目标资源, 并将该目标资源发送给该第一终端和该第二 终端, 由该第一终端根据该目标资源发送 D2D通信信号, 并由该第二终端根 据该目标资源接收 D2D通信信号;  The first response sending module 704 is configured to send a first response to the base station according to the third detection result; when the signal quality of the discovery signal that the base station indicates that the monitored signal is less than a predetermined quality threshold, the base station The second terminal sends a second command including the first resource, and receives the second response returned by the second terminal, and indicates, in the second response, the signal strength of the D2D communication signal that the second terminal monitors according to the first resource. When the threshold is less than the predetermined strength threshold, the first resource is determined as a reusable resource, the target resource is allocated from the reusable resource, and the target resource is sent to the first terminal and the second terminal, by the first Transmitting, by the terminal, a D2D communication signal according to the target resource, and receiving, by the second terminal, the D2D communication signal according to the target resource;

其中, 该第一资源为已分配给该第三终端用以接收 D2D通信信号的 D2D 资源, 该第二指令用于指示该第二终端根据该第一资源监听 D2D通信信号; 该第二响应用于指示该第二终端根据该第一资源监听到的 D2D通信信号的信 号强度是否小于该预定强度阈值。 综上所述, 本发明实施例提供的第三终端, 通过在接收到基站发送的第一 指令后监听第一终端发送的发现信号, 并根据监听结果向基站返回第一响应, 由基站在该第一响应指示第三终端接收到的第一终端的发现信号的信号质量 小于预定质量阈值后向第二终端发送第二指令, 并在根据第二终端返回的第二 响应指示该第二终端根据第三终端用以接收 D2D通信信号的第一资源监听到 的 D2D通信信号的信号强度小于预定强度阈值时, 将第一资源确定为可复用 资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较 多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资源 利用率和系统容量的目的。 请参见图 14, 其示出了本发明另一实施例提供的第三终端的设备构成图, 该第三终端为基站已经分配 D2D资源进行 D2D通信的终端, 该第三终端可以 用于在基站接收到第一终端发送的与第二终端建立 D2D通信的请求后, 协助 基站在已分配的 D2D资源中确定可复用资源。 该第三终端可以包括: The first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold. In summary, the third terminal provided by the embodiment of the present invention listens to the discovery signal sent by the first terminal after receiving the first instruction sent by the base station, and returns a first response to the base station according to the monitoring result, where the base station is in the The first response indicates that the signal quality of the discovery signal of the first terminal received by the third terminal is less than the predetermined quality threshold, and sends a second instruction to the second terminal, and indicates that the second terminal is based on the second response returned by the second terminal. When the signal strength of the D2D communication signal that is received by the first resource that is received by the third terminal is less than the predetermined strength threshold, the first resource is determined to be a reusable resource, which solves the problem in the prior art when the base station is in coverage. When the number of terminals requesting to establish D2D communication is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 14, which is a device configuration diagram of a third terminal according to another embodiment of the present invention, where the third terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the third terminal may be used in the base station. After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource. The third terminal may include:

第一指令接收模块 801 , 用于接收基站发送的第一指令, 该第一指令为该 基站在接收到第一终端发送的用于与第二终端建立 D2D通信的请求后发送的 指令;  The first instruction receiving module 801 is configured to receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request sent by the first terminal for establishing D2D communication with the second terminal;

第三监听模块 802, 用于监听该第一终端发送的发现信号;  a third monitoring module 802, configured to monitor a discovery signal sent by the first terminal;

具体的, 支持 D2D通信的终端可以在预定的时频资源上周期性的发送发 现信号 Discovery信号, 当第一终端接收到第二终端发送的发现信号并检测可 以与该第二终端进行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通 信的请求。 第三终端接收到基站发送的第一指令后, 可以监听第一终端周期性 发送的发现信号。  Specifically, the terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the discovery signal sent by the second terminal and detects that the D2D communication can be performed with the second terminal. And the base station may send a request for D2D communication with the second terminal. After receiving the first instruction sent by the base station, the third terminal may monitor the discovery signal periodically sent by the first terminal.

第七检测模块 803, 用于检测该第三监听模块 802监听到的该发现信号的 信号质量, 获得第三检测结果;  The seventh detecting module 803 is configured to detect a signal quality of the discovery signal that is monitored by the third monitoring module 802, and obtain a third detection result;

第一终端发送的发现信号中可以携带有各个终端预先已知的参考内容, 第 三终端接收到发现信号后, 对发现信号进行解析, 并将解析获得的内容与参考 内容进行对比, 获得解析准确率, 并将该解析准确率作为接收到的第一终端发 送的发现信号的信号质量。  The discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal. After receiving the discovery signal, the third terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.

第一响应发送模块 804,用于根据该第三检测结果向该基站发送第一响应; 由该基站在该第一响应指示监听到的该发现信号的信号质量小于预定质量阈 值时, 向该第二终端发送包含有第一资源的第二指令, 并接收该第二终端返回 的第二响应, 并在该第二响应指示该第二终端根据该第一资源监听到的 D2D 通信信号的信号强度小于预定强度阈值时, 将该第一资源确定为可复用资源, 从该可复用资源中分配目标资源, 并将该目标资源发送给该第一终端和该第二 终端, 由该第一终端根据该目标资源发送 D2D通信信号, 并由该第二终端根 据该目标资源接收 D2D通信信号; The first response sending module 804 is configured to send a first response to the base station according to the third detection result; the signal quality of the discovery signal monitored by the base station in the first response is less than a predetermined quality threshold Transmitting, to the second terminal, a second instruction including the first resource, and receiving a second response returned by the second terminal, and indicating, in the second response, that the second terminal is monitored according to the first resource. When the signal strength of the D2D communication signal is less than the predetermined intensity threshold, the first resource is determined as a reusable resource, the target resource is allocated from the reusable resource, and the target resource is sent to the first terminal and the second a terminal, wherein the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource;

其中, 该第一资源为已分配给该第三终端用以接收 D2D通信信号的 D2D 资源, 该第二指令用于指示该第二终端根据该第一资源监听 D2D通信信号; 该第二响应用于指示该第二终端根据该第一资源监听到的 D2D通信信号的信 号强度是否小于该预定强度阈值。  The first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。  Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.

基站可以通过高层信令向已经分配有 D2D资源进行 D2D通信的各个终端 发送第一指令, 各个 D2D终端接收到该第一指令后, 在预定的时频资源上的 监听第一终端发送的发现信号 Discovery信号, 并根据监听到的发现信号向基 站返回第一响应,基站根据该第一响应判断哪些终端监听到的第一终端发送的 发现信号的信号质量小于预定质量阈值, 并将分配给监听到的第一终端发送的 发现信号的信号质量小于预定质量阈值的终端的 D2D 资源确定为第一资源。 基站向第二终端发送包含有该第一资源的第二指示, 第二终端接收到该第二指 示后, 根据该第二资源监听其它终端通过该第二资源发送的 D2D通信信号, 并根据监听结果向基站返回第二响应,基站根据该第二响应确定第二终端据以 监听到的 D2D通信信号的信号强度小于预定信号强度阈值的资源为可复用资 该第一响应发送模块 804, 用于向该基站发送包含有该第一响应的第一响 应帧, 该第一响应帧为在接收到该第一指令后, 根据该第一资源发送的第一个 D2D通信帧。 The base station may send, by using the high layer signaling, the first instruction to each terminal that has been allocated the D2D resource for D2D communication, and after receiving the first instruction, each D2D terminal monitors the discovery signal sent by the first terminal on the predetermined time-frequency resource. The discovery signal returns a first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminal monitors the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and allocates the sound to the monitoring. The D2D resource of the terminal whose signal quality of the discovery signal transmitted by the first terminal is less than the predetermined quality threshold is determined as the first resource. The base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is reconfigurable. The first response sending module 804 is configured to send, to the base station, a first response frame that includes the first response, where the first response frame is sent according to the first resource after receiving the first command. D2D communication frames.

其中, 已分配有 D2D资源的终端向基站返回响应时, 可以通过已分配的, 用以发送 D2D信号的资源向基站返回响应, 比如, 可以将返回给基站的响应 携带在接收到第一指令后发送的第一个 D2D通信帧中的第一个 OFDM符号 中。基站在发送第一指令后,接收根据已经分配的 D2D资源发送的第一个 D2D 通信帧,并解析接收到的 D2D通信帧中的第一个 OFDM符号,以获取各个 D2D 终端返回的第一响应。  When the terminal that has been allocated the D2D resource returns a response to the base station, the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal. For example, the response returned to the base station may be carried after receiving the first instruction. The first OFDM symbol in the first D2D communication frame sent. After transmitting the first instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the first response returned by each D2D terminal. .

需要说明的是, 第三终端向基站返回的响应中, 可以直接将监听到的第一 终端的发现信号的信号质量发送给基站, 由基站检测信号质量是否小于预定质 量阈值; 或者, 第三终端也可以先检测信号质量是否小于预定质量阈值, 并将 检测结果携带在响应中发送给基站。  It should be noted that, in the response returned by the third terminal to the base station, the signal quality of the monitored discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal quality is less than a predetermined quality threshold; or, the third terminal It is also possible to first detect whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.

综上所述, 本发明实施例提供的第三终端, 通过在接收到基站发送的第一 指令后监听第一终端发送的发现信号, 并根据监听结果向基站返回第一响应, 由基站在该第一响应指示第三终端接收到的第一终端的发现信号的信号质量 小于预定质量阈值后向第二终端发送第二指令, 并在根据第二终端返回的第二 响应指示该第二终端根据第三终端用以接收 D2D通信信号的第一资源监听到 的 D2D通信信号的信号强度小于预定强度阈值时, 将第一资源确定为可复用 资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较 多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资源 利用率和系统容量的目的。 请参见图 15, 其示出了本发明又一实施例提供的第三终端的设备构成图, 该第三终端为基站已经分配 D2D资源进行 D2D通信的终端, 该第三终端可以 用于在基站接收到第一终端发送的与第二终端建立 D2D通信的请求后, 协助 基站在已分配的 D2D资源中确定可复用资源。 该第三终端可以包括: 接收机 018、 处理器 019和发射机 020;  In summary, the third terminal provided by the embodiment of the present invention listens to the discovery signal sent by the first terminal after receiving the first instruction sent by the base station, and returns a first response to the base station according to the monitoring result, where the base station is in the The first response indicates that the signal quality of the discovery signal of the first terminal received by the third terminal is less than the predetermined quality threshold, and sends a second instruction to the second terminal, and indicates that the second terminal is based on the second response returned by the second terminal. When the signal strength of the D2D communication signal that is received by the first resource that is received by the third terminal is less than the predetermined strength threshold, the first resource is determined to be a reusable resource, which solves the problem in the prior art when the base station is in coverage. When the number of terminals requesting to establish D2D communication is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 15, which is a device configuration diagram of a third terminal according to another embodiment of the present invention, where the third terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the third terminal may be used in the base station. After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource. The third terminal may include: a receiver 018, a processor 019, and a transmitter 020;

该接收机 018, 用于接收基站发送的第一指令, 该第一指令为该基站在接 收到第一终端发送的用于与第二终端建立 D2D通信的请求后发送的指令; 该处理器 019, 用于控制该接收机 018监听该第一终端发送的发现信号; 该处理器 019, 用于检测监听到的该发现信号的信号质量, 获得第三检测 结果; The receiver 018 is configured to receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request for establishing a D2D communication with the second terminal by the first terminal; The processor 019 is configured to control the receiver 018 to monitor the discovery signal sent by the first terminal, and the processor 019 is configured to detect the monitored signal quality of the discovery signal to obtain a third detection result.

该处理器 019, 用于控制该发射机 020根据该第三检测结果向该基站发送 第一响应; 由该基站在该第一响应指示监听到的该发现信号的信号质量小于预 定质量阈值时, 向该第二终端发送包含有第一资源的第二指令, 并接收该第二 终端返回的第二响应, 并在该第二响应指示该第二终端根据该第一资源监听到 的 D2D通信信号的信号强度小于预定强度阈值时, 将该第一资源确定为可复 用资源, 从该可复用资源中分配目标资源, 并将该目标资源发送给该第一终端 和该第二终端, 由该第一终端根据该目标资源发送 D2D通信信号, 并由该第 二终端根据该目标资源接收 D2D通信信号;  The processor 019 is configured to control the transmitter 020 to send a first response to the base station according to the third detection result; when the signal quality of the discovery signal that the base station indicates that the first response indicates that the signal quality of the discovery signal is less than a predetermined quality threshold, Transmitting, to the second terminal, a second instruction including the first resource, and receiving a second response returned by the second terminal, and indicating, in the second response, the D2D communication signal that the second terminal monitors according to the first resource When the signal strength is less than the predetermined strength threshold, the first resource is determined as a reusable resource, the target resource is allocated from the reusable resource, and the target resource is sent to the first terminal and the second terminal, The first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource;

其中, 该第一资源为已分配给该第三终端用以接收 D2D通信信号的 D2D 资源, 该第二指令用于指示该第二终端根据该第一资源监听 D2D通信信号; 该第二响应用于指示该第二终端根据该第一资源监听到的 D2D通信信号的信 号强度是否小于该预定强度阈值。  The first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.

综上所述, 本发明实施例提供的第三终端, 通过在接收到基站发送的第一 指令后监听第一终端发送的发现信号, 并根据监听结果向基站返回第一响应, 由基站在该第一响应指示第三终端接收到的第一终端的发现信号的信号质量 小于预定质量阈值后向第二终端发送第二指令, 并在根据第二终端返回的第二 响应指示该第二终端根据第三终端用以接收 D2D通信信号的第一资源监听到 的 D2D通信信号的信号强度小于预定强度阈值时, 将第一资源确定为可复用 资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较 多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资源 利用率和系统容量的目的。 请参见图 16, 其示出了本发明再一实施例提供的第三终端的设备构成图, 该第三终端为基站已经分配 D2D资源进行 D2D通信的终端, 该第三终端可以 用于在基站接收到第一终端发送的与第二终端建立 D2D通信的请求后, 协助 基站在已分配的 D2D资源中确定可复用资源。 该第三终端可以包括: 接收机 021、 处理器 022和发射机 023;  In summary, the third terminal provided by the embodiment of the present invention listens to the discovery signal sent by the first terminal after receiving the first instruction sent by the base station, and returns a first response to the base station according to the monitoring result, where the base station is in the The first response indicates that the signal quality of the discovery signal of the first terminal received by the third terminal is less than the predetermined quality threshold, and sends a second instruction to the second terminal, and indicates that the second terminal is based on the second response returned by the second terminal. When the signal strength of the D2D communication signal that is received by the first resource that is received by the third terminal is less than the predetermined strength threshold, the first resource is determined to be a reusable resource, which solves the problem in the prior art when the base station is in coverage. When the number of terminals requesting to establish D2D communication is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 16, which is a device configuration diagram of a third terminal according to another embodiment of the present invention, where the third terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the third terminal may be used in the base station. After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource. The third terminal may include: a receiver 021, a processor 022, and a transmitter 023;

该接收机 021 , 用于接收基站发送的第一指令, 该第一指令为该基站在接 收到第一终端发送的用于与第二终端建立 D2D通信的请求后发送的指令; 该处理器 022, 用于控制该接收机 021监听该第一终端发送的发现信号; 具体的, 支持 D2D通信的终端可以在预定的时频资源上周期性的发送发 现信号 Discovery信号, 当第一终端接收到第二终端发送的发现信号并检测可 以与该第二终端进行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通 信的请求。 第三终端接收到基站发送的第一指令后, 可以监听第一终端周期性 发送的发现信号。 The receiver 021 is configured to receive a first instruction sent by the base station, where the first instruction is that the base station is connected Receiving an instruction sent by the first terminal to send a request for establishing a D2D communication with the second terminal; the processor 022, configured to control the receiver 021 to monitor the discovery signal sent by the first terminal; specifically, supporting the D2D The communication terminal may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource. When the first terminal receives the discovery signal sent by the second terminal and detects that the second terminal can perform D2D communication, the terminal may send the signal to the base station. A request for D2D communication with the second terminal. After receiving the first instruction sent by the base station, the third terminal may monitor the discovery signal periodically sent by the first terminal.

该处理器 022, 用于检测监听到的该发现信号的信号质量, 获得第三检测 结果;  The processor 022 is configured to detect a signal quality of the detected discovery signal, and obtain a third detection result;

第一终端发送的发现信号中可以携带有各个终端预先已知的参考内容, 第 三终端接收到发现信号后, 对发现信号进行解析, 并将解析获得的内容与参考 内容进行对比, 获得解析准确率, 并将该解析准确率作为接收到的第一终端发 送的发现信号的信号质量。  The discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal. After receiving the discovery signal, the third terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.

该处理器 022, 用于控制该发射机 023根据该第三检测结果向该基站发送 第一响应; 由该基站在该第一响应指示监听到的该发现信号的信号质量小于预 定质量阈值时, 向该第二终端发送包含有第一资源的第二指令, 并接收该第二 终端返回的第二响应, 并在该第二响应指示该第二终端根据该第一资源监听到 的 D2D通信信号的信号强度小于预定强度阈值时, 将该第一资源确定为可复 用资源, 从该可复用资源中分配目标资源, 并将该目标资源发送给该第一终端 和该第二终端, 由该第一终端根据该目标资源发送 D2D通信信号, 并由该第 二终端根据该目标资源接收 D2D通信信号;  The processor 022 is configured to control the transmitter 023 to send a first response to the base station according to the third detection result; when the signal quality of the discovery signal that the base station indicates that the first response is detected by the base station is less than a predetermined quality threshold, Transmitting, to the second terminal, a second instruction including the first resource, and receiving a second response returned by the second terminal, and indicating, in the second response, the D2D communication signal that the second terminal monitors according to the first resource When the signal strength is less than the predetermined strength threshold, the first resource is determined as a reusable resource, the target resource is allocated from the reusable resource, and the target resource is sent to the first terminal and the second terminal, The first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource;

其中, 该第一资源为已分配给该第三终端用以接收 D2D通信信号的 D2D 资源, 该第二指令用于指示该第二终端根据该第一资源监听 D2D通信信号; 该第二响应用于指示该第二终端根据该第一资源监听到的 D2D通信信号的信 号强度是否小于该预定强度阈值。  The first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。 Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the second terminal receives the D2D communication signal according to the reusable resource The intensity of the number is less than the predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.

基站可以通过高层信令向已经分配有 D2D资源进行 D2D通信的各个终端 发送第一指令, 各个 D2D终端接收到该第一指令后, 在预定的时频资源上的 监听第一终端发送的发现信号 Discovery信号, 并根据监听到的发现信号向基 站返回第一响应,基站根据该第一响应判断哪些终端监听到的第一终端发送的 发现信号的信号质量小于预定质量阈值, 并将分配给监听到的第一终端发送的 发现信号的信号质量小于预定质量阈值的终端的 D2D 资源确定为第一资源。 基站向第二终端发送包含有该第一资源的第二指示, 第二终端接收到该第二指 示后, 根据该第二资源监听其它终端通过该第二资源发送的 D2D通信信号, 并根据监听结果向基站返回第二响应,基站根据该第二响应确定第二终端据以 监听到的 D2D通信信号的信号强度小于预定信号强度阈值的资源为可复用资 源。  The base station may send, by using the high layer signaling, the first instruction to each terminal that has been allocated the D2D resource for D2D communication, and after receiving the first instruction, each D2D terminal monitors the discovery signal sent by the first terminal on the predetermined time-frequency resource. The discovery signal returns a first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminal monitors the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and allocates the sound to the monitoring. The D2D resource of the terminal whose signal quality of the discovery signal transmitted by the first terminal is less than the predetermined quality threshold is determined as the first resource. The base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.

该处理器 022, 用于控制该发射机 023向该基站发送包含有该第一响应的 第一响应帧, 该第一响应帧为在接收到该第一指令后, 根据该第一资源发送的 第一个 D2D通信帧。  The processor 022 is configured to control the transmitter 023 to send, to the base station, a first response frame that includes the first response, where the first response frame is sent according to the first resource after receiving the first command. The first D2D communication frame.

其中, 已分配有 D2D资源的终端向基站返回响应时, 可以通过已分配的, 用以发送 D2D信号的资源向基站返回响应, 比如, 可以将返回给基站的响应 携带在接收到第一指令后发送的第一个 D2D通信帧中的第一个 OFDM符号 中。基站在发送第一指令后,接收根据已经分配的 D2D资源发送的第一个 D2D 通信帧,并解析接收到的 D2D通信帧中的第一个 OFDM符号,以获取各个 D2D 终端返回的第一响应。  When the terminal that has been allocated the D2D resource returns a response to the base station, the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal. For example, the response returned to the base station may be carried after receiving the first instruction. The first OFDM symbol in the first D2D communication frame sent. After transmitting the first instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the first response returned by each D2D terminal. .

需要说明的是, 第三终端向基站返回的响应中, 可以直接将监听到的第一 终端的发现信号的信号质量发送给基站, 由基站检测信号质量是否小于预定质 量阈值; 或者, 第三终端也可以先检测信号质量是否小于预定质量阈值, 并将 检测结果携带在响应中发送给基站。  It should be noted that, in the response returned by the third terminal to the base station, the signal quality of the monitored discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal quality is less than a predetermined quality threshold; or, the third terminal It is also possible to first detect whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.

综上所述, 本发明实施例提供的第三终端, 通过在接收到基站发送的第一 指令后监听第一终端发送的发现信号, 并根据监听结果向基站返回第一响应, 由基站在该第一响应指示第三终端接收到的第一终端的发现信号的信号质量 小于预定质量阈值后向第二终端发送第二指令, 并在根据第二终端返回的第二 响应指示该第二终端根据第三终端用以接收 D2D通信信号的第一资源监听到 的 D2D通信信号的信号强度小于预定强度阈值时, 将第一资源确定为可复用 资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较 多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资源 利用率和系统容量的目的。 请参见图 17, 其示出了本发明一个实施例提供的第四终端的设备构成图, 该第四终端为基站已经分配 D2D资源进行 D2D通信的终端, 该第四终端可以 用于在基站接收到第一终端发送的与第二终端建立 D2D通信的请求后, 协助 基站在已分配的 D2D资源中确定可复用资源。 该第四终端可以包括: In summary, the third terminal provided by the embodiment of the present invention listens to the discovery signal sent by the first terminal after receiving the first instruction sent by the base station, and returns a first response to the base station according to the monitoring result. After the first response indicates that the signal quality of the discovery signal of the first terminal received by the third terminal is less than a predetermined quality threshold, the base station sends a second instruction to the second terminal, and indicates the second response returned according to the second terminal. The second terminal determines the first resource as a reusable resource according to the signal strength of the D2D communication signal that is monitored by the first resource that is used by the third terminal to receive the D2D communication signal, and solves the problem in the prior art. When there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 17, which is a device configuration diagram of a fourth terminal according to an embodiment of the present invention, where the fourth terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the fourth terminal is configured to receive at the base station. After the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource. The fourth terminal may include:

第四指令接收模块 901 , 用于接收基站发送的第四指令; 该第四指令为该 基站在接收到第一终端发送的用于与第二终端建立 D2D通信的请求, 向该第 二终端发送包含有第二资源的第三指令, 接收该第二终端返回的第三响应, 并 在该第三响应指示该第二终端根据该第二资源监听到的 D2D通信信号的信号 强度小于预定强度阈值时发送的指令; 该第二资源为已分配给该第四终端用以 接收 D2D通信信号的资源, 该第三指令用于指示该第二终端根据该第二资源 监听 D2D通信信号, 该第三响应用于指示该第二终端根据该第二资源监听到 的 D2D通信信号的信号强度是否小于该预定强度阈值;  The fourth instruction receiving module 901 is configured to receive a fourth command sent by the base station, where the fourth command is that the base station sends a request for establishing D2D communication with the second terminal by the first terminal, and sends the request to the second terminal. And a third command including the second resource, receiving the third response returned by the second terminal, and indicating, in the third response, that the signal strength of the D2D communication signal that the second terminal monitors according to the second resource is less than a predetermined intensity threshold The second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal, and the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource, the third Responsive to indicating whether a signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;

第四监听模块 902, 用于监听该第一终端发送的发现信号;  a fourth monitoring module 902, configured to monitor a discovery signal sent by the first terminal;

第八检测模块 903, 用于检测监听到的该发现信号的信号质量, 获得第四 检测结果;  The eighth detecting module 903 is configured to detect the signal quality of the detected discovery signal, and obtain a fourth detection result;

第四响应发送模块 904,用于根据该第四检测结果向该基站发送第四响应; 该第四响应用于指示监听到的该发现信号的信号质量是否小于预定质量阈值; 由该基站在该第四响应指示监听到的该发现信号的信号质量小于该预定质量 阈值时, 将该第二资源确定为可复用资源, 从该可复用资源中分配目标资源, 并将该目标资源发送给该第一终端和该第二终端, 由该第一终端根据该目标资 源发送 D2D通信信号, 并由该第二终端根据该目标资源接收 D2D通信信号。  The fourth response sending module 904 is configured to send a fourth response to the base station according to the fourth detection result, where the fourth response is used to indicate whether the monitored signal quality of the discovery signal is less than a predetermined quality threshold; When the fourth response indicates that the monitored signal quality of the discovery signal is less than the predetermined quality threshold, determining the second resource as a reusable resource, allocating the target resource from the reusable resource, and sending the target resource to The first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.

综上所述, 本发明实施例提供的第四终端, 通过接收基站在向第二终端发 送包含有第二资源的第三指令, 并根据接收的第二终端返回的第三响应指示第 二终端根据第二资源监听到的 D2D通信信号的信号强度小于预定强度阈值时 发送的第四指令后, 检测监听到的第一终端发送的发现信号的信号质量, 并根 据检测结果向基站返回第四响应, 由基站在第四响应指示第四终端监听到的第 一终端发送的发现信号的信号质量小于预定质量阈值时,将第二资源确定为可 复用资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数 量较多时, 可能出现没有空闲的 D2D 资源可供分配的情形的问题, 达到提高 资源利用率和系统容量的目的。 请参见图 18, 其示出了本发明另一实施例提供的第四终端的设备构成图, 该第四终端为基站已经分配 D2D资源进行 D2D通信的终端, 该第四终端可以 用于在基站接收到第一终端发送的与第二终端建立 D2D通信的请求后, 协助 基站在已分配的 D2D资源中确定可复用资源。 该第四终端可以包括: In summary, the fourth terminal provided by the embodiment of the present invention transmits, by the receiving base station, a third instruction including the second resource to the second terminal, and according to the third response indication returned by the received second terminal. After detecting the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold, the second terminal detects the signal quality of the detected discovery signal sent by the first terminal, and returns to the base station according to the detection result. The fourth response is determined by the base station as the reusable resource when the signal quality of the discovery signal sent by the first terminal that is detected by the fourth terminal in the fourth response is less than the predetermined quality threshold, and the prior art is When the number of terminals requesting D2D communication within the coverage of the base station is large, there may be a problem that no idle D2D resources are available for allocation, thereby achieving the purpose of improving resource utilization and system capacity. Referring to FIG. 18, it is a device configuration diagram of a fourth terminal according to another embodiment of the present invention. The fourth terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the fourth terminal may be used in the base station. After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource. The fourth terminal may include:

第四指令接收模块 1001 ,用于接收基站发送的第四指令; 该第四指令为该 基站在接收到第一终端发送的用于与第二终端建立 D2D通信的请求, 向该第 二终端发送包含有第二资源的第三指令, 接收该第二终端返回的第三响应, 并 在该第三响应指示该第二终端根据该第二资源监听到的 D2D通信信号的信号 强度小于预定强度阈值时发送的指令; 该第二资源为已分配给该第四终端用以 接收 D2D通信信号的资源, 该第三指令用于指示该第二终端根据该第二资源 监听 D2D通信信号, 该第三响应用于指示该第二终端根据该第二资源监听到 的 D2D通信信号的信号强度是否小于该预定强度阈值;  The fourth instruction receiving module 1001 is configured to receive a fourth instruction sent by the base station, where the fourth instruction is that the base station sends a request for establishing a D2D communication with the second terminal by the first terminal, and sends the request to the second terminal. And a third command including the second resource, receiving the third response returned by the second terminal, and indicating, in the third response, that the signal strength of the D2D communication signal that the second terminal monitors according to the second resource is less than a predetermined intensity threshold The second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal, and the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource, the third Responsive to indicating whether a signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。 第四监听模块 1002, 用于监听该第一终端发送的发现信号; 第八检测模块 1003,用于检测监听到的该发现信号的信号质量,获得第四 检测结果; Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal. The fourth monitoring module 1002 is configured to monitor the discovery signal sent by the first terminal, and the eighth detection module 1003 is configured to detect the signal quality of the detected discovery signal, and obtain a fourth detection result;

第四终端监听第一终端发送的发现信号并检测发现信号的信号质量的方 法与第三终端类似, 此处不再赘述。  The method for the fourth terminal to listen to the discovery signal sent by the first terminal and detect the signal quality of the discovery signal is similar to that of the third terminal, and details are not described herein again.

第四响应发送模块 1004, 用于根据该第四检测结果向该基站发送第四响 应; 该第四响应用于指示监听到的该发现信号的信号质量是否小于预定质量阈 值; 由该基站在该第四响应指示监听到的该发现信号的信号质量小于该预定质 量阈值时,将该第二资源确定为可复用资源,从该可复用资源中分配目标资源, 并将该目标资源发送给该第一终端和该第二终端, 由该第一终端根据该目标资 源发送 D2D通信信号, 并由该第二终端根据该目标资源接收 D2D通信信号。  The fourth response sending module 1004 is configured to send a fourth response to the base station according to the fourth detection result, where the fourth response is used to indicate whether the monitored signal quality of the discovery signal is less than a predetermined quality threshold; When the fourth response indicates that the monitored signal quality of the discovery signal is less than the predetermined quality threshold, determining the second resource as a reusable resource, allocating the target resource from the reusable resource, and sending the target resource to The first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.

基站可以通过高层信令将当前已分配给第四终端用以接收 D2D通信信号 的 D2D资源作为第二资源发送给第二终端, 第二终端根据基站发送的第二资 源监听 D2D通信信号, 并根据监听结果向基站返回第三响应, 当基站根据该 第三响应确定第二终端根据第二资源接收到的 D2D通信信号的信号强度小于 预定强度阈值时, 向第四终端发送第四指令, 第四终端接收到该指令后, 在预 定的资源上监听第一终端发送的发现信号, 并根据监听结果向基站返回第四响 应, 当第四响应指示第四终端监听到第一终端发送的发现信号的信号质量小于 预定质量阈值时, 将第二资源确定为能够被第一终端和第二终端复用的可复用 资源。  The base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal to the second terminal, and the second terminal monitors the D2D communication signal according to the second resource sent by the base station, and according to The monitoring result returns a third response to the base station, and when the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined intensity threshold, the fourth command is sent to the fourth terminal, and the fourth After receiving the instruction, the terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result, where the fourth response indicates that the fourth terminal monitors the discovery signal sent by the first terminal. When the signal quality is less than the predetermined quality threshold, the second resource is determined to be a reusable resource that can be multiplexed by the first terminal and the second terminal.

该第四响应发送模块 1004,用于向该基站发送包含有该第四响应的第二响 应帧, 该第二响应帧为该在接收到该第四指令后, 根据该第二资源发送的第一 个 D2D通信帧。  The fourth response sending module 1004 is configured to send, to the base station, a second response frame that includes the fourth response, where the second response frame is sent according to the second resource after receiving the fourth command. A D2D communication frame.

其中, 已分配有 D2D资源的终端向基站返回响应时, 可以通过已分配的, 用以发送 D2D信号的资源向基站返回响应, 比如, 可以将返回给基站的响应 携带在接收到第四指令后发送的第一个 D2D通信帧中的第一个 OFDM符号 中。基站在发送第四指令后,接收根据已经分配的 D2D资源发送的第一个 D2D 通信帧,并解析接收到的 D2D通信帧中的第一个 OFDM符号,以获取各个 D2D 终端返回的第四响应。  When the terminal that has been allocated the D2D resource returns a response to the base station, the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal. For example, the response returned to the base station may be carried after receiving the fourth instruction. The first OFDM symbol in the first D2D communication frame sent. After transmitting the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the fourth response returned by each D2D terminal. .

需要说明的是, 第四终端向基站返回的响应中, 可以直接将监听到的第一 终端的发现信号的信号质量发送给基站, 由基站检测信号质量是否小于预定质 量阈值; 或者, 第四终端也可以先检测信号质量是否小于预定质量阈值, 并将 检测结果携带在响应中发送给基站。 It should be noted that, in the response returned by the fourth terminal to the base station, the signal quality of the monitored discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal quality is less than the predetermined quality. The threshold may be used to detect whether the signal quality is less than a predetermined quality threshold, and the detection result is carried in the response and sent to the base station.

综上所述, 本发明实施例提供的第四终端, 通过接收基站在向第二终端发 送包含有第二资源的第三指令, 并根据接收的第二终端返回的第三响应指示第 二终端根据第二资源监听到的 D2D通信信号的信号强度小于预定强度阈值时 发送的第四指令后, 检测监听到的第一终端发送的发现信号的信号质量, 并根 据检测结果向基站返回第四响应, 由基站在第四响应指示第四终端监听到的第 一终端发送的发现信号的信号质量小于预定质量阈值时,将第二资源确定为可 复用资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数 量较多时, 可能出现没有空闲的 D2D 资源可供分配的情形的问题, 达到提高 资源利用率和系统容量的目的。 请参见图 19, 其示出了本发明又一实施例提供的第四终端的设备构成图, 该第四终端为基站已经分配 D2D资源进行 D2D通信的终端, 该第四终端可以 用于在基站接收到第一终端发送的与第二终端建立 D2D通信的请求后, 协助 基站在已分配的 D2D 资源中确定可复用资源。 该第四终端可以包括: 接收机 024、 处理器 025和发射机 026;  In summary, the fourth terminal provided by the embodiment of the present invention, by the receiving base station, sends a third instruction including the second resource to the second terminal, and indicates the second terminal according to the received third response returned by the second terminal. After detecting the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold, detecting the signal quality of the detected discovery signal sent by the first terminal, and returning the fourth response to the base station according to the detection result. And determining, by the base station, the second resource as the reusable resource when the signal quality of the discovery signal sent by the first terminal that is monitored by the fourth terminal is lower than the predetermined quality threshold, and solving the problem of the base station coverage in the prior art. When the number of terminals requesting to establish D2D communication is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 19, it is a device configuration diagram of a fourth terminal according to another embodiment of the present invention. The fourth terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the fourth terminal may be used in the base station. After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource. The fourth terminal may include: a receiver 024, a processor 025, and a transmitter 026;

该接收机 024, 用于接收基站发送的第四指令; 该第四指令为该基站在接 收到第一终端发送的用于与第二终端建立 D2D通信的请求, 向该第二终端发 送包含有第二资源的第三指令, 接收该第二终端返回的第三响应, 并在该第三 响应指示该第二终端根据该第二资源监听到的 D2D通信信号的信号强度小于 预定强度阈值时发送的指令;该第二资源为已分配给该第四终端用以接收 D2D 通信信号的资源, 该第三指令用于指示该第二终端根据该第二资源监听 D2D 通信信号, 该第三响应用于指示该第二终端根据该第二资源监听到的 D2D通 信信号的信号强度是否小于该预定强度阈值;  The receiver 024 is configured to receive a fourth command sent by the base station, where the fourth command is sent by the base station to receive a request for establishing a D2D communication with the second terminal, and send the a third instruction of the second resource, receiving a third response returned by the second terminal, and sending, when the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined intensity threshold The second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal, and the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource, where the third response is used. And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;

该处理器 025, 用于控制该接收机 024监听该第一终端发送的发现信号; 该处理器 025, 用于检测监听到的该发现信号的信号质量, 获得第四检测 结果;  The processor 025 is configured to control the receiver 024 to monitor the discovery signal sent by the first terminal. The processor 025 is configured to detect the signal quality of the detected discovery signal, and obtain a fourth detection result.

该处理器 025 , 用于控制该发射机 026根据该第四检测结果向该基站发送 第四响应; 该第四响应用于指示监听到的该发现信号的信号质量是否小于预定 质量阈值; 由该基站在该第四响应指示监听到的该发现信号的信号质量小于该 预定质量阈值时, 将该第二资源确定为可复用资源, 从该可复用资源中分配目 标资源, 并将该目标资源发送给该第一终端和该第二终端, 由该第一终端根据 该目标资源发送 D2D通信信号, 并由该第二终端根据该目标资源接收 D2D通 信信号。 The processor 025 is configured to control the transmitter 026 to send a fourth response to the base station according to the fourth detection result; the fourth response is used to indicate whether the monitored signal quality of the discovery signal is less than a predetermined quality threshold; The signal quality of the discovery signal monitored by the base station in the fourth response indication is less than the Determining, by the first terminal, the second resource, the second resource is determined as a reusable resource, the target resource is allocated from the reusable resource, and the target resource is sent to the first terminal and the second terminal, by the first terminal Transmitting a D2D communication signal according to the target resource, and receiving, by the second terminal, the D2D communication signal according to the target resource.

综上所述, 本发明实施例提供的第四终端, 通过接收基站在向第二终端发 送包含有第二资源的第三指令, 并根据接收的第二终端返回的第三响应指示第 二终端根据第二资源监听到的 D2D通信信号的信号强度小于预定强度阈值时 发送的第四指令后, 检测监听到的第一终端发送的发现信号的信号质量, 并根 据检测结果向基站返回第四响应, 由基站在第四响应指示第四终端监听到的第 一终端发送的发现信号的信号质量小于预定质量阈值时,将第二资源确定为可 复用资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数 量较多时, 可能出现没有空闲的 D2D 资源可供分配的情形的问题, 达到提高 资源利用率和系统容量的目的。 请参见图 20, 其示出了本发明再一实施例提供的第四终端的设备构成图, 该第四终端为基站已经分配 D2D资源进行 D2D通信的终端, 该第四终端可以 用于在基站接收到第一终端发送的与第二终端建立 D2D通信的请求后, 协助 基站在已分配的 D2D资源中确定可复用资源。 该第四终端可以包括: 接收机 027、 处理器 028和发射机 029;  In summary, the fourth terminal provided by the embodiment of the present invention, by the receiving base station, sends a third instruction including the second resource to the second terminal, and indicates the second terminal according to the received third response returned by the second terminal. After detecting the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold, detecting the signal quality of the detected discovery signal sent by the first terminal, and returning the fourth response to the base station according to the detection result. And determining, by the base station, the second resource as the reusable resource when the signal quality of the discovery signal sent by the first terminal that is monitored by the fourth terminal is lower than the predetermined quality threshold, and solving the problem of the base station coverage in the prior art. When the number of terminals requesting to establish D2D communication is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 20, it is a device configuration diagram of a fourth terminal according to another embodiment of the present invention. The fourth terminal is a terminal that the base station has allocated D2D resources for D2D communication, and the fourth terminal may be used in the base station. After receiving the request sent by the first terminal to establish D2D communication with the second terminal, the assistance base station determines the reusable resource in the allocated D2D resource. The fourth terminal may include: a receiver 027, a processor 028, and a transmitter 029;

该接收机 027, 用于接收基站发送的第四指令; 该第四指令为该基站在接 收到第一终端发送的用于与第二终端建立 D2D通信的请求, 向该第二终端发 送包含有第二资源的第三指令, 接收该第二终端返回的第三响应, 并在该第三 响应指示该第二终端根据该第二资源监听到的 D2D通信信号的信号强度小于 预定强度阈值时发送的指令;该第二资源为已分配给该第四终端用以接收 D2D 通信信号的资源, 该第三指令用于指示该第二终端根据该第二资源监听 D2D 通信信号, 该第三响应用于指示该第二终端根据该第二资源监听到的 D2D通 信信号的信号强度是否小于该预定强度阈值;  The receiver 027 is configured to receive a fourth command sent by the base station, where the fourth command is sent by the base station to receive a request for establishing a D2D communication with the second terminal, and send the a third instruction of the second resource, receiving a third response returned by the second terminal, and sending, when the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined intensity threshold The second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal, and the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource, where the third response is used. And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined intensity threshold;

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。 Specifically, the reusable resource needs to meet two conditions: First, the reusable resource is allocated. The signal quality of the discovery signal sent by the first terminal received by the terminal receiving the D2D communication is less than a predetermined quality threshold. Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.

该处理器 028, 用于控制该接收机 027监听该第一终端发送的发现信号; 该处理器 028, 用于检测监听到的该发现信号的信号质量, 获得第四检测 结果;  The processor 028 is configured to control the receiver 027 to monitor the discovery signal sent by the first terminal; the processor 028 is configured to detect the signal quality of the detected discovery signal, and obtain a fourth detection result;

该处理器 028, 用于控制该发射机 029根据该第四检测结果向该基站发送 第四响应; 该第四响应用于指示监听到的该发现信号的信号质量是否小于预定 质量阈值; 由该基站在该第四响应指示监听到的该发现信号的信号质量小于该 预定质量阈值时, 将该第二资源确定为可复用资源, 从该可复用资源中分配目 标资源, 并将该目标资源发送给该第一终端和该第二终端, 由该第一终端根据 该目标资源发送 D2D通信信号, 并由该第二终端根据该目标资源接收 D2D通 信信号。  The processor 028 is configured to control the transmitter 029 to send a fourth response to the base station according to the fourth detection result; the fourth response is used to indicate whether the monitored signal quality of the discovery signal is less than a predetermined quality threshold; When the fourth response indicates that the signal quality of the detected signal is less than the predetermined quality threshold, the base station determines the second resource as a reusable resource, allocates a target resource from the reusable resource, and uses the target The resource is sent to the first terminal and the second terminal, and the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.

基站可以通过高层信令将当前已分配给第四终端用以接收 D2D通信信号 的 D2D资源作为第二资源发送给第二终端, 第二终端根据基站发送的第二资 源监听 D2D通信信号, 并根据监听结果向基站返回第三响应, 当基站根据该 第三响应确定第二终端根据第二资源接收到的 D2D通信信号的信号强度小于 预定强度阈值时, 向第四终端发送第四指令, 第四终端接收到该指令后, 在预 定的资源上监听第一终端发送的发现信号, 并根据监听结果向基站返回第四响 应, 当第四响应指示第四终端监听到第一终端发送的发现信号的信号质量小于 预定质量阈值时, 将第二资源确定为能够被第一终端和第二终端复用的可复用 资源。  The base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal to the second terminal, and the second terminal monitors the D2D communication signal according to the second resource sent by the base station, and according to The monitoring result returns a third response to the base station, and when the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined intensity threshold, the fourth command is sent to the fourth terminal, and the fourth After receiving the instruction, the terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result, where the fourth response indicates that the fourth terminal monitors the discovery signal sent by the first terminal. When the signal quality is less than the predetermined quality threshold, the second resource is determined to be a reusable resource that can be multiplexed by the first terminal and the second terminal.

该处理器 028, 用于控制该发射机 029向该基站发送包含有该第四响应的 第二响应帧, 该第二响应帧为该在接收到该第四指令后, 根据该第二资源发送 的第一个 D2D通信帧。  The processor 028 is configured to control the transmitter 029 to send, to the base station, a second response frame that includes the fourth response, where the second response frame is sent according to the second resource after receiving the fourth instruction. The first D2D communication frame.

其中, 已分配有 D2D资源的终端向基站返回响应时, 可以通过已分配的, 用以发送 D2D信号的资源向基站返回响应, 比如, 可以将返回给基站的响应 携带在接收到第四指令后发送的第一个 D2D通信帧中的第一个 OFDM符号 中。基站在发送第四指令后,接收根据已经分配的 D2D资源发送的第一个 D2D 通信帧,并解析接收到的 D2D通信帧中的第一个 OFDM符号,以获取各个 D2D 终端返回的第四响应。 When the terminal that has allocated the D2D resource returns a response to the base station, the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal, for example, the response that may be returned to the base station. Carrying in the first OFDM symbol in the first D2D communication frame sent after receiving the fourth instruction. After transmitting the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the fourth response returned by each D2D terminal. .

需要说明的是, 第四终端向基站返回的响应中, 可以直接将监听到的第一 终端的发现信号的信号质量发送给基站, 由基站检测信号质量是否小于预定质 量阈值; 或者, 第四终端也可以先检测信号质量是否小于预定质量阈值, 并将 检测结果携带在响应中发送给基站。  It should be noted that, in the response returned by the fourth terminal to the base station, the signal quality of the detected first terminal's discovery signal may be directly sent to the base station, and the base station detects whether the signal quality is less than a predetermined quality threshold; or, the fourth terminal It is also possible to first detect whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.

综上所述, 本发明实施例提供的第四终端, 通过接收基站在向第二终端发 送包含有第二资源的第三指令, 并根据接收的第二终端返回的第三响应指示第 二终端根据第二资源监听到的 D2D通信信号的信号强度小于预定强度阈值时 发送的第四指令后, 检测监听到的第一终端发送的发现信号的信号质量, 并根 据检测结果向基站返回第四响应, 由基站在第四响应指示第四终端监听到的第 一终端发送的发现信号的信号质量小于预定质量阈值时,将第二资源确定为可 复用资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数 量较多时, 可能出现没有空闲的 D2D 资源可供分配的情形的问题, 达到提高 资源利用率和系统容量的目的。 请参见图 21 ,其示出了本发明一个实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 1至图 4任一所示的基站中, 为请求 D2D通信的 终端分配 D2D资源。 该资源分配方法可以包括:  In summary, the fourth terminal provided by the embodiment of the present invention, by the receiving base station, sends a third instruction including the second resource to the second terminal, and indicates the second terminal according to the received third response returned by the second terminal. After detecting the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold, detecting the signal quality of the detected discovery signal sent by the first terminal, and returning the fourth response to the base station according to the detection result. And determining, by the base station, the second resource as the reusable resource when the signal quality of the discovery signal sent by the first terminal that is monitored by the fourth terminal is lower than the predetermined quality threshold, and solving the problem of the base station coverage in the prior art. When the number of terminals requesting to establish D2D communication is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 21, a flow chart of a method for resource allocation according to an embodiment of the present invention is shown. The method can be used to allocate D2D resources for terminals requesting D2D communication in a base station as shown in any of Figures 1 to 4. The resource allocation method can include:

步骤 1101 , 接收第一终端发送的用于与第二终端建立端到端 D2D通信的 请求;  Step 1101: Receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal.

步骤 1102, 在已经分配的 D2D资源中确定能够被该第一终端和该第二终 端复用的可复用资源;  Step 1102: Determine, among the allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal.

其中, 该可复用资源为被分配该资源以接收 D2D通信的终端接收到的第 一终端发送的发现信号的信号质量小于预定质量阈值, 且第二终端据以接收到 的 D2D通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时 频资源。  The reusable resource is a signal that the signal quality of the discovery signal sent by the first terminal that is received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold, and the second terminal receives the received D2D communication signal. A resource whose strength is less than a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

步骤 1103, 从该可复用资源中分配目标资源;  Step 1103: Allocate a target resource from the reusable resource.

步骤 1104,将该目标资源发送给该第一终端和该第二终端, 由该第一终端 根据该目标资源发送 D2D通信信号,并由该第二终端根据该目标资源接收 D2D 通信信号。 Step 1104: Send the target resource to the first terminal and the second terminal, by using the first terminal. Transmitting a D2D communication signal according to the target resource, and receiving, by the second terminal, the D2D communication signal according to the target resource.

综上所述, 本发明实施例提供的资源分配方法, 通过在接收到第一终端发 送的, 与第二终端建立端到端 D2D通信的请求后, 在已经分配的 D2D资源中 确定第一终端和第二终端可复用的资源, 并从可复用资源中分配目标资源, 解 决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可 能出现没有空闲的 D2D 资源可供分配的情形的问题, 达到提高资源利用率和 系统容量的目的。 请参见图 22,其示出了本发明另一实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 1至图 4任一所示的基站中, 为请求 D2D通信的 第一终端分配向第二终端发送 D2D通信信号的 D2D资源。 该资源分配方法可 以包括:  In summary, the resource allocation method provided by the embodiment of the present invention determines the first terminal in the already allocated D2D resource after receiving the request for establishing end-to-end D2D communication with the second terminal, which is sent by the first terminal. The resource that can be multiplexed with the second terminal, and the target resource is allocated from the reusable resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources. The problem of the situation for distribution, to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 22, a flow chart of a method for resource allocation according to another embodiment of the present invention is shown. The method can be used to allocate, in a base station as shown in any of Figures 1 to 4, a D2D resource for transmitting a D2D communication signal to a second terminal for a first terminal requesting D2D communication. The resource allocation method can include:

步骤 1201 , 接收第一终端发送的用于与第二终端建立端到端 D2D通信的 请求;  Step 1201: Receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal.

支持 D2D 通信的终端可以在预定的时频资源上周期性的发送发现信号 Discovery信号, 当第一终端接收到第二终端发送的发现信号并检测可以与该 第二终端进行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通信的请 求。  The terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource. When the first terminal receives the discovery signal sent by the second terminal and detects that the second terminal can perform D2D communication, the terminal may The base station transmits a request for D2D communication with the second terminal.

步骤 1202, 在已经分配的 D2D资源中确定能够被该第一终端和该第二终 端复用的可复用资源;  Step 1202: Determine, in the already allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal.

其中, 该可复用资源为被分配该资源以接收 D2D通信的终端接收到的第 一终端发送的发现信号的信号质量小于预定质量阈值, 且第二终端据以接收到 的 D2D通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时 频资源。  The reusable resource is a signal that the signal quality of the discovery signal sent by the first terminal that is received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold, and the second terminal receives the received D2D communication signal. A resource whose strength is less than a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。 Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not Will have an effect; meet the second condition to indicate that A D2D communication signal transmitted by another terminal other than a terminal using the reusable resource does not affect the second terminal.

第一终端发送的发现信号中可以携带有各个终端预先已知的参考内容, 各 个 D2D终端接收到发现信号后, 对发现信号进行解析, 并将解析获得的内容 与参考内容进行对比, 获得解析准确率, 并将该解析准确率作为接收到的第一 终端发送的发现信号的信号质量。  The discovery signal sent by the first terminal may carry the reference content known in advance by each terminal. After receiving the discovery signal, each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.

其中, 第一终端发送的发现信号可能受到其它终端发送的发现信号的干 扰。 接收端接收到的是第一终端发送的发现信号与干扰信号的混合信号, 如果 以信号强度为依据, 接收端只能测出这个混合信号的强度, 并不能代表第一终 端的发现信号的信号强度, 因此, 本发明实施例根据第一终端的发现信号的信 号质量来设定判断阈值, 能够提高判断的准确性。  The discovery signal sent by the first terminal may be interfered by the discovery signal sent by other terminals. The receiving end receives the mixed signal of the discovery signal and the interference signal sent by the first terminal. If based on the signal strength, the receiving end can only measure the strength of the mixed signal, and cannot represent the signal of the first terminal. Intensity, therefore, the embodiment of the present invention sets the determination threshold according to the signal quality of the discovery signal of the first terminal, and can improve the accuracy of the determination.

而第二终端在检测根据已分配的 D2D资源接收到的信号的干扰时, 需要 检测的是在某一时频资源上的总干扰, 不需要区分该干扰来自于哪些 D2D终 端, 因此, 只需要检测根据已分配的 D2D资源接收到的通信信号的信号强度 即可。  When the second terminal detects the interference of the signal received according to the allocated D2D resource, it needs to detect the total interference on a certain time-frequency resource, and does not need to distinguish which D2D terminal the interference comes from, therefore, only need to detect The signal strength of the communication signal received according to the allocated D2D resource may be used.

其中, 上述两个条件的检测顺序可以根据实际情况进行设置, 可以先检测 第一个条件, 再检测第二个条件; 也可以先检测第二个条件, 再检测第一个条 件。  The detection order of the above two conditions may be set according to actual conditions, and the first condition may be detected first, and then the second condition may be detected; or the second condition may be detected first, and then the first condition is detected.

当先检测第一个条件, 再检测第二个条件时, 基站可以通过高层信令向已 经分配有 D2D资源进行 D2D通信的各个终端发送第一指令, 各个 D2D终端 接收到该第一指令后, 在预定的时频资源上的监听第一终端发送的发现信号 Discovery信号, 并根据监听到的发现信号向基站返回第一响应, 基站根据该 第一响应判断哪些终端监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值, 并将分配给监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值的终端的 D2D资源确定为第一资源。 基站向第二终端发送包含有 该第一资源的第二指示, 第二终端接收到该第二指示后, 根据该第二资源监听 其它终端通过该第二资源发送的 D2D通信信号, 并根据监听结果向基站返回 第二响应, 基站根据该第二响应确定第二终端据以监听到的 D2D通信信号的 信号强度小于预定信号强度阈值的资源为可复用资源。  When the first condition is detected first, and then the second condition is detected, the base station may send a first instruction to each terminal that has been allocated D2D resources for performing D2D communication by using the high layer signaling, after each D2D terminal receives the first instruction, Listening to the discovery signal Discovery signal sent by the first terminal on the predetermined time-frequency resource, and returning the first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminals monitor the discovery sent by the first terminal. The signal quality of the signal is less than a predetermined quality threshold, and the D2D resource of the terminal allocated to the monitored signal of the first terminal transmitted by the monitored first terminal is determined to be the first resource. The base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.

需要说明的是, D2D终端或者第二终端向基站返回的响应中, 可以直接将 监听到的 D2D通信信号的强度或者第一终端的发现信号的信号质量发送给基 站, 由基站检测信号强度是否小于预定强度阈值或者信号质量是否小于预定质 量阈值; 或者, D2D终端或者第二终端也可以先检测信号强度是否小于预定强 度阈值或者信号质量是否小于预定质量阈值, 并将检测结果携带在响应中发送 给基站。 It should be noted that, in the response returned by the D2D terminal or the second terminal to the base station, the strength of the monitored D2D communication signal or the signal quality of the discovery signal of the first terminal may be directly sent to the base. a station, the base station detects whether the signal strength is less than a predetermined intensity threshold or whether the signal quality is less than a predetermined quality threshold; or the D2D terminal or the second terminal may first detect whether the signal strength is less than a predetermined intensity threshold or whether the signal quality is less than a predetermined quality threshold, and The detection result is carried in the response and sent to the base station.

当先检测第二个条件, 再检测第一个条件时, 基站可以通过高层信令将当 前已分配给第四终端用以接收 D2D通信信号的 D2D资源作为第二资源发送给 第二终端, 第二终端根据基站发送的第二资源监听 D2D通信信号, 并根据监 听结果向基站返回第三响应, 当基站根据该第三响应确定第二终端根据第二资 源接收到的 D2D通信信号的信号强度小于预定强度阈值时, 向第四终端发送 第四指令, 第四终端接收到该指令后, 在预定的资源上监听第一终端发送的发 现信号, 并根据监听结果向基站返回第四响应, 当第四响应指示第四终端监听 到第一终端发送的发现信号的信号质量小于预定质量阈值时, 将第二资源确定 为能够被第一终端和第二终端复用的可复用资源。  When the second condition is detected, and the first condition is detected, the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource, to the second terminal. The terminal monitors the D2D communication signal according to the second resource sent by the base station, and returns a third response to the base station according to the monitoring result, and the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined one. The fourth terminal sends a fourth command to the fourth terminal, and after receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result. The response determines that the fourth terminal monitors that the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and determines the second resource as a reusable resource that can be multiplexed by the first terminal and the second terminal.

其中, 已分配有 D2D资源的终端向基站返回响应时, 可以通过已分配的, 用以发送 D2D信号的资源向基站返回响应, 比如, 可以将返回给基站的响应 携带在接收到第一指令或者第四指令后发送的第一个 D2D通信帧中的第一个 OFDM 符号中。 基站在发送第一指令或者第四指令后, 接收根据已经分配的 D2D资源发送的第一个 D2D通信帧,并解析接收到的 D2D通信帧中的第一个 OFDM符号, 以获取各个 D2D终端返回的第一响应或者第四响应。  When the terminal that has been allocated the D2D resource returns a response to the base station, the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal. For example, the response returned to the base station may be carried by receiving the first instruction or The first OFDM symbol in the first D2D communication frame transmitted after the fourth instruction. After transmitting the first instruction or the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the return of each D2D terminal. The first response or the fourth response.

此外, 需要说明的是, 第二终端向基站返回第二响应或者第三响应时所使 用的资源可以由基站动态配置。  In addition, it should be noted that the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.

步骤 1203, 从该可复用资源中分配目标资源;  Step 1203: Allocate a target resource from the reusable resource.

基站可以从所有符合条件的可复用资源中分配部分或者全部资源作为目 标资源。  The base station can allocate some or all of the resources from all eligible reusable resources as target resources.

步骤 1204, 检测目标资源是否充足; 若是, 进入步骤 1207, 否则, 进入 步骤 1205;  Step 1204, detecting whether the target resource is sufficient; if yes, proceeding to step 1207, otherwise, proceeding to step 1205;

步骤 1205,检测是否存在空闲的 D2D资源; 若是, 进入步骤 1206, 否贝' J , 进入步骤 1207;  Step 1205, detecting whether there is an idle D2D resource; if yes, proceeding to step 1206, no, and proceeding to step 1207;

步骤 1206 , 从空闲的 D2D资源中分配目标资源;  Step 1206, allocating target resources from idle D2D resources;

基站可以结合实际情况, 从空闲的 D2D 资源中分配部分资源或者全部资 源作为目标资源。 在分配 D2D资源时, 基站可以考虑先复用已分配的 D2D资源, 在没有可 供复用的 D2D资源时, 再分配空闲的 D2D资源。 The base station can allocate part or all resources from the idle D2D resources as the target resources according to the actual situation. When allocating D2D resources, the base station may consider multiplexing the allocated D2D resources first, and then allocating the idle D2D resources when there is no D2D resources available for multiplexing.

比如, 基站从可复用资源中分配目标资源之后, 可以检测目标资源是否够 用, 若够用, 则不再分配空闲的 D2D资源, 否则, 从空闲的 D2D资源中进一 步分配目标资源。  For example, after the base station allocates the target resource from the reusable resources, it can detect whether the target resource is sufficient. If sufficient, the idle D2D resource is no longer allocated. Otherwise, the target resource is further allocated from the idle D2D resource.

步骤 1207,将该目标资源发送给该第一终端和该第二终端, 由该第一终端 根据该目标资源发送 D2D通信信号,并由该第二终端根据该目标资源接收 D2D 通信信号。  Step 1207: The target resource is sent to the first terminal and the second terminal, and the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.

综上所述, 本发明实施例提供的资源分配方法, 通过在接收到第一终端发 送的, 与第二终端建立端到端 D2D通信的请求后, 在已经分配的 D2D资源中 确定第一终端和第二终端可复用的资源, 并从可复用资源中分配目标资源, 解 决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可 能出现没有空闲的 D2D 资源可供分配的情形的问题, 达到提高资源利用率和 系统容量的目的。 请参见图 23,其示出了本发明又一实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 1至图 4任一所示的基站中, 为请求 D2D通信的 第一终端分配向第二终端发送 D2D通信信号的 D2D资源。 该资源分配方法可 以包括:  In summary, the resource allocation method provided by the embodiment of the present invention determines the first terminal in the already allocated D2D resource after receiving the request for establishing end-to-end D2D communication with the second terminal, which is sent by the first terminal. The resource that can be multiplexed with the second terminal, and the target resource is allocated from the reusable resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources. The problem of the situation for distribution, to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 23, a flow chart of a method for resource allocation according to another embodiment of the present invention is shown. The method can be used to allocate, in a base station as shown in any of Figures 1 to 4, a D2D resource for transmitting a D2D communication signal to a second terminal for a first terminal requesting D2D communication. The resource allocation method can include:

步骤 1301 , 接收第一终端发送的用于与第二终端建立端到端 D2D通信的 请求;  Step 1301: Receive a request sent by the first terminal to establish end-to-end D2D communication with the second terminal.

支持 D2D 通信的终端可以在预定的时频资源上周期性的发送发现信号 Discovery信号, 当第一终端接收到第二终端发送的发现信号并检测可以与该 第二终端进行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通信的请 求。  The terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource. When the first terminal receives the discovery signal sent by the second terminal and detects that the second terminal can perform D2D communication, the terminal may The base station transmits a request for D2D communication with the second terminal.

步骤 1302,检测是否存在空闲的 D2D资源; 若是, 进入步骤 1303, 否贝' J , 进入步骤 1305;  Step 1302, detecting whether there is an idle D2D resource; if yes, proceeding to step 1303, no, and proceeding to step 1305;

步骤 1303, 从空闲的 D2D资源中分配目标资源;  Step 1303: Allocate a target resource from an idle D2D resource.

基站可以结合实际情况, 从空闲的 D2D 资源中分配部分资源或者全部资 源作为目标资源。  The base station can allocate some resources or all resources as the target resources from the idle D2D resources according to the actual situation.

步骤 1304, 检测目标资源是否充足; 若是, 进入步骤 1307, 否则, 进入 步骤 1305; Step 1304, detecting whether the target resource is sufficient; if yes, proceeding to step 1307, otherwise, entering Step 1305;

步骤 1305, 在已经分配的 D2D资源中确定能够被该第一终端和该第二终 端复用的可复用资源;  Step 1305: Determine, among the allocated D2D resources, a reusable resource that can be multiplexed by the first terminal and the second terminal.

其中, 该可复用资源为被分配该资源以接收 D2D通信的终端接收到的第 一终端发送的发现信号的信号质量小于预定质量阈值, 且第二终端据以接收到 的 D2D通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时 频资源。  The reusable resource is a signal that the signal quality of the discovery signal sent by the first terminal that is received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold, and the second terminal receives the received D2D communication signal. A resource whose strength is less than a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。  Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.

第一终端发送的发现信号中可以携带有各个终端预先已知的参考内容, 各 个 D2D终端接收到发现信号后, 对发现信号进行解析, 并将解析获得的内容 与参考内容进行对比, 获得解析准确率, 并将该解析准确率作为接收到的第一 终端发送的发现信号的信号质量。  The discovery signal sent by the first terminal may carry the reference content known in advance by each terminal. After receiving the discovery signal, each D2D terminal parses the discovery signal, and compares the content obtained by the analysis with the reference content to obtain an accurate analysis. Rate, and the resolution accuracy is taken as the signal quality of the received discovery signal transmitted by the first terminal.

其中, 第一终端发送的发现信号可能受到其它终端发送的发现信号的干 扰。 接收端接收到的是第一终端发送的发现信号与干扰信号的混合信号, 如果 以信号强度为依据, 接收端只能测出这个混合信号的强度, 并不能代表第一终 端的发现信号的信号强度, 因此, 本发明实施例根据第一终端的发现信号的信 号质量来设定判断阈值, 能够提高判断的准确性。  The discovery signal sent by the first terminal may be interfered by the discovery signal sent by other terminals. The receiving end receives the mixed signal of the discovery signal and the interference signal sent by the first terminal. If based on the signal strength, the receiving end can only measure the strength of the mixed signal, and cannot represent the signal of the first terminal. Intensity, therefore, the embodiment of the present invention sets the determination threshold according to the signal quality of the discovery signal of the first terminal, and can improve the accuracy of the determination.

而第二终端在检测根据已分配的 D2D资源接收到的信号的干扰时, 需要 检测的是在某一时频资源上的总干扰, 不需要区分该干扰来自于哪些 D2D终 端, 因此, 只需要检测根据已分配的 D2D资源接收到的通信信号的信号强度 即可。  When the second terminal detects the interference of the signal received according to the allocated D2D resource, it needs to detect the total interference on a certain time-frequency resource, and does not need to distinguish which D2D terminal the interference comes from, therefore, only need to detect The signal strength of the communication signal received according to the allocated D2D resource may be used.

其中, 上述两个条件的检测顺序可以根据实际情况进行设置, 可以先检测 第一个条件, 再检测第二个条件; 也可以先检测第二个条件, 再检测第一个条 件。 当先检测第一个条件, 再检测第二个条件时, 基站可以通过高层信令向已 经分配有 D2D资源进行 D2D通信的各个终端发送第一指令, 各个 D2D终端 接收到该第一指令后, 在预定的时频资源上的监听第一终端发送的发现信号 Discovery信号, 并根据监听到的发现信号向基站返回第一响应, 基站根据该 第一响应判断哪些终端监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值, 并将分配给监听到的第一终端发送的发现信号的信号质量小于预 定质量阈值的终端的 D2D资源确定为第一资源。 基站向第二终端发送包含有 该第一资源的第二指示, 第二终端接收到该第二指示后, 根据该第二资源监听 其它终端通过该第二资源发送的 D2D通信信号, 并根据监听结果向基站返回 第二响应, 基站根据该第二响应确定第二终端据以监听到的 D2D通信信号的 信号强度小于预定信号强度阈值的资源为可复用资源。 The detection order of the above two conditions may be set according to actual conditions, and the first condition may be detected first, and then the second condition may be detected; or the second condition may be detected first, and then the first condition is detected. When the first condition is detected first, and then the second condition is detected, the base station may send a first instruction to each terminal that has been allocated D2D resources for performing D2D communication by using the high layer signaling, after each D2D terminal receives the first instruction, Listening to the discovery signal Discovery signal sent by the first terminal on the predetermined time-frequency resource, and returning the first response to the base station according to the monitored discovery signal, and the base station determines, according to the first response, which terminals monitor the discovery sent by the first terminal. The signal quality of the signal is less than a predetermined quality threshold, and the D2D resource of the terminal allocated to the monitored signal of the first terminal transmitted by the monitored first terminal is determined to be the first resource. The base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.

需要说明的是, D2D终端或者第二终端向基站返回的响应中, 可以直接将 监听到的 D2D通信信号的强度或者第一终端的发现信号的信号质量发送给基 站, 由基站检测信号强度是否小于预定强度阈值或者信号质量是否小于预定质 量阈值; 或者, D2D终端或者第二终端也可以先检测信号强度是否小于预定强 度阈值或者信号质量是否小于预定质量阈值, 并将检测结果携带在响应中发送 给基站。  It should be noted that, in the response returned by the D2D terminal or the second terminal to the base station, the strength of the monitored D2D communication signal or the signal quality of the discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal strength is less than Whether the predetermined intensity threshold or the signal quality is less than the predetermined quality threshold; or the D2D terminal or the second terminal may first detect whether the signal strength is less than a predetermined intensity threshold or whether the signal quality is less than a predetermined quality threshold, and the detection result is carried in the response and sent to the response Base station.

当先检测第二个条件, 再检测第一个条件时, 基站可以通过高层信令将当 前已分配给第四终端用以接收 D2D通信信号的 D2D资源作为第二资源发送给 第二终端, 第二终端根据基站发送的第二资源监听 D2D通信信号, 并根据监 听结果向基站返回第三响应, 当基站根据该第三响应确定第二终端根据第二资 源接收到的 D2D通信信号的信号强度小于预定强度阈值时, 向第四终端发送 第四指令, 第四终端接收到该指令后, 在预定的资源上监听第一终端发送的发 现信号, 并根据监听结果向基站返回第四响应, 当第四响应指示第四终端监听 到第一终端发送的发现信号的信号质量小于预定质量阈值时, 将第二资源确定 为能够被第一终端和第二终端复用的可复用资源。  When the second condition is detected, and the first condition is detected, the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource, to the second terminal. The terminal monitors the D2D communication signal according to the second resource sent by the base station, and returns a third response to the base station according to the monitoring result, and the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined one. The fourth terminal sends a fourth command to the fourth terminal, and after receiving the command, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result. The response determines that the fourth terminal monitors that the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and determines the second resource as a reusable resource that can be multiplexed by the first terminal and the second terminal.

其中, 已分配有 D2D资源的终端向基站返回响应时, 可以通过已分配的, 用以发送 D2D信号的资源向基站返回响应, 比如, 可以将返回给基站的响应 携带在接收到第一指令或者第四指令后发送的第一个 D2D通信帧中的第一个 OFDM 符号中。 基站在发送第一指令或者第四指令后, 接收根据已经分配的 D2D资源发送的第一个 D2D通信帧,并解析接收到的 D2D通信帧中的第一个 OFDM符号, 以获取各个 D2D终端返回的第一响应或者第四响应。 此外, 需要说明的是, 第二终端向基站返回第二响应或者第三响应时所使 用的资源可以由基站动态配置。 When the terminal that has been allocated the D2D resource returns a response to the base station, the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal. For example, the response returned to the base station may be carried by receiving the first instruction or The first OFDM symbol in the first D2D communication frame transmitted after the fourth instruction. After transmitting the first instruction or the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first one of the received D2D communication frames. OFDM symbols to obtain a first response or a fourth response returned by each D2D terminal. In addition, it should be noted that the resources used by the second terminal to return the second response or the third response to the base station may be dynamically configured by the base station.

步骤 1306, 从该可复用资源中分配目标资源;  Step 1306: Allocate a target resource from the reusable resource.

基站可以从所有符合条件的可复用资源中分配部分或者全部资源作为目 标资源。  The base station can allocate some or all of the resources from all eligible reusable resources as target resources.

在分配 D2D资源时, 基站可以考虑先分配空闲的 D2D资源, 在没有空闲 的 D2D资源可供分配时, 再考虑复用已分配的 D2D资源  When allocating D2D resources, the base station may consider allocating idle D2D resources first, and then considering multiplexing the allocated D2D resources when there are no idle D2D resources available for allocation.

基站可以先检测是否有空闲的 D2D资源, 若有, 则从空闲的 D2D资源中 分配目标资源, 若从空闲的 D2D资源中分配目标资源后, 该目标资源依然不 足, 则进一步确定可复用资源, 并从可复用的资源中分配目标资源。 此外, 若 从空闲的 D2D 资源中分配的目标资源已经足够, 则基站可以不进行后续确定 可复用资源的步骤, 从而节约系统资源, 减少消耗。  The base station may first detect whether there is an idle D2D resource, and if yes, allocate the target resource from the idle D2D resource. If the target resource is still insufficient after allocating the target resource from the idle D2D resource, the reusable resource is further determined. And allocate target resources from reusable resources. In addition, if the target resource allocated from the idle D2D resource is sufficient, the base station may not perform the subsequent step of determining the reusable resource, thereby saving system resources and reducing consumption.

此外, 基站在向第二终端发送第三指令时, 可以将已分配的 D2D资源和 空闲的 D2D 资源全部发送给第二终端, 第二终端根据全部的 D2D 资源监听 D2D通信信号, 并根据监听结果向基站返回第三响应,基站确定第二终端据以 接收到的 D2D通信信号的信号强度小于预定强度阈值的资源中, 是否存在空 闲的资源, 若是, 则优先从空闲的资源中分配目标资源, 若没有空闲的资源或 者空闲的资源不足, 则基站进一步执行向第四终端发送第四指令的步骤。  In addition, when the third command is sent to the second terminal, the base station may send all the allocated D2D resources and the idle D2D resources to the second terminal, and the second terminal monitors the D2D communication signal according to all the D2D resources, and according to the monitoring result. Returning a third response to the base station, the base station determining whether there is an idle resource in the resource whose signal strength of the D2D communication signal received by the second terminal is less than a predetermined intensity threshold, and if yes, preferentially allocating the target resource from the idle resource. If there are no idle resources or insufficient idle resources, the base station further performs the step of transmitting a fourth instruction to the fourth terminal.

步骤 1307,将该目标资源发送给该第一终端和该第二终端, 由该第一终端 根据该目标资源发送 D2D通信信号,并由该第二终端根据该目标资源接收 D2D 通信信号。  Step 1307: The target resource is sent to the first terminal and the second terminal, and the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.

综上所述, 本发明实施例提供的资源分配方法, 通过在接收到第一终端发 送的, 与第二终端建立端到端 D2D通信的请求后, 在已经分配的 D2D资源中 确定第一终端和第二终端可复用的资源, 并从可复用资源中分配目标资源, 解 决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可 能出现没有空闲的 D2D 资源可供分配的情形的问题, 达到提高资源利用率和 系统容量的目的。 请参见图 24,其示出了本发明一个实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 5至图 8任一所示的第一终端中, 向基站请求用于 向第二终端发送 D2D通信信号的 D2D资源。 该资源分配方法可以包括: 步骤 1401 , 向基站发送用于与第二终端建立端到端 D2D通信的请求, 该 请求用于指示该基站在已经分配的 D2D 资源中确定能够被该第一终端和该第 二终端复用的可复用资源, 并从该可复用资源中分配目标资源; In summary, the resource allocation method provided by the embodiment of the present invention determines the first terminal in the already allocated D2D resource after receiving the request for establishing end-to-end D2D communication with the second terminal, which is sent by the first terminal. The resource that can be multiplexed with the second terminal, and the target resource is allocated from the reusable resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources. The problem of the situation for distribution, to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 24, a flowchart of a method for resource allocation according to an embodiment of the present invention is shown. The method can be used in a first terminal as shown in any one of FIG. 5 to FIG. The D2D resource of the D2D communication signal is transmitted to the second terminal. The resource allocation method may include: Step 1401: Send, to the base station, a request for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines, in the already allocated D2D resource, that the first terminal and the The second terminal multiplexes the reusable resources, and allocates the target resources from the reusable resources;

步骤 1402, 接收该基站发送的目标资源;  Step 1402: Receive a target resource sent by the base station.

步骤 1403, 根据该目标资源向该第二终端发送 D2D通信信号。  Step 1403: Send a D2D communication signal to the second terminal according to the target resource.

综上所述, 本发明实施例提供的资源分配方法, 通过向基站发送与第二终 端建立 D2D通信的请求, 由基站从已分配的 D2D资源中分配能够被第一终端 和第二终端复用的资源, 并根据基站分配的资源发送 D2D通信信号, 解决了 现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出 现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资源利用率和系统 容量的目的。 请参见图 25,其示出了本发明另一实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 5至图 8任一所示的第一终端中, 向基站请求用于 向第二终端发送 D2D通信信号的 D2D资源。 该资源分配方法可以包括:  In summary, the resource allocation method provided by the embodiment of the present invention, by transmitting a request for establishing D2D communication with a second terminal to a base station, is allocated by the base station from the allocated D2D resources and can be reused by the first terminal and the second terminal. And transmitting the D2D communication signal according to the resource allocated by the base station, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resource is available for allocation. Achieve the goal of improving resource utilization and system capacity. Referring to FIG. 25, a flow chart of a method for resource allocation according to another embodiment of the present invention is shown. The method can be used to request a D2D resource for transmitting a D2D communication signal to a second terminal to a base station in the first terminal as shown in any of Figures 5-8. The resource allocation method can include:

步骤 1501 , 周期性发送发现信号;  Step 1501, periodically sending a discovery signal;

支持 D2D 通信的终端可以在预定的时频资源上周期性的发送发现信号 Discovery信号。  A terminal supporting D2D communication can periodically transmit a discovery signal Discovery signal on a predetermined time-frequency resource.

步骤 1502, 向基站发送用于与第二终端建立端到端 D2D通信的请求; 该请求用于指示该基站在已经分配的 D2D资源中确定能够被该第一终端 和该第二终端复用的可复用资源, 并从该可复用资源中分配目标资源。  Step 1502: Send, to the base station, a request for establishing end-to-end D2D communication with the second terminal. The request is used to indicate that the base station determines, in the already allocated D2D resource, that the first terminal and the second terminal are multiplexed. The resources can be reused and the target resources are allocated from the reusable resources.

当第一终端接收到第二终端发送的发现信号并检测可以与该第二终端进 行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通信的请求。  When the first terminal receives the discovery signal sent by the second terminal and detects that D2D communication can be performed with the second terminal, the base station may send a request for D2D communication with the second terminal.

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。 其中, 基站确定可复用资源的具体方法请参见图 2所示的基站对 应实施例中的描述, 本实施例不再赘述。 Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal passes the recoverable When the D2D communication signal is sent to the second terminal by using the resource, the terminal that receives the D2D communication signal using the reusable resource other than the second terminal has no influence; the second condition is satisfied to indicate that the first terminal is The D2D communication signal sent by the other terminal using the reusable resource has no influence on the second terminal. For a specific method for the base station to determine the reusable resource, refer to the description in the corresponding embodiment of the base station shown in FIG. 2, which is not described in this embodiment.

需要说明的是, 第一终端发送的发现信号中可以携带有各个终端预先已知 的参考内容, 各个 D2D终端接收到发现信号后, 对发现信号进行解析, 并将 解析获得的内容与参考内容进行对比, 获得解析准确率, 并将该解析准确率作 为接收到的第一终端发送的发现信号的信号质量,后续根据该第一终端发送的 发现信号的信号质量协助基站确定可复用资源, 具体请参见图 2所示的基站对 应实施例中的描述, 本实施例不再赘述。  It should be noted that the discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal, and after receiving the discovery signal, each D2D terminal parses the discovery signal, and performs the parsed content and the reference content. Comparing, obtaining the parsing accuracy rate, and using the parsing accuracy rate as the signal quality of the received discovery signal sent by the first terminal, and subsequently assisting the base station to determine the reusable resource according to the signal quality of the discovery signal sent by the first terminal, specifically Please refer to the description in the corresponding embodiment of the base station shown in FIG. 2, which is not described in this embodiment.

步骤 1503, 接收该基站发送的目标资源;  Step 1503: Receive a target resource sent by the base station.

步骤 1504, 根据该目标资源向该第二终端发送 D2D通信信号。  Step 1504: Send a D2D communication signal to the second terminal according to the target resource.

综上所述, 本发明实施例提供的资源分配方法, 通过向基站发送与第二终 端建立 D2D通信的请求, 由基站从已分配的 D2D资源中分配能够被第一终端 和第二终端复用的资源, 并根据基站分配的资源发送 D2D通信信号, 解决了 现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出 现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资源利用率和系统 容量的目的。 请参见图 26,其示出了本发明一个实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 9至图 12任一所示的第二终端中, 根据基站分配 的 D2D资源接收第一终端发送的 D2D通信信号。 该资源分配方法可以包括: 步骤 1601 ,接收基站发送的目标资源,该目标资源为该基站接收到第一终 端发送的用于与该第二终端建立端到端 D2D通信的请求后,在已经分配的 D2D 资源中确定能够被该第一终端和该第二终端复用的可复用资源, 并从该可复用 资源中分配的资源;  In summary, the resource allocation method provided by the embodiment of the present invention, by transmitting a request for establishing D2D communication with a second terminal to a base station, is allocated by the base station from the allocated D2D resources and can be reused by the first terminal and the second terminal. And transmitting the D2D communication signal according to the resource allocated by the base station, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resource is available for allocation. Achieve the goal of improving resource utilization and system capacity. Referring to FIG. 26, a flow chart of a method for resource allocation according to an embodiment of the present invention is shown. The method can be used to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station in the second terminal shown in any one of FIG. 9 to FIG. The resource allocation method may include: Step 1601: Receive a target resource sent by a base station, where the target resource is already allocated after the base station receives a request sent by the first terminal to establish end-to-end D2D communication with the second terminal. Determining, among the D2D resources, reusable resources multiplexed by the first terminal and the second terminal, and resources allocated from the reusable resources;

步骤 1602, 根据该目标资源接收该第一终端发送的 D2D通信信号。  Step 1602: Receive, according to the target resource, a D2D communication signal sent by the first terminal.

综上所述, 本发明实施例提供的资源分配方法, 通过接收基站在已经分配 的 D2D 资源中确定能够被该第一终端和该第二终端复用的可复用资源后, 从 可复用资源中分配的目标资源, 并根据该目标资源接收第一基站发送的 D2D 通信信号, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数 量较多时, 可能出现没有空闲的 D2D 资源可供分配的情形的问题, 达到提高 资源利用率和系统容量的目的。 请参见图 27,其示出了本发明另一实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 9至图 12任一所示的第二终端中, 根据基站分配 的 D2D资源接收第一终端发送的 D2D通信信号。 该资源分配方法可以包括: 步骤 1701 , 接收基站发送的包含有第一资源的第二指令; In summary, the resource allocation method provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources. a target resource allocated in the resource, and receiving the D2D sent by the first base station according to the target resource The communication signal solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a situation that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 27, a flowchart of a method for resource allocation according to another embodiment of the present invention is shown. The method may be used to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station in the second terminal as shown in any one of FIG. 9 to FIG. The resource allocation method may include: Step 1701: Receive a second instruction that is sent by the base station and includes the first resource;

该第一资源为已分配给第三终端用以接收 D2D通信信号的 D2D资源。 其中, 基站可以通过高层信令向已经分配有 D2D资源进行 D2D通信的各 个终端发送第一指令, 各个 D2D终端接收到该第一指令后, 在预定的时频资 源上的监听第一终端发送的发现信号 Discovery信号, 并根据监听到的发现信 号向基站返回第一响应,基站根据该第一响应判断哪些终端监听到的第一终端 发送的发现信号的信号质量小于预定质量阈值, 并将分配给监听到的第一终端 发送的发现信号的信号质量小于预定质量阈值的终端的 D2D 资源确定为第一 资源。  The first resource is a D2D resource that has been allocated to the third terminal for receiving the D2D communication signal. The base station may send, by using the high layer signaling, the first instruction to each terminal that has been allocated the D2D resource for the D2D communication, and after receiving the first instruction, each D2D terminal monitors the first terminal to send the predetermined time-frequency resource. Detecting a signal Discovery signal, and returning a first response to the base station according to the monitored discovery signal, the base station determining, according to the first response, which terminal the signal quality of the discovery signal sent by the first terminal is less than a predetermined quality threshold, and assigning The D2D resource of the terminal whose monitored signal quality of the discovery signal sent by the first terminal is less than the predetermined quality threshold is determined as the first resource.

步骤 1702, 根据该第一资源监听 D2D通信信号, 并检测根据该第一资源 监听到的 D2D通信信号的信号强度, 获得第一检测结果;  Step 1702: Monitor a D2D communication signal according to the first resource, and detect a signal strength of the D2D communication signal that is monitored according to the first resource, to obtain a first detection result.

步骤 1703, 根据该第一检测结果向该基站发送第二响应;  Step 1703: Send a second response to the base station according to the first detection result.

该第二响应用于指示根据该第一资源监听到的 D2D通信信号的信号强度 是否小于预定强度阈值。  The second response is for indicating whether the signal strength of the D2D communication signal monitored according to the first resource is less than a predetermined intensity threshold.

当基站根据该第二响应确定第二终端根据第一资源监听到的 D2D通信信 号的信号强度小于预定信号强度阈值时, 将该第一资源确定为能够被该第一终 端和该第二终端复用的可复用资源。  Determining, by the base station, that the signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than a predetermined signal strength threshold according to the second response, determining, by the first terminal, that the first resource is restored by the first terminal and the second terminal Reusable resources used.

其中, 需要说明的是, 第二终端向基站返回的响应中, 可以直接将监听到 的 D2D通信信号的强度发送给基站, 由基站检测信号强度是否小于预定强度 阈值; 或者, 第二终端也可以先检测信号强度是否小于预定强度阈值, 并将检 测结果携带在响应中发送给基站。 此外, 第二终端向基站返回第二响应时所使 用的资源可以由基站动态配置。  It should be noted that, in the response returned by the second terminal to the base station, the strength of the monitored D2D communication signal may be directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined intensity threshold; or the second terminal may also First, it is detected whether the signal strength is less than a predetermined intensity threshold, and the detection result is carried in the response and sent to the base station. In addition, the resources used by the second terminal to return the second response to the base station can be dynamically configured by the base station.

步骤 1704, 接收基站发送的目标资源;  Step 1704: Receive a target resource sent by the base station.

该目标资源为该基站从该可复用资源中分配的资源; 步骤 1705, 根据该目标资源接收该第一终端发送的 D2D通信信号。 The target resource is a resource allocated by the base station from the reusable resource; Step 1705: Receive a D2D communication signal sent by the first terminal according to the target resource.

综上所述, 本发明实施例提供的资源分配方法, 通过接收基站在已经分配 的 D2D 资源中确定能够被该第一终端和该第二终端复用的可复用资源后, 从 可复用资源中分配的目标资源, 并根据该目标资源接收第一基站发送的 D2D 通信信号, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数 量较多时, 可能出现没有空闲的 D2D 资源可供分配的情形的问题, 达到提高 资源利用率和系统容量的目的。 请参见图 28,其示出了本发明又一实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 9至图 12任一所示的第二终端中, 根据基站分配 的 D2D资源接收第一终端发送的 D2D通信信号。 该资源分配方法可以包括: 步骤 1801 , 接收基站发送的包含有第二资源的第三指令;  In summary, the resource allocation method provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources. A target resource allocated in the resource, and receiving the D2D communication signal sent by the first base station according to the target resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources. The problem of the situation that can be allocated to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 28, a flow chart of a method for resource allocation according to another embodiment of the present invention is shown. The method can be used to receive the D2D communication signal sent by the first terminal according to the D2D resource allocated by the base station in the second terminal shown in any one of FIG. 9 to FIG. The resource allocation method may include: Step 1801: Receive a third instruction that is sent by the base station and includes the second resource;

该第二资源为已分配给第四终端用以接收 D2D通信信号的资源; 步骤 1802, 根据该第二资源监听 D2D通信信号, 检测根据该第二资源监 听到的 D2D通信信号的信号强度, 获得第二检测结果;  The second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal. Step 1802, detecting, according to the second resource, the D2D communication signal, detecting a signal strength of the D2D communication signal that is monitored according to the second resource, and obtaining Second test result;

步骤 1803, 根据该第二检测结果向该基站发送第三响应;  Step 1803: Send a third response to the base station according to the second detection result.

该第三响应用于指示根据该第二资源监听到的 D2D通信信号的信号强度 是否小于预定强度阈值。  The third response is for indicating whether the signal strength of the D2D communication signal monitored according to the second resource is less than a predetermined intensity threshold.

实际应用中, 基站可以通过高层信令将当前已分配给第四终端用以接收 D2D通信信号的 D2D资源作为第二资源发送给第二终端, 第二终端根据基站 发送的第二资源监听 D2D通信信号, 并根据监听结果向基站返回第三响应, 当基站根据该第三响应确定第二终端根据第二资源接收到的 D2D通信信号的 信号强度小于预定强度阈值时, 向第四终端发送第四指令, 第四终端接收到该 指令后, 在预定的资源上监听第一终端发送的发现信号, 并根据监听结果向基 站返回第四响应, 当第四响应指示第四终端监听到第一终端发送的发现信号的 信号质量小于预定质量阈值时,将第二资源确定为能够被第一终端和第二终端 复用的可复用资源。  In a practical application, the base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource, and the second terminal monitors the D2D communication according to the second resource sent by the base station. a signal, and returning a third response to the base station according to the monitoring result, when the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined intensity threshold, sending the fourth terminal to the fourth terminal After receiving the instruction, the fourth terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result, where the fourth response indicates that the fourth terminal monitors the first terminal to send When the signal quality of the discovery signal is less than the predetermined quality threshold, the second resource is determined as a reusable resource that can be multiplexed by the first terminal and the second terminal.

其中, 需要说明的是, 第二终端向基站返回的响应中, 可以直接将监听到 的 D2D通信信号的强度发送给基站, 由基站检测信号强度是否小于预定强度 阈值; 或者, 第二终端也可以先检测信号强度是否小于预定强度阈值, 并将检 测结果携带在响应中发送给基站。 此外, 第二终端向基站返回第三响应时所使 用的资源可以由基站动态配置。 It should be noted that, in the response returned by the second terminal to the base station, the strength of the monitored D2D communication signal may be directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined intensity threshold; or the second terminal may also First, it is detected whether the signal strength is less than a predetermined intensity threshold, and the detection result is carried in the response and sent to the base station. In addition, when the second terminal returns a third response to the base station, The resources used can be dynamically configured by the base station.

步骤 1804, 接收基站发送的目标资源;  Step 1804: Receive a target resource sent by the base station.

该目标资源为该基站从该可复用资源中分配的资源;  The target resource is a resource allocated by the base station from the reusable resource;

步骤 1805, 根据该目标资源接收该第一终端发送的 D2D通信信号。  Step 1805: Receive a D2D communication signal sent by the first terminal according to the target resource.

综上所述, 本发明实施例提供的资源分配方法, 通过接收基站在已经分配 的 D2D 资源中确定能够被该第一终端和该第二终端复用的可复用资源后, 从 可复用资源中分配的目标资源, 并根据该目标资源接收第一基站发送的 D2D 通信信号, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数 量较多时, 可能出现没有空闲的 D2D 资源可供分配的情形的问题, 达到提高 资源利用率和系统容量的目的。 请参见图 29,其示出了本发明一个实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 13至图 16任一所示的第三终端中, 在基站接收到 第一终端发送的与第二终端建立 D2D通信的请求后,协助基站在已分配的 D2D 资源中确定可复用资源。 该资源分配方法可以包括:  In summary, the resource allocation method provided by the embodiment of the present invention can be reused by the receiving base station after determining the reusable resources that can be multiplexed by the first terminal and the second terminal in the allocated D2D resources. A target resource allocated in the resource, and receiving the D2D communication signal sent by the first base station according to the target resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources. The problem of the situation that can be allocated to achieve the purpose of improving resource utilization and system capacity. Referring to FIG. 29, a flow chart of a method for resource allocation according to an embodiment of the present invention is shown. The method may be used to assist the base station in the allocated D2D resource after receiving the request by the first terminal to establish D2D communication with the second terminal in the third terminal as shown in any one of FIG. 13 to FIG. Determine reusable resources. The resource allocation method can include:

步骤 1901 ,接收基站发送的第一指令,该第一指令为该基站在接收到第一 终端发送的用于与第二终端建立 D2D通信的请求后发送的指令;  Step 1901: Receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request for establishing a D2D communication with the second terminal sent by the first terminal;

步骤 1902, 监听该第一终端发送的发现信号;  Step 1902: Listen to the discovery signal sent by the first terminal.

步骤 1903, 检测监听到的该发现信号的信号质量, 获得第三检测结果; 步骤 1904,根据该第三检测结果向该基站发送第一响应; 由该基站在该第 一响应指示监听到的该发现信号的信号质量小于预定质量阈值时, 向该第二终 端发送包含有第一资源的第二指令, 并接收该第二终端返回的第二响应, 并在 该第二响应指示该第二终端根据该第一资源监听到的 D2D通信信号的信号强 度小于预定强度阈值时, 将该第一资源确定为可复用资源, 从该可复用资源中 分配目标资源, 并将该目标资源发送给该第一终端和该第二终端, 由该第一终 端根据该目标资源发送 D2D通信信号, 并由该第二终端根据该目标资源接收 D2D通信信号; 其中, 该第一资源为已分配给该第三终端用以接收 D2D通信 信号的 D2D资源, 该第二指令用于指示该第二终端根据该第一资源监听 D2D 通信信号; 该第二响应用于指示该第二终端根据该第一资源监听到的 D2D通 信信号的信号强度是否小于该预定强度阈值。  Step 1903: Detect the signal quality of the detected discovery signal, and obtain a third detection result. Step 1904, send a first response to the base station according to the third detection result; and the base station instructs the monitored response in the first response. When the signal quality of the discovery signal is less than the predetermined quality threshold, sending a second instruction including the first resource to the second terminal, and receiving a second response returned by the second terminal, and indicating the second terminal in the second response When the signal strength of the D2D communication signal monitored by the first resource is less than a predetermined intensity threshold, determining the first resource as a reusable resource, allocating a target resource from the reusable resource, and sending the target resource to The first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource; wherein the first resource is assigned to the The third terminal is configured to receive the D2D resource of the D2D communication signal, where the second instruction is used to instruct the second terminal to monitor the D2D according to the first resource. Channel signal; the second response for indicating whether the signal strength of the second terminal monitors according to the first resource for the D2D communication signal strength is less than the predetermined threshold value.

综上所述, 本发明实施例提供的资源分配方法, 通过在接收到基站发送的 第一指令后监听第一终端发送的发现信号, 并根据监听结果向基站返回第一响 应, 由基站在该第一响应指示第三终端接收到的第一终端的发现信号的信号质 量小于预定质量阈值后向第二终端发送第二指令, 并在根据第二终端返回的第 二响应指示该第二终端根据第三终端用以接收 D2D通信信号的第一资源监听 到的 D2D通信信号的信号强度小于预定强度阈值时, 将第一资源确定为可复 用资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量 较多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资 源利用率和系统容量的目的。 请参见图 30,其示出了本发明另一实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 13至图 16任一所示的第三终端中, 在基站接收到 第一终端发送的与第二终端建立 D2D通信的请求后,协助基站在已分配的 D2D 资源中确定可复用资源。 该资源分配方法可以包括: In summary, the resource allocation method provided by the embodiment of the present invention is sent by receiving a base station. After the first instruction, the discovery signal sent by the first terminal is monitored, and the first response is returned to the base station according to the monitoring result, where the signal quality of the discovery signal of the first terminal received by the base station in the first response is less than the predetermined quality. Sending a second instruction to the second terminal after the threshold, and indicating, according to the second response returned by the second terminal, the signal strength of the D2D communication signal that the second terminal monitors according to the first resource used by the third terminal to receive the D2D communication signal. When the threshold is less than the predetermined strength threshold, the first resource is determined as a reusable resource, which solves the problem that in the prior art, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be no idle D2D resources available for allocation. The problem is to achieve the goal of improving resource utilization and system capacity. Referring to FIG. 30, a flowchart of a method for resource allocation according to another embodiment of the present invention is shown. The method may be used to assist the base station in the allocated D2D resource after receiving the request by the first terminal to establish D2D communication with the second terminal in the third terminal as shown in any one of FIG. 13 to FIG. Determine reusable resources. The resource allocation method can include:

步骤 2001 , 接收基站发送的第一指令;  Step 2001, receiving a first instruction sent by the base station;

该第一指令为该基站在接收到第一终端发送的用于与第二终端建立 D2D 通信的请求后发送的指令;  The first instruction is an instruction sent by the base station after receiving a request sent by the first terminal for establishing D2D communication with the second terminal;

步骤 2002, 监听该第一终端发送的发现信号;  Step 2002: Listening to the discovery signal sent by the first terminal;

具体的, 支持 D2D通信的终端可以在预定的时频资源上周期性的发送发 现信号 Discovery信号, 当第一终端接收到第二终端发送的发现信号并检测可 以与该第二终端进行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通 信的请求。 第三终端接收到基站发送的第一指令后, 可以监听第一终端周期性 发送的发现信号。  Specifically, the terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the discovery signal sent by the second terminal and detects that the D2D communication can be performed with the second terminal. And the base station may send a request for D2D communication with the second terminal. After receiving the first instruction sent by the base station, the third terminal may monitor the discovery signal periodically sent by the first terminal.

步骤 2003, 检测监听到的该发现信号的信号质量, 获得第三检测结果; 第一终端发送的发现信号中可以携带有各个终端预先已知的参考内容, 第 三终端接收到发现信号后, 对发现信号进行解析, 并将解析获得的内容与参考 内容进行对比, 获得解析准确率, 并将该解析准确率作为接收到的第一终端发 送的发现信号的信号质量。  Step 2003: Detecting the signal quality of the detected discovery signal, and obtaining a third detection result; the discovery signal sent by the first terminal may carry the reference content previously known by each terminal, and after receiving the discovery signal, the third terminal The discovery signal is parsed, and the content obtained by the parsing is compared with the reference content to obtain the parsing accuracy rate, and the parsing accuracy rate is used as the signal quality of the received discovery signal sent by the first terminal.

步骤 2004, 根据该第三检测结果向该基站发送第一响应。  Step 2004: Send a first response to the base station according to the third detection result.

第三终端可以向该基站发送包含有该第一响应的第一响应帧, 该第一响应 帧为在接收到该第一指令后, 根据该第一资源发送的第一个 D2D通信帧。  The third terminal may send a first response frame including the first response to the base station, where the first response frame is a first D2D communication frame sent according to the first resource after receiving the first instruction.

其中, 已分配有 D2D资源的终端向基站返回响应时, 可以通过已分配的, 用以发送 D2D信号的资源向基站返回响应, 比如, 可以将返回给基站的响应 携带在接收到第一指令后发送的第一个 D2D通信帧中的第一个 OFDM符号 中。基站在发送第一指令后,接收根据已经分配的 D2D资源发送的第一个 D2D 通信帧, 并解析接收到的 D2D通信帧中的第一个 OFDM符号, 以获取第三终 端返回的第一响应。 Where the terminal that has been allocated the D2D resource returns a response to the base station, it can pass the assigned, The resource for transmitting the D2D signal returns a response to the base station. For example, the response returned to the base station may be carried in the first OFDM symbol in the first D2D communication frame transmitted after receiving the first instruction. After transmitting the first instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the first response returned by the third terminal. .

基站在该第一响应指示监听到的该发现信号的信号质量小于预定质量阈 值时, 向该第二终端发送包含有第一资源的第二指令, 并接收该第二终端返回 的第二响应, 并在该第二响应指示该第二终端根据该第一资源监听到的 D2D 通信信号的信号强度小于预定强度阈值时, 将该第一资源确定为可复用资源, 从该可复用资源中分配目标资源, 并将该目标资源发送给该第一终端和该第二 终端, 由该第一终端根据该目标资源发送 D2D通信信号, 并由该第二终端根 据该目标资源接收 D2D通信信号;  The base station sends a second command including the first resource to the second terminal, and receives a second response returned by the second terminal, when the first response indicates that the signal quality of the detected signal is less than a predetermined quality threshold. When the second response indicates that the signal strength of the D2D communication signal that the second terminal monitors according to the first resource is less than a predetermined strength threshold, determining the first resource as a reusable resource, from the reusable resource. Allocating a target resource, and transmitting the target resource to the first terminal and the second terminal, wherein the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource;

其中, 该第一资源为已分配给该第三终端用以接收 D2D通信信号的 D2D 资源, 该第二指令用于指示该第二终端根据该第一资源监听 D2D通信信号; 该第二响应用于指示该第二终端根据该第一资源监听到的 D2D通信信号的信 号强度是否小于该预定强度阈值。  The first resource is a D2D resource that is allocated to the third terminal for receiving the D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; And indicating whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined intensity threshold.

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。  Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not The second condition is met, indicating that the D2D communication signal sent by the terminal other than the first terminal using the reusable resource has no influence on the second terminal.

基站可以通过高层信令向已经分配有 D2D资源进行 D2D通信的第三终端 发送第一指令, 第三终端接收到该第一指令后, 在预定的时频资源上的监听第 一终端发送的发现信号 Discovery信号, 并根据监听到的发现信号向基站返回 第一响应,基站根据该第一响应判断第三终端监听到的第一终端发送的发现信 号的信号质量小于预定质量阈值时, 将分配给第三终端的 D2D资源确定为第 一资源。 基站向第二终端发送包含有该第一资源的第二指示, 第二终端接收到 该第二指示后, 根据该第二资源监听其它终端通过该第二资源发送的 D2D通 信信号, 并根据监听结果向基站返回第二响应, 基站根据该第二响应确定第二 终端据以监听到的 D2D通信信号的信号强度小于预定信号强度阈值的资源为 可复用资源。 The base station may send, by using the high layer signaling, a first instruction to the third terminal that has been allocated the D2D resource for the D2D communication, and after receiving the first instruction, the third terminal monitors the discovery sent by the first terminal on the predetermined time-frequency resource. a signal of the Discovery signal, and returning a first response to the base station according to the monitored discovery signal, the base station determining, according to the first response, the discovery message sent by the first terminal monitored by the third terminal When the signal quality of the number is less than the predetermined quality threshold, the D2D resource allocated to the third terminal is determined as the first resource. The base station sends a second indication including the first resource to the second terminal, and after receiving the second indication, the second terminal monitors the D2D communication signal sent by the other terminal through the second resource according to the second resource, and according to the monitoring As a result, the second response is returned to the base station, and the base station determines, according to the second response, that the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined signal strength threshold is a reusable resource.

需要说明的是, 第三终端向基站返回的响应中, 可以直接将监听到的第一 终端的发现信号的信号质量发送给基站, 由基站检测信号质量是否小于预定质 量阈值; 或者, 第三终端也可以先检测信号质量是否小于预定质量阈值, 并将 检测结果携带在响应中发送给基站。  It should be noted that, in the response returned by the third terminal to the base station, the signal quality of the monitored discovery signal of the first terminal may be directly sent to the base station, and the base station detects whether the signal quality is less than a predetermined quality threshold; or, the third terminal It is also possible to first detect whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.

综上所述, 本发明实施例提供的资源分配方法, 通过在接收到基站发送的 第一指令后监听第一终端发送的发现信号, 并根据监听结果向基站返回第一响 应, 由基站在该第一响应指示第三终端接收到的第一终端的发现信号的信号质 量小于预定质量阈值后向第二终端发送第二指令, 并在根据第二终端返回的第 二响应指示该第二终端根据第三终端用以接收 D2D通信信号的第一资源监听 到的 D2D通信信号的信号强度小于预定强度阈值时, 将第一资源确定为可复 用资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量 较多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到提高资 源利用率和系统容量的目的。 请参见图 31 ,其示出了本发明一个实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 17至图 20任一所示的第四终端中, 在基站接收到 第一终端发送的与第二终端建立 D2D通信的请求后,协助基站在已分配的 D2D 资源中确定可复用资源。 该资源分配方法可以包括:  In summary, the resource allocation method provided by the embodiment of the present invention listens to the discovery signal sent by the first terminal after receiving the first instruction sent by the base station, and returns a first response to the base station according to the monitoring result, where the base station is in the The first response indicates that the signal quality of the discovery signal of the first terminal received by the third terminal is less than the predetermined quality threshold, and sends a second instruction to the second terminal, and indicates that the second terminal is based on the second response returned by the second terminal. When the signal strength of the D2D communication signal that is received by the first resource that is received by the third terminal is less than the predetermined strength threshold, the first resource is determined to be a reusable resource, which solves the problem in the prior art when the base station is in coverage. When the number of terminals requesting to establish D2D communication is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 31, a flow chart of a method for resource allocation according to an embodiment of the present invention is shown. The method may be used to assist the base station in the allocated D2D resource after receiving the request of the first terminal to establish D2D communication with the second terminal in the fourth terminal as shown in any one of FIG. 17 to FIG. Determine reusable resources. The resource allocation method can include:

步骤 2101 ,接收基站发送的第四指令; 该第四指令为该基站在接收到第一 终端发送的用于与第二终端建立 D2D通信的请求, 向该第二终端发送包含有 第二资源的第三指令, 接收该第二终端返回的第三响应, 并在该第三响应指示 该第二终端根据该第二资源监听到的 D2D通信信号的信号强度小于预定强度 阈值时发送的指令; 该第二资源为已分配给该第四终端用以接收 D2D通信信 号的资源, 该第三指令用于指示该第二终端根据该第二资源监听 D2D通信信 号, 该第三响应用于指示该第二终端根据该第二资源监听到的 D2D通信信号 的信号强度是否小于该预定强度阈值; Step 2101: Receive a fourth command sent by the base station, where the fourth command is that the base station receives a request for establishing a D2D communication with the second terminal, and sends a second resource to the second terminal. a third instruction, receiving a third response returned by the second terminal, and transmitting, by the third terminal, an instruction sent by the second terminal according to the signal strength of the D2D communication signal monitored by the second resource is less than a predetermined intensity threshold; The second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal, and the third command is used to instruct the second terminal to monitor the D2D communication signal according to the second resource, where the third response is used to indicate the The D2D communication signal monitored by the second terminal according to the second resource Whether the signal strength is less than the predetermined intensity threshold;

步骤 2102, 监听该第一终端发送的发现信号;  Step 2102: Listen to the discovery signal sent by the first terminal.

步骤 2103, 检测监听到的该发现信号的信号质量, 获得第四检测结果; 步骤 2104,根据该第四检测结果向该基站发送第四响应; 该第四响应用于 指示监听到的该发现信号的信号质量是否小于预定质量阈值; 由该基站在该第 四响应指示监听到的该发现信号的信号质量小于该预定质量阈值时, 将该第二 资源确定为可复用资源, 从该可复用资源中分配目标资源, 并将该目标资源发 送给该第一终端和该第二终端, 由该第一终端根据该目标资源发送 D2D通信 信号, 并由该第二终端根据该目标资源接收 D2D通信信号。  Step 2103: Detect the signal quality of the detected discovery signal, and obtain a fourth detection result. Step 2104: Send a fourth response to the base station according to the fourth detection result. The fourth response is used to indicate the detected discovery signal. Whether the signal quality is less than a predetermined quality threshold; when the signal quality of the discovery signal monitored by the fourth response indication is less than the predetermined quality threshold, the second resource is determined as a reusable resource, and the Allocating a target resource with a resource, and transmitting the target resource to the first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D according to the target resource. Communication signal.

综上所述, 本发明实施例提供的资源分配方法, 通过接收基站在向第二终 端发送包含有第二资源的第三指令, 并根据接收的第二终端返回的第三响应指 示第二终端根据第二资源监听到的 D2D通信信号的信号强度小于预定强度阈 值时发送的第四指令后, 检测监听到的第一终端发送的发现信号的信号质量, 并根据检测结果向基站返回第四响应, 由基站在第四响应指示第四终端监听到 的第一终端发送的发现信号的信号质量小于预定质量阈值时, 将第二资源确定 为可复用资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终 端数量较多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到 提高资源利用率和系统容量的目的。 请参见图 32,其示出了本发明另一实施例提供的资源分配方法的方法流程 图。 该方法可以用于在如图 17至图 20任一所示的第四终端中, 在基站接收到 第一终端发送的与第二终端建立 D2D通信的请求后,协助基站在已分配的 D2D 资源中确定可复用资源。 该资源分配方法可以包括:  In summary, the resource allocation method provided by the embodiment of the present invention, the receiving base station sends a third instruction including the second resource to the second terminal, and indicates the second terminal according to the received third response returned by the second terminal. After detecting the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold, detecting the signal quality of the detected discovery signal sent by the first terminal, and returning the fourth response to the base station according to the detection result. And determining, by the base station, the second resource as the reusable resource when the signal quality of the discovery signal sent by the first terminal that is detected by the fourth terminal in the fourth response is less than the predetermined quality threshold, which solves the problem of the base station coverage in the prior art. When the number of terminals requesting to establish D2D communication is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 32, a flow chart of a method for resource allocation according to another embodiment of the present invention is shown. The method may be used to assist the base station in the allocated D2D resource after receiving the request of the first terminal to establish D2D communication with the second terminal in the fourth terminal as shown in any one of FIG. 17 to FIG. Determine reusable resources. The resource allocation method can include:

步骤 2201 , 接收基站发送的第四指令;  Step 2201: Receive a fourth instruction sent by the base station.

该第四指令为该基站在接收到第一终端发送的用于与第二终端建立 D2D 通信的请求, 向该第二终端发送包含有第二资源的第三指令, 接收该第二终端 返回的第三响应, 并在该第三响应指示该第二终端根据该第二资源监听到的 D2D通信信号的信号强度小于预定强度阈值时发送的指令;该第二资源为已分 配给该第四终端用以接收 D2D通信信号的资源, 该第三指令用于指示该第二 终端根据该第二资源监听 D2D通信信号, 该第三响应用于指示该第二终端根 据该第二资源监听到的 D2D通信信号的信号强度是否小于该预定强度阈值; 步骤 2202, 监听该第一终端发送的发现信号; The fourth instruction is that the base station receives a request for establishing D2D communication with the second terminal by the first terminal, and sends a third instruction including the second resource to the second terminal, and receives the return of the second terminal. a third response, and an instruction sent when the second terminal indicates that the signal strength of the D2D communication signal monitored by the second resource is less than a predetermined intensity threshold according to the second resource; the second resource is allocated to the fourth terminal a third command for instructing the second terminal to monitor the D2D communication signal according to the second resource, where the third command is used to indicate that the second terminal is listening to the D2D according to the second resource. Whether the signal strength of the communication signal is less than the predetermined intensity threshold; Step 2202: Listen to the discovery signal sent by the first terminal.

步骤 2203, 检测监听到的该发现信号的信号质量, 获得第四检测结果; 第四终端监听第一终端发送的发现信号并检测发现信号的信号质量的方 法与第三终端类似, 此处不再赘述。  Step 2203, detecting the signal quality of the detected discovery signal, and obtaining a fourth detection result. The method for the fourth terminal to listen to the discovery signal sent by the first terminal and detecting the signal quality of the discovery signal is similar to the third terminal, and is no longer here. Narration.

步骤 2204,根据该第四检测结果向该基站发送第四响应; 该第四响应用于 指示监听到的该发现信号的信号质量是否小于预定质量阈值。  Step 2204: Send a fourth response to the base station according to the fourth detection result. The fourth response is used to indicate whether the monitored signal quality of the discovery signal is less than a predetermined quality threshold.

第四终端向该基站发送包含有该第四响应的第二响应帧, 该第二响应帧为 该在接收到该第四指令后, 根据该第二资源发送的第一个 D2D通信帧。  The fourth terminal sends a second response frame including the fourth response to the base station, where the second response frame is the first D2D communication frame sent according to the second resource after receiving the fourth instruction.

其中, 已分配有 D2D资源的终端向基站返回响应时, 可以通过已分配的, 用以发送 D2D信号的资源向基站返回响应, 比如, 可以将返回给基站的响应 携带在接收到第四指令后发送的第一个 D2D通信帧中的第一个 OFDM符号 中。基站在发送第四指令后,接收根据已经分配的 D2D资源发送的第一个 D2D 通信帧,并解析接收到的 D2D通信帧中的第一个 OFDM符号,以获取各个 D2D 终端返回的第四响应。  When the terminal that has been allocated the D2D resource returns a response to the base station, the terminal may return a response to the base station by using the allocated resource for transmitting the D2D signal. For example, the response returned to the base station may be carried after receiving the fourth instruction. The first OFDM symbol in the first D2D communication frame sent. After transmitting the fourth instruction, the base station receives the first D2D communication frame sent according to the allocated D2D resource, and parses the first OFDM symbol in the received D2D communication frame to obtain the fourth response returned by each D2D terminal. .

需要说明的是, 第四终端向基站返回的响应中, 可以直接将监听到的第一 终端的发现信号的信号质量发送给基站, 由基站检测信号质量是否小于预定质 量阈值; 或者, 第四终端也可以先检测信号质量是否小于预定质量阈值, 并将 检测结果携带在响应中发送给基站。  It should be noted that, in the response returned by the fourth terminal to the base station, the signal quality of the detected first terminal's discovery signal may be directly sent to the base station, and the base station detects whether the signal quality is less than a predetermined quality threshold; or, the fourth terminal It is also possible to first detect whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.

该基站在该第四响应指示监听到的该发现信号的信号质量小于该预定质 量阈值时,将该第二资源确定为可复用资源,从该可复用资源中分配目标资源, 并将该目标资源发送给该第一终端和该第二终端, 由该第一终端根据该目标资 源发送 D2D通信信号, 并由该第二终端根据该目标资源接收 D2D通信信号。  The base station determines the second resource as a reusable resource, allocates a target resource from the reusable resource, and allocates the signal to the reusable resource when the fourth response indicates that the signal quality of the detected signal is less than the predetermined quality threshold. The target resource is sent to the first terminal and the second terminal, and the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.

其中, 该可复用资源为被分配以接收 D2D通信的终端接收到的第一终端 发送的发现信号的信号质量小于预定质量阈值,且第二终端据以接收到的 D2D 通信信号的信号强度小于预定强度阈值的资源。 该 D2D资源可以是时频资源。  The signal quality of the discovery signal sent by the first terminal received by the terminal allocated to receive the D2D communication is less than a predetermined quality threshold, and the signal strength of the D2D communication signal received by the second terminal is less than A resource with a predetermined intensity threshold. The D2D resource can be a time-frequency resource.

具体的, 该可复用资源需要满足两个条件: 第一, 被分配该可复用资源用 以接收 D2D通信的终端接收到的第一终端发送的发现信号的信号质量小于预 定质量阈值; 第二, 第二终端根据该可复用资源接收到的 D2D通信信号的信 号强度小于预定强度阈值。 其中, 满足第一个条件表明当第一终端通过该可复 用资源向第二终端发送 D2D通信信号时, 对除第二终端之外的其它使用该可 复用资源接收 D2D通信信号的终端不会产生影响; 满足第二个条件表明除第 一终端之外的其它终端使用该可复用资源发送的 D2D通信信号对第二终端不 会产生影响。 Specifically, the reusable resource needs to meet two conditions: first, the signal quality of the discovery signal sent by the first terminal received by the terminal that is allocated to receive the D2D communication is less than a predetermined quality threshold; Second, the signal strength of the D2D communication signal received by the second terminal according to the reusable resource is less than a predetermined intensity threshold. Wherein, satisfying the first condition indicates that when the first terminal transmits the D2D communication signal to the second terminal through the reusable resource, the terminal that receives the D2D communication signal using the reusable resource except the second terminal is not Will have an effect; meet the second condition to indicate that A D2D communication signal transmitted by another terminal other than a terminal using the reusable resource does not affect the second terminal.

基站可以通过高层信令将当前已分配给第四终端用以接收 D2D通信信号 的 D2D 资源作为第二资源发送给第二终端, 第二终端根据基站发送的第二资 源监听 D2D通信信号, 并根据监听结果向基站返回第三响应, 当基站根据该 第三响应确定第二终端根据第二资源接收到的 D2D通信信号的信号强度小于 预定强度阈值时, 向第四终端发送第四指令, 第四终端接收到该指令后, 在预 定的资源上监听第一终端发送的发现信号, 并根据监听结果向基站返回第四响 应, 当第四响应指示第四终端监听到第一终端发送的发现信号的信号质量小于 预定质量阈值时, 将第二资源确定为能够被第一终端和第二终端复用的可复用 资源。  The base station may send, by using the high layer signaling, the D2D resource that is currently allocated to the fourth terminal to receive the D2D communication signal as the second resource to the second terminal, and the second terminal monitors the D2D communication signal according to the second resource sent by the base station, and according to The monitoring result returns a third response to the base station, and when the base station determines, according to the third response, that the signal strength of the D2D communication signal received by the second terminal according to the second resource is less than a predetermined intensity threshold, the fourth command is sent to the fourth terminal, and the fourth After receiving the instruction, the terminal monitors the discovery signal sent by the first terminal on the predetermined resource, and returns a fourth response to the base station according to the monitoring result, where the fourth response indicates that the fourth terminal monitors the discovery signal sent by the first terminal. When the signal quality is less than the predetermined quality threshold, the second resource is determined to be a reusable resource that can be multiplexed by the first terminal and the second terminal.

综上所述, 本发明实施例提供的资源分配方法, 通过接收基站在向第二终 端发送包含有第二资源的第三指令, 并根据接收的第二终端返回的第三响应指 示第二终端根据第二资源监听到的 D2D通信信号的信号强度小于预定强度阈 值时发送的第四指令后, 检测监听到的第一终端发送的发现信号的信号质量, 并根据检测结果向基站返回第四响应, 由基站在第四响应指示第四终端监听到 的第一终端发送的发现信号的信号质量小于预定质量阈值时, 将第二资源确定 为可复用资源, 解决了现有技术中当基站覆盖范围内请求建立 D2D通信的终 端数量较多时, 可能出现没有空闲的 D2D资源可供分配的情形的问题, 达到 提高资源利用率和系统容量的目的。 请参见图 33,其示出了本发明一个实施例提供的资源分配方法的方法流程 图。 该方法可以用于在已分配的 D2D资源中为请求建立 D2D通信的终端分配 可复用的资源。 假设系统中的 D2D资源并不固定, 由基站根据当前需要进行 D2D通信的终端对数动态配置。当第一终端请求与第二终端建立 D2D通信时, 基站首先考虑复用已分配的 D2D资源。 该资源分配方法可以包括:  In summary, the resource allocation method provided by the embodiment of the present invention, the receiving base station sends a third instruction including the second resource to the second terminal, and indicates the second terminal according to the received third response returned by the second terminal. After detecting the fourth command sent when the signal strength of the D2D communication signal monitored by the second resource is less than the predetermined intensity threshold, detecting the signal quality of the detected discovery signal sent by the first terminal, and returning the fourth response to the base station according to the detection result. And determining, by the base station, the second resource as the reusable resource when the signal quality of the discovery signal sent by the first terminal that is detected by the fourth terminal in the fourth response is less than the predetermined quality threshold, which solves the problem of the base station coverage in the prior art. When the number of terminals requesting to establish D2D communication is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 33, a flow chart of a method for resource allocation according to an embodiment of the present invention is shown. The method can be used to allocate reusable resources for terminals requesting D2D communication in an allocated D2D resource. It is assumed that the D2D resources in the system are not fixed, and the base station dynamically configures the terminal logarithm of the D2D communication according to the current needs. When the first terminal requests to establish D2D communication with the second terminal, the base station first considers multiplexing the allocated D2D resources. The resource allocation method can include:

步骤 2301 , 第一终端向基站发送与第二终端建立 D2D通信的请求; 支持 D2D 通信的终端可以在预定的时频资源上周期性的发送发现信号 Discovery信号, 当第一终端接收到第二终端发送的发现信号并检测可以与该 第二终端进行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通信的请 求。 步骤 2302, 基站向第三终端发送第一指令; Step 2301: The first terminal sends a request for establishing D2D communication with the second terminal to the base station. The terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the second terminal. The transmitted discovery signal and detecting that the D2D communication can be performed with the second terminal may send a request for D2D communication with the second terminal to the base station. Step 2302: The base station sends a first instruction to the third terminal.

实际应用中, 基站可以向当前已经分配有 D2D资源进行 D2D通信的终端 广播高层信令, 指示各个已经分配有 D2D资源的终端监听第一终端发送的发 现信号。  In a practical application, the base station may broadcast the high layer signaling to the terminal that has been allocated the D2D resource for the D2D communication, and indicates that each terminal that has allocated the D2D resource listens to the discovery signal sent by the first terminal.

步骤 2303, 第三终端根据该第一指令监听第一终端发送的发现信号; 步骤 2304, 第三终端向基站返回第一响应;  Step 2303: The third terminal monitors the discovery signal sent by the first terminal according to the first instruction. Step 2304: The third terminal returns a first response to the base station.

该第一响应用于指示第三终端监听到的第一终端发送的发现信号的信号 质量是否小于预定质量阈值。  The first response is used to indicate whether the signal quality of the discovery signal sent by the first terminal monitored by the third terminal is less than a predetermined quality threshold.

具体的, 第一终端发送的发现信号中可以携带有各个终端预先已知的参考 内容, 各个已经分配有 D2D资源的终端接收到发现信号后, 对发现信号进行 解析, 并将解析获得的内容与参考内容进行对比, 获得解析准确率, 并将该解 析准确率作为接收到的第一终端发送的发现信号的信号质量。  Specifically, the discovery signal sent by the first terminal may carry the reference content that is known in advance by each terminal, and after receiving the discovery signal, each terminal that has been allocated the D2D resource parses the discovery signal, and parses the obtained content and The reference content is compared, and the resolution accuracy is obtained, and the resolution accuracy is used as the signal quality of the received discovery signal transmitted by the first terminal.

步骤 2305,基站在第一响应指示第三终端监听到的第一终端发送的发现信 号的信号质量小于预定质量阈值时, 向第二终端发送包含有第一资源的第二指 令;  Step 2305: The base station sends a second instruction including the first resource to the second terminal, when the first response indicates that the signal quality of the discovery signal sent by the first terminal that is monitored by the third terminal is less than a predetermined quality threshold.

该第一资源为基站预先分配给第三终端, 以便第三终端据以接收 D2D通 信信号的 D2D资源。  The first resource is pre-assigned to the third terminal by the base station, so that the third terminal receives the D2D resource of the D2D communication signal.

实际应用中,基站可以将上一步骤中所有返回指示接收到的第一终端的发 现信号的信号质量小于预定质量阈值的响应所对应的终端用以接收 D2D通信 信号的 D2D资源作为第一资源。  In a practical application, the base station may use, as the first resource, the D2D resource used by the terminal corresponding to the response corresponding to the response that the signal quality of the discovery signal of the first terminal received in the previous step is less than the predetermined quality threshold to receive the D2D communication signal.

需要说明的是, 各个已经分配有 D2D资源的终端向基站返回的响应中, 可以直接将监听到的第一终端的发现信号的信号质量发送给基站, 由基站检测 信号强度是否小于预定质量阈值; 或者, 也可以先检测信号质量是否小于预定 质量阈值, 并将检测结果携带在响应中发送给基站。  It should be noted that, in the response that the terminal that has been allocated the D2D resource to the base station, the signal quality of the detected first terminal is directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined quality threshold. Alternatively, it is also possible to first detect whether the signal quality is less than a predetermined quality threshold, and carry the detection result in the response and send it to the base station.

其中, 第一终端发送的发现信号可能受到其它终端发送的发现信号的干 扰。 接收端接收到的是第一终端发送的发现信号与干扰信号的混合信号, 如果 以信号强度为依据, 接收端只能测出这个混合信号的强度, 并不能代表第一终 端的发现信号的信号强度, 因此, 本发明实施例根据第一终端的发现信号的信 号质量来设定判断阈值, 能够提高判断的准确性。  The discovery signal sent by the first terminal may be interfered by the discovery signal sent by other terminals. The receiving end receives the mixed signal of the discovery signal and the interference signal sent by the first terminal. If based on the signal strength, the receiving end can only measure the strength of the mixed signal, and cannot represent the signal of the first terminal. Intensity, therefore, the embodiment of the present invention sets the determination threshold according to the signal quality of the discovery signal of the first terminal, and can improve the accuracy of the determination.

步骤 2306, 第二终端根据该第一资源监听 D2D通信信号;  Step 2306, the second terminal monitors the D2D communication signal according to the first resource.

第二终端根据该第一资源监听 D2D通信信号, 并检测监听到的 D2D通信 信号的强度。 The second terminal monitors the D2D communication signal according to the first resource, and detects the monitored D2D communication. The strength of the signal.

步骤 2307, 第二终端向基站返回第二响应;  Step 2307: The second terminal returns a second response to the base station.

该第二响应用于指示第二终端根据第一资源监听到的 D2D通信信号的信 号强度是否小于预定强度阈值。  The second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than a predetermined intensity threshold.

第二终端向基站返回的响应中, 可以直接将监听到的 D2D通信信号的强 度发送给基站, 由基站检测信号强度是否小于预定强度阈值; 或者, 第二终端 也可以先检测信号强度是否小于预定强度阈值, 并将检测结果携带在响应中发 送给基站。  In the response returned by the second terminal to the base station, the strength of the monitored D2D communication signal may be directly sent to the base station, and the base station detects whether the signal strength is less than a predetermined intensity threshold; or the second terminal may first detect whether the signal strength is less than a predetermined one. The intensity threshold is carried and the detection result is carried in the response and sent to the base station.

步骤 2308, 基站在第二响应指示第二终端根据第一资源监听到的 D2D通 信信号的信号强度小于预定强度阈值时, 将第一资源确定为可复用资源;  Step 2308: The base station determines, according to the second response, that the signal strength of the D2D communication signal that is monitored by the second terminal according to the first resource is less than a predetermined strength threshold, determining the first resource as a reusable resource;

基站接收到第二终端返回的第二响应后,根据第二响应将第二终端据以监 听到的 D2D通信信号的信号强度小于预定强度阈值的资源确定为可复用资源。  After receiving the second response returned by the second terminal, the base station determines, according to the second response, the resource whose signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined strength threshold as the reusable resource.

步骤 2309, 基站从可复用资源中分配目标资源;  Step 2309: The base station allocates a target resource from the reusable resources.

基站可以结合实际情况或者预先指定的规则,将可复用资源中的部分或者 全部资源分配为目标资源。  The base station may allocate some or all of the resources of the reusable resource as the target resource according to actual conditions or pre-specified rules.

步骤 2310, 若目标资源不足, 则基站进一步从空闲的 D2D资源中分配目 标资源;  Step 2310: If the target resource is insufficient, the base station further allocates the target resource from the idle D2D resource.

基站从可复用资源中分配目标资源之后, 可以检测目标资源是否够用, 若 从可复用资源中分配的目标资源已经够用, 则不再分配空闲的 D2D 资源; 若 不存在第二终端据以监听到的 D2D通信信号的信号强度小于预定强度阈值的 资源, 或者, 从可复用资源中分配的目标资源依然不够, 则基站检测是否存在 空闲的 D2D资源, 若存在空闲的 D2D资源, 则从空闲的 D2D资源中进一步 分配目标资源。  After the base station allocates the target resource from the reusable resource, it can detect whether the target resource is sufficient. If the target resource allocated from the reusable resource is sufficient, the idle D2D resource is no longer allocated; if the second terminal does not exist According to the resource whose signal strength of the D2D communication signal is less than the predetermined intensity threshold, or the target resource allocated from the reusable resource is still insufficient, the base station detects whether there is an idle D2D resource, and if there is an idle D2D resource, The target resource is further allocated from the idle D2D resources.

步骤 2311 ,基站将目标资源发送给第一终端和第二终端, 由第一终端根据 目标资源发送 D2D通信信号,并由第二终端根据目标资源接收 D2D通信信号。  Step 2311: The base station sends the target resource to the first terminal and the second terminal, where the first terminal sends the D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.

需要说明的是, 本发明实施例以基站先考虑复用已分配的资源, 可复用的 资源不足时, 再考虑空闲的 D2D资源为例加以说明, 在实际应用中, 还可以 先考虑分配空闲的 D2D资源, 当空闲的 D2D资源不足时, 再考虑复用已分配 的资源。  It should be noted that, in the embodiment of the present invention, the base station first considers multiplexing the allocated resources, and when the multiplexable resources are insufficient, the idle D2D resources are taken as an example for description. In practical applications, the idle allocation may also be considered first. D2D resources, when the idle D2D resources are insufficient, consider multiplexing the allocated resources.

综上所述, 本发明实施例提供的资源分配方法, 基站接收到第一终端发送 的与第二终端建立 D2D通信的请求后, 指示第三终端监听第一终端发送的发 现信号, 并在第三终端监听到的第一终端发送的发现信号的信号质量小于预定 质量阈值时, 指示第二终端根据第三终端用以接收 D2D通信信号的第一资源 监听 D2D通信信号, 并在第二终端根据第一资源监听到的 D2D通信信号的信 号强度小于预定强度阈值时, 将第一资源确定为可复用资源, 并在可复用资源 中分配第一终端用于向第二终端发送 D2D通信信号的目标资源, 解决了现有 技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可能出现没 有空闲的 D2D 资源可供分配的情形的问题, 达到提高资源利用率和系统容量 的目的。 请参见图 34,其示出了本发明另一实施例提供的资源分配方法的方法流程 图。 该方法可以用于在已分配的 D2D资源中为请求建立 D2D通信的终端分配 可复用的资源。 殳系统中的 D2D资源固定, 当第一终端请求与第二终端建 立 D2D通信时, 基站首先考虑分配空闲的 D2D 资源, 再考虑复用已分配的 D2D资源。 该资源分配方法可以包括: In summary, the resource allocation method provided by the embodiment of the present invention, after receiving the request of the first terminal to establish D2D communication with the second terminal, the base station instructs the third terminal to monitor the sending of the first terminal. a signal, and when the signal quality of the discovery signal sent by the first terminal monitored by the third terminal is less than a predetermined quality threshold, instructing the second terminal to monitor the D2D communication signal according to the first resource used by the third terminal to receive the D2D communication signal, And determining, by the second terminal, that the signal strength of the D2D communication signal that is monitored by the first resource is less than a predetermined strength threshold, determining the first resource as a reusable resource, and allocating the first terminal to the first in the reusable resource The second terminal sends the target resource of the D2D communication signal, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be a situation that no idle D2D resources are available for allocation, thereby improving resource utilization. The purpose of the rate and system capacity. Referring to FIG. 34, a flowchart of a method for resource allocation according to another embodiment of the present invention is shown. The method can be used to allocate reusable resources to terminals requesting D2D communication in an allocated D2D resource. The D2D resource in the system is fixed. When the first terminal requests to establish D2D communication with the second terminal, the base station first considers allocating idle D2D resources, and then considers multiplexing the allocated D2D resources. The resource allocation method can include:

步骤 2401 , 第一终端向基站发送与第二终端建立 D2D通信的请求; 支持 D2D 通信的终端可以在预定的时频资源上周期性的发送发现信号 Discovery信号, 当第一终端接收到第二终端发送的发现信号并检测可以与该 第二终端进行 D2D通信时, 可以向基站发送与该第二终端进行 D2D通信的请 求。  Step 2401, the first terminal sends a request for establishing D2D communication with the second terminal to the base station; the terminal supporting the D2D communication may periodically send the discovery signal Discovery signal on the predetermined time-frequency resource, when the first terminal receives the second terminal. The transmitted discovery signal and detecting that the D2D communication can be performed with the second terminal may send a request for D2D communication with the second terminal to the base station.

步骤 2402 , 基站检测是否存在空闲的 D2D资源;  Step 2402: The base station detects whether there is an idle D2D resource.

实际应用中, 若基站检测存在空闲的 D2D资源, 则从空闲的 D2D资源中 分配目标资源,并检测分配的目标资源是否够用,若分配的目标资源已经够用, 则不进行后续步骤。  In an actual application, if the base station detects that there is an idle D2D resource, the target resource is allocated from the idle D2D resource, and the allocated target resource is detected to be sufficient. If the allocated target resource is sufficient, the subsequent step is not performed.

步骤 2403, 若不存在空闲的 D2D资源, 基站向第二终端发送包含有第二 资源的第三指令;  Step 2403: If there is no idle D2D resource, the base station sends a third instruction including the second resource to the second terminal.

若基站从空闲的 D2D资源中分配的目标资源不足或者不存在空闲的 D2D 资源, 则基站将当前已分配给第四终端作为接收 D2D通信信号的资源作为第 二资源发送给第二终端。  If the target resource allocated by the base station from the idle D2D resource is insufficient or there is no idle D2D resource, the base station sends the resource that has been allocated to the fourth terminal as the receiving D2D communication signal as the second resource to the second terminal.

其中, 基站可以向第二终端广播高层信令, 广播的高层信令中携带有第二 资源, 用以指示第二终端根据该第二资源监听 D2D通信信号。  The base station may broadcast the high layer signaling to the second terminal, where the broadcast high layer signaling carries the second resource, to indicate that the second terminal monitors the D2D communication signal according to the second resource.

步骤 2404, 第二终端根据第二资源监听 D2D通信信号; 步骤 2405, 第二终端向基站返回第三响应; Step 2404: The second terminal monitors the D2D communication signal according to the second resource. Step 2405: The second terminal returns a third response to the base station.

该第三响应用于指示第二终端根据第二资源监听到的 D2D通信信号的信 号强度是否小于预定强度阈值。  The third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined intensity threshold.

第二终端根据第二资源监听 D2D通信信号, 并向基站返回第三响应的具 体步骤与图 33所示的方法中第二终端根据第一资源监听 D2D通信信号, 并向 基站返回第一响应的步骤类似, 此处不再赘述。  a specific step of the second terminal listening to the D2D communication signal according to the second resource, and returning the third response to the base station. In the method shown in FIG. 33, the second terminal monitors the D2D communication signal according to the first resource, and returns the first response to the base station. The steps are similar and will not be described here.

步骤 2406, 基站在第三响应指示第二终端根据第二资源监听到的 D2D通 信信号的信号强度小于预定强度阈值时, 向第四终端发送第四指令;  Step 2406: The base station sends a fourth instruction to the fourth terminal when the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined strength threshold.

实际应用中, 基站可以将所有已经分配的 D2D 资源发送给第二终端, 由 第二终端根据已分配的 D2D资源监听 D2D通信信号, 并根据监听结果向基站 返回第三响应。 基站将第三响应中指示的第二终端据以监听到的 D2D通信信 号的信号强度小于预定强度阈值的资源确定为初选资源, 并向被分配该初选资 源用以接收 D2D通信信号的终端发送第四指令。  In an actual application, the base station may send all the allocated D2D resources to the second terminal, and the second terminal monitors the D2D communication signal according to the allocated D2D resources, and returns a third response to the base station according to the monitoring result. Determining, by the base station, the resource indicated by the second terminal in the third response that the signal strength of the D2D communication signal that is monitored is less than the predetermined strength threshold is a primary resource, and the terminal that is allocated the primary resource to receive the D2D communication signal Send the fourth command.

步骤 2407, 第四终端监听第一终端发送的发现信号;  Step 2407, the fourth terminal monitors the discovery signal sent by the first terminal.

步骤 2408, 第四终端向基站返回第四响应;  Step 2408: The fourth terminal returns a fourth response to the base station.

该第四响应用于指示第四终端监听到的第一终端发送的发现信号的信号 质量是否小于预定质量阈值。  The fourth response is used to indicate whether the signal quality of the discovery signal sent by the first terminal monitored by the fourth terminal is less than a predetermined quality threshold.

步骤 2409,基站在第四响应指示第四终端监听到的第一终端发送的发现信 号的信号质量小于预定质量阈值时, 将第二资源确定为可复用资源。  Step 2409: The base station determines the second resource as a reusable resource when the fourth response indicates that the signal quality of the discovery signal sent by the first terminal monitored by the fourth terminal is less than a predetermined quality threshold.

若被分配该初选资源用以接收 D2D通信信号的终端监听到的第一终端发 送的发现信号的信号质量小于预定质量阈值, 则基站将该初选资源确定为可复 用资源。  If the signal quality of the discovery signal sent by the first terminal monitored by the terminal that is allocated the primary resource to receive the D2D communication signal is less than a predetermined quality threshold, the base station determines the primary resource as a reusable resource.

步骤 2410, 基站从可复用资源中分配目标资源;  Step 2410: The base station allocates a target resource from the reusable resource.

基站可以结合实际情况或者预先指定的规则,将可复用资源中的部分或者 全部资源分配为目标资源。  The base station may allocate some or all of the resources of the reusable resource as the target resource according to actual conditions or pre-specified rules.

步骤 2411 ,基站将目标资源发送给第一终端和第二终端, 由第一终端根据 目标资源发送 D2D通信信号,并由第二终端根据目标资源接收 D2D通信信号。  Step 2411: The base station sends the target resource to the first terminal and the second terminal, where the first terminal sends the D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource.

需要说明的是, 本发明实施例以基站先考虑分配空闲的 D2D资源, 在空 闲的 D2D 资源不足时, 再考虑复用已分配的资源为例加以说明, 在实际应用 中, 还可以先考虑复用已分配的 D2D 资源, 当已分配的资源中不存在可复用 资源或者可复用资源不足时, 再考虑分配空闲的 D2D资源。 综上所述, 本发明实施例提供的资源分配方法, 基站接收到第一终端发送 的与第二终端建立 D2D通信的请求后, 指示第二终端根据以分配给第四终端 用以接收 D2D通信信号的第二资源监听 D2D通信信号, 并在第二终端监听到 的 D2D通信信号的信号强度小于预定强度阈值时, 指示第四终端监听第一终 端发送的发现信号, 当第四终端监听的发现信号的信号质量小于预定质量阈值 时, 将第二资源确定为可复用资源, 并在可复用资源中分配第一终端用于向第 二终端发送 D2D通信信号的目标资源, 解决了现有技术中当基站覆盖范围内 请求建立 D2D通信的终端数量较多时, 可能出现没有空闲的 D2D资源可供分 配的情形的问题, 达到提高资源利用率和系统容量的目的。 请参见图 35 ,其示出了本发明一个实施例提供的资源分配系统的系统构成 图。该系统可以包括如图 1至图 4任一所述的基站 2501、如图 5至图 8任一所 述的第一终端 25002、 如图 9至图 12任一所述的第二终端 2503以及至少一个 如图 13至图 16任一所述的第三终端 2504和 /或至少一个如图 17至图 20任一 所述第四终端 2505。 It should be noted that, in the embodiment of the present invention, the base station first considers allocating idle D2D resources, and when the idle D2D resources are insufficient, considering multiplexing the allocated resources as an example, in practical applications, the first application may be considered. With the allocated D2D resources, when there are no reusable resources in the allocated resources or when the reusable resources are insufficient, consider allocating idle D2D resources. According to the resource allocation method provided by the embodiment of the present invention, after receiving the request for establishing D2D communication with the second terminal by the first terminal, the base station instructs the second terminal to allocate the D2D communication according to the fourth terminal. The second resource of the signal monitors the D2D communication signal, and when the signal strength of the D2D communication signal monitored by the second terminal is less than the predetermined intensity threshold, instructs the fourth terminal to monitor the discovery signal sent by the first terminal, and the fourth terminal monitors the discovery. When the signal quality of the signal is less than the predetermined quality threshold, determining the second resource as a reusable resource, and allocating, in the reusable resource, the target resource used by the first terminal to send the D2D communication signal to the second terminal, In the technology, when the number of terminals requesting to establish D2D communication within the coverage of the base station is large, there may be a problem that no idle D2D resources are available for allocation, and the purpose of improving resource utilization and system capacity is achieved. Referring to FIG. 35, a system configuration diagram of a resource allocation system according to an embodiment of the present invention is shown. The system may include a base station 2501 as described in any of FIGS. 1 to 4, a first terminal 25002 as described in any of FIGS. 5 to 8, a second terminal 2503 as described in any of FIGS. 9 to 12, and At least one third terminal 2504 as described in any of FIGS. 13 to 16 and/or at least one fourth terminal 2505 as described in any of FIGS. 17 to 20.

综上所述, 本发明实施例提供的资源分配系统, 通过在接收到第一终端发 送的, 与第二终端建立端到端 D2D通信的请求后, 在已经分配的 D2D资源中 确定第一终端和第二终端可复用的资源, 并从可复用资源中分配目标资源, 解 决了现有技术中当基站覆盖范围内请求建立 D2D通信的终端数量较多时, 可 能出现没有空闲的 D2D 资源可供分配的情形的问题, 达到提高资源利用率和 系统容量的目的。 需要说明的是: 上述实施例提供的基站和终端在分配 D2D资源时, 仅以 上述各功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功 能分配由不同的功能模块完成, 即将设备的内部结构划分成不同的功能模块, 以完成以上描述的全部或者部分功能。 另外, 上述实施例提供的基站、 第一终 端、 第二终端、 第三终端和第四终端与资源分配方法实施例属于同一构思。  In summary, the resource allocation system provided by the embodiment of the present invention determines the first terminal in the already allocated D2D resource after receiving the request for establishing end-to-end D2D communication with the second terminal, which is sent by the first terminal. The resource that can be multiplexed with the second terminal, and the target resource is allocated from the reusable resource, which solves the problem that in the prior art, when there are a large number of terminals requesting to establish D2D communication within the coverage of the base station, there may be no idle D2D resources. The problem of the situation for distribution, to achieve the purpose of improving resource utilization and system capacity. It should be noted that, when the D2D resource is allocated, the base station and the terminal provided by the foregoing embodiment are only illustrated by using the foregoing functional modules. In actual applications, the function allocation may be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the base station, the first terminal, the second terminal, the third terminal, and the fourth terminal provided by the foregoing embodiments are in the same concept as the resource allocation method embodiment.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通 过硬件来完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储 于一种计算机可读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘 或光盘等。 以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的 精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的 保护范围之内。 A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims

权 利 要 求 书 claims 1、 一种基站, 其特征在于, 所述基站包括: 1. A base station, characterized in that, the base station includes: 请求接收模块, 用于接收第一终端发送的用于与第二终端建立端到端 D2D 通信的请求; A request receiving module, configured to receive a request sent by the first terminal for establishing end-to-end D2D communication with the second terminal; 资源确定模块, 用于在已经分配的 D2D资源中确定能够被所述第一终端和 所述第二终端复用的可复用资源; A resource determination module, configured to determine reusable resources that can be multiplexed by the first terminal and the second terminal among the allocated D2D resources; 第一资源分配模块, 用于从所述可复用资源中分配目标资源; A first resource allocation module, configured to allocate target resources from the reusable resources; 第一资源发送模块, 用于将所述目标资源发送给所述第一终端, 由所述第 一终端根据所述目标资源发送 D2D通信信号; A first resource sending module, configured to send the target resource to the first terminal, and the first terminal sends a D2D communication signal according to the target resource; 第二资源发送模块, 用于将所述目标资源发送给所述第二终端, 由所述第 二终端根据所述目标资源接收 D2D通信信号。 The second resource sending module is configured to send the target resource to the second terminal, and the second terminal receives the D2D communication signal according to the target resource. 2、 根据权利要求 1所述的基站, 其特征在于, 所述资源确定模块, 包括: 第一指令发送单元, 用于向第三终端发送第一指令, 所述第一指令用于指 示所述第三终端监听所述第一终端发送的发现信号; 2. The base station according to claim 1, characterized in that the resource determination module includes: a first instruction sending unit, configured to send a first instruction to the third terminal, the first instruction being used to instruct the The third terminal monitors the discovery signal sent by the first terminal; 第一响应接收单元, 用于接收所述第三终端返回的第一响应, 所述第一响 应用于指示所述第三终端监听到的所述发现信号的信号质量是否小于预定质量 阈值; A first response receiving unit, configured to receive a first response returned by the third terminal, where the first response is used to indicate whether the signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold; 第二指令发送单元, 用于若所述第一响应指示所述第三终端监听到的所述 发现信号的信号质量小于所述预定质量阈值, 则向所述第二终端发送包含有第 一资源的第二指令, 所述第一资源为已分配给所述第三终端用以接收 D2D通信 信号的 D2D资源, 所述第二指令用于指示所述第二终端根据所述第一资源监听 D2D通信信号; The second instruction sending unit is configured to send the first resource containing the first resource to the second terminal if the first response indicates that the signal quality of the discovery signal monitored by the third terminal is less than the predetermined quality threshold. The second instruction, the first resource is a D2D resource that has been allocated to the third terminal for receiving D2D communication signals, and the second instruction is used to instruct the second terminal to monitor D2D according to the first resource. communication signals; 第二响应接收单元, 用于接收所述第二终端返回的第二响应, 所述第二响 应用于指示所述第二终端根据所述第一资源监听到的 D2D通信信号的信号强度 是否小于预定强度阈值; A second response receiving unit, configured to receive a second response returned by the second terminal, where the second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than Predetermined intensity threshold; 第一确定单元, 用于若接收到的所述第二响应指示所述第二终端根据所述 第一资源监听到的 D2D通信信号的信号强度小于所述预定强度阈值, 则将所述 第一资源确定为所述可复用资源。 A first determining unit configured to, if the received second response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined strength threshold, then set the first The resource is determined to be the reusable resource. 3、 根据权利要求 2所述的基站, 其特征在于, 所述第一响应接收单元, 用 于接收所述第三终端发送的包含有所述第一响应的第一响应帧, 所述第一响应 帧为所述第三终端在接收到所述第一指令后, 根据所述第一资源发送的第一个 D2D通信帧。 3. The base station according to claim 2, characterized in that: the first response receiving unit is configured to receive a first response frame containing the first response sent by the third terminal, and the first response frame is sent by the third terminal. The response frame is the first D2D communication frame sent by the third terminal according to the first resource after receiving the first instruction. 4、 根据权利要求 1所述的基站, 其特征在于, 所述资源确定模块, 包括: 第三指令发送单元, 用于向所述第二终端发送包含有第二资源的第三指令, 所述第二资源为已分配给第四终端用以接收 D2D通信信号的 D2D资源;所述第 三指令用于指示所述第二终端根据所述第二资源监听 D2D通信信号; 4. The base station according to claim 1, characterized in that, the resource determination module includes: a third instruction sending unit, configured to send a third instruction including a second resource to the second terminal, The second resource is a D2D resource that has been allocated to the fourth terminal for receiving the D2D communication signal; the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource; 第三响应接收单元, 用于接收所述第二终端返回的第三响应, 所述第三响 应用于指示所述第二终端根据所述第二资源监听到的 D2D通信信号的信号强度 是否小于预定强度阈值; A third response receiving unit, configured to receive a third response returned by the second terminal, where the third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than Predetermined intensity threshold; 第四指令发送单元, 用于若所述第三响应指示所述第二终端根据所述第二 资源监听到的 D2D通信信号的信号强度小于所述预定强度阈值, 则向所述第四 终端发送第四指令, 所述第四指令用于指示所述第四终端监听所述第一终端发 送的发现信号; A fourth instruction sending unit, configured to send to the fourth terminal if the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined strength threshold. A fourth instruction, the fourth instruction is used to instruct the fourth terminal to monitor the discovery signal sent by the first terminal; 第四响应接收单元, 用于接收所述第四终端返回的第四响应, 所述第四响 应用于指示所述第四终端监听到的所述发现信号的信号质量是否小于预定质量 阈值; A fourth response receiving unit, configured to receive a fourth response returned by the fourth terminal, where the fourth response is used to indicate whether the signal quality of the discovery signal monitored by the fourth terminal is less than a predetermined quality threshold; 第二确定单元, 用于若接收到的所述第四响应指示所述第四终端监听到的 所述发现信号的信号质量小于所述预定质量阈值, 则将所述第二资源确定为所 述可复用资源。 A second determination unit configured to determine the second resource as the second resource if the received fourth response indicates that the signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold. Reusable resources. 5、 根据权利要求 4所述的基站, 其特征在于, 所述第四响应接收单元, 用 于接收所述第四终端发送的包含有所述第四响应的第二响应帧, 所述第二响应 帧为所述第四终端在接收到所述第四指令后, 根据所述第二资源发送的第一个 D2D通信帧。 5. The base station according to claim 4, characterized in that: the fourth response receiving unit is configured to receive a second response frame containing the fourth response sent by the fourth terminal, and the second The response frame is the first D2D communication frame sent by the fourth terminal according to the second resource after receiving the fourth instruction. 6、 根据权利要求 1至 5任一所述的基站, 其特征在于, 所述基站还包括: 第一检测模块, 用于检测从所述可复用资源中分配目标资源之后, 所述目 标资源是否充足; 第二检测模块, 用于若所述第一检测模块的检测结果为所述目标资源不足, 则检测是否存在空闲的 D2D资源; 6. The base station according to any one of claims 1 to 5, characterized in that, the base station further includes: a first detection module, configured to detect that the target resource is allocated from the reusable resources. adequacy; A second detection module, configured to detect whether there are idle D2D resources if the detection result of the first detection module is that the target resources are insufficient; 第二资源分配模块, 用于若所述第二检测模块的检测结果为存在空闲的 D2D资源, 则从所述空闲的 D2D资源中分配所述目标资源。 The second resource allocation module is configured to allocate the target resource from the idle D2D resources if the detection result of the second detection module is that there are idle D2D resources. 7、 根据权利要求 1至 5任一所述的基站, 其特征在于, 所述基站还包括: 第三检测模块, 用于在所述第一资源分配模块从所述可复用资源中分配目 标资源之前, 检测是否存在空闲的 D2D资源; 7. The base station according to any one of claims 1 to 5, characterized in that, the base station further includes: a third detection module, configured to allocate targets from the reusable resources in the first resource allocation module. Before resources, check whether there are idle D2D resources; 第三资源分配模块, 用于若所述第三检测模块的检测结果为存在空闲的 D2D资源, 则从所述空闲的 D2D资源中分配所述目标资源; A third resource allocation module, configured to allocate the target resource from the idle D2D resources if the detection result of the third detection module is that there are idle D2D resources; 第四检测模块,用于检测从所述空闲的 D2D资源中分配所述目标资源之后, 所述目标资源是否充足; The fourth detection module is used to detect whether the target resources are sufficient after allocating the target resources from the idle D2D resources; 所述第一资源分配模块, 用于若所述第四检测模块的检测结果为所述目标 资源不足, 则执行所述从所述可复用资源分配目标资源的步骤。 The first resource allocation module is configured to perform the step of allocating target resources from the reusable resources if the detection result of the fourth detection module is that the target resources are insufficient. 8、 一种基站, 其特征在于, 所述基站包括: 接收机、 处理器和发射机; 所述接收机, 用于接收第一终端发送的用于与第二终端建立端到端 D2D通 信的请求; 8. A base station, characterized in that, the base station includes: a receiver, a processor and a transmitter; the receiver is used to receive a message sent by a first terminal for establishing end-to-end D2D communication with a second terminal. ask; 所述处理器, 用于在已经分配的 D2D资源中确定能够被所述第一终端和所 述第二终端复用的可复用资源; The processor is configured to determine, among the allocated D2D resources, reusable resources that can be multiplexed by the first terminal and the second terminal; 所述处理器, 用于从所述可复用资源中分配目标资源; The processor is configured to allocate target resources from the reusable resources; 所述处理器, 用于控制所述发射机将所述目标资源发送给所述第一终端和 所述第二终端, 由所述第一终端根据所述目标资源发送 D2D通信信号, 并由所 述第二终端根据所述目标资源接收 D2D通信信号。 The processor is configured to control the transmitter to send the target resource to the first terminal and the second terminal, and the first terminal sends a D2D communication signal according to the target resource, and the The second terminal receives a D2D communication signal according to the target resource. 9、 根据权利要求 8所述的基站, 其特征在于, 9. The base station according to claim 8, characterized in that, 所述处理器, 用于控制所述发射机向第三终端发送第一指令, 所述第一指 令用于指示所述第三终端监听所述第一终端发送的发现信号; The processor is configured to control the transmitter to send a first instruction to a third terminal, where the first instruction is used to instruct the third terminal to monitor the discovery signal sent by the first terminal; 所述接收机, 用于接收所述第三终端返回的第一响应, 所述第一响应用于 指示所述第三终端监听到的所述发现信号的信号质量是否小于预定质量阈值; 所述处理器, 用于若所述第一响应指示所述第三终端监听到的所述发现信 号的信号质量小于所述预定质量阈值, 则控制所述发射机向所述第二终端发送 包含有第一资源的第二指令, 所述第一资源为已分配给所述第三终端用以接收 The receiver is configured to receive a first response returned by the third terminal, where the first response is used to indicate whether the signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold; Processor, configured to: if the first response indicates that the discovery signal monitored by the third terminal If the signal quality of the signal is less than the predetermined quality threshold, the transmitter is controlled to send a second instruction including a first resource to the second terminal, where the first resource has been allocated to the third terminal. take over D2D通信信号的 D2D资源,所述第二指令用于指示所述第二终端根据所述第一 资源监听 D2D通信信号; The D2D resource of the D2D communication signal, the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; 所述接收机, 用于接收所述第二终端返回的第二响应, 所述第二响应用于 指示所述第二终端根据所述第一资源监听到的 D2D通信信号的信号强度是否小 于预定强度阈值; The receiver is configured to receive a second response returned by the second terminal, where the second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than a predetermined value. intensity threshold; 所述处理器, 用于若所述接收机接收到的所述第二响应指示所述第二终端 根据所述第一资源监听到的 D2D通信信号的信号强度小于所述预定强度阈值, 则将所述第一资源确定为所述可复用资源。 The processor is configured to: if the second response received by the receiver indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined strength threshold, then The first resource is determined to be the reusable resource. 10、 根据权利要求 9所述的基站, 其特征在于, 所述接收机, 用于接收所 述第三终端发送的包含有所述第一响应的第一响应帧, 所述第一响应帧为所述 第三终端在接收到所述第一指令后, 根据所述第一资源发送的第一个 D2D通信 帧。 10. The base station according to claim 9, characterized in that: the receiver is configured to receive a first response frame containing the first response sent by the third terminal, and the first response frame is After receiving the first instruction, the third terminal sends the first D2D communication frame according to the first resource. 11、 根据权利要求 8所述的基站, 其特征在于, 11. The base station according to claim 8, characterized in that, 所述处理器, 用于控制所述发射机向所述第二终端发送包含有第二资源的 第三指令,所述第二资源为已分配给第四终端用以接收 D2D通信信号的 D2D资 源;所述第三指令用于指示所述第二终端根据所述第二资源监听 D2D通信信号; 所述接收机, 用于接收所述第二终端返回的第三响应, 所述第三响应用于 指示所述第二终端根据所述第二资源监听到的 D2D通信信号的信号强度是否小 于预定强度阈值; The processor is configured to control the transmitter to send a third instruction including a second resource to the second terminal, where the second resource is a D2D resource that has been allocated to a fourth terminal for receiving a D2D communication signal. ; The third instruction is used to instruct the second terminal to monitor D2D communication signals according to the second resource; The receiver is used to receive a third response returned by the second terminal, and the third response uses Instructing the second terminal whether the signal strength of the D2D communication signal monitored by the second resource is less than a predetermined strength threshold; 所述处理器, 用于若所述第三响应指示所述第二终端根据所述第二资源监 听到的 D2D通信信号的信号强度小于所述预定强度阈值, 则控制所述发射机向 所述第四终端发送第四指令, 所述第四指令用于指示所述第四终端监听所述第 一终端发送的发现信号; The processor is configured to, if the third response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined strength threshold, control the transmitter to the The fourth terminal sends a fourth instruction, the fourth instruction is used to instruct the fourth terminal to monitor the discovery signal sent by the first terminal; 所述接收机, 用于接收所述第四终端返回的第四响应, 所述第四响应用于 指示所述第四终端监听到的所述发现信号的信号质量是否小于预定质量阈值; 所述处理器, 用于若所述接收机接收到的所述第四响应指示所述第四终端 监听到的所述发现信号的信号质量小于所述预定质量阈值, 则将所述第二资源 确定为所述可复用资源。 The receiver is configured to receive a fourth response returned by the fourth terminal, where the fourth response is used to indicate whether the signal quality of the discovery signal monitored by the fourth terminal is less than a predetermined quality threshold; A processor configured to, if the fourth response received by the receiver indicates that the signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold, then convert the second resource to Determine it as the reusable resource. 12、 根据权利要求 11所述的基站, 其特征在于, 所述接收机, 用于接收所 述第四终端发送的包含有所述第四响应的第二响应帧, 所述第二响应帧为所述 第四终端在接收到所述第四指令后, 根据所述第二资源发送的第一个 D2D通信 帧。 12. The base station according to claim 11, wherein the receiver is configured to receive a second response frame including the fourth response sent by the fourth terminal, and the second response frame is After receiving the fourth instruction, the fourth terminal sends the first D2D communication frame according to the second resource. 13、 根据权利要求 8至 12任一所述的基站, 其特征在于, 13. The base station according to any one of claims 8 to 12, characterized in that, 所述处理器, 还用于检测从所述可复用资源中分配目标资源之后, 所述目 标资源是否充足; The processor is also configured to detect whether the target resources are sufficient after allocating target resources from the reusable resources; 所述处理器, 用于若检测结果为所述目标资源不足, 则检测是否存在空闲 的 D2D资源; The processor is configured to detect whether there are idle D2D resources if the detection result is that the target resource is insufficient; 所述处理器,用于若检测结果为存在空闲的 D2D资源,则从所述空闲的 D2D 资源中分配所述目标资源。 The processor is configured to allocate the target resource from the idle D2D resource if the detection result is that there is an idle D2D resource. 14、 根据权利要求 8至 12任一所述的基站, 其特征在于 14. The base station according to any one of claims 8 to 12, characterized in that 所述处理器, 用于在从所述可复用资源中分配目标资源之前, 检测是否存 在空闲的 D2D资源; The processor is configured to detect whether there are idle D2D resources before allocating target resources from the reusable resources; 所述处理器,用于若检测结果为存在空闲的 D2D资源,则从所述空闲的 D2D 资源中分配所述目标资源; The processor is configured to allocate the target resource from the idle D2D resource if the detection result is that there is an idle D2D resource; 所述处理器, 用于检测从所述空闲的 D2D资源中分配所述目标资源之后, 所述目标资源是否充足; The processor is configured to detect whether the target resource is sufficient after allocating the target resource from the idle D2D resource; 所述处理器, 用于若检测结果为所述目标资源不足, 则执行所述从所述可 复用资源分配目标资源的步骤。 The processor is configured to perform the step of allocating target resources from the reusable resources if the detection result is that the target resources are insufficient. 15、 第一终端, 其特征在于, 所述第一终端包括: 15. First terminal, characterized in that, the first terminal includes: 请求发送模块, 用于向基站发送用于与第二终端建立端到端 D2D通信的请 求, 所述请求用于指示所述基站在已经分配的 D2D资源中确定能够被所述第一 终端和所述第二终端复用的可复用资源, 并从所述可复用资源中分配目标资源; 第一资源接收模块, 用于接收所述基站发送的目标资源; A request sending module, configured to send a request to the base station for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines in the allocated D2D resources that it can be used by the first terminal and the second terminal. The reusable resources multiplexed by the second terminal, and allocate target resources from the reusable resources; The first resource receiving module is used to receive the target resources sent by the base station; 通信信号发送模块, 用于根据所述目标资源向所述第二终端发送 D2D通信 信号。 a communication signal sending module, configured to send D2D communication to the second terminal according to the target resource Signal. 16、根据权利要求 15所述的第一终端, 其特征在于, 所述第一终端还包括: 发现信号发送模块, 用于周期性发送发现信号。 16. The first terminal according to claim 15, characterized in that, the first terminal further includes: a discovery signal sending module, configured to periodically send a discovery signal. 17、 第一终端, 其特征在于, 所述第一终端包括: 处理器、 发射机和接收 机; 17. The first terminal, characterized in that the first terminal includes: a processor, a transmitter and a receiver; 所述处理器, 用于控制所述发射机向基站发送用于与第二终端建立端到端 D2D通信的请求,所述请求用于指示所述基站在已经分配的 D2D资源中确定能 够被所述第一终端和所述第二终端复用的可复用资源, 并从所述可复用资源中 分配目标资源; The processor is configured to control the transmitter to send a request to the base station for establishing end-to-end D2D communication with the second terminal, where the request is used to indicate that the base station determines that all D2D resources that have been allocated can be used. reusable resources multiplexed by the first terminal and the second terminal, and allocate target resources from the reusable resources; 所述接收机, 用于接收所述基站发送的目标资源; The receiver is used to receive target resources sent by the base station; 所述处理器, 用于控制所述发射机根据所述目标资源向所述第二终端发送 D2D通信信号。 The processor is configured to control the transmitter to send a D2D communication signal to the second terminal according to the target resource. 18、 根据权利要求 17所述的第一终端, 其特征在于, 18. The first terminal according to claim 17, characterized in that, 所述处理器, 还用于控制所述发射机周期性发送发现信号。 The processor is also used to control the transmitter to periodically send a discovery signal. 19、 第二终端, 其特征在于, 所述第二终端包括: 19. Second terminal, characterized in that, the second terminal includes: 第二资源接收模块, 用于接收基站发送的目标资源, 所述目标资源为所述 基站接收到第一终端发送的用于与所述第二终端建立端到端 D2D 通信的请求 后, 在已经分配的 D2D资源中确定能够被所述第一终端和所述第二终端复用的 可复用资源, 并从所述可复用资源中分配的资源; The second resource receiving module is configured to receive a target resource sent by the base station. The target resource is that after the base station receives a request sent by the first terminal for establishing end-to-end D2D communication with the second terminal, Determine reusable resources that can be multiplexed by the first terminal and the second terminal among the allocated D2D resources, and allocate resources from the reusable resources; 通信信号接收模块, 用于根据所述目标资源接收所述第一终端发送的 D2D 通信信号。 A communication signal receiving module, configured to receive the D2D communication signal sent by the first terminal according to the target resource. 20、根据权利要求 19所述的第二终端, 其特征在于, 所述第二终端还包括: 第二指令接收模块, 用于在所述第二资源接收模块接收基站发送的目标资 源之前, 接收所述基站发送的包含有第一资源的第二指令, 所述第一资源为已 分配给第三终端用以接收 D2D通信信号的 D2D资源; 20. The second terminal according to claim 19, characterized in that, the second terminal further includes: a second instruction receiving module, configured to receive the target resource sent by the base station before the second resource receiving module receives The second instruction sent by the base station includes a first resource, and the first resource is a D2D resource that has been allocated to the third terminal for receiving the D2D communication signal; 第一监听模块, 用于根据所述第一资源监听 D2D通信信号; 第五检测模块, 用于检测根据所述第一资源监听到的 D2D通信信号的信号 强度, 获得第一检测结果; A first monitoring module, configured to monitor D2D communication signals according to the first resource; A fifth detection module, configured to detect the signal strength of the D2D communication signal monitored according to the first resource, and obtain a first detection result; 第二响应发送模块, 用于根据所述第一检测结果向所述基站发送第二响应, 所述第二响应用于指示根据所述第一资源监听到的 D2D通信信号的信号强度是 否小于预定强度阈值。 A second response sending module, configured to send a second response to the base station according to the first detection result, the second response being used to indicate whether the signal strength of the D2D communication signal monitored according to the first resource is less than a predetermined value Intensity threshold. 21、根据权利要求 19所述的第二终端, 其特征在于, 所述第二终端还包括: 第三指令接收模块, 用于在所述第二资源接收模块接收基站发送的目标资 源之前, 接收所述基站发送的包含有第二资源的第三指令, 所述第二资源为已 分配给第四终端用以接收 D2D通信信号的资源; 21. The second terminal according to claim 19, characterized in that, the second terminal further includes: a third instruction receiving module, configured to receive the target resource sent by the base station before the second resource receiving module receives The third instruction sent by the base station includes a second resource, and the second resource is a resource that has been allocated to the fourth terminal for receiving D2D communication signals; 第二监听模块, 用于根据所述第二资源监听 D2D通信信号; A second monitoring module, configured to monitor D2D communication signals according to the second resource; 第六检测模块, 用于检测根据所述第二资源监听到的 D2D通信信号的信号 强度, 获得第二检测结果; The sixth detection module is used to detect the signal strength of the D2D communication signal monitored according to the second resource, and obtain the second detection result; 第三响应发送模块, 用于根据所述第二检测结果向所述基站发送第三响应, 所述第三响应用于指示根据所述第二资源监听到的 D2D通信信号的信号强度是 否小于预定强度阈值。 A third response sending module, configured to send a third response to the base station according to the second detection result, the third response being used to indicate whether the signal strength of the D2D communication signal monitored according to the second resource is less than a predetermined value Intensity threshold. 22、 第二终端, 其特征在于, 所述第二终端包括: 接收机和处理器; 所述接收机, 用于接收基站发送的目标资源, 所述目标资源为所述基站接 收到第一终端发送的用于与所述第二终端建立端到端 D2D通信的请求后, 在已 经分配的 D2D资源中确定能够被所述第一终端和所述第二终端复用的可复用资 源, 并从所述可复用资源中分配的资源; 22. The second terminal, characterized in that, the second terminal includes: a receiver and a processor; the receiver is used to receive target resources sent by the base station, and the target resources are the first terminal received by the base station After sending a request for establishing end-to-end D2D communication with the second terminal, determine reusable resources that can be multiplexed by the first terminal and the second terminal among the allocated D2D resources, and Resources allocated from said reusable resources; 所述处理器, 用于控制所述接收机根据所述目标资源接收所述第一终端发 送的 D2D通信信号。 The processor is configured to control the receiver to receive the D2D communication signal sent by the first terminal according to the target resource. 23、根据权利要求 22所述的第二终端, 其特征在于, 所述第二终端还包括: 发射机; 23. The second terminal according to claim 22, characterized in that, the second terminal further includes: a transmitter; 所述接收机, 还用于在接收基站发送的目标资源之前, 接收所述基站发送 的包含有第一资源的第二指令, 所述第一资源为已分配给第三终端用以接收 D2D通信信号的 D2D资源; The receiver is further configured to receive a second instruction containing a first resource sent by the base station before receiving the target resource sent by the base station. The first resource has been allocated to the third terminal for receiving D2D communication. D2D resources of signals; 所述处理器, 用于控制所述接收机根据所述第一资源监听 D2D通信信号; 所述处理器, 用于检测根据所述第一资源监听到的 D2D通信信号的信号强 度, 获得第一检测结果; The processor is configured to control the receiver to monitor D2D communication signals according to the first resource; The processor is configured to detect the signal strength of the D2D communication signal monitored according to the first resource, and obtain a first detection result; 所述处理器, 用于控制所述发射机根据所述第一检测结果向所述基站发送 第二响应, 所述第二响应用于指示根据所述第一资源监听到的 D2D通信信号的 信号强度是否小于预定强度阈值。 The processor is configured to control the transmitter to send a second response to the base station according to the first detection result, where the second response is used to indicate a signal of the D2D communication signal monitored according to the first resource. Whether the intensity is less than a predetermined intensity threshold. 24、根据权利要求 22所述的第二终端, 其特征在于, 所述第二终端还包括: 发射机; 24. The second terminal according to claim 22, characterized in that, the second terminal further includes: a transmitter; 所述接收机, 用于在接收基站发送的目标资源之前, 接收所述基站发送的 包含有第二资源的第三指令, 所述第二资源为已分配给第四终端用以接收 D2D 通信信号的资源; The receiver is configured to receive a third instruction including a second resource sent by the base station before receiving the target resource sent by the base station. The second resource has been allocated to the fourth terminal for receiving D2D communication signals. H; 所述处理器, 用于控制所述接收机根据所述第二资源监听 D2D通信信号; 所述处理器, 用于检测根据所述第二资源监听到的 D2D通信信号的信号强 度, 获得第二检测结果; The processor is used to control the receiver to monitor the D2D communication signal according to the second resource; the processor is used to detect the signal strength of the D2D communication signal monitored according to the second resource, and obtain the second Test results; 所述处理器, 用于控制所述发射机根据所述第二检测结果向所述基站发送 第三响应, 所述第三响应用于指示根据所述第二资源监听到的 D2D通信信号的 信号强度是否小于预定强度阈值。 The processor is configured to control the transmitter to send a third response to the base station according to the second detection result, where the third response is used to indicate a signal of the D2D communication signal monitored according to the second resource. Whether the intensity is less than a predetermined intensity threshold. 25、 第三终端, 其特征在于, 所述第三终端包括: 25. The third terminal, characterized in that, the third terminal includes: 第一指令接收模块, 用于接收基站发送的第一指令, 所述第一指令为所述 基站在接收到第一终端发送的用于与第二终端建立 D2D通信的请求后发送的指 令; A first instruction receiving module, configured to receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request sent by the first terminal for establishing D2D communication with the second terminal; 第三监听模块, 用于监听所述第一终端发送的发现信号; A third monitoring module, configured to monitor the discovery signal sent by the first terminal; 第七检测模块, 用于检测所述第三监听模块监听到的所述发现信号的信号 质量, 获得第三检测结果; A seventh detection module, configured to detect the signal quality of the discovery signal monitored by the third listening module, and obtain a third detection result; 第一响应发送模块, 用于根据所述第三检测结果向所述基站发送第一响应; 由所述基站在所述第一响应指示监听到的所述发现信号的信号质量小于预定质 量阈值时, 向所述第二终端发送包含有第一资源的第二指令, 并接收所述第二 终端返回的第二响应, 并在所述第二响应指示所述第二终端根据所述第一资源 监听到的 D2D通信信号的信号强度小于预定强度阈值时, 将所述第一资源确定 为可复用资源, 从所述可复用资源中分配目标资源, 并将所述目标资源发送给 所述第一终端和所述第二终端, 由所述第一终端根据所述目标资源发送 D2D通 信信号, 并由所述第二终端根据所述目标资源接收 D2D通信信号; a first response sending module, configured to send a first response to the base station according to the third detection result; when the first response indicates that the signal quality of the discovery signal monitored by the base station is less than a predetermined quality threshold , sending a second instruction including the first resource to the second terminal, receiving a second response returned by the second terminal, and instructing the second terminal in the second response to use the first resource When the signal strength of the monitored D2D communication signal is less than the predetermined strength threshold, the first resource is determined to be a reusable resource, a target resource is allocated from the reusable resource, and the target resource is sent to The first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource; 其中, 所述第一资源为已分配给所述第三终端用以接收 D2D 通信信号的 D2D资源,所述第二指令用于指示所述第二终端根据所述第一资源监听 D2D通 信信号; 所述第二响应用于指示所述第二终端根据所述第一资源监听到的 D2D 通信信号的信号强度是否小于所述预定强度阈值。 Wherein, the first resource is a D2D resource that has been allocated to the third terminal for receiving a D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; The second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined strength threshold. 26、 根据权利要求 25所述的第三终端, 其特征在于, 所述第一响应发送模 块, 用于向所述基站发送包含有所述第一响应的第一响应帧, 所述第一响应帧 为在接收到所述第一指令后, 根据所述第一资源发送的第一个 D2D通信帧。 26. The third terminal according to claim 25, characterized in that: the first response sending module is configured to send a first response frame including the first response to the base station, and the first response The frame is the first D2D communication frame sent according to the first resource after receiving the first instruction. 27、 第三终端, 其特征在于, 所述第三终端包括: 接收机、 处理器和发射 机; 27. The third terminal, characterized in that the third terminal includes: a receiver, a processor and a transmitter; 所述接收机, 用于接收基站发送的第一指令, 所述第一指令为所述基站在 接收到第一终端发送的用于与第二终端建立 D2D通信的请求后发送的指令; 所述处理器, 用于控制所述接收机监听所述第一终端发送的发现信号; 所述处理器, 用于检测监听到的所述发现信号的信号质量, 获得第三检测 结果; The receiver is configured to receive a first instruction sent by the base station, where the first instruction is an instruction sent by the base station after receiving a request sent by the first terminal for establishing D2D communication with the second terminal; The processor is configured to control the receiver to monitor the discovery signal sent by the first terminal; the processor is configured to detect the signal quality of the detected discovery signal and obtain a third detection result; 所述处理器, 用于控制所述发射机根据所述第三检测结果向所述基站发送 第一响应; 由所述基站在所述第一响应指示监听到的所述发现信号的信号质量 小于预定质量阈值时, 向所述第二终端发送包含有第一资源的第二指令, 并接 收所述第二终端返回的第二响应, 并在所述第二响应指示所述第二终端根据所 述第一资源监听到的 D2D通信信号的信号强度小于预定强度阈值时, 将所述第 一资源确定为可复用资源, 从所述可复用资源中分配目标资源, 并将所述目标 资源发送给所述第一终端和所述第二终端, 由所述第一终端根据所述目标资源 发送 D2D通信信号, 并由所述第二终端根据所述目标资源接收 D2D通信信号; 其中, 所述第一资源为已分配给所述第三终端用以接收 D2D 通信信号的 D2D资源,所述第二指令用于指示所述第二终端根据所述第一资源监听 D2D通 信信号; 所述第二响应用于指示所述第二终端根据所述第一资源监听到的 D2D 通信信号的信号强度是否小于所述预定强度阈值。 The processor is configured to control the transmitter to send a first response to the base station according to the third detection result; the signal quality of the discovery signal monitored by the base station indicated by the first response is less than When predetermining the quality threshold, sending a second instruction including the first resource to the second terminal, receiving a second response returned by the second terminal, and instructing the second terminal according to the second response. When the signal strength of the D2D communication signal monitored by the first resource is less than a predetermined strength threshold, the first resource is determined to be a reusable resource, a target resource is allocated from the reusable resource, and the target resource is Sent to the first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource; wherein, The first resource is a D2D resource that has been allocated to the third terminal for receiving a D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; The second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined strength threshold. 28、 根据权利要求 27所述的第二终端, 其特征在于, 所述处理器, 用于控 制所述发射机向所述基站发送包含有所述第一响应的第一响应帧, 所述第一响 应帧为在接收到所述第一指令后,根据所述第一资源发送的第一个 D2D通信帧。 28. The second terminal according to claim 27, characterized in that: the processor is configured to control the transmitter to send a first response frame including the first response to the base station; A response frame is the first D2D communication frame sent according to the first resource after receiving the first instruction. 29、 第四终端, 其特征在于, 所述第四终端包括: 29. The fourth terminal, characterized in that, the fourth terminal includes: 第四指令接收模块, 用于接收基站发送的第四指令; 所述第四指令为所述 基站在接收到第一终端发送的用于与第二终端建立 D2D通信的请求, 向所述第 二终端发送包含有第二资源的第三指令, 接收所述第二终端返回的第三响应, 并在所述第三响应指示所述第二终端根据所述第二资源监听到的 D2D通信信号 的信号强度小于预定强度阈值时发送的指令; 所述第二资源为已分配给所述第 四终端用以接收 D2D通信信号的资源, 所述第三指令用于指示所述第二终端根 据所述第二资源监听 D2D通信信号, 所述第三响应用于指示所述第二终端根据 所述第二资源监听到的 D2D通信信号的信号强度是否小于所述预定强度阈值; 第四监听模块, 用于监听所述第一终端发送的发现信号; A fourth instruction receiving module, configured to receive a fourth instruction sent by the base station; the fourth instruction is that the base station receives a request sent by the first terminal for establishing D2D communication with the second terminal, and sends the request to the second terminal. The terminal sends a third instruction including the second resource, receives a third response returned by the second terminal, and instructs the second terminal according to the D2D communication signal monitored by the second resource in the third response. An instruction sent when the signal strength is less than a predetermined strength threshold; the second resource is a resource that has been allocated to the fourth terminal for receiving D2D communication signals, and the third instruction is used to instruct the second terminal according to the The second resource monitors the D2D communication signal, and the third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined strength threshold; the fourth monitoring module, with Monitoring the discovery signal sent by the first terminal; 第八检测模块, 用于检测监听到的所述发现信号的信号质量, 获得第四检 测结果; The eighth detection module is used to detect the signal quality of the detected discovery signal and obtain the fourth detection result; 第四响应发送模块, 用于根据所述第四检测结果向所述基站发送第四响应; 所述第四响应用于指示监听到的所述发现信号的信号质量是否小于预定质量阈 值; 由所述基站在所述第四响应指示监听到的所述发现信号的信号质量小于所 述预定质量阈值时, 将所述第二资源确定为可复用资源, 从所述可复用资源中 分配目标资源, 并将所述目标资源发送给所述第一终端和所述第二终端, 由所 述第一终端根据所述目标资源发送 D2D通信信号, 并由所述第二终端根据所述 目标资源接收 D2D通信信号。 A fourth response sending module, configured to send a fourth response to the base station according to the fourth detection result; the fourth response is used to indicate whether the signal quality of the monitored discovery signal is less than a predetermined quality threshold; When the signal quality of the discovery signal monitored by the fourth response indication is less than the predetermined quality threshold, the base station determines the second resource as a reusable resource and allocates a target from the reusable resource. resources, and sends the target resource to the first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal sends a D2D communication signal according to the target resource. Receive D2D communication signals. 30、 根据权利要求 29所述的第四终端, 其特征在于, 所述第四响应发送模 块, 用于向所述基站发送包含有所述第四响应的第二响应帧, 所述第二响应帧 为所述在接收到所述第四指令后,根据所述第二资源发送的第一个 D2D通信帧。 30. The fourth terminal according to claim 29, characterized in that: the fourth response sending module is configured to send a second response frame including the fourth response to the base station, and the second response The frame is the first D2D communication frame sent according to the second resource after receiving the fourth instruction. 31、 第四终端, 其特征在于, 所述第四终端包括: 接收机、 处理器和发射 机; 31. The fourth terminal, characterized in that the fourth terminal includes: a receiver, a processor and a transmitter; 所述接收机, 用于接收基站发送的第四指令; 所述第四指令为所述基站在 接收到第一终端发送的用于与第二终端建立 D2D通信的请求, 向所述第二终端 发送包含有第二资源的第三指令, 接收所述第二终端返回的第三响应, 并在所 述第三响应指示所述第二终端根据所述第二资源监听到的 D2D通信信号的信号 强度小于预定强度阈值时发送的指令; 所述第二资源为已分配给所述第四终端 用以接收 D2D通信信号的资源, 所述第三指令用于指示所述第二终端根据所述 第二资源监听 D2D通信信号, 所述第三响应用于指示所述第二终端根据所述第 二资源监听到的 D2D通信信号的信号强度是否小于所述预定强度阈值; The receiver is configured to receive a fourth instruction sent by the base station; the fourth instruction is for the base station to Receive a request sent by the first terminal for establishing D2D communication with the second terminal, send a third instruction including the second resource to the second terminal, receive the third response returned by the second terminal, and The third response indicates an instruction sent by the second terminal when the signal strength of the D2D communication signal monitored by the second resource is less than a predetermined strength threshold; the second resource is allocated to the fourth terminal. resources to receive D2D communication signals, the third instruction is used to instruct the second terminal to monitor the D2D communication signal according to the second resource, and the third response is used to instruct the second terminal to monitor the D2D communication signal according to the second resource. Whether the signal strength of the D2D communication signal monitored by the resource is less than the predetermined strength threshold; 所述处理器, 用于控制所述接收机监听所述第一终端发送的发现信号; 所述处理器, 用于检测监听到的所述发现信号的信号质量, 获得第四检测 结果; The processor is used to control the receiver to monitor the discovery signal sent by the first terminal; the processor is used to detect the signal quality of the detected discovery signal, and obtain a fourth detection result; 所述处理器, 用于控制所述发射机根据所述第四检测结果向所述基站发送 第四响应; 所述第四响应用于指示监听到的所述发现信号的信号质量是否小于 预定质量阈值; 由所述基站在所述第四响应指示监听到的所述发现信号的信号 质量小于所述预定质量阈值时, 将所述第二资源确定为可复用资源, 从所述可 复用资源中分配目标资源, 并将所述目标资源发送给所述第一终端和所述第二 终端, 由所述第一终端根据所述目标资源发送 D2D通信信号, 并由所述第二终 端根据所述目标资源接收 D2D通信信号。 The processor is configured to control the transmitter to send a fourth response to the base station according to the fourth detection result; the fourth response is used to indicate whether the signal quality of the monitored discovery signal is less than a predetermined quality. Threshold; When the signal quality of the discovery signal monitored by the fourth response indication is less than the predetermined quality threshold, the base station determines the second resource as a reusable resource, and determines the second resource as a reusable resource. Allocate target resources among the resources, and send the target resources to the first terminal and the second terminal. The first terminal sends a D2D communication signal according to the target resource, and the second terminal sends a D2D communication signal according to the target resource. The target resource receives D2D communication signals. 32、 根据权利要求 31所述的第四终端, 其特征在于, 所述处理器, 用于控 制所述发射机向所述基站发送包含有所述第四响应的第二响应帧, 所述第二响 应帧为所述在接收到所述第四指令后, 根据所述第二资源发送的第一个 D2D通 信帧。 32. The fourth terminal according to claim 31, characterized in that: the processor is configured to control the transmitter to send a second response frame including the fourth response to the base station; The second response frame is the first D2D communication frame sent according to the second resource after receiving the fourth instruction. 33、 一种资源分配方法, 用于基站中, 其特征在于, 所述方法包括: 接收第一终端发送的用于与第二终端建立端到端 D2D通信的请求; 在已经分配的 D2D资源中确定能够被所述第一终端和所述第二终端复用的 可复用资源; 33. A resource allocation method used in a base station, characterized in that the method includes: receiving a request sent by the first terminal for establishing end-to-end D2D communication with the second terminal; among the allocated D2D resources Determine reusable resources that can be multiplexed by the first terminal and the second terminal; 从所述可复用资源中分配目标资源; Allocate target resources from the reusable resources; 将所述目标资源发送给所述第一终端和所述第二终端, 由所述第一终端根 据所述目标资源发送 D2D通信信号, 并由所述第二终端根据所述目标资源接收 D2D通信信号。 The target resource is sent to the first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication according to the target resource. Signal. 34、 根据权利要求 33 所述的方法, 其特征在于, 所述在已经分配的 D2D 资源中确定能够被所述第一终端和所述第二终端复用的可复用资源, 包括: 向第三终端发送第一指令, 所述第一指令用于指示所述第三终端监听所述 第一终端发送的发现信号; 34. The method according to claim 33, wherein determining the reusable resources that can be multiplexed by the first terminal and the second terminal among the allocated D2D resources includes: The third terminal sends a first instruction, the first instruction is used to instruct the third terminal to monitor the discovery signal sent by the first terminal; 接收所述第三终端返回的第一响应, 所述第一响应用于指示所述第三终端 监听到的所述发现信号的信号质量是否小于预定质量阈值; Receive a first response returned by the third terminal, where the first response is used to indicate whether the signal quality of the discovery signal monitored by the third terminal is less than a predetermined quality threshold; 若所述第一响应指示所述第三终端监听到的所述发现信号的信号质量小于 所述预定质量阈值, 则向所述第二终端发送包含有第一资源的第二指令, 所述 第一资源为已分配给所述第三终端用以接收 D2D通信信号的 D2D资源,所述第 二指令用于指示所述第二终端根据所述第一资源监听 D2D通信信号; If the first response indicates that the signal quality of the discovery signal monitored by the third terminal is less than the predetermined quality threshold, then sending a second instruction including the first resource to the second terminal, One resource is a D2D resource that has been allocated to the third terminal for receiving D2D communication signals, and the second instruction is used to instruct the second terminal to monitor D2D communication signals according to the first resource; 接收所述第二终端返回的第二响应, 所述第二响应用于指示所述第二终端 根据所述第一资源监听到的 D2D通信信号的信号强度是否小于预定强度阈值; 若接收到的所述第二响应指示所述第二终端根据所述第一资源监听到的 D2D通信信号的信号强度小于所述预定强度阈值, 则将所述第一资源确定为所 述可复用资源。 Receive a second response returned by the second terminal, where the second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than a predetermined strength threshold; if the received If the second response indicates that the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined strength threshold, then the first resource is determined to be the reusable resource. 35、 根据权利要求 34所述的方法, 其特征在于, 所述接收所述第三终端返 回的第一响应, 包括: 35. The method according to claim 34, wherein receiving the first response returned by the third terminal includes: 接收所述第三终端发送的包含有所述第一响应的第一响应帧, 所述第一响 应帧为所述第三终端在接收到所述第一指令后, 根据所述第一资源发送的第一 个 D2D通信帧。 Receive a first response frame including the first response sent by the third terminal, where the first response frame is sent by the third terminal according to the first resource after receiving the first instruction. The first D2D communication frame. 36、 根据权利要求 33 所述的方法, 其特征在于, 所述在已经分配的 D2D 资源中确定能够被所述第一终端和所述第二终端复用的可复用资源, 包括: 向所述第二终端发送包含有第二资源的第三指令, 所述第二资源为已分配 给第四终端用以接收 D2D通信信号的 D2D资源;所述第三指令用于指示所述第 二终端根据所述第二资源监听 D2D通信信号; 36. The method according to claim 33, wherein determining the reusable resources that can be multiplexed by the first terminal and the second terminal among the allocated D2D resources includes: The second terminal sends a third instruction including a second resource, the second resource is a D2D resource that has been allocated to the fourth terminal for receiving a D2D communication signal; the third instruction is used to instruct the second terminal Monitor D2D communication signals according to the second resource; 接收所述第二终端返回的第三响应, 所述第三响应用于指示所述第二终端 根据所述第二资源监听到的 D2D通信信号的信号强度是否小于预定强度阈值; 若所述第三响应指示所述第二终端根据所述第二资源监听到的 D2D通信信 号的信号强度小于所述预定强度阈值, 则向所述第四终端发送第四指令, 所述 第四指令用于指示所述第四终端监听所述第一终端发送的发现信号; Receive a third response returned by the second terminal, where the third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined strength threshold; if the first The third response indicates that the second terminal monitors the D2D communication signal based on the second resource. If the signal strength of the signal is less than the predetermined strength threshold, a fourth instruction is sent to the fourth terminal, where the fourth instruction is used to instruct the fourth terminal to monitor the discovery signal sent by the first terminal; 接收所述第四终端返回的第四响应, 所述第四响应用于指示所述第四终端 监听到的所述发现信号的信号质量是否小于预定质量阈值; Receive a fourth response returned by the fourth terminal, where the fourth response is used to indicate whether the signal quality of the discovery signal monitored by the fourth terminal is less than a predetermined quality threshold; 若接收到的所述第四响应指示所述第四终端监听到的所述发现信号的信号 质量小于所述预定质量阈值, 则将所述第二资源确定为所述可复用资源。 If the received fourth response indicates that the signal quality of the discovery signal monitored by the fourth terminal is less than the predetermined quality threshold, the second resource is determined as the reusable resource. 37、 根据权利要求 36所述的方法, 其特征在于, 所述接收所述第四终端返 回的第四响应, 包括: 37. The method according to claim 36, wherein receiving the fourth response returned by the fourth terminal includes: 接收所述第四终端发送的包含有所述第四响应的第二响应帧, 所述第二响 应帧为所述第四终端在接收到所述第四指令后, 根据所述第二资源发送的第一 个 D2D通信帧。 Receive a second response frame including the fourth response sent by the fourth terminal, where the second response frame is sent by the fourth terminal according to the second resource after receiving the fourth instruction. The first D2D communication frame. 38、 根据权利要求 33至 37任一所述的方法, 其特征在于, 所述方法还包 括: 38. The method according to any one of claims 33 to 37, characterized in that the method further includes: 检测从所述可复用资源中分配目标资源之后, 所述目标资源是否充足; 若检测结果为所述目标资源不足, 则检测是否存在空闲的 D2D资源; 若检测结果为存在空闲的 D2D资源,则从所述空闲的 D2D资源中分配所述 目标资源。 Detect whether the target resources are sufficient after allocating the target resources from the reusable resources; if the detection result is that the target resources are insufficient, detect whether there are idle D2D resources; if the detection result is that there are idle D2D resources, Then the target resource is allocated from the idle D2D resource. 39、 根据权利要求 33至 37任一所述的方法, 其特征在于, 所述从所述可 复用资源中分配目标资源之前, 所述方法还包括: 39. The method according to any one of claims 33 to 37, characterized in that, before allocating target resources from the reusable resources, the method further includes: 检测是否存在空闲的 D2D资源; Detect whether there are free D2D resources; 若检测结果为存在空闲的 D2D资源,则从所述空闲的 D2D资源中分配所述 目标资源; If the detection result is that there are idle D2D resources, allocate the target resources from the idle D2D resources; 检测从所述空闲的 D2D资源中分配所述目标资源之后, 所述目标资源是否 充足; Detect whether the target resource is sufficient after allocating the target resource from the idle D2D resource; 若检测结果为所述目标资源不足, 则执行所述从所述可复用资源分配目标 资源的步骤。 If the detection result is that the target resources are insufficient, the step of allocating target resources from the reusable resources is performed. 40、 一种资源分配方法, 用于第一终端中, 其特征在于, 所述方法包括: 向基站发送用于与第二终端建立端到端 D2D通信的请求, 所述请求用于指 示所述基站在已经分配的 D2D资源中确定能够被所述第一终端和所述第二终端 复用的可复用资源, 并从所述可复用资源中分配目标资源; 40. A resource allocation method, used in the first terminal, characterized in that the method includes: Send a request to the base station for establishing end-to-end D2D communication with the second terminal, the request is used to indicate that the base station determines that the allocated D2D resources can be multiplexed by the first terminal and the second terminal. reusable resources, and allocate target resources from the reusable resources; 接收所述基站发送的目标资源; Receive target resources sent by the base station; 根据所述目标资源向所述第二终端发送 D2D通信信号。 Send a D2D communication signal to the second terminal according to the target resource. 41、 根据权利要求 40所述的方法, 其特征在于, 所述方法还包括: 周期性发送发现信号。 41. The method according to claim 40, characterized in that the method further includes: periodically sending a discovery signal. 42、 一种资源分配方法, 用于第二终端中, 其特征在于, 所述方法包括: 接收基站发送的目标资源, 所述目标资源为所述基站接收到第一终端发送 的用于与所述第二终端建立端到端 D2D通信的请求后,在已经分配的 D2D资源 中确定能够被所述第一终端和所述第二终端复用的可复用资源, 并从所述可复 用资源中分配的资源; 42. A resource allocation method for use in a second terminal, characterized in that the method includes: receiving a target resource sent by a base station, where the target resource is a resource sent by the base station for communication with the first terminal. After the second terminal establishes a request for end-to-end D2D communication, it determines reusable resources that can be multiplexed by the first terminal and the second terminal among the allocated D2D resources, and determines from the reusable resources resources allocated in resources; 根据所述目标资源接收所述第一终端发送的 D2D通信信号。 Receive a D2D communication signal sent by the first terminal according to the target resource. 43、 根据权利要求 42所述的方法, 其特征在于, 所述接收基站发送的目标 资源之前, 所述方法还包括: 43. The method according to claim 42, characterized in that, before receiving the target resource sent by the base station, the method further includes: 接收所述基站发送的包含有第一资源的第二指令, 所述第一资源为已分配 给第三终端用以接收 D2D通信信号的 D2D资源; Receive a second instruction including a first resource sent by the base station, where the first resource is a D2D resource that has been allocated to a third terminal for receiving a D2D communication signal; 根据所述第一资源监听 D2D通信信号; Monitor D2D communication signals according to the first resource; 检测根据所述第一资源监听到的 D2D通信信号的信号强度, 获得第一检测 结果; Detect the signal strength of the D2D communication signal monitored according to the first resource, and obtain a first detection result; 根据所述第一检测结果向所述基站发送第二响应, 所述第二响应用于指示 根据所述第一资源监听到的 D2D通信信号的信号强度是否小于预定强度阈值。 A second response is sent to the base station according to the first detection result, and the second response is used to indicate whether the signal strength of the D2D communication signal monitored according to the first resource is less than a predetermined strength threshold. 44、 根据权利要求 42所述的方法, 其特征在于, 所述接收基站发送的目标 资源之前, 所述方法还包括: 44. The method according to claim 42, characterized in that, before receiving the target resource sent by the base station, the method further includes: 接收所述基站发送的包含有第二资源的第三指令, 所述第二资源为已分配 给第四终端用以接收 D2D通信信号的资源; Receive a third instruction including a second resource sent by the base station, where the second resource is a resource that has been allocated to the fourth terminal for receiving the D2D communication signal; 根据所述第二资源监听 D2D通信信号; 检测根据所述第二资源监听到的 D2D通信信号的信号强度, 获得第二检测 结果; Monitor D2D communication signals according to the second resource; Detect the signal strength of the D2D communication signal monitored according to the second resource, and obtain a second detection result; 根据所述第二检测结果向所述基站发送第三响应, 所述第三响应用于指示 根据所述第二资源监听到的 D2D通信信号的信号强度是否小于预定强度阈值。 Send a third response to the base station according to the second detection result, where the third response is used to indicate whether the signal strength of the D2D communication signal monitored according to the second resource is less than a predetermined strength threshold. 45、 一种资源分配方法, 用于第三终端中, 其特征在于, 所述方法包括: 接收基站发送的第一指令, 所述第一指令为所述基站在接收到第一终端发 送的用于与第二终端建立 D2D通信的请求后发送的指令; 45. A resource allocation method, used in a third terminal, characterized in that the method includes: receiving a first instruction sent by a base station, where the first instruction is a user instruction sent by the base station after receiving it from the first terminal. An instruction sent after a request to establish D2D communication with the second terminal; 监听所述第一终端发送的发现信号; Monitor the discovery signal sent by the first terminal; 检测监听到的所述发现信号的信号质量, 获得第三检测结果; Detect the signal quality of the detected discovery signal, and obtain a third detection result; 根据所述第三检测结果向所述基站发送第一响应; 由所述基站在所述第一 响应指示监听到的所述发现信号的信号质量小于预定质量阈值时, 向所述第二 终端发送包含有第一资源的第二指令, 并接收所述第二终端返回的第二响应, 并在所述第二响应指示所述第二终端根据所述第一资源监听到的 D2D通信信号 的信号强度小于预定强度阈值时, 将所述第一资源确定为可复用资源, 从所述 可复用资源中分配目标资源, 并将所述目标资源发送给所述第一终端和所述第 二终端, 由所述第一终端根据所述目标资源发送 D2D通信信号, 并由所述第二 终端根据所述目标资源接收 D2D通信信号; Send a first response to the base station according to the third detection result; when the first response indicates that the signal quality of the detected discovery signal is less than a predetermined quality threshold, the base station sends to the second terminal Containing a second instruction of the first resource, receiving a second response returned by the second terminal, and instructing the second terminal in the second response to a signal of the D2D communication signal monitored by the first resource. When the intensity is less than a predetermined intensity threshold, determine the first resource as a reusable resource, allocate a target resource from the reusable resource, and send the target resource to the first terminal and the second terminal. Terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource; 其中, 所述第一资源为已分配给所述第三终端用以接收 D2D 通信信号的 D2D资源,所述第二指令用于指示所述第二终端根据所述第一资源监听 D2D通 信信号; 所述第二响应用于指示所述第二终端根据所述第一资源监听到的 D2D 通信信号的信号强度是否小于所述预定强度阈值。 Wherein, the first resource is a D2D resource that has been allocated to the third terminal for receiving a D2D communication signal, and the second instruction is used to instruct the second terminal to monitor the D2D communication signal according to the first resource; The second response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the first resource is less than the predetermined strength threshold. 46、 根据权利要求 45所述的方法, 其特征在于, 所述根据所述第三检测结 果向所述基站发送第一响应, 包括: 46. The method according to claim 45, wherein sending a first response to the base station according to the third detection result includes: 向所述基站发送包含有所述第一响应的第一响应帧, 所述第一响应帧为在 接收到所述第一指令后, 根据所述第一资源发送的第一个 D2D通信帧。 Send a first response frame including the first response to the base station, where the first response frame is the first D2D communication frame sent according to the first resource after receiving the first instruction. 47、 一种资源分配方法, 用于第四终端中, 其特征在于, 所述方法包括: 接收基站发送的第四指令; 所述第四指令为所述基站在接收到第一终端发 送的用于与第二终端建立 D2D通信的请求, 向所述第二终端发送包含有第二资 源的第三指令, 接收所述第二终端返回的第三响应, 并在所述第三响应指示所 述第二终端根据所述第二资源监听到的 D2D通信信号的信号强度小于预定强度 阈值时发送的指令; 所述第二资源为已分配给所述第四终端用以接收 D2D通信 信号的资源, 所述第三指令用于指示所述第二终端根据所述第二资源监听 D2D 通信信号, 所述第三响应用于指示所述第二终端根据所述第二资源监听到的 D2D通信信号的信号强度是否小于所述预定强度阈值; 47. A resource allocation method, used in a fourth terminal, characterized in that, the method includes: receiving a fourth instruction sent by a base station; the fourth instruction is a user instruction sent by the base station after receiving it from the first terminal. In response to a request to establish D2D communication with the second terminal, sending a message containing the second information to the second terminal. A third instruction from the source, receiving a third response returned by the second terminal, and indicating in the third response that the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than a predetermined strength threshold. an instruction sent when; the second resource is a resource that has been allocated to the fourth terminal for receiving D2D communication signals, and the third instruction is used to instruct the second terminal to monitor D2D communication according to the second resource signal, the third response is used to indicate whether the signal strength of the D2D communication signal monitored by the second terminal according to the second resource is less than the predetermined strength threshold; 监听所述第一终端发送的发现信号; Monitor the discovery signal sent by the first terminal; 检测监听到的所述发现信号的信号质量, 获得第四检测结果; Detect the signal quality of the detected discovery signal, and obtain a fourth detection result; 根据所述第四检测结果向所述基站发送第四响应; 所述第四响应用于指示 监听到的所述发现信号的信号质量是否小于预定质量阈值; 由所述基站在所述 第四响应指示监听到的所述发现信号的信号质量小于所述预定质量阈值时, 将 所述第二资源确定为可复用资源, 从所述可复用资源中分配目标资源, 并将所 述目标资源发送给所述第一终端和所述第二终端, 由所述第一终端根据所述目 标资源发送 D2D通信信号,并由所述第二终端根据所述目标资源接收 D2D通信 信号。 Send a fourth response to the base station according to the fourth detection result; the fourth response is used to indicate whether the signal quality of the monitored discovery signal is less than a predetermined quality threshold; the fourth response from the base station When the signal quality of the detected discovery signal is indicated to be less than the predetermined quality threshold, determine the second resource as a reusable resource, allocate a target resource from the reusable resource, and assign the target resource to Sent to the first terminal and the second terminal, the first terminal sends a D2D communication signal according to the target resource, and the second terminal receives the D2D communication signal according to the target resource. 48、 根据权利要求 47所述的方法, 其特征在于, 所述根据所述第四检测结 果向所述基站发送第四响应, 包括: 48. The method according to claim 47, wherein sending a fourth response to the base station according to the fourth detection result includes: 向所述基站发送包含有所述第四响应的第二响应帧, 所述第二响应帧为所 述在接收到所述第四指令后, 根据所述第二资源发送的第一个 D2D通信帧。 Send a second response frame including the fourth response to the base station, where the second response frame is the first D2D communication sent according to the second resource after receiving the fourth instruction. frame. 49、 一种资源分配系统, 其特征在于, 所述系统包括: 49. A resource allocation system, characterized in that the system includes: 如权利要求 1至 14任一所述的基站、 如权利要求 15至 18任一所述的第一 终端、 如权利要求 19至 24任一所述的第二终端以及至少一个如权利要求 25至 28任一所述的第三终端和 /或至少一个如权利要求 29至 32任一所述第四终端。 The base station according to any one of claims 1 to 14, the first terminal according to any one of claims 15 to 18, the second terminal according to any one of claims 19 to 24, and at least one terminal according to any one of claims 25 to 24. 28 any third terminal and/or at least one fourth terminal according to any one of claims 29 to 32.
PCT/CN2013/090588 2013-12-26 2013-12-26 Base station, terminal, resource allocation method and system Ceased WO2015096103A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380032916.9A CN104995976B (en) 2013-12-26 2013-12-26 Base station, terminal, resource allocation methods and system
PCT/CN2013/090588 WO2015096103A1 (en) 2013-12-26 2013-12-26 Base station, terminal, resource allocation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/090588 WO2015096103A1 (en) 2013-12-26 2013-12-26 Base station, terminal, resource allocation method and system

Publications (1)

Publication Number Publication Date
WO2015096103A1 true WO2015096103A1 (en) 2015-07-02

Family

ID=53477375

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/090588 Ceased WO2015096103A1 (en) 2013-12-26 2013-12-26 Base station, terminal, resource allocation method and system

Country Status (2)

Country Link
CN (1) CN104995976B (en)
WO (1) WO2015096103A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12126576B2 (en) 2016-11-03 2024-10-22 Huawei Technologies Co., Ltd. Control channel resource configuration method, base station, and terminal device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020132868A1 (en) 2018-12-25 2020-07-02 北京小米移动软件有限公司 Direct-connection resource configuration method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123496A (en) * 2011-01-14 2011-07-13 北京邮电大学 Method for multiplexing cellular user resources of device-to-device (D2D) user pairs based on base station positioning
CN102792745A (en) * 2009-12-11 2012-11-21 诺基亚公司 Method, apparatus and computer program product for allocating resources in wireless communication network
CN103002578A (en) * 2011-09-08 2013-03-27 中国移动通信集团公司 Method, device and system for realizing D2D data transmission in cellular network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854643B (en) * 2009-03-31 2012-07-04 中国移动通信集团广西有限公司 Wireless resource multiplexing method and equipment and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102792745A (en) * 2009-12-11 2012-11-21 诺基亚公司 Method, apparatus and computer program product for allocating resources in wireless communication network
CN102123496A (en) * 2011-01-14 2011-07-13 北京邮电大学 Method for multiplexing cellular user resources of device-to-device (D2D) user pairs based on base station positioning
CN103002578A (en) * 2011-09-08 2013-03-27 中国移动通信集团公司 Method, device and system for realizing D2D data transmission in cellular network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12126576B2 (en) 2016-11-03 2024-10-22 Huawei Technologies Co., Ltd. Control channel resource configuration method, base station, and terminal device

Also Published As

Publication number Publication date
CN104995976B (en) 2019-07-23
CN104995976A (en) 2015-10-21

Similar Documents

Publication Publication Date Title
CN110535611B (en) Signal sending, receiving, information feedback method, device, communication node and medium
JP7259082B2 (en) Uplink control information transmission, reception method, terminal and network side equipment
CN110475347B (en) Time domain resource allocation, determination method, device, base station, terminal and storage medium
US10841865B2 (en) Method and apparatus for transmitting D2D discovery signal and communication system
CN103428818B (en) Terminal device discovery method, device and system
US11641260B2 (en) Switching method, base station and terminal
EP2899901A1 (en) Method and device for sending signals and configuration information and finding terminals
US10368339B2 (en) Method for device-to-device resource allocation, user equipment and base station
RU2019132619A (en) METHOD AND SYSTEM FOR USER INFORMATION MANAGEMENT
CN102957500A (en) Data transmission method, terminal and network side equipment
CN109995495A (en) A data transmission method and data transmission device
US12004203B2 (en) Resource allocation method, resource usage method, user equipment, and network side device
US12177860B2 (en) Apparatus and method of wireless communication
CN111278125B (en) Transmission method, terminal equipment and network side equipment
WO2023207722A1 (en) Rs signal transmission method and device, storage medium, and electronic device
JP7196105B2 (en) Downlink control channel resource determination method, apparatus, user equipment and base station
CN105490713A (en) Bluetooth connection method, Bluetooth device and system
EP3425975B1 (en) V2x communication method and device
WO2015096103A1 (en) Base station, terminal, resource allocation method and system
WO2015168872A1 (en) Method, apparatus and system for allocating bandwidth
WO2015113213A1 (en) Resource configuration method used for device to device communication mode, apparatus and system
WO2008083603A1 (en) Reuse assignment method and system
WO2022077520A1 (en) Method and device for communication
CN105208655A (en) Uplink data sending method, base station, user equipment and communication system
WO2014067475A1 (en) Method and device for transmitting uplink data in carrier aggregation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13900332

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13900332

Country of ref document: EP

Kind code of ref document: A1