WO2023124731A1 - Resource allocation method and apparatus for d2d communication, medium, and program product - Google Patents

Resource allocation method and apparatus for d2d communication, medium, and program product Download PDF

Info

Publication number
WO2023124731A1
WO2023124731A1 PCT/CN2022/135612 CN2022135612W WO2023124731A1 WO 2023124731 A1 WO2023124731 A1 WO 2023124731A1 CN 2022135612 W CN2022135612 W CN 2022135612W WO 2023124731 A1 WO2023124731 A1 WO 2023124731A1
Authority
WO
WIPO (PCT)
Prior art keywords
user equipment
channel
service
resource
service resource
Prior art date
Application number
PCT/CN2022/135612
Other languages
French (fr)
Chinese (zh)
Inventor
田雷
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023124731A1 publication Critical patent/WO2023124731A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/02Selection of wireless resources by user or terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/40Resource management for direct mode communication, e.g. D2D or sidelink
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/53Allocation or scheduling criteria for wireless resources based on regulatory allocation policies

Definitions

  • the present application relates to the field of communication technologies, and in particular to a resource allocation method, device, medium, and program product for device-to-device (device-to-device, D2D) communication.
  • D2D device-to-device
  • a central network includes a management device and several member devices.
  • the flow diagram of member devices accessing a central network when a member device needs to join a central network, it needs to first search for a management device and send a message 1 (message1, MSG1). After receiving the MSG1, the management device will send a message 2 (message2, MSG2) to the member devices, and allocate access resource candidate lists to the member devices. The member device sends a message 3 (message3, MSG3) after receiving the MSG2 sent by the management device. After receiving the MSG3 of the member device, the management device will authenticate the member device, and send the authentication result to the member device through message 4 (message4, MSG4). If the authentication is passed, service resources are allocated to the member equipment, and service data can only be sent when the member equipment has service resources.
  • the cellular network allocates service resources to the user equipment by indicating the service resources in downlink control information (DCI), and the user equipment can send data only after receiving the DCI from the access network device. Every time the user equipment sends data, the access network device needs to issue DCI to allocate service resources.
  • DCI downlink control information
  • Long term evolution long term evolution
  • V2X interception and resource reservation is an autonomous resource allocation scheme for user equipment based on a decentralized network. Before each user equipment needs to send service data, it first listens for a period of time, and excludes the resources already used by other user equipment according to the intercepted sidelink control information (SCI) and signal energy, and then Randomly select from the remaining resource sets to obtain the service resources of the user equipment.
  • SCI sidelink control information
  • the user equipment since the user equipment first excludes the resources already occupied by other user equipments when performing resource selection, and then randomly selects the remaining idle resources, when multiple user equipments perform resource selection at the same time, there will be a certain probability that the same resources will be selected. business resources.
  • FIG. 3 which is a schematic diagram of a hidden user equipment
  • FIG. 3 which is a schematic diagram of a hidden user equipment
  • User equipment 2 and user equipment 3 need to send data at the same time. Due to the long distance between user equipment 2 and user equipment 3, user equipment 2 and user equipment 3 cannot detect each other.
  • the service selected by user equipment 2 and user equipment 3 The resource may be the same resource, so the user equipment 1 located between the user equipment 2 and the user equipment 3 cannot receive the data of the user equipment 2 and the user equipment 3 normally.
  • the D2D non-network coverage resource selection defined by the 3rd generation partnership project (3GPP) is based on random resource selection, and the user equipment randomly selects transmission resources for transmission when it needs to transmit data.
  • 3GPP 3rd generation partnership project
  • the present application provides a D2D communication resource allocation method, device, medium, and program product, so as to realize reliable D2D communication resource allocation and avoid service resource conflicts when multiple user equipments access at the same time.
  • a resource allocation method for D2D communication includes: when a first user equipment accesses a second user equipment, the second user equipment receives a link establishment link from the first user equipment request message, the link establishment request message includes the first channel monitoring result of the first user equipment; the second user equipment sends a link establishment response to the first user equipment, and the link establishment response includes the first Service resource information, the first service resource information is determined according to the first channel detection result and the second channel detection result of the second user equipment itself; and the second user equipment in the first The service resource location indicated by the service resource information and the first user equipment perform service data transmission.
  • the second user equipment determines the first service resource information according to the first channel sensing result and the second channel sensing result of the second user equipment itself by receiving the first channel sensing result of the first user equipment,
  • the first user equipment transmits service data according to the first service resource information, so that service resources can be accurately determined, so that the first user equipment can reliably transmit service data, and avoid service failures when multiple user equipments access at the same time. Resource conflict.
  • the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource cycle, the number of service resources allocated in each cycle, and the number of service resources allocated in each cycle.
  • service resource information reserved by the second user equipment for the first user equipment is accurately described, so that the first user equipment can accurately transmit service data according to the first service resource information.
  • the first channel interception result is that the first user equipment intercepts a channel between at least one third user equipment within the communication range of the first user equipment result; and the second channel listening result is a result of the second user equipment listening to a channel between at least one fourth user equipment within communication range with the second user equipment.
  • the communication range of the first user equipment may be the same as or different from the communication range of the second user equipment, so as to avoid the situation that the channel between the hidden user equipment and the hidden user equipment cannot be detected, resulting in a conflict of allocated service resources.
  • the method further includes: the second user equipment receiving a third channel sensing result from at least one fifth user equipment, the third channel sensing result being the at least one A result of the fifth user equipment intercepting a channel with at least one sixth user equipment within the communication range of the at least one fifth user equipment; wherein, the first service resource information is based on the second channel determined by the listening result, the first channel listening result, and the third channel listening result.
  • the first service resource information may be further determined according to the channel sensing result of the second user equipment and the channel sensing result of at least one fifth user equipment.
  • the at least one fifth user equipment belongs to other user equipments except the first user equipment in the network managed by the second user equipment.
  • At least one fifth user equipment can perform channel monitoring within its communication range, and the communication range of at least one fifth user equipment can be the same as or different from that of the first user equipment and the second user equipment, so that interception can be avoided.
  • the channel condition between the invisible user equipment and the hidden user equipment leads to the conflict of allocated access resources.
  • the method further includes: the second user equipment detects the channel strength of any subband of the data channel on at least one time domain resource position, and obtains the second channel sensed Listen to the result; the second user equipment detects that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and updates the any time domain resource position as the channel is busy; and The second user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to a second threshold value for a set number of times, and updates the any time domain resource position as the channel idle, wherein the second threshold is smaller than the first threshold.
  • the second user equipment can update the second channel sensing result in real time according to the current channel sensing result, so as to accurately allocate service resources.
  • the second user equipment detects continuously that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold for a set number of times, and updates Said any time-domain resource position is a channel idle, including: said second user equipment continuously senses any subband of the data channel on the s time-domain resource positions corresponding to the i-th bit for the set number of times The signal strength of is less than or equal to the second threshold value, and the ith bit in the second resource bitmap is set to a second value.
  • the first channel sensing result includes the first resource bitmap or first idle time domain resource information; the second channel sensing result includes the second resource bitmap or the first 2. Free time domain resource information.
  • the method further includes: when the second user equipment detects that the number of service data transmissions performed by the first user equipment using service resources reaches the reserved number of service resources, the The second user equipment sends second service resource information.
  • the second user equipment initially reserves service resources for a certain number of times for the first user equipment.
  • the user equipment allocates service resources to the first user equipment again, and the second service resource information may be completely the same, or partly the same, or completely different from the first service resource information.
  • a resource allocation method for D2D communication comprising: when a first user equipment accesses a second user equipment, the first user equipment sends a link establishment request to the second user equipment message, the link establishment request message includes the first channel monitoring result of the first user equipment; the first user equipment receives a link establishment response from the second user equipment, and the link establishment response includes the first Service resource information, the first service resource information is determined according to the first channel detection result and the second channel detection result of the second user equipment itself; and the first user equipment in the first A service resource location indicated by the service resource information transmits service data.
  • the first user equipment receives the first service resource information sent by the second user equipment, and the first service resource information is the first channel detection result of the second user equipment and the second channel of the second user equipment itself. If the interception result is determined, the first user equipment transmits service data according to the first service resource information, so that the first user equipment can reliably transmit service data and avoid service resource conflicts when multiple user equipments access at the same time .
  • the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource cycle, the number of service resources allocated in each cycle, and the number of service resources allocated in each cycle.
  • service resource identification includes at least one of the following information: service resource identification, service resource location, service resource cycle, the number of service resources allocated in each cycle, and the number of service resources allocated in each cycle.
  • the first channel interception result is that the first user equipment intercepts a channel between at least one third user equipment within the communication range of the first user equipment Result; the second channel listening result is a result of the second user equipment listening to a channel between at least one fourth user equipment within the communication range of the second user equipment.
  • the method further includes: the first user equipment detects the channel strength of any subband of the data channel on at least one time domain resource position, and obtains the first channel sensed Listen to the result; the first user equipment detects that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and updates the any time domain resource position as the channel is busy; and The first user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and updates the any time domain resource position as the channel idle, wherein the second threshold is smaller than the first threshold.
  • the first user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold for a set number of times, and updates Said any time-domain resource position is a channel idle, including: said first user equipment continuously detects any sub-band of a data channel on m time-domain resource positions corresponding to said j-th bit for said set number of times The signal strength of is less than or equal to a second threshold value, and the jth bit in the second resource bitmap is set to a second value.
  • the first channel sensing result includes the first resource bitmap or the first idle time domain resource information; the second channel sensing result includes the second resource bitmap or the first 2. Free time domain resource information.
  • the method further includes: when the number of service data transmissions performed by the first user equipment using service resources reaches the reserved number of service resources, receiving a message from the second user equipment Second business resource information.
  • a resource allocation device for D2D communication may implement the method in the first aspect above.
  • the resource allocation device for D2D communication may be a chip or a terminal.
  • the above method can be realized by software, hardware, or by executing corresponding software by hardware.
  • the apparatus includes: a transceiver unit; wherein: the transceiver unit is configured to receive a link establishment request from the first user equipment when the first user equipment accesses the apparatus message, the link establishment request message includes the first channel monitoring result of the first user equipment; the transceiver unit is further configured to send a link establishment response to the first user equipment, and the link establishment response includes the first Service resource information, the first service resource information is determined according to the first channel detection result and the second channel detection result of the device itself; and the transceiver unit is further configured to The service resource location indicated by the service resource information and the first user equipment perform service data transmission.
  • the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource period, the number of service resources allocated in each period, and the number of service resources allocated in each period. The interval between transmissions and the number of reservations of business resources.
  • the first channel listening result is a result of the first user equipment listening to a channel between at least one third user equipment within a communication range with the first user equipment; the first The second channel listening result is a result of the apparatus listening to a channel with at least one fourth user equipment within a communication range of the apparatus.
  • the transceiving unit is further configured to receive a third channel listening result from at least one fifth user equipment, where the third channel listening result is a pair of the at least one fifth user equipment and the at least one An interception result of a channel between at least one sixth user equipment within the communication range of a fifth user equipment; wherein, the first service resource information is based on the second channel interception result, the first channel determined by the listening result and the third channel listening result.
  • the device further includes: a processing unit; wherein: the processing unit is configured to detect the channel strength of any subband of the data channel on at least one time domain resource position, and obtain the second channel Listening result: the processing unit is also configured to detect that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and update the any time domain resource position as the channel busy; and the processing unit is also configured to continuously detect that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and update the any time domain
  • the domain resource location is an idle channel, wherein the second threshold is smaller than the first threshold.
  • the processing unit is further configured to continuously detect that the signal strength of any subband of the data channel at the s time-domain resource positions corresponding to the i-th bit for the set number of times is less than or equal to the set the second threshold value, and set the ith bit in the second resource bitmap to a second value.
  • the first channel sensing result includes first resource bitmap or first idle time domain resource information
  • the second channel sensing result includes the second resource bitmap or second idle time domain resource information information
  • the transceiving unit is further configured to send second service resource information when detecting that the number of service data transmissions performed by the device using service resources reaches the number of service resource reservations.
  • the device for allocating resources for D2D communication is used to execute the method in the above first aspect and various possible implementations thereof.
  • a resource allocation device for D2D communication may implement the method in the second aspect above.
  • the resource allocation device for D2D communication may be a chip or a terminal.
  • the above method can be realized by software, hardware, or by executing corresponding software by hardware.
  • the apparatus includes: a transceiver unit; wherein: the transceiver unit is configured to send a link establishment request message to the second user equipment when the apparatus accesses the second user equipment, The link establishment request message includes the first channel monitoring result of the device; the transceiver unit is further configured to receive a link establishment response from the second user equipment, the link establishment response including first service resource information , the first service resource information is determined according to the first channel sensing result and the second channel sensing result of the second user equipment itself; and the transceiving unit is further configured to, in the first The service resource location indicated by the service resource information transmits service data.
  • the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource period, the number of service resources allocated in each period, and the number of service resources allocated in each period. The interval between transmissions and the number of reservations of business resources.
  • the first channel listening result is a result of the device listening to a channel with at least one third user equipment within the communication range of the device;
  • the second channel listening result is An interception result of the channel between the second user equipment and at least one fourth user equipment within the communication range of the second user equipment.
  • the device further includes: a processing unit; wherein: the processing unit is configured to detect the channel strength of any subband of the data channel on at least one time domain resource position, and obtain the first channel Listening result: the processing unit is also configured to detect that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and update the any time domain resource position as the channel busy; and the processing unit is also configured to continuously detect that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and update the any time domain
  • the domain resource location is an idle channel, wherein the second threshold is smaller than the first threshold.
  • the processing unit is further configured to continuously detect that the signal strength of any subband of the data channel at the m time-domain resource positions corresponding to the j-th bit for the set number of times is less than or equal to the first Two threshold values, setting the jth bit in the second resource bitmap as a second value.
  • the first channel sensing result includes the first resource bitmap or first idle time domain resource information; the second channel sensing result includes a second resource bitmap or second idle time domain resource information information.
  • the transceiving unit is further configured to receive second service resource information from the second user equipment when the number of service data transmissions using service resources reaches the number of service resource reservations.
  • the device for allocating resources for D2D communication is used to execute the method in the above second aspect and various possible implementations thereof.
  • the resource allocation device for D2D communication in the above third aspect or the fourth aspect includes a processor coupled to a memory; the processor is configured to support the device to perform the above D2D communication The corresponding function in the resource allocation method.
  • the memory is used to couple with the processor, which holds the necessary computer programs (or computer-executable instructions) and/or data of the device.
  • the resource allocation device for D2D communication may further include a communication interface for supporting communication between the device and other network elements, such as sending or receiving data and/or signals.
  • the communication interface may be a transceiver, a circuit, a bus, a module or other types of communication interfaces.
  • the memory may be located inside the resource allocation device for D2D communication and integrated with the processor; it may also be located outside the resource allocation device for D2D communication.
  • the resource allocation device for D2D communication in the third aspect or the fourth aspect includes a processor and a transceiver device, the processor is coupled to the transceiver device, and the processor is configured to execute A computer program or instruction to control the transceiver device to receive and send information; when the processor executes the computer program or instruction, the processor is also used to implement the above method through a logic circuit or executing code instructions.
  • the transceiver device may be a transceiver, a transceiver circuit or an input-output interface, which is used to receive signals from resource allocation devices for D2D communication other than the resource allocation device for D2D communication and transmit them to the processor or Sending the signal from the processor to another resource allocation device for D2D communication other than the resource allocation device for D2D communication.
  • the resource allocation device for D2D communication is a chip
  • the transceiver device is a transceiver circuit or an input/output interface.
  • the sending unit may be an output unit, such as an output circuit or a communication interface; the receiving unit may be an input unit, such as an input circuit or a communication interface.
  • the sending unit may be a transmitter or a transmitter; the receiving unit may be a receiver or a receiver.
  • a communication system in the fifth aspect, includes a resource allocation device for implementing the D2D communication according to any one of the third aspect or the third aspect, and at least one resource allocation device according to the fourth aspect or the fourth aspect Any resource allocation device for implementing the D2D communication.
  • a sixth aspect provides a computer-readable storage medium, on which a computer program or instruction is stored, and when the program or instruction is executed by a processor, the method described in the first aspect or any one of the first aspect is implemented be executed, or to implement the method described in the second aspect or any one of the implementations of the second aspect is executed.
  • a computer program product which, when executed on a computing device, causes the method described in any one of the first aspect or the first aspect to be executed, or the method described in the second aspect or the second The method described in any implementation of the aspect is performed.
  • FIG. 1 is a schematic diagram of the flow of member devices accessing a centralized network
  • FIG. 2 is a schematic diagram of LTE V2X interception and resource reservation
  • FIG. 3 is a schematic diagram of a hidden user equipment
  • FIG. 4 is a schematic diagram of a communication system provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a resource allocation method for D2D communication provided by an embodiment of the present application
  • FIG. 6 is a schematic flowchart of another D2D communication resource allocation method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of at least one first idle time domain resource indicated by the first idle time domain resource information in the example of the present application.
  • FIG. 8 is a schematic structural diagram of a resource allocation device for D2D communication provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of another D2D communication resource allocation device provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a communication system provided by the present application
  • the communication system 4000 is located in a first network
  • the communication system 4000/first network includes a second user equipment (user equipment, UE) 401 and The first user equipment 402 .
  • the communication system 4000 may further include at least one fifth user equipment 403 (three fifth user equipments and the connections between the three fifth user equipments and the first user equipment and the second user equipment are illustrated by dotted lines in the figure, this The application does not limit the number of the fifth user equipment, which may be a non-negative integer).
  • the second user equipment 401 is the center of the first network and is responsible for establishing and managing the network, so it can also be called a management equipment.
  • Each central network has only one management device, but the management device can be changed. After the first user device 402 and at least one fifth user device 403 are synchronized to the second user device 401, they become member devices of the management device. The first user equipment 402 needs to be synchronized with the second user equipment 401 and access the network before it can communicate with other member equipment.
  • a central network can have multiple member devices.
  • the second user equipment 401 is responsible for sending synchronous information in the first network, member device access management and device identification allocation, member list maintenance, communication resource allocation and recycling in the first network, message transfer in the first network, inter-network Identity conflict detection and update etc.
  • the first user equipment 402 synchronizes with the management equipment, and after accessing the first network created by the management equipment, periodically sends its own status through heartbeat messages.
  • the first user equipment 402 may communicate with any member equipment in the first network, and may also select some member equipment to form a multicast group for communication.
  • the second user equipment 401, the first user equipment 402, and at least one fifth user equipment 403 may be D2D devices.
  • a D2D device may refer to a terminal in D2D communication.
  • the terminal is a node with wireless transceiver function, which can be deployed on land, including indoor or outdoor, handheld, wearable or vehicle-mounted; it can also be deployed on water, such as on ships, etc.; it can also be deployed in the air, such as aircraft, wireless Man-machines, balloons and satellites, etc.
  • D2D devices can be mobile phone, tablet computer (pad), computer with wireless transceiver function, terminal in vehicle to everything (V2X), virtual reality (virtual reality, VR) terminal equipment, augmented reality (augmented reality, AR) terminal equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical, smart grid Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc.
  • V2X virtual reality
  • VR virtual reality
  • AR augmented reality
  • wireless terminals in industrial control wireless terminals in self-driving
  • wireless terminals in remote medical smart grid Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc.
  • a terminal may sometimes also be referred to as user equipment (user equipment, UE), access terminal equipment, UE unit, mobile station, mobile station, remote station, remote terminal equipment, mobile equipment, wireless communication equipment, UE proxy or UE device, etc.
  • This application provides a resource allocation scheme for D2D communication.
  • the second user equipment obtains the first channel detection result of the first user equipment, and according to the first channel detection result and the second channel of the second user equipment itself
  • the interception result determines the service resource information, and the first user equipment transmits the service data according to the service resource location indicated by the service resource information.
  • service resources can be accurately determined, service data can be transmitted reliably, and service resource conflicts can be avoided when multiple user equipments access at the same time.
  • This solution can also be further applied to the cellular network.
  • the solution of this application can be used to solve the problem of service resource conflict among multiple user equipments.
  • FIG. 5 it is a schematic flowchart of a resource allocation method for D2D communication provided by the embodiment of the present application, and the method may include the following steps:
  • the link establishment request message includes the first channel monitoring result of the first user equipment.
  • the second user equipment receives the link establishment request message.
  • a user equipment For a network with a center, first select a user equipment as the management device, for example, select the second user equipment as the management device in this embodiment.
  • the management device provides the synchronization source.
  • the other user equipments perform synchronous discovery with the synchronization signal of the second user equipment as the target, and perform random access processing after the synchronous discovery is completed, forming a centered network. This embodiment is described by taking the first user equipment randomly accessing the centered network as an example.
  • the first user equipment When the first user equipment needs to join the centered network, it needs to first search for the synchronization signal broadcast by the second user equipment. After searching for the synchronization signal, the first user equipment sends an access request to the second user equipment.
  • the access request is used to request access to the network.
  • the access request may be called a random access request, a random access preamble, a preamble, message 1, and so on.
  • the second user equipment receives the access request.
  • multiple first user equipments may access the network at the same time.
  • the second user equipment receives the access requests of the multiple first user equipments.
  • the second user equipment After receiving the access request sent by the first user equipment, the second user equipment sends an access response to the first user equipment.
  • the access response is a response to the above access request.
  • the access response may be called a random access response (random access response, RAR), message 2, and so on.
  • RAR random access response
  • the first user equipment receives the access response.
  • the first user equipment After receiving the foregoing access response, the first user equipment sends a link establishment request message to the second user equipment.
  • the link establishment request message is used to request establishment of a link with the network or the second user equipment.
  • the link establishment request message may also be referred to as message 3 .
  • the first user equipment when the first user equipment searches for the synchronization signal broadcast by the second user equipment, it performs channel detection to obtain the first channel detection result.
  • the first user equipment monitors a channel between at least one third user equipment within its communication range.
  • the first channel interception result is an interception result of the channel between the first user equipment and at least one third user equipment within the communication range of the first user equipment.
  • the link establishment request message includes the first channel monitoring result of the first user equipment.
  • the second user equipment sends a link establishment response to the first user equipment.
  • the first user equipment receives the link establishment response.
  • the second user equipment can perform channel monitoring.
  • the second user equipment intercepts a channel between at least one fourth user equipment within a communication range with the second user equipment. That is, the second channel interception result is an interception result of the second user equipment on a channel between at least one fourth user equipment within the communication range of the second user equipment.
  • the communication range of the second user equipment may be the same as or different from that of the first user equipment.
  • the second user equipment After receiving the link establishment request from the first user equipment, the second user equipment authenticates the first user equipment, and sends a link establishment response to the first user equipment. If the authentication passes, service resources are allocated to the first user equipment. Service data transmission can only be performed when the first user equipment has service resources.
  • the second user equipment determines the first service resource information according to the received first channel detection result and the second channel detection result of the second user equipment itself.
  • the first service resource information is used to indicate the location of the service resource where the first user equipment performs service data transmission.
  • the second user equipment After determining the first service resource information, the second user equipment sends a link establishment response to the first user equipment.
  • the link establishment response includes the above-mentioned first service resource information.
  • the first user equipment transmits service data at the service resource location indicated by the first service resource information.
  • the second user equipment performs service data transmission with the first user equipment at the service resource location indicated by the first service resource information.
  • the first user equipment may transmit service data with the second user equipment or other user equipment at the service resource location indicated by the first service resource information. Since the first service resource information is determined by the second user equipment according to the first channel detection result and the second channel detection result of the second user equipment itself, service resource conflicts when multiple user equipments access at the same time can be avoided , therefore, the first user equipment can reliably transmit service data.
  • the second user equipment receives the first channel detection result of the first user equipment, and according to the first channel detection result and the second user equipment's own second As a result of channel monitoring, the first service resource information is determined, and the first user equipment transmits service data according to the first service resource information, so that the service resource can be accurately determined, so that the first user equipment can reliably realize the transmission of service data, Avoid service resource conflicts when multiple user equipments access at the same time.
  • FIG. 6 it is a schematic flowchart of another D2D communication resource allocation method provided by the embodiment of the present application.
  • the method may include the following steps:
  • the first user equipment detects the channel strength of any subband of the data channel on at least one time-domain resource position, and obtains a first channel detection result.
  • a user equipment For a network with a center, first select a user equipment as the management device, for example, select the second user equipment as the management device in this embodiment.
  • the management device provides the synchronization source.
  • the other user equipments perform synchronous discovery with the synchronization signal of the second user equipment as the target, and perform random access processing after the synchronous discovery is completed, forming a centered network. This embodiment is described by taking the first user equipment randomly accessing the centered network as an example.
  • the first user equipment When the first user equipment needs to join the centered network, it needs to first search for the synchronization signal broadcast by the second user equipment. After the first user equipment searches for the synchronization signal, it becomes a member equipment of the network.
  • the first user equipment When the first user equipment searches for the synchronization signal broadcast by the second user equipment, it performs channel detection to obtain a first channel detection result.
  • the first user equipment monitors a channel between at least one third user equipment within its communication range.
  • the first channel interception result is an interception result of the channel between the first user equipment and at least one third user equipment within the communication range of the first user equipment.
  • the first user equipment when the first user equipment searches for the synchronization signal broadcast by the second user equipment, it performs channel sensing on at least one time domain resource.
  • the unit of the time-domain resource may be a subframe, a time slot, a mini-slot, and the like.
  • a unit of time-domain resources is a subframe as an example for description.
  • the first user equipment may perform channel sensing in 0-10239 subframes.
  • the channel sensing result can be represented by a first resource bitmap.
  • the first resource bitmap may include 160 bits.
  • the first resource bitmap is initially all 0, indicating that all subframes are idle.
  • the first user equipment detects that the signal strength of any subband of the data channel at any time domain resource position is greater than or equal to a first threshold, and updates any time domain resource position as channel busy.
  • the first user equipment maintains the first resource bitmap in real time.
  • the first user equipment is listening, if it finds a received signal strength indication ( If the received signal strength indication (RSSI) is greater than or equal to the first threshold value, it is considered that the subframe r has been occupied, so the jth bit on the first resource bitmap is set as the first value.
  • RSSI received signal strength indication
  • % represents the remainder.
  • the first user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and updates any time domain resource position as the channel is idle, wherein, The second threshold is smaller than the first threshold.
  • the first user equipment may also record the time when the jth bit is set to the first value.
  • the first user equipment continues to perform channel sensing, and if the RSSI of all subbands on the subframe corresponding to the jth bit is less than or equal to the second threshold value for p consecutive times, set the jth bit to the second value .
  • the second threshold value is smaller than the first threshold value.
  • the initial values of the first threshold and the second threshold may be pre-configured by the second user equipment and notified to each member equipment.
  • the first threshold value and the second threshold value may also be factory-set.
  • the above-mentioned first value may be "1", which is used to indicate that the channel on the time domain resource is busy, and the corresponding second value may be "0", which is used to indicate that the channel on the time domain resource is idle.
  • the above-mentioned first value may be "0”, which is used to indicate that the channel on the time domain resource is busy, and the corresponding second value may be "1", which is used to indicate that the channel on the time domain resource is idle.
  • the initial value of the first resource bitmap (in hexadecimal notation): 0x000000000000000000000000000000000000.
  • the first resource bitmap is updated to: 0x000080000000000000000000000000000000 (that is, the 20th bit is "1").
  • the first resource bitmap is updated to: 0x0000000040000000000000000000000 (that is, the 20th Bit takes "0").
  • the second user equipment detects the channel strength of any subband of the data channel on at least one time-domain resource position, and obtains a second channel detection result.
  • the second user equipment detects that the signal strength of any subband of the data channel at any time domain resource position is greater than or equal to a third threshold, and updates any time domain resource position as channel busy.
  • the second user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the fourth threshold value for a set number of times, and updates any time domain resource position as the channel is idle, wherein, The fourth threshold is smaller than the third threshold.
  • the second user equipment may also maintain the second resource bitmap of the second user equipment by referring to the manner in which the first user equipment maintains the first resource bitmap in steps S601-S603 above, to obtain the second channel listening result.
  • the second channel sensing result may be the entire second resource bitmap, or may be a bitmap bit value in the second resource bitmap whose value is the second value (that is, the channel is idle).
  • the link establishment request message includes the first channel monitoring result of the first user equipment.
  • the second user equipment receives the link establishment request message.
  • step S501 For the specific implementation of this step, reference may be made to step S501 in the foregoing embodiment.
  • the first channel monitoring result is carried in a media access control-control element (media access control-control element, MAC-CE) of the link establishment request message.
  • media access control-control element media access control-control element, MAC-CE
  • the first channel sensing result can be the entire first resource bitmap; it can also be the first idle time-domain resource information, for example, the bitmap bit value whose value is the second value (that is, the channel is idle) in the first resource bitmap ; It may also be a bitmap bit value whose value is the first value (that is, the channel is busy) in the first resource bitmap.
  • the first resource bitmap is 0xFFFFFFFFFFFFFFFFFF01000800000000000000, that is, the channels on the subframes corresponding to bits 0 to 79, 87 and 100 are busy, and the subframes corresponding to the remaining bits (bits 80 to 86, 88 to 99, and 101 to 159)
  • the channel on is idle.
  • the first user equipment may report either 80-86, 88-99, 101-159, or 0-79 and 87, 100 of the first resource bitmap to the second user equipment.
  • At least one fifth user equipment sends a third channel sensing result to the second user equipment.
  • the second user equipment receives the third channel monitoring result.
  • the third channel interception result is an interception result of the channel between the at least one fifth user equipment and at least one sixth user equipment within the communication range of the at least one fifth user equipment.
  • the second user equipment may also receive a third channel monitoring result of at least one fifth user equipment.
  • the at least one fifth user equipment may be a member equipment that has been connected to the network.
  • Each fifth user equipment may monitor a channel between at least one sixth user equipment within its communication range, and obtain respective channel monitoring results.
  • the at least one fifth user equipment may respectively send the third channel monitoring results to the second user equipment.
  • Each fifth user equipment may also maintain its own third resource bitmap.
  • the third channel sensing result can be the entire third resource bitmap; it can also be the third idle time-domain resource information, for example, the bitmap bit value whose value is the second value (that is, the channel is idle) in the third resource bitmap ; It may also be a bitmap bit value whose value is the first value (that is, the channel is busy) in the third resource bitmap.
  • the communication range of each fifth user equipment may be the same or different.
  • the communication ranges of the at least one fifth user equipment and the first user equipment and the second user equipment may also be the same or different.
  • the distance between the user equipment 3 and the user equipment 4 is relatively long, and the user equipment 3 and the user equipment 4 cannot detect each other. Both the user equipment 3 and the user equipment 4 send their respective channel detection results to the user equipment 2 . Then the user equipment 2 can obtain the channel detection results of the user equipment 3 and the user equipment 4, which expands the range of channel detection.
  • the second user equipment sends a link establishment response to the first user equipment.
  • the first user equipment receives the link establishment response.
  • the link establishment response includes first service resource information.
  • step S502 For the specific implementation of this step, reference may be made to step S502 in the foregoing embodiment.
  • the difference is that the first service resource information is determined according to the first channel sensing result, the second channel sensing result and the third channel sensing result of the second user equipment itself.
  • the communication ranges of the first user equipment, the second user equipment and at least one fifth user equipment may be the same or different. Assuming that user equipment 1 and user equipment 3 request access to user equipment 2 at the same time, user equipment 1 and user equipment 3 are far apart, and user equipment 1 and user equipment 3 cannot detect each other. User equipment 2 needs to allocate service resources to user equipment 1 and user equipment 3 .
  • user equipment 2 when user equipment 2 allocates service resources to user equipment 1, it receives the first channel detection result from the first user equipment and the third channel detection result from at least one fifth user equipment, according to the first
  • the first service resource information is determined by the first channel sensing result, the second channel sensing result of the second user equipment itself, and the third channel sensing result, which expands the range of channel sensing. Therefore, the problem of service resource conflict caused by hidden user equipments is solved, resource allocation for D2D communication can be reliably realized, and service resource conflicts when multiple user equipments access at the same time are avoided.
  • the second user equipment carries the first service resource information in the MAC CE of the link establishment response.
  • the first service resource information includes at least one of the following information: service resource identifier (RES_IDX), service resource location (RES), service resource period (PERIOD, p), service resource quantity allocated in each period (RES_CNT), The transmission interval (TIME_GAP) between the allocated service resources in each period, and the reserved times of service resources (RESV_CNT).
  • the format of the MAC CE is shown in Table 1 below:
  • RES_IDX is an identifier of a service resource, for example, it may be an index of a service resource.
  • the first user equipment receives the link establishment response, it stores the index.
  • the second service resource information later, it needs to compare the RES_IDX in the second service resource information with the one stored before. If the service resource of the first user equipment is different, it needs to be ignored.
  • RES is the business resource location.
  • RES is the allocated initial service resource location.
  • PERIOD is the period of business resources.
  • the service resources allocated by the second user equipment to the first user equipment may be periodic.
  • RES_CNT is the number of service resources allocated in each cycle (including for initial transmission and retransmission).
  • TIME_GAP is the transmission interval between allocated service resources in each period.
  • RESV_CNT is the number of reservations of business resources.
  • the second user equipment may reserve service resources for the first user equipment in one or more periods. Each cycle corresponds to a reservation of business resources.
  • the second user equipment sends a link establishment response in subframe m.
  • the link establishment response includes first service resource information.
  • the first service resource information is used to indicate at least one available/idle service resource location.
  • the second user equipment reserves RESV_CNT secondary service resources for the first user equipment.
  • the location of the service resource includes: the initial service resource location b+RES, and the subsequent RES_CNT service resource locations in this cycle are: b+RES+TIME_GAP, ...
  • the interval between each service resource location is TIME_GAP; in the first RESV_CNT cycle, the location of the service resource includes: the initial service resource location b+RES+p*RESV_CNT, and the subsequent RES_CNT service resource locations in this cycle are: b +RES+TIME_GAP+p*RESV_CNT, ... b+RES+TIME_GAP*RES_CNT+p*RESV_CNT, the interval between each service resource location is TIME_GAP.
  • the first service resource information is described below through two examples:
  • the resource bitmap of the current interception result of the second user equipment is: 0xFFFFFFFFFFFFFFFF00000000000000000000
  • the first channel interception result and the third channel interception result are the same as the resource bitmap, that is, the same as the second user equipment
  • the current channel listening results for no conflicts According to the resource bitmap, it can be known that the channels on the time domain resources corresponding to bits 0 to 79 are occupied.
  • the cycle of service resources allocated by the second user equipment to the first user equipment is 160ms, and the second user equipment randomly selects a resource within the range of 80-159, assuming that it is 83.
  • the current interception result resource bitmap of the second user equipment is: 0xE000010000000000000001000000000000000
  • the first channel interception result and the third channel interception result are the same as the resource bitmap, that is, the same as the second user equipment
  • the device's current channel listening results are not conflicting.
  • the service resource cycle allocated by the second user equipment to the first user equipment is 20 ms
  • the OR operation is performed to obtain Resource bitmap of size 20: 0xF0000. Randomly select a resource within the range of 4 to 19, assuming it is 5.
  • the second user equipment sends a link establishment response at 300#, and the TIME_GAP of the allocated service resource is 2, RES_CNT is 3, and RESV_CNT is 4, then the location of the service resource can be obtained as:
  • the service resource locations are: 365,367,369.
  • the first user equipment transmits service data at the service resource location indicated by the first service resource information.
  • the second user equipment performs service data transmission with the first user equipment at the service resource location indicated by the first service resource information.
  • step S503 For the specific implementation of this step, reference may be made to step S503 in the foregoing embodiment.
  • the first user equipment After receiving the first service resource information, the first user equipment parses the available service resource locations according to the above description.
  • t is the current frame number*10+subframe number
  • i is any value from 0 to RES_CNT
  • m is the frame number*10+subframe number when MSG4 is received.
  • the second user equipment sends second service resource information when detecting that the number of service data transmissions performed by the first user equipment using the service resources reaches the number of service resource reservations.
  • the first user equipment receives the second service resource information.
  • the second user equipment reserves service resources for a certain number of times (specifically indicated by RESV_CNT).
  • the second user equipment monitors the number of times the first user equipment uses service resources to transmit service data, or the first user equipment reports the number of times it uses service resources to transmit service data, and the second user equipment detects that the first user equipment
  • the business resources are allocated again.
  • the second user equipment may determine the second service resource information according to the updated first channel sensing result, the updated second channel sensing result and the updated third channel sensing result of the second user equipment itself, specifically For the determination process, reference may be made to the above description. Then, the second user equipment sends the second service resource information to the first user equipment.
  • the second service resource information includes at least one of the following information: service resource identification, service resource location, service resource cycle, number of service resources allocated in each cycle, transmission interval between service resources allocated in each cycle, The number of reservations for business resources.
  • the second service resource information may be completely the same, or partly the same, or completely different from the above-mentioned first service resource information.
  • the second user equipment receives the first channel detection result of the first user equipment and the third channel detection result of at least one fifth user equipment, according to the first A channel detection result, the second channel detection result of the second user equipment itself, and the third channel detection result determine the first service resource information, and the first user equipment transmits service data according to the first service resource information, thereby Service resources can be accurately determined, so that the first user equipment can reliably transmit service data, and avoid service resource conflicts when multiple user equipments access at the same time;
  • the communication ranges of the first user equipment, the second user equipment, and the at least one fifth user equipment are the same or different, so that the situation of not being able to detect the channel with the hidden user equipment can be avoided, resulting in a conflict of allocated service resources;
  • the second user equipment can update the second channel sensing result in real time according to the current channel sensing result, so as to accurately allocate service resources;
  • the second user equipment When it is detected that the number of service data transmissions performed by the first user equipment using service resources reaches the reserved number of service resources, the second user equipment allocates service resources to the first user equipment again, and the second service resource information may be related to the first service resource The information is the same or different.
  • the first user equipment or the second user equipment includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer.
  • the hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory).
  • the operating system may be any one or more computer operating systems that implement business processing through processes, for example, Linux operating system, Unix operating system, Android operating system, iOS operating system, or windows operating system.
  • the application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
  • the embodiment of the present application does not specifically limit the specific structure of the execution subject of the method provided by the embodiment of the present application, as long as the program that records the code of the method provided by the embodiment of the present application can be run to provide the method according to the embodiment of the present application.
  • the execution body of the method provided by the embodiment of the present application may be a terminal, or a functional module in the first user equipment or the second user equipment that can call a program and execute the program.
  • the relevant functions of the first user equipment or the second user equipment in the embodiments of the present application may be realized by one device, or jointly realized by multiple devices, or may be realized by one or more functional modules in one device , which is not specifically limited in this embodiment of the present application.
  • the above functions can be network elements in hardware devices, software functions running on dedicated hardware, or a combination of hardware and software, or instantiated on a platform (for example, a cloud platform) virtualization capabilities.
  • the first user equipment or the second user equipment includes hardware structures and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software with reference to the units and method steps of the examples described in the embodiments disclosed in the present application. Whether a certain function is executed by hardware or computer software drives the hardware depends on the specific application scenario and design constraints of the technical solution.
  • FIG. 8 and FIG. 9 are schematic structural diagrams of a possible resource allocation device for D2D communication provided by an embodiment of the present application.
  • the resource allocation device for D2D communication may also be a communication device. These resource allocation devices for D2D communication can be used to realize the functions of the first user equipment or the second user equipment in the above method embodiments, and thus can also realize the beneficial effects of the above method embodiments.
  • the resource allocation device for D2D communication may be the first user equipment or the second user equipment, or may be a module (such as a chip) applied to the first user equipment or the second user equipment.
  • a resource allocation device 800 for D2D communication includes a processing unit 810 and a transceiver unit 820 .
  • the resource allocation apparatus 800 for D2D communication is configured to realize the functions of the first user equipment or the second user equipment in the method embodiments shown in FIG. 5 and FIG. 6 above.
  • the transceiving unit 820 is used to access the apparatus when the first user equipment , receiving a link establishment request message from the first user equipment, the link establishment request message including the first channel monitoring result of the first user equipment; the transceiver unit 820 is further configured to send the first The user equipment sends a link establishment response, where the link establishment response includes first service resource information, and the first service resource information is determined according to the first channel detection result and the second channel detection result of the device itself and the transceiving unit 820 is further configured to transmit service data with the first user equipment at the service resource location indicated by the first service resource information.
  • the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource period, the number of service resources allocated in each period, and the number of service resources allocated in each period. The interval between transmissions and the number of reservations of business resources.
  • the first channel listening result is a result of the first user equipment listening to a channel between at least one third user equipment within a communication range with the first user equipment; the first The second channel listening result is a result of the apparatus listening to a channel with at least one fourth user equipment within a communication range of the apparatus.
  • the transceiving unit 820 is further configured to receive a third channel sensing result from at least one fifth user equipment, where the third channel sensing result is a pair between the at least one fifth user equipment and the An interception result of a channel between at least one sixth user equipment within the communication range of at least one fifth user equipment; wherein, the first service resource information is based on the second channel interception result, the first determined by the channel sensing result and the third channel sensing result.
  • the processing unit 810 is configured to detect the channel strength of any subband of the data channel on at least one time-domain resource position, and obtain the second channel detection result; the processing unit 810, It is also used to detect that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and update the any time domain resource position as the channel is busy; and the processing unit 810, It is also used to continuously detect that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and update the any time domain resource position as the channel is idle, wherein , the second threshold is smaller than the first threshold.
  • the processing unit 810 is further configured to continuously detect that the signal strength of any subband of the data channel at the m time-domain resource positions corresponding to the j-th bit for the set number of times is less than or equal to
  • the second threshold value is to set the jth bit in the second resource bitmap as a second value.
  • the first channel sensing result includes the first resource bitmap or first idle time domain resource information; the second channel sensing result includes a second resource bitmap or second idle time domain resource information information.
  • the transceiving unit 820 is further configured to send second service resource information when detecting that the number of service data transmissions performed by the device using service resources reaches the number of service resource reservations.
  • the transceiving unit 820 is used to access the second user equipment when the apparatus , sending a link establishment request message to the second user equipment, where the link establishment request message includes the first channel monitoring result of the apparatus; the transceiver unit 820 is further configured to receive a link establishment request message from the second user equipment A link establishment response, the link establishment response including first service resource information, the first service resource information is determined according to the first channel detection result and the second channel detection result of the second user equipment itself and the transceiving unit 820 is further configured to transmit service data at the service resource location indicated by the first service resource information.
  • the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource period, the number of service resources allocated in each period, and the number of service resources allocated in each period. The interval between transmissions and the number of reservations of business resources.
  • the first channel listening result is a result of the device listening to a channel with at least one third user equipment within the communication range of the device;
  • the second channel listening result is An interception result of the channel between the second user equipment and at least one fourth user equipment within the communication range of the second user equipment.
  • the processing unit 810 is configured to detect the channel strength of any subband of the data channel on at least one time-domain resource position, and obtain the first channel detection result; the processing unit 810, It is also used to detect that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and update the any time domain resource position as the channel is busy; and the processing unit 810, It is also used to continuously detect that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and update the any time domain resource position as the channel is idle, wherein , the second threshold is smaller than the first threshold.
  • the processing unit 810 is further configured to continuously detect that the signal strength of any subband of the data channel at the s time-domain resource positions corresponding to the i-th bit for the set number of times is less than or equal to
  • the second threshold value is to set the ith bit in the second resource bitmap as a second value.
  • the first channel sensing result includes the first resource bitmap or first idle time domain resource information; the second channel sensing result includes a second resource bitmap or second idle time domain resource information information.
  • the transceiving unit 820 is further configured to receive second service resource information from the second user equipment when the number of service data transmissions using service resources reaches the number of service resource reservations.
  • processing unit 810 and the transceiver unit 820 can be directly obtained by referring to the relevant descriptions in the method embodiments shown in FIG. 5 and FIG. 6 , and will not be repeated here.
  • a resource allocation device 900 for D2D communication includes a processor 910 and an interface circuit 920 .
  • the processor 910 and the interface circuit 920 are coupled to each other.
  • the interface circuit 920 may be a transceiver or an input-output interface.
  • the resource allocation apparatus 900 for D2D communication may further include a memory 930 for storing instructions executed by the processor 910 or storing input data required by the processor 910 to execute the instructions or storing data generated after the processor 910 executes the instructions.
  • the processor 910 is used to implement the functions of the processing unit 810
  • the interface circuit 920 is used to implement the functions of the transceiver unit 820 .
  • the chip When the resource allocation device for D2D communication is a chip applied to the first user equipment/second user equipment, the chip implements the functions of the first user equipment/second user equipment in the above method embodiments.
  • the chip receives information from other modules (such as radio frequency modules or antennas) in the first user equipment/second user equipment, and the information is sent to the first user equipment/second user equipment by other user equipment; or, the chip Sending information to other modules (such as radio frequency modules or antennas) in the first user equipment/second user equipment, the information is sent by the first user equipment/second user equipment to other user equipment.
  • processor in the embodiments of the present application may be a central processing unit (central processing unit, CPU), and may also be other general processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
  • CPU central processing unit
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor can be a microprocessor, or any conventional processor.
  • the method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions.
  • Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only Memory, registers, hard disk, removable hard disk, compact disc read-only memory (CD-ROM) or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
  • the storage medium may also be a component of the processor.
  • the processor and storage medium can be located in the ASIC.
  • the ASIC can be located in the base station or the terminal.
  • the processor and the storage medium may also exist in the base station or the terminal as discrete components.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product comprises one or more computer programs or instructions. When the computer program or instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are executed in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, a base station, user equipment or other programmable devices.
  • the computer program or instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits to another website site, computer, server or data center by wired or wireless means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrating one or more available media.
  • the available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; or it may be a semiconductor medium, such as a solid state disk.
  • “at least one” means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • a and/or B which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an "or" relationship.

