[go: up one dir, main page]

CN105611483A - D2D communication method and D2D communication device - Google Patents

D2D communication method and D2D communication device Download PDF

Info

Publication number
CN105611483A
CN105611483A CN201410610051.6A CN201410610051A CN105611483A CN 105611483 A CN105611483 A CN 105611483A CN 201410610051 A CN201410610051 A CN 201410610051A CN 105611483 A CN105611483 A CN 105611483A
Authority
CN
China
Prior art keywords
terminal
state information
communication
moving direction
moving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410610051.6A
Other languages
Chinese (zh)
Inventor
谢芳
陈卓
刘光毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201410610051.6A priority Critical patent/CN105611483A/en
Publication of CN105611483A publication Critical patent/CN105611483A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明涉及通信技术领域,公开了一种D2D通信的方法和设备,解决D2D设备在高速移动场景下无法进行有效D2D通信的问题。该方法为:首先第一终端接收能够提供D2D数据的第二终端广播的D2D发现信号,该D2D发现信号中携带第二终端的移动状态信息;然后第一终端收到第二终端广播的D2D发现信号后,将自身的移动状态信息与第二终端的移动状态信息进行匹配,获得匹配结果;最后第一终端确定该匹配结果满足预设的匹配条件时,与第二终端建立D2D连接,这样,能够保证终端的建立有效D2D连接,并能够长期保证D2D通信的稳定性,同时避免了无效的重复连接,减少了资源浪费,进一步节约网络开销,提升了系统性能。

The present invention relates to the field of communication technology, discloses a D2D communication method and equipment, and solves the problem that D2D equipment cannot perform effective D2D communication in a high-speed mobile scene. The method is as follows: firstly, the first terminal receives the D2D discovery signal broadcast by the second terminal capable of providing D2D data, and the D2D discovery signal carries the mobility status information of the second terminal; then the first terminal receives the D2D discovery signal broadcast by the second terminal After receiving the signal, it matches its own mobile state information with the mobile state information of the second terminal to obtain a matching result; finally, when the first terminal determines that the matching result meets the preset matching conditions, it establishes a D2D connection with the second terminal. In this way, It can ensure the establishment of effective D2D connection of the terminal, and can ensure the stability of D2D communication for a long time, while avoiding invalid repeated connections, reducing resource waste, further saving network overhead, and improving system performance.

Description

一种D2D通信的方法和设备A method and device for D2D communication

技术领域technical field

本发明涉及通信技术领域,特别涉及一种D2D通信的方法和设备。The present invention relates to the field of communication technology, in particular to a method and device for D2D communication.

背景技术Background technique

设备到设备间(Device-to-Device,D2D)的通信是是一种在系统的控制下,允许终端之间通过复用小区资源直接进行通信的新型技术,它能够增加蜂窝通信系统频谱效率,降低终端发射功率,在一定程度上解决无线通信系统频谱资源匮乏的问题。D2D的直接通信最近3GPP标准化的热点,也是未来5G的一大潜在技术。目前的D2D标准化主要集中在有网络覆盖的设备发现和没有网络覆盖的公共安全(publicsafety)应用中的点对多点直接通信。公共安全是指发生地震或紧急情况,蜂窝网络不能正常工作,从而允许终端间脱网通信。Device-to-Device (D2D) communication is a new type of technology that allows terminals to communicate directly through multiplexing cell resources under the control of the system. It can increase the spectral efficiency of the cellular communication system. Reducing the transmit power of the terminal solves the problem of lack of spectrum resources in the wireless communication system to a certain extent. D2D direct communication is the hotspot of 3GPP standardization recently, and it is also a potential technology of 5G in the future. Current D2D standardization mainly focuses on device discovery with network coverage and point-to-multipoint direct communication in public safety applications without network coverage. Public safety refers to earthquakes or emergencies where the cellular network does not work properly, allowing off-net communication between terminals.

目前的D2D设备发现机制,由希望做D2D业务的源终端在网络侧分配的资源上广播设备发现信号,发现信号中可能携带D2D业务的相关信息,周围的接收终端接收到该发现信号时如果对此D2D业务感兴趣,则到对应的资源上去接收D2D业务的相关数据信息,其中,对应的资源可能是网络侧事先分配好的公共资源、也可能是网络侧为此次通信临时分配的特地资源。In the current D2D device discovery mechanism, the source terminal that wants to provide D2D services broadcasts a device discovery signal on the resources allocated by the network side. The discovery signal may carry relevant information about D2D services. When the surrounding receiving terminals receive the discovery signal, if they If you are interested in this D2D service, go to the corresponding resource to receive the relevant data information of the D2D service. The corresponding resource may be a public resource allocated in advance by the network side, or a special resource temporarily allocated by the network side for this communication. .

在现有的设备发现机制中,凡是接收到发现信号强度高于一定门限值的接收终端,都可认为可以与源终端进行D2D通信。但是这种发现机制只适用于静止不动、或步行等准静态的应用场景,当终端间相对速度较高,如高铁和快速路上,仅仅依靠信号强度信息,可能会发现不适合直接通信的其他终端,例如相向行驶的两个终端,即使帮助他们建立起D2D通信的连接,也会由于距离的原因很快断开,从而给网络带来不必要的资源分配等开销,影响D2D发现效率和质量。In the existing device discovery mechanism, any receiving terminal that receives a discovery signal strength higher than a certain threshold can be considered to be able to perform D2D communication with the source terminal. However, this discovery mechanism is only suitable for quasi-static application scenarios such as stationary or walking. When the relative speed between terminals is high, such as high-speed rail and expressway, only relying on signal strength information may find other terminals that are not suitable for direct communication. Terminals, such as two terminals traveling in opposite directions, even if they help them establish a D2D communication connection, they will be disconnected soon due to the distance, which will bring unnecessary resource allocation and other overhead to the network and affect the efficiency and quality of D2D discovery .

发明内容Contents of the invention

本发明的目的是提供一种D2D通信的方法和设备,以解决现有技术中D2D设备在高速移动场景下无法顺利建立有效D2D连接的问题。The purpose of the present invention is to provide a method and device for D2D communication, so as to solve the problem in the prior art that D2D devices cannot successfully establish an effective D2D connection in a high-speed mobile scene.

本发明的目的是通过以下技术方案实现的:The purpose of the present invention is achieved through the following technical solutions:

一种D2D通信的方法,包括:A method for D2D communication, comprising:

第一终端接收能够提供D2D数据的第二终端广播的D2D发现信号,所述D2D发现信号中携带所述第二终端的移动状态信息;The first terminal receives a D2D discovery signal broadcast by a second terminal capable of providing D2D data, where the D2D discovery signal carries movement state information of the second terminal;

第一终端接收到所述第二终端广播的D2D发现信号后,将自身的移动状态信息与第二终端的移动状态信息进行匹配,获得匹配结果;After receiving the D2D discovery signal broadcast by the second terminal, the first terminal matches its own mobility state information with the mobility state information of the second terminal to obtain a matching result;

第一终端确定所述匹配结果满足预设的匹配条件时,与第二终端建立D2D连接。When determining that the matching result satisfies a preset matching condition, the first terminal establishes a D2D connection with the second terminal.

这样,网络侧根据终端的移动速度和移动方向等信息来帮助终端进行D2D通信,使得终端能够高效地进行设备间的直接通信、享受到高速的数据业务,并能够长期保证D2D通信的稳定性,同时大大减少与不适合进行D2D通信的终端进行连接的可能性,避免了无效的重复连接,减少了资源浪费。In this way, the network side helps the terminal to perform D2D communication according to information such as the terminal’s moving speed and moving direction, so that the terminal can efficiently perform direct communication between devices, enjoy high-speed data services, and ensure the stability of D2D communication for a long time. At the same time, the possibility of connecting with a terminal that is not suitable for D2D communication is greatly reduced, invalid repeated connections are avoided, and resource waste is reduced.

可选的,第一终端接收到所述第二终端广播的D2D发现信号后,将自身的移动状态信息与第二终端的移动状态信息进行匹配之前,进一步包括:Optionally, after the first terminal receives the D2D discovery signal broadcast by the second terminal, before matching its own mobility state information with the mobility state information of the second terminal, the method further includes:

依据第一终端当前的运行状态对第一终端是否能够进行D2D通信进行判断,其中,在确认第一终端能够进行D2D通信后,判定能够进行后续匹配操作。Whether the first terminal can perform D2D communication is judged according to the current operating state of the first terminal, wherein after it is confirmed that the first terminal is capable of D2D communication, it is determined that a subsequent matching operation can be performed.

这样能够进一步保证D2D通信的稳定性和高效性。In this way, the stability and efficiency of the D2D communication can be further ensured.

可选的,第一终端收到所述第二终端广播的D2D发现信号后,将自身的移动状态信息与第二终端的移动状态信息进行匹配,获得匹配结果,包括:Optionally, after receiving the D2D discovery signal broadcast by the second terminal, the first terminal matches its own mobility state information with the mobility state information of the second terminal to obtain a matching result, including:

第一终端基于自身的移动状态信息确定自身的移动方向和移动速度,以及基于第二终端的移动状态信息,确定第二终端的移动方向和移动速度;The first terminal determines its own moving direction and moving speed based on its own moving state information, and determines the moving direction and moving speed of the second terminal based on the moving state information of the second terminal;

第一终端将自身的移动状态信息与第二终端的移动状态信息进行匹配,确定自身的移动方向与第二终端的移动方向一致,且自身的移动速度和第二终端的移动速度的差值不超过设定阈值时,确定匹配结果满足预设的匹配条件;The first terminal matches its own moving state information with the second terminal's moving state information, and determines that its own moving direction is consistent with the second terminal's moving direction, and the difference between its own moving speed and the second terminal's moving speed is equal to When the set threshold is exceeded, it is determined that the matching result satisfies the preset matching condition;

或者,or,

第一终端基于自身的移动状态信息确定自身的移动方向,以及基于第二终端的移动状态信息,确定第二终端的移动方向;The first terminal determines its own moving direction based on its own moving state information, and determines the moving direction of the second terminal based on the moving state information of the second terminal;

第一终端将自身的移动状态信息与第二终端的移动状态信息进行匹配,确定自身的移动方向与第二终端的移动方向一致,以及所述D2D发现信号的信号强度在设定时长内均达到相应门限时,确定匹配结果满足预设的匹配条件。The first terminal matches its own moving state information with the second terminal's moving state information, and determines that its own moving direction is consistent with the moving direction of the second terminal, and that the signal strength of the D2D discovery signal reaches When the corresponding threshold is met, it is determined that the matching result satisfies the preset matching condition.

可选的,第一终端确定自身的移动方向与第二终端的移动方向一致,包括:Optionally, the first terminal determines that its own moving direction is consistent with the second terminal's moving direction, including:

第一终端确定自身的移动方向与第二终端的移动方向完全相同时,确定两者方向一致;或者,When the first terminal determines that its own moving direction is exactly the same as that of the second terminal, it determines that the two directions are consistent; or,

第一终端确定自身的移动方向与第二终端的移动方向存在夹角且所述夹角不大于设定阈值,确定两者方向一致。The first terminal determines that there is an included angle between the moving direction of itself and the moving direction of the second terminal and the included angle is not greater than a set threshold, and determines that the two directions are consistent.

可选的,第一终端确定所述匹配结果满足预设的匹配条件后,与第二终端建立D2D连接,包括:Optionally, after determining that the matching result satisfies a preset matching condition, the first terminal establishes a D2D connection with the second terminal, including:

第一终端确定所述匹配结果满足预设的匹配条件时,向网络侧发送与第二终端进行D2D通信的资源请求,所述资源请求中携带第一终端的状态信息,第一终端在网络侧依据第一终端上报的状态信息为第一终端分配的资源上,与第二终端建立D2D连接;When the first terminal determines that the matching result satisfies the preset matching condition, it sends a resource request for D2D communication with the second terminal to the network side, the resource request carries status information of the first terminal, and the first terminal is on the network side. Establishing a D2D connection with the second terminal on resources allocated to the first terminal according to the state information reported by the first terminal;

或者,or,

第一终端确定所述匹配结果满足预设的匹配条件时,向第二终端发送进行D2D通信的请求,所述请求中携带第一终端的状态信息,第一终端在第二终端依据第一终端上报的状态信息进行确认后,在网络侧为第二终端分配的资源上与第二终端建立D2D连接;When the first terminal determines that the matching result satisfies the preset matching condition, it sends a request for D2D communication to the second terminal. After confirming the reported state information, establish a D2D connection with the second terminal on the resources allocated by the network side for the second terminal;

或者,or,

第一终端确定所述匹配结果满足预设的匹配条件时,在网络侧预先针对D2D通信分配的资源上与第二终端建立D2D连接。When the first terminal determines that the matching result satisfies the preset matching condition, it establishes a D2D connection with the second terminal on the resources previously allocated by the network side for D2D communication.

这样,能够进行D2D通信的终端可以从上述D2D通信连接方式中任选一种连接方式进行D2D通信,而不局限于固定的通信连接方式,从而进一步提高了终端间进行D2D通信的连接成功率。In this way, terminals capable of D2D communication can choose one connection mode from the above-mentioned D2D communication connection modes to perform D2D communication without being limited to a fixed communication connection mode, thereby further improving the connection success rate of D2D communication between terminals.

一种D2D通信的终端,包括:A terminal for D2D communication, including:

第一通信单元,用于接收能够提供D2D数据的另一终端广播的D2D发现信号,所述D2D发现信号中携带所述另一终端的移动状态信息;A first communication unit, configured to receive a D2D discovery signal broadcast by another terminal capable of providing D2D data, where the D2D discovery signal carries mobility status information of the other terminal;

匹配单元,用于在接收到所述另一终端广播的D2D发现信号后,将自身的移动状态信息与另一终端的移动状态信息进行匹配,获得匹配结果;a matching unit, configured to match its own mobility state information with the mobility state information of another terminal after receiving the D2D discovery signal broadcast by the other terminal, to obtain a matching result;

第二通信单元,用于在所述匹配单元确定所述匹配结果满足预设的匹配条件时,与另一终端建立D2D连接。The second communication unit is configured to establish a D2D connection with another terminal when the matching unit determines that the matching result meets a preset matching condition.

这样,网络侧根据终端的移动速度和移动方向等信息来帮助终端进行D2D通信,使得终端能够高效地进行设备间的直接通信、享受到高速的数据业务,并能够长期保证D2D通信的稳定性,同时大大减少与不适合进行D2D通信的终端进行连接的可能性,避免了无效的重复连接,减少了资源浪费。In this way, the network side helps the terminal to perform D2D communication according to information such as the terminal’s moving speed and moving direction, so that the terminal can efficiently perform direct communication between devices, enjoy high-speed data services, and ensure the stability of D2D communication for a long time. At the same time, the possibility of connecting with a terminal that is not suitable for D2D communication is greatly reduced, invalid repeated connections are avoided, and resource waste is reduced.

可选的,所述终端还包括:Optionally, the terminal also includes:

判断单元,用于在所述第一通信单元接收到所述另一终端广播的D2D发现信号后,在所述匹配单元将自身的移动状态信息与另一终端的移动状态信息进行匹配之前,依据所述终端当前的运行状态对所述终端是否能够进行D2D通信进行判断,其中,在确认所述终端能够进行D2D通信后,判定能够进行后续匹配操作。The judging unit is configured to, after the first communication unit receives the D2D discovery signal broadcast by the other terminal, before the matching unit matches its own mobility status information with the mobility status information of the other terminal, according to The current operating state of the terminal determines whether the terminal can perform D2D communication, wherein after it is confirmed that the terminal is capable of D2D communication, it is determined that the subsequent matching operation can be performed.

这样能够进一步保证D2D通信的稳定性和高效性。In this way, the stability and efficiency of the D2D communication can be further ensured.

可选的,接收到所述另一终端广播的D2D发现信号后,将所述终端的移动状态信息与另一终端的移动状态信息进行匹配,获得匹配结果时,所述匹配单元用于:Optionally, after receiving the D2D discovery signal broadcast by the other terminal, match the mobile state information of the terminal with the mobile state information of the other terminal, and when the matching result is obtained, the matching unit is used for:

基于所述终端的移动状态信息确定所述终端的移动方向和移动速度,以及基于另一终端的移动状态信息,确定另一终端的移动方向和移动速度;determining the moving direction and moving speed of the terminal based on the moving state information of the terminal, and determining the moving direction and moving speed of the other terminal based on the moving state information of the other terminal;