Landscapes

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

Abstract

The present application discloses a resource allocation method and apparatus for D2D communication, a medium, and a program product. The method comprises: when first user equipment accesses second user equipment, the second user equipment receives a link establishment request message from the first user equipment, the link establishment request message comprising a first channel listening result of the first user equipment; the second user equipment sends a link establishment response to the first user equipment, the link establishment response comprising first service resource information, which is determined according to the first channel listening result and a second channel listening result of the second user equipment; and the second user equipment performs service data transmission to the first user equipment at a service resource location that is indicated by the first service resource information. By using the solution of the present application, a service resource can be accurately determined, service data transmission can be reliably achieved, and service resource conflict during simultaneous access by a plurality of user equipment can be avoided.

Description

D2D通信的资源分配方法及装置、介质、程序产品D2D communication resource allocation method and device, medium, and program product
本申请要求于2021年12月31日提交中国国家知识产权局、申请号为202111669745.3、发明名称为“D2D通信的资源分配方法及装置、介质、程序产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the State Intellectual Property Office of China on December 31, 2021, the application number is 202111669745.3, and the invention title is "Resource allocation method and device, medium, and program product for D2D communication", all of which The contents are incorporated by reference in this application.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种设备到设备(device-to-device,D2D)通信的资源分配方法及装置、介质、程序产品。The present application relates to the field of communication technologies, and in particular to a resource allocation method, device, medium, and program product for device-to-device (device-to-device, D2D) communication.
背景技术Background technique
有中心的网络包括一个管理设备和若干个成员设备。如图1所示的成员设备接入有中心的网络的流程示意图,当成员设备需要加入有中心的网络时,需要先搜索到管理设备并在特定时域位置向管理设备发送消息1(message1,MSG1)。管理设备收到MSG1后会向成员设备发送消息2(message2,MSG2),并给成员设备分配接入资源候选表。成员设备在收到管理设备发送的MSG2后会发送消息3(message3,MSG3)。管理设备收到成员设备的MSG3后会对成员设备进行鉴权,并将鉴权结果通过消息4(message4,MSG4)发送给成员设备。如果鉴权通过则为成员设备分配业务资源,成员设备有业务资源时才能进行业务数据发送。A central network includes a management device and several member devices. As shown in Figure 1, the flow diagram of member devices accessing a central network, when a member device needs to join a central network, it needs to first search for a management device and send a message 1 (message1, MSG1). After receiving the MSG1, the management device will send a message 2 (message2, MSG2) to the member devices, and allocate access resource candidate lists to the member devices. The member device sends a message 3 (message3, MSG3) after receiving the MSG2 sent by the management device. After receiving the MSG3 of the member device, the management device will authenticate the member device, and send the authentication result to the member device through message 4 (message4, MSG4). If the authentication is passed, service resources are allocated to the member equipment, and service data can only be sent when the member equipment has service resources.
蜂窝网络为用户设备分配业务资源是通过在下行控制信息(downlink control information,DCI)中指示业务资源,用户设备在接收到接入网设备的DCI后才能进行数据发送。用户设备每次发送数据时都需要接入网设备下发DCI分配业务资源,该机制用于有中心的网络时会导致用户设备功耗增大及空口资源消耗增大。The cellular network allocates service resources to the user equipment by indicating the service resources in downlink control information (DCI), and the user equipment can send data only after receiving the DCI from the access network device. Every time the user equipment sends data, the access network device needs to issue DCI to allocate service resources. When this mechanism is used in a central network, it will increase the power consumption of the user equipment and the consumption of air interface resources.
长期演进(long term evolution,LTE)车用无线通信技术(vehicle to X,V2X)侦听和资源预留是基于无中心网络的用户设备自主资源分配方案。各用户设备在需要发送业务数据前,先进行一段时间的侦听,根据侦听到的侧行控制信息(sidelink control information,SCI)和信号能量,排除掉其他用户设备已经使用的资源,然后在剩余的资源集内进行随机选择得到本用户设备的业务资源。如图2所示的LTE V2X侦听和资源预留示意图,在资源侦听窗内,用户设备2发送业务数据前,排除用户设备1已经使用的资源,在剩余的资源集内进行随机选择得到本用户设备的业务资源;同理,用户设备3发送业务数据前,排除用户设备1和用户设备2已经使用的资源,在剩余的资源集内进行随机选择得到本用户设备的业务资源。然而,由于用户设备在进行资源选择时是先排除掉其他用户设备已经占有的资源,然后在剩余的空闲资源中随机选择,当多个用户设备同时进行资源选择时会有一定概率选取到相同的业务资源。Long term evolution (long term evolution, LTE) vehicle wireless communication technology (vehicle to X, V2X) interception and resource reservation is an autonomous resource allocation scheme for user equipment based on a decentralized network. Before each user equipment needs to send service data, it first listens for a period of time, and excludes the resources already used by other user equipment according to the intercepted sidelink control information (SCI) and signal energy, and then Randomly select from the remaining resource sets to obtain the service resources of the user equipment. As shown in Figure 2, the schematic diagram of LTE V2X interception and resource reservation, in the resource interception window, before user equipment 2 sends service data, the resources already used by user equipment 1 are excluded, and random selection is performed in the remaining resource set to obtain The service resources of the user equipment; similarly, before the user equipment 3 sends the service data, the resources already used by the user equipment 1 and the user equipment 2 are excluded, and the service resources of the user equipment are obtained by randomly selecting from the remaining resource set. However, since the user equipment first excludes the resources already occupied by other user equipments when performing resource selection, and then randomly selects the remaining idle resources, when multiple user equipments perform resource selection at the same time, there will be a certain probability that the same resources will be selected. business resources.
特别地,如图3所示的隐藏的用户设备的示意图,用户设备在进行自主资源选择时存在隐藏的用户设备的问题。用户设备2和用户设备3需要同时发送数据,由于用户设备2和用户设备3间隔距离较远,导致用户设备2和用户设备3无法侦听到对方,用户设备2和用户设备3选择出来的业务资源有可能是同一个资源,那么处于用户设备2和用户设备3中间的用户设备1则无法正常收到用户设备2和用户设备3的数据。In particular, as shown in FIG. 3 , which is a schematic diagram of a hidden user equipment, there is a problem of a hidden user equipment when the user equipment performs autonomous resource selection. User equipment 2 and user equipment 3 need to send data at the same time. Due to the long distance between user equipment 2 and user equipment 3, user equipment 2 and user equipment 3 cannot detect each other. The service selected by user equipment 2 and user equipment 3 The resource may be the same resource, so the user equipment 1 located between the user equipment 2 and the user equipment 3 cannot receive the data of the user equipment 2 and the user equipment 3 normally.
另外,第三代合作伙伴计划(3 rdgeneration partnership project,3GPP)定义的D2D无网络覆盖资源选择是基于随机的资源选择,用户设备在需要发送数据时随机选择传输资源用于发送。然而,当多个用户设备同时发送数据时,会出现传输资源冲突的情况,无法保证资源分配的可靠性。 In addition, the D2D non-network coverage resource selection defined by the 3rd generation partnership project (3GPP) is based on random resource selection, and the user equipment randomly selects transmission resources for transmission when it needs to transmit data. However, when multiple user equipments transmit data at the same time, transmission resource conflicts may occur, and the reliability of resource allocation cannot be guaranteed.
有鉴于此,对于有中心的网络,如何可靠地进行D2D通信的资源分配,避免多个用户设备同时接入时的业务资源冲突,是本申请需要解决的问题。In view of this, for a centralized network, how to reliably allocate resources for D2D communication and avoid service resource conflicts when multiple user equipments access at the same time is a problem to be solved in this application.
发明内容Contents of the invention
本申请提供一种D2D通信的资源分配方法及装置、介质、程序产品,以实现可靠的D2D通信的资源分配,避免多个用户设备同时接入时的业务资源冲突。The present application provides a D2D communication resource allocation method, device, medium, and program product, so as to realize reliable D2D communication resource allocation and avoid service resource conflicts when multiple user equipments access at the same time.
第一方面,提供了一种D2D通信的资源分配方法,所述方法包括:在第一用户设备接入第二用户设备时,所述第二用户设备接收来自所述第一用户设备的建链请求消息,所述建链请求消息包括所述第一用户设备的第一信道侦听结果;所述第二用户设备向所述第一用户设备发送建链响应,所述建链响应包括第一业务资源信息,所述第一业务资源信息是根据所述第一信道侦听结果和所述第二用户设备自身的第二信道侦听结果确定的;以及所述第二用户设备在所述第一业务资源信息所指示的业务资源位置与所述第一用户设备进行业务数据的传输。在该方面中,第二用户设备通过接收第一用户设备的第一信道侦听结果,根据第一信道侦听结果和第二用户设备自身的第二信道侦听结果确定第一业务资源信息,第一用户设备根据该第一业务资源信息进行业务数据的传输,从而可以准确地确定业务资源,使得第一用户设备可以可靠地实现业务数据的传输,避免多个用户设备同时接入时的业务资源冲突。In a first aspect, a resource allocation method for D2D communication is provided, the method includes: when a first user equipment accesses a second user equipment, the second user equipment receives a link establishment link from the first user equipment request message, the link establishment request message includes the first channel monitoring result of the first user equipment; the second user equipment sends a link establishment response to the first user equipment, and the link establishment response includes the first Service resource information, the first service resource information is determined according to the first channel detection result and the second channel detection result of the second user equipment itself; and the second user equipment in the first The service resource location indicated by the service resource information and the first user equipment perform service data transmission. In this aspect, the second user equipment determines the first service resource information according to the first channel sensing result and the second channel sensing result of the second user equipment itself by receiving the first channel sensing result of the first user equipment, The first user equipment transmits service data according to the first service resource information, so that service resources can be accurately determined, so that the first user equipment can reliably transmit service data, and avoid service failures when multiple user equipments access at the same time. Resource conflict.
在一种可能的实现中,所述第一业务资源信息包括以下至少一个信息:业务资源的标识、业务资源位置、业务资源的周期、每个周期内分配的业务资源数量、每个周期内分配的业务资源之间的传输间隔、业务资源的预留次数。在该实现中,准确地描述了第二用户设备给第一用户设备预留的业务资源的信息,使得第一用户设备可以准确地根据该第一业务资源信息进行业务数据的传输。In a possible implementation, the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource cycle, the number of service resources allocated in each cycle, and the number of service resources allocated in each cycle. The transmission interval between business resources and the number of reservations of business resources. In this implementation, the service resource information reserved by the second user equipment for the first user equipment is accurately described, so that the first user equipment can accurately transmit service data according to the first service resource information.
在另一种可能的实现中,所述第一信道侦听结果是所述第一用户设备对与所述第一用户设备的通信范围内的至少一个第三用户设备之间的信道的侦听结果;以及所述第二信道侦听结果是所述第二用户设备对与所述第二用户设备的通信范围内的至少一个第四用户设备之间的信道的侦听结果。在该实现中,第一用户设备的通信范围可以与第二用户设备的通信范围相同或不同,从而可以避免侦听不到与隐藏的用户设备之间的信道情况,导致分配的业务资源冲突。In another possible implementation, the first channel interception result is that the first user equipment intercepts a channel between at least one third user equipment within the communication range of the first user equipment result; and the second channel listening result is a result of the second user equipment listening to a channel between at least one fourth user equipment within communication range with the second user equipment. In this implementation, the communication range of the first user equipment may be the same as or different from the communication range of the second user equipment, so as to avoid the situation that the channel between the hidden user equipment and the hidden user equipment cannot be detected, resulting in a conflict of allocated service resources.
在又一种可能的实现中,所述方法还包括:所述第二用户设备接收来自至少一个第五用户设备的第三信道侦听结果,所述第三信道侦听结果是所述至少一个第五用户设备对与所述至少一个第五用户设备的通信范围内的至少一个第六用户设备之间的信道的侦听结果;其中,所述第一业务资源信息是根据所述第二信道侦听结果、所述第一信道侦听结果和所述第三信道侦听结果确定的。在该实现中,还可以进一步根据第二用户设备的信道侦听结果以及至少一个第五用户设备的信道侦听结果确定第一业务资源信息。至少一个第五用户设备是属于第二用户设备管理的网络中除第一用户设备之外的其它用户设备。至少一个第五用户设备可以分别在其通信范围内进行信道侦听,至少一个第五用户设备的通信范围可以与第一用户设备、第二用户设备的通信范围相同或不同,从而可以避免侦听不到与隐藏的用户设备之间的信道情况,导致分配的接入资源冲突。In yet another possible implementation, the method further includes: the second user equipment receiving a third channel sensing result from at least one fifth user equipment, the third channel sensing result being the at least one A result of the fifth user equipment intercepting a channel with at least one sixth user equipment within the communication range of the at least one fifth user equipment; wherein, the first service resource information is based on the second channel determined by the listening result, the first channel listening result, and the third channel listening result. In this implementation, the first service resource information may be further determined according to the channel sensing result of the second user equipment and the channel sensing result of at least one fifth user equipment. The at least one fifth user equipment belongs to other user equipments except the first user equipment in the network managed by the second user equipment. At least one fifth user equipment can perform channel monitoring within its communication range, and the communication range of at least one fifth user equipment can be the same as or different from that of the first user equipment and the second user equipment, so that interception can be avoided The channel condition between the invisible user equipment and the hidden user equipment leads to the conflict of allocated access resources.
在又一种可能的实现中,所述方法还包括:所述第二用户设备对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到所述第二信道侦听结果;所述第二用户设备侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙;以及所述第二用户设备连续侦听到设定次数所述任一时域 资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,其中,所述第二门限值小于所述第一门限值。在该实现中,第二用户设备可以根据当前的信道侦听结果实时更新第二信道侦听结果,以准确地分配业务资源。In yet another possible implementation, the method further includes: the second user equipment detects the channel strength of any subband of the data channel on at least one time domain resource position, and obtains the second channel sensed Listen to the result; the second user equipment detects that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and updates the any time domain resource position as the channel is busy; and The second user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to a second threshold value for a set number of times, and updates the any time domain resource position as the channel idle, wherein the second threshold is smaller than the first threshold. In this implementation, the second user equipment can update the second channel sensing result in real time according to the current channel sensing result, so as to accurately allocate service resources.
在又一种可能的实现中,所述第二用户设备侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙,包括:所述第二用户设备侦听到任一时域资源位置r上数据信道的任一子带的信号强度大于或等于所述第一门限值,将第二资源位图中第i个比特置为第一值,其中,i=r%q,其中,所述第二资源位图包括q个比特,%表示取余运算。In yet another possible implementation, the second user equipment senses that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold, and updates the any time domain resource The position is that the channel is busy, including: the second user equipment senses that the signal strength of any subband of the data channel on any time domain resource position r is greater than or equal to the first threshold value, and sets the second resource bitmap The i-th bit in is set to the first value, where i=r%q, wherein the second resource bitmap includes q bits, and % represents a remainder operation.
在又一种可能的实现中,所述第二用户设备连续侦听到设定次数所述任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,包括:所述第二用户设备连续侦听到所述设定次数所述第i个比特对应的s个时域资源位置上数据信道的任一子带的信号强度小于或等于所述第二门限值,将所述第二资源位图中所述第i个比特置为第二值。In yet another possible implementation, the second user equipment detects continuously that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold for a set number of times, and updates Said any time-domain resource position is a channel idle, including: said second user equipment continuously senses any subband of the data channel on the s time-domain resource positions corresponding to the i-th bit for the set number of times The signal strength of is less than or equal to the second threshold value, and the ith bit in the second resource bitmap is set to a second value.
在又一种可能的实现中,所述第一信道侦听结果包括第一资源位图或第一空闲时域资源信息;所述第二信道侦听结果包括所述第二资源位图或第二空闲时域资源信息。In yet another possible implementation, the first channel sensing result includes the first resource bitmap or first idle time domain resource information; the second channel sensing result includes the second resource bitmap or the first 2. Free time domain resource information.
在又一种可能的实现中,所述方法还包括:所述第二用户设备监测到所述第一用户设备使用业务资源进行业务数据传输的次数达到所述业务资源的预留次数时,所述第二用户设备发送第二业务资源信息。在该实现中,第二用户设备初始给第一用户设备预留一定次数的业务资源,当监测到第一用户设备使用业务资源进行业务数据传输的次数达到业务资源的预留次数时,第二用户设备再次给第一用户设备分配业务资源,第二业务资源信息可以与第一业务资源信息完全相同,或部分相同,或完全不同。In yet another possible implementation, the method further includes: when the second user equipment detects that the number of service data transmissions performed by the first user equipment using service resources reaches the reserved number of service resources, the The second user equipment sends second service resource information. In this implementation, the second user equipment initially reserves service resources for a certain number of times for the first user equipment. The user equipment allocates service resources to the first user equipment again, and the second service resource information may be completely the same, or partly the same, or completely different from the first service resource information.
第二方面,提供了一种D2D通信的资源分配方法,所述方法包括:在第一用户设备接入第二用户设备时,所述第一用户设备向所述第二用户设备发送建链请求消息,所述建链请求消息包括所述第一用户设备的第一信道侦听结果;所述第一用户设备接收来自所述第二用户设备的建链响应,所述建链响应包括第一业务资源信息,所述第一业务资源信息是根据所述第一信道侦听结果和所述第二用户设备自身的第二信道侦听结果确定的;以及所述第一用户设备在所述第一业务资源信息所指示的业务资源位置进行业务数据的传输。在该方面中,第一用户设备接收第二用户设备发送的第一业务资源信息,该第一业务资源信息是第二用户设备根据第一信道侦听结果和第二用户设备自身的第二信道侦听结果确定的,第一用户设备根据该第一业务资源信息进行业务数据的传输,从而第一用户设备可以可靠地实现业务数据的传输,避免多个用户设备同时接入时的业务资源冲突。In a second aspect, a resource allocation method for D2D communication is provided, the method comprising: when a first user equipment accesses a second user equipment, the first user equipment sends a link establishment request to the second user equipment message, the link establishment request message includes the first channel monitoring result of the first user equipment; the first user equipment receives a link establishment response from the second user equipment, and the link establishment response includes the first Service resource information, the first service resource information is determined according to the first channel detection result and the second channel detection result of the second user equipment itself; and the first user equipment in the first A service resource location indicated by the service resource information transmits service data. In this aspect, the first user equipment receives the first service resource information sent by the second user equipment, and the first service resource information is the first channel detection result of the second user equipment and the second channel of the second user equipment itself. If the interception result is determined, the first user equipment transmits service data according to the first service resource information, so that the first user equipment can reliably transmit service data and avoid service resource conflicts when multiple user equipments access at the same time .
在一种可能的实现中,所述第一业务资源信息包括以下至少一个信息:业务资源的标识、业务资源位置、业务资源的周期、每个周期内分配的业务资源数量、每个周期内分配的业务资源之间的传输间隔、业务资源的预留次数。In a possible implementation, the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource cycle, the number of service resources allocated in each cycle, and the number of service resources allocated in each cycle. The transmission interval between business resources and the number of reservations of business resources.
在另一种可能的实现中,所述第一信道侦听结果是所述第一用户设备对与所述第一用户设备的通信范围内的至少一个第三用户设备之间的信道的侦听结果;所述第二信道侦听结果是所述第二用户设备对与所述第二用户设备的通信范围内的至少一个第四用户设备之间的信道的侦听结果。In another possible implementation, the first channel interception result is that the first user equipment intercepts a channel between at least one third user equipment within the communication range of the first user equipment Result; the second channel listening result is a result of the second user equipment listening to a channel between at least one fourth user equipment within the communication range of the second user equipment.
在又一种可能的实现中,所述方法还包括:所述第一用户设备对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到所述第一信道侦听结果;所述第一用户设备侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新 所述任一时域资源位置为信道忙;以及所述第一用户设备连续侦听到设定次数所述任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,其中,所述第二门限值小于所述第一门限值。In another possible implementation, the method further includes: the first user equipment detects the channel strength of any subband of the data channel on at least one time domain resource position, and obtains the first channel sensed Listen to the result; the first user equipment detects that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and updates the any time domain resource position as the channel is busy; and The first user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and updates the any time domain resource position as the channel idle, wherein the second threshold is smaller than the first threshold.
在又一种可能的实现中,所述第一用户设备侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙,包括:所述第一用户设备侦听到任一时域资源位置n上数据信道的任一子带的信号强度大于或等于所述第一门限值,将第一资源位图中第j个比特置为第一值,其中,j=n%p,其中,所述资源位图包括p个比特,%表示取余运算。In yet another possible implementation, the first user equipment detects that the signal strength of any subband of the data channel at any time domain resource position is greater than or equal to the first threshold, and updates the any time domain resource The position is that the channel is busy, including: the first user equipment senses that the signal strength of any subband of the data channel on any time domain resource position n is greater than or equal to the first threshold value, and sets the first resource bitmap The jth bit in is set to the first value, where j=n%p, wherein the resource bitmap includes p bits, and % represents a remainder operation.
在又一种可能的实现中,所述第一用户设备连续侦听到设定次数所述任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,包括:所述第一用户设备连续侦听到所述设定次数所述第j个比特对应的m个时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,将所述第二资源位图中所述第j个比特置为第二值。In yet another possible implementation, the first user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold for a set number of times, and updates Said any time-domain resource position is a channel idle, including: said first user equipment continuously detects any sub-band of a data channel on m time-domain resource positions corresponding to said j-th bit for said set number of times The signal strength of is less than or equal to a second threshold value, and the jth bit in the second resource bitmap is set to a second value.
在又一种可能的实现中,所述第一信道侦听结果包括所述第一资源位图或第一空闲时域资源信息;所述第二信道侦听结果包括第二资源位图或第二空闲时域资源信息。In yet another possible implementation, the first channel sensing result includes the first resource bitmap or the first idle time domain resource information; the second channel sensing result includes the second resource bitmap or the first 2. Free time domain resource information.
在又一种可能的实现中,所述方法还包括:所述第一用户设备使用业务资源进行业务数据传输的次数达到所述业务资源的预留次数时,接收来自所述第二用户设备的第二业务资源信息。In yet another possible implementation, the method further includes: when the number of service data transmissions performed by the first user equipment using service resources reaches the reserved number of service resources, receiving a message from the second user equipment Second business resource information.
第三方面,提供了一种D2D通信的资源分配装置。所述D2D通信的资源分配装置可以实现上述第一方面中的方法。例如所述D2D通信的资源分配装置可以芯片或者终端。可以通过软件、硬件、者通过硬件执行相应的软件实现上述方法。In a third aspect, a resource allocation device for D2D communication is provided. The resource allocation device for D2D communication may implement the method in the first aspect above. For example, the resource allocation device for D2D communication may be a chip or a terminal. The above method can be realized by software, hardware, or by executing corresponding software by hardware.
在一种可能的实现方式中,所述装置包括:收发单元;其中:所述收发单元,用于在第一用户设备接入所述装置时,接收来自所述第一用户设备的建链请求消息,所述建链请求消息包括所述第一用户设备的第一信道侦听结果;所述收发单元,还用于向所述第一用户设备发送建链响应,所述建链响应包括第一业务资源信息,所述第一业务资源信息是根据所述第一信道侦听结果和所述装置自身的第二信道侦听结果确定的;以及所述收发单元,还用于在所述第一业务资源信息所指示的业务资源位置与所述第一用户设备进行业务数据的传输。In a possible implementation manner, the apparatus includes: a transceiver unit; wherein: the transceiver unit is configured to receive a link establishment request from the first user equipment when the first user equipment accesses the apparatus message, the link establishment request message includes the first channel monitoring result of the first user equipment; the transceiver unit is further configured to send a link establishment response to the first user equipment, and the link establishment response includes the first Service resource information, the first service resource information is determined according to the first channel detection result and the second channel detection result of the device itself; and the transceiver unit is further configured to The service resource location indicated by the service resource information and the first user equipment perform service data transmission.
可选地,所述第一业务资源信息包括以下至少一个信息:业务资源的标识、业务资源位置、业务资源的周期、每个周期内分配的业务资源数量、每个周期内分配的业务资源之间的传输间隔、业务资源的预留次数。Optionally, the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource period, the number of service resources allocated in each period, and the number of service resources allocated in each period. The interval between transmissions and the number of reservations of business resources.
可选地,所述第一信道侦听结果是所述第一用户设备对与所述第一用户设备的通信范围内的至少一个第三用户设备之间的信道的侦听结果;所述第二信道侦听结果是所述装置对与所述装置的通信范围内的至少一个第四用户设备之间的信道的侦听结果。Optionally, the first channel listening result is a result of the first user equipment listening to a channel between at least one third user equipment within a communication range with the first user equipment; the first The second channel listening result is a result of the apparatus listening to a channel with at least one fourth user equipment within a communication range of the apparatus.
可选地,所述收发单元,还用于接收来自至少一个第五用户设备的第三信道侦听结果,所述第三信道侦听结果是所述至少一个第五用户设备对与所述至少一个第五用户设备的通信范围内的至少一个第六用户设备之间的信道的侦听结果;其中,所述第一业务资源信息是根据所述第二信道侦听结果、所述第一信道侦听结果和所述第三信道侦听结果确定的。Optionally, the transceiving unit is further configured to receive a third channel listening result from at least one fifth user equipment, where the third channel listening result is a pair of the at least one fifth user equipment and the at least one An interception result of a channel between at least one sixth user equipment within the communication range of a fifth user equipment; wherein, the first service resource information is based on the second channel interception result, the first channel determined by the listening result and the third channel listening result.
可选地,所述装置还包括:处理单元;其中:所述处理单元,用于对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到所述第二信道侦听结果;所述处理单元,还用于侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙;以及所述处理单元,还用于连续侦听到设定次数 所述任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,其中,所述第二门限值小于所述第一门限值。Optionally, the device further includes: a processing unit; wherein: the processing unit is configured to detect the channel strength of any subband of the data channel on at least one time domain resource position, and obtain the second channel Listening result: the processing unit is also configured to detect that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and update the any time domain resource position as the channel busy; and the processing unit is also configured to continuously detect that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and update the any time domain The domain resource location is an idle channel, wherein the second threshold is smaller than the first threshold.
可选地,所述处理单元,还用于侦听到任一时域资源位置r上数据信道的任一子带的信号强度大于或等于所述第一门限值,将第二资源位图中第i个比特置为第一值,其中,i=r%q,其中,所述第二资源位图包括q个比特,%表示取余运算。Optionally, the processing unit is further configured to detect that the signal strength of any subband of the data channel on any time-domain resource position r is greater than or equal to the first threshold value, and put the second resource bitmap The i-th bit is set as the first value, where i=r%q, wherein the second resource bitmap includes q bits, and % represents a remainder operation.
可选地,所述处理单元,还用于连续侦听到所述设定次数所述第i个比特对应的s个时域资源位置上数据信道的任一子带的信号强度小于或等于所述第二门限值,将所述第二资源位图中所述第i个比特置为第二值。Optionally, the processing unit is further configured to continuously detect that the signal strength of any subband of the data channel at the s time-domain resource positions corresponding to the i-th bit for the set number of times is less than or equal to the set the second threshold value, and set the ith bit in the second resource bitmap to a second value.
可选地,所述第一信道侦听结果包括第一资源位图或第一空闲时域资源信息;所述第二信道侦听结果包括所述第二资源位图或第二空闲时域资源信息。Optionally, the first channel sensing result includes first resource bitmap or first idle time domain resource information; the second channel sensing result includes the second resource bitmap or second idle time domain resource information information.
可选地,所述收发单元,还用于监测到所述装置使用业务资源进行业务数据传输的次数达到所述业务资源的预留次数时,发送第二业务资源信息。Optionally, the transceiving unit is further configured to send second service resource information when detecting that the number of service data transmissions performed by the device using service resources reaches the number of service resource reservations.
在另一种可能的实现方式中,该D2D通信的资源分配装置用于执行上述第一方面及其各种可能的实现中的方法。In another possible implementation manner, the device for allocating resources for D2D communication is used to execute the method in the above first aspect and various possible implementations thereof.
第四方面,提供了一种D2D通信的资源分配装置。所述D2D通信的资源分配装置可以实现上述第二方面中的方法。例如所述D2D通信的资源分配装置可以芯片或者终端。可以通过软件、硬件、者通过硬件执行相应的软件实现上述方法。In a fourth aspect, a resource allocation device for D2D communication is provided. The resource allocation device for D2D communication may implement the method in the second aspect above. For example, the resource allocation device for D2D communication may be a chip or a terminal. The above method can be realized by software, hardware, or by executing corresponding software by hardware.
在一种可能的实现中,所述装置包括:收发单元;其中:所述收发单元,用于在所述装置接入第二用户设备时,向所述第二用户设备发送建链请求消息,所述建链请求消息包括所述装置的第一信道侦听结果;所述收发单元,还用于接收来自所述第二用户设备的建链响应,所述建链响应包括第一业务资源信息,所述第一业务资源信息是根据所述第一信道侦听结果和所述第二用户设备自身的第二信道侦听结果确定的;以及所述收发单元,还用于在所述第一业务资源信息所指示的业务资源位置进行业务数据的传输。In a possible implementation, the apparatus includes: a transceiver unit; wherein: the transceiver unit is configured to send a link establishment request message to the second user equipment when the apparatus accesses the second user equipment, The link establishment request message includes the first channel monitoring result of the device; the transceiver unit is further configured to receive a link establishment response from the second user equipment, the link establishment response including first service resource information , the first service resource information is determined according to the first channel sensing result and the second channel sensing result of the second user equipment itself; and the transceiving unit is further configured to, in the first The service resource location indicated by the service resource information transmits service data.
可选地,所述第一业务资源信息包括以下至少一个信息:业务资源的标识、业务资源位置、业务资源的周期、每个周期内分配的业务资源数量、每个周期内分配的业务资源之间的传输间隔、业务资源的预留次数。Optionally, the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource period, the number of service resources allocated in each period, and the number of service resources allocated in each period. The interval between transmissions and the number of reservations of business resources.
可选地,所述第一信道侦听结果是所述装置对与所述装置的通信范围内的至少一个第三用户设备之间的信道的侦听结果;所述第二信道侦听结果是所述第二用户设备对与所述第二用户设备的通信范围内的至少一个第四用户设备之间的信道的侦听结果。Optionally, the first channel listening result is a result of the device listening to a channel with at least one third user equipment within the communication range of the device; the second channel listening result is An interception result of the channel between the second user equipment and at least one fourth user equipment within the communication range of the second user equipment.
可选地,所述装置还包括:处理单元;其中:所述处理单元,用于对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到所述第一信道侦听结果;所述处理单元,还用于侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙;以及所述处理单元,还用于连续侦听到设定次数所述任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,其中,所述第二门限值小于所述第一门限值。Optionally, the device further includes: a processing unit; wherein: the processing unit is configured to detect the channel strength of any subband of the data channel on at least one time domain resource position, and obtain the first channel Listening result: the processing unit is also configured to detect that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and update the any time domain resource position as the channel busy; and the processing unit is also configured to continuously detect that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and update the any time domain The domain resource location is an idle channel, wherein the second threshold is smaller than the first threshold.
可选地,所述处理单元,还用于侦听到任一时域资源位置n上数据信道的任一子带的信号强度大于或等于所述第一门限值,将第一资源位图中第j个比特置为第一值,其中,j=n%p,其中,所述资源位图包括p个比特,%表示取余运算。Optionally, the processing unit is further configured to detect that the signal strength of any subband of the data channel at any time-domain resource position n is greater than or equal to the first threshold value, and put the first resource bitmap The jth bit is set as the first value, where j=n%p, wherein the resource bitmap includes p bits, and % represents a remainder operation.
可选地,所述处理单元,还用于连续侦听到所述设定次数所述第j个比特对应的m个时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,将所述第二资源位图中所述第j个比特置为第二值。Optionally, the processing unit is further configured to continuously detect that the signal strength of any subband of the data channel at the m time-domain resource positions corresponding to the j-th bit for the set number of times is less than or equal to the first Two threshold values, setting the jth bit in the second resource bitmap as a second value.
可选地,所述第一信道侦听结果包括所述第一资源位图或第一空闲时域资源信息;所述第二信道侦听结果包括第二资源位图或第二空闲时域资源信息。Optionally, the first channel sensing result includes the first resource bitmap or first idle time domain resource information; the second channel sensing result includes a second resource bitmap or second idle time domain resource information information.
可选地,所述收发单元,还用于使用业务资源进行业务数据传输的次数达到所述业务资源的预留次数时,接收来自所述第二用户设备的第二业务资源信息。Optionally, the transceiving unit is further configured to receive second service resource information from the second user equipment when the number of service data transmissions using service resources reaches the number of service resource reservations.
在另一种可能的实现方式中,该D2D通信的资源分配装置用于执行上述第二方面及其各种可能的实现中的方法。In another possible implementation manner, the device for allocating resources for D2D communication is used to execute the method in the above second aspect and various possible implementations thereof.
在又一种可能的实现方式中,上述第三方面或第四方面中的D2D通信的资源分配装置包括与存储器耦合的处理器;所述处理器被配置为支持所述装置执行上述D2D通信的资源分配方法中相应的功能。存储器用于与处理器耦合,其保存所述装置必要的计算机程序(或计算机可执行指令)和/或数据。可选的,所述D2D通信的资源分配装置还可以包括通信接口用于支持所述装置与其他网元之间的通信,例如数据和/或信号的发送或接收。示例性的,通信接口可以是收发器、电路、总线、模块或其它类型的通信接口。可选的,该存储器可以位于该D2D通信的资源分配装置内部,和处理器集成在一起;也可以位于该D2D通信的资源分配装置外部。In yet another possible implementation manner, the resource allocation device for D2D communication in the above third aspect or the fourth aspect includes a processor coupled to a memory; the processor is configured to support the device to perform the above D2D communication The corresponding function in the resource allocation method. The memory is used to couple with the processor, which holds the necessary computer programs (or computer-executable instructions) and/or data of the device. Optionally, the resource allocation device for D2D communication may further include a communication interface for supporting communication between the device and other network elements, such as sending or receiving data and/or signals. Exemplarily, the communication interface may be a transceiver, a circuit, a bus, a module or other types of communication interfaces. Optionally, the memory may be located inside the resource allocation device for D2D communication and integrated with the processor; it may also be located outside the resource allocation device for D2D communication.
在又一种可能的实现方式中,上述第三方面或第四方面中的D2D通信的资源分配装置包括处理器和收发装置,所述处理器与所述收发装置耦合,所述处理器用于执行计算机程序或指令,以控制所述收发装置进行信息的接收和发送;当所述处理器执行所述计算机程序或指令时,所述处理器还用于通过逻辑电路或执行代码指令实现上述方法。其中,所述收发装置可以为收发器、收发电路或输入输出接口,用于接收来自所述D2D通信的资源分配装置之外的其它D2D通信的资源分配装置的信号并传输至所述处理器或将来自所述处理器的信号发送给所述D2D通信的资源分配装置之外的其它D2D通信的资源分配装置。当所述D2D通信的资源分配装置为芯片时,所述收发装置为收发电路或输入输出接口。In yet another possible implementation manner, the resource allocation device for D2D communication in the third aspect or the fourth aspect includes a processor and a transceiver device, the processor is coupled to the transceiver device, and the processor is configured to execute A computer program or instruction to control the transceiver device to receive and send information; when the processor executes the computer program or instruction, the processor is also used to implement the above method through a logic circuit or executing code instructions. Wherein, the transceiver device may be a transceiver, a transceiver circuit or an input-output interface, which is used to receive signals from resource allocation devices for D2D communication other than the resource allocation device for D2D communication and transmit them to the processor or Sending the signal from the processor to another resource allocation device for D2D communication other than the resource allocation device for D2D communication. When the resource allocation device for D2D communication is a chip, the transceiver device is a transceiver circuit or an input/output interface.
当上述第三方面或第四方面中的D2D通信的资源分配装置为芯片时,发送单元可以是输出单元,比如输出电路或者通信接口;接收单元可以是输入单元,比如输入电路或者通信接口。当所述D2D通信的资源分配装置为终端时,发送单元可以是发射器或发射机;接收单元可以是接收器或接收机。When the resource allocation device for D2D communication in the above third or fourth aspect is a chip, the sending unit may be an output unit, such as an output circuit or a communication interface; the receiving unit may be an input unit, such as an input circuit or a communication interface. When the resource allocation device for D2D communication is a terminal, the sending unit may be a transmitter or a transmitter; the receiving unit may be a receiver or a receiver.
第五方面,提供了一种通信系统,所述通信系统包括如第三方面或第三方面的任一种实现所述的D2D通信的资源分配装置、以及至少一个如第四方面或第四方面的任一种实现所述的D2D通信的资源分配装置。In the fifth aspect, a communication system is provided, the communication system includes a resource allocation device for implementing the D2D communication according to any one of the third aspect or the third aspect, and at least one resource allocation device according to the fourth aspect or the fourth aspect Any resource allocation device for implementing the D2D communication.
第六方面,提供了一种计算机可读存储介质,其上存储有计算机程序或指令,该程序或指令被处理器执行时,如第一方面或第一方面的任一种实现所述的方法被执行,或者,实现如第二方面或第二方面的任一种实现所述的方法被执行。A sixth aspect provides a computer-readable storage medium, on which a computer program or instruction is stored, and when the program or instruction is executed by a processor, the method described in the first aspect or any one of the first aspect is implemented be executed, or to implement the method described in the second aspect or any one of the implementations of the second aspect is executed.
第七方面,提供了一种计算机程序产品,当其在计算设备上执行时,使得如第一方面或第一方面的任一种实现所述的方法被执行,或者如第二方面或第二方面的任一种实现所述的方法被执行。In a seventh aspect, there is provided a computer program product, which, when executed on a computing device, causes the method described in any one of the first aspect or the first aspect to be executed, or the method described in the second aspect or the second The method described in any implementation of the aspect is performed.
附图说明Description of drawings
图1为成员设备接入有中心网络的流程示意图;FIG. 1 is a schematic diagram of the flow of member devices accessing a centralized network;
图2为LTE V2X侦听和资源预留示意图;Figure 2 is a schematic diagram of LTE V2X interception and resource reservation;
图3为隐藏的用户设备的示意图;FIG. 3 is a schematic diagram of a hidden user equipment;
图4为本申请实施例提供的一种通信系统的示意图;FIG. 4 is a schematic diagram of a communication system provided by an embodiment of the present application;
图5为本申请实施例提供的一种D2D通信的资源分配方法的流程示意图;FIG. 5 is a schematic flowchart of a resource allocation method for D2D communication provided by an embodiment of the present application;
图6为本申请实施例提供的另一种D2D通信的资源分配方法的流程示意图;FIG. 6 is a schematic flowchart of another D2D communication resource allocation method provided by an embodiment of the present application;
图7为本申请示例的第一空闲时域资源信息指示的至少一个第一空闲时域资源的示意图;FIG. 7 is a schematic diagram of at least one first idle time domain resource indicated by the first idle time domain resource information in the example of the present application;
图8为本申请实施例提供的一种D2D通信的资源分配装置的结构示意图;FIG. 8 is a schematic structural diagram of a resource allocation device for D2D communication provided by an embodiment of the present application;
图9为本申请实施例提供的另一种D2D通信的资源分配装置的结构示意图。FIG. 9 is a schematic structural diagram of another D2D communication resource allocation device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合本申请实施例中的附图对本申请实施例进行描述。Embodiments of the present application are described below with reference to the drawings in the embodiments of the present application.
本申请提出了一种无蜂窝网络覆盖下的有中心的通信系统架构。如图4所示,为本申请提供的一种通信系统的结构示意图,该通信系统4000位于第一网络中,该通信系统4000/第一网络包括第二用户设备(user equipment,UE)401和第一用户设备402。该通信系统4000还可以包括至少一个第五用户设备403(图中以虚线示例了3个第五用户设备以及3个第五用户设备与第一用户设备、第二用户设备之间的连接,本申请对第五用户设备的数量不作限定,可以是非负整数个)。其中,第二用户设备401是该第一网络的中心,负责网络的建立和管理,因此也可以称为管理设备。每个有中心的网络只有一个管理设备,但可以变更管理设备。第一用户设备402、至少一个第五用户设备403同步到第二用户设备401后,成为该管理设备的成员设备。第一用户设备402需要同步到第二用户设备401,并接入网络后,才可以和其它成员设备通信。一个有中心的网络可以有多个成员设备。This application proposes a centralized communication system architecture without cellular network coverage. As shown in FIG. 4 , which is a schematic structural diagram of a communication system provided by the present application, the communication system 4000 is located in a first network, and the communication system 4000/first network includes a second user equipment (user equipment, UE) 401 and The first user equipment 402 . The communication system 4000 may further include at least one fifth user equipment 403 (three fifth user equipments and the connections between the three fifth user equipments and the first user equipment and the second user equipment are illustrated by dotted lines in the figure, this The application does not limit the number of the fifth user equipment, which may be a non-negative integer). Wherein, the second user equipment 401 is the center of the first network and is responsible for establishing and managing the network, so it can also be called a management equipment. Each central network has only one management device, but the management device can be changed. After the first user device 402 and at least one fifth user device 403 are synchronized to the second user device 401, they become member devices of the management device. The first user equipment 402 needs to be synchronized with the second user equipment 401 and access the network before it can communicate with other member equipment. A central network can have multiple member devices.
其中,第二用户设备401:负责第一网络内同步信息发送、成员设备接入管理及设备标识分配、成员列表维护、第一网络内通信资源分配和回收、第一网络内消息中转、网络间标识冲突检测和更新等。Among them, the second user equipment 401: is responsible for sending synchronous information in the first network, member device access management and device identification allocation, member list maintenance, communication resource allocation and recycling in the first network, message transfer in the first network, inter-network Identity conflict detection and update etc.
第一用户设备402:和管理设备同步,接入管理设备创建的第一网络后,定期通过心跳消息发送自身状态。第一用户设备402可以和第一网络内任意成员设备进行通信,也可以选择部分成员设备组建组播组进行通信。The first user equipment 402: synchronizes with the management equipment, and after accessing the first network created by the management equipment, periodically sends its own status through heartbeat messages. The first user equipment 402 may communicate with any member equipment in the first network, and may also select some member equipment to form a multicast group for communication.
第二用户设备401、第一用户设备402、至少一个第五用户设备403可以是D2D设备。示例性地,D2D设备可以是指D2D通信中的终端。终端是一种具有无线收发功能的节点,可以部署在陆地上,包括室内或室外、手持、穿戴或车载;也可以部署在水面上,如轮船上等;还可以部署在空中,如飞机、无人机、气球和卫星上等。D2D设备可以是手机(mobile phone)、平板电脑(pad)、带无线收发功能的电脑、车到一切(vehicle to everything,V2X)中的终端、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。本申请的实施例对应用场景不做限定。终端有时也可以称为用户设备(user equipment,UE)、接入终端设备、UE单元、移动站、移动台、远方站、远程终端设备、移动设备、无线通信设备、UE代理或UE装置等。The second user equipment 401, the first user equipment 402, and at least one fifth user equipment 403 may be D2D devices. Exemplarily, a D2D device may refer to a terminal in D2D communication. The terminal is a node with wireless transceiver function, which can be deployed on land, including indoor or outdoor, handheld, wearable or vehicle-mounted; it can also be deployed on water, such as on ships, etc.; it can also be deployed in the air, such as aircraft, wireless Man-machines, balloons and satellites, etc. D2D devices can be mobile phone, tablet computer (pad), computer with wireless transceiver function, terminal in vehicle to everything (V2X), virtual reality (virtual reality, VR) terminal equipment, augmented reality (augmented reality, AR) terminal equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical, smart grid Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc. The embodiments of the present application do not limit the application scenarios. A terminal may sometimes also be referred to as user equipment (user equipment, UE), access terminal equipment, UE unit, mobile station, mobile station, remote station, remote terminal equipment, mobile equipment, wireless communication equipment, UE proxy or UE device, etc.
针对背景技术提出的在给多个用户设备分配业务资源时,可能存在资源冲突的问题。本申请提供了一种D2D通信的资源分配方案,第二用户设备通过获取第一用户设备的第一信道侦听结果,并根据该第一信道侦听结果和第二用户设备自身的第二信道侦听结果确定业务资源信息,第一用户设备根据在该业务资源信息所指示的业务资源位置上进行业务数据的传输。从而可以准确地确定业务资源,可靠地实现业务数据的传输,避免多个用户设备同时接入时 的业务资源冲突。In view of the background art, when allocating service resources to multiple user equipments, there may be a resource conflict problem. This application provides a resource allocation scheme for D2D communication. The second user equipment obtains the first channel detection result of the first user equipment, and according to the first channel detection result and the second channel of the second user equipment itself The interception result determines the service resource information, and the first user equipment transmits the service data according to the service resource location indicated by the service resource information. In this way, service resources can be accurately determined, service data can be transmitted reliably, and service resource conflicts can be avoided when multiple user equipments access at the same time.
该方案也可以进一步应用到蜂窝网络中,对于蜂窝网络中多个用户设备同时接入基站的场景,可以使用本申请的方案,解决多个用户设备之间的业务资源冲突问题。This solution can also be further applied to the cellular network. For the scenario where multiple user equipments access the base station at the same time in the cellular network, the solution of this application can be used to solve the problem of service resource conflict among multiple user equipments.
基于图4所示的通信系统的架构,下面对本申请实施例提供的D2D通信的资源分配方案进行详细描述:Based on the architecture of the communication system shown in FIG. 4, the resource allocation scheme for D2D communication provided by the embodiment of the present application is described in detail below:
如图5所示,为本申请实施例提供的一种D2D通信的资源分配方法的流程示意图,该方法可以包括以下步骤:As shown in FIG. 5, it is a schematic flowchart of a resource allocation method for D2D communication provided by the embodiment of the present application, and the method may include the following steps:
S501.在第一用户设备接入第二用户设备时,第一用户设备向第二用户设备发送建链请求消息。该建链请求消息包括第一用户设备的第一信道侦听结果。S501. When the first user equipment accesses the second user equipment, the first user equipment sends a link establishment request message to the second user equipment. The link establishment request message includes the first channel monitoring result of the first user equipment.
相应地,第二用户设备接收该建链请求消息。Correspondingly, the second user equipment receives the link establishment request message.
针对有中心的网络,首先选定一个用户设备作为管理设备,例如,本实施例中选定第二用户设备作为管理设备。管理设备提供同步源。其它用户设备以第二用户设备的同步信号为目标进行同步发现,完成同步发现后,执行随机接入处理,构成一个有中心的网络。本实施例以第一用户设备随机接入该有中心的网络为例进行描述。For a network with a center, first select a user equipment as the management device, for example, select the second user equipment as the management device in this embodiment. The management device provides the synchronization source. The other user equipments perform synchronous discovery with the synchronization signal of the second user equipment as the target, and perform random access processing after the synchronous discovery is completed, forming a centered network. This embodiment is described by taking the first user equipment randomly accessing the centered network as an example.
当第一用户设备需要加入有中心的网络时,需要先搜索到第二用户设备广播的同步信号。第一用户设备搜索到该同步信号后,向第二用户设备发送接入请求。该接入请求用于请求接入该网络。该接入请求可以称为随机接入请求,随机接入前导,前导(preamble),消息1等。第二用户设备接收该接入请求。When the first user equipment needs to join the centered network, it needs to first search for the synchronization signal broadcast by the second user equipment. After searching for the synchronization signal, the first user equipment sends an access request to the second user equipment. The access request is used to request access to the network. The access request may be called a random access request, a random access preamble, a preamble, message 1, and so on. The second user equipment receives the access request.
示例性地,可以有多个第一用户设备同时接入该网络。第二用户设备接收该多个第一用户设备的接入请求。Exemplarily, multiple first user equipments may access the network at the same time. The second user equipment receives the access requests of the multiple first user equipments.
第二用户设备接收到第一用户设备发送的接入请求后,向第一用户设备发送接入响应。该接入响应为对上述接入请求的响应。该接入响应可以称为随机接入响应(random access response,RAR),消息2等。第一用户设备接收该接入响应。After receiving the access request sent by the first user equipment, the second user equipment sends an access response to the first user equipment. The access response is a response to the above access request. The access response may be called a random access response (random access response, RAR), message 2, and so on. The first user equipment receives the access response.
第一用户设备在接收到上述接入响应后,向第二用户设备发送建链请求消息。该建链请求消息用于请求建立与该网络或第二用户设备之间的链路。该建链请求消息又可以称为消息3。After receiving the foregoing access response, the first user equipment sends a link establishment request message to the second user equipment. The link establishment request message is used to request establishment of a link with the network or the second user equipment. The link establishment request message may also be referred to as message 3 .
本实施例中,第一用户设备在搜索到第二用户设备广播的同步信号时,进行信道侦听,以得到第一信道侦听结果。示例性地,第一用户设备对与其通信范围内的至少一个第三用户设备之间的信道进行侦听。该第一信道侦听结果是第一用户设备对与第一用户设备的通信范围内的至少一个第三用户设备之间的信道的侦听结果。该建链请求消息包括第一用户设备的第一信道侦听结果。In this embodiment, when the first user equipment searches for the synchronization signal broadcast by the second user equipment, it performs channel detection to obtain the first channel detection result. Exemplarily, the first user equipment monitors a channel between at least one third user equipment within its communication range. The first channel interception result is an interception result of the channel between the first user equipment and at least one third user equipment within the communication range of the first user equipment. The link establishment request message includes the first channel monitoring result of the first user equipment.
S502.第二用户设备向第一用户设备发送建链响应。S502. The second user equipment sends a link establishment response to the first user equipment.
相应地,第一用户设备接收该建链响应。Correspondingly, the first user equipment receives the link establishment response.
第二用户设备在创建该有中心的网络后,可以进行信道侦听。示例性地,第二用户设备对与第二用户设备的通信范围内的至少一个第四用户设备之间的信道的侦听结果。即该第二信道侦听结果是第二用户设备对与第二用户设备的通信范围内的至少一个第四用户设备之间的信道的侦听结果。示例性地,第二用户设备的通信范围可以与第一用户设备的通信范围相同或不同。After the centered network is established, the second user equipment can perform channel monitoring. Exemplarily, the second user equipment intercepts a channel between at least one fourth user equipment within a communication range with the second user equipment. That is, the second channel interception result is an interception result of the second user equipment on a channel between at least one fourth user equipment within the communication range of the second user equipment. Exemplarily, the communication range of the second user equipment may be the same as or different from that of the first user equipment.
第二用户设备在接收到第一用户设备的建链请求后,对第一用户设备进行鉴权,并且向第一用户设备发送建链响应。若鉴权通过,则给第一用户设备分配业务资源。第一用户设备有业务资源时才能进行业务数据传输。After receiving the link establishment request from the first user equipment, the second user equipment authenticates the first user equipment, and sends a link establishment response to the first user equipment. If the authentication passes, service resources are allocated to the first user equipment. Service data transmission can only be performed when the first user equipment has service resources.
第二用户设备根据上述接收到的第一信道侦听结果和第二用户设备自身的第二信道侦听结果确定第一业务资源信息。该第一业务资源信息用于指示第一用户设备进行业务数据传输的业务资源位置。The second user equipment determines the first service resource information according to the received first channel detection result and the second channel detection result of the second user equipment itself. The first service resource information is used to indicate the location of the service resource where the first user equipment performs service data transmission.
第二用户设备在确定第一业务资源信息后,向第一用户设备发送建链响应。该建链响应包括上述第一业务资源信息。After determining the first service resource information, the second user equipment sends a link establishment response to the first user equipment. The link establishment response includes the above-mentioned first service resource information.
S503.第一用户设备在第一业务资源信息所指示的业务资源位置进行业务数据的传输。S503. The first user equipment transmits service data at the service resource location indicated by the first service resource information.
相应地,第二用户设备在第一业务资源信息所指示的业务资源位置与第一用户设备进行业务数据的传输。Correspondingly, the second user equipment performs service data transmission with the first user equipment at the service resource location indicated by the first service resource information.
第一用户设备接收到第一业务资源信息后,可以在第一业务资源信息所指示的业务资源位置与第二用户设备或其它用户设备进行业务数据的传输。由于该第一业务资源信息是第二用户设备根据第一信道侦听结果和第二用户设备自身的第二信道侦听结果确定的,可以避免避免多个用户设备同时接入时的业务资源冲突,因此,第一用户设备可以可靠地实现业务数据的传输。After receiving the first service resource information, the first user equipment may transmit service data with the second user equipment or other user equipment at the service resource location indicated by the first service resource information. Since the first service resource information is determined by the second user equipment according to the first channel detection result and the second channel detection result of the second user equipment itself, service resource conflicts when multiple user equipments access at the same time can be avoided , therefore, the first user equipment can reliably transmit service data.
根据本申请实施例提供的一种D2D通信的资源分配方法,第二用户设备通过接收第一用户设备的第一信道侦听结果,根据第一信道侦听结果和第二用户设备自身的第二信道侦听结果确定第一业务资源信息,第一用户设备根据该第一业务资源信息进行业务数据的传输,从而可以准确地确定业务资源,使得第一用户设备可以可靠地实现业务数据的传输,避免多个用户设备同时接入时的业务资源冲突。According to a resource allocation method for D2D communication provided by an embodiment of the present application, the second user equipment receives the first channel detection result of the first user equipment, and according to the first channel detection result and the second user equipment's own second As a result of channel monitoring, the first service resource information is determined, and the first user equipment transmits service data according to the first service resource information, so that the service resource can be accurately determined, so that the first user equipment can reliably realize the transmission of service data, Avoid service resource conflicts when multiple user equipments access at the same time.
如图6所示,为本申请实施例提供的另一种D2D通信的资源分配方法的流程示意图,该方法可以包括以下步骤:As shown in FIG. 6, it is a schematic flowchart of another D2D communication resource allocation method provided by the embodiment of the present application. The method may include the following steps:
S601.第一用户设备对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到第一信道侦听结果。S601. The first user equipment detects the channel strength of any subband of the data channel on at least one time-domain resource position, and obtains a first channel detection result.
针对有中心的网络,首先选定一个用户设备作为管理设备,例如,本实施例中选定第二用户设备作为管理设备。管理设备提供同步源。其它用户设备以第二用户设备的同步信号为目标进行同步发现,完成同步发现后,执行随机接入处理,构成一个有中心的网络。本实施例以第一用户设备随机接入该有中心的网络为例进行描述。For a network with a center, first select a user equipment as the management device, for example, select the second user equipment as the management device in this embodiment. The management device provides the synchronization source. The other user equipments perform synchronous discovery with the synchronization signal of the second user equipment as the target, and perform random access processing after the synchronous discovery is completed, forming a centered network. This embodiment is described by taking the first user equipment randomly accessing the centered network as an example.
当第一用户设备需要加入有中心的网络时,需要先搜索到第二用户设备广播的同步信号。第一用户设备搜索到该同步信号后,成为该网络的成员设备。When the first user equipment needs to join the centered network, it needs to first search for the synchronization signal broadcast by the second user equipment. After the first user equipment searches for the synchronization signal, it becomes a member equipment of the network.
第一用户设备在搜索到第二用户设备广播的同步信号时,进行信道侦听,以得到第一信道侦听结果。示例性地,第一用户设备对与其通信范围内的至少一个第三用户设备之间的信道进行侦听。该第一信道侦听结果是第一用户设备对与第一用户设备的通信范围内的至少一个第三用户设备之间的信道的侦听结果。When the first user equipment searches for the synchronization signal broadcast by the second user equipment, it performs channel detection to obtain a first channel detection result. Exemplarily, the first user equipment monitors a channel between at least one third user equipment within its communication range. The first channel interception result is an interception result of the channel between the first user equipment and at least one third user equipment within the communication range of the first user equipment.
示例性地,第一用户设备在搜索到第二用户设备广播的同步信号时,在至少一个时域资源上进行信道侦听。该时域资源的单位可以是子帧、时隙、微时隙等。本实施例以时域资源的单位为子帧为例进行描述。第一用户设备可以在0~10239个子帧上进行信道侦听。信道侦听结果可以通过一个第一资源位图进行表征。例如,该第一资源位图可以包括160比特。该第一资源位图初始为全0表示所有子帧都是空闲的。Exemplarily, when the first user equipment searches for the synchronization signal broadcast by the second user equipment, it performs channel sensing on at least one time domain resource. The unit of the time-domain resource may be a subframe, a time slot, a mini-slot, and the like. In this embodiment, a unit of time-domain resources is a subframe as an example for description. The first user equipment may perform channel sensing in 0-10239 subframes. The channel sensing result can be represented by a first resource bitmap. For example, the first resource bitmap may include 160 bits. The first resource bitmap is initially all 0, indicating that all subframes are idle.
S602.第一用户设备侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新任一时域资源位置为信道忙。S602. The first user equipment detects that the signal strength of any subband of the data channel at any time domain resource position is greater than or equal to a first threshold, and updates any time domain resource position as channel busy.
第一用户设备实时维护该第一资源位图。第一用户设备在进行侦听时,如果发现当前子帧r(0≤r≤10239)上物理侧行共享信道(physical sidelink shared channel,PSSCH)的任 意一个子带上的接收的信号强度指示(received signal strength indication,RSSI)大于或等于第一门限值,则认为子帧r已经被占用,因此将该第一资源位图上的第j比特置为第一值。其中,j=n%160。%表示取余。The first user equipment maintains the first resource bitmap in real time. When the first user equipment is listening, if it finds a received signal strength indication ( If the received signal strength indication (RSSI) is greater than or equal to the first threshold value, it is considered that the subframe r has been occupied, so the jth bit on the first resource bitmap is set as the first value. where j=n%160. % represents the remainder.
S603.第一用户设备连续侦听到设定次数任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新任一时域资源位置为信道空闲,其中,第二门限值小于第一门限值。S603. The first user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and updates any time domain resource position as the channel is idle, wherein, The second threshold is smaller than the first threshold.
进一步地,第一用户设备还可以记录该第j比特置为第一值的时间。第一用户设备继续进行信道侦听,如果连续p次该第j比特对应的子帧上的所有子带的RSSI均小于或等于第二门限值,则将该第j比特置为第二值。Further, the first user equipment may also record the time when the jth bit is set to the first value. The first user equipment continues to perform channel sensing, and if the RSSI of all subbands on the subframe corresponding to the jth bit is less than or equal to the second threshold value for p consecutive times, set the jth bit to the second value .
其中,第二门限值小于第一门限值。该第一门限值和第二门限值的初始值可以由第二用户设备预先进行配置,通知各成员设备。该第一门限值和第二门限值也可以是出厂设置的。Wherein, the second threshold value is smaller than the first threshold value. The initial values of the first threshold and the second threshold may be pre-configured by the second user equipment and notified to each member equipment. The first threshold value and the second threshold value may also be factory-set.
上述第一值可以是“1”,用于表示该时域资源上的信道为忙,则相应的第二值可以是“0”,用于表示该时域资源上的信道为空闲。或者,上述第一值可以是“0”,用于表示该时域资源上的信道为忙,则相应的第二值可以是“1”,用于表示该时域资源上的信道为空闲。The above-mentioned first value may be "1", which is used to indicate that the channel on the time domain resource is busy, and the corresponding second value may be "0", which is used to indicate that the channel on the time domain resource is idle. Alternatively, the above-mentioned first value may be "0", which is used to indicate that the channel on the time domain resource is busy, and the corresponding second value may be "1", which is used to indicate that the channel on the time domain resource is idle.
例如,第一资源位图的初始值为(用十六进制表示):0x0000000000000000000000000000000000000000。For example, the initial value of the first resource bitmap (in hexadecimal notation): 0x0000000000000000000000000000000000000000.
假设在第20#子帧上检测到PSSCH信道的RSSI大于或等于第一门限值,则第一资源位图更新为:0x0000800000000000000000000000000000000000(即第20比特取“1”)。Assuming that it is detected that the RSSI of the PSSCH channel is greater than or equal to the first threshold value in the 20th subframe, the first resource bitmap is updated to: 0x0000800000000000000000000000000000000000 (that is, the 20th bit is "1").
假设在第210#子帧上检测到PSSCH信道的RSSI大于或等于第一门限值,则第一资源位图更新为:0x0000800000004000000000000000000000000000(即210%160=50比特取“1”)。Assuming that the RSSI of the PSSCH channel is detected to be greater than or equal to the first threshold on the 210# subframe, the first resource bitmap is updated to: 0x0000800000004000000000000000000000000000 (that is, 210%160=50 bits take "1").
假设第180#、340#、500#、660#、…1620#子帧上检测到PSSCH信道的RSSI均小于或等于第二门限值,则第一资源位图更新为:0x0000000000004000000000000000000000000000(即第20比特取“0”)。Assuming that the RSSIs of the PSSCH channel detected on the 180#, 340#, 500#, 660#, ... 1620# subframes are all less than or equal to the second threshold value, the first resource bitmap is updated to: 0x000000000000400000000000000000000000000 (that is, the 20th Bit takes "0").
S604.第二用户设备对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到第二信道侦听结果。S604. The second user equipment detects the channel strength of any subband of the data channel on at least one time-domain resource position, and obtains a second channel detection result.
S605.第二用户设备侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第三门限值,更新任一时域资源位置为信道忙。S605. The second user equipment detects that the signal strength of any subband of the data channel at any time domain resource position is greater than or equal to a third threshold, and updates any time domain resource position as channel busy.
S606.第二用户设备连续侦听到设定次数任一时域资源位置上数据信道的任一子带的信号强度小于或等于第四门限值,更新任一时域资源位置为信道空闲,其中,第四门限值小于第三门限值。S606. The second user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the fourth threshold value for a set number of times, and updates any time domain resource position as the channel is idle, wherein, The fourth threshold is smaller than the third threshold.
第二用户设备也可以参考上述步骤S601~S603中第一用户设备维护第一资源位图的方式维护第二用户设备的第二资源位图,得到第二信道侦听结果。The second user equipment may also maintain the second resource bitmap of the second user equipment by referring to the manner in which the first user equipment maintains the first resource bitmap in steps S601-S603 above, to obtain the second channel listening result.
示例性地,第二信道侦听结果可以是整个第二资源位图,也可以是第二资源位图中取值为第二值(即信道空闲)的位图比特值。Exemplarily, the second channel sensing result may be the entire second resource bitmap, or may be a bitmap bit value in the second resource bitmap whose value is the second value (that is, the channel is idle).
S607.在第一用户设备接入第二用户设备时,第一用户设备向第二用户设备发送建链请求消息。该建链请求消息包括第一用户设备的第一信道侦听结果。S607. When the first user equipment accesses the second user equipment, the first user equipment sends a link establishment request message to the second user equipment. The link establishment request message includes the first channel monitoring result of the first user equipment.
相应地,第二用户设备接收该建链请求消息。Correspondingly, the second user equipment receives the link establishment request message.
该步骤的具体实现可参考上述实施例的步骤S501。For the specific implementation of this step, reference may be made to step S501 in the foregoing embodiment.
示例性地。该第一信道侦听结果携带在建链请求消息的介质接入控制-控制元素(media access contro-control element,MAC-CE)中。Exemplarily. The first channel monitoring result is carried in a media access control-control element (media access control-control element, MAC-CE) of the link establishment request message.
该第一信道侦听结果可以是整个第一资源位图;也可以是第一空闲时域资源信息,例如 第一资源位图中取值为第二值(即信道空闲)的位图比特值;也可以是第一资源位图中取值为第一值(即信道忙)的位图比特值。The first channel sensing result can be the entire first resource bitmap; it can also be the first idle time-domain resource information, for example, the bitmap bit value whose value is the second value (that is, the channel is idle) in the first resource bitmap ; It may also be a bitmap bit value whose value is the first value (that is, the channel is busy) in the first resource bitmap.
例如,第一资源位图为0xFFFFFFFFFFFFFFFFFFFF01000800000000000000,即第0~79以及87、100比特对应的子帧上的信道忙,其余比特(第80~86、88~99、101~159比特)对应的子帧上的信道空闲。第一用户设备可以向第二用户设备第一资源位图,或者上报80~86、88~99、101~159,或者上报0~79以及87、100。For example, the first resource bitmap is 0xFFFFFFFFFFFFFFFFFFFF01000800000000000000, that is, the channels on the subframes corresponding to bits 0 to 79, 87 and 100 are busy, and the subframes corresponding to the remaining bits (bits 80 to 86, 88 to 99, and 101 to 159) The channel on is idle. The first user equipment may report either 80-86, 88-99, 101-159, or 0-79 and 87, 100 of the first resource bitmap to the second user equipment.
S608.至少一个第五用户设备向第二用户设备发送第三信道侦听结果。S608. At least one fifth user equipment sends a third channel sensing result to the second user equipment.
相应地,第二用户设备接收该第三信道侦听结果。Correspondingly, the second user equipment receives the third channel monitoring result.
该第三信道侦听结果是至少一个第五用户设备对与至少一个第五用户设备的通信范围内的至少一个第六用户设备之间的信道的侦听结果。The third channel interception result is an interception result of the channel between the at least one fifth user equipment and at least one sixth user equipment within the communication range of the at least one fifth user equipment.
本实施例中,第二用户设备还可以接收至少一个第五用户设备的第三信道侦听结果。该至少一个第五用户设备可以为已接入到该网络的成员设备。每个第五用户设备可以对与其通信范围内的至少一个第六用户设备之间的信道进行侦听,得到各自的信道侦听结果。至少一个第五用户设备可以分别向第二用户设备发送各自的第三信道侦听结果。In this embodiment, the second user equipment may also receive a third channel monitoring result of at least one fifth user equipment. The at least one fifth user equipment may be a member equipment that has been connected to the network. Each fifth user equipment may monitor a channel between at least one sixth user equipment within its communication range, and obtain respective channel monitoring results. The at least one fifth user equipment may respectively send the third channel monitoring results to the second user equipment.
每个第五用户设备也可以维护自身的第三资源位图。该第三信道侦听结果可以是整个第三资源位图;也可以是第三空闲时域资源信息,例如第三资源位图中取值为第二值(即信道空闲)的位图比特值;也可以是第三资源位图中取值为第一值(即信道忙)的位图比特值。Each fifth user equipment may also maintain its own third resource bitmap. The third channel sensing result can be the entire third resource bitmap; it can also be the third idle time-domain resource information, for example, the bitmap bit value whose value is the second value (that is, the channel is idle) in the third resource bitmap ; It may also be a bitmap bit value whose value is the first value (that is, the channel is busy) in the third resource bitmap.
每个第五用户设备的通信范围可以相同或不同。至少一个第五用户设备与第一用户设备、第二用户设备的通信范围也可以相同或不同。The communication range of each fifth user equipment may be the same or different. The communication ranges of the at least one fifth user equipment and the first user equipment and the second user equipment may also be the same or different.
假设用户设备3和用户设备4已接入用户设备2,用户设备3和用户设备4间隔距离较远,用户设备3和用户设备4侦听不到对方。用户设备3和用户设备4均向用户设备2发送各自的信道侦听结果。则用户设备2可以获得用户设备3和用户设备4的信道侦听结果,扩大了信道侦听的范围。Assuming that the user equipment 3 and the user equipment 4 have connected to the user equipment 2, the distance between the user equipment 3 and the user equipment 4 is relatively long, and the user equipment 3 and the user equipment 4 cannot detect each other. Both the user equipment 3 and the user equipment 4 send their respective channel detection results to the user equipment 2 . Then the user equipment 2 can obtain the channel detection results of the user equipment 3 and the user equipment 4, which expands the range of channel detection.
S609.第二用户设备向第一用户设备发送建链响应。S609. The second user equipment sends a link establishment response to the first user equipment.
相应地,第一用户设备接收该建链响应。Correspondingly, the first user equipment receives the link establishment response.
该建链响应包括第一业务资源信息。The link establishment response includes first service resource information.
该步骤的具体实现可参考上述实施例的步骤S502。所不同的是,该第一业务资源信息是根据第一信道侦听结果、第二用户设备自身的第二信道侦听结果和第三信道侦听结果确定的。For the specific implementation of this step, reference may be made to step S502 in the foregoing embodiment. The difference is that the first service resource information is determined according to the first channel sensing result, the second channel sensing result and the third channel sensing result of the second user equipment itself.
示例性地,第一用户设备、第二用户设备以及至少一个第五用户设备的通信范围可以相同或不同。假设用户设备1和用户设备3同时请求接入用户设备2,用户设备1和用户设备3间隔距离较远,用户设备1和用户设备3侦听不到对方。用户设备2需要给用户设备1和用户设备3分配业务资源。在本实施例中,用户设备2在给用户设备1分配业务资源时,接收来自第一用户设备的第一信道侦听结果和来自至少一个第五用户设备的第三信道侦听结果,根据第一信道侦听结果、第二用户设备自身的第二信道侦听结果和第三信道侦听结果确定第一业务资源信息,扩大了信道侦听的范围。从而解决了隐藏的用户设备带来的业务资源冲突的问题,可以可靠地实现D2D通信的资源分配,避免多个用户设备同时接入时的业务资源冲突。Exemplarily, the communication ranges of the first user equipment, the second user equipment and at least one fifth user equipment may be the same or different. Assuming that user equipment 1 and user equipment 3 request access to user equipment 2 at the same time, user equipment 1 and user equipment 3 are far apart, and user equipment 1 and user equipment 3 cannot detect each other. User equipment 2 needs to allocate service resources to user equipment 1 and user equipment 3 . In this embodiment, when user equipment 2 allocates service resources to user equipment 1, it receives the first channel detection result from the first user equipment and the third channel detection result from at least one fifth user equipment, according to the first The first service resource information is determined by the first channel sensing result, the second channel sensing result of the second user equipment itself, and the third channel sensing result, which expands the range of channel sensing. Therefore, the problem of service resource conflict caused by hidden user equipments is solved, resource allocation for D2D communication can be reliably realized, and service resource conflicts when multiple user equipments access at the same time are avoided.
示例性地,第二用户设备在建链响应的MAC CE中携带上述第一业务资源信息。该第一业务资源信息包括以下至少一个信息:业务资源的标识(RES_IDX)、业务资源位置(RES)、业务资源的周期(PERIOD,p)、每个周期内分配的业务资源数量(RES_CNT)、每个周期内分配的业务资源之间的传输间隔(TIME_GAP)、业务资源的预留次数(RESV_CNT)。该MAC  CE的格式如下表1所示:Exemplarily, the second user equipment carries the first service resource information in the MAC CE of the link establishment response. The first service resource information includes at least one of the following information: service resource identifier (RES_IDX), service resource location (RES), service resource period (PERIOD, p), service resource quantity allocated in each period (RES_CNT), The transmission interval (TIME_GAP) between the allocated service resources in each period, and the reserved times of service resources (RESV_CNT). The format of the MAC CE is shown in Table 1 below:
表1 MAC CE的格式Table 1 Format of MAC CE
信元cell 长度(字节)length (bytes)
RES_IDX RES_IDX 11
RES RES 11
PERIOD PERIOD 11
RES_CNT RES_CNT 11
TIME_GAP TIME_GAP 11
RESV_CNT RESV_CNT 11
其中,RES_IDX为业务资源的标识,例如可以是业务资源的索引。第一用户设备在收到建链响应时将该索引存储,后续收到第二业务资源信息时,需要将第二业务资源信息中的RES_IDX和之前存储的进行比较,相同时才认为是分配给该第一用户设备的业务资源,不相同时需要忽略。Wherein, RES_IDX is an identifier of a service resource, for example, it may be an index of a service resource. When the first user equipment receives the link establishment response, it stores the index. When receiving the second service resource information later, it needs to compare the RES_IDX in the second service resource information with the one stored before. If the service resource of the first user equipment is different, it needs to be ignored.
RES为业务资源位置。示例性地,RES为分配的初始的业务资源位置。RES is the business resource location. Exemplarily, RES is the allocated initial service resource location.
PERIOD为业务资源的周期。示例性地,第二用户设备为第一用户设备分配的业务资源可以是周期性的。PERIOD is the period of business resources. Exemplarily, the service resources allocated by the second user equipment to the first user equipment may be periodic.
RES_CNT为每个周期内分配的业务资源数量(包括用于初传和重传)。RES_CNT is the number of service resources allocated in each cycle (including for initial transmission and retransmission).
TIME_GAP为每个周期内分配的业务资源之间的传输间隔。TIME_GAP is the transmission interval between allocated service resources in each period.
RESV_CNT为业务资源的预留次数。根据第一用户设备的业务数据传输的需要,第二用户设备可以为第一用户设备在一个或多个周期内预留业务资源。每个周期对应一次业务资源的预留。RESV_CNT is the number of reservations of business resources. According to the needs of the service data transmission of the first user equipment, the second user equipment may reserve service resources for the first user equipment in one or more periods. Each cycle corresponds to a reservation of business resources.
如图7所示,为本申请示例的第一空闲时域资源信息指示的至少一个第一空闲时域资源的示意图,第二用户设备在子帧m发送建链响应。该建链响应包括第一业务资源信息。该第一业务资源信息用于指示至少一个可用/空闲的业务资源位置。其中,第二用户设备为第一用户设备预留了RESV_CNT次业务资源。在第一个周期内,业务资源的位置包括:初始的业务资源位置b+RES,以及该周期内后续的RES_CNT个业务资源位置为:b+RES+TIME_GAP,…b+RES+TIME_GAP*RES_CNT,每个业务资源位置之间间隔TIME_GAP;在第RESV_CNT个周期内,业务资源的位置包括:初始的业务资源位置b+RES+p*RESV_CNT,以及该周期内后续的RES_CNT个业务资源位置为:b+RES+TIME_GAP+p*RESV_CNT,…b+RES+TIME_GAP*RES_CNT+p*RESV_CNT,每个业务资源位置之间间隔TIME_GAP。As shown in FIG. 7 , which is a schematic diagram of at least one first idle time domain resource indicated by the first idle time domain resource information in the example of the present application, the second user equipment sends a link establishment response in subframe m. The link establishment response includes first service resource information. The first service resource information is used to indicate at least one available/idle service resource location. Wherein, the second user equipment reserves RESV_CNT secondary service resources for the first user equipment. In the first cycle, the location of the service resource includes: the initial service resource location b+RES, and the subsequent RES_CNT service resource locations in this cycle are: b+RES+TIME_GAP, ... b+RES+TIME_GAP*RES_CNT, The interval between each service resource location is TIME_GAP; in the first RESV_CNT cycle, the location of the service resource includes: the initial service resource location b+RES+p*RESV_CNT, and the subsequent RES_CNT service resource locations in this cycle are: b +RES+TIME_GAP+p*RESV_CNT, ... b+RES+TIME_GAP*RES_CNT+p*RESV_CNT, the interval between each service resource location is TIME_GAP.
下面通过两个示例对第一业务资源信息进行描述:The first service resource information is described below through two examples:
在一个示例中,假设第二用户设备的当前侦听结果资源位图为:0xFFFFFFFFFFFFFFFFFFFF00000000000000000000,且假设第一信道侦听结果和第三信道侦听结果与该资源位图相同,即与第二用户设备的当前信道侦听结果没有冲突。根据该资源位图,可知第0~79比特对应的时域资源上的信道被占用。第二用户设备为第一用户设备分配的业务资源的周期为160ms,第二用户设备在80~159范围内随机选择一个资源,假设为83。In an example, assume that the resource bitmap of the current interception result of the second user equipment is: 0xFFFFFFFFFFFFFFFFFFFF00000000000000000000, and assume that the first channel interception result and the third channel interception result are the same as the resource bitmap, that is, the same as the second user equipment The current channel listening results for no conflicts. According to the resource bitmap, it can be known that the channels on the time domain resources corresponding to bits 0 to 79 are occupied. The cycle of service resources allocated by the second user equipment to the first user equipment is 160ms, and the second user equipment randomly selects a resource within the range of 80-159, assuming that it is 83.
假设当前子帧为200,第二用户设备在200#发送建链响应,分配的业务资源的TIME_GAP为0,RES_CNT为1,RESV_CNT为5,则可以得到业务资源位置为:243=200/160*160+83,403,563,723,883。Assuming that the current subframe is 200, the second user equipment sends a link establishment response at 200#, and the TIME_GAP of the allocated service resource is 0, RES_CNT is 1, and RESV_CNT is 5, then the service resource position can be obtained as: 243=200/160* 160+83, 403, 563, 723, 883.
在另一个示例中,假设第二用户设备的当前侦听结果资源位图为: 0xE000010000000000000000000100000000000000,且假设第一信道侦听结果和第三信道侦听结果与该资源位图相同,即与第二用户设备的当前信道侦听结果没有冲突。假设第一用户设备的业务数据传输频繁,则第二用户设备为第一用户设备分配的业务资源周期为20ms,将上述资源位图等分为160/20=8份,并进行或操作,得到大小为20的资源位图:0xF0000。在4~19范围内随机选择一个资源,假设为5。In another example, assume that the current interception result resource bitmap of the second user equipment is: 0xE0000100000000000000000001000000000000000, and assume that the first channel interception result and the third channel interception result are the same as the resource bitmap, that is, the same as the second user equipment The device's current channel listening results are not conflicting. Assuming that the service data transmission of the first user equipment is frequent, the service resource cycle allocated by the second user equipment to the first user equipment is 20 ms, and the above resource bitmap is equally divided into 160/20=8 parts, and the OR operation is performed to obtain Resource bitmap of size 20: 0xF0000. Randomly select a resource within the range of 4 to 19, assuming it is 5.
假设当前子帧为300,第二用户设备在300#发送建链响应,分配的业务资源的TIME_GAP为2,RES_CNT为3,RESV_CNT为4,则可以得到业务资源位置为:Assuming that the current subframe is 300, the second user equipment sends a link establishment response at 300#, and the TIME_GAP of the allocated service resource is 2, RES_CNT is 3, and RESV_CNT is 4, then the location of the service resource can be obtained as:
RESV_CNT=1时,即第一个周期内,业务资源位置为:305=300/20*20+5,307=305+2,309=307+2;When RESV_CNT=1, that is, in the first cycle, the service resource position is: 305=300/20*20+5, 307=305+2, 309=307+2;
RESV_CNT=2时,即第二个周期内,业务资源位置为:325,327,329;When RESV_CNT=2, that is, in the second period, the service resource locations are: 325,327,329;
RESV_CNT=3时,即第三个周期内,业务资源位置为:345,347,349;When RESV_CNT=3, that is, in the third cycle, the service resource locations are: 345,347,349;
RESV_CNT=4时,即第四个周期内,业务资源位置为:365,367,369。When RESV_CNT=4, that is, in the fourth period, the service resource locations are: 365,367,369.
S610.第一用户设备在第一业务资源信息所指示的业务资源位置进行业务数据的传输。S610. The first user equipment transmits service data at the service resource location indicated by the first service resource information.
相应地,第二用户设备在第一业务资源信息所指示的业务资源位置与第一用户设备进行业务数据的传输。Correspondingly, the second user equipment performs service data transmission with the first user equipment at the service resource location indicated by the first service resource information.
该步骤的具体实现可以参考上述实施例的步骤S503。For the specific implementation of this step, reference may be made to step S503 in the foregoing embodiment.
第一用户设备接收到上述第一业务资源信息后,根据上述描述解析可用的业务资源位置。当t%PERIOD==RES+i*TIME_GAP并且t<m/PERIOD*PERIOD+PERIOD*RESV_CNT+TIME_GAP*RES_CNT时,可以在当前位置发送业务数据。其中,t为当前帧号*10+子帧号,i为0到RES_CNT内的任意一个值,m为收到MSG4时的帧号*10+子帧号。After receiving the first service resource information, the first user equipment parses the available service resource locations according to the above description. When t%PERIOD==RES+i*TIME_GAP and t<m/PERIOD*PERIOD+PERIOD*RESV_CNT+TIME_GAP*RES_CNT, service data can be sent at the current location. Among them, t is the current frame number*10+subframe number, i is any value from 0 to RES_CNT, and m is the frame number*10+subframe number when MSG4 is received.
S611.第二用户设备监测到第一用户设备使用业务资源进行业务数据传输的次数达到业务资源的预留次数时,发送第二业务资源信息。S611. The second user equipment sends second service resource information when detecting that the number of service data transmissions performed by the first user equipment using the service resources reaches the number of service resource reservations.
相应地,第一用户设备接收该第二业务资源信息。Correspondingly, the first user equipment receives the second service resource information.
上述业务资源分配过程中,第二用户设备为了提高业务资源的利用率,预留了一定次数(具体通过RESV_CNT指示)的业务资源。第二用户设备对第一用户设备使用业务资源进行业务数据传输的次数进行监测,或者可以是第一用户设备上报其使用业务资源进行业务数据传输的次数,第二用户设备监测到第一用户设备使用业务资源进行业务数据传输的次数达到业务资源的预留次数时,再次进行业务资源的分配。示例性地,第二用户设备可以根据更新的第一信道侦听结果、第二用户设备自身的更新的第二信道侦听结果和更新的第三信道侦听结果确定第二业务资源信息,具体确定过程可以参考上述描述。然后,第二用户设备向第一用户设备发送第二业务资源信息。In the above service resource allocation process, in order to improve the utilization rate of service resources, the second user equipment reserves service resources for a certain number of times (specifically indicated by RESV_CNT). The second user equipment monitors the number of times the first user equipment uses service resources to transmit service data, or the first user equipment reports the number of times it uses service resources to transmit service data, and the second user equipment detects that the first user equipment When the number of business data transmissions using business resources reaches the reserved number of business resources, the business resources are allocated again. Exemplarily, the second user equipment may determine the second service resource information according to the updated first channel sensing result, the updated second channel sensing result and the updated third channel sensing result of the second user equipment itself, specifically For the determination process, reference may be made to the above description. Then, the second user equipment sends the second service resource information to the first user equipment.
该第二业务资源信息包括以下至少一个信息:业务资源的标识、业务资源位置、业务资源的周期、每个周期内分配的业务资源数量、每个周期内分配的业务资源之间的传输间隔、业务资源的预留次数。The second service resource information includes at least one of the following information: service resource identification, service resource location, service resource cycle, number of service resources allocated in each cycle, transmission interval between service resources allocated in each cycle, The number of reservations for business resources.
该第二业务资源信息可以与上述第一业务资源信息完全相同,或部分相同,或完全不同。The second service resource information may be completely the same, or partly the same, or completely different from the above-mentioned first service resource information.
根据本申请实施例提供的一种D2D通信的资源分配方法,第二用户设备通过接收第一用户设备的第一信道侦听结果和至少一个第五用户设备的第三信道侦听结果,根据第一信道侦听结果、第二用户设备自身的第二信道侦听结果和第三信道侦听结果确定第一业务资源信息,第一用户设备根据该第一业务资源信息进行业务数据的传输,从而可以准确地确定业务资源,使得第一用户设备可以可靠地实现业务数据的传输,避免多个用户设备同时接入时的业务资 源冲突;According to a resource allocation method for D2D communication provided by an embodiment of the present application, the second user equipment receives the first channel detection result of the first user equipment and the third channel detection result of at least one fifth user equipment, according to the first A channel detection result, the second channel detection result of the second user equipment itself, and the third channel detection result determine the first service resource information, and the first user equipment transmits service data according to the first service resource information, thereby Service resources can be accurately determined, so that the first user equipment can reliably transmit service data, and avoid service resource conflicts when multiple user equipments access at the same time;
第一用户设备、第二用户设备以及至少一个第五用户设备的通信范围相同或不同,从而可以避免侦听不到与隐藏的用户设备之间的信道情况,导致分配的业务资源冲突;The communication ranges of the first user equipment, the second user equipment, and the at least one fifth user equipment are the same or different, so that the situation of not being able to detect the channel with the hidden user equipment can be avoided, resulting in a conflict of allocated service resources;
第二用户设备可以根据当前的信道侦听结果实时更新第二信道侦听结果,以准确地分配业务资源;The second user equipment can update the second channel sensing result in real time according to the current channel sensing result, so as to accurately allocate service resources;
当监测到第一用户设备使用业务资源进行业务数据传输的次数达到业务资源的预留次数时,第二用户设备再次给第一用户设备分配业务资源,第二业务资源信息可以与第一业务资源信息相同或不同。When it is detected that the number of service data transmissions performed by the first user equipment using service resources reaches the reserved number of service resources, the second user equipment allocates service resources to the first user equipment again, and the second service resource information may be related to the first service resource The information is the same or different.
示例性地,在本申请实施例中,第一用户设备或第二用户设备包括硬件层、运行在硬件层之上的操作系统层,以及运行在操作系统层上的应用层。该硬件层包括中央处理器(central processing unit,CPU)、内存管理单元(memory management unit,MMU)和内存(也称为主存)等硬件。该操作系统可以是任意一种或多种通过进程(process)实现业务处理的计算机操作系统,例如,Linux操作系统、Unix操作系统、Android操作系统、iOS操作系统或windows操作系统等。该应用层包含浏览器、通讯录、文字处理软件、即时通信软件等应用。并且,本申请实施例并未对本申请实施例提供的方法的执行主体的具体结构特别限定,只要能够通过运行记录有本申请实施例的提供的方法的代码的程序,以根据本申请实施例提供的方法进行通信即可,例如,本申请实施例提供的方法的执行主体可以是终端,或者,是第一用户设备或第二用户设备中能够调用程序并执行程序的功能模块。Exemplarily, in the embodiment of the present application, the first user equipment or the second user equipment includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system may be any one or more computer operating systems that implement business processing through processes, for example, Linux operating system, Unix operating system, Android operating system, iOS operating system, or windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software. Moreover, the embodiment of the present application does not specifically limit the specific structure of the execution subject of the method provided by the embodiment of the present application, as long as the program that records the code of the method provided by the embodiment of the present application can be run to provide the method according to the embodiment of the present application. For example, the execution body of the method provided by the embodiment of the present application may be a terminal, or a functional module in the first user equipment or the second user equipment that can call a program and execute the program.
换言之,本申请实施例中的第一用户设备或第二用户设备的相关功能可以由一个设备实现,也可以由多个设备共同实现,还可以是由一个设备内的一个或多个功能模块实现,本申请实施例对此不作具体限定。可以理解的是,上述功能既可以是硬件设备中的网络元件,也可以是在专用硬件上运行的软件功能,或者是硬件与软件的结合,或者是平台(例如,云平台)上实例化的虚拟化功能。In other words, the relevant functions of the first user equipment or the second user equipment in the embodiments of the present application may be realized by one device, or jointly realized by multiple devices, or may be realized by one or more functional modules in one device , which is not specifically limited in this embodiment of the present application. It can be understood that the above functions can be network elements in hardware devices, software functions running on dedicated hardware, or a combination of hardware and software, or instantiated on a platform (for example, a cloud platform) virtualization capabilities.
可以理解的是,为了实现上述实施例中的功能,第一用户设备或第二用户设备包括了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本申请中所公开的实施例描述的各示例的单元及方法步骤,本申请能够以硬件或硬件和计算机软件相结合的形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用场景和设计约束条件。It can be understood that, in order to implement the functions in the foregoing embodiments, the first user equipment or the second user equipment includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software with reference to the units and method steps of the examples described in the embodiments disclosed in the present application. Whether a certain function is executed by hardware or computer software drives the hardware depends on the specific application scenario and design constraints of the technical solution.
图8和图9为本申请的实施例提供的可能的D2D通信的资源分配装置的结构示意图。该D2D通信的资源分配装置也可以是通信装置。这些D2D通信的资源分配装置可以用于实现上述方法实施例中第一用户设备或第二用户设备的功能,因此也能实现上述方法实施例所具备的有益效果。在本申请的实施例中,该D2D通信的资源分配装置可以是第一用户设备或第二用户设备,还可以是应用于第一用户设备或第二用户设备的模块(如芯片)。FIG. 8 and FIG. 9 are schematic structural diagrams of a possible resource allocation device for D2D communication provided by an embodiment of the present application. The resource allocation device for D2D communication may also be a communication device. These resource allocation devices for D2D communication can be used to realize the functions of the first user equipment or the second user equipment in the above method embodiments, and thus can also realize the beneficial effects of the above method embodiments. In the embodiment of the present application, the resource allocation device for D2D communication may be the first user equipment or the second user equipment, or may be a module (such as a chip) applied to the first user equipment or the second user equipment.
如图8所示,D2D通信的资源分配装置800包括处理单元810和收发单元820。D2D通信的资源分配装置800用于实现上述图5、图6中所示的方法实施例中第一用户设备或第二用户设备的功能。As shown in FIG. 8 , a resource allocation device 800 for D2D communication includes a processing unit 810 and a transceiver unit 820 . The resource allocation apparatus 800 for D2D communication is configured to realize the functions of the first user equipment or the second user equipment in the method embodiments shown in FIG. 5 and FIG. 6 above.
当D2D通信的资源分配装置800用于实现图5或图6所示的方法实施例中第一用户设备的功能时:所述收发单元820,用于在第一用户设备接入所述装置时,接收来自所述第一用户设备的建链请求消息,所述建链请求消息包括所述第一用户设备的第一信道侦听结果;所述收发单元820,还用于向所述第一用户设备发送建链响应,所述建链响应包括第一业务资源信息,所述第一业务资源信息是根据所述第一信道侦听结果和所述装置自身的第二信道 侦听结果确定的;以及所述收发单元820,还用于在所述第一业务资源信息所指示的业务资源位置与所述第一用户设备进行业务数据的传输。When the resource allocation apparatus 800 for D2D communication is used to realize the function of the first user equipment in the method embodiment shown in FIG. 5 or FIG. 6: the transceiving unit 820 is used to access the apparatus when the first user equipment , receiving a link establishment request message from the first user equipment, the link establishment request message including the first channel monitoring result of the first user equipment; the transceiver unit 820 is further configured to send the first The user equipment sends a link establishment response, where the link establishment response includes first service resource information, and the first service resource information is determined according to the first channel detection result and the second channel detection result of the device itself and the transceiving unit 820 is further configured to transmit service data with the first user equipment at the service resource location indicated by the first service resource information.
可选地,所述第一业务资源信息包括以下至少一个信息:业务资源的标识、业务资源位置、业务资源的周期、每个周期内分配的业务资源数量、每个周期内分配的业务资源之间的传输间隔、业务资源的预留次数。Optionally, the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource period, the number of service resources allocated in each period, and the number of service resources allocated in each period. The interval between transmissions and the number of reservations of business resources.
可选地,所述第一信道侦听结果是所述第一用户设备对与所述第一用户设备的通信范围内的至少一个第三用户设备之间的信道的侦听结果;所述第二信道侦听结果是所述装置对与所述装置的通信范围内的至少一个第四用户设备之间的信道的侦听结果。Optionally, the first channel listening result is a result of the first user equipment listening to a channel between at least one third user equipment within a communication range with the first user equipment; the first The second channel listening result is a result of the apparatus listening to a channel with at least one fourth user equipment within a communication range of the apparatus.
可选地,所述收发单元820,还用于接收来自至少一个第五用户设备的第三信道侦听结果,所述第三信道侦听结果是所述至少一个第五用户设备对与所述至少一个第五用户设备的通信范围内的至少一个第六用户设备之间的信道的侦听结果;其中,所述第一业务资源信息是根据所述第二信道侦听结果、所述第一信道侦听结果和所述第三信道侦听结果确定的。Optionally, the transceiving unit 820 is further configured to receive a third channel sensing result from at least one fifth user equipment, where the third channel sensing result is a pair between the at least one fifth user equipment and the An interception result of a channel between at least one sixth user equipment within the communication range of at least one fifth user equipment; wherein, the first service resource information is based on the second channel interception result, the first determined by the channel sensing result and the third channel sensing result.
可选地,所述处理单元810,用于对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到所述第二信道侦听结果;所述处理单元810,还用于侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙;以及所述处理单元810,还用于连续侦听到设定次数所述任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,其中,所述第二门限值小于所述第一门限值。Optionally, the processing unit 810 is configured to detect the channel strength of any subband of the data channel on at least one time-domain resource position, and obtain the second channel detection result; the processing unit 810, It is also used to detect that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and update the any time domain resource position as the channel is busy; and the processing unit 810, It is also used to continuously detect that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and update the any time domain resource position as the channel is idle, wherein , the second threshold is smaller than the first threshold.
可选地,所述处理单元810,还用于侦听到任一时域资源位置n上数据信道的任一子带的信号强度大于或等于所述第一门限值,将第一资源位图中第j个比特置为第一值,其中,j=n%p,其中,所述资源位图包括p个比特,%表示取余运算。Optionally, the processing unit 810 is further configured to detect that the signal strength of any subband of the data channel at any time domain resource position n is greater than or equal to the first threshold value, and set the first resource bitmap The jth bit in is set to the first value, where j=n%p, wherein the resource bitmap includes p bits, and % represents a remainder operation.
可选地,所述处理单元810,还用于连续侦听到所述设定次数所述第j个比特对应的m个时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,将所述第二资源位图中所述第j个比特置为第二值。Optionally, the processing unit 810 is further configured to continuously detect that the signal strength of any subband of the data channel at the m time-domain resource positions corresponding to the j-th bit for the set number of times is less than or equal to The second threshold value is to set the jth bit in the second resource bitmap as a second value.
可选地,所述第一信道侦听结果包括所述第一资源位图或第一空闲时域资源信息;所述第二信道侦听结果包括第二资源位图或第二空闲时域资源信息。Optionally, the first channel sensing result includes the first resource bitmap or first idle time domain resource information; the second channel sensing result includes a second resource bitmap or second idle time domain resource information information.
可选地,所述收发单元820,还用于监测到所述装置使用业务资源进行业务数据传输的次数达到所述业务资源的预留次数时,发送第二业务资源信息。Optionally, the transceiving unit 820 is further configured to send second service resource information when detecting that the number of service data transmissions performed by the device using service resources reaches the number of service resource reservations.
当D2D通信的资源分配装置800用于实现图5或图6所示的方法实施例中第二用户设备的功能时:所述收发单元820,用于在所述装置接入第二用户设备时,向所述第二用户设备发送建链请求消息,所述建链请求消息包括所述装置的第一信道侦听结果;所述收发单元820,还用于接收来自所述第二用户设备的建链响应,所述建链响应包括第一业务资源信息,所述第一业务资源信息是根据所述第一信道侦听结果和所述第二用户设备自身的第二信道侦听结果确定的;以及所述收发单元820,还用于在所述第一业务资源信息所指示的业务资源位置进行业务数据的传输。When the resource allocation apparatus 800 for D2D communication is used to realize the function of the second user equipment in the method embodiment shown in FIG. 5 or FIG. 6: the transceiving unit 820 is used to access the second user equipment when the apparatus , sending a link establishment request message to the second user equipment, where the link establishment request message includes the first channel monitoring result of the apparatus; the transceiver unit 820 is further configured to receive a link establishment request message from the second user equipment A link establishment response, the link establishment response including first service resource information, the first service resource information is determined according to the first channel detection result and the second channel detection result of the second user equipment itself and the transceiving unit 820 is further configured to transmit service data at the service resource location indicated by the first service resource information.
可选地,所述第一业务资源信息包括以下至少一个信息:业务资源的标识、业务资源位置、业务资源的周期、每个周期内分配的业务资源数量、每个周期内分配的业务资源之间的传输间隔、业务资源的预留次数。Optionally, the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource period, the number of service resources allocated in each period, and the number of service resources allocated in each period. The interval between transmissions and the number of reservations of business resources.
可选地,所述第一信道侦听结果是所述装置对与所述装置的通信范围内的至少一个第三用户设备之间的信道的侦听结果;所述第二信道侦听结果是所述第二用户设备对与所述第二用户设备的通信范围内的至少一个第四用户设备之间的信道的侦听结果。Optionally, the first channel listening result is a result of the device listening to a channel with at least one third user equipment within the communication range of the device; the second channel listening result is An interception result of the channel between the second user equipment and at least one fourth user equipment within the communication range of the second user equipment.
可选地,所述处理单元810,用于对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到所述第一信道侦听结果;所述处理单元810,还用于侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙;以及所述处理单元810,还用于连续侦听到设定次数所述任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,其中,所述第二门限值小于所述第一门限值。Optionally, the processing unit 810 is configured to detect the channel strength of any subband of the data channel on at least one time-domain resource position, and obtain the first channel detection result; the processing unit 810, It is also used to detect that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and update the any time domain resource position as the channel is busy; and the processing unit 810, It is also used to continuously detect that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and update the any time domain resource position as the channel is idle, wherein , the second threshold is smaller than the first threshold.
可选地,所述处理单元810,还用于侦听到任一时域资源位置r上数据信道的任一子带的信号强度大于或等于所述第一门限值,将第二资源位图中第i个比特置为第一值,其中,i=r%q,其中,所述第二资源位图包括q个比特,%表示取余运算。Optionally, the processing unit 810 is further configured to detect that the signal strength of any subband of the data channel on any time-domain resource position r is greater than or equal to the first threshold value, and set the second resource bitmap The i-th bit in is set to the first value, where i=r%q, wherein the second resource bitmap includes q bits, and % represents a remainder operation.
可选地,所述处理单元810,还用于连续侦听到所述设定次数所述第i个比特对应的s个时域资源位置上数据信道的任一子带的信号强度小于或等于所述第二门限值,将所述第二资源位图中所述第i个比特置为第二值。Optionally, the processing unit 810 is further configured to continuously detect that the signal strength of any subband of the data channel at the s time-domain resource positions corresponding to the i-th bit for the set number of times is less than or equal to The second threshold value is to set the ith bit in the second resource bitmap as a second value.
可选地,所述第一信道侦听结果包括所述第一资源位图或第一空闲时域资源信息;所述第二信道侦听结果包括第二资源位图或第二空闲时域资源信息。Optionally, the first channel sensing result includes the first resource bitmap or first idle time domain resource information; the second channel sensing result includes a second resource bitmap or second idle time domain resource information information.
可选地,所述收发单元820,还用于使用业务资源进行业务数据传输的次数达到所述业务资源的预留次数时,接收来自所述第二用户设备的第二业务资源信息。Optionally, the transceiving unit 820 is further configured to receive second service resource information from the second user equipment when the number of service data transmissions using service resources reaches the number of service resource reservations.
有关上述处理单元810和收发单元820更详细的描述可以直接参考图5、图6所示的方法实施例中相关描述直接得到,这里不加赘述。More detailed descriptions about the processing unit 810 and the transceiver unit 820 can be directly obtained by referring to the relevant descriptions in the method embodiments shown in FIG. 5 and FIG. 6 , and will not be repeated here.
如图9所示,D2D通信的资源分配装置900包括处理器910和接口电路920。处理器910和接口电路920之间相互耦合。可以理解的是,接口电路920可以为收发器或输入输出接口。示例性地,D2D通信的资源分配装置900还可以包括存储器930,用于存储处理器910执行的指令或存储处理器910运行指令所需要的输入数据或存储处理器910运行指令后产生的数据。As shown in FIG. 9 , a resource allocation device 900 for D2D communication includes a processor 910 and an interface circuit 920 . The processor 910 and the interface circuit 920 are coupled to each other. It can be understood that the interface circuit 920 may be a transceiver or an input-output interface. Exemplarily, the resource allocation apparatus 900 for D2D communication may further include a memory 930 for storing instructions executed by the processor 910 or storing input data required by the processor 910 to execute the instructions or storing data generated after the processor 910 executes the instructions.
当D2D通信的资源分配装置900用于实现图5、图6所示的方法时,处理器910用于实现上述处理单元810的功能,接口电路920用于实现上述收发单元820的功能。When the resource allocation device 900 for D2D communication is used to implement the methods shown in FIG. 5 and FIG. 6 , the processor 910 is used to implement the functions of the processing unit 810 , and the interface circuit 920 is used to implement the functions of the transceiver unit 820 .
当上述D2D通信的资源分配装置为应用于第一用户设备/第二用户设备的芯片时,该芯片实现上述方法实施例中第一用户设备/第二用户设备的功能。该芯片从第一用户设备/第二用户设备中的其它模块(如射频模块或天线)接收信息,该信息是其它用户设备发送给该第一用户设备/第二用户设备的;或者,该芯片向第一用户设备/第二用户设备中的其它模块(如射频模块或天线)发送信息,该信息是第一用户设备/第二用户设备发送给其它用户设备的。When the resource allocation device for D2D communication is a chip applied to the first user equipment/second user equipment, the chip implements the functions of the first user equipment/second user equipment in the above method embodiments. The chip receives information from other modules (such as radio frequency modules or antennas) in the first user equipment/second user equipment, and the information is sent to the first user equipment/second user equipment by other user equipment; or, the chip Sending information to other modules (such as radio frequency modules or antennas) in the first user equipment/second user equipment, the information is sent by the first user equipment/second user equipment to other user equipment.
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(central processing unit,CPU),还可以是其它通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其它可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。It can be understood that the processor in the embodiments of the present application may be a central processing unit (central processing unit, CPU), and may also be other general processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. A general-purpose processor can be a microprocessor, or any conventional processor.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器、闪存、只读存储器、可编程只读存储器、可擦除可编程只读存储器、电可擦除可编程只读存储器、寄存器、硬盘、移动硬盘、紧凑型光盘只读存储器(compact disc read-only memory, CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于基站或终端中。当然,处理器和存储介质也可以作为分立组件存在于基站或终端中。The method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions. Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only Memory, registers, hard disk, removable hard disk, compact disc read-only memory (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and storage medium can be located in the ASIC. In addition, the ASIC can be located in the base station or the terminal. Certainly, the processor and the storage medium may also exist in the base station or the terminal as discrete components.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、基站、用户设备或者其它可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘;还可以是半导体介质,例如,固态硬盘。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer programs or instructions. When the computer program or instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are executed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a base station, user equipment or other programmable devices. The computer program or instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrating one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; or it may be a semiconductor medium, such as a solid state disk.
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In each embodiment of the present application, if there is no special explanation and logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referred to each other, and the technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。在本申请的文字描述中,字符“/”,一般表示前后关联对象是一种“或”的关系。In this application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. In the text description of this application, the character "/" generally indicates that the contextual objects are an "or" relationship.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。还应理解,本申请实施例提及“第一”、“第二”等序数词是用于对多个对象进行区分,不用于限定多个对象的大小、内容、顺序、时序、优先级或者重要程度等。It can be understood that the various numbers involved in the embodiments of the present application are only for convenience of description, and are not used to limit the scope of the embodiments of the present application. The size of the serial numbers of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic. It should also be understood that the ordinal numerals such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the size, content, order, timing, priority or importance etc.

Claims (32)

  1. 一种D2D通信的资源分配方法,其特征在于,所述方法包括:A resource allocation method for D2D communication, characterized in that the method includes:
    在第一用户设备接入第二用户设备时,所述第二用户设备接收来自所述第一用户设备的建链请求消息,所述建链请求消息包括所述第一用户设备的第一信道侦听结果;When the first user equipment accesses the second user equipment, the second user equipment receives a link establishment request message from the first user equipment, and the link establishment request message includes the first channel of the first user equipment listening results;
    所述第二用户设备向所述第一用户设备发送建链响应,所述建链响应包括第一业务资源信息,所述第一业务资源信息是根据所述第一信道侦听结果和所述第二用户设备自身的第二信道侦听结果确定的;The second user equipment sends a link establishment response to the first user equipment, where the link establishment response includes first service resource information, and the first service resource information is based on the first channel listening result and the determined by the second channel sensing result of the second user equipment itself;
    所述第二用户设备在所述第一业务资源信息所指示的业务资源位置与所述第一用户设备进行业务数据的传输。The second user equipment performs service data transmission with the first user equipment at the service resource location indicated by the first service resource information.
  2. 根据权利要求1所述的方法,其特征在于,所述第一业务资源信息包括以下至少一个信息:业务资源的标识、业务资源位置、业务资源的周期、每个周期内分配的业务资源数量、每个周期内分配的业务资源之间的传输间隔、业务资源的预留次数。The method according to claim 1, wherein the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource cycle, service resource quantity allocated in each cycle, The transmission interval between business resources allocated in each cycle, and the number of reservations of business resources.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一信道侦听结果是所述第一用户设备对与所述第一用户设备的通信范围内的至少一个第三用户设备之间的信道的侦听结果;The method according to claim 1 or 2, wherein the first channel sensing result is a communication between the first user equipment and at least one third user equipment within the communication range with the first user equipment. Interception results of the channel between;
    所述第二信道侦听结果是所述第二用户设备对与所述第二用户设备的通信范围内的至少一个第四用户设备之间的信道的侦听结果。The second channel interception result is an interception result of the second user equipment on a channel between at least one fourth user equipment within a communication range of the second user equipment.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-3, further comprising:
    所述第二用户设备接收来自至少一个第五用户设备的第三信道侦听结果,所述第三信道侦听结果是所述至少一个第五用户设备对与所述至少一个第五用户设备的通信范围内的至少一个第六用户设备之间的信道的侦听结果;The second user equipment receives a third channel sensing result from at least one fifth user equipment, where the third channel sensing result is a pair of the at least one fifth user equipment and the at least one fifth user equipment Interception results of channels between at least one sixth user equipment within the communication range;
    其中,所述第一业务资源信息是根据所述第二信道侦听结果、所述第一信道侦听结果和所述第三信道侦听结果确定的。Wherein, the first service resource information is determined according to the second channel detection result, the first channel detection result and the third channel detection result.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-4, wherein the method further comprises:
    所述第二用户设备对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到所述第二信道侦听结果;The second user equipment detects the channel strength of any subband of the data channel on at least one time domain resource position, and obtains the second channel detection result;
    所述第二用户设备侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙;The second user equipment detects that the signal strength of any subband of the data channel at any time domain resource position is greater than or equal to the first threshold value, and updates the any time domain resource position as the channel is busy;
    所述第二用户设备连续侦听到设定次数所述任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,其中,所述第二门限值小于所述第一门限值。The second user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to a second threshold value for a set number of times, and updates the any time domain resource position as the channel idle, wherein the second threshold is smaller than the first threshold.
  6. 根据权利要求5所述的方法,其特征在于,所述第二用户设备侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙,包括:所述第二用户设备侦听到任一时域资源位置r上数据信道的任一子带的信号强度大于或等于所述第一门限值,将第二资源位图中第i个比特置为第一值,其中,i=r%q,其中,所述第二资源位图包括q个比特,%表示取余运算。The method according to claim 5, wherein the second user equipment detects that the signal strength of any subband of the data channel at any time domain resource position is greater than or equal to the first threshold value, and updates the The channel being busy at any time domain resource position includes: the second user equipment detects that the signal strength of any subband of the data channel at any time domain resource position r is greater than or equal to the first threshold value, and sets the second The i-th bit in the two resource bitmaps is set as the first value, where i=r%q, wherein the second resource bitmap includes q bits, and % represents a remainder operation.
  7. 根据权利要求2-6中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2-6, wherein the method further comprises:
    所述第二用户设备监测到所述第一用户设备使用业务资源进行业务数据传输的次数达到所述业务资源的预留次数时,发送第二业务资源信息。The second user equipment sends second service resource information when detecting that the number of service data transmissions performed by the first user equipment using service resources reaches the number of service resource reservations.
  8. 一种D2D通信的资源分配方法,其特征在于,所述方法包括:A resource allocation method for D2D communication, characterized in that the method includes:
    在第一用户设备接入第二用户设备时,所述第一用户设备向所述第二用户设备发送建链请求消息,所述建链请求消息包括所述第一用户设备的第一信道侦听结果;When the first user equipment accesses the second user equipment, the first user equipment sends a link establishment request message to the second user equipment, and the link establishment request message includes the first channel detection of the first user equipment Listen to the result;
    所述第一用户设备接收来自所述第二用户设备的建链响应,所述建链响应包括第一业务资源信息,所述第一业务资源信息是根据所述第一信道侦听结果和所述第二用户设备自身的第二信道侦听结果确定的;The first user equipment receives a link establishment response from the second user equipment, where the link establishment response includes first service resource information, and the first service resource information is based on the first channel listening result and the determined by the second channel sensing result of the second user equipment itself;
    所述第一用户设备在所述第一业务资源信息所指示的业务资源位置进行业务数据的传输。The first user equipment transmits service data at the service resource location indicated by the first service resource information.
  9. 根据权利要求8所述的方法,其特征在于,所述第一业务资源信息包括以下至少一个信息:业务资源的标识、业务资源位置、业务资源的周期、每个周期内分配的业务资源数量、每个周期内分配的业务资源之间的传输间隔、业务资源的预留次数。The method according to claim 8, wherein the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource period, service resource quantity allocated in each period, The transmission interval between business resources allocated in each cycle, and the number of reservations of business resources.
  10. 根据权利要求8或9所述的方法,其特征在于,所述第一信道侦听结果是所述第一用户设备对与所述第一用户设备的通信范围内的至少一个第三用户设备之间的信道的侦听结果;The method according to claim 8 or 9, wherein the first channel sensing result is a communication between the first user equipment and at least one third user equipment within the communication range with the first user equipment. Interception results of the channel between;
    所述第二信道侦听结果是所述第二用户设备对与所述第二用户设备的通信范围内的至少一个第四用户设备之间的信道的侦听结果。The second channel interception result is an interception result of the second user equipment on a channel between at least one fourth user equipment within a communication range of the second user equipment.
  11. 根据权利要求8-10中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 8-10, further comprising:
    所述第一用户设备对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到所述第一信道侦听结果;The first user equipment detects the channel strength of any subband of the data channel on at least one time domain resource position, and obtains the first channel detection result;
    所述第一用户设备侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙;The first user equipment detects that the signal strength of any subband of the data channel at any time domain resource position is greater than or equal to a first threshold value, and updates the any time domain resource position as channel busy;
    所述第一用户设备连续侦听到设定次数所述任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,其中,所述第二门限值小于所述第一门限值。The first user equipment continuously detects that the signal strength of any subband of the data channel at any time domain resource position is less than or equal to the second threshold value for a set number of times, and updates the any time domain resource position as the channel idle, wherein the second threshold is smaller than the first threshold.
  12. 根据权利要求11所述的方法,其特征在于,所述第一用户设备侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙,包括:所述第一用户设备侦听到任一时域资源位置n上数据信道的任一子带的信号强度大于或等于所述第一门限值,将第一资源位图中第j个比特置为第一值,其中,j=n%p,其中,所述资源位图包括p个比特,%表示取余运算。The method according to claim 11, wherein the first user equipment senses that the signal strength of any subband of the data channel at any time domain resource position is greater than or equal to a first threshold value, and updates the The channel being busy at any time domain resource position includes: the first user equipment detects that the signal strength of any subband of the data channel at any time domain resource position n is greater than or equal to the first threshold value, and the second The jth bit in a resource bitmap is set as the first value, where j=n%p, wherein the resource bitmap includes p bits, and % represents a remainder operation.
  13. 根据权利要求9-12中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 9-12, wherein the method further comprises:
    所述第一用户设备使用业务资源进行业务数据传输的次数达到所述业务资源的预留次数时,接收来自所述第二用户设备的第二业务资源信息。The first user equipment receives second service resource information from the second user equipment when the number of service data transmissions using service resources reaches the number of service resource reservations.
  14. 一种D2D通信的资源分配装置,其特征在于,所述装置包括:收发单元;其中:A resource allocation device for D2D communication, characterized in that the device includes: a transceiver unit; wherein:
    所述收发单元,用于在第一用户设备接入所述装置时,接收来自所述第一用户设备的建链请求消息,所述建链请求消息包括所述第一用户设备的第一信道侦听结果;The transceiver unit is configured to receive a link establishment request message from the first user equipment when the first user equipment accesses the apparatus, the link establishment request message including the first channel of the first user equipment listening results;
    所述收发单元,还用于向所述第一用户设备发送建链响应,所述建链响应包括第一业务资源信息,所述第一业务资源信息是根据所述第一信道侦听结果和所述装置自身的第二信道侦听结果确定的;The transceiver unit is further configured to send a link establishment response to the first user equipment, where the link establishment response includes first service resource information, and the first service resource information is based on the first channel sensing result and Determined by the second channel monitoring result of the device itself;
    所述收发单元,还用于在所述第一业务资源信息所指示的业务资源位置与所述第一用户设备进行业务数据的传输。The transceiving unit is further configured to perform service data transmission with the first user equipment at the service resource location indicated by the first service resource information.
  15. 根据权利要求14所述的装置,其特征在于,所述第一业务资源信息包括以下至少一个信息:业务资源的标识、业务资源位置、业务资源的周期、每个周期内分配的业务资源数量、每个周期内分配的业务资源之间的传输间隔、业务资源的预留次数。The device according to claim 14, wherein the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource period, service resource quantity allocated in each period, The transmission interval between business resources allocated in each cycle, and the number of reservations of business resources.
  16. 根据权利要求14或15所述的装置,其特征在于,所述第一信道侦听结果是所述第一用户设备对与所述第一用户设备的通信范围内的至少一个第三用户设备之间的信道的侦听结果;The apparatus according to claim 14 or 15, wherein the first channel sensing result is a relationship between the first user equipment and at least one third user equipment within the communication range with the first user equipment. Interception results of the channel between;
    所述第二信道侦听结果是所述装置对与所述装置的通信范围内的至少一个第四用户设备之间的信道的侦听结果。The second channel listening result is a result of the apparatus listening to a channel with at least one fourth user equipment within a communication range of the apparatus.
  17. 根据权利要求14-16中任一项所述的装置,其特征在于,所述收发单元,还用于接收来自至少一个第五用户设备的第三信道侦听结果,所述第三信道侦听结果是所述至少一个第五用户设备对与所述至少一个第五用户设备的通信范围内的至少一个第六用户设备之间的信道的侦听结果;The apparatus according to any one of claims 14-16, wherein the transceiver unit is further configured to receive a third channel monitoring result from at least one fifth user equipment, the third channel monitoring The result is an intercept result of the channel between the at least one fifth user equipment and at least one sixth user equipment within the communication range of the at least one fifth user equipment;
    其中,所述第一业务资源信息是根据所述第二信道侦听结果、所述第一信道侦听结果和所述第三信道侦听结果确定的。Wherein, the first service resource information is determined according to the second channel detection result, the first channel detection result and the third channel detection result.
  18. 根据权利要求14-17中任一项所述的装置,其特征在于,所述装置还包括:处理单元;其中:The device according to any one of claims 14-17, wherein the device further comprises: a processing unit; wherein:
    所述处理单元,用于对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到所述第二信道侦听结果;The processing unit is configured to detect the channel strength of any subband of the data channel on at least one time domain resource position, and obtain the second channel detection result;
    所述处理单元,还用于侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙;The processing unit is further configured to detect that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and update the any time domain resource position as the channel is busy;
    所述处理单元,还用于连续侦听到设定次数所述任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,其中,所述第二门限值小于所述第一门限值。The processing unit is further configured to continuously detect that the signal strength of any subband of the data channel at any time-domain resource position is less than or equal to a second threshold value for a set number of times, and update the any time-domain resource position The channel is idle, wherein the second threshold is smaller than the first threshold.
  19. 根据权利要求18所述的装置,其特征在于,所述处理单元,还用于侦听到任一时域资源位置r上数据信道的任一子带的信号强度大于或等于所述第一门限值,将第二资源位图中第i个比特置为第一值,其中,i=r%q,其中,所述第二资源位图包括q个比特,%表示取余运算。The device according to claim 18, wherein the processing unit is further configured to detect that the signal strength of any subband of the data channel at any time domain resource position r is greater than or equal to the first threshold value, setting the i-th bit in the second resource bitmap as the first value, where i=r%q, wherein the second resource bitmap includes q bits, and % represents a remainder operation.
  20. 根据权利要求15-19中任一项所述的装置,其特征在于,所述收发单元,还用于监测到所述装置使用业务资源进行业务数据传输的次数达到所述业务资源的预留次数时,发送第二业务资源信息。The device according to any one of claims 15-19, wherein the transceiver unit is further configured to monitor that the number of times the device uses service resources for service data transmission reaches the reserved number of service resources , send the second service resource information.
  21. 一种D2D通信的资源分配装置,其特征在于,所述装置包括:收发单元;其中:A resource allocation device for D2D communication, characterized in that the device includes: a transceiver unit; wherein:
    所述收发单元,用于在所述装置接入第二用户设备时,向所述第二用户设备发送建链请求消息,所述建链请求消息包括所述装置的第一信道侦听结果;The transceiver unit is configured to send a link establishment request message to the second user equipment when the apparatus accesses the second user equipment, the link establishment request message including the first channel monitoring result of the apparatus;
    所述收发单元,还用于接收来自所述第二用户设备的建链响应,所述建链响应包括第一业务资源信息,所述第一业务资源信息是根据所述第一信道侦听结果和所述第二用户设备自身的第二信道侦听结果确定的;The transceiver unit is further configured to receive a link establishment response from the second user equipment, where the link establishment response includes first service resource information, and the first service resource information is based on the first channel listening result determined from the second channel sensing result of the second user equipment itself;
    所述收发单元,还用于在所述第一业务资源信息所指示的业务资源位置进行业务数据的传输。The transceiving unit is further configured to transmit service data at the service resource location indicated by the first service resource information.
  22. 根据权利要求21所述的装置,其特征在于,所述第一业务资源信息包括以下至少一个信息:业务资源的标识、业务资源位置、业务资源的周期、每个周期内分配的业务资源数量、每个周期内分配的业务资源之间的传输间隔、业务资源的预留次数。The device according to claim 21, wherein the first service resource information includes at least one of the following information: service resource identification, service resource location, service resource period, service resource quantity allocated in each period, The transmission interval between business resources allocated in each cycle, and the number of reservations of business resources.
  23. 根据权利要求21或22所述的装置,其特征在于,所述第一信道侦听结果是所述装置对与所述装置的通信范围内的至少一个第三用户设备之间的信道的侦听结果;The apparatus according to claim 21 or 22, wherein the first channel interception result is an interception by the apparatus of a channel between at least one third user equipment within the communication range of the apparatus result;
    所述第二信道侦听结果是所述第二用户设备对与所述第二用户设备的通信范围内的至少一个第四用户设备之间的信道的侦听结果。The second channel interception result is an interception result of the second user equipment on a channel between at least one fourth user equipment within a communication range of the second user equipment.
  24. 根据权利要求21-23中任一项所述的装置,其特征在于,所述装置还包括:处理单元;其中:The device according to any one of claims 21-23, wherein the device further comprises: a processing unit; wherein:
    所述处理单元,用于对至少一个时域资源位置上数据信道的任一子带的信道强度进行侦听,得到所述第一信道侦听结果;The processing unit is configured to detect the channel strength of any subband of the data channel on at least one time-domain resource position, and obtain the first channel detection result;
    所述处理单元,还用于侦听到任一时域资源位置上数据信道的任一子带的信号强度大于或等于第一门限值,更新所述任一时域资源位置为信道忙;The processing unit is further configured to detect that the signal strength of any subband of the data channel on any time domain resource position is greater than or equal to the first threshold value, and update the any time domain resource position as the channel is busy;
    所述处理单元,还用于连续侦听到设定次数所述任一时域资源位置上数据信道的任一子带的信号强度小于或等于第二门限值,更新所述任一时域资源位置为信道空闲,其中,所述第二门限值小于所述第一门限值。The processing unit is further configured to continuously detect that the signal strength of any subband of the data channel at any time-domain resource position is less than or equal to a second threshold value for a set number of times, and update the any time-domain resource position The channel is idle, wherein the second threshold is smaller than the first threshold.
  25. 根据权利要求24所述的装置,其特征在于,所述处理单元,还用于侦听到任一时域资源位置n上数据信道的任一子带的信号强度大于或等于所述第一门限值,将第一资源位图中第j个比特置为第一值,其中,j=n%p,其中,所述资源位图包括p个比特,%表示取余运算。The device according to claim 24, wherein the processing unit is further configured to detect that the signal strength of any subband of the data channel at any time domain resource position n is greater than or equal to the first threshold value, setting the jth bit in the first resource bitmap as the first value, where j=n%p, wherein the resource bitmap includes p bits, and % represents a remainder operation.
  26. 根据权利要求22-25中任一项所述的装置,其特征在于,所述收发单元,还用于使用业务资源进行业务数据传输的次数达到所述业务资源的预留次数时,接收来自所述第二用户设备的第二业务资源信息。The device according to any one of claims 22-25, wherein the transceiver unit is further configured to receive a message from the The second service resource information of the second user equipment is described.
  27. 一种D2D通信的资源分配系统,其特征在于,包括如权利要求14-20中任一项所述的装置以及如权利要求21-26中任一项所述的装置。A resource allocation system for D2D communication, characterized by comprising the device according to any one of claims 14-20 and the device according to any one of claims 21-26.
  28. 一种D2D通信的资源分配装置,其特征在于,包括处理器,所述处理器与存储器耦合,所述处理器用于读取所述存储器中的指令,以实现如权利要求1-7中任一项所述的方法,或者,实现如权利要求8-13中任一项所述的方法。A resource allocation device for D2D communication, characterized in that it includes a processor, the processor is coupled to a memory, and the processor is used to read instructions in the memory, so as to implement any one of claims 1-7. The method described in the item, or, realize the method as described in any one in the claim 8-13.
  29. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-7中任一项所述的方法,或者,实现如权利要求8-13中任一项所述的方法。A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method according to any one of claims 1-7 is realized, or, the method according to claim 8- The method described in any one of 13.
  30. 一种计算机程序产品,用于当在计算设备上执行时,执行如权利要求1-7中任一项所述的方法,或者,执行如权利要求8-13中任一项所述的方法。A computer program product for, when executed on a computing device, performing the method of any one of claims 1-7, or performing the method of any one of claims 8-13.
  31. 一种芯片,其特征在于,所述芯片,用于执行如权利要求1-7中任一项所述的方法,或用于执行如权利要求8-13中任一项所述的方法。A chip, characterized in that the chip is used to execute the method according to any one of claims 1-7, or used to execute the method according to any one of claims 8-13.
  32. 一种芯片模组,其特征在于,包括收发组件和芯片,所述芯片,用于执行如权利要求1-7中任一项所述的方法,或用于执行如权利要求8-13中任一项所述的方法。A chip module, characterized in that it includes a transceiver component and a chip, the chip is used to perform the method according to any one of claims 1-7, or to perform any method according to any one of claims 8-13 one of the methods described.
PCT/CN2022/135612 2021-12-31 2022-11-30 Resource allocation method and apparatus for d2d communication, medium, and program product WO2023124731A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111669745.3 2021-12-31
CN202111669745.3A CN116437480A (en) 2021-12-31 2021-12-31 Resource allocation method and device for D2D communication, medium and program product

Publications (1)

Publication Number Publication Date
WO2023124731A1 true WO2023124731A1 (en) 2023-07-06

Family

ID=86997574

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/135612 WO2023124731A1 (en) 2021-12-31 2022-11-30 Resource allocation method and apparatus for d2d communication, medium, and program product

Country Status (2)

Country Link
CN (1) CN116437480A (en)
WO (1) WO2023124731A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108966355A (en) * 2017-05-24 2018-12-07 华为技术有限公司 Channel sense method, network side equipment and terminal
WO2018228586A1 (en) * 2017-06-16 2018-12-20 华为技术有限公司 Communication method, network device, and user equipment
CN111052833A (en) * 2017-11-08 2020-04-21 Oppo广东移动通信有限公司 Resource allocation method in D2D communication, terminal device and network device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108966355A (en) * 2017-05-24 2018-12-07 华为技术有限公司 Channel sense method, network side equipment and terminal
WO2018228586A1 (en) * 2017-06-16 2018-12-20 华为技术有限公司 Communication method, network device, and user equipment
CN111052833A (en) * 2017-11-08 2020-04-21 Oppo广东移动通信有限公司 Resource allocation method in D2D communication, terminal device and network device
CN111565405A (en) * 2017-11-08 2020-08-21 Oppo广东移动通信有限公司 Resource allocation method in D2D communication, terminal device and network device

Also Published As

Publication number Publication date
CN116437480A (en) 2023-07-14

Similar Documents

Publication Publication Date Title
US10420009B2 (en) Methods and devices for determining and using Device-to-Device relay node
US11653332B2 (en) Resource allocation method and communications device
US10477519B2 (en) Resource allocation method and apparatus
JP2020529800A (en) Secondary cell startup method, access network device, and communication device, and system
US9538321B2 (en) Location determination of wireless stations using one-to-many communication techniques
WO2021121208A1 (en) Method and apparatus for determining timing advance, and device and medium
WO2020156163A1 (en) Sidelink resource configuration method, apparatus and device
US20200351953A1 (en) Back-off timer per ssb in nr
EP3068172A1 (en) Sending method and sending device for d2d discovery signal
JP2016532338A (en) Method and system for performing random access in small cell in dual connectivity
EP4221380A1 (en) Positioning method, terminal, and network side device
US20230262649A1 (en) Positioning measurement method and apparatus and communication device
WO2021218960A1 (en) Method, device, and system for multicast communication
WO2022007623A1 (en) Method and apparatus for accessing cell
WO2024036671A1 (en) Sidelink communication method and apparatus
US20220132613A1 (en) Communication method and apparatus
WO2018014793A1 (en) Positioning method and apparatus
WO2022117087A1 (en) Method and device for positioning on sidelink (sl), and terminal
WO2022063173A1 (en) Method and apparatus for determining transmission and reception point
US20240057127A1 (en) Pscch detection method and communication apparatus
WO2022077522A1 (en) Method and apparatus for indicating feedback information
US20220304076A1 (en) Random access to a wireless communication network
US20240073818A9 (en) Indication method of power saving mode, and terminal and network side device
WO2023124731A1 (en) Resource allocation method and apparatus for d2d communication, medium, and program product
US20130115992A1 (en) Method and apparatus for controlling wireless devices

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: 22913986

Country of ref document: EP

Kind code of ref document: A1