将所述终端的移动状态信息与另一终端的移动状态信息进行匹配,确定所述终端的移动方向与另一终端的移动方向一致,且所述终端的移动速度和另一终端的移动速度的差值不超过设定阈值时,确定匹配结果满足预设的匹配条件;Matching the moving state information of the terminal with the moving state information of another terminal, determining that the moving direction of the terminal is consistent with the moving direction of the other terminal, and the moving speed of the terminal is the same as the moving speed of the other terminal When the difference does not exceed the set threshold, it is determined that the matching result meets the preset matching condition;

或者,or,

基于所述终端的移动状态信息确定所述终端的移动方向,以及基于另一终端的移动状态信息,确定另一终端的移动方向;determining the moving direction of the terminal based on the moving state information of the terminal, and determining the moving direction of the other terminal based on the moving state information of the other terminal;

将所述终端的移动状态信息与另一终端的移动状态信息进行匹配,确定所述终端的移动方向与另一终端的移动方向一致,以及所述D2D发现信号的信号强度在设定时长内均达到相应门限时,确定匹配结果满足预设的匹配条件。Matching the moving state information of the terminal with the moving state information of another terminal, determining that the moving direction of the terminal is consistent with the moving direction of the other terminal, and that the signal strength of the D2D discovery signal is uniform within a set time period. When the corresponding threshold is reached, it is determined that the matching result satisfies the preset matching condition.

可选的,确定所述终端的移动方向与另一终端的移动方向一致时,所述匹配单元用于:Optionally, when it is determined that the moving direction of the terminal is consistent with the moving direction of another terminal, the matching unit is configured to:

确定所述终端的移动方向与另一终端的移动方向完全相同时,确定两者方向一致;或者,When determining that the moving direction of the terminal is exactly the same as that of another terminal, determining that the two directions are consistent; or,

确定所述终端的移动方向与另一终端的移动方向存在夹角且所述夹角不大于设定阈值,确定两者方向一致。It is determined that there is an included angle between the moving direction of the terminal and the moving direction of another terminal and the included angle is not greater than a set threshold, and it is determined that the directions of the two are consistent.

可选的,所述匹配单元确定所述匹配结果满足预设的匹配条件后,所述第二通信单元通过以下方式与另一终端建立D2D连接:Optionally, after the matching unit determines that the matching result satisfies a preset matching condition, the second communication unit establishes a D2D connection with another terminal in the following manner:

所述匹配单元确定所述匹配结果满足预设的匹配条件时,所述第二通信单元向网络侧发送与另一终端进行D2D通信的资源请求,所述资源请求中携带所述终端的状态信息,所述第二通信单元在网络侧依据所述终端上报的状态信息为所述终端分配的资源上,与另一终端建立D2D连接;When the matching unit determines that the matching result satisfies a preset matching condition, the second communication unit sends a resource request for D2D communication with another terminal to the network side, and the resource request carries state information of the terminal The second communication unit establishes a D2D connection with another terminal on the resource allocated to the terminal according to the state information reported by the terminal on the network side;

或者,or,

所述匹配单元确定所述匹配结果满足预设的匹配条件时,所述第二通信单元向另一终端发送进行D2D通信的请求,所述请求中携带所述终端的状态信息,所述第二通信单元在另一终端依据所述终端上报的状态信息进行确认后,在网络侧为另一终端分配的资源上与另一终端建立D2D连接;When the matching unit determines that the matching result satisfies a preset matching condition, the second communication unit sends a request for D2D communication to another terminal, the request carries state information of the terminal, and the second After the other terminal confirms according to the state information reported by the terminal, the communication unit establishes a D2D connection with the other terminal on the resource allocated for the other terminal on the network side;

或者,or,

所述匹配单元确定所述匹配结果满足预设的匹配条件时,所述第二通信单元在网络侧预先针对D2D通信分配的资源上与另一终端建立D2D连接。When the matching unit determines that the matching result satisfies a preset matching condition, the second communication unit establishes a D2D connection with another terminal on a resource pre-allocated on the network side for D2D communication.

这样,能够进行D2D通信的终端可以从上述D2D通信连接方式中任选一种连接方式进行D2D通信,而不局限于固定的通信连接方式,从而进一步提高了终端间进行D2D通信的连接成功率。In this way, terminals capable of D2D communication can choose one connection mode from the above-mentioned D2D communication connection modes to perform D2D communication without being limited to a fixed communication connection mode, thereby further improving the connection success rate of D2D communication between terminals.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本发明实施例中D2D通信的方法流程图;FIG. 1 is a flowchart of a method for D2D communication in an embodiment of the present invention;

图2为本发明实施例中D2D通信的终端设备示意图。FIG. 2 is a schematic diagram of a terminal device for D2D communication in an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,并不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

为了使终端在高速移动场景下能够有效的建立D2D连接,本发明实施例中,网络侧根据终端的移动方向、移动速度来帮助终端进行D2D通信,使得终端能够高效地进行设备间的直接通信、享受到高速的数据业务,并大大节约了网络的开销。该方案尤其适合高铁和快速路等高速移动的场景。In order to enable the terminal to effectively establish a D2D connection in a high-speed mobile scenario, in the embodiment of the present invention, the network side helps the terminal to perform D2D communication according to the moving direction and moving speed of the terminal, so that the terminal can efficiently perform direct communication between devices, Enjoy high-speed data services and greatly save network overhead. This solution is especially suitable for high-speed moving scenarios such as high-speed rail and expressways.

下面通过具体实施例对本发明方案进行详细描述,当然,本发明并不限于以下实施例。The solution of the present invention will be described in detail below through specific examples. Of course, the present invention is not limited to the following examples.

参阅图1所示,本发明实施例中,D2D通信的方法的具体流程如下:Referring to Figure 1, in the embodiment of the present invention, the specific flow of the D2D communication method is as follows:

步骤101:第一终端接收能够提供D2D数据的第二终端广播的D2D发现信号,该D2D发现信号中携带第二终端的移动状态信息。Step 101: the first terminal receives a D2D discovery signal broadcast by a second terminal capable of providing D2D data, and the D2D discovery signal carries movement status information of the second terminal.

例如,假设将能够提供D2D数据的第二终端称为UE2,在发起游戏对战业务请求时,如果UE2移动速度较快,如达到100km/h以上,那么可以优先尝试采用D2D通信方式,具体的,在设备发现过程中,UE2在网络侧预先针对D2D通信分配的资源上广播D2D发现信号,该D2D发现信号中携带UE2的移动状态信息,即至少发送自身的移动方向和移动速度给各个具备D2D业务能力的接收终端,假设为UE1,UE3,UE5。For example, assuming that the second terminal capable of providing D2D data is called UE2, when initiating a game battle service request, if UE2 moves faster, such as reaching 100km/h or more, then it can try to use the D2D communication method first. Specifically, During the device discovery process, UE2 broadcasts a D2D discovery signal on the resources allocated for D2D communication in advance on the network side. The D2D discovery signal carries UE2’s mobile status information, that is, at least sends its own moving direction and moving speed to each device with D2D services. Capable receiving terminals are assumed to be UE1, UE3, and UE5.

具体来说,UE2发送的移动速度可以是数值范围,如,100~105km/h,或者,UE2发送的移动速度也可以是具体的数值,如,102km/h。Specifically, the moving speed sent by UE2 may be in a numerical range, such as 100-105 km/h, or the moving speed sent by UE2 may also be a specific numerical value, such as 102 km/h.

对于UE2移动方向的确定,可以借助全球定位系统(GlobalPositioningSystem,GPS)信息确定,也可以利用网络侧的定位机制。For determining the moving direction of the UE2, it may be determined by means of Global Positioning System (Global Positioning System, GPS) information, or a positioning mechanism on the network side.

步骤102:第一终端收到第二终端广播的D2D发现信号后,将自身的移动状态信息与第二终端的移动状态信息进行匹配,获得匹配结果。Step 102: After receiving the D2D discovery signal broadcast by the second terminal, the first terminal matches its own mobility status information with the mobility status information of the second terminal to obtain a matching result.

为了增强D2D发现过程的安全性,在根据第二终端广播的D2D发现信号对第一终端进行匹配时,还可以对接收到D2D发现信号的第一终端进行D2D通信的确认,具体的,在本实施例中还可以包括以下处理过程:In order to enhance the security of the D2D discovery process, when matching the first terminal according to the D2D discovery signal broadcast by the second terminal, it is also possible to confirm the D2D communication of the first terminal receiving the D2D discovery signal. Specifically, in this The following processing procedures may also be included in the embodiment:

第一终端收到第二终端广播的D2D发现信号后,将自身的移动状态信息与第二终端的移动状态信息进行匹配之前,要依据第一终端当前的运行状态针对第一终端是否能够进行D2D通信进行判断,其中,在确认第一终端能够进行D2D通信后,再判定能够进行后续匹配操作,即将自身的移动状态信息与第二终端的移动状态信息进行匹配判断。After the first terminal receives the D2D discovery signal broadcast by the second terminal, before matching its own mobility status information with the mobility status information of the second terminal, it needs to determine whether the first terminal can perform D2D according to the current operating status of the first terminal. Communication is judged, wherein after confirming that the first terminal is capable of D2D communication, it is determined that the subsequent matching operation can be performed, that is, matching judgment is performed between the own moving state information and the moving state information of the second terminal.

例如,位于UE2周围的具备D2D业务能力的终端为UE1、UE3、UE4和UE5,UE1、UE3、UE4和UE5接收到UE2的D2D发现信号后,UE1、UE3、UE4和UE5就要依据自身的运行状态,判断是否能够进行D2D通信,即依据自身的运行状态判断终端当前的运行能力是否支持D2D通信,其中,终端的运行状态包括但不限于终端的CPU占用率、内存占用率和电量信息等等。假设UE1的电量不足五分钟,则拒绝执行D2D通信,那么后续将不执行匹配判断,假设UE3与UE1分别位于一辆高速行驶的火车的不同车厢中,UE3的CPU占用率仅为8%,则同意与UE1建立D2D通信,此时,UE3将会对自身的移动状态信息与UE2的移动状态信息进行匹配判断。For example, UE1, UE3, UE4, and UE5 are UE1, UE3, UE4, and UE5 that are capable of D2D services around UE2. After UE1, UE3, UE4, and UE5 receive the D2D discovery signal from UE2, UE1, UE3, UE4, and UE5 will operate according to their own Status, to determine whether D2D communication is possible, that is, to judge whether the current operating capability of the terminal supports D2D communication according to its own operating status. . Assuming that the power of UE1 is less than five minutes, it refuses to perform D2D communication, then subsequent matching judgment will not be performed, assuming that UE3 and UE1 are located in different compartments of a high-speed train, and the CPU usage of UE3 is only 8%, then Agree to establish D2D communication with UE1, at this time, UE3 will make a matching judgment on its own mobility state information and UE2's mobility state information.

具体的,在执行步骤102时,可以执行但不限于以下操作:Specifically, when performing step 102, the following operations may be performed but not limited to:

第一种操作为:第一终端基于自身的移动状态信息确定自身的移动方向和移动速度,以及基于第二终端的移动状态信息,确定第二终端的移动方向和移动速度;第一终端将自身的移动状态信息与第二终端的移动状态信息进行匹配,确定自身的移动方向与第二终端的移动方向一致,且自身的移动速度和第二终端的移动速度的差值不超过设定阈值时,确定匹配结果满足预设的匹配条件;The first operation is: the first terminal determines its own moving direction and moving speed based on its own moving state information, and determines the moving direction and moving speed of the second terminal based on the moving state information of the second terminal; Match the moving state information of the second terminal with the moving state information of the second terminal, determine that the moving direction of the self is consistent with the moving direction of the second terminal, and the difference between the moving speed of the self and the moving speed of the second terminal does not exceed the set threshold , to determine that the matching result satisfies the preset matching condition;

这种情况下,第一终端和第二终端的移动方向一致,且第一终端和第二终端的移动速度相似,此时,第一终端和第二终端在一定时间内可以保持处于有效的D2D通信范围内,因此,判定满足匹配条件。In this case, the moving directions of the first terminal and the second terminal are the same, and the moving speeds of the first terminal and the second terminal are similar. At this time, the first terminal and the second terminal can maintain an effective D2D Within the communication range, therefore, it is determined that the matching condition is met.

另一方面,第一终端确定自身的移动方向与第二终端的移动方向一致存在以下两种情形:On the other hand, there are the following two situations where the first terminal determines that its own moving direction is consistent with the moving direction of the second terminal:

第一种情形为:第一终端确定自身的移动方向与第二终端的移动方向完全相同时,确定两者方向一致;The first situation is: when the first terminal determines that its own moving direction is exactly the same as that of the second terminal, it determines that the two directions are consistent;

第二种情形为:第一终端确定自身的移动方向与第二终端的移动方向存在夹角且该夹角不大于设定阈值(如,10度),确定两者方向一致。,设定该阈值是为了保证移动方向之间的夹角不会造成两个终端的距离在一定时间后渐渐离远,并超出D2D通信的服务范围。The second situation is: the first terminal determines that there is an angle between the moving direction of itself and the moving direction of the second terminal and the angle is not greater than a set threshold (for example, 10 degrees), and determines that the two directions are consistent. , the threshold is set to ensure that the angle between the moving directions will not cause the distance between the two terminals to gradually diverge after a certain period of time, and exceed the service range of the D2D communication.

后续实施例中,提及两个终端之间的移动方向一致均包含上述两种情形,将不再赘述。In subsequent embodiments, mentioning that the moving directions between two terminals are consistent includes the above two situations, which will not be described again.

例如:假设位于UE2周围的具备D2D业务能力的终端为UE1和UE3,UE1和UE3接收到UE2的D2D发现信号后,检查各自的移动方向、移动速度、以及监测接收到的D2D发现信号的衰减情况,发现UE1的移动方向与UE2的移动方向完全相同且UE1的移动速度V1=105km/h,而UE2的移动速度V2=102km/h,两者之间的速度大小差值小于设定的V0(假设V0=5km/h),则可以认为UE1能够与UE2进行D2D通信;发现UE3的移动方向与UE2的移动方向存在夹角A,夹角A的大小为7度,小于预设的门限(如A0=10度),且UE3的移动速度V1=103km/h,而UE2的移动速度V2=102km/h,两者之间的速度大小差值小于设定的V0(假设V0=5km/h),则可以认为UE3能够与UE2进行D2D通信。For example: assume that UE1 and UE3 are UE1 and UE3 capable of D2D services around UE2. After receiving the D2D discovery signal from UE2, UE1 and UE3 check their respective moving direction, moving speed, and monitor the attenuation of the received D2D discovery signal. It is found that the moving direction of UE1 is exactly the same as that of UE2 and the moving speed of UE1 is V1=105km/h, while the moving speed of UE2 is V2=102km/h, and the speed difference between the two is smaller than the set V0( Assuming V0=5km/h), it can be considered that UE1 can perform D2D communication with UE2; it is found that there is an angle A between the moving direction of UE3 and the moving direction of UE2, and the angle A is 7 degrees, which is smaller than the preset threshold (such as A0=10 degrees), and UE3's moving speed V1=103km/h, while UE2's moving speed V2=102km/h, the speed difference between the two is less than the set V0 (assuming V0=5km/h) , it can be considered that UE3 can perform D2D communication with UE2.

第二种操作为:第一终端基于自身的移动状态信息确定自身的移动方向,以及基于第二终端的移动状态信息,确定第二终端的移动方向;第一终端将自身的移动状态信息与第二终端的移动状态信息进行匹配,确定自身的移动方向与第二终端的移动方向一致,以及接收到的D2D发现信号的信号强度在设定时长内均达到相应门限时,确定匹配结果满足预设的匹配条件。The second operation is: the first terminal determines its own moving direction based on its own moving state information, and determines the moving direction of the second terminal based on its own moving state information; the first terminal compares its own moving state information with the second terminal's moving direction. Match the mobile state information of the two terminals, determine that the moving direction of itself is consistent with the moving direction of the second terminal, and when the signal strength of the received D2D discovery signal reaches the corresponding threshold within the set duration, determine that the matching result satisfies the preset matching criteria.

这种情况下,第一终端和第二终端的移动方向一致,且第一终端接收到的第二终端的D2D发现信号的信号强度在设定时长内均达到相应门限时,此时,第一终端和第二终端在一定时间内可以保持处于有效的D2D通信范围内,因此,判定满足匹配条件。In this case, when the moving directions of the first terminal and the second terminal are the same, and the signal strength of the D2D discovery signal of the second terminal received by the first terminal reaches the corresponding threshold within the set duration, at this time, the first terminal The terminal and the second terminal can remain within the effective D2D communication range within a certain period of time, therefore, it is determined that the matching condition is met.

例如:假设位于UE2周围的具备D2D业务能力的终端为UE4和UE5,UE4和UE5接收到UE2的D2D发现信号后,检查各自的移动方向、移动速度、以及监测接收到的D2D发现信号的衰减情况,发现UE4的移动方向与UE2的移动方向完全相同,且UE4接收到的UE2的D2D发现信号的信号强度在设定时长内(假设为5分钟)均达到相应门限(如,信号强度均达到-85dBm),则可以认为UE4能够与UE2进行D2D通信;同时发现UE5的移动方向与UE2的移动方向存在夹角B,夹角B的大小为5度,小于设定阈值(如A0=10度),且UE5接收到的UE2的D2D发现信号的信号强度在设定时长内(假设为5分钟)均达到相应门限(如,信号强度均达-85dBm),则可以认为UE5能够与UE2进行D2D通信。For example: Assuming that UE4 and UE5 are UE4 and UE5 capable of D2D services around UE2, after UE4 and UE5 receive the D2D discovery signal from UE2, they check their respective moving direction, moving speed, and monitor the attenuation of the received D2D discovery signal , it is found that the moving direction of UE4 is exactly the same as that of UE2, and the signal strength of UE2's D2D discovery signal received by UE4 reaches the corresponding threshold within the set time period (assumed to be 5 minutes) (for example, the signal strength reaches - 85dBm), it can be considered that UE4 can perform D2D communication with UE2; at the same time, it is found that there is an angle B between the moving direction of UE5 and the moving direction of UE2, and the angle B is 5 degrees, which is smaller than the set threshold (such as A0=10 degrees) , and the signal strength of the D2D discovery signal of UE2 received by UE5 reaches the corresponding threshold (for example, the signal strength reaches -85dBm) within the set time period (assumed to be 5 minutes), then it can be considered that UE5 can perform D2D communication with UE2 .

又例如:假设位于UE2周围的具备D2D业务能力的终端UE6接收到UE2的D2D发现信号后,检查自身的移动方向、移动速度、以及监测接收到的D2D发现信号的衰减情况,假设UE6的移动方向与UE2的移动方向不一致,不论UE5的移动速度和接收到的UE2的D2D发现信号的信号强度是否符合预设的条件,都认为UE5不能够UE2进行D2D通信。Another example: assume that UE6, a terminal with D2D service capability located around UE2, checks its own moving direction, moving speed, and monitors the attenuation of the received D2D discovery signal after receiving the D2D discovery signal of UE2. Assume that the moving direction of UE6 is Inconsistent with the moving direction of UE2, regardless of whether the moving speed of UE5 and the received signal strength of the D2D discovery signal of UE2 meet the preset conditions, it is considered that UE5 cannot perform D2D communication with UE2.

步骤103:第一终端确定该匹配结果满足预设的匹配条件时,与第二终端建立D2D连接。Step 103: the first terminal establishes a D2D connection with the second terminal when determining that the matching result satisfies a preset matching condition.

具体的,第一终端确定通过步骤102得到匹配结果满足预设的匹配条件后,与第二终端建立D2D连接时,可以采用但不限于采用以下几种方式:Specifically, after the first terminal determines that the matching result obtained through step 102 satisfies the preset matching condition, when establishing a D2D connection with the second terminal, the following methods may be adopted but not limited to:

第一种方式为:第一终端确定匹配结果满足预设的匹配条件时,向网络侧发送与第二终端进行D2D通信的资源请求,该资源请求中携带第一终端的状态信息,第一终端在网络侧依据第一终端上报的状态信息为第一终端分配与第二终端进行直接D2D通信的资源后,在网络侧为第一终端和第二终端分配的资源上与第二终端建立D2D连接。The first method is: when the first terminal determines that the matching result satisfies the preset matching condition, it sends a resource request for D2D communication with the second terminal to the network side, and the resource request carries the state information of the first terminal, and the first terminal After the network side allocates resources for direct D2D communication with the second terminal to the first terminal according to the status information reported by the first terminal, establish a D2D connection with the second terminal on the resources allocated by the network side to the first terminal and the second terminal .

例如:UE1是符合与UE2进行D2D通信条件的终端,UE1向网络侧请求与UE2进行D2D直接通通信的资源,该资源请求中携带UE1的各种状态信息,可选地,其中可携带UE1的移动状态信息(包括移动方向和移动速度)、位置信息等;网络侧给UE1和UE2分配进行D2D通信的资源,之后UE1和UE2在该分配的资源上进行直接数据通信。For example: UE1 is a terminal that meets the conditions for D2D communication with UE2. UE1 requests resources for D2D direct communication with UE2 from the network side. The resource request carries various status information of UE1. Optionally, UE1's Mobile status information (including moving direction and moving speed), location information, etc.; the network side allocates resources for D2D communication to UE1 and UE2, and then UE1 and UE2 perform direct data communication on the allocated resources.

第二种方式为:第一终端确定匹配结果满足预设的匹配条件时,向第二终端发送进行D2D通信的请求,该请求中携带第一终端的状态信息,第一终端在第二终端依据第一终端上报的状态信息进行确认后,在网络侧为第二终端分配的资源上与第二终端建立D2D连接。The second method is: when the first terminal determines that the matching result meets the preset matching conditions, it sends a request for D2D communication to the second terminal, and the request carries the state information of the first terminal, and the first terminal sends the request to the second terminal according to the After confirming the status information reported by the first terminal, a D2D connection is established with the second terminal on the resources allocated for the second terminal by the network side.

例如:UE1是符合与UE2进行D2D通信条件的终端,UE1反馈自身的各种状态信息给UE2;UE2依据UE1反馈的UE1的各种状态信息进行确认,U2确定UE1已确认后,在系统为UE2分配的资源上进行D2D通信,其中UE2在发起D2D业务请求时,网络侧就为UE2分配了进行D2D通信的资源。For example: UE1 is a terminal that meets the conditions for D2D communication with UE2. UE1 feeds back various state information of itself to UE2; UE2 confirms according to the various state information of UE1 fed back by UE1. D2D communication is performed on the allocated resources, and when UE2 initiates a D2D service request, the network side allocates resources for D2D communication to UE2.

第三种方式为:第一终端确定该匹配结果满足预设的匹配条件时,在网络侧预先针对D2D通信分配的资源上与第二终端建立D2D连接。The third manner is: when the first terminal determines that the matching result satisfies a preset matching condition, the first terminal establishes a D2D connection with the second terminal on resources previously allocated for D2D communication on the network side.

例如:UE1是符合与UE2进行D2D通信条件的终端,UE1在之前网络侧在系统消息中广播过的用于D2D通信的资源上,和UE2进行D2D通信。For example: UE1 is a terminal that meets the conditions for D2D communication with UE2, and UE1 performs D2D communication with UE2 on the resource used for D2D communication that was broadcast by the network side in the system message before.

基于上述技术方案,参阅图2所示,本发明实施例中还提供一种D2D通信的终端,包括第一通信单元20,匹配单元21,第二通信单元22,以及判断单元23,其中:Based on the above technical solution, as shown in FIG. 2, an embodiment of the present invention also provides a D2D communication terminal, including a first communication unit 20, a matching unit 21, a second communication unit 22, and a judging unit 23, wherein:

第一通信单元20,用于接收能够提供D2D数据的另一终端广播的D2D发现信号,该D2D发现信号中携带该另一终端的移动状态信息;The first communication unit 20 is configured to receive a D2D discovery signal broadcast by another terminal capable of providing D2D data, where the D2D discovery signal carries mobility status information of the other terminal;

匹配单元21,用于在接收到该另一终端广播的D2D发现信号后,将自身的移动状态信息与另一终端的移动状态信息进行匹配,获得匹配结果;The matching unit 21 is configured to, after receiving the D2D discovery signal broadcast by the other terminal, match its own mobility state information with the mobility state information of another terminal to obtain a matching result;

第二通信单元22,用于在该匹配单元确定该匹配结果满足预设的匹配条件时,与另一终端建立D2D连接。The second communication unit 22 is configured to establish a D2D connection with another terminal when the matching unit determines that the matching result satisfies a preset matching condition.

这样,网络侧根据终端的移动速度和移动方向等信息来帮助终端进行D2D通信,使得终端能够高效地进行设备间的直接通信、享受到高速的数据业务,并能够长期保证D2D通信的稳定性,同时大大减少与不适合进行D2D通信的终端进行连接的可能性,避免了无效的重复连接,减少了资源浪费。In this way, the network side helps the terminal to perform D2D communication according to information such as the terminal’s moving speed and moving direction, so that the terminal can efficiently perform direct communication between devices, enjoy high-speed data services, and ensure the stability of D2D communication for a long time. At the same time, the possibility of connecting with a terminal that is not suitable for D2D communication is greatly reduced, invalid repeated connections are avoided, and resource waste is reduced.

可选的,该终端还包括:Optionally, the terminal also includes:

判断单元23,用于在该第一通信单元20接收到该另一终端广播的D2D发现信号后,在该匹配单元21将自身的移动状态信息与另一终端的移动状态信息进行匹配之前,依据该终端当前的运行状态对该终端是否能够进行D2D通信进行判断,其中,在确认该终端能够进行D2D通信后,判定能够进行后续匹配操作。The judging unit 23 is configured to, after the first communication unit 20 receives the D2D discovery signal broadcast by the other terminal, before the matching unit 21 matches its own mobility status information with the mobility status information of the other terminal, according to The current operating state of the terminal determines whether the terminal can perform D2D communication, wherein after it is confirmed that the terminal is capable of D2D communication, it is determined that the subsequent matching operation can be performed.

可选的,接收到该另一终端广播的D2D发现信号后,将该终端的移动状态信息与另一终端的移动状态信息进行匹配,获得匹配结果时,该匹配单元21用于:Optionally, after receiving the D2D discovery signal broadcast by the other terminal, the mobile state information of the terminal is matched with the mobile state information of the other terminal, and when the matching result is obtained, the matching unit 21 is used for:

基于该终端的移动状态信息确定该终端的移动方向和移动速度,以及基于另一终端的移动状态信息,确定另一终端的移动方向和移动速度;determining the moving direction and moving speed of the terminal based on the moving state information of the terminal, and determining the moving direction and moving speed of the other terminal based on the moving state information of the other terminal;

将该终端的移动状态信息与另一终端的移动状态信息进行匹配,确定该终端的移动方向与另一终端的移动方向一致,且该终端的移动速度和另一终端的移动速度的差值不超过设定阈值时,确定匹配结果满足预设的匹配条件;Match the moving state information of the terminal with the moving state information of another terminal, determine that the moving direction of the terminal is consistent with the moving direction of the other terminal, and the difference between the moving speed of the terminal and the moving speed of the other terminal is equal to When the set threshold is exceeded, it is determined that the matching result satisfies the preset matching condition;

或者,or,

基于该终端的移动状态信息确定该终端的移动方向,以及基于另一终端的移动状态信息,确定另一终端的移动方向;determining the moving direction of the terminal based on the moving state information of the terminal, and determining the moving direction of the other terminal based on the moving state information of the other terminal;

将该终端的移动状态信息与另一终端的移动状态信息进行匹配,确定该终端的移动方向与另一终端的移动方向一致,以及该D2D发现信号的信号强度在设定时长内均达到相应门限时,确定匹配结果满足预设的匹配条件。Match the mobile state information of the terminal with the mobile state information of another terminal, determine that the moving direction of the terminal is consistent with the moving direction of the other terminal, and that the signal strength of the D2D discovery signal reaches the corresponding threshold within the set time period. Within a limited time, it is determined that the matching result satisfies the preset matching condition.

可选的,确定该终端的移动方向与另一终端的移动方向一致时,该匹配单元21用于:Optionally, when it is determined that the moving direction of the terminal is consistent with the moving direction of another terminal, the matching unit 21 is configured to:

确定该终端的移动方向与另一终端的移动方向完全相同时,确定两者方向一致;或者,When it is determined that the moving direction of the terminal is exactly the same as the moving direction of another terminal, it is determined that the two directions are consistent; or,

确定该终端的移动方向与另一终端的移动方向存在夹角且该夹角不大于设定阈值,确定两者方向一致。It is determined that there is an included angle between the moving direction of the terminal and the moving direction of the other terminal and the included angle is not greater than a set threshold, and it is determined that the directions of the two are consistent.

可选的,该匹配单元21确定该匹配结果满足预设的匹配条件后,该第二通信单元22通过以下方式与另一终端建立D2D连接:Optionally, after the matching unit 21 determines that the matching result meets a preset matching condition, the second communication unit 22 establishes a D2D connection with another terminal in the following manner:

第一种方式为:匹配单元21确定该匹配结果满足预设的匹配条件时,该第二通信单元22向网络侧发送与另一终端进行D2D通信的资源请求,该资源请求中携带该终端的状态信息,该第二通信单元22在网络侧依据该终端上报的状态信息为该终端分配的资源上,与另一终端建立D2D连接;The first way is: when the matching unit 21 determines that the matching result satisfies the preset matching condition, the second communication unit 22 sends a resource request for D2D communication with another terminal to the network side, and the resource request carries the terminal's state information, the second communication unit 22 establishes a D2D connection with another terminal on the resources allocated to the terminal by the network side according to the state information reported by the terminal;

第二种方式为:匹配单元21确定该匹配结果满足预设的匹配条件时,该第二通信单元22向另一终端发送进行D2D通信的请求,该请求中携带该终端的状态信息,该第二通信单元22在另一终端依据该终端上报的状态信息进行确认后,在网络侧为另一终端分配的资源上与另一终端建立D2D连接;The second method is: when the matching unit 21 determines that the matching result satisfies the preset matching condition, the second communication unit 22 sends a request for D2D communication to another terminal, and the request carries the status information of the terminal. The second communication unit 22 establishes a D2D connection with the other terminal on the resource allocated for the other terminal on the network side after the other terminal confirms according to the state information reported by the terminal;

第三种方式为:匹配单元21确定该匹配结果满足预设的匹配条件时,该第二通信单元22在网络侧预先针对D2D通信分配的资源上与另一终端建立D2D连接。The third manner is: when the matching unit 21 determines that the matching result satisfies a preset matching condition, the second communication unit 22 establishes a D2D connection with another terminal on a resource previously allocated for D2D communication on the network side.

这样,能够进行D2D通信的终端可以从上述D2D通信连接方式中任选一种连接方式进行D2D通信,而不局限于固定的通信连接方式,从而进一步提高了终端间进行D2D通信的连接成功率。In this way, terminals capable of D2D communication can choose one connection mode from the above-mentioned D2D communication connection modes to perform D2D communication without being limited to a fixed communication connection mode, thereby further improving the connection success rate of D2D communication between terminals.

综上所述,本发明实施例中,第一终端接收能够提供D2D数据的第二终端广播的D2D发现信号,该D2D发现信号中携带第二终端的移动状态信息;然后第一终端收到第二终端广播的D2D发现信号后,将自身的移动状态信息与第二终端的移动状态信息进行匹配,获得匹配结果;最后第一终端确定该匹配结果满足预设的匹配条件时,与第二终端建立D2D连接,通过这种D2D发现机制帮助终端进行D2D通信,能够保证终端有效的建立D2D连接,并能够长期保证D2D通信的稳定性,同时大大减少与不适合进行D2D通信的终端进行连接的可能性,避免了无效的重复连接,减少了资源浪费,进一步的节约网络开销,从而提升系统性能。To sum up, in the embodiment of the present invention, the first terminal receives the D2D discovery signal broadcast by the second terminal capable of providing D2D data, and the D2D discovery signal carries the mobility status information of the second terminal; then the first terminal receives the second terminal After the D2D discovery signal broadcast by the second terminal, it matches its own mobile state information with the mobile state information of the second terminal to obtain a matching result; finally, when the first terminal determines that the matching result meets the preset matching condition, it matches the second terminal Establishing a D2D connection, using this D2D discovery mechanism to help the terminal to perform D2D communication, can ensure that the terminal can effectively establish a D2D connection, and can ensure the stability of the D2D communication for a long time, while greatly reducing the possibility of connecting with a terminal that is not suitable for D2D communication It avoids invalid repeated connections, reduces waste of resources, and further saves network overhead, thereby improving system performance.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Apparently, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. In this way, if the modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (10)

1.一种D2D通信的方法,其特征在于,包括:1. A method for D2D communication, comprising: 第一终端接收能够提供D2D数据的第二终端广播的D2D发现信号,所述D2D发现信号中携带所述第二终端的移动状态信息;The first terminal receives a D2D discovery signal broadcast by a second terminal capable of providing D2D data, where the D2D discovery signal carries movement state information of the second terminal; 第一终端接收到所述第二终端广播的D2D发现信号后,将自身的移动状态信息与第二终端的移动状态信息进行匹配,获得匹配结果;After receiving the D2D discovery signal broadcast by the second terminal, the first terminal matches its own mobility state information with the mobility state information of the second terminal to obtain a matching result; 第一终端确定所述匹配结果满足预设的匹配条件时,与第二终端建立D2D连接。When determining that the matching result satisfies a preset matching condition, the first terminal establishes a D2D connection with the second terminal. 2.如权利要求1所述的方法,其特征在于,第一终端接收到所述第二终端广播的D2D发现信号后,将自身的移动状态信息与第二终端的移动状态信息进行匹配之前,进一步包括:2. The method according to claim 1, wherein after the first terminal receives the D2D discovery signal broadcast by the second terminal, before matching its own mobility status information with the mobility status information of the second terminal, Further includes: 依据第一终端当前的运行状态对第一终端是否能够进行D2D通信进行判断,其中,在确认第一终端能够进行D2D通信后,判定能够进行后续匹配操作。Whether the first terminal can perform D2D communication is judged according to the current operating state of the first terminal, wherein after it is confirmed that the first terminal is capable of D2D communication, it is determined that a subsequent matching operation can be performed. 3.如权利要求1所述的方法,其特征在于,第一终端收到所述第二终端广播的D2D发现信号后,将自身的移动状态信息与第二终端的移动状态信息进行匹配,获得匹配结果,包括:3. The method according to claim 1, wherein after receiving the D2D discovery signal broadcast by the second terminal, the first terminal matches its own mobility status information with the mobility status information of the second terminal to obtain Matching results, including: 第一终端基于自身的移动状态信息确定自身的移动方向和移动速度,以及基于第二终端的移动状态信息,确定第二终端的移动方向和移动速度;The first terminal determines its own moving direction and moving speed based on its own moving state information, and determines the moving direction and moving speed of the second terminal based on the moving state information of the second terminal; 第一终端将自身的移动状态信息与第二终端的移动状态信息进行匹配,确定自身的移动方向与第二终端的移动方向一致,且自身的移动速度和第二终端的移动速度的差值不超过设定阈值时,确定匹配结果满足预设的匹配条件;The first terminal matches its own moving state information with the second terminal's moving state information, and determines that its own moving direction is consistent with the second terminal's moving direction, and the difference between its own moving speed and the second terminal's moving speed is equal to When the set threshold is exceeded, it is determined that the matching result satisfies the preset matching condition; 或者,or, 第一终端基于自身的移动状态信息确定自身的移动方向,以及基于第二终端的移动状态信息,确定第二终端的移动方向;The first terminal determines its own moving direction based on its own moving state information, and determines the moving direction of the second terminal based on the moving state information of the second terminal; 第一终端将自身的移动状态信息与第二终端的移动状态信息进行匹配,确定自身的移动方向与第二终端的移动方向一致,以及所述D2D发现信号的信号强度在设定时长内均达到相应门限时,确定匹配结果满足预设的匹配条件。The first terminal matches its own moving state information with the second terminal's moving state information, and determines that its own moving direction is consistent with the moving direction of the second terminal, and that the signal strength of the D2D discovery signal reaches When the corresponding threshold is met, it is determined that the matching result satisfies the preset matching condition. 4.如权利要求3所述的方法,其特征在于,第一终端确定自身的移动方向与第二终端的移动方向一致,包括:4. The method according to claim 3, wherein the first terminal determines that its own moving direction is consistent with the second terminal's moving direction, comprising: 第一终端确定自身的移动方向与第二终端的移动方向完全相同时,确定两者方向一致;或者,When the first terminal determines that its own moving direction is exactly the same as that of the second terminal, it determines that the two directions are consistent; or, 第一终端确定自身的移动方向与第二终端的移动方向存在夹角且所述夹角不大于设定阈值,确定两者方向一致。The first terminal determines that there is an included angle between the moving direction of itself and the moving direction of the second terminal and the included angle is not greater than a set threshold, and determines that the two directions are consistent. 5.如权利要求1或3所述的方法,其特征在于,第一终端确定所述匹配结果满足预设的匹配条件后,与第二终端建立D2D连接,包括:5. The method according to claim 1 or 3, wherein the first terminal establishes a D2D connection with the second terminal after determining that the matching result satisfies a preset matching condition, comprising: 第一终端确定所述匹配结果满足预设的匹配条件时,向网络侧发送与第二终端进行D2D通信的资源请求,所述资源请求中携带第一终端的状态信息,第一终端在网络侧依据第一终端上报的状态信息为第一终端分配的资源上,与第二终端建立D2D连接;When the first terminal determines that the matching result satisfies the preset matching condition, it sends a resource request for D2D communication with the second terminal to the network side, the resource request carries status information of the first terminal, and the first terminal is on the network side. Establishing a D2D connection with the second terminal on resources allocated to the first terminal according to the status information reported by the first terminal; 或者,or, 第一终端确定所述匹配结果满足预设的匹配条件时,向第二终端发送进行D2D通信的请求,所述请求中携带第一终端的状态信息,第一终端在第二终端依据第一终端上报的状态信息进行确认后,在网络侧为第二终端分配的资源上与第二终端建立D2D连接;When the first terminal determines that the matching result satisfies the preset matching condition, it sends a request for D2D communication to the second terminal. After confirming the reported state information, establish a D2D connection with the second terminal on the resources allocated by the network side for the second terminal; 或者,or, 第一终端确定所述匹配结果满足预设的匹配条件时,在网络侧预先针对D2D通信分配的资源上与第二终端建立D2D连接。When the first terminal determines that the matching result satisfies the preset matching condition, it establishes a D2D connection with the second terminal on the resources previously allocated by the network side for D2D communication. 6.一种D2D通信的终端,其特征在于,包括:6. A terminal for D2D communication, comprising: 第一通信单元,用于接收能够提供D2D数据的另一终端广播的D2D发现信号,所述D2D发现信号中携带所述另一终端的移动状态信息;A first communication unit, configured to receive a D2D discovery signal broadcast by another terminal capable of providing D2D data, where the D2D discovery signal carries mobility status information of the other terminal; 匹配单元,用于在接收到所述另一终端广播的D2D发现信号后,将自身的移动状态信息与另一终端的移动状态信息进行匹配,获得匹配结果;a matching unit, configured to match its own mobility state information with the mobility state information of another terminal after receiving the D2D discovery signal broadcast by the other terminal, to obtain a matching result; 第二通信单元,用于在所述匹配单元确定所述匹配结果满足预设的匹配条件时,与另一终端建立D2D连接。The second communication unit is configured to establish a D2D connection with another terminal when the matching unit determines that the matching result meets a preset matching condition. 7.如权利要求6所述的终端,其特征在于,还包括:7. The terminal according to claim 6, further comprising: 判断单元,用于在所述第一通信单元接收到所述另一终端广播的D2D发现信号后,在所述匹配单元将自身的移动状态信息与另一终端的移动状态信息进行匹配之前,依据所述终端当前的运行状态对所述终端是否能够进行D2D通信进行判断,其中,在确认所述终端能够进行D2D通信后,判定能够进行后续匹配操作。The judging unit is configured to, after the first communication unit receives the D2D discovery signal broadcast by the other terminal, before the matching unit matches its own mobility status information with the mobility status information of the other terminal, according to The current operating state of the terminal determines whether the terminal can perform D2D communication, wherein after it is confirmed that the terminal is capable of D2D communication, it is determined that the subsequent matching operation can be performed. 8.如权利要求6所述的终端,其特征在于,接收到所述另一终端广播的D2D发现信号后,将所述终端的移动状态信息与另一终端的移动状态信息进行匹配,获得匹配结果时,所述匹配单元用于:8. The terminal according to claim 6, wherein after receiving the D2D discovery signal broadcast by the other terminal, the mobile state information of the terminal is matched with the mobile state information of the other terminal to obtain a matching As a result, the matching unit is used to: 基于所述终端的移动状态信息确定所述终端的移动方向和移动速度,以及基于另一终端的移动状态信息,确定另一终端的移动方向和移动速度;determining the moving direction and moving speed of the terminal based on the moving state information of the terminal, and determining the moving direction and moving speed of the other terminal based on the moving state information of the other terminal; 将所述终端的移动状态信息与另一终端的移动状态信息进行匹配,确定所述终端的移动方向与另一终端的移动方向一致,且所述终端的移动速度和另一终端的移动速度的差值不超过设定阈值时,确定匹配结果满足预设的匹配条件;Matching the moving state information of the terminal with the moving state information of another terminal, determining that the moving direction of the terminal is consistent with the moving direction of the other terminal, and the moving speed of the terminal is the same as the moving speed of the other terminal When the difference does not exceed the set threshold, it is determined that the matching result meets the preset matching condition; 或者,or, 基于所述终端的移动状态信息确定所述终端的移动方向,以及基于另一终端的移动状态信息,确定另一终端的移动方向;determining the moving direction of the terminal based on the moving state information of the terminal, and determining the moving direction of the other terminal based on the moving state information of the other terminal; 将所述终端的移动状态信息与另一终端的移动状态信息进行匹配,确定所述终端的移动方向与另一终端的移动方向一致,以及所述D2D发现信号的信号强度在设定时长内均达到相应门限时,确定匹配结果满足预设的匹配条件。Matching the moving state information of the terminal with the moving state information of another terminal, determining that the moving direction of the terminal is consistent with the moving direction of the other terminal, and that the signal strength of the D2D discovery signal is uniform within a set time period. When the corresponding threshold is reached, it is determined that the matching result satisfies the preset matching condition. 9.如权利要求8所述的终端,其特征在于,确定所述终端的移动方向与另一终端的移动方向一致时,所述匹配单元用于:9. The terminal according to claim 8, wherein when it is determined that the moving direction of the terminal is consistent with the moving direction of another terminal, the matching unit is configured to: 确定所述终端的移动方向与另一终端的移动方向完全相同时,确定两者方向一致;或者,When determining that the moving direction of the terminal is exactly the same as that of another terminal, determining that the two directions are consistent; or, 确定所述终端的移动方向与另一终端的移动方向存在夹角且所述夹角不大于设定阈值,确定两者方向一致。It is determined that there is an included angle between the moving direction of the terminal and the moving direction of another terminal and the included angle is not greater than a set threshold, and it is determined that the directions of the two are consistent. 10.如权利要求6或8所述的终端,其特征在于,所述匹配单元确定所述匹配结果满足预设的匹配条件后,所述第二通信单元通过以下方式与另一终端建立D2D连接:10. The terminal according to claim 6 or 8, wherein after the matching unit determines that the matching result satisfies a preset matching condition, the second communication unit establishes a D2D connection with another terminal in the following manner : 所述匹配单元确定所述匹配结果满足预设的匹配条件时,所述第二通信单元向网络侧发送与另一终端进行D2D通信的资源请求,所述资源请求中携带所述终端的状态信息,所述第二通信单元在网络侧依据所述终端上报的状态信息为所述终端分配的资源上,与另一终端建立D2D连接;When the matching unit determines that the matching result satisfies a preset matching condition, the second communication unit sends a resource request for D2D communication with another terminal to the network side, and the resource request carries state information of the terminal The second communication unit establishes a D2D connection with another terminal on the resource allocated to the terminal according to the state information reported by the terminal on the network side; 或者,or, 所述匹配单元确定所述匹配结果满足预设的匹配条件时,所述第二通信单元向另一终端发送进行D2D通信的请求,所述请求中携带所述终端的状态信息,所述第二通信单元在另一终端依据所述终端上报的状态信息进行确认后,在网络侧为另一终端分配的资源上与另一终端建立D2D连接;When the matching unit determines that the matching result satisfies a preset matching condition, the second communication unit sends a request for D2D communication to another terminal, the request carries state information of the terminal, and the second After the other terminal confirms according to the state information reported by the terminal, the communication unit establishes a D2D connection with the other terminal on the resource allocated for the other terminal on the network side; 或者,or, 所述匹配单元确定所述匹配结果满足预设的匹配条件时,所述第二通信单元在网络侧预先针对D2D通信分配的资源上与另一终端建立D2D连接。When the matching unit determines that the matching result satisfies a preset matching condition, the second communication unit establishes a D2D connection with another terminal on a resource pre-allocated on the network side for D2D communication.
CN201410610051.6A 2014-11-03 2014-11-03 D2D communication method and D2D communication device Pending CN105611483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410610051.6A CN105611483A (en) 2014-11-03 2014-11-03 D2D communication method and D2D communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410610051.6A CN105611483A (en) 2014-11-03 2014-11-03 D2D communication method and D2D communication device

Publications (1)

Publication Number Publication Date
CN105611483A true CN105611483A (en) 2016-05-25

Family

ID=55990959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410610051.6A Pending CN105611483A (en) 2014-11-03 2014-11-03 D2D communication method and D2D communication device

Country Status (1)

Country Link
CN (1) CN105611483A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113365325A (en) * 2021-05-18 2021-09-07 南京大鱼半导体有限公司 Data transmission method, device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547881A (en) * 2012-01-20 2012-07-04 中兴通讯股份有限公司 A user equipment control method, user equipment and network side equipment
US20130286963A1 (en) * 2012-04-26 2013-10-31 Industrial Technology Research Institute Resource management method and apparatuses for device to device communications
CN103747507A (en) * 2014-01-28 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Selecting method, selecting device, terminal and base station for communication mode
WO2014098906A1 (en) * 2012-12-21 2014-06-26 Nokia Corporation Methods and apparatuses for efficient signaling in a system supporting d2d over the air discovery
CN103974431A (en) * 2013-02-06 2014-08-06 索尼公司 Wireless communication method, base station and wireless communication equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547881A (en) * 2012-01-20 2012-07-04 中兴通讯股份有限公司 A user equipment control method, user equipment and network side equipment
US20130286963A1 (en) * 2012-04-26 2013-10-31 Industrial Technology Research Institute Resource management method and apparatuses for device to device communications
WO2014098906A1 (en) * 2012-12-21 2014-06-26 Nokia Corporation Methods and apparatuses for efficient signaling in a system supporting d2d over the air discovery
CN103974431A (en) * 2013-02-06 2014-08-06 索尼公司 Wireless communication method, base station and wireless communication equipment
CN103747507A (en) * 2014-01-28 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Selecting method, selecting device, terminal and base station for communication mode

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113365325A (en) * 2021-05-18 2021-09-07 南京大鱼半导体有限公司 Data transmission method, device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
WO2016019691A1 (en) Method, apparatus, and system for configuring device-to-device resource pool
CN104869526B (en) A kind of communication of device-to-device and its resource allocation methods, equipment
CN103517371B (en) A kind of communication means of device-to-device, apparatus and system
CN106211332B (en) Resource allocation method and device
CN113316198B (en) QoS generation method, device and system
WO2018126801A1 (en) Data sending method and apparatus, and data receiving method and apparatus
US20210251023A1 (en) Connection establishment
WO2015154392A1 (en) Switching implementation method and device for d2d service
CN106559732A (en) Car networking communication processing method and device
WO2017190276A1 (en) Resource scheduling method, and terminal apparatus
US11601788B2 (en) Device-to-device D2D service transmission method, apparatus, and device
US10142861B2 (en) Method and device for monitoring device-to-device communication and computer storage medium
CN109479232B (en) Information transmission method, device and communication system
EP3100564B1 (en) Method and apparatus for d2d based access
US20230038246A1 (en) Communication method and apparatus
CN105992348A (en) Device-to-device (D2D) communication-based resource distribution method and user equipment
EP4354913A1 (en) Data transmission method, user equipment, service node and storage medium
CN105592509A (en) Cell switching method and apparatus, and device to device (D2D) communication method and apparatus
CN106358274B (en) Message transmission power saving method and related equipment
EP4033834A1 (en) Resource selection method and device
WO2017143530A1 (en) Interface resource selection apparatus and method, and communication system
WO2016090560A1 (en) Discontinuous reception configuration method and apparatus, and communication system
US20150230273A1 (en) Cluster user based message transmission method and device
CN105611483A (en) D2D communication method and D2D communication device
WO2022028479A1 (en) Method for enhancing computing task during internet of vehicles discovery process, and related product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160525

RJ01 Rejection of invention patent application after publication