WO2014187276A1 - 发现终端方法、终端、服务器、基站、管理实体及系统 - Google Patents

发现终端方法、终端、服务器、基站、管理实体及系统 Download PDF

Info

Publication number
WO2014187276A1
WO2014187276A1 PCT/CN2014/077654 CN2014077654W WO2014187276A1 WO 2014187276 A1 WO2014187276 A1 WO 2014187276A1 CN 2014077654 W CN2014077654 W CN 2014077654W WO 2014187276 A1 WO2014187276 A1 WO 2014187276A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
request
base station
management entity
discovered
Prior art date
Application number
PCT/CN2014/077654
Other languages
English (en)
French (fr)
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 华为终端有限公司
Priority to EP14801134.9A priority Critical patent/EP2925075A4/en
Priority to EP21209464.3A priority patent/EP4027672A1/en
Priority to EP18166470.7A priority patent/EP3410751B1/en
Publication of WO2014187276A1 publication Critical patent/WO2014187276A1/zh
Priority to US14/798,805 priority patent/US9838949B2/en
Priority to US15/815,177 priority patent/US10492122B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Definitions

  • the present invention relates to the field of wireless communications, and in particular, to a method for discovering a terminal, a terminal, a server, a base station, a management entity, and a system. Background technique
  • D2D (Device-to-Device) communication is a new technology that allows terminals to communicate directly by multiplexing cell resources under the control of the system. It can increase the spectrum efficiency of the cellular communication system and reduce the terminal transmission. Power, to a certain extent, solves the problem of lack of spectrum resources in wireless communication systems.
  • the discovery of the terminal is the basis for D2D communication.
  • each terminal registers its own unique identity with the network side in advance.
  • the unique identifier of the second terminal is sent to the server; the server sends the service identifier of the second terminal to the first terminal according to the unique identifier of the second terminal.
  • the second terminal triggering the second terminal to broadcast its own service identifier; the first terminal monitors the broadcast including the service identifier, and compares the service identifier of the second terminal with the service identifier in the received broadcast, if the two are consistent, Then, it is confirmed that the terminal corresponding to the broadcast including the service identifier is the second terminal.
  • the first terminal In the existing D2D discovery terminal method, the first terminal must know the unique identity of the second terminal in advance, and can only be used to discover a specific specific terminal, and the application scope is small. Summary of the invention
  • the embodiment of the present invention provides a method for discovering a terminal, a terminal, a server, a base station, a management entity, and a system.
  • the technical solution is as follows:
  • a method for discovering a terminal includes:
  • the first terminal acquires the discovery resource
  • the first terminal is configured to listen to the second message sent by the at least one second terminal according to the discovery resource, where the second message includes the service identifier of the second terminal;
  • the acquiring, by the first terminal, the description information of the second terminal from the server according to the service identifier of the second terminal includes:
  • the first terminal sends the service identifier of the second terminal to the server; or the first terminal sends the service identifier of the second terminal to the management entity, so that the management entity
  • the service identifier of the second terminal is sent to the server;
  • the first terminal receives the description information of the second terminal sent by the server, where the description information of the second terminal is information obtained by the server according to the service identifier of the second terminal; or
  • the terminal receives the description information of the second terminal sent by the management entity, where the description information of the second terminal is information that the server acquires and sends to the management entity according to the service identifier of the second terminal.
  • the method before the first terminal receives the description information of the second terminal sent by the server, or Before the first terminal receives the description information of the second terminal that is sent by the management entity, the method further includes:
  • the first terminal sends the service identifier of the first terminal to the management entity, so that the management entity sends the service identifier of the first terminal to the server, so that the server is in the
  • the service identifier of the first terminal is used to verify that the first terminal has the right to discover the second terminal, and the description information of the second terminal is obtained according to the service identifier of the second terminal.
  • the first terminal acquires a discovery resource, including :
  • the first terminal receives, by the first terminal, the discovery resource that is sent by the base station according to the second request; or, the first terminal receives the discovery resource that is sent by the management entity, where the discovery resource is the base station according to the Sending, by the second request, a discovery resource of the management entity;
  • the discovery resource includes a discovery resource of a serving cell of the first terminal; or, The discovery resource includes a discovery resource of a serving cell of the first terminal and a discovery resource of a cell adjacent to the serving cell.
  • the first terminal by using the first terminal, the discovery resource that is sent by the base station according to the second request, includes: Receiving, by the first terminal, the discovery resource that is sent by the base station by using an RRC message after receiving the second request;
  • the second request is an S1-AP message including a first indication, where the first indication is used to indicate that the base station sends the discovery resource to the first terminal or is used to instruct the base station to obtain the Discovering resources and transmitting the discovery resources to the first terminal.
  • the receiving, by the first terminal, the discovery resource that is sent by the management entity includes:
  • the second request is an S1-AP message that includes a second indication, where the second indication is used to indicate that the base station sends the discovery resource to the management entity or is used to instruct the base station to obtain the discovery.
  • the resource sends the discovery resource to the management entity.
  • the first terminal sends the first request to the management entity, including:
  • the server sends the second request to the base station.
  • the sending, by the first terminal, the first request to the management entity includes:
  • the acquiring, by the first terminal, the discovery resource includes: receiving, by the first terminal, system information sent by the base station;
  • the first terminal parses the discovery resource included in the system information
  • the discovery resource includes a discovery resource of the serving cell of the first terminal, or the discovery resource includes a discovery resource of the serving cell of the first terminal and a discovery resource of a cell adjacent to the serving cell. .
  • the acquiring, by the first terminal, the service identifier of the second terminal according to the second message includes:
  • the predetermined condition includes at least one of the following conditions:
  • the signal strength of the second message is greater than or equal to a predetermined intensity threshold
  • the category of the second terminal included in the second message meets a predetermined category
  • the description of the application included in the second message conforms to a predetermined application description.
  • the method before the first terminal monitors the second message sent by the at least one second terminal according to the discovery resource, the method further includes:
  • a method for discovering a terminal includes:
  • the second terminal sends a second message that includes the service identifier of the second terminal, so that the first terminal acquires the service identifier of the second terminal according to the second message, and according to the service identifier of the second terminal,
  • the server acquires description information of the second terminal.
  • the method before the second terminal sends the second message that includes the service identifier of the second terminal, the method further includes:
  • the second terminal sends, by the second terminal, a third request to the management entity, so that the management entity sends a fourth request to the base station; or, the second terminal sends a fifth request to the server, so that the server sends the third request to the management entity.
  • a request wherein the management entity sends the fourth request to the base station; the second terminal receives the discovered resource sent by the base station; or the second terminal receives the information sent by the management entity Deriving the discovered resource that is sent by the base station to the management entity; the discovered resource is a resource allocated by the base station according to the fourth request;
  • the second terminal sends a second message that includes the service identifier of the second terminal, and includes: Sending, by the second terminal, the second message that includes the service identifier of the second terminal according to the discovered resource.
  • the receiving, by the second terminal, the discovered resource sent by the base station includes:
  • the discovered resource that is sent by the base station by using an RRC message, where the discovered resource is a resource that is allocated by the base station after receiving the fourth request;
  • the fourth request is an S1-AP message including a third indication, where the third indication is used to indicate that the base station allocates the discovered resource, or the third indication is used to indicate that the base station is the The second terminal allocates the discovered resource, or the third indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the second terminal, or the third indication is used to indicate the location The base station allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal.
  • the second terminal receives, by the management entity, the that is sent by the base station to the management entity Resources found, including:
  • the fourth request is an S1-AP message including a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource, or the fourth indication is used to indicate that the base station is the
  • the second terminal allocates the discovered resource, or the fourth indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the management entity, or the fourth indication is used to indicate the
  • the sending, by the second terminal, the third request to the management entity includes:
  • the sending, by the second terminal, the third request to the management entity includes:
  • the second terminal sends a fifth request to the server, so that the server sends the sixth request to the management entity , including:
  • the second terminal sends a fifth request to the server, so that the server sends the sixth request to the management entity , including:
  • the fifth request that includes an identity identifier of the second terminal and an identifier of an application that uses the discovered service in the second terminal, to the management entity, so that the server is in the
  • the identity of the second terminal verifies that the second terminal has the discovered right, and the application has the right to use the discovered function, and sends the sixth request to the management entity.
  • the second terminal sends a fifth request to the server, so that the server sends the sixth request to the management entity So that the base station sends the fourth request, including:
  • the second terminal sends the fifth request including the globally unique temporary identifier GUTI of the second terminal to the server, so that the server sends the sixth request to the management entity according to the GUTI.
  • the second terminal that sends the second message that includes the service identifier of the second terminal includes: After receiving the discovered resource, the second terminal immediately sends the second message; or
  • the second terminal receives the first message sent by the first terminal, and sends the second message according to the first message.
  • a method for discovering a terminal includes: The second terminal sends a third request to the management entity, so that the management entity sends a fourth request to the base station; or the second terminal sends a fifth request to the server, so that the server sends the sixth request to the management entity. So that the management entity sends the fourth request to the base station;
  • the resource is a resource allocated by the base station according to the fourth request.
  • the receiving, by the second terminal, the discovered resource sent by the base station includes:
  • the discovered resource that is sent by the base station by using an RRC message, where the discovered resource is a resource that is allocated by the base station after receiving the fourth request;
  • the fourth request is an S1-AP message including a third indication, where the third indication is used to indicate that the base station allocates the discovered resource, or the third indication is used to indicate that the base station is the The second terminal allocates the discovered resource, or the third indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the second terminal, or the third indication is used to indicate the location The base station allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal.
  • the receiving, by the second terminal, the discovered resource that is sent by the management entity to the management entity includes:
  • the fourth request is an S1-AP message including a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource, or the fourth indication is used to indicate that the base station is the
  • the second terminal allocates the discovered resource, or the fourth indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the management entity, or the fourth indication is used to indicate the
  • the second terminal sends a fifth request to the server, so that the server sends a sixth request to the management entity, so that the base station sends the fourth request, including:
  • the second terminal sends the fifth request including the globally unique temporary identifier GUTI of the second terminal to the server, so that the server sends the sixth request to the management entity according to the GUTI.
  • a fourth aspect provides a method for discovering a terminal, where the method includes:
  • the server receives the service identifier of the second terminal that is sent by the first terminal; the service identifier of the second terminal is sent by the first terminal according to the at least one second terminal, and includes the service identifier of the second terminal.
  • the second message is obtained;
  • the server acquires the description information of the second terminal according to the service identifier of the second terminal; the server provides the obtained description information of the second terminal to the first terminal.
  • the receiving, by the server, the service identifier of the second terminal that is sent by the first terminal the receiving, by the server, the service identifier of the second terminal that is sent by the first terminal,
  • the server receives the service identifier of the second terminal that is sent by the management entity, and the service identifier of the second terminal is a service identifier that is sent by the first terminal to the management entity.
  • the acquiring, by the server, the description information of the second terminal according to the service identifier of the second terminal includes:
  • the server by using the query, the description information of the second terminal that is queried to the first terminal, includes:
  • the method before the server obtains the description information of the second terminal according to the service identifier of the second terminal, the method further includes:
  • the server receives the service identifier of the first terminal that is sent by the first terminal, or the server receives the service identifier of the first terminal that is sent by the management entity, and the service of the first terminal The identifier is sent by the first terminal to the management entity;
  • the server verifies whether the first terminal has a discovery according to the service identifier of the first terminal The authority of the second terminal;
  • the server performs the step of acquiring the description information of the second terminal according to the service identifier of the second terminal.
  • the method before the server receives the service identifier of the second terminal that is sent by the first terminal, the method further includes:
  • the server receives the identity of the first terminal that is sent by the management entity, and the identity of the first terminal is an identifier included in the first request sent by the first terminal to the management entity;
  • the server feeds back to the management entity that the first terminal has an indication of the authority of the discovery terminal, so that the management entity after receiving the indication Sending a second request to the base station;
  • the first request is used to request to acquire a discovery resource
  • the second request is used to request the base station to acquire and send the discovery resource to the first terminal, where the discovery resource is monitored by the first terminal.
  • the resource used in the second message is used to request the base station to acquire and send the discovery resource to the first terminal, where the discovery resource is monitored by the first terminal.
  • the method before the receiving, by the server, the service identifier of the second terminal that is sent by the first terminal, the method further includes:
  • the server receives the identity of the first terminal and the identifier of the application that uses the discovery service in the first terminal, and the identity of the first terminal and the discovery service in the first terminal.
  • the identifier of the application is an identifier included in the first request sent by the first terminal to the management entity;
  • the server verifies whether the first terminal has the right to discover the terminal according to the identity of the first terminal, and verifies whether the application has the use discovery function according to the identifier of the application that uses the discovery service in the first terminal. Permission
  • the server feeds back to the management entity that the first terminal has the right to discover the terminal and the application owns Using an indication of the rights of the discovery function, so that the management entity sends a second request to the base station after receiving the indication;
  • the first request is used to request to acquire a discovery resource
  • the second request is used to request the base station to acquire and send the discovery resource to the first terminal, where the discovery resource is the first terminal.
  • the method before the receiving, by the server, the service identifier of the second terminal that is sent by the first terminal, the method further includes:
  • the server receives the identity of the second terminal that is sent by the management entity, and the identity of the second terminal is an identifier included in the third request sent by the second terminal to the management entity;
  • the server feeds back to the management entity that the second terminal has the indication of the discovered right, so that the management entity after receiving the indication Sending a fourth request to the base station;
  • the third request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the first The resource used by the second terminal to send the second message.
  • the method before the receiving, by the server, the service identifier of the second terminal that is sent by the first terminal, the method further includes:
  • the server receives an identity of the second terminal sent by the management entity, and an identifier of an application that uses the discovered service in the second terminal, where the identity of the second terminal and the second terminal are used by the second terminal.
  • the identifier of the application of the discovery service is an identifier included in the third request sent by the second terminal to the management entity;
  • the server verifies whether the second terminal has the discovered right according to the identity of the second terminal, and verifies whether the application is found to be used according to the identifier of the application that uses the discovered service in the second terminal.
  • Functional authority
  • the server feeds back to the management entity that the second terminal has the discovered right and the application Having an indication of the right to use the discovered function, so that the management entity sends a fourth request to the base station after receiving the indication;
  • the third request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the first The resource used by the second terminal to send the second message.
  • the server receives the sending of the first terminal Before the service identifier of the second terminal, the method further includes:
  • the fifth request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the first The resource used by the second terminal to send the second message.
  • the fifth request includes a global unique temporary identifier GUTI of the second terminal;
  • the server sends the sixth request to the management entity according to the GUTI.
  • the fifth request includes an identity identifier of the second terminal; Before sending the sixth request, it also includes:
  • the server performs the step of sending the sixth request to the management entity.
  • the fifth request includes the identity identifier of the second terminal and the second terminal The identifier of the application of the discovered service; before the server sends the sixth request to the management entity, the method further includes:
  • the server verifies whether the second terminal has the discovered right according to the identity of the second terminal, and verifies whether the application is found to be used according to the identifier of the application that uses the discovered service in the second terminal.
  • Functional authority
  • the server performs the step of sending the sixth request to the management entity.
  • a fifth aspect provides a method for discovering a terminal, where the method includes:
  • the fifth request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the first The resource used by the second terminal to send the second message.
  • the fifth request includes a globally unique temporary identifier GUTI of the second terminal;
  • the server sends the sixth request to the management entity according to the GUTI.
  • a method for discovering a terminal includes:
  • the base station provides the discovery resource to the first terminal, so that the first terminal monitors the second message sent by the at least one second terminal according to the discovery resource.
  • the sending, by the base station, the discovery resource to the first terminal includes:
  • the base station acquires the discovery resource
  • the base station sends the discovery resource to the first terminal; or the base station sends the discovery resource to the management entity, so that the management entity sends the discovery resource to the first terminal .
  • the receiving, by the base station, the second request sent by the management entity includes:
  • an S1-AP message sent by the management entity receives, by the base station, an S1-AP message sent by the management entity, where the S1-AP message includes a first indication, where the first indication is used to indicate that the base station sends the discovery resource to the first terminal Or for indicating that the base station acquires and sends the discovery resource to the first terminal;
  • the sending, by the base station, the discovery resource to the first terminal includes:
  • the base station sends the discovery resource to the first terminal by using an RRC message.
  • the receiving, by the base station, the second request sent by the management entity includes:
  • the base station receives, by the base station, an S1-AP message sent by the management entity, where the S1-AP message includes a second indication, where the second indication is used to indicate that the base station sends the discovery resource to the management entity or Instructing the base station to acquire the discovery resource and send the discovery resource to the management entity; the base station sends the discovery resource to the management entity, so that the management entity sends the discovery resource to The first terminal includes: The base station sends the discovery resource to the management entity by using a container, so that the management entity sends the discovery resource to the first terminal by using a non-access stratum message.
  • the performing, by the base station, the discovery resource to the first terminal includes:
  • the base station acquires the discovery resource
  • the base station sends system information including the discovery resource in a cell in which the first terminal is located.
  • the acquiring, by the base station, the discovery resource includes:
  • the base station locally queries the discovery resource of the current serving cell of the first terminal;
  • the base station locally queries the discovery resource of the current serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell;
  • the base station locally queries the discovery resource of the current serving cell of the first terminal, and queries the neighboring base station for the discovery resource of the cell adjacent to the serving cell by using the X2 interface.
  • the method further includes:
  • the base station allocates the discovered resource to the second terminal according to the fourth request, where the discovered resource is a resource used by the second terminal to send the second message;
  • the base station sends the discovered resource to the second terminal; or, the base station sends the discovered resource to the management entity, so that the management entity sends the discovered resource to the The second terminal.
  • the receiving, by the base station, the fourth request sent by the management entity includes:
  • an S1-AP message sent by the management entity where the S1-AP message includes a third indication, where the third indication is used to indicate that the base station allocates the discovered resource, or the third The indication is used to indicate that the base station allocates the discovered resource to the second terminal, or the third indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the second terminal, or The third indication is used to indicate that the base station allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal;
  • the sending, by the base station, the discovered resource to the second terminal includes:
  • the base station sends the discovered resource to the second terminal by using an RRC message.
  • the receiving, by the base station, the fourth request sent by the management entity includes:
  • an S1-AP message sent by the management entity where the S1-AP message includes a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource, or the fourth The indication is used to indicate that the base station allocates the discovered resource to the second terminal, or the fourth indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the management entity, or The fourth indication is used to indicate that the base station allocates a discovered resource to the second terminal and sends the discovered resource to the management entity;
  • the base station sends the discovered resource to the management entity by using a container, so that the management entity sends the discovered resource to the second terminal by using a non-access stratum message.
  • a seventh aspect provides a method for discovering a terminal, where the method includes:
  • the base station allocates the discovered resource to the second terminal according to the fourth request, where the discovered resource is a resource used by the second terminal to send the second message;
  • the base station sends the discovered resource to the second terminal; or, the base station sends the discovered resource to the management entity, so that the management entity sends the discovered resource to the The second terminal.
  • the receiving, by the base station, the fourth request sent by the management entity includes:
  • an S1-AP message sent by the management entity where the S1-AP message includes a third indication, where the third indication is used to indicate that the base station allocates the discovered resource, or the third The indication is used to indicate that the base station allocates the discovered resource to the second terminal, or the third indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the second terminal, or The third indication is used to indicate that the base station allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal;
  • the sending, by the base station, the discovered resource to the second terminal includes:
  • the base station sends the discovered resource to the second terminal by using an RRC message.
  • the receiving, by the base station, the fourth request sent by the management entity includes: Receiving, by the base station, an S1-AP message sent by the management entity, where the S1-AP message includes a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource, or the fourth The indication is used to indicate that the base station allocates the discovered resource to the second terminal, or the fourth indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the management entity, or The fourth indication is used to indicate that the base station allocates a discovered resource to the second terminal and sends the discovered resource to the management entity;
  • the base station sends the discovered resource to the management entity by using a container, so that the management entity sends the discovered resource to the second terminal by using a non-access stratum message.
  • a method for discovering a terminal includes:
  • the management entity receives the service identifier of the second terminal that is sent by the first terminal, and the service identifier of the second terminal is sent by the first terminal according to the at least one second terminal and includes the service identifier of the second terminal. Obtained by the second message;
  • the management entity sends the service identifier of the second terminal to the server, so that the server acquires and sends the description information of the second terminal to the first terminal according to the service identifier of the second terminal;
  • the management entity sends the service identifier of the second terminal to the server, receives the description information of the second terminal sent by the server, and sends the description information of the second terminal to the The first terminal, the description information of the second terminal is obtained by the server according to the service identifier of the second terminal.
  • the method before the management entity receives the service identifier of the second terminal that is sent by the first terminal, the method further includes:
  • the management entity sends a second request to the base station, so that the base station sends a discovery resource to the first terminal according to the second request; or the management entity sends a second request to the base station, and receives the base station according to the The discovery resource sent by the second request, and sending the discovery resource to the first terminal;
  • the discovery resource is a resource used by the first terminal to listen to the second message.
  • the management entity sends a second request to the base station, so that the base station sends the second request according to the second request
  • the first terminal sends the discovery resource, including:
  • the management entity sends an S1-AP message to the base station, where the S1-AP message includes a first indication, where the first indication is used to indicate that the base station sends the discovery resource to the first terminal or And the instructing the base station to acquire and send the discovery resource to the first terminal, so that the base station sends the discovery resource to the first terminal by using an RRC message.
  • the management entity sends a second request to the base station, and receives the discovery that the base station sends according to the second request And sending the discovery resource to the first terminal, including:
  • the management entity sends an S1-AP message to the base station, where the S1-AP message includes a second indication, where the second indication is used to indicate that the base station sends the discovery resource to the management entity. Instructing the base station to acquire the discovery resource and send the discovery resource to the management entity;
  • the management entity receives the discovery resource sent by the base station through a container
  • the management entity sends the discovery resource to the first terminal by using a non-access stratum message.
  • the first request includes an identity identifier of the first terminal, and the management entity sends a Before the second request, the method further includes:
  • the management entity sends the identity of the first terminal to the server, so that the server verifies whether the first terminal has the right to discover the terminal according to the identity of the first terminal;
  • the management entity sends a second request to the base station, including:
  • the management entity sends the second request to the base station after receiving the indication that the first terminal fed back by the server has the right to discover the terminal.
  • the first request includes an identifier of the first terminal, and a usage found in the first terminal
  • the identifier of the application of the service before the management entity sends the second request to the base station, the method further includes:
  • the management entity sends an identifier of the first terminal and an identifier of an application that uses the discovery service in the first terminal to the server, so that the server is configured according to the identity of the first terminal and the first
  • the identifier of the application that uses the discovery service in a terminal verifies whether the first terminal has a hair
  • the management entity sends a second request to the base station, including:
  • the management entity sends the second request to the base station after receiving the authority that the first terminal has the discovery terminal and the application has the authority to use the discovery function.
  • the method before the receiving, by the management entity, the identifier of the second terminal that is sent by the first terminal, the method further includes:
  • the management entity receives the third request sent by the second terminal; or the management entity receives the sixth request sent by the server;
  • the management entity sends a fourth request to the base station, so that the base station allocates and sends the discovered resource to the second terminal according to the fourth request; or the management entity sends a fourth request to the base station, and Receiving, by the base station, the discovered resource that is allocated and sent according to the fourth request, and sending the discovered resource to the second terminal;
  • the discovered resource is a resource used when the second terminal sends the second message.
  • the management entity sends a fourth request to the base station, so that the base station allocates a destination according to the fourth request
  • the first terminal sends the discovered resource, including:
  • the management entity sends an S1-AP message to the base station, where the S1-AP message includes a third indication, where the third indication is used to indicate that the base station allocates the discovered resource, or the third indication Instructing the base station to allocate the discovered resource to the second terminal, or the third indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the second terminal, or The third indication is used to indicate that the base station allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal, so that the base station sends the discovered resource to the RRC message by using the RRC message.
  • the second terminal is used to indicate that the base station allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal, so that the base station sends the discovered resource to the RRC message by using the RRC message.
  • the management entity sends a fourth request to the base station, and receives, by the base station, the fourth request according to the fourth request And sending the discovered resource, and sending the discovered resource to the second terminal
  • the method includes: the management entity sends an S1-AP message to the base station, where the S1-AP message includes a fourth indication
  • the fourth indication is used to indicate that the base station allocates the discovered resource, or the fourth indication Instructing the base station to allocate the discovered resource to the second terminal, or the fourth indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the management entity, or
  • the fourth indication is used to indicate that the base station allocates the discovered resource to the second terminal and sends the discovered resource to the management entity;
  • the management entity receives the discovered resource sent by the base station through a container
  • the management entity sends the discovered resource to the second terminal by using a non-access stratum message.
  • the third request includes an identity identifier of the second terminal, where the management entity sends the identity to the base station Before the fourth request, the method further includes:
  • the management entity sends a fourth request to the base station, including:
  • the management entity sends the fourth request to the base station after receiving the indication that the second terminal fed back by the server has the discovered right.
  • the third request includes an identity identifier of the second terminal and a used identifier in the second terminal The identifier of the application of the service is found; before the management entity sends the fourth request to the base station, the method further includes:
  • the management entity sends a fourth request to the base station, including:
  • the management entity sends a fourth request to the base station after receiving the indication that the second terminal fed back by the server has the discovered right, and the application has an indication of the right to use the discovered function.
  • the method further includes: The management entity receives the service identifier of the first terminal that is sent by the first terminal, and the management entity sends the service identifier of the first terminal to the server, so that the server is according to the After the first terminal has the right to discover the second terminal, the first terminal has the description information of the second terminal according to the service identifier of the second terminal.
  • a ninth aspect provides a method for discovering a terminal, where the method includes:
  • the management entity receives the third request sent by the second terminal; or the management entity receives the sixth request sent by the server;
  • the management entity sends a fourth request to the base station, so that the base station allocates and sends the discovered resource to the second terminal according to the fourth request; or the management entity sends a fourth request to the base station, and Receiving, by the base station, the discovered resource that is allocated and sent according to the fourth request, and sending the discovered resource to the second terminal;
  • the discovered resource is a resource used when the second terminal sends the second message.
  • the management entity sends a fourth request to the base station, so that the base station allocates and sends the discovered resource to the first terminal according to the fourth request, including: The management entity sends an S1-AP message to the base station, where the S1-AP message includes a third indication, where the third indication is used to indicate that the base station allocates the discovered resource, or Instructing the base station to allocate the discovered resource to the second terminal, or the third indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the second terminal, or The third indication is used to indicate that the base station allocates the discovered resource to the second terminal, and sends the discovered resource to the second terminal, so that the base station sends the discovered resource to the location by using an RRC message. Said second terminal.
  • the management entity sends a fourth request to the base station, and receives the discovered resource that is allocated and sent by the base station according to the fourth request, and the The discovery resource is sent to the second terminal, including:
  • the management entity sends an S1-AP message to the base station, where the S1-AP message includes a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource, or the fourth indication Instructing the base station to allocate the discovered resource to the second terminal, or the fourth indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the management entity, or The fourth indication is used to indicate that the base station allocates the discovered resource to the second terminal and sends the discovered resource to the management entity;
  • the management entity receives the discovered resource sent by the base station through a container;
  • the management entity sends the discovered resource to the second terminal by using a non-access stratum message.
  • a tenth aspect a first terminal is provided, where the first terminal includes:
  • a resource acquisition module configured to acquire a discovery resource
  • a message monitoring module configured to: listen to the second message sent by the second terminal according to the discovery resource that is obtained by the discovery resource acquisition module, where the second message includes the service identifier of the second terminal;
  • a service identifier obtaining module configured to obtain a service identifier of the second terminal according to the second message that is monitored by the message monitoring module;
  • the description information obtaining module is configured to acquire the description information of the second terminal from the server according to the service identifier of the second terminal acquired by the service identifier obtaining module.
  • the description information acquiring module includes: a first identifier sending unit, configured to send a service identifier of the second terminal to the server; And sending, to the management entity, the service identifier of the second terminal, so that the management entity sends the service identifier of the second terminal to the server;
  • a first information receiving unit configured to receive description information of the second terminal that is sent by the server, where the description information of the second terminal is information that is acquired and sent by the server according to the service identifier of the second terminal;
  • a second information receiving unit configured to receive, by the management entity, description information of the second terminal, where the description information of the second terminal is obtained by the server according to the service identifier of the second terminal, and sent to the server Information about the management entity.
  • the first terminal further includes:
  • a first identifier sending module configured to receive, by the first information receiving unit, description information of the second terminal that is sent by the server, or the second information receiving unit receives the first information that is sent by the management entity
  • the service identifier of the first terminal is sent to the server, so that the server verifies that the first terminal has discovered the second terminal according to the service identifier of the first terminal.
  • the description information of the second terminal is obtained according to the service identifier of the second terminal;
  • a second identifier sending module configured to receive, by the first information receiving unit, description information of the second terminal that is sent by the server, or the second information receiving unit receives the first information that is sent by the management entity Before the description information of the second terminal, send the service identifier of the first terminal to the tube An entity, so that the management entity sends the service identifier of the first terminal to the server, so that the server verifies that the first terminal owns the second terminal according to the service identifier of the first terminal After the privilege, the description information of the second terminal is obtained according to the service identifier of the second terminal.
  • the discovery resource acquisition module includes: a first request sending unit, configured to send a first request to a management entity, so that the management entity sends a second request to the base station Request
  • a first discovery resource receiving unit configured to receive the discovery resource that is sent by the base station according to the second request
  • a second discovery resource receiving unit configured to receive the discovery resource that is sent by the management entity, where the discovery resource is a discovery resource that is sent by the base station to the management entity according to the second request, where the discovery
  • the resource includes a discovery resource of the serving cell of the first terminal; or the discovery resource includes a discovery resource of a serving cell of the first terminal and a discovery resource of a cell adjacent to the serving cell.
  • the first discovery resource receiving unit is configured to receive the discovery resource that is sent by the base station by using an RRC message
  • the discovery resource is a discovery resource that is sent by the base station after receiving the second request, where the second request is an S1-AP message that includes a first indication, where the first indication is used to indicate the
  • the base station sends the discovery resource to the first terminal or is used to instruct the base station to acquire and send the discovery resource to the first terminal.
  • the second discovery resource receiving unit is configured to receive, by using the non-access layer message, the management entity a discovery resource, where the discovery resource is a discovery resource that is sent by the base station to the management entity after receiving the second request;
  • the second request is an S1-AP message that includes a second indication, where the second indication is used to indicate that the base station sends the discovery resource to the first terminal or is used to instruct the base station to obtain the Discovering resources and transmitting the discovery resources to the management entity.
  • the first request sending unit is configured to send, to the management entity, an identity that includes the first terminal Identifying the first request, so that the management entity sends the identity of the first terminal to the server, and the first terminal is verified by the server according to the identity of the first terminal When the terminal has the right to discover the terminal, the second request is sent to the base station.
  • the first request sending unit is configured to send, to the management entity, an identity that includes the first terminal Identifying the first request of the identifier of the application that uses the discovery service in the first terminal, so that the management entity identifies the identity of the first terminal and the identifier of the application that uses the discovery service in the first terminal Sending to the server, and verifying, by the server, that the first terminal has the right to discover the terminal according to the identity of the first terminal and the identifier of the application that uses the discovery service in the first terminal, and the application owns When the right to discover the function is used, the second request is sent to the base station.
  • the discovery resource acquisition module includes: a system information receiving unit, configured to receive system information sent by the base station;
  • a discovery resource parsing unit configured to parse the discovery resource included in the system information received by the system information receiving unit
  • the discovery resource includes a discovery resource of the serving cell of the first terminal, or the discovery resource includes a discovery resource of the serving cell of the first terminal and a discovery resource of a cell adjacent to the serving cell. .
  • the service identifier obtaining module is configured to obtain, as the service identifier of the second terminal, the service identifier that meets the predetermined condition in the second message that is monitored;
  • the predetermined condition includes at least one of the following conditions:
  • the signal strength of the second message is greater than or equal to a predetermined intensity threshold
  • the category of the second terminal included in the second message meets a predetermined category
  • the description of the application included in the second message conforms to a predetermined application description.
  • the first terminal further includes:
  • a first message sending module configured to send a first message, after the message listening module listens to the second message sent by the at least one second terminal, according to the discovery resource, so that the second terminal receives the first message After the message, the second message is sent according to the first message.
  • a second terminal where the second terminal includes:
  • a second message sending module configured to send a second message that includes the service identifier of the second terminal, so that the first terminal acquires the service identifier of the second terminal according to the second message, and according to the second The service identifier of the terminal acquires the description information of the second terminal from the server.
  • the second terminal further includes: a first request sending module, configured to send a third request to the management entity, before the second message sending module sends the second message that includes the service identifier of the second terminal, so that the management entity sends the Four requests;
  • a second request sending module configured to send a fifth request to the server, before the second message sending module sends the second message that includes the service identifier of the second terminal, so that the server sends the server to the management entity a sixth request, wherein the management entity sends the fourth request to the base station;
  • the first discovered resource receiving module is configured to receive the discovered resource sent by the base station; and the discovered resource is the base station according to the The resource allocated by the fourth request;
  • a second discovered resource receiving module configured to receive, by the management entity, the discovered resource that is sent by the base station to the management entity, where the discovered resource is the base station according to the fourth request Allocated resources;
  • the second message sending module is configured to send, according to the discovered resource received by the first discovered resource receiving module or the second discovered resource receiving module, the second message that includes the service identifier Message.
  • the first discovered resource receiving module is configured to receive, by the base station, the RRC message a discovered resource, where the discovered resource is a resource allocated by the base station after receiving the fourth request;
  • the fourth request is an S1-AP message including a third indication, where the third indication is used to indicate that the base station allocates the discovered resource, or the third indication is used to indicate that the base station is the The second terminal allocates the discovered resource, or the third indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the second terminal, or the third indication is used to indicate the location The base station allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal.
  • the second discovered resource receiving module is configured to receive the management entity by using a non-access stratum message
  • the discovered resource is a discovered resource that is sent by the base station to the management entity by using the container after receiving the fourth request;
  • the fourth request is an S1-AP message including a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource, or the fourth indication is used to indicate that the base station is the The second terminal allocates the discovered resource, or the fourth indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the management entity, or the fourth indication is used to indicate the With the first possible implementation manner of the eleventh aspect, in a fourth possible implementation manner of the eleventh aspect, the first request sending module, configured to send, to the management entity, the second terminal The third request of the identity identifier, so that the management entity sends the identity identifier of the second terminal to the server, and the second terminal is verified by the server according to the identity identifier of the second terminal When having the discovered authority, the fourth request is sent to the base station.
  • the first request sending module configured to send, to the management entity, the second terminal And the third request in the second terminal that uses an identifier of the application of the discovered service, so that the management entity uses the identity of the second terminal and the discovered service in the second terminal
  • the identifier of the application is sent to the server, and the server verifies that the second terminal has the discovered right according to the identity of the second terminal and the identifier of the application that uses the discovered service in the second terminal.
  • the application sends the fourth request to the base station when the application has the right to use the discovered function.
  • the second request sending module is configured to send, to the server, the second terminal And the fifth request of the identity, so that the server sends the sixth request to the management entity when verifying that the second terminal has the discovered right according to the identity of the second terminal.
  • the second request sending module configured to send, to the management entity, the second terminal And the fifth request in the second terminal that uses an identifier of the application of the discovered service, so that the server verifies that the second terminal has the discovered right according to the identity of the second terminal.
  • the application sends the sixth request to the management entity when the application has the right to use the discovered function.
  • the second request sending module is configured to send, to the server, a global The fifth request uniquely identifying the GUTI, so that the server sends the sixth request to the management entity according to the GUTI.
  • the second message sending module includes:
  • a first message sending unit configured to: in the first discovered resource receiving module or the second After the resource receiving module receives the discovered resource, the second message is sent; the first message receiving unit is configured to receive the first message sent by the first terminal;
  • a second message sending unit configured to send the second message according to the first message received by the first message receiving unit.
  • a second terminal where the second terminal includes:
  • a first request sending module configured to send a third request to the management entity, so that the management entity sends a fourth request to the base station;
  • a second request sending module configured to send a fifth request to the server, so that the server sends a sixth request to the management entity, so that the management entity sends the fourth request to the base station;
  • a receiving module configured to receive the discovered resource sent by the base station; the discovered resource is a resource allocated by the base station according to the fourth request;
  • a second discovered resource receiving module configured to receive, by the management entity, the discovered resource that is sent by the base station to the management entity, where the discovered resource is the base station according to the fourth request Allocated resources.
  • the first discovered resource receiving module is configured to receive the discovered resource that is sent by the base station by using an RRC message, where the discovered resource is the base station a resource allocated after receiving the fourth request;
  • the fourth request is an S1-AP message including a third indication, where the third indication is used to indicate that the base station allocates the discovered resource, or the third indication is used to indicate that the base station is the The second terminal allocates the discovered resource, or the third indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the second terminal, or the third indication is used to indicate the location The base station allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal.
  • the second discovered resource receiving module is configured to receive the discovered resource that is sent by the management entity by using a non-access stratum message, where the discovered resource is After the base station receives the fourth request, the discovered resource sent by the container to the management entity;
  • the fourth request is an S1-AP message including a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource, or the fourth indication is used to indicate that the base station is the The second terminal allocates the discovered resource, or the fourth indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the management entity, or the fourth indication is used to indicate the
  • the second request sending module is configured to send, to the server, the fifth request that includes the global unique temporary identifier GUTI of the second terminal, so that The server sends the sixth request to the management entity according to the GUTI.
  • a server comprising:
  • a first identifier receiving module configured to receive a service identifier of the second terminal that is sent by the first terminal, where the service identifier of the second terminal is sent by the first terminal according to the at least one second terminal, Obtaining the second message of the service identifier of the second terminal;
  • An information acquiring module configured to acquire, according to the service identifier of the second terminal received by the first identifier receiving module, description information of the second terminal;
  • an information providing module configured to provide, to the first terminal, description information of the second terminal acquired by the information acquiring module.
  • the first identifier receiving module includes: a first identifier receiving unit, configured to receive, by the first terminal, a service identifier of the second terminal;
  • the second identifier receiving unit is configured to receive a service identifier of the second terminal that is sent by the management entity, where the service identifier of the second terminal is a service identifier that is sent by the first terminal to the management entity.
  • the information acquiring module includes: a first querying unit, configured to locally query, by the second terminal, description information of the second terminal corresponding to the service identifier of the second terminal ;
  • a second querying unit configured to acquire, according to the service identifier of the second terminal, the description information of the second terminal to a home server of the second terminal or a server that provides services for the second terminal.
  • the information providing module includes: a first information sending unit, configured to send description information of the second terminal acquired by the information acquiring module to the First terminal;
  • a second information sending unit configured to send the description information of the second terminal acquired by the information acquiring module to the management entity, so that the management entity sends the description information of the second terminal to the first terminal.
  • the server further includes:
  • a second identifier receiving module configured to receive, before the information acquiring module acquires the description information of the second terminal corresponding to the service identifier of the second terminal, the first The service identifier of the terminal;
  • a third identifier receiving module configured to receive, by the management entity, the service of the first terminal, before the information acquiring module acquires the description information of the second terminal corresponding to the service identifier of the second terminal Identifying that the service identifier of the first terminal is sent by the first terminal to the management entity;
  • a first verification module configured to verify, according to the service identifier of the first terminal that is received by the second identifier receiving module or the third identifier receiving module, whether the first terminal has the right to discover the second terminal;
  • the information obtaining module is configured to: if the first verification result of the first verification module is that the first terminal has the right to discover the second terminal, perform the performing according to the service identifier of the second terminal, The step of describing information of the second terminal.
  • the server further includes:
  • a fourth identifier receiving module configured to receive, before the first identifier receiving module receives the service identifier of the second terminal that is sent by the first terminal, the identity identifier of the first terminal that is sent by the management entity, where the first The identity of the terminal is an identifier included in the first request sent by the first terminal to the management entity;
  • a second verification module configured to verify, according to the identity of the first terminal, whether the first terminal has the right to discover the terminal
  • a first indication feedback module configured to: if the verification result of the second verification module is that the first terminal has the right to discover the terminal, return an instruction to the management entity that the first terminal has the right to discover the terminal, So that the management entity sends a second request to the base station after receiving the indication;
  • the first request is used to request to acquire a discovery resource
  • the second request is used to request the base station to acquire and send the discovery resource to the first terminal, where the discovery resource is monitored by the first terminal.
  • the resource used in the second message is used to request the base station to acquire and send the discovery resource to the first terminal, where the discovery resource is monitored by the first terminal.
  • the server further includes:
  • a fifth identifier receiving module configured to receive, before the first identifier receiving module receives the service identifier of the second terminal that is sent by the first terminal, the identifier of the first terminal and the first
  • the identifier of the application that uses the discovery service in the terminal, the identifier of the first terminal, and the identifier of the application that uses the discovery service in the first terminal are the first request that is sent by the first terminal to the management entity.
  • the logo In the logo;
  • a third verification module configured to verify, according to the identity of the first terminal, whether the first terminal is Have the authority to discover the terminal;
  • a fourth verification module configured to verify, according to the identifier of the application that uses the discovery service in the first terminal, whether the application has the right to use the discovery function
  • a second indication feedback module configured to: if the verification result of the third verification module is that the first terminal has the right to discover the terminal, and the verification result of the fourth verification module is that the application has the right to use the discovery function Transmitting, to the management entity, the first terminal has the right to discover the terminal, and the application has an indication of the right to use the discovery function, so that the management entity sends a second request to the base station after receiving the indication;
  • the first request is used to request to acquire a discovery resource
  • the second request is used to request the base station to acquire and send the discovery resource to the first terminal, where the discovery resource is monitored by the first terminal.
  • the resource used in the second message is used to request the base station to acquire and send the discovery resource to the first terminal, where the discovery resource is monitored by the first terminal.
  • the server further includes:
  • a sixth identifier receiving module configured to receive, before the first identifier receiving module receives the service identifier of the second terminal that is sent by the first terminal, the identity identifier of the second terminal that is sent by the management entity, the second The identity of the terminal is an identifier included in a third request sent by the second terminal to the management entity;
  • a fifth verification module configured to verify, according to the identity of the second terminal, whether the second terminal has the discovered right
  • a third indication feedback module configured to: if the verification result of the fifth verification module is that the second terminal has the discovered right, return an instruction to the management entity that the second terminal has the discovered right, So that the management entity sends a fourth request to the base station after receiving the indication;
  • the third request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the first The resource used by the second terminal to send the second message.
  • the server further includes:
  • a seventh identifier receiving module configured to receive, after the first identifier receiving module receives the service identifier of the second terminal that is sent by the first terminal, the identity identifier of the second terminal and the second
  • the identifier of the application that uses the discovered service in the terminal, the identifier of the second terminal, and the identifier of the application that uses the discovered service in the second terminal are included in the second terminal and sent to the management entity.
  • a sixth verification module configured to verify, according to the identity of the second terminal, whether the second terminal is Have the right to be discovered;
  • a seventh verification module configured to verify, according to the identifier of the application that uses the discovered service in the second terminal, whether the application has the right to use the discovered function
  • a fourth indication feedback module configured to: if the verification result of the sixth verification module is that the first terminal has the discovered right, and the verification result of the seventh verification module is that the application has the function of using the discovered function Authorizing, the policy returns to the management entity that the second terminal has the discovered right and the application has an indication of the right to use the discovered function, so that the management entity sends the fourth to the base station after receiving the indication Request
  • the third request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the first The resource used by the second terminal to send the second message.
  • the server further includes:
  • the first request receiving module is configured to receive, after the first identifier receiving module receives the service identifier of the second terminal that is sent by the first terminal, the fifth request sent by the second terminal;
  • a third request sending module configured to send a sixth request to the management entity, so that the management entity sends a fourth request to the base station;
  • the fifth request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the first The resource used by the second terminal to send the second message.
  • the fifth request includes a global unique temporary identifier GUTI of the second terminal;
  • the third request sending module is configured to send the sixth request to the management entity according to the global unique temporary identifier GUTI.
  • the fifth request includes an identity identifier of the second terminal, and the server further includes:
  • An eighth verification module configured to verify, according to the identity of the second terminal, whether the second terminal has the discovered right, before the third request sending module sends the sixth request to the management entity; And a request sending module, configured to perform the step of sending the sixth request to the management entity if the verification result of the eighth verification module is that the second terminal has the discovered right.
  • the fifth request includes an identity of the second terminal and an identifier of an application that uses the discovered service in the second terminal; Also includes:
  • a ninth verification module configured to verify, according to the identity of the second terminal, whether the second terminal has the discovered right, before the third request sending module sends the sixth request to the management entity; Before the third request sending module sends the sixth request to the management entity, verifying, according to the identifier of the application that uses the discovered service in the second terminal, whether the application has the right to use the discovered function;
  • the third request sending module is configured to: if the verification result of the ninth verification module is that the first terminal has the discovered right, and the verification result of the tenth verification module is that the application possession is found The permission of the function, the step of sending the sixth request to the management entity is performed.
  • a server comprising:
  • a first request receiving module configured to receive a fifth request sent by the second terminal
  • a third request sending module configured to send a sixth request to the management entity, so that the management entity sends a fourth request to the base station;
  • the fifth request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the first The resource used by the second terminal to send the second message.
  • the fifth request includes a global unique temporary identifier GUTI of the second terminal;
  • the third request sending module is configured to send the sixth request to the management entity according to the global unique temporary identifier GUTI.
  • a base station where the base station includes:
  • a resource providing module configured to provide a discovery resource to the first terminal, so that the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource.
  • the discovery resource providing module includes: a first request receiving unit, configured to receive a second request sent by the management entity;
  • a first acquiring unit configured to acquire the discovery resource
  • a first discovery resource sending unit configured to send the discovery resource acquired by the first acquiring unit to the first terminal
  • a second discovery resource sending unit configured to send the discovery resource acquired by the first acquiring unit to the management entity, so that the management entity sends the discovery resource to the first terminal.
  • the first request receiving unit is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a first indication, where the first indication is used to indicate that the base station is The first terminal sends the discovery resource or is used to instruct the base station to acquire and send the discovery resource to the first terminal;
  • the first discovery resource sending unit is configured to send the discovery resource to the first terminal by using an RRC message.
  • the first request receiving unit is configured to receive an S1-AP message sent by the management entity, where
  • the S1-AP message includes a second indication, where the second indication is used to indicate that the base station sends the discovery resource to the management entity or is used to instruct the base station to acquire the discovery resource and to the management The entity sends the discovery resource;
  • the second discovery resource sending unit is configured to send the discovery resource to the management entity by using a container, so that the management entity sends the discovery resource to the first terminal by using a non-access stratum message.
  • the discovery resource providing module includes: a second obtaining unit, configured to acquire the discovery resource;
  • a system information sending unit configured to send, in the cell where the first terminal is located, system information that includes the discovery resource acquired by the second acquiring unit.
  • the first acquiring unit includes:
  • a first query subunit configured to locally query a discovery resource of a current serving cell of the first terminal
  • a second query subunit configured to locally query a discovery resource of a current serving cell of the first terminal, and compare with the serving cell Discovery resources of neighboring cells
  • a third query subunit configured to locally query a discovery resource of a current serving cell of the first terminal, and query, by using an X2 interface, a neighboring base station, a discovery resource of a cell adjacent to the serving cell;
  • the second obtaining unit includes:
  • a fourth query subunit configured to locally query the discovery resource of the current serving cell of the first terminal
  • a fifth query subunit configured to locally query the discovery resource of the current serving cell of the first terminal, and compare with the serving cell Discovery resources of neighboring cells
  • a sixth query subunit configured to locally query, for the discovery resource of the current serving cell of the first terminal, And querying the neighboring base station for the discovery resource of the cell adjacent to the serving cell by using the X2 interface.
  • the base station further includes:
  • a second request receiving module configured to receive a fourth request sent by the management entity
  • a discovered resource allocation module configured to allocate a discovered resource to the second terminal according to the fourth request received by the second request receiving module, where the discovered resource sends the second message to the second terminal Resources used at the time;
  • a first discovered resource sending module configured to send the discovered resource allocated by the discovered resource allocation module to the second terminal
  • a second discovered resource sending module configured to send the discovered resource allocated by the discovered resource allocation module to the management entity, so that the management entity sends the discovered resource to the second terminal.
  • the second request receiving module is configured to receive an S1-AP message sent by the management entity, where
  • the S1-AP message includes a third indication, where the third indication is used to indicate that the base station allocates the discovered resource, or the third indication is used to indicate that the base station allocates the discovered to the second terminal.
  • a resource or the third indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the second terminal, or the third indication is used to indicate that the base station is the The second terminal allocates the discovered resource and sends the discovered resource to the second terminal;
  • the first discovered resource sending module is configured to send the discovered resource to the second terminal by using an RRC message.
  • the second request receiving module is configured to receive an S1-AP message sent by the management entity, where
  • the S1-AP message includes a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource, or the fourth indication is used to indicate that the base station allocates the discovered second terminal.
  • the second discovered resource sending module is configured to send, by the container, the discovered resource to the management entity, so that the management entity sends the discovered resource to the first part by using a non-access stratum message Two terminals.
  • a base station configured to include: a second request receiving module, configured to receive a fourth request sent by the management entity;
  • a discovered resource allocation module configured to allocate a discovered resource to the second terminal according to the fourth request received by the second request receiving module, where the discovered resource sends the second message to the second terminal Resources used at the time;
  • a first discovered resource sending module configured to send the discovered resource allocated by the discovered resource allocation module to the second terminal
  • a second discovered resource sending module configured to send the discovered resource allocated by the discovered resource allocation module to the management entity, so that the management entity sends the discovered resource to the second terminal.
  • the first request receiving module is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a third indication, where The third indication is used to indicate that the base station allocates the discovered resource, or the third indication is used to indicate that the base station allocates the discovered resource to the second terminal, or the third indication is used to indicate the location.
  • the base station allocates the discovered resource and sends the discovered resource to the second terminal, or the third indication is used to instruct the base station to allocate the discovered resource to the second terminal and to the second terminal. Sending the discovered resource;
  • the first discovered resource sending module is configured to send the discovered resource to the second terminal by using an RRC message.
  • the first request receiving module is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a fourth indication, where The fourth indication is used to indicate that the base station allocates the discovered resource, or the fourth indication is used to indicate that the base station allocates the discovered resource to the second terminal, or the fourth indication is used to indicate the location.
  • the base station allocates the discovered resource and sends the discovered resource to the management entity, or the fourth indication is used to indicate that the base station allocates the discovered resource to the second terminal and sends the discovered resource to the management entity.
  • Said discovered resources are used to indicate that the base station allocates the discovered resource to the second terminal and sends the discovered resource to the management entity.
  • the second discovered resource sending module is configured to send the discovered resource to the management entity by using a container, so that the management entity sends the discovered resource to the second by using a non-access stratum message terminal.
  • a management entity includes:
  • the eighth identifier receiving module is configured to receive, by the first terminal, a service identifier of the second terminal, where the service identifier of the second terminal is sent by the first terminal according to the at least one second terminal, and includes Obtaining a second message of the service identifier of the second terminal;
  • a third identifier sending module configured to send, by the server, the service identifier of the second terminal received by the eighth identifier receiving module, to the server, so that the server obtains and reports to the server according to the service identifier of the second terminal Transmitting, by the terminal, description information of the second terminal;
  • a fourth identifier sending module configured to send the service identifier of the second terminal received by the eighth identifier receiving module to the server;
  • a third information receiving module configured to receive, by the server, description information of the second terminal
  • a third information sending module configured to send the description information of the second terminal to the first terminal, where the description information of the second terminal is sent by the server according to the second terminal sent by the fourth identifier sending module The business identity is obtained.
  • the management entity further includes:
  • a second request receiving module configured to receive, by the eighth identifier receiving module, a first request sent by the first terminal before receiving the service identifier of the second terminal that is sent by the first terminal;
  • a second request sending module configured to send a second request to the base station, so that the base station sends the discovery resource to the first terminal according to the second request;
  • a third request sending module configured to send a second request to the base station
  • a resource receiving module configured to receive a discovery resource sent by the second request sent by the sending module of the base station
  • a discovery resource sending module configured to send the discovery resource received by the discovery resource receiving module to the first terminal
  • the discovery resource is a resource used by the first terminal to listen to the second message.
  • the second request sending module is configured to send an S1-AP message to the base station, where the S1 The first message is used to indicate that the base station sends the discovery resource to the first terminal or is used to instruct the base station to acquire and send the to the first terminal. Discovering resources, so that the base station sends the discovery resource to the first terminal by using an RRC message.
  • the third request sending module is configured to send an S1-AP message to the base station, where the S1 The second message is included in the -AP message, where the second indication is used to indicate that the base station sends the discovery resource to the management entity or is used to instruct the base station to acquire the discovery resource and send the discovery resource to the management entity.
  • Place Discovery resources ;
  • the discovery resource receiving module is configured to receive the discovery resource that is sent by the base station by using a container, and the discovery resource sending module is configured to send the discovery resource to the first terminal by using a non-access stratum message.
  • the management entity further includes:
  • a fifth identifier sending module configured to send the identity identifier of the first terminal to the server before the second request sending module sends a second request to the base station, so that the server is configured according to the first terminal
  • the identity verification verifies whether the first terminal has the right to discover the terminal
  • a first indication receiving module configured to receive an indication that the first terminal fed back by the server has the right to discover the terminal
  • the second request sending module is configured to send the second request to the base station after the first indication receiving module receives the indication that the first terminal fed back by the server has the right to discover the terminal;
  • the first request includes an identity identifier of the first terminal.
  • the management entity further includes:
  • a sixth identifier sending module configured to send the identifier of the first terminal and the identifier of the application that uses the discovery service in the first terminal to the second request sending module to send a second request to the base station Determining, by the server, that the server verifies whether the first terminal has the right to discover the terminal and whether the application has a usage discovery according to the identity of the first terminal and the identifier of the application that uses the discovery service in the first terminal.
  • a second indication receiving module configured to receive, by the server, the first terminal that has the right to discover the terminal, and the application has an indication of the right to use the discovery function
  • the second request sending module is configured to: after the second indication receiving module receives the right that the first terminal has the discovery terminal, and the application has an indication of the right to use the discovery function, Sending the second request to the base station;
  • the first request includes an identity of the first terminal and an identifier of an application that uses the discovery service in the first terminal.
  • the management entity further includes:
  • a third request receiving module configured to receive, by the eighth identifier receiving module, the first terminal, Receiving, by the second terminal, a third request sent by the second terminal;
  • a fourth request sending module configured to send a fourth request to the base station, so that the base station allocates and sends the discovered resource to the second terminal according to the fourth request;
  • a fifth request sending module configured to send a fourth request to the base station
  • a third discovered resource receiving module configured to receive a discovered resource that is allocated and sent by the base station according to the fourth request sent by the fifth request sending module;
  • a third discovered resource sending module configured to send the discovered resource received by the third discovered resource receiving module to the second terminal
  • the discovered resource is a resource used when the second terminal sends the second message.
  • the fourth request sending module is configured to send an S1-AP message to the base station, where the S1 The AP message includes a third indication, where the third indication is the discovered resource allocation indication, or the third indication is used to indicate that the base station allocates the discovered resource to the second terminal, or The third indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the second terminal, or the third indication is used to instruct the base station to allocate the discovered resource to the second terminal. And sending the discovered resource to the second terminal, so that the base station sends the discovered resource to the second terminal by using an RRC message.
  • the fifth request sending module is configured to send an S1-AP message to the base station, where the S1-AP message includes a fourth indication, where the fourth indication is a discovered resource allocation indication, or the The fourth indication is used to indicate that the base station allocates the discovered resource to the second terminal, or the fourth indication is used to indicate that the base station allocates the discovered resource and sends the discovered resource to the management entity, or The fourth indication is used to instruct the base station to allocate the discovered resource to the second terminal, and send the discovered resource to the management entity;
  • the third discovered resource receiving module is configured to receive the discovered resource that is sent by the base station by using a container
  • the third discovered resource sending module is configured to send the discovered resource to the second terminal by using a non-access stratum message.
  • the management entity further includes: a seventh identifier sending module, configured to send, after the fourth request sending module sends a fourth request to the base station, the identity of the second terminal to the server, so that the server is configured according to the second terminal The identity verification verifies whether the second terminal has the discovered permission;
  • a third indication receiving module configured to receive an indication that the second terminal fed back by the server has the discovered right
  • the fourth request sending module is configured to: after the third indication receiving module receives the indication that the second terminal fed back by the server has the discovered right, send the fourth request to the base station;
  • the third request includes an identity of the second terminal.
  • the management entity further includes:
  • an eighth identifier sending module configured to: before the fourth request sending module sends the fourth request to the base station, send the identifier of the second terminal and the identifier of the application that uses the discovered service in the second terminal to The server, so that the server verifies whether the second terminal has the discovered right and whether the application has the user according to the identity of the second terminal and the identifier of the application that uses the discovered service in the second terminal. Use the permissions of the discovered feature;
  • a fourth indication receiving module configured to receive, by the server, the second terminal having the discovered right, and the application has an indication of the right to use the discovered function
  • the fourth request sending module is configured to: after the fourth indication receiving module receives the second terminal that is fed back by the server, having the discovered right, and the application has an indication of the right to use the discovered function, Sending a fourth request to the base station;
  • the third request includes an identity of the second terminal and an identifier of an application that uses the discovered service in the second terminal.
  • the management entity further includes: a ninth identifier receiving module, configured to receive, by the first terminal, a service identifier of the first terminal;
  • a ninth identifier sending module configured to send the service identifier of the first terminal received by the ninth identifier receiving module to the server, so that the server verifies that the first terminal owns according to the service identifier of the first terminal After the privilege of the second terminal is found, the description information of the second terminal is obtained according to the service identifier of the second terminal.
  • a management entity includes:
  • a third request receiving module configured to receive a third request sent by the second terminal
  • a fourth request sending module configured to send a fourth request to the base station, so that the base station allocates and sends the discovered resource to the second terminal according to the fourth request
  • a fifth request sending module configured to send a fourth request to the base station
  • a third discovered resource receiving module configured to receive a discovered resource that is allocated and sent by the base station according to the fourth request sent by the fifth request sending module;
  • a third discovered resource sending module configured to send the discovered resource received by the third discovered resource receiving module to the second terminal
  • the discovered resource is a resource used when the second terminal sends the second message.
  • the fourth request sending module is configured to send an S1-AP message to the base station, where the S1-AP message includes a third indication, where the The third indication is the discovered resource allocation indication, or the third indication is used to indicate that the base station allocates the discovered resource to the second terminal, or the third indication is used to indicate that the base station allocates the discovered resource. And sending the discovered resource to the second terminal, or the third indication is used to indicate that the base station allocates the discovered resource to the second terminal, and sends the discovered resource to the second terminal. So that the base station sends the discovered resource to the second terminal by using an RRC message.
  • the fifth request sending module is configured to send an S1-AP message to the base station, where the S1-AP message includes a fourth indication, where the The fourth indication is the discovered resource allocation indication, or the fourth indication is used to indicate that the base station allocates the discovered resource to the second terminal, or the fourth indication is used to indicate that the base station allocates the discovered resource. And sending the discovered resource to the management entity, or the fourth indication is used to indicate that the third discovered resource receiving module of the base station is configured to receive the discovered that is sent by the base station by using a container.
  • the third discovered resource sending module is configured to send the discovered resource to the second terminal by using a non-access stratum message.
  • a discovery terminal system comprising: the first terminal according to the above tenth aspect, at least one second terminal according to the eleventh aspect, such as The server according to the above aspect, the base station according to the fifteenth aspect, and the management entity according to the seventeenth aspect.
  • Obtaining a discovery resource, and monitoring, according to the discovery resource, at least one second terminal sends, includes The message of the service identifier of the second terminal is obtained, and the identifier of the second terminal is obtained.
  • the description information of the second terminal is obtained from the server according to the identifier of the second terminal, and the first terminal in the prior art must be known in advance.
  • the problem of the unique identity of the terminal is to achieve the purpose of discovering the terminal with unknown identity within a certain range and extending the scope of application.
  • FIG. 1 is a flowchart of a method for transmitting a terminal according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for transmitting a terminal according to another embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for a method for transmitting a terminal according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for a method for transmitting a terminal according to another embodiment of the present invention.
  • FIG. 5 is a flowchart of a method for sending a terminal according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for transmitting a terminal according to another embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for a method for transmitting a terminal according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for a method for transmitting a terminal according to another embodiment of the present invention.
  • FIG. 9 is a flowchart of a method for sending a terminal according to an embodiment of the present invention.
  • FIG. 10 is a flowchart of a method for sending a terminal according to another embodiment of the present invention.
  • FIG. 11 is a flowchart of a method for a method for transmitting a terminal according to an embodiment of the present invention.
  • FIG. 12 is a flowchart of a method for transmitting a terminal according to another embodiment of the present invention.
  • FIG. 13 is a flowchart of a method for a method for transmitting a terminal according to an embodiment of the present invention.
  • FIG. 14 is a flowchart of a method for a method for transmitting a terminal according to another embodiment of the present invention.
  • FIG. 15 is a flowchart of a method for transmitting a terminal according to an embodiment of the present invention.
  • 16 is a flowchart of a method for a method for transmitting a terminal according to another embodiment of the present invention.
  • 17 is a flowchart of a method for a method for transmitting a terminal according to an embodiment of the present invention.
  • FIG. 18 is a flowchart of a method for a method for transmitting a terminal according to another embodiment of the present invention.
  • FIG. 19 is a flowchart of a method for a method for transmitting a terminal according to an embodiment of the present invention.
  • FIG. 20 is a flowchart of a method for obtaining a service identifier according to an embodiment of the present invention
  • FIG. 21 is a flowchart of a method for acquiring a discovered resource according to an embodiment of the present invention
  • Figure 22 is a flowchart of a method for obtaining a resource discovery process according to an embodiment of the present invention
  • Figure 23 is a device configuration diagram of a first terminal according to an embodiment of the present invention
  • Figure 24 is a first embodiment of the present invention.
  • Figure 25 is a device configuration diagram of a first terminal according to an embodiment of the present invention
  • Figure 26 is a device configuration diagram of a first terminal according to another embodiment of the present invention;
  • FIG. 28 is a device configuration diagram of a second terminal according to another embodiment of the present invention
  • FIG. 29 is a device configuration diagram of a second terminal according to an embodiment of the present invention
  • FIG. 31 is a device configuration diagram of a second terminal according to another embodiment of the present invention
  • FIG. 32 is a device configuration diagram of a second terminal according to another embodiment of the present invention
  • FIG. 33 is a structural diagram of a device of a server according to an embodiment of the present invention.
  • FIG. 34 is a structural diagram of a device of a server according to another embodiment of the present invention.
  • 35 is a device configuration diagram of a server according to an embodiment of the present invention.
  • 36 is a structural diagram of a device of a server according to another embodiment of the present invention.
  • FIG. 37 is a device configuration diagram of a server according to an embodiment of the present invention.
  • FIG. 38 is a structural diagram of a device of a server according to another embodiment of the present invention.
  • 39 is a device configuration diagram of a base station according to an embodiment of the present invention.
  • FIG. 40 is a device configuration diagram of a base station according to another embodiment of the present invention.
  • FIG. 41 is a structural diagram of a device of a base station according to an embodiment of the present invention.
  • FIG. 43 is a device configuration diagram of a base station according to an embodiment of the present invention.
  • FIG. 44 is a structural diagram of a device of a base station according to another embodiment of the present invention.
  • FIG. 45 is a device configuration diagram of a management entity according to an embodiment of the present invention
  • FIG. 47 is a device configuration diagram of a management entity according to another embodiment of the present invention
  • FIG. 47 is a device configuration of a management entity according to an embodiment of the present invention
  • Figure 48 is a device configuration diagram of a management entity according to another embodiment of the present invention
  • Figure 49 is a device configuration diagram of a management entity according to an embodiment of the present invention
  • Figure 50 is a management entity according to another embodiment of the present invention.
  • FIG. 51 is a system configuration diagram of a terminal discovery system according to an embodiment of the present invention. detailed description
  • the discovery terminal method can be applied to discover a second terminal in a first terminal of a D2D system.
  • the method for discovering a terminal can include:
  • Step 102 The first terminal acquires a discovery resource.
  • Step 104 The first terminal listens to the second message sent by the at least one second terminal according to the discovery resource, where the second message includes the service identifier of the second terminal.
  • Step 106 The first terminal acquires a service identifier of the second terminal according to the second message.
  • the identifier of the second terminal may be an identifier of one or more second terminals.
  • Step 108 The first terminal acquires description information of the second terminal from the server according to the service identifier of the second terminal.
  • the method for discovering a terminal acquires a discovery resource, and listens to a message that is sent by at least one second terminal and includes a service identifier of the second terminal according to the discovery resource, and obtains the second terminal. And obtaining the description information of the second terminal from the server according to the identifier of the second terminal, which solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can find the identity within a certain range around the identifier. Identify unknown terminals and extend the scope of the application.
  • FIG. 2 is a flowchart of a method for discovering a terminal according to another embodiment of the present invention.
  • the discovery terminal method can be applied to discover a second terminal in a first terminal of a D2D system.
  • the method for discovering a terminal may include: Step 202: The first terminal acquires a discovery resource;
  • the first terminal may send a first request to the management entity, where the first request is used to request to acquire a discovery resource (a discovery resource or a radio resource or a monitoring resource or a discovery radio resource or a monitoring radio resource), where the discovery resource is used for
  • the first terminal knows how to monitor the second terminal.
  • the management entity sends a second request to the base station.
  • the second request is used to indicate that the base station sends the discovery resource to the first terminal, and the first terminal can directly receive the discovery resource that is sent by the base station according to the second request.
  • the first terminal receives the base station through RRC (adio Resource Control). ) message, such as RRC Connection
  • RRC resource Control
  • the second request may be an S1-AP (Application Protocol Application Protocol) message that includes the first indication.
  • S1-AP Application Protocol Application Protocol
  • the base station After receiving the S1-AP message, the base station sends the discovery resource to the first terminal by using an RRC message.
  • the first indication is used to indicate that the base station sends the discovery resource to the first terminal or is used to instruct the base station to acquire and send the discovery resource to the first terminal.
  • the second request is used to indicate that the base station sends the discovery resource to the management entity
  • the first terminal may receive the discovery resource that is sent by the management entity to the management entity according to the second request, for example, the first terminal may receive The discovery resource sent by the management entity through the non-access stratum NAS (Non-Access Stratum non-access stratum) message.
  • the second request may be an S1-AP message including a second indication.
  • the base station After receiving the S1-AP message, the base station sends the discovery resource to the management entity through a container, and the management entity includes the discovery through the NAS message.
  • the container of the resource is sent to the first terminal.
  • the second indication is used to indicate that the base station sends the discovery resource to the management entity or is used to instruct the base station to acquire and send the discovery resource to the management entity, and specifically, the discovery resource sending indication.
  • the first terminal may also receive system information sent by the base station, and parse the discovery resource included in the system information.
  • the discovery resource includes a discovery resource of a serving cell of the first terminal; or the discovery resource includes a discovery resource of the serving cell of the first terminal and a discovery resource of a cell adjacent to the serving cell.
  • the discovery resource includes information such as a frequency band and/or a time point and/or an encoding mode used by the second terminal to transmit the second message in a cell.
  • the identifier of the first terminal may be included in the first request, where the identity identifier may be a phone number of the first terminal;
  • the device identifier of the first terminal; or the identity identifier may be an identifier that is allocated by the server to the first terminal; or the identity identifier may be a service identifier of the first terminal; or the identity identifier may be a provisioning In the terminal, an identifier for discovery and discovery.
  • the management entity sends the identity of the first terminal to the server, and the server verifies whether the first terminal has the right to discover the terminal according to the identity of the first terminal, and the management entity detects when the first terminal has the right to discover the terminal. , sending a second request to the base station.
  • the first request may further include an identifier of the first terminal and an identifier (Application ID) of an application that uses the discovery service in the first terminal, where the management entity
  • Application ID an identifier of an application that uses the discovery service in the first terminal
  • the management entity The identity of the first terminal and the identifier of the application that uses the discovery service in the first terminal Sending to the server, the server verifies whether the first terminal has the right to discover the terminal according to the identity and the application identifier of the first terminal, and whether the application has the right to use the discovery function, and the management entity verifies the result in the server as the first
  • the terminal has the right to discover the terminal, and when the application has the right to use the discovery function, sends a second request to the base station.
  • Step 204 The first terminal listens to the second message sent by the at least one second terminal according to the discovery resource.
  • the first terminal may listen to the discovered message or the announcing message sent by the second terminal in a broadcast manner according to the discovery resource; the second message includes the service identifier of the second terminal.
  • the service identifier of the second terminal may be a combination of one or more of the following: D2D code, expression code, Announcing Code, identifier of the second terminal, and application identifier.
  • the service identifier of the second terminal may be the identifier of the second terminal plus the indication code or the service identifier of the second terminal may be the identifier of the second terminal plus the application identifier or the service identifier of the second terminal may be the identifier of the second terminal plus The application identifier plus the representation code.
  • the service identity can be used to identify the second terminal on the wireless channel.
  • the server can be a D2D server or a ProSe (Proximity Services) server or a PDCF (Proximity Discovery and Communication Function).
  • the server can assign a service identifier to the second terminal.
  • the system may include only one server for providing services for all of the first terminal and the second terminal.
  • the system may also include multiple servers, which are respectively servers to which the first terminal and the second terminal belong, or servers respectively serving the first terminal or the second terminal.
  • the first terminal and the second terminal respectively obtain service identifiers from respective home servers or servers currently providing services.
  • the first terminal may listen to the second message sent by the second terminal according to information such as a frequency band, a time point, or an encoding manner in the discovery resource.
  • the first terminal may trigger the second terminal in a certain range to send the second message, for example, the first terminal may send the first message (for example, a discovery broadcast message or a trigger message, etc.), so that the second terminal After receiving the first message, the terminal sends the second message according to the first message.
  • the resource used by the first terminal to send the first message may also be obtained from the base station in a manner similar to the step 202, and details are not described herein again.
  • the first terminal may include, in the first message, description information of the terminal that is to be discovered, for example, a category of the terminal that is desired to be discovered (such as a person, a restaurant, a store, etc.), or an application used by the terminal that is desired to be discovered.
  • the identity of the terminal such as QQ, Weibo, Skype, etc.
  • the way in which the terminal that you want to discover is restricted (for example, everyone can find it, only certain people are allowed to discover it); so that the second terminal that matches the description information is sent and found. Information, while other terminals do not send.
  • the solution provided by the embodiment of the present invention monitors the second message according to the obtained discovery resource, and does not need to listen to the broadcast message except the frequency band or the time point included in the discovery resource, thereby reducing the terminal load and saving the terminal power.
  • Step 206 The first terminal acquires the service identifier of the second terminal according to the intercepted second message.
  • the first terminal may perform the service identifier that meets the predetermined condition in the second message sent by the at least one second terminal that is monitored. After filtering, obtaining the service identifier of the at least one second terminal, where the predetermined condition includes at least one of the following conditions: the signal strength of the second message is greater than or equal to a predetermined strength threshold; or, the second message includes The category of the second terminal conforms to the predetermined category; or the description of the application included in the second message conforms to the description of the predetermined application.
  • the first terminal filters the intercepted second message, and obtains a service identifier of the at least one second terminal that meets the predetermined requirement. For example, the service identifier in the second message whose signal strength is greater than or equal to a certain threshold is obtained as the service identifier of the second terminal; or, if the second message including the service identifier includes the second message corresponding terminal a category (such as an individual, a restaurant, a store, etc.); or, if the second message containing the service identifier includes a description of the application corresponding to the second message, the description of the application includes the name of the application (eg, QQ, Skype) , WeChat, etc.), or application ID (Application ID), or application category (such as instant messaging class, VoIP class, streaming media class, etc.). Then obtain the service identifier corresponding to the predetermined category.
  • the service identifier in the second message whose signal strength is greater than or equal to a certain threshold is obtained as the service identifier of the second terminal; or
  • Step 208 The first terminal acquires the description information of the second terminal from the server according to the service identifier of the second terminal.
  • the first terminal may send the obtained service identifier of the second terminal to the server, or send the service identifier of the second terminal to the management entity, such as an MME (Mobile Management Entity), by the management entity. Sending the service identifier of the second terminal to the server.
  • the first terminal may directly send the service identifier of the second terminal to the server, or send the service identifier of the second terminal to the server in the form of a service identifier array or a list of service identifiers (list).
  • the first terminal may receive the description information of the second terminal that is sent by the server and corresponding to the service identifier of the second terminal, where the description information of the second terminal is obtained by the server according to the service identifier of the second terminal and sent to the first terminal.
  • the first terminal may also receive, sent by the management entity, The description information of the second terminal corresponding to the service identifier of the second terminal, and the description information of the second terminal is obtained by the server according to the service identifier of the second terminal and sent to the management entity.
  • the method for the server to obtain the description information of the second terminal according to the service identifier of the second terminal may be: the server queries the service identifier of the second terminal according to the correspondence between the service identifier and the description information of each terminal that is stored by the server. Corresponding to the stored description information of the second terminal.
  • the server providing the service for the first terminal may be based on the service identifier of the second terminal.
  • the home server of the second terminal or the server currently serving the second terminal queries the description information of the second terminal. For example, the server obtains the server to which the second terminal belongs or is the second terminal according to the service identifier of the second terminal.
  • a server that provides a service sends a service identifier of the second terminal to a server to which the second terminal belongs or a server that provides a service to the second terminal, where the server to which the second terminal belongs or the server that provides the second terminal according to the first
  • the service identifier of the second terminal is obtained and fed back to the server.
  • the description information of the second terminal includes one or more of the following combinations: a name of the second terminal, an identity of the second terminal, a phone number of the second terminal, a temporary identifier of the second terminal, and an application.
  • Information such as an Application ID, an application user identifier (for example, a QQ account, a Weibo account, a Skype account, etc.), so that the user of the first terminal can accurately identify the second terminal that needs to establish D2D communication.
  • the first terminal may also send its own service identifier to the server.
  • the first terminal may directly send its own service identifier to the server through the IP layer channel, so that the server verifies the first according to the service identifier of the first terminal.
  • the description information of the second terminal is obtained and transmitted according to the service identifier of the second terminal.
  • the first terminal may send the service identifier of the first terminal to the management entity, and the management entity sends the service identifier of the first terminal to the server, so that the server verifies that the first terminal has the discovery according to the service identifier of the first terminal.
  • the description information of the second terminal is obtained and transmitted according to the service identifier of the second terminal.
  • the second terminal may set the discovery permission in advance.
  • the second terminal corresponding to one of the service identifiers of the plurality of second terminals sent by the first terminal is preset only Can be discovered by friends.
  • the first terminal sends the second terminal to the management entity And the service identifier is sent to the server, and if the server verifies that the first terminal is not a friend of the second terminal according to the service identifier of the first terminal, verifying that the first terminal does not have permission to discover the second
  • the terminal does not send the description information of the second terminal to the first terminal.
  • the method for discovering a terminal acquires a discovery resource, and listens to a message that is sent by at least one second terminal and includes a service identifier of the second terminal according to the discovery resource, and obtains the second terminal.
  • the identifier is obtained, and the description information of the second terminal is obtained from the server according to the identifier of the second terminal, which solves the problem that the first terminal must know the unique identifier of the second terminal in advance in the prior art, and the identity of the surrounding area can be found.
  • the method for identifying an unknown terminal and extending the scope of the application further, the method for discovering the terminal provided by the embodiment of the present invention, by monitoring the second message sent by the second terminal according to the obtained discovery resource, reduces the burden on the terminal, and saves the power of the terminal.
  • the method for discovering the terminal provided by the embodiment of the present invention sends the service identifier of the first terminal to the management entity, so that the server verifies, according to the service identifier of the first terminal, whether the first terminal has the discovery of the second terminal. Permission, to achieve targeted protection second The purpose of the end of privacy.
  • FIG. 3 a flow chart of a method for discovering a terminal provided by an embodiment of the present invention is shown.
  • the discovery terminal method can be applied to the second terminal of the D2D system.
  • the discovery terminal method can include:
  • Step 302 The second terminal sends a second message that includes the service identifier of the second terminal, so that the first terminal acquires the service identifier of the second terminal according to the second message, and uses the service identifier of the second terminal from the server. Obtaining description information of the second terminal.
  • the second terminal sends a second message including the service identifier of the second terminal, so that the first terminal acquires the description of the second terminal from the server according to the identifier of the second terminal.
  • the information solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can achieve the purpose of discovering the terminal with unknown identity in a certain range and expanding the application scope.
  • FIG. 4 is a flowchart of a method for discovering a terminal according to another embodiment of the present invention.
  • the discovery terminal method can be applied to the second terminal of the D2D system.
  • the discovery terminal method can include:
  • Step 402 The second terminal acquires a service identifier of the second terminal.
  • the second terminal may request the server to allocate a service identifier, or Request a service ID to the server.
  • the server sends the service identifier assigned to the second terminal to the second terminal, or sends the second identifier to the second terminal.
  • the second terminal may further send the description information of the second terminal to the management entity, so that the server stores the description information of the second terminal and the service identifier allocated to the second terminal.
  • the second terminal sends the description information of the second terminal to the management entity, so that the management entity sends the description information of the second terminal to the server, so that the server allocates the description information of the second terminal to the second terminal.
  • the business identity corresponds to the store.
  • the second terminal may obtain the service identifier from the server to which the second terminal belongs or the server currently serving the second terminal.
  • Step 404 The second terminal acquires the discovered resource.
  • the second terminal may send a third request to the management entity, where the third request is used to request to acquire the discovered resource (a discovered resource or a radio resource or an announcing resource or a discovered radio resource or an announcing radio resource), where the discovered resource,
  • the second terminal performs broadcast, so that the first terminal can listen to the second terminal.
  • the management entity may send a fourth request to the base station according to the third request.
  • the second terminal may send a fifth request to the server, and after receiving the fifth request, the server sends a sixth request to the management entity.
  • the management entity may send a fourth request to the base station according to the sixth request.
  • the fourth request is used to instruct the base station to allocate the discovered resource to the second terminal.
  • the second terminal may directly receive the discovered resource sent by the base station.
  • the second terminal may receive the discovered resource sent by the base station by using an RRC message, where the discovered resource is a resource that is sent by the base station after receiving the fourth request.
  • the fourth request may be an S1-AP message including a third indication.
  • the base station After receiving the S1-AP message, the base station sends the discovered resource to the second terminal by using an RRC message.
  • the third indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource or allocates the discovered resource to the second terminal, and sends the discovered resource to the second terminal or allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal.
  • the discovered resource may be specifically a discovered resource allocation indication or a discovered resource sending indication.
  • the fourth request is used to indicate that the base station allocates the discovered resource to the second terminal, and sends the discovered resource to the management entity, where the second terminal can receive the discovered resource that is sent by the management entity and sent by the base station to the management entity.
  • the discovered resource is a resource allocated by the base station according to the fourth request. Receiving, by the management entity, the discovered resource that is sent by the non-access stratum NAS message, where the discovered resource is the discovered resource that is sent by the base station to the management entity after receiving the fourth request by the base station;
  • the fourth request may be an S1-AP message including a fourth indication.
  • the base station After receiving the S1-AP message, the base station sends the discovered resource to the management entity by using the container, and the management entity sends the container to the second terminal by using the NAS message. .
  • the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource to the second terminal or allocates the discovered resource and sends the discovered resource to the management entity or allocates the discovered resource to the second terminal and sends the discovered resource to the management entity.
  • the resource may be specifically a discovered resource allocation indication or a discovered resource sending indication.
  • the third entity that includes the identity of the second terminal may be sent to the management entity, where the identity identifier may be the phone number of the second terminal; or, the identity
  • the identifier may be the device identifier of the second terminal; or the identifier may be the identifier assigned by the server to the second terminal; or the identifier may be the service identifier of the second terminal; or the identifier may also be It is an identifier that is pre-configured in the terminal for discovery and discovery.
  • the management entity sends the identity of the second terminal to the server, and the server verifies whether the second terminal has the discovered right according to the identity of the second terminal, and the management entity detects that the second terminal has the discovered right when the server verifies that the second terminal has the discovered right. Sending a discovery fourth request to the base station.
  • the second terminal sends the third request to the management entity, sending, to the management entity, a third request (Application ID) including the identity of the second terminal and the identifier of the application that uses the discovered service in the second terminal
  • the management entity sends the identity of the second terminal and the identifier of the application to the server, and the server verifies, according to the identity and the application identifier of the second terminal, whether the second terminal has the right discovered by the other terminal, and whether the application has the right.
  • the management entity uses the right of the discovered function
  • the management entity verifies that the second terminal has the right to be discovered by the other terminal, and the application has the right to use the discovered function
  • the discovery fourth request is sent to the base station.
  • the second request may include the GUTI (Globally Unique Temporary Identity) of the second terminal, and the server sends the sixth to the management entity according to the GUTI.
  • the management entity sends a fourth request to the base station after receiving the sixth request.
  • the fifth request that includes the identity of the second terminal may be sent to the server, so that the server verifies that the second terminal has been discovered according to the identity of the second terminal.
  • permission is granted, a sixth request is sent to the management entity.
  • the fifth request that includes the identity of the second terminal and the identifier of the application that uses the discovered service in the second terminal may be sent to the management entity, so that the server is The identity of the second terminal verifies that the second terminal has the right to be discovered When the application has the right to use the discovered function, the sixth request is sent to the management entity.
  • the discovered resource may include information such as a frequency band, a time point, or an encoding mode of the second terminal to send the second message.
  • Step 406 The second terminal sends a second message that includes the service identifier of the second terminal, according to the discovered resource, so that the first terminal acquires the description information of the second terminal from the server according to the service identifier of the second terminal.
  • the second terminal sends the second message including the service identifier of the second terminal according to the frequency band, the time point or the coding mode in the discovered resource.
  • the second terminal may send the second message immediately after receiving the discovered resource; or the second terminal may send the second message according to the first message after receiving the first message sent by the first terminal. .
  • the first terminal includes, in the first message, description information of the terminal that is to be discovered, for example, a category of the terminal that is desired to be discovered (such as an individual, a restaurant, a store, etc.), or an identifier of an application used by the terminal that is desired to be discovered. (such as QQ, Weibo, Skype, etc.), or the restriction of the terminal that you want to discover (for example, everyone can discover, only allow specific people to discover), then the second terminal first determines whether the description information of the first terminal is The specific conditions are met, and if so, the discovered information is sent. For example, after receiving the first message sent by the first terminal, the second terminal parses, in the description information included in the first message, whether the category of the first terminal is an individual, and if yes, sends the second message in a broadcast manner.
  • description information of the terminal for example, a category of the terminal that is desired to be discovered (such as an individual, a restaurant, a store, etc.), or an identifier of an application used by the
  • the second terminal acquires the discovered resource allocated by the base station, and sends a second message according to the discovered resource, where the base station may allocate different discovered resources for multiple second terminals to reduce Interference when each second terminal sends the second message.
  • the method for discovering a terminal is to send a second message including a service identifier of the second terminal, so that the first terminal acquires the description information of the second terminal from the server according to the identifier of the second terminal.
  • the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance in the prior art is achieved, and the purpose of discovering the terminal with unknown identity in a certain range is extended to extend the scope of application;
  • the discovery terminal method achieves the purpose of reducing interference between terminals by acquiring the discovered resources allocated by the base station and sending the second message according to the obtained discovered resources.
  • FIG. 5 illustrates an embodiment of the present invention.
  • a method flow diagram for discovering a terminal method may be applied to acquire the discovered resource for the second terminal in the second terminal, so that the second terminal sends the second message according to the discovered resource, where the discovery terminal method may include:
  • Step 404a The second terminal sends a third request to the management entity, so that the management entity sends a fourth request to the base station according to the third request.
  • the second terminal sends a fifth request to the server, so that the server sends the sixth request to the management entity.
  • the management entity sends a fourth request to the base station;
  • Step 404b The second terminal receives the discovered resource sent by the base station; or the second terminal receives the discovered resource that is sent by the management entity to the management entity, where the discovered resource is the resource allocated by the base station according to the fourth request. .
  • the method for discovering a terminal is to send a third request to a management entity, so that the management entity sends a fourth request to the base station according to the third request; receiving the discovered resource sent by the base station; or receiving The discovered resource sent by the management entity to the management entity by the base station, so that the second terminal sends the second message according to the discovered resource, so as to reduce the interference between the terminals.
  • FIG. 6 is a flowchart of a method for discovering a terminal according to another embodiment of the present invention.
  • the discovery terminal method may be applied to acquire the discovered resource for the second terminal in the second terminal, so that the second terminal sends the second message according to the discovered resource, where the discovery terminal method may include:
  • Step 404A The second terminal sends a third request to the management entity, so that the management entity sends a fourth request to the base station according to the third request.
  • the second terminal sends a fifth request to the server, so that after the server receives the fifth request, Sending a sixth request to the management entity, so that the management entity may send a fourth request to the base station according to the sixth request.
  • the second terminal may send a third request to the management entity, where the third request is used to request to obtain the discovered resource ( discovered resource or radio resource or announcing resource), where the discovery resource is used for broadcasting by the second terminal, so that The first terminal is caused to listen to the second terminal.
  • the base station may reduce interference when each second terminal sends the second message by allocating different discovered resources to the multiple second terminals.
  • the second request may include the GUTI (Globally Unique Temporary Identity) of the second terminal, and the server sends the sixth message to the management entity according to the GUTI. .
  • the management entity sends a fourth request to the base station.
  • the server may further include the identity of the second terminal, and the server sends the service identifier of the first terminal to the management entity by using the sixth request, where the management entity sends the fourth request to the base station.
  • the base station is configured to allocate the discovered resource to the identity of the second terminal.
  • Step 404B The second terminal receives the discovered resource sent by the base station; or the second terminal receives the discovered resource that is sent by the management entity to the management entity, where the discovered resource is the resource allocated by the base station according to the fourth request. .
  • the fourth request is used to instruct the base station to allocate the discovered resource to the second terminal.
  • the second terminal may directly receive the discovered resource sent by the base station.
  • the second terminal may receive the discovered resource sent by the base station by using the RRC message, where the discovered resource is the resource sent by the base station after receiving the fourth request.
  • the fourth request may be an S1-AP message including a third indication.
  • the base station After receiving the S1-AP message, the base station sends the discovered resource to the second terminal by using an RRC message.
  • the third indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource or allocates the discovered resource to the second terminal, and sends the discovered resource to the second terminal or allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal.
  • the discovered resource may be specifically a discovered resource allocation indication or a discovered resource sending indication.
  • the fourth request is used to indicate that the base station allocates the discovered resource to the second terminal, and sends the discovered resource to the management entity, where the second terminal can receive the discovered resource that is sent by the management entity and sent by the base station to the management entity.
  • the discovered resource is a resource allocated by the base station according to the fourth request.
  • the S1-AP message includes a fourth indication. After receiving the S1-AP message, the base station sends the discovered resource to the management entity by using the container, and the management entity sends the container to the second terminal by using the NAS message.
  • the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource to the second terminal or allocates the discovered resource and sends the discovered resource to the management entity or allocates the discovered resource to the second terminal and sends the discovered resource to the management entity.
  • the resource may be specifically a discovered resource allocation indication or a discovered resource sending indication.
  • the method for discovering a terminal provided by the embodiment of the present invention is to send a third request to a management entity, so that the management entity sends a fourth request to the base station according to the third request; receiving the discovered resource sent by the base station; or receiving The discovered resource sent by the management entity to the management entity by the base station, so that the second terminal sends the second message according to the discovered resource, so as to reduce the interference between the terminals.
  • FIG. 7 shows a method flow of a method for discovering a terminal provided by an embodiment of the present invention.
  • the discovery terminal method can be applied to a server of a D2D system.
  • the discovery terminal method can include:
  • Step 502 The server receives the service identifier of the second terminal that is sent by the first terminal.
  • the service identifier of the second terminal is sent by the first terminal according to the service identifier of the second terminal that is sent by the second terminal.
  • the second message is obtained;
  • Step 504 The server obtains the description information of the second terminal according to the service identifier of the second terminal.
  • Step 506 The server provides the obtained description information of the second terminal to the first terminal.
  • the method for discovering a terminal obtains the description information of the second terminal corresponding to the service identifier of the second terminal by receiving the service identifier of the second terminal that is sent by the first terminal, and provides For the first terminal, the problem that the first terminal must know the unique identity of the second terminal in advance in the prior art is solved, and the purpose of discovering the terminal with unknown identity in a certain range and expanding the application scope is achieved.
  • FIG. 7 please refer to FIG. 8, which is a flowchart of a method for discovering a terminal according to another embodiment of the present invention.
  • the discovery terminal method can be applied to a server of a D2D system.
  • the discovery terminal method can include:
  • Step 602 The server receives a service identifier of the second terminal that is sent by the first terminal.
  • the service identifier of the second terminal is obtained by the first terminal according to the second message that is sent by the at least one second terminal and includes the service identifier of the second terminal.
  • the service identifier is an identifier that is allocated by the server to the second terminal.
  • the server may receive the service identifier of the second terminal sent by the first terminal through the IP layer channel.
  • the server may also receive the service identifier of the second terminal that is sent by the management entity, and the service identifier of the second terminal is sent by the first terminal to the management entity.
  • the server Before receiving the service identifier of the second terminal, the server may further allocate a service identifier to the second terminal, and send the service identifier allocated to the second terminal to the second terminal, or allocate, by the management entity, the second terminal.
  • the service identifier is sent to the second terminal.
  • the server may further receive the description information of the second terminal that is sent by the second terminal; or the server may further receive the description information of the second terminal that is sent by the management entity, and the description information of the second terminal Transmitted by the second terminal to the management entity.
  • the server After the server allocates the service identifier to the second terminal, the server further stores the description information of the second terminal and the description information allocated to the second terminal.
  • Step 604 The server acquires description information of the second terminal corresponding to the service identifier of the at least one second terminal.
  • the server may locally query the description information of the second terminal that is stored corresponding to the service identifier of the second terminal.
  • the D2D system may include multiple servers of the same type. Services are provided for terminals that belong to each other or terminals within a designated cell.
  • the first terminal and the second terminal respectively obtain the service identifiers from the servers that are respectively owned by the server or the server that is currently providing the service; the second terminal directly or the management entity of the second terminal Indirectly sent to the home server of the second terminal or the server currently serving the second terminal, so that the home server of the second terminal or the server currently serving the second terminal allocates the description information of the second terminal to The description information of the second terminal is correspondingly stored; if the server currently serving the first terminal does not store the description information of the second terminal, the server may send the service identifier of the second terminal to the home server of the second terminal. Or the server currently serving the second terminal queries the description information of the second terminal.
  • the server may receive the service identifier of the first terminal that is sent by the first terminal, for example, after receiving the description information of the second terminal corresponding to the identifier of the at least one second terminal, for example, receiving the first terminal to pass The service identifier of the first terminal sent by the IP layer channel; or the server may receive the service identifier of the first terminal sent by the management entity, where the service identifier of the first terminal is sent by the first terminal to the management entity; The service identifier of the first terminal verifies whether the first terminal has the right to discover the second terminal corresponding to the service identifier of the second terminal.
  • the service identifier of the first terminal may be a combination of one or more of the following: D2D code, expression code, identifier of the first terminal, and application identifier.
  • the service identifier of the first terminal may be the identifier of the first terminal plus the indication code or the service identifier of the first terminal may be the identifier of the first terminal plus the application identifier or the service identifier of the first terminal may be the identifier of the first terminal plus The application identifier plus the representation code.
  • the second terminal may set the discovery authority in advance.
  • the second terminal corresponding to one of the identifiers of the plurality of second terminals sent by the first terminal may be preset in advance. Found by friends.
  • the first terminal sends the service identifier of the second terminal to the management entity, and sends the service identifier of the second terminal to the server, if the server is configured according to the first terminal.
  • the service identifier verifies that the first terminal is not a friend of the second terminal, and then the first terminal does not have the right to discover the second terminal, and the server does not send the description information of the second terminal to the first terminal.
  • Step 606 The server provides the obtained description information of the second terminal to the first terminal.
  • the server may send the obtained description information of the second terminal to the first terminal; or the server may send the obtained description information of the second terminal to the management entity, so that the management entity describes the second terminal. Information is sent to the first terminal.
  • the server may send the obtained description information of the second terminal to the first terminal by using an IP layer channel.
  • the server may send the description information of the second terminal to the management entity, so that the management entity describes the second terminal. Send to the first terminal.
  • the first terminal monitors, according to the discovery resource acquired from the base station, the second terminal to send the discovered resource allocated by the base station.
  • the second message When the first terminal acquires the discovery resource and the second terminal acquires the discovered resource, the rights verification is required, as follows:
  • the server may receive the identity of the first terminal sent by the management entity, where the identity of the first terminal is an identifier included in the first request sent by the first terminal to the management entity.
  • the server verifies whether the first terminal has the right to discover the terminal according to the identity of the first terminal; if the verification result is that the first terminal has the right to discover the terminal, the server feeds back to the management entity that the first terminal has the right to discover the terminal.
  • the management entity sends a second request to the base station after receiving the indication, where the first request is used to request to acquire a discovery resource, and the second request is used to request the base station to acquire and send the discovery resource to the first terminal.
  • the discovery resource is a resource used by the first terminal to listen to the second message.
  • the server may receive the identity of the first terminal sent by the management entity, and the identifier of the application that uses the discovery service in the first terminal, the identity of the first terminal, and the first terminal.
  • the identifier of the application that uses the discovery service is the identifier included in the first request sent by the first terminal to the management entity; the server verifies whether the first terminal has the right to discover the terminal according to the identity of the first terminal, and according to the The identifier of the application that uses the discovery service in the first terminal is used to verify whether the application has the right to use the discovery function. If the verification result is that the first terminal has the right to discover the terminal and the application has the right to use the discovery function, the server sends the management entity to the management entity.
  • the first terminal has the right to discover the terminal and the application has an indication of the right to use the discovery function, so that the management entity sends the second request to the base station after receiving the indication; wherein the first request is used to request to acquire the discovery resource, and the second The request is for requesting the base station to acquire and send the discovery to the first terminal Source, find resources for the first The resource used by a terminal to listen to the second message.
  • the server may receive the identity of the second terminal sent by the management entity, where the identity of the second terminal is an identifier included in the third request sent by the second terminal to the management entity; The server verifies whether the second terminal has the discovered right according to the identity of the second terminal; if the verification result is that the second terminal has the discovered right, the server feeds back to the management entity that the second terminal has the discovered right. Instructing the management entity to send a fourth request to the base station after receiving the indication; wherein the third request is used to request to acquire the discovered resource, where the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, The discovered resource is a resource used when the second terminal sends the second message.
  • the server may receive the identity of the second terminal sent by the management entity, and the identifier of the application that uses the discovered service in the second terminal, and the identity of the second terminal and The identifier of the application that uses the discovered service in the second terminal is the identifier included in the third request sent by the second terminal to the management entity; the server verifies whether the second terminal has the discovered right according to the identity of the second terminal, And verifying, according to the identifier of the application that uses the discovered service in the second terminal, whether the application has the right to use the discovered function; if the verification result is that the first terminal has the discovered right and the application has the right to use the discovered function, the server Feeding back to the management entity that the second terminal has the discovered right and the application has an indication of the right to use the discovered function, so that the management entity sends a fourth request to the base station after receiving the indication; wherein the third request is used to request the acquisition Discovering resources, the fourth request is used to request the base station to allocate and to the
  • the server may further receive the fifth request sent by the second terminal. After receiving the fifth request, the server sends a sixth request to the management entity, so that the management entity sends the fourth request to the base station. Request
  • the fifth request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal
  • the discovered resource is the resource used when the second terminal sends the second message.
  • the fifth request may include a globally unique temporary identifier GUTI of the second terminal; the server may send a sixth request to the management entity according to the GUTI.
  • GUTI globally unique temporary identifier
  • the fifth request may further include an identity of the second terminal.
  • the server may verify, according to the identity of the second terminal, whether the second terminal has the discovered permission; The result of the verification is that the second terminal has the discovered permission, and the server executes The step of sending a sixth request to the management entity.
  • the fifth request includes the identity of the second terminal and the identifier of the application that uses the discovered service in the second terminal; before the server sends the sixth request to the management entity, the server may further verify according to the identity of the second terminal. Whether the second terminal has the discovered right, and verifies whether the application has the right to use the discovered function according to the identifier of the application that uses the discovered service in the second terminal; if the verification result is that the first terminal has the discovered right and the application owns Using the rights to the discovered function, the server performs the step of sending a sixth request to the management entity.
  • the method for discovering a terminal obtains the description information of the second terminal corresponding to the service identifier of the second terminal by receiving the service identifier of the second terminal that is sent by the first terminal, and provides The first terminal solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can achieve the purpose of discovering the terminal with unknown identity in a certain range and expanding the application scope;
  • the method for discovering a terminal provided by the embodiment of the present invention is to receive, by the management entity, the service identifier of the first terminal, and verify, according to the service identifier of the first terminal, whether the first terminal has the service in the identifier of the at least one second terminal.
  • the discovery terminal method can be applied to request a second terminal for a discovered resource in a server of the D2D system, so that the second terminal sends the second information according to the discovered resource.
  • the discovery terminal method can include:
  • Step 601a The server receives a fifth request sent by the second terminal.
  • Step 601b the server sends a sixth request to the management entity, so that the management entity sends a fourth request to the base station;
  • the fifth request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is used by the second terminal to send the second message. Resources.
  • the server receives the fifth request sent by the second terminal, and sends a sixth request to the management entity, so that the management entity sends the requesting base station to the base station to allocate to the second
  • the terminal sends a fourth request for the discovered resource, so that the second terminal sends the second message according to the discovered resource allocated by the base station, so as to reduce the interference between the terminals.
  • FIG. 10 is a flowchart of a method for discovering a terminal provided by an embodiment of the present invention.
  • the discovery terminal method can be applied to request a second terminal for a discovered resource in a server of the D2D system, so that the second terminal sends the second information according to the discovered resource.
  • the discovery terminal method can include:
  • Step 601A The server receives a fifth request sent by the second terminal.
  • Step 601B the server sends a sixth request to the management entity, so that the management entity sends a fourth request to the base station;
  • the fifth request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is used by the second terminal to send the second message. Resources.
  • the fifth request includes a global unique temporary identifier GUTI of the second terminal; the server may send a sixth request to the management entity according to the GUTI.
  • GUTI global unique temporary identifier
  • the server receives the fifth request sent by the second terminal, and sends a sixth request to the management entity, so that the management entity sends the requesting base station to the base station to allocate to the second
  • the terminal sends a fourth request for the discovered resource, so that the second terminal sends the second message according to the discovered resource allocated by the base station, so as to reduce the interference between the terminals.
  • FIG. 11 a flow chart of a method for discovering a terminal provided by an embodiment of the present invention is shown.
  • the discovery terminal method can be applied to a base station of a D2D system.
  • the method for discovering the terminal may include: Step 702: The base station provides the discovery resource to the first terminal, so that the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource.
  • the first terminal may acquire the service identifier of the at least one second terminal according to the second message sent by the at least one second terminal, and obtain the description information of the second terminal according to the service identifier of the at least one second terminal. .
  • the method for discovering a terminal provides a discovery resource to the first terminal, so that the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource, and according to the second
  • the message acquires the service identifier of the second terminal, and obtains the description information of the second terminal according to the service identifier of the second terminal, which solves the problem that the first terminal must know the unique identity of the second terminal in advance in the prior art.
  • FIG. 12 is a flowchart of a method for discovering a terminal according to another embodiment of the present invention.
  • the discovery terminal method can be applied to a base station of a D2D system.
  • the discovery terminal method can include:
  • Step 802 The base station allocates the discovered resource to the second terminal, so that the second terminal sends the discovered information including the service identifier of the second terminal according to the discovered resource.
  • the base station may receive a fourth request sent by the management entity, where the fourth request is sent by the management entity according to the third request sent by the second terminal or sent by the management entity according to the sixth request sent by the server;
  • the fourth request allocates the discovered resource to the second terminal, where the discovered resource is a resource used when the second terminal sends the second message.
  • the base station can directly send the discovered resource to the second terminal.
  • the fourth request may be an S1-AP message that includes a third indication.
  • the base station After receiving the S1-AP message sent by the management entity, the base station allocates the discovered resource to the second terminal, and sends the discovered resource by using the RRC message. Give the second terminal.
  • the third indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource or allocates the discovered resource to the second terminal, and sends the discovered resource to the second terminal or allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal.
  • the discovered resource may be specifically a discovered resource allocation indication or a discovered resource sending indication.
  • the base station sends the discovered resource to the management entity, so that the management entity sends the discovered resource to the second terminal.
  • the fourth request may be an S1-AP message including the fourth indication, where the base station receives the management entity to send After the S1-AP message, the discovered resource is sent to the management entity through the container, and the management entity sends the container containing the discovered resource to the second terminal by using the NAS message.
  • the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource to the second terminal or allocates the discovered resource and sends the discovered resource to the management entity or allocates the discovered resource to the second terminal and sends the discovered resource to the management entity.
  • the resource may be specifically a discovered resource allocation indication or a discovered resource sending indication.
  • the discovered resource may be a frequency band, a time point, or a coding mode in which the second terminal sends the sent message.
  • Step 804 The base station provides the discovery resource to the first terminal, so that the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource, and obtains the service identifier of the second terminal according to the second message, and according to the The service identifier of the second terminal acquires description information of the second terminal from the server.
  • the base station may receive a second request sent by the management entity, where the second request is sent by the management entity; the base station may acquire the discovery resource after receiving the second request.
  • the base station may directly send the obtained discovery resource to the first terminal.
  • the second request The S1-AP message includes the first indication, and after receiving the S1-AP message sent by the management entity, the base station sends the discovery resource to the first terminal by using the RRC message.
  • the first indication is used to indicate that the base station sends the discovery resource to the first terminal or is used to instruct the base station to acquire and send the discovery resource to the first terminal.
  • the base station may send the obtained discovery resource to the management entity, so that the management entity sends the discovery resource to the first terminal.
  • the second request may be an S1-AP message that includes the second indication.
  • the base station may send the discovery resource to the management entity by using a container, and the management entity passes the The NAS message sends a container containing the discovery resource to the first terminal.
  • the second indication is used to indicate that the base station sends the discovery resource to the management entity or is used to instruct the base station to acquire and send the discovery resource to the management entity, and specifically, the discovery resource sending indication
  • the base station may acquire the discovery resource corresponding to the first terminal, and send system information including the discovery resource in the cell in which the first terminal is located, so that the first terminal parses the discovery resource in the system information.
  • the discovery resource includes the discovery resource of the serving cell of the first terminal; or the discovery resource includes the discovery resource of the serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell.
  • the base station may locally query the discovery resource of the current serving cell of the first terminal.
  • the base station may locally query the discovery resource of the current serving cell of the first terminal and be adjacent to the serving cell.
  • the discovery resource of the cell may be: the base station may locally query the discovery resource of the current serving cell of the first terminal, and query the neighboring base station for the discovery resource of the cell adjacent to the serving cell through the X2 interface.
  • adjacent base stations are connected through an X2 interface. If the base stations exchange the discovery resources of the cells maintained by each of the base stations, or notify the neighboring base stations when the discovery resources of a certain cell in the base station change, the base station stores the cells maintained by the base station and the base station. The discovery resource of the neighboring cell of each cell is maintained. At this time, the base station can directly query the discovery resource of the current serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell. If the base station only stores the discovery resources of the cells maintained by the base station, and does not store the discovery resources of the neighboring cells of the cells maintained by the base station, the base station may query the neighboring base station with the first terminal through the X2 interface. Discovery resources of cells adjacent to the serving cell.
  • the solution provided by the embodiment of the present invention is configured as a first terminal by allocating a discovered resource to the second terminal.
  • the discovery resource is allocated, so that the first terminal monitors the second message sent by the second terminal according to the discovered resource according to the discovery resource.
  • the first terminal only needs to monitor the frequency band, the time point, or the second message of the specific coding mode, which can reduce the terminal load and save the power of the terminal.
  • the discovered resources corresponding to the second terminals are different, It is also possible to effectively reduce interference between the second messages transmitted by the respective second terminals.
  • the method for discovering a terminal provided by the embodiment of the present invention provides a discovery resource to the first terminal, so that the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource, and according to the second The message obtains the service identifier of the second terminal, and obtains the description information of the second terminal according to the service identifier of the second terminal, which solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance.
  • the method for discovering the terminal that can be found in a certain range is unknown, and the scope of the application is extended.
  • the method for discovering the terminal provided by the embodiment of the present invention allocates the discovered resource to the second terminal, and allocates the discovery resource to the first terminal.
  • the first terminal monitors the second message sent by the second terminal according to the discovered resource according to the discovery resource, thereby reducing the burden on the terminal, saving the power of the terminal, effectively reducing interference, and saving hardware resources.
  • FIG. 13 is a flowchart of a method for discovering a terminal provided by an embodiment of the present invention.
  • the method of the first terminal may be applied to allocate the discovered resource to the second terminal in the base station, so that the second terminal sends the second message according to the discovered resource, and the method for discovering the terminal may include:
  • Step 802a Receive a fourth request sent by the management entity, where the fourth request is sent by the management entity according to the third request sent by the second terminal or sent by the management entity according to the sixth request sent by the server;
  • Step 802b the second terminal is allocated a discovered resource according to the fourth request, where the discovered resource is a resource used when the second terminal sends the second message;
  • Step 802c Send the discovered resource to the second terminal; or send the discovered resource to the management entity, so that the management entity sends the discovered resource to the second terminal.
  • the method for discovering a terminal provided by the embodiment of the present invention allocates a discovered resource to a second terminal according to a fourth request sent by the management entity, and sends the discovered resource to the second terminal, or the discovered resource is to be discovered. And sending, by the management entity, the second terminal, so that the second terminal sends the second message according to the discovered resource, to achieve the purpose of reducing interference between the terminals.
  • FIG. 14 is a flowchart of a method for discovering a terminal according to another embodiment of the present invention.
  • the method of the first terminal may be applied to allocate the discovered resource to the second terminal in the base station, so that the second terminal sends the second message according to the discovered resource, and the method for discovering the terminal may include:
  • Step 802A the base station receives a fourth request sent by the management entity, where the fourth request is sent by the management entity according to the third request sent by the second terminal or sent by the management entity according to the sixth request sent by the server;
  • the fourth request may be an S1-AP message sent by the management entity.
  • the base station may receive the S1-AP message sent by the management entity, where the S1-AP message includes a third indication, where the third indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource or the allocation to the second terminal.
  • the resource is discovered and the discovered resource is sent to the second terminal or the discovered resource is allocated to the second terminal and the discovered resource is sent to the second terminal.
  • the base station may receive the S1-AP message sent by the management entity, where the S1-AP message includes a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource or the allocated terminal to the second terminal.
  • the resource is discovered and the discovered resource is sent to the management entity or the discovered resource is allocated to the second terminal and the discovered resource is sent to the management entity.
  • Step 802B The base station allocates the discovered resource to the second terminal according to the fourth request, where the discovered resource is a resource used by the second terminal to send the second message.
  • the discovered resource may include information such as a frequency band, a time point, or an encoding mode of the second terminal to send the second message.
  • Step 802C The base station sends the discovered resource to the second terminal.
  • the discovered resource is sent to the management entity, so that the management entity sends the discovered resource to the second terminal.
  • the base station When the fourth request is an S1-AP message including the third indication, the base station sends the discovered resource to the second terminal by using an RRC message.
  • the base station When the fourth request is an S1-AP message including the fourth indication, the base station sends the discovered resource to the management entity by using the container, so that the management entity sends the discovered resource to the second terminal by using the non-access stratum NAS message.
  • the method for discovering a terminal provided by the embodiment of the present invention allocates a discovered resource to a second terminal according to a fourth request sent by the management entity, and sends the discovered resource to the second terminal, or the discovered resource is to be discovered. And sending, by the management entity, the second terminal, so that the second terminal sends the second message according to the discovered resource, to achieve the purpose of reducing interference between the terminals.
  • FIG. 15 a flowchart of a method for discovering a terminal provided by an embodiment of the present invention is shown.
  • the discovery terminal method can be applied to a management entity of a D2D system.
  • the discovery terminal method can include:
  • Step 902 The management entity receives, by the first terminal, a service identifier of the second terminal, where the service identifier of the second terminal is sent by the first terminal according to the at least one second terminal, and the service identifier of the second terminal is included. Obtained by the second message;
  • Step 904 The management entity sends the service identifier of the second terminal to the server, so that the server obtains and sends the description information of the second terminal to the first terminal according to the service identifier of the second terminal.
  • Step 906 The management entity sends the service identifier of the second terminal to the server, and receives the description information of the second terminal that is sent by the server, and sends the description information of the second terminal to the first terminal, where the second terminal The description information is obtained by the server according to the service identifier of the second terminal.
  • the method for discovering a terminal receives the service identifier of the second terminal sent by the first terminal and sends the service identifier to the server, so that the server provides the first terminal with the service identifier of the second terminal.
  • the description information of the second terminal solves the problem that the first terminal must know the unique identity of the second terminal in advance in the prior art, and achieves the purpose of discovering the terminal with unknown identity in a certain range and expanding the application scope.
  • FIG. 16 shows a flowchart of a method for discovering a terminal according to another embodiment of the present invention.
  • the discovery terminal method can be applied to a management entity of a D2D system.
  • the discovery terminal method can include:
  • Step 1002 The management entity receives the service identifier of the second terminal that is sent by the first terminal, where the service identifier of the at least one second terminal is sent by the first terminal according to the at least one second terminal, and includes the second terminal. The second message of the service identifier is obtained.
  • the management entity may request the discovery resource for the first terminal in advance, and request the discovered resource for the second terminal. Details as follows:
  • the first entity receives the first request sent by the first terminal, where the first request is used to request to acquire the discovery resource, and the management entity sends the second request to the base station according to the first request, the second request.
  • the base station is configured to send the discovery resource to the first terminal, and the base station may directly send the discovery resource to the first terminal according to the second request.
  • the second request is used to indicate to the base station to manage The entity sends the discovery resource, and after receiving the discovery resource sent by the base station, the management entity sends the discovery resource to the first terminal.
  • the discovery resource is the resource used by the first terminal to listen to the second message.
  • the second request may be an S1-AP message.
  • the management entity may send an S1-AP message to the base station according to the first request, where the S1-AP message includes a first indication, where the first indication is used to indicate that the base station sends the discovery resource to the first terminal or is used to indicate the base station.
  • the first indication is used to indicate that the base station sends the discovery resource to the first terminal or is used to indicate the base station.
  • the management entity may send an S1-AP message to the base station according to the first request, where the S1-AP message includes a second indication, where the second indication is used to indicate that the base station sends the discovery resource to the management entity or is used to indicate that the base station acquires the The discovery resource is sent to the management entity; the management entity receives the discovery resource sent by the base station through the container container, and sends the discovery resource to the first terminal by using the non-access stratum NAS message.
  • the first request may further include an identity of the first terminal.
  • the management entity Before the second request is sent to the base station according to the first request, the management entity may further send the identity of the first terminal to the server, so that the server is configured according to the first The identity of a terminal verifies whether the first terminal has the right to discover the terminal; the management entity may receive an indication that the first terminal has the right to discover the terminal fed back by the server; and the first terminal owns the discovery terminal after receiving the feedback from the server After the indication of the authority, the second request is sent to the base station according to the first request, otherwise the second request is not sent.
  • the first request may further include an identifier of the first terminal and an identifier of an application that uses the discovery service in the first terminal.
  • the management entity may further send the first terminal before sending the second request to the base station according to the first request.
  • the identifier of the application that uses the discovery service in the first terminal is sent to the server, so that the server verifies whether the first terminal has the discovery terminal according to the identity of the first terminal and the identifier of the application that uses the discovery service in the first terminal.
  • the management entity may receive the right of the first terminal to have the discovery terminal, and the application has an indication of the permission to use the discovery function; the management entity may receive the first feedback from the server The terminal has the right to discover the terminal, and after the application has the indication of the right to use the discovery function, sends the second request to the base station according to the first request, otherwise, the second request is not sent.
  • the management entity may further receive the third request sent by the second terminal, and send a fourth request to the base station according to the third request, so that the base station allocates the direction according to the fourth request.
  • the second terminal sends the discovered resource to the base station according to the third request, and receives the discovered resource that is allocated and sent by the base station according to the fourth request, and sends the discovered resource to the The second terminal; or, when the management entity requests the second terminal to allocate the discovered resource, the management entity may further receive the sixth request sent by the server, and send the sixth request to the base station according to the sixth request.
  • the discovered resource is sent, and the discovered resource is sent to the second terminal.
  • the discovered resource is a resource used by the second terminal to send the second message.
  • the fourth request may be an S1-AP message.
  • the management entity may send the S1-AP message to the base station according to the third request, where the S1-AP message includes a third indication, where the third indication is used to indicate that the base station allocates the discovered resource or is allocated for the second terminal.
  • the resource allocates the discovered resource and sends the discovered resource to the second terminal or allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal, so that the base station sends the discovered resource to the second terminal by using the RRC message.
  • the management entity may send an S1-AP message to the base station according to the third request, where the S1-AP message includes a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource to the second terminal.
  • the management entity receives the discovered resource sent by the base station through the container container, and passes through the non-access layer The NAS message will be sent to the second terminal by the discovered resource.
  • the third request may include the identity of the second terminal; before the fourth request is sent to the base station according to the third request, the management entity may further send the identity of the second terminal to the server, so that the server The identity of the second terminal verifies whether the second terminal has the discovered right; the management entity may receive an indication that the second terminal has the discovered right that is fed back by the server; the management entity may own the second terminal that receives the feedback from the server After the indication of the discovered authority, the fourth request is sent to the base station according to the third request, otherwise the fourth request is not sent.
  • the third request includes the identity of the second terminal and the identifier of the application that uses the discovered service in the second terminal; the management entity may further send the second terminal before sending the fourth request to the base station according to the third request.
  • the identifier of the application that uses the discovered service in the second terminal is sent to the server, so that the server verifies whether the second terminal has the user according to the identity of the second terminal and the identifier of the application that uses the discovered service in the second terminal.
  • the management entity may receive the second terminal having the discovered right of the server feedback, and the application has an indication of the right to use the discovered function; the management entity may receive After the second terminal fed back to the server has the discovered right, and the application has an indication of the right to use the discovered function, the fourth request is sent to the base station according to the third request, otherwise, the fourth request is not sent.
  • Step 1004 The management entity sends the service identifier of the second terminal to the server, so that the service Obtaining, according to the service identifier of the second terminal, the description information of the second terminal is sent to the first terminal;
  • Step 1006 The management entity receives the description information of the second terminal that is sent by the server, and sends the description information of the second terminal to the first terminal.
  • the description information of the second terminal is obtained by the server according to the service identifier of the second terminal.
  • the management entity may further receive the service identifier of the first terminal sent by the first terminal, and send the service identifier of the first terminal to the server, so that the server verifies the first terminal according to the service identifier of the first terminal. Whether there is permission to discover and whether the second terminal is allowed to be discovered.
  • the management entity may receive the description information of the second terminal that is obtained and sent by the server when the verification result is that the first terminal has the right to discover the second terminal.
  • the second terminal may set the discovery permission in advance.
  • the second terminal corresponding to the service identifier of the second terminal of the second terminal sent by the first terminal is preset only Can be discovered by friends.
  • the first terminal sends the service identifier of the second terminal to the management entity, and sends the service identifier of the second terminal to the server. If the server verifies that the first terminal is not the friend of the second terminal according to the service identifier of the first terminal, And verifying that the first terminal does not have permission to discover the second terminal, and the server does not send the description information of the second terminal to the first terminal.
  • the solution provided by the embodiment of the present invention allocates the discovery resource to the second terminal by requesting the first terminal to allocate the discovery resource, so that the first terminal monitors the second message sent by the second terminal according to the discovered resource according to the discovery resource. Since the first terminal only needs to listen to the second message of the frequency band and the time point corresponding to the discovery resource, the terminal can reduce the terminal load and save the power of the terminal; and when the discovered resources corresponding to the second terminals are different, the effective can also be effectively reduced. Interference between the second messages sent by the respective second terminals.
  • the method for discovering a terminal receives the service identifier of the second terminal sent by the first terminal and sends the service identifier to the server, so that the server provides the first terminal with the service identifier of the second terminal.
  • the description information of the second terminal solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can achieve the purpose of discovering the terminal with unknown identity in a certain range and expanding the application scope;
  • the discovery terminal method provided by the embodiment of the present invention by requesting the first terminal to allocate a discovery resource, and requesting the second terminal to allocate the discovered resource, so that the first terminal monitors, according to the discovery resource, the second terminal according to the discovered resource.
  • the second message reduces the burden on the terminal, saves the power of the terminal, and effectively reduces the second message sent between each second terminal.
  • the purpose of the first terminal is to receive the service identifier of the first terminal sent by the first terminal, and send the service identifier to the server, so that the server can perform the service according to the first terminal.
  • the identifier verifies whether the first terminal has the right to discover the second terminal corresponding to the identifier service identifier of the at least one second terminal of the at least one second terminal, and achieves the purpose of protecting the privacy of the second terminal.
  • FIG. 17 which is a flowchart of a method for discovering a terminal provided by an embodiment of the present invention.
  • the discovery terminal method may be applied to request a second terminal for a discovered resource in a management entity, so that the second terminal sends a second message according to the discovered resource.
  • the method can include:
  • Step 1001 the management entity receives the third request sent by the second terminal; or, the management entity receives the sixth request sent by the server;
  • Step 1001b the management entity sends a fourth request to the base station according to the third request or the sixth request, so that the base station allocates and sends the discovered resource to the second terminal according to the fourth request; or, the management entity according to the third request or the third Receiving a fourth request to the base station, and receiving the discovered resource allocated and sent by the base station according to the fourth request, and sending the discovered resource to the second terminal;
  • the discovered resource is a resource used when the second terminal sends the second message.
  • the method for discovering a terminal receives a third request sent by the second terminal or receives a sixth request sent by the server, and sends a fourth request to the base station according to the third request or the sixth request, So that the base station allocates and sends the discovered resource to the second terminal according to the fourth request; or sends a fourth request to the base station according to the third request or the sixth request, and receives the discovered and sent by the base station according to the fourth request.
  • the resource is sent to the second terminal, so that the second terminal sends the second message according to the discovered resource, so as to reduce the interference between the terminals.
  • the method for discovering the terminal can be applied to the management entity.
  • the second terminal requests the discovered resource, so that the second terminal sends the second message according to the discovered resource.
  • the method can include:
  • Step 1001A The management entity receives the third request sent by the second terminal; or, the management entity receives the sixth request sent by the server;
  • Step 1001B The management entity sends a fourth request to the base station according to the third request or the sixth request, to The base station allocates and sends the discovered resource to the second terminal according to the fourth request; or, the management entity sends a fourth request to the base station according to the third request, and receives the discovered resource that is allocated and sent by the base station according to the fourth request, And sending the discovered resource to the second terminal;
  • the discovered resource is a resource used when the second terminal sends the second message.
  • the fourth request may be an S1-AP message.
  • the management entity may send the S1-AP message to the base station according to the third request, where the S1-AP message includes a third indication, where the third indication is used to indicate that the base station allocates the discovered resource or is allocated for the second terminal.
  • the resource allocates the discovered resource and sends the discovered resource to the second terminal or allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal, so that the base station sends the discovered resource to the second terminal by using the RRC message.
  • the management entity may send an S1-AP message to the base station according to the third request, where the S1-AP message includes a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource to the second terminal.
  • the management entity may receive the discovered resource sent by the base station through the container container, and pass the non-access The layer NAS message will be sent to the second terminal by the discovery resource.
  • the method for discovering a terminal receives a third request sent by the second terminal or receives a sixth request sent by the server, and sends a fourth request to the base station according to the third request or the sixth request. So that the base station allocates and sends the discovered resource to the second terminal according to the fourth request; or sends a fourth request to the base station according to the third request or the sixth request, and receives the received and sent by the base station according to the fourth request. And discovering the resource, and sending the discovered resource to the second terminal; so that the second terminal sends the second message according to the discovered resource, so as to reduce the interference between the terminals. Referring to FIG.
  • the discovery terminal method is applicable to a D2D communication system including a first terminal, a second terminal, a management entity, a server, and a base station.
  • the discovery terminal method can include:
  • Step 1102 The second terminal acquires a service identifier of the second terminal that is allocated by the server.
  • FIG. 20 is a flowchart of a method for obtaining a service identifier according to the embodiment, where the second terminal
  • the specific process of obtaining the service identifier of the second terminal allocated by the server is as follows:
  • Step 1102a The second terminal sends a service identifier acquisition request to the management entity.
  • the service identifier obtaining request may include the identity identifier and description information of the second terminal.
  • Step 1102b The management entity sends a service identity allocation request to the server according to the service identity acquisition request.
  • the service identifier allocation request may include the identity identifier and description information of the second terminal.
  • the identity of the second terminal may be the identifier included in the service identifier acquisition request sent by the second terminal.
  • the description information of the second terminal may be the description information included in the service identifier acquisition request sent by the second terminal. And the description information of the second terminal that is pre-stored by the management entity.
  • Step 1102c The server allocates the service identifier of the second terminal according to the service identifier allocation request, and sends the service identifier to the management entity.
  • the server may first verify, according to the identity of the second terminal that is included in the service identifier allocation request, whether the second terminal has the right discovered by another terminal, and if the second terminal has the right discovered by the other terminal, The second terminal allocates a service identifier.
  • the server After the service identifier is allocated to the second terminal, the server further stores the service identifier of the second terminal and the description information of the second terminal.
  • the service identifier may be a D2D code or an expression code.
  • Step 1102 The management entity sends the service identifier of the second terminal to the second terminal.
  • the management entity may send the service identifier of the second terminal to the second terminal by using the NAS message.
  • Step 1102e The management entity sends the service identifier of the second terminal to the base station.
  • the management entity may send the service identifier of the second terminal to the base station by using an S1-AP message.
  • Step 1102 The base station sends the service identifier of the second terminal to the second terminal.
  • the base station may send the service identifier of the second terminal to the second terminal by using an RRC message.
  • Step 1104 The second terminal acquires the discovered resource of the second terminal that is allocated by the base station.
  • FIG. 21 is a flowchart of the method for obtaining the discovered resource provided by the embodiment.
  • the specific process of the second terminal acquiring the discovered resource of the second terminal allocated by the base station is as follows:
  • Step 1104a the second terminal sends a third request to the management entity.
  • the second terminal may include the identity identifier of the second terminal in the transmitted discovered resource acquisition request.
  • Step 1104b The management entity sends a fourth request to the base station.
  • the management entity may further send the identity of the second terminal before sending the fourth request to the base station. And sending the fourth request to the base station, when the base station verifies that the second terminal has the right to acquire the discovered resource according to the identity of the second terminal.
  • Step 1104c The base station sends the allocated discovered resource to the second terminal.
  • the base station may send the discovered resource to the second terminal by using an RRC message.
  • Step 1104d The base station sends the allocated discovered resource to the management entity.
  • the base station may send the discovered resource to the management entity by using an S1-AP message.
  • Step 1104e The management entity sends the discovered resource to the second terminal.
  • the management entity sends the discovered resource to the second terminal through the NAS message.
  • the discovered resource may include information such as a frequency band and a time point of the second terminal transmitting the broadcast.
  • Step 1106 The first terminal acquires a discovery resource delivered by the base station.
  • FIG. 22 is a flowchart of a method for discovering a resource acquisition process provided by this embodiment.
  • the specific process of the first terminal acquiring the discovery resource delivered by the base station is as follows:
  • Step 1106a the first terminal sends a first request to the management entity.
  • the first terminal may include the identity of the first terminal in the first request sent.
  • Step 1106b The management entity sends a second request to the base station.
  • the identity of the first terminal may be sent to the server, and when the server verifies that the first terminal has the right to discover other terminals according to the identity of the first terminal, The second request.
  • Step 1106c The base station sends the discovery resource to the first terminal.
  • the base station may query the discovery resource corresponding to the first terminal, and send the discovery resource to the first terminal by using an RRC message.
  • Step 1106d The base station sends the discovery resource to the management entity.
  • the base station may query the discovery resource corresponding to the first terminal, and send the discovery resource to the management entity by using an S1-AP message.
  • Step 1106e The management entity sends the discovery resource to the first terminal.
  • the management entity sends the discovery resource to the second terminal through the NAS message.
  • the discovery resource may include information such as a frequency band, a time point, and a coding mode of the second terminal listening to the second message.
  • the discovery resource includes a discovery resource of a current serving cell of the first terminal; or, the The current resource includes a discovery resource of a current serving cell of the first terminal and a discovery resource of a cell adjacent to the serving cell.
  • the base station may query the discovery resource of the current serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell; or, the base station may locally query the first terminal.
  • the discovery resource of the current serving cell and queries the neighboring other base stations for the discovery resources of the cell adjacent to the serving cell.
  • adjacent base stations are connected through an X2 interface. If the base stations exchange the discovery resources of the cells maintained by each of the base stations, or notify the neighboring base stations when the discovery resources of a certain cell in the base station change, the base station stores the cells maintained by the base station and the base station. The discovery resource of the neighboring cell of each cell is maintained. At this time, the base station can directly query the discovery resource of the current serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell. If the base station only stores the discovery resources of the cells maintained by the base station, and does not store the discovery resources of the neighboring cells of the cells maintained by the base station, the base station may query the neighboring base station with the first terminal through the X2 interface. Discovery resources of cells adjacent to the serving cell.
  • Step 1106f The first terminal receives system information sent by the base station, and parses the discovery resource included in the system information.
  • the base station can actively send the discovery resource to the first terminal. Specifically, the base station can enhance the existing system information, include the discovery resource in the system information, and send the system information including the discovery resource to the first terminal.
  • Step 1108 The first terminal monitors, according to the discovery resource, a second message that is sent by the second terminal according to the discovered resource and that includes the service identifier of the second terminal.
  • the second terminal may send the first message immediately after acquiring the discovered resource allocated by the base station, or may send the second message after receiving the first message sent by the first terminal.
  • the second terminal sends a second message according to the information such as the frequency band, the time point, and the coding mode included in the discovered resource, where the second message includes the service identifier of the discovered device.
  • the first terminal monitors the second message sent by other terminals in a certain range according to the frequency band, the time point, and the coding mode included in the discovery resource.
  • Step 1110 The first terminal sends the service identifier of the second terminal to the management entity, and is sent by the management entity to the server.
  • the first terminal may perform the service identifier included in all the second messages that are monitored.
  • the service identifier of the second terminal is obtained by filtering. For example, the service identifier included in the second message whose signal strength reaches a certain threshold is obtained as the service identifier of the second terminal, or the category in the service identifier is detected, and the service identifier that meets the predetermined category is obtained as the second terminal.
  • Business identity For example, the service identifier included in the second message whose signal strength reaches a certain threshold is obtained as the service identifier of the second terminal, or the category in the service identifier is detected, and the service identifier that meets the predetermined category is obtained as the second terminal.
  • the first terminal sends the service identifier of the second terminal and the service identifier of the first terminal to the management entity, and is sent by the management entity to the server.
  • the method for obtaining the service identifier of the first terminal is similar to the manner for the second terminal to obtain the service identifier in step 1102, and details are not described herein again.
  • Step 1112 The first terminal receives, by the management entity, description information of the second terminal that is sent by the server to the management entity.
  • the server may first verify, according to the service identifier of the first terminal, whether the first terminal has the right to discover the second terminal. If the verification result is that the first terminal has the right to discover the second terminal, query the description information of the second terminal that is stored corresponding to the service identifier of the second terminal.
  • the first terminal sends the acquired service identifier of the second terminal and its own service identifier to the server via the management entity, and receives and queries the server through the management entity.
  • the description information of the second terminal In an actual application, the first terminal may directly send the obtained service identifier of the second terminal and the service identifier of the second terminal to the server without using the management entity, and directly receive the service identifier of the second terminal that is queried and sent by the server. .
  • the method for discovering a terminal provided by the embodiment of the present invention, the first terminal intercepts the broadcast of the service identifier of the second terminal that is sent by the at least one second terminal, and acquires the service identifier of the second terminal;
  • the service identifier of the second terminal acquires the description information of the second terminal from the server, and solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and the identity identifier unknown in a certain range can be found.
  • the purpose of the terminal is to extend the scope of the application.
  • the first terminal monitors the second message sent by the second terminal according to the discovered resource according to the obtained discovery resource, thereby reducing the burden on the terminal and saving The terminal power is effective for reducing the interference between the second messages sent by the second terminals.
  • the first terminal sends the service identifier of the first terminal to the management entity, so that The server verifies the first end according to the service identifier of the first terminal. Whether it has found that the second terminal of authority, to purposefully targeted to protect the privacy of the second terminal.
  • FIG. 23 shows a device configuration diagram of a first terminal according to an embodiment of the present invention.
  • the first terminal may include:
  • the discovery resource obtaining module 1201 is configured to acquire a discovery resource.
  • the message monitoring module 1202 is configured to monitor, according to the discovery resource acquired by the discovery resource acquisition module 1201, the second message sent by the at least one second terminal, where the second message includes the service identifier of the second terminal;
  • the service identifier obtaining module 1203 is configured to obtain the service identifier of the second terminal according to the second message that is monitored by the message monitoring module 1202.
  • the description information obtaining module 1204 is configured to obtain the description information of the second terminal from the server according to the service identifier of the second terminal acquired by the service identifier acquiring module 1203.
  • the first terminal acquires a discovery resource, and listens to a message that is sent by at least one second terminal and includes a service identifier of the second terminal according to the discovery resource, and obtains the second terminal. And obtaining the description information of the second terminal from the server according to the identifier of the second terminal, which solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can find the identity within a certain range around the identifier. Identify unknown terminals and extend the scope of the application.
  • FIG. 23 shows a device configuration diagram of the first terminal according to another embodiment of the present invention.
  • the first terminal may include:
  • the discovery resource obtaining module 1301 is configured to acquire a discovery resource.
  • the message monitoring module 1302 is configured to monitor, according to the discovery resource acquired by the discovery resource acquisition module 1301, the second message sent by the at least one second terminal, where the second message includes the service identifier of the second terminal;
  • the service identifier obtaining module 1303 is configured to obtain the service identifier of the second terminal according to the second message that is monitored by the message monitoring module 1302.
  • the description information obtaining module 1304 is configured to obtain the description information of the second terminal from the server according to the service identifier of the second terminal acquired by the service identifier obtaining module 1303.
  • the description information obtaining module 1304 includes:
  • the first identifier sending unit 1304a is configured to send the service identifier of the second terminal to the server
  • the second identifier sending unit 1304b is configured to send the service identifier of the second terminal to the management entity, so that the management entity sends the service of the second terminal.
  • the identifier is sent to the server;
  • the first information receiving unit 1304c is configured to receive description information of the second terminal sent by the server, where The description information of the second terminal is the information that the server obtains and sends according to the service identifier of the second terminal.
  • the second information receiving unit 1304d is configured to receive the description information of the second terminal sent by the management entity, where the description information of the second terminal is a server. Information obtained and sent to the management entity according to the service identifier of the second terminal.
  • the first terminal further includes:
  • the first identifier sending module 1305 is configured to receive, by the first information receiving unit 1304c, the description information of the second terminal that is sent by the server, or the second information receiving unit 1304d receives the description information of the second terminal that is sent by the management entity, Transmitting the service identifier of the first terminal to the server, so that the server, after verifying that the first terminal has the right to discover the second terminal, according to the service identifier of the first terminal, obtain the second according to the service identifier of the second terminal Description information of the terminal;
  • the second identifier sending module 1306 is configured to receive, by the first information receiving unit 1304c, the description information of the second terminal that is sent by the server, or before the second information receiving unit 1304d receives the description information of the second terminal that is sent by the management entity, Transmitting the service identifier of the first terminal to the management entity, so that the management entity sends the service identifier of the first terminal to the server, so that the server verifies that the first terminal owns the second terminal according to the service identifier of the first terminal.
  • the description information of the second terminal is obtained according to the service identifier of the second terminal.
  • the discovery resource acquisition module 1301 includes:
  • the first request sending unit 1301a is configured to send a first request to the management entity, so that the management entity sends the second request to the base station according to the first request;
  • the first discovery resource receiving unit 1301b is configured to receive the discovery resource that is sent by the base station according to the second request.
  • the second discovery resource receiving unit 1301c is configured to receive the discovery resource sent by the management entity; the discovery resource is sent by the base station to the management entity according to the second request;
  • the discovery resource includes the discovery resource of the serving cell of the first terminal; or the discovery resource includes the discovery resource of the serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell.
  • the first discovery resource receiving unit 1301b is configured to receive a discovery resource that is sent by the base station by using an RRC message, where the discovery resource is a resource that is sent by the base station after receiving the second request;
  • the second request is an S1-AP message that includes a first indication, where the first indication is used to indicate that the base station sends the discovery resource to the first terminal or is used to instruct the base station to acquire and send the discovery resource to the first terminal.
  • a second discovery resource receiving unit 1301c configured to receive a management entity by using a non-access stratum NAS message a discovery resource that is sent by the base station to the management entity through the container container after receiving the second request;
  • the second request is an S1-AP message that includes a second indication, where the second indication is used to indicate that the base station sends the discovery resource to the management entity or is used to instruct the base station to acquire and send the discovery resource to the management entity.
  • the discovery resource acquisition module 1301 includes:
  • the system information receiving unit 1301d is configured to receive system information sent by the base station;
  • the discovery resource parsing unit 1301e is configured to parse the discovery resource included in the system information received by the system information receiving unit 1301d;
  • the discovery resource includes the discovery resource of the serving cell of the first terminal; or the discovery resource includes the discovery resource of the serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell.
  • the first request sending unit 1301a is configured to send, to the management entity, a first request that includes the identity of the first terminal, so that the management entity sends the identity of the first terminal to the server, and according to the server When the identity of a terminal verifies that the first terminal has the right to discover the terminal, the second request is sent to the base station.
  • the first request sending unit 1301a is configured to send, to the management entity, a first request that includes an identity of the first terminal and an identifier of an application that uses the discovery service in the first terminal, so that the management entity:
  • the identity identifier and the identifier of the application that uses the discovery service in the first terminal are sent to the server, and the server verifies that the first terminal has the discovery according to the identity of the first terminal and the identifier of the application that uses the discovery service in the first terminal.
  • the second request is sent to the base station when the terminal has the authority and the application has the right to use the discovery function.
  • the service identifier obtaining module 1303 is configured to obtain, as the service identifier of the second terminal, the service identifier that meets the predetermined condition in the second message that is monitored;
  • the predetermined condition includes at least one of the following conditions:
  • the signal strength of the second message is greater than or equal to a predetermined intensity threshold
  • the category of the second terminal included in the second message meets a predetermined category
  • the description of the application included in the second message conforms to a predetermined application description.
  • the first terminal further includes:
  • the first message sending module 1307 is configured to send the first message after the second message listening module 1302 listens to the second message sent by the at least one second terminal according to the discovery resource, so that the second terminal after receiving the first message Sending the second message according to the first message.
  • the first terminal provided by the embodiment of the present invention acquires a discovery resource, and listens to a message that is sent by at least one second terminal and includes a service identifier of the second terminal according to the discovery resource, and obtains the second terminal.
  • the identifier is obtained, and the description information of the second terminal is obtained from the server according to the identifier of the second terminal, which solves the problem that the first terminal must know the unique identifier of the second terminal in advance in the prior art, and the identity of the surrounding area can be found.
  • the first terminal provided by the embodiment of the present invention can reduce the burden on the terminal and save the power of the terminal by monitoring the second message sent by the second terminal according to the obtained discovery resource. And finally, the first terminal provided by the embodiment of the present invention sends the service identifier of the first terminal to the management entity, so that the server verifies whether the first terminal has the discovery of the second terminal according to the service identifier of the first terminal. Permission, to achieve targeted protection of the privacy of the second terminal.
  • FIG. 25 shows a device configuration diagram of a first terminal according to an embodiment of the present invention. .
  • the first terminal may include: a processor 1401, a receiver 1402, and a transmitter 1403;
  • the processor 1401 is configured to control the receiver 1402 and the transmitter 1403 to acquire the discovery resource, and the receiver 1402 is configured to monitor, according to the acquired discovery resource, the second message sent by the at least one second terminal, where the second message includes the The service identifier of the second terminal;
  • the processor 1401 is configured to obtain a service identifier of the second terminal according to the second message that is received by the receiver 1402.
  • the processor 1401 is configured to control the receiver 1402 and the transmitter 1403, and obtain the description information of the second terminal from the server according to the obtained service identifier of the second terminal.
  • the first terminal acquires a discovery resource, and listens to a message that is sent by at least one second terminal and includes a service identifier of the second terminal according to the discovery resource, and obtains the second terminal. And obtaining the description information of the second terminal from the server according to the identifier of the second terminal, which solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can find the identity within a certain range around the identifier. Identify unknown terminals and extend the scope of the application.
  • FIG. 25 shows a device configuration diagram of the first terminal according to another embodiment of the present invention.
  • the first terminal may include: a processor 1501, a receiver 1502, and a transmitter 1503;
  • the processor 1501 is configured to control the receiver 1502 and the transmitter 1503 to acquire the discovery resource.
  • the receiver 1502 is configured to monitor, according to the acquired discovery resource, the at least one second terminal. a second message, where the second message includes a service identifier of the second terminal;
  • the processor 1501 is configured to obtain a service identifier of the second terminal according to the second message that is received by the receiver 1502.
  • the processor 1501 is configured to control the receiver 1502 and the transmitter 1503, and obtain the description information of the second terminal from the server according to the obtained service identifier of the second terminal.
  • the processor 1501 is configured to control the transmitter 1503 to send the service identifier of the second terminal to the server.
  • the processor 1501 is configured to control the transmitter 1503 to send the service identifier of the second terminal to the management entity, so that the management entity sends the service identifier of the second terminal to the server;
  • the receiver 1502 is configured to receive, by the server, description information of the second terminal, where the description information of the second terminal is information that is obtained and sent by the server according to the service identifier of the second terminal;
  • the receiver 1502 is configured to receive description information of the second terminal sent by the management entity, where the description information of the second terminal is information that the server acquires and sends to the management entity according to the service identifier of the second terminal.
  • the processor 1501 is further configured to: at the receiver 1502, receive the description information of the second terminal sent by the server, or control the transmitter 1503 to control the service of the first terminal before receiving the description information of the second terminal sent by the management entity.
  • the identifier is sent to the server, so that the server, after verifying that the first terminal has the right to discover the second terminal, according to the service identifier of the first terminal, obtains the description information of the second terminal according to the service identifier of the second terminal;
  • the processor 1501 is further configured to: at the receiver 1502, receive the description information of the second terminal sent by the server, or control the transmitter 1503 to control the service of the first terminal before receiving the description information of the second terminal sent by the management entity.
  • the identifier is sent to the management entity, so that the management entity sends the service identifier of the first terminal to the server, so that the server verifies that the first terminal has the right to discover the second terminal according to the service identifier of the first terminal, according to the The service identifier of the second terminal acquires the description information of the second terminal.
  • the processor 1501 is configured to control the transmitter 1503 to send a first request to the management entity, so that the management entity sends the second request to the base station according to the first request;
  • the receiver 1502 is configured to receive the discovery resource that is sent by the base station according to the second request.
  • the receiver 1502 is configured to receive the discovery resource sent by the management entity, where the discovery resource is sent by the base station to the management entity according to the second request;
  • the discovery resource includes the discovery resource of the serving cell of the first terminal; or the discovery resource includes the discovery resource of the serving cell of the first terminal and the sending of the cell adjacent to the serving cell Current resources.
  • the receiver 1502 is configured to receive a discovery resource that is sent by the base station by using an RRC message, where the discovery resource is a resource that is sent by the base station after receiving the second request.
  • the second request is an S1-AP message that includes a first indication, where the first indication is used to indicate that the base station sends the discovery resource to the first terminal or is used to instruct the base station to acquire and send the discovery resource to the first terminal.
  • the receiver 1502 is configured to receive, by the management entity, a discovery resource that is sent by the non-access stratum NAS message, where the discovery resource is a discovery resource that is sent by the base station to the management entity after receiving the second request;
  • the second request is an S1-AP message that includes a second indication, where the second indication is used to indicate that the base station sends the discovery resource to the management entity or is used to instruct the base station to acquire and send the discovery resource to the management entity.
  • a receiver 1502 configured to receive system information sent by the base station
  • the processor 1501 is configured to parse the discovery resource included in the system information received by the receiver 1502, where the discovery resource includes a discovery resource of the serving cell of the first terminal, or the discovery resource includes the first terminal The discovery resource of the serving cell and the discovery resource of the cell adjacent to the serving cell.
  • the processor 1501 is configured to control the transmitter 1503 to send, to the management entity, a first request that includes the identity of the first terminal, so that the management entity sends the identity of the first terminal to the server, and the server
  • the identity of the first terminal verifies that the first terminal has the right to discover the terminal, and sends a second request to the base station.
  • the processor 1501 is configured to control the transmitter 1503 to send, to the management entity, a first request that includes an identity of the first terminal and an identifier of an application that uses the discovery service in the first terminal, so that the management entity is to use the first terminal. And the identifier of the application that uses the discovery service in the first terminal is sent to the server, and the server verifies that the first terminal owns the identifier according to the identifier of the first terminal and the identifier of the application that uses the discovery service in the first terminal. When the authority of the terminal is found and the application has the right to use the discovery function, the second request is sent to the base station.
  • the processor 1501 is configured to obtain, as the service identifier of the second terminal, the service identifier that meets the predetermined condition in the second message that is monitored;
  • the predetermined condition includes at least one of the following conditions:
  • the signal strength of the second message is greater than or equal to a predetermined intensity threshold
  • the category of the second terminal included in the second message meets a predetermined category
  • the processor 1501 is further configured to: after the receiver 1502 listens to the second message sent by the at least one second terminal according to the discovery resource, the control transmitter 1503 sends the first message, so that after the second terminal receives the first message, Sending the second message according to the first message.
  • the first terminal provided by the embodiment of the present invention acquires a discovery resource, and listens to a message that is sent by at least one second terminal and includes a service identifier of the second terminal according to the discovery resource, and obtains the second terminal.
  • the identifier is obtained, and the description information of the second terminal is obtained from the server according to the identifier of the second terminal, which solves the problem that the first terminal must know the unique identifier of the second terminal in advance in the prior art, and the identity of the surrounding area can be found.
  • the first terminal provided by the embodiment of the present invention can reduce the burden on the terminal and save the power of the terminal by monitoring the second message sent by the second terminal according to the obtained discovery resource.
  • the first terminal provided by the embodiment of the present invention sends the service identifier of the first terminal to the management entity, so that the server verifies whether the first terminal has the discovery of the second terminal according to the service identifier of the first terminal. Permission to achieve targeted protection of the privacy of the second terminal of.
  • FIG. 27 shows a device configuration diagram of a second terminal according to an embodiment of the present invention.
  • the second terminal can include:
  • the second message sending module 1601 is configured to send a second message that includes the service identifier of the second terminal, so that the first terminal acquires the service identifier of the second terminal according to the second message, and according to the service of the second terminal Logo from ⁇ !
  • the server obtains the description information of the second terminal.
  • the second terminal provided by the embodiment of the present invention sends the second message including the service identifier of the second terminal, so that the first terminal acquires the description information of the second terminal from the server according to the identifier of the second terminal.
  • the problem that the first terminal must know the unique identity of the second terminal in advance in the prior art is solved, and the purpose of discovering the terminal with unknown identity in a certain range and expanding the application scope is achieved.
  • FIG. 28 shows a device configuration diagram of a second terminal according to another embodiment of the present invention.
  • the second terminal can include:
  • the second message sending module 1701 is configured to send a second message that includes the service identifier of the second terminal, so that the first terminal acquires the service identifier of the second terminal according to the second message, and according to the service of the second terminal Logo from ⁇ !
  • the server obtains the description information of the second terminal.
  • the second terminal further includes:
  • the first request sending module 1702 is configured to send a third request to the management entity, before the second message sending module 1701 sends the second message that includes the service identifier of the second terminal, so that the management entity sends the third request to the base station according to the third request.
  • the second request sending module 1703 is configured to send a fifth request to the server, before the second message sending module 1701 sends the second message that includes the service identifier of the second terminal, so that the server sends the sixth request to the management entity, so that The management entity sends a fourth request to the base station;
  • the first discovered resource receiving module 1704 is configured to receive the discovered resource sent by the base station; the discovered resource is a resource allocated by the base station according to the fourth request;
  • the second discovered resource receiving module 1705 is configured to receive, by the management entity, the discovered resource that is sent by the base station to the management entity, where the discovered resource is a resource allocated by the base station according to the fourth request, and a second message sending module 1701, And the second resource that includes the service identifier is sent according to the discovered resource received by the first discovered resource receiving module 1704 or the second discovered resource receiving module 1705.
  • the first discovered resource receiving module 1704 is configured to receive the discovered resource that is sent by the base station by using an RRC message, where the discovered resource is a resource that is sent by the base station after receiving the fourth request;
  • the fourth request is an S1-AP message including a third indication, where the third indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource or allocates the discovered resource to the second terminal, and sends the discovered resource to the second terminal.
  • the resource is discovered or the discovered resource is allocated to the second terminal and the discovered resource is sent to the second terminal.
  • the second discovered resource receiving module 1705 is configured to receive the discovered resource sent by the management entity by using the non-access stratum NAS message, where the discovered resource is discovered by the base station after being sent to the management entity by using the container container.
  • the fourth request is an S1-AP message including a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource to the second terminal or allocates the discovered resource and sends the discovered resource to the management entity.
  • the resource allocates the discovered resource to the second terminal and sends the discovered resource to the management entity.
  • the first request sending module 1702 is configured to send, to the management entity, a third request that includes the identity of the second terminal, so that the management entity sends the identity of the second terminal to the server, and the server is configured according to the second terminal.
  • the identity verification verifies that the second terminal has the discovered authority, it sends a fourth request to the base station.
  • the first request sending module 1702 is configured to send, to the management entity, an identifier that includes the second terminal. And a third request for identifying an identifier of the application that uses the discovered service in the second terminal, so that the management entity sends the identity of the second terminal and the identifier of the application that uses the discovered service in the second terminal to the server, and Determining, by the server, that the second terminal has the discovered right according to the identity of the second terminal and the identifier of the application that uses the discovered service in the second terminal, and the application has the right to use the discovered function, sending to the base station Fourth request.
  • the second request sending module 1702 is configured to send, to the server, a fifth request that includes the identity of the second terminal, so that the server manages the second terminal to have the discovered right according to the identity of the second terminal.
  • the entity sends the sixth request.
  • a second request sending module 1702 configured to send, to the server, a fifth request that includes an identity of the second terminal and an identifier of an application that uses the discovered service in the second terminal, so that the server is in accordance with the identity of the second terminal.
  • the identifier verifies that the second terminal has the discovered right, and the application has the right to use the discovered function, and sends a sixth request to the management entity.
  • the second request sending module 1702 is configured to send, to the server, a fifth request that includes the global unique temporary identifier GUTI of the second terminal, so that the server sends the sixth request to the management entity according to the GUTI.
  • the second message sending module 1701 includes:
  • the first message sending unit 1701a is configured to send the second message immediately after the first discovered resource receiving module 1705 or the second discovered resource receiving module 1706 receives the discovered resource;
  • the first message receiving unit 1701b is configured to receive the first message sent by the first terminal
  • the second message sending unit 1701c is configured to send the second message according to the first message received by the first message receiving unit 1701b.
  • the second terminal provided by the embodiment of the present invention sends the second message including the service identifier of the second terminal, so that the first terminal acquires the description information of the second terminal from the server according to the identifier of the second terminal.
  • the second terminal achieves the purpose of reducing interference between the second terminals by acquiring the discovered resources allocated by the base station and sending the second message according to the obtained discovered resources.
  • FIG. 29 shows a device configuration diagram of a second terminal according to an embodiment of the present invention.
  • the second terminal can include:
  • the first request sending module 1801 is configured to send a third request to the management entity, so as to manage the entity root Sending a fourth request to the base station according to the third request;
  • a second request sending module 1802 configured to send a fifth request to the server, so that the server sends a sixth request to the management entity, so that the management entity sends the fourth request to the base station;
  • the resource receiving module 1803 is configured to receive the discovered resource sent by the base station, where the discovered resource is a resource allocated by the base station according to the fourth request;
  • the second discovered resource receiving module 1804 is configured to receive, by the management entity, the discovered resource that is sent by the base station to the management entity, where the discovered resource is a resource allocated by the base station according to the fourth request.
  • the second terminal provided by the embodiment of the present invention sends a third request to the management entity, so that the management entity sends a fourth request to the base station according to the third request, and receives the discovered resource sent by the base station; or, receives The discovered resource sent by the management entity to the management entity by the base station, so that the second terminal sends the second message according to the discovered resource, so as to reduce the interference between the terminals.
  • FIG. 29 shows a device configuration diagram of a second terminal according to another embodiment of the present invention.
  • the second terminal can include:
  • the first request sending module 1901 is configured to send a third request to the management entity, so that the management entity sends a fourth request to the base station according to the third request;
  • a second request sending module 1902 configured to send a fifth request to the server, so that the server sends a sixth request to the management entity, so that the management entity sends the fourth request to the base station;
  • the resource receiving module 1903 is configured to receive the discovered resource sent by the base station, where the discovered resource is a resource allocated by the base station according to the fourth request;
  • the second discovered resource receiving module 1904 is configured to receive, by the management entity, the discovered resource that is sent by the base station to the management entity, where the discovered resource is a resource allocated by the base station according to the fourth request.
  • the second request sending module 1902 is configured to send, to the server, the fifth request that includes the global unique temporary identifier GUTI of the second terminal, so that the server sends the sixth request to the management entity according to the GUTI.
  • the first discovered resource receiving module 1903 is configured to receive a discovered resource that is sent by the base station by using an RRC message, where the discovered resource is a resource that is sent by the base station after receiving the fourth request;
  • the fourth request is an S1-AP message including a third indication, where the third indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource or allocates the discovered resource to the second terminal, and sends the discovered resource to the second terminal.
  • the resource allocates the discovered resource to the second terminal and sends the discovered resource to the second terminal.
  • a second discovered resource receiving module 1904 configured to receive a management entity by using a non-access stratum NAS message
  • the discovered resource, the discovered resource is a discovered resource sent by the base station to the management entity through the container container after receiving the fourth request;
  • the fourth request is an S1-AP message including a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource to the second terminal or allocates the discovered resource and sends the discovered resource to the management entity.
  • the resource allocates the discovered resource to the second terminal and sends the discovered resource to the management entity.
  • the second terminal provided by the embodiment of the present invention sends a third request to the management entity, so that the management entity sends a fourth request to the base station according to the third request, and receives the discovered resource sent by the base station; or, receives The discovered resource sent by the management entity to the management entity by the base station, so that the second terminal sends the second message according to the discovered resource, so as to reduce the interference between the terminals.
  • FIG. 31 shows a device configuration diagram of a second terminal according to an embodiment of the present invention.
  • the second terminal may include: a processor 2001 and a transmitter 2002;
  • the processor 2001 is configured to control the transmitter 2002 to send a second message that includes the service identifier of the second terminal, so that the first terminal acquires the service identifier of the second terminal according to the second message, and according to the second terminal
  • the service identifier acquires, from the server, description information of the second terminal, where the service identifier is an identifier assigned by the server.
  • the second terminal provided by the embodiment of the present invention sends the second message including the service identifier of the second terminal, so that the first terminal acquires the description information of the second terminal from the server according to the identifier of the second terminal.
  • the problem that the first terminal must know the unique identity of the second terminal in advance in the prior art is solved, and the purpose of discovering the terminal with unknown identity in a certain range and expanding the application scope is achieved.
  • FIG. 32 shows a device configuration diagram of a second terminal according to another embodiment of the present invention.
  • the second terminal may include: a processor 2101, a transmitter 2102, and a receiver 2103;
  • the processor 2101 is configured to control the transmitter 2102 to send a second message that includes the service identifier of the second terminal, so that the first terminal acquires the service identifier of the second terminal according to the second message, and according to the second terminal
  • the service identifier acquires, from the server, description information of the second terminal, where the service identifier is an identifier assigned by the server.
  • the processor 2101 is configured to send, by the control transmitter 2102, a service identifier including the second terminal. Before the second message, the control transmitter 2102 sends a third request to the management entity, so that the management entity sends a fourth request to the base station according to the third request;
  • the processor 2101 is configured to: after the control transmitter 2102 sends the second message that includes the service identifier of the second terminal, control the transmitter 2102 to send a fifth request to the server, so that the server sends a sixth request to the management entity, to manage the entity. Sending a fourth request to the base station;
  • the receiver 2103 is configured to receive the discovered resource sent by the base station, where the discovered resource is a resource allocated by the base station according to the fourth request.
  • the receiver 2103 is configured to receive, by the management entity, the discovered resource that is sent by the base station to the management entity, where the discovered resource is a resource allocated by the base station according to the fourth request;
  • the processor 2101 is configured to send, by the control transmitter 2102, the second message that includes the service identifier according to the discovered resource received by the receiver 2103.
  • the receiver 2103 is configured to receive a discovered resource that is sent by the base station by using an RRC message, where the discovered resource is a resource that is sent by the base station after receiving the fourth request;
  • the fourth request is an S1-AP message including a third indication, where the third indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource or allocates the discovered resource to the second terminal, and sends the discovered resource to the second terminal.
  • the resource is discovered or the discovered resource is allocated to the second terminal and the discovered resource is sent to the second terminal.
  • the receiver 2103 is configured to receive, by the management entity, the discovered resource that is sent by using a non-access stratum (NAS) message, where the discovered resource is a discovered resource that is sent by the container to the management entity after receiving the fourth request by the base station;
  • NAS non-access stratum
  • the fourth request is an S1-AP message including a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource to the second terminal or allocates the discovered resource and sends the discovered resource to the management entity.
  • the resource allocates the discovered resource to the second terminal and sends the discovered resource to the management entity.
  • the processor 2101 is configured to control the transmitter 2102 to send a third request that includes the identity of the second terminal to the management entity, so that the management entity sends the identity of the second terminal to the server, and the server is configured according to the second terminal.
  • the identity identifier verifies that the second terminal has the discovered right, and sends a fourth request to the base station.
  • the processor 2101 is configured to control the transmitter 2102 to send, to the management entity, a third request that includes an identity of the second terminal and an identifier of an application that uses the discovered service in the second terminal, so that the management entity is configured to use the second terminal.
  • Identity of the identity and the identity of the application using the discovered service in the second terminal Giving to the server, and verifying that the second terminal has the discovered right according to the identity of the second terminal and the identifier of the application that uses the discovered service in the second terminal, and the application has the right to use the discovered function , sending a fourth request to the base station.
  • the processor 2101 is configured to control the transmitter 2102 to send, to the server, a fifth request that includes the identity of the second terminal, so that the server, when verifying that the second terminal has the discovered right according to the identity of the second terminal,
  • the management entity sends the sixth request.
  • the processor 2101 is configured to control the transmitter 2102 to send, to the server, a fifth request that includes an identity of the second terminal and an identifier of an application that uses the discovered service in the second terminal, so that the server is in accordance with the second terminal.
  • the identity verification verifies that the second terminal has the discovered right, and when the application has the right to use the discovered function, sends a sixth request to the management entity.
  • the processor 2101 is configured to control the transmitter 2102 to send a fifth request to the server that includes the global unique temporary identifier GUTI of the second terminal, so that the server sends the sixth request to the management entity according to the GUTI.
  • the processor 2101 is configured to: after the receiver 2103 receives the discovered resource, control the transmitter 2102 to immediately send the second message;
  • a receiver 2103 configured to receive a first message sent by the first terminal
  • the processor 2101 is configured to control the transmitter 2102 to send the second message according to the first message received by the receiver 2103.
  • the second terminal provided by the embodiment of the present invention sends the second message including the service identifier of the second terminal, so that the first terminal acquires the description information of the second terminal from the server according to the identifier of the second terminal.
  • the second terminal achieves the purpose of reducing interference between the second terminals by acquiring the discovered resources allocated by the base station and sending the second message according to the obtained discovered resources.
  • FIG. 33 shows a device configuration diagram of a server according to an embodiment of the present invention.
  • the server can include:
  • the first identifier receiving module 2201 is configured to receive the service identifier of the second terminal that is sent by the first terminal, and the service identifier of the second terminal is sent by the first terminal according to the at least one second terminal and includes the second terminal.
  • the second message of the service identifier is obtained;
  • the information obtaining module 2202 is configured to obtain the description information of the second terminal according to the service identifier of the second terminal received by the first identifier receiving module 2201;
  • the information providing module 2203 is configured to provide the description information of the second terminal acquired by the information acquiring module 2202 to the first terminal.
  • the server provided by the embodiment of the present invention receives the service identifier of the second terminal that is sent by the first terminal, and queries the description information of the second terminal corresponding to the service identifier of the second terminal, and provides the description information to the server.
  • the first terminal solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can achieve the purpose of discovering the terminal with unknown identity in a certain range and expanding the application scope.
  • FIG. 34 shows a device configuration diagram of a server according to another embodiment of the present invention.
  • the server can include:
  • the first identifier receiving module 2301 is configured to receive a service identifier of the second terminal that is sent by the first terminal, where the service identifier of the second terminal is sent by the first terminal according to the at least one second terminal and includes the second terminal.
  • the second message of the service identifier is obtained;
  • the information obtaining module 2302 is configured to obtain the description information of the second terminal according to the service identifier of the second terminal received by the first identifier receiving module 2301.
  • the information providing module 2303 is configured to provide the description information of the second terminal acquired by the information acquiring module 2302 to the first terminal.
  • the first identifier receiving module 2301 includes:
  • the first identifier receiving unit 2301a is configured to receive a service identifier of the second terminal sent by the first terminal;
  • the second identifier receiving unit 2301b is configured to receive a service identifier of the second terminal that is sent by the management entity, where the service identifier of the second terminal is a service identifier sent by the first terminal to the management entity.
  • the information obtaining module 2302 includes:
  • the first query unit 2302a is configured to locally query the description information of the second terminal corresponding to the service identifier of the second terminal;
  • the second query unit 2302b is configured to query, according to the service identifier of the second terminal, the description information of the second terminal to the home server of the second terminal or the server currently serving the second terminal.
  • the information providing module 2303 includes:
  • a first information sending unit 2303a configured to acquire the second terminal by the information acquiring module 2302 The description information is sent to the first terminal;
  • the second information sending unit 2303b is configured to send the description information of the second terminal acquired by the information acquiring module 2102 to the management entity, so that the management entity sends the description information of the second terminal to the first terminal.
  • the server also includes:
  • the second identifier receiving module 2304 is configured to receive, before the information acquiring module 2302, the description information of the second terminal corresponding to the service identifier of the second terminal, the service identifier of the first terminal sent by the first terminal;
  • the third identifier receiving module 2305 is configured to receive, before the information acquiring module 2302 acquires the description information of the second terminal corresponding to the service identifier of the second terminal, the service identifier of the first terminal sent by the management entity, where the The service identifier of a terminal is sent by the first terminal to the management entity;
  • the first verification module 2306 is configured to verify, according to the service identifier of the first terminal received by the second identifier receiving module 2304 or the third identifier receiving module 2305, whether the first terminal has the right to discover the second terminal;
  • the information obtaining module 2302 is configured to, if the verification result of the first verification module 2306 is that the first terminal has the right to discover the second terminal, perform the step of acquiring the description information of the second terminal according to the service identifier of the second terminal. .
  • the server also includes:
  • the fourth identifier receiving module 2307 is configured to receive, before the first identifier receiving module 2301 receives the service identifier of the second terminal that is sent by the first terminal, the identity identifier of the first terminal that is sent by the management entity, where the first terminal is The identity identifier is an identifier included in the first request sent by the first terminal to the management entity;
  • the second verification module 2308 is configured to verify, according to the identity of the first terminal, whether the first terminal has the right to discover the terminal;
  • the first indication feedback module 2309 is configured to: if the verification result of the second verification module 2308 is that the first terminal has the right to discover the terminal, feed back to the management entity an indication that the first terminal has the right to discover the terminal, so that the management entity is receiving Sending a second request to the base station after the indication;
  • the first request is used to request to acquire a discovery resource
  • the second request is used to request the base station to acquire and send a discovery resource to the first terminal, where the discovery resource is a resource used by the first terminal to listen to the second message.
  • the server also includes:
  • the fifth identifier receiving module 2310 is configured to receive, before the first identifier receiving module 2301 receives the service identifier of the second terminal that is sent by the first terminal, the identity identifier of the first terminal and the first terminal sent by the management entity. Using the identifier of the application for discovering the service, the identifier of the first terminal and the identifier of the application that uses the discovery service in the first terminal are identifiers included in the first request sent by the first terminal to the management entity;
  • the third verification module 2311 is configured to verify, according to the identity of the first terminal, whether the first terminal has the right to discover the terminal;
  • the fourth verification module 2312 is configured to verify, according to the identifier of the application that uses the discovery service in the first terminal, whether the application has the right to use the discovery function;
  • the second indication feedback module 2313 is configured to: if the verification result of the third verification module 2311 is that the first terminal has the right to discover the terminal, and the verification result of the fourth verification module 2312 is that the application has the right to use the discovery function, then The management entity feeds back that the first terminal has the right to discover the terminal and the application has an indication of the right to use the discovery function, so that the management entity sends the second request to the base station after receiving the indication;
  • the first request is used to request to acquire a discovery resource
  • the second request is used to request the base station to acquire and send a discovery resource to the first terminal, where the discovery resource is a resource used by the first terminal to listen to the second message.
  • the server also includes:
  • the sixth identifier receiving module 2314 is configured to receive, before the first identifier receiving module 2312 receives the service identifier of the second terminal that is sent by the first terminal, the identity of the second terminal that is sent by the management entity, where the second terminal
  • the identity identifier is an identifier included in a third request sent by the second terminal to the management entity;
  • the fifth verification module 2315 is configured to verify, according to the identity of the second terminal, whether the second terminal has the discovered permission
  • the third indication feedback module 2316 is configured to: if the verification result of the fifth verification module 2315 is that the second terminal has the discovered right, return an instruction to the management entity that the second terminal has the discovered right, so that the management entity is After receiving the indication, sending a fourth request to the base station;
  • the third request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the resource used when the second terminal sends the second message.
  • the server also includes:
  • the seventh identifier receiving module 2317 is configured to receive, before the first identifier receiving module 2301 receives the service identifier of the second terminal that is sent by the first terminal, the identity identifier of the second terminal that is sent by the management entity, and the second terminal. Using the identifier of the application of the discovered service, the identifier of the second terminal and the identifier of the application that uses the discovered service in the second terminal are identifiers included in the third request sent by the second terminal to the management entity;
  • the sixth verification module 2318 is configured to verify, according to the identity of the second terminal, whether the second terminal has the discovered permission
  • the seventh verification module 2319 is configured to verify, according to the identifier of the application that uses the discovered service in the second terminal, whether the application has the right to use the discovered function;
  • the fourth indication feedback module 2320 is configured to: if the verification result of the sixth verification module 2318 is that the first terminal has the discovered right, and the verification result of the seventh verification module 2319 is that the application has the right to use the discovered function, Feeding back to the management entity that the second terminal has the discovered right and the application has an indication of the right to use the discovered function, so that the management entity sends a fourth request to the base station after receiving the indication;
  • the third request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the resource used when the second terminal sends the second message.
  • the server also includes:
  • the first request receiving module 2321 is configured to receive, after the first identifier receiving module 2301 receives the service identifier of the second terminal that is sent by the first terminal, the fifth request sent by the second terminal;
  • the third request sending module 2322 is configured to send a sixth request to the management entity, so that the management entity sends the fourth request to the base station;
  • the fifth request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is used when the second terminal sends the second message. resource of.
  • the fifth request includes the global unique temporary identifier GUTI of the second terminal;
  • the third request sending module 2322 is configured to send the sixth request to the management entity according to the GUTI.
  • the fifth request further includes the identity of the second terminal.
  • the server further includes: an eighth verification module 2323, configured to send the sixth request to the management entity before the third request sending module 2322, according to the second The identity of the terminal verifies whether the second terminal has the discovered right.
  • the third request sending module 2322 is configured to: if the verification result of the eighth verification module 2323 is the second terminal The terminal has the discovered permission, and then performs the step of sending the sixth request to the management entity.
  • the fifth request may further include an identity of the second terminal and an identifier of an application that uses the discovered service in the second terminal; the server further includes:
  • the ninth verification module 2324 is configured to verify, according to the identity of the second terminal, whether the second terminal has the discovered right before the third request sending module 2322 sends the sixth request to the management entity; the tenth verification module 2325, For verifying, before the third request sending module 2322 sends the sixth request to the management entity, whether the application has the right to use the discovered function according to the identifier of the application that uses the discovered service in the second terminal;
  • the third request sending module 2322 is configured to: if the verification result of the ninth verification module 2324 is that the first terminal has the discovered right, and the verification result of the tenth verification module 2325 is that the application has the right to use the discovered function. Then, the step of sending a sixth request to the management entity is performed.
  • the server provided by the embodiment of the present invention receives the service identifier of the second terminal that is sent by the first terminal, and queries the description information of the second terminal corresponding to the service identifier of the second terminal, and provides the description information to the server.
  • the first terminal solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can achieve the purpose of discovering the terminal with unknown identity in a certain range and expanding the scope of application;
  • the server provided by the example, by receiving the service identifier of the first terminal sent by the management entity, and verifying, according to the service identifier of the first terminal, whether the first terminal has the discovery corresponding to the service identifier in the identifier of the at least one second terminal.
  • the right of the second terminal achieves the purpose of protecting the privacy of the second terminal.
  • FIG. 35 shows a device configuration diagram of a server according to an embodiment of the present invention.
  • the server can include:
  • the first request receiving module 2401 is configured to receive a fifth request sent by the second terminal;
  • the third request sending module 2402 is configured to send a sixth request to the management entity, so that the management entity sends the fourth request to the base station;
  • the fifth request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is used by the second terminal to send the second message. Resources used.
  • the server provided by the embodiment of the present invention sends a sixth request to the management entity after receiving the fifth request sent by the second terminal, so that the management entity sends a request to the base station to allocate the base station to the second Transmitting, by the terminal, a fourth request for the discovered resource, so that the second terminal is found according to the
  • the resource sends a second message to reduce the interference between the terminals.
  • FIG. 36 shows a device configuration diagram of a server according to another embodiment of the present invention.
  • the server can include:
  • the first request receiving module 2501 is configured to receive a fifth request sent by the second terminal;
  • a third request sending module 2502 configured to send a sixth request to the management entity, so that the management entity sends a fourth request to the base station;
  • the fifth request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is used by the second terminal to send the second message. Resources used.
  • the fifth request includes the global unique temporary identifier GUTI of the second terminal
  • the third request sending module 2502 is configured to send the sixth request to the management entity according to the GUTI.
  • the server provided by the embodiment of the present invention sends a sixth request to the management entity after receiving the fifth request sent by the second terminal, so that the management entity sends a request to the base station to allocate the base station to the second
  • the terminal sends a fourth request for the discovered resource, so that the second terminal sends the second message according to the discovered resource, so as to reduce the interference between the terminals.
  • FIG. 37 shows a device configuration diagram of a server according to an embodiment of the present invention.
  • the server may include: a receiver 2601, a processor 2602, and a transmitter 2603;
  • the receiver 2601 is configured to receive a service identifier of the second terminal that is sent by the first terminal, where the service identifier of the second terminal is sent by the first terminal according to the at least one second terminal, and the service identifier of the second terminal is included. Obtained by the second message;
  • the processor 2602 is configured to obtain, according to the service identifier of the second terminal received by the receiver 2601, description information of the second terminal.
  • the processor 2602 is configured to control the transmitter 2603 to provide the obtained description information of the second terminal to the first terminal.
  • the server provided by the embodiment of the present invention receives the service identifier of the second terminal that is sent by the first terminal, and queries the description information of the second terminal corresponding to the service identifier of the second terminal, and provides the description information to the server.
  • the first terminal solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can achieve the purpose of discovering the terminal with unknown identity in a certain range and expanding the application scope.
  • FIG. 38 shows a device configuration diagram of a server according to another embodiment of the present invention.
  • the server may include: a receiver 2701, a processor 2702, a transmitter 2703, and a memory 2704;
  • the receiver 2701 is configured to receive a service identifier of the second terminal that is sent by the first terminal, where the service identifier of the second terminal is sent by the first terminal according to the at least one second terminal, and the service identifier of the second terminal is included. Obtained by the second message;
  • the processor 2702 is configured to query, according to the service identifier of the second terminal received by the receiver 2701, the description information of the second terminal.
  • the processor 2702 is configured to control the transmitter 2703 to provide the queried description information of the second terminal to the first terminal.
  • the receiver 2701 is configured to receive the service identifier of the second terminal that is sent by the first terminal, and the receiver 2701 is configured to receive, by the management entity, a service identifier of the second terminal, where the service identifier of the second terminal is The service identifier sent by a terminal to the management entity.
  • the processor 2702 is configured to locally query, by the local terminal, description information of the second terminal corresponding to the service identifier of the second terminal.
  • the processor 2702 is configured to query the home server of the second terminal or the server currently serving the second terminal according to the service identifier of the second terminal to query the description information of the second terminal.
  • the processor 2702 is configured to control the transmitter 2703 to send the obtained description information of the second terminal to the first terminal.
  • the processor 2702 is configured to control the transmitter 2703 to send the obtained description information of the second terminal to the management entity, so that the management entity sends the description information of the second terminal to the first terminal.
  • the receiver 2701 is configured to: before the processor 2702 acquires the description information of the second terminal corresponding to the service identifier of the second terminal, receive the service identifier of the first terminal that is sent by the first terminal;
  • the receiver 2701 is configured to: before the processor 2702 queries the description information of the second terminal corresponding to the service identifier of the second terminal, the service identifier of the first terminal sent by the management entity, the service of the first terminal The identifier is sent by the first terminal to the management entity;
  • the processor 2702 is configured to verify, according to the service identifier of the first terminal received by the receiver 2701, whether the first terminal has the right to discover the second terminal.
  • the processor 2702 is configured to: if the verification result is that the first terminal has the right to discover the second terminal, perform the step of querying the description information of the second terminal according to the service identifier of the second terminal.
  • the receiver 2701 is configured to: before receiving the service identifier of the second terminal that is sent by the first terminal, receive the identity of the first terminal that is sent by the management entity, where the identity of the first terminal is included in the first terminal. An identifier in the first request to the management entity;
  • the processor 2702 is configured to verify, according to the identity of the first terminal, whether the first terminal has the right to discover the terminal;
  • the processor 2702 is configured to: if the verification result is that the first terminal has the right to discover the terminal, the control transmitter 2703 feeds back to the management entity an indication that the first terminal has the right to discover the terminal, so that the management entity receives the indication
  • the base station sends a second request;
  • the first request is used to request to acquire a discovery resource
  • the second request is used to request the base station to acquire and send a discovery resource to the first terminal, where the discovery resource is a resource used by the first terminal to listen to the second message.
  • the receiver 2701 is configured to: before receiving the service identifier of the second terminal that is sent by the first terminal, receive an identifier of the first terminal sent by the management entity, and an identifier of an application that uses the discovery service in the first terminal, where The identifier of the first terminal and the identifier of the application that uses the discovery service in the first terminal are identifiers included in the first request sent by the first terminal to the management entity;
  • the processor 2702 is configured to verify, according to the identity of the first terminal, whether the first terminal has the right to discover the terminal;
  • the processor 2702 is configured to verify, according to the identifier of the application that uses the discovery service in the first terminal, whether the application has the right to use the discovery function.
  • the processor 2702 is configured to: if the verification result is that the first terminal has the right to discover the terminal, and the application has the right to use the discovery function, the control transmitter 2703 feeds back to the management entity that the first terminal has the right to discover the terminal and the The application has an indication of the right to use the discovery function, so that the management entity sends a second request to the base station after receiving the indication;
  • the first request is used to request to acquire a discovery resource
  • the second request is used to request the base station to acquire and send a discovery resource to the first terminal, where the discovery resource is a resource used by the first terminal to listen to the second message.
  • the receiver 2701 is configured to: before receiving the service identifier of the second terminal that is sent by the first terminal, receive the identity of the second terminal that is sent by the management entity, where the identity of the second terminal is included in the second terminal.
  • the processor 2702 is configured to verify, according to the identity of the second terminal, whether the second terminal has the discovered right; The processor 2702 is configured to: if the verification result is that the second terminal has the discovered right, the control transmitter 2703 feeds back to the management entity an indication that the second terminal has the discovered right, so that the management entity receives the indication. Sending a fourth request to the base station;
  • the third request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the resource used when the second terminal sends the second message.
  • the receiver 2701 is configured to: before receiving the service identifier of the second terminal that is sent by the first terminal, receive the identity of the second terminal sent by the management entity, and the identifier of the application that uses the discovered service in the second terminal, The identity of the second terminal and the identifier of the application that uses the discovered service in the second terminal are identifiers included in the third request sent by the second terminal to the management entity;
  • the processor 2702 is configured to verify, according to the identity of the second terminal, whether the second terminal has the discovered right;
  • the processor 2702 is configured to verify, according to the identifier of the application that uses the discovered service in the second terminal, whether the application has the right to use the discovered function;
  • the processor 2702 is configured to: if the verification result is that the first terminal has the discovered right, and the application has the right to use the discovered function, the control transmitter 2703 feeds back to the management entity that the second terminal has the discovered right and The application has an indication of the right to use the discovered function, so that the management entity sends a fourth request to the base station after receiving the indication;
  • the third request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is the resource used when the second terminal sends the second message.
  • the receiver 2701 is configured to receive, after receiving the service identifier of the second terminal that is sent by the first terminal, a fifth request sent by the second terminal;
  • the processor 2702 is configured to control the transmitter 2703 to send a sixth request to the management entity, so that the management entity sends a fourth request to the base station;
  • the fifth request is used to request to acquire the discovered resource
  • the fourth request is used to request the base station to allocate and send the discovered resource to the second terminal, where the discovered resource is used when the second terminal sends the second message. resource of.
  • the fifth request includes the global unique temporary identifier GUTI of the second terminal;
  • the processor 2702 is configured to control, according to the GUTI, the transmitter 2703 to send the sixth request to the management entity.
  • the fifth request further includes an identity of the second terminal;
  • the processor 2702 is configured to verify, according to the identity of the second terminal, whether the second terminal has the discovered right before sending the sixth request to the management entity by the control transmitter 2703;
  • the processor 2702 is configured to: if the verification result is that the second terminal has the discovered right, perform the step of the control transmitter 2703 sending the sixth request to the management entity.
  • the fifth request may further include an identity of the second terminal and an identifier of an application that uses the discovered service in the second terminal;
  • the processor 2702 is configured to verify, according to the identity of the second terminal, whether the second terminal has the discovered right before sending the sixth request to the management entity by the control transmitter 2703;
  • the processor 2703 is configured to verify, according to the identifier of the application that uses the discovered service in the second terminal, whether the application has the right to use the discovered function before the control transmitter 2703 sends the sixth request to the management entity.
  • the processor 2703 is configured to: if the verification result is that the first terminal has the discovered right, and the application has the right to use the discovered function, perform the step of controlling the transmitter 2703 to send the sixth request to the management entity.
  • the server provided by the embodiment of the present invention receives the service identifier of the second terminal that is sent by the first terminal, and queries the description information of the second terminal corresponding to the service identifier of the second terminal, and provides the description information to the server.
  • the first terminal solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can achieve the purpose of discovering the terminal with unknown identity in a certain range and expanding the scope of application;
  • the server provided by the example, by receiving the service identifier of the first terminal sent by the management entity, and verifying, according to the service identifier of the first terminal, whether the first terminal has the discovery corresponding to the service identifier in the identifier of the at least one second terminal.
  • the right of the second terminal achieves the purpose of protecting the privacy of the second terminal.
  • FIG. 39 a device configuration diagram of a base station according to an embodiment of the present invention is shown.
  • the base station can include:
  • the discovery resource providing module 2801 is configured to provide a discovery resource to the first terminal, so that the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource;
  • the first terminal may obtain the service identifier of the second terminal according to the second message, and according to the service identifier of the second terminal, from the ⁇ !
  • the server obtains the description information of the second terminal.
  • the base station provided by the embodiment of the present invention provides a discovery resource to the first terminal,
  • the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource, and obtains the service identifier of the second terminal according to the second message, and obtains the second according to the service identifier of the second terminal.
  • the description information of the terminal solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can achieve the purpose of discovering the terminal with unknown identity in a certain range and expanding the application scope.
  • FIG. 40 shows a device configuration diagram of a base station according to another embodiment of the present invention.
  • the base station can include:
  • the discovery resource providing module 2901 is configured to provide a discovery resource to the first terminal, so that the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource;
  • the first terminal may obtain the service identifier of the second terminal according to the second message, and obtain the description information of the second terminal from the server according to the service identifier of the second terminal.
  • the discovery resource providing module 2901 includes:
  • the first request receiving unit 2901a is configured to receive a second request sent by the management entity, where the second request is sent by the management entity according to the first request sent by the first terminal;
  • the first obtaining unit 2901b is configured to acquire the discovery resource.
  • the first discovery resource sending unit 2901c is configured to send the discovery resource acquired by the first acquiring unit 2901b to the first terminal;
  • the second discovery resource sending unit 2901d is configured to send the discovery resource acquired by the first obtaining unit 2901b to the management entity, so that the management entity sends the discovery resource to the first terminal;
  • the discovery resource includes a discovery resource of the serving cell of the first terminal; or the discovery resource includes a discovery resource of the serving cell of the first terminal and a discovery resource of the cell adjacent to the serving cell.
  • the first request receiving unit 2901a is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a first indication, where the first indication is used to indicate that the base station sends the discovery resource to the first terminal or is used to indicate The base station acquires and sends a discovery resource to the first terminal;
  • the first discovery resource sending unit 2901c is configured to send the discovery resource to the first terminal by using an RRC message.
  • the first request receiving unit 2901a is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a second indication, where the second indication is used to indicate that the base station sends the discovery resource to the management entity or is used to indicate the base station. Acquire and send discovery resources to the management entity;
  • the second discovery resource sending unit 2901d is configured to send the discovery resource to the management entity by using a container, so that the management entity sends the discovery resource to the first terminal by using the non-access stratum NAS message.
  • the discovery resource providing module 2901 includes:
  • a second acquiring unit 2901e configured to acquire a discovery resource corresponding to the first terminal
  • the system information sending unit 2901f is configured to send system information including the discovery resource acquired by the second acquiring unit 2901 e in the cell where the first terminal is located;
  • the discovery resource includes the discovery resource of the serving cell of the first terminal; or the discovery resource includes the discovery resource of the serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell.
  • the first obtaining unit 2901b includes:
  • the first query subunit 2901ba is configured to locally query the discovery resource of the current serving cell of the first terminal;
  • a second query subunit 2901bb configured to locally query the discovery resource of the current serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell;
  • the third query subunit 2901bc is configured to locally query the discovery resource of the current serving cell of the first terminal, and query the neighboring base station for the discovery resource of the cell adjacent to the serving cell by using the X2 interface;
  • the second obtaining unit 2901e includes:
  • a fourth query subunit 2901ea configured to locally query the discovery resource of the current serving cell of the first terminal
  • a fifth query subunit 2901eb configured to locally query the discovery resource of the current serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell;
  • the sixth query subunit 2901ec is configured to locally query the discovery resource of the current serving cell of the first terminal, and query the neighboring base station for the discovery resource of the cell adjacent to the serving cell by using the X2 interface.
  • adjacent base stations are connected through an X2 interface. If the base stations exchange the discovery resources of the cells maintained by each of the base stations, or notify the neighboring base stations when the discovery resources of a certain cell in the base station change, the base station stores the cells maintained by the base station and the base station. The discovery resource of the neighboring cell of each cell is maintained. At this time, the base station can directly query the discovery resource of the current serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell. If the base station only stores the discovery resources of the cells maintained by the base station, and does not store the discovery resources of the neighboring cells of the cells maintained by the base station, the base station may query the neighboring base station with the first terminal through the X2 interface. Discovery resources of cells adjacent to the serving cell. The base station also includes:
  • the second request receiving module 2902 is configured to receive a fourth request sent by the management entity, where the fourth request is sent by the management entity according to the third request sent by the second terminal;
  • the discovered resource allocation module 2903 is configured to allocate a discovered resource to the second terminal according to the fourth request received by the second request receiving module 2902, where the discovered resource is a resource used when the second terminal sends the second message. ;
  • the first discovered resource sending module 2904 is configured to send the discovered resource allocated by the discovered resource allocation module 2903 to the second terminal;
  • the second discovered resource sending module 2905 is configured to send the discovered resource allocated by the discovered resource allocation module 2903 to the management entity, so that the management entity sends the discovered resource to the second terminal.
  • the second request receiving module 2902 is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a third indication, where the third indication is used to indicate that the base station allocates the discovered resource or allocates the second terminal Discovering a resource or allocating a discovered resource and transmitting the discovered resource to the second terminal or allocating the discovered resource to the second terminal and transmitting the discovered resource to the second terminal;
  • the first discovered resource sending module 2904 is configured to send the discovered resource to the second terminal by using an RRC message.
  • the second request receiving module 2902 is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the second terminal. Discovering resources or allocating discovered resources and transmitting the discovered resources to the management entity or allocating the discovered resources to the second terminal and transmitting the discovered resources to the management entity;
  • the second discovered resource sending module 2905 is configured to send the discovered resource to the management entity by using the container, so that the management entity sends the discovered resource to the second terminal by using the non-access stratum NAS message.
  • the base station provided by the embodiment of the present invention provides the discovery resource to the first terminal, so that the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource, and obtains the second message according to the second message.
  • the service identifier of the second terminal is obtained, and the description information of the second terminal is obtained according to the service identifier of the second terminal, which solves the problem that the first terminal must know the unique identity of the second terminal in advance in the prior art.
  • the base station provided by the embodiment of the present invention is configured to allocate the discovered resource to the second terminal, and allocate the discovery resource to the first terminal, so that the first terminal is configured.
  • FIG. 41 shows a device configuration diagram of a base station according to an embodiment of the present invention.
  • the base station can include:
  • the second request receiving module 3001 is configured to receive a fourth request sent by the management entity, where the fourth request is sent by the management entity according to the third request sent by the second terminal;
  • the discovered resource allocation module 3002 is configured to allocate a discovered resource to the second terminal according to the fourth request received by the second request receiving module 3001, where the discovered resource is a resource used by the second terminal to send the second message;
  • the first discovered resource sending module 3003 is configured to send the discovered resource allocated by the discovered resource allocation module 3002 to the second terminal;
  • the second discovered resource sending module 3004 is configured to send the discovered resource allocated by the discovered resource allocation module 3002 to the management entity, so that the management entity sends the discovered resource to the second terminal.
  • the base station provided by the embodiment of the present invention allocates the discovered resource to the second terminal according to the fourth request sent by the management entity, and sends the discovered resource to the second terminal, or the discovered resource is managed.
  • the entity sends the second terminal, so that the second terminal sends the second message according to the discovered resource, so as to reduce the interference between the terminals.
  • FIG. 42 shows a device configuration diagram of a base station according to another embodiment of the present invention.
  • the base station can include:
  • the second request receiving module 3101 is configured to receive a fourth request sent by the management entity, where the fourth request is sent by the management entity according to the third request sent by the second terminal;
  • the discovered resource allocation module 3102 is configured to allocate a discovered resource to the second terminal according to the fourth request received by the second request receiving module 3101, where the discovered resource is a resource used by the second terminal to send the second message;
  • the first discovered resource sending module 3103 is configured to send the discovered resource allocated by the discovered resource allocation module 3102 to the second terminal;
  • the second discovered resource sending module 3104 is configured to send the discovered resource allocated by the discovered resource allocation module 3102 to the management entity, so that the management entity sends the discovered resource to the second terminal.
  • the second request receiving module 3101 is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a third indication, where the third indication is used to indicate that the base station allocates the discovered resource or is the second terminal. Allocating the discovered resource or allocating the discovered resource and transmitting the discovered resource to the second terminal or allocating the discovered resource to the second terminal and sending the discovered resource to the second terminal;
  • the first discovered resource sending module 2903 is configured to send the discovered resource to the second terminal by using an RRC message.
  • the second request receiving module 3101 is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the second terminal. Discovering resources or allocating discovered resources and transmitting the discovered resources to the management entity or allocating the discovered resources to the second terminal and transmitting the discovered resources to the management entity;
  • the second discovered resource sending module 2904 is configured to send the discovered resource to the management entity by using the container, so that the management entity sends the discovered resource to the second terminal by using the non-access stratum NAS message.
  • FIG. 43 shows a device configuration diagram of a base station according to an embodiment of the present invention.
  • the base station can include: a processor 3201, a receiver 3202, and a transmitter 3203;
  • the processor 3201 is configured to control the receiver 3202 and the transmitter 3203 to provide the discovery resource to the first terminal, so that the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource, and obtains the second message according to the second message.
  • the first terminal may obtain the description information of the second terminal from the server according to the service identifier of the second terminal.
  • the base station provided by the embodiment of the present invention provides the discovery resource to the first terminal, so that the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource, and obtains the second message according to the second message.
  • the service identifier of the second terminal is obtained, and the description information of the second terminal is obtained according to the service identifier of the second terminal, which solves the problem that the first terminal must know the unique identity of the second terminal in advance in the prior art. It is found that a terminal with unknown identity in a certain range is extended to extend the scope of application.
  • FIG. 44 shows a device configuration diagram of a base station according to another embodiment of the present invention.
  • the base station may include: a processor 3301, a receiver 3302, and a transmitter 3303;
  • the processor 3301 is configured to control the receiver 3302 and the transmitter 3303 to provide the discovery resource to the first terminal, so that the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource.
  • the first terminal may obtain the service identifier of the second terminal according to the second message, and obtain the description information of the second terminal from the server according to the service identifier of the second terminal.
  • the receiver 3302 is configured to receive a second request sent by the management entity, where the second request is sent by the management entity according to the first request sent by the first terminal.
  • the processor 3301 is configured to acquire the discovery resource.
  • the processor 3301 is configured to control the transmitter 3303 to send the obtained discovery resource to the first terminal.
  • the processor 3301 is configured to control the transmitter 3303 to send the obtained discovery resource to the management entity, so that the management entity can use the discovery resource. Send to the first terminal;
  • the discovery resource includes a discovery resource of the serving cell of the first terminal; or the discovery resource includes a discovery resource of the serving cell of the first terminal and a discovery resource of the cell adjacent to the serving cell.
  • the receiver 3302 is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a first indication, where the first indication is used to indicate that the base station sends the discovery resource to the first terminal or is used to indicate that the base station acquires Sending a discovery resource to the first terminal;
  • the processor 3301 is configured to control the transmitter 3303 to send the discovery resource to the first terminal by using an RRC message.
  • the receiver 3302 is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a second indication, where the second indication is used to indicate that the base station sends the discovery resource to the management entity or is used to indicate that the base station acquires the direction.
  • the management entity sends the discovery resource;
  • the processor 3301 is configured to control the transmitter 3303 to send the discovery resource to the management entity by using the container, so that the management entity sends the discovery resource to the first terminal by using the non-access stratum NAS message.
  • the processor 3301 is configured to acquire a discovery resource corresponding to the first terminal.
  • the processor 3301 is configured to control the transmitter 3303 to send system information including the obtained discovery resource in a cell where the first terminal is located;
  • the discovery resource includes the discovery resource of the serving cell of the first terminal; or the discovery resource includes the discovery resource of the serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell.
  • the processor 3301 is configured to locally query the discovery resource of the current serving cell of the first terminal, and the processor 3301 is configured to locally query the discovery resource of the current serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell.
  • the processor 3301 is configured to locally query the discovery resource of the current serving cell of the first terminal, and control The receiver 3302 and the transmitter 3303 query the neighboring base station for the discovery resource of the cell adjacent to the serving cell through the X2 interface.
  • adjacent base stations are connected through an X2 interface. If the base stations exchange the discovery resources of the cells maintained by each of the base stations, or notify the neighboring base stations when the discovery resources of a certain cell in the base station change, the base station stores the cells maintained by the base station and the base station. The discovery resource of the neighboring cell of each cell is maintained. At this time, the base station can directly query the discovery resource of the current serving cell of the first terminal and the discovery resource of the cell adjacent to the serving cell. If the base station only stores the discovery resources of the cells maintained by the base station, and does not store the discovery resources of the neighboring cells of the cells maintained by the base station, the base station may query the neighboring base station with the first terminal through the X2 interface. Discovery resources of cells adjacent to the serving cell.
  • the receiver 3302 is configured to receive a fourth request sent by the management entity, where the fourth request is sent by the management entity according to the third request sent by the second terminal.
  • the processor 3301 is configured to allocate a discovered resource to the second terminal according to the fourth request received by the receiver 3302, where the discovered resource is a resource used when the second terminal sends the second message;
  • the processor 3301 is configured to control the transmitter 3303 to send the allocated discovered resource to the second terminal, and the processor 3301 is configured to control the transmitter 3303 to send the allocated discovered resource to the management entity, so that the management entity finds the discovered resource.
  • the resource is sent to the second terminal.
  • the receiver 3302 is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a third indication, where the third indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource to the second terminal or Allocating the discovered resource and transmitting the discovered resource to the second terminal or allocating the discovered resource to the second terminal and sending the discovered resource to the second terminal;
  • the processor 3301 is configured to control the transmitter 3303 to send the discovered resource to the second terminal by using an RRC message.
  • the receiver 3302 is configured to receive an S1-AP message sent by the management entity, where the S1-AP message includes a fourth indication, where the fourth indication is used to indicate that the base station allocates the discovered resource or allocates the discovered resource to the second terminal or Allocating the discovered resource and transmitting the discovered resource to the management entity or allocating the discovered resource to the second terminal and sending the discovered resource to the management entity;
  • the processor 3301 is configured to control the transmitter 3303 to send the discovered resource to the management entity by using the container, so that the management entity sends the discovered resource to the second terminal by using the non-access stratum NAS message.
  • the base station provided by the embodiment of the present invention provides a discovery resource to the first terminal,
  • the first terminal listens to the second message sent by the at least one second terminal according to the discovery resource, and obtains the service identifier of the second terminal according to the second message, and acquires the second terminal according to the service identifier of the second terminal.
  • the description of the present invention solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can achieve the purpose of discovering the terminal with unknown identity in a certain range and expanding the scope of application;
  • the base station is configured to allocate the discovered resource to the second terminal, and allocate the discovery resource to the first terminal, so that the first terminal monitors the second message sent by the second terminal according to the discovered resource according to the discovery resource, and reduces the terminal.
  • the burden is to save terminal power while effectively reducing interference and saving hardware resources.
  • FIG. 45 shows a device configuration diagram of a management entity provided by an embodiment of the present invention.
  • the management entity can include:
  • the eighth identifier receiving module 3401 is configured to receive a service identifier of the second terminal that is sent by the first terminal, where the service identifier of the second terminal is sent by the first terminal according to the at least one second terminal, and includes the second terminal.
  • the second message of the business identifier is obtained;
  • the third identifier sending module 3402 is configured to send the service identifier of the second terminal received by the eighth identifier receiving module 3401 to the server, so that the server acquires and sends the second terminal to the first terminal according to the service identifier of the second terminal. Descriptive information;
  • the fourth identifier sending module 3403 is configured to send the service identifier of the second terminal received by the eighth identifier receiving module 3401 to the server;
  • the third information receiving module 3404 is configured to receive the description information of the second terminal that is sent by the server, where the third information sending module 3405 is configured to send the description information of the second terminal to the first terminal, where the second terminal The description information is obtained by the server according to the service identifier of the second terminal sent by the fourth identifier sending module 3403.
  • the management entity receives the service identifier of the second terminal sent by the first terminal, and sends the service identifier to the server, so that the server provides the first terminal to the first terminal according to the service identifier of the second terminal.
  • the description information of the second terminal solves the problem that the first terminal in the prior art must know the unique identity of the second terminal in advance, and can achieve the purpose of discovering the terminal with unknown identity in a certain range and expanding the application scope.
  • FIG. 46 shows a device configuration diagram of a management entity according to another embodiment of the present invention.
  • the management entity can include:
  • the eighth identifier receiving module 3501 is configured to receive a service identifier of the second terminal that is sent by the first terminal, where the service identifier of the second terminal is sent by the first terminal according to the at least one second terminal, and includes the second terminal The second message of the business identifier is obtained;
  • the third identifier sending module 3502 is configured to send the service identifier of the second terminal received by the eighth identifier receiving module 3501 to the server, so that the server acquires and sends the second terminal to the first terminal according to the service identifier of the second terminal. Descriptive information;
  • the fourth identifier sending module 3503 is configured to send the service identifier of the second terminal received by the eighth identifier receiving module 3501 to the server;
  • the third information receiving module 3504 is configured to receive the description information of the second terminal that is sent by the server, where the third information sending module 3505 is configured to send the description information of the second terminal to the first terminal, where the second terminal The description information is obtained by the server according to the service identifier of the second terminal sent by the fourth identifier sending module 3503.
  • the management entity also includes:
  • the third request receiving module 3506 is configured to receive, by the eighth identifier receiving module 3501, the first request sent by the first terminal before receiving the service identifier of the second terminal sent by the first terminal;
  • the fourth request sending module 3507 is configured to send a second request to the base station according to the first request received by the third request receiving module 3506, so that the base station sends the discovery resource to the first terminal according to the second request.
  • the fifth request sending module 3508 For transmitting a second request to the base station according to the first request received by the third request receiving module 3506;
  • the discovery resource receiving module 3509 is configured to receive the discovery resource sent by the base station according to the second request sent by the fifth request sending module 3508;
  • the discovery resource sending module 3510 is configured to send the discovery resource received by the discovery resource receiving module 3509 to the first terminal;
  • the discovery resource is a resource used by the first terminal to listen to the second message.
  • the fourth request sending module 3507 is configured to send an S1-AP message to the base station according to the first request, where the S1-AP message includes a first indication, where the first indication is used to indicate that the base station sends the discovery resource to the first terminal or And configured to instruct the base station to acquire and send the discovery resource to the first terminal, so that the base station sends the discovery resource to the first terminal by using an RRC message.
  • the fifth request sending module 3508 is configured to send an S1-AP message to the base station according to the first request, where the S1-AP message includes a second indication, where the second indication is used to indicate that the base station sends the discovery resource to the management entity or is used for Instructing the base station to acquire and send the discovery resource to the management entity;
  • the discovery resource receiving module 3509 is configured to receive the discovery resource that is sent by the base station through the container, and the discovery resource sending module 3510 is configured to send the discovery resource to the first terminal by using the non-access stratum NAS message.
  • the management entity also includes:
  • the fifth identifier sending module 3511 is configured to send the identifier of the first terminal to the server before the fourth request sending module 3507 or the fifth request sending module 3508 sends the second request to the base station according to the first request, so that the server is configured according to the server
  • the identity of the first terminal verifies whether the first terminal has the right to discover the terminal;
  • the first indication receiving module 3512 is configured to receive, by the server, the indication that the first terminal has the right to discover the terminal;
  • the fourth request sending module 3507 is configured to send a second request to the base station according to the first request after the first indication receiving module 3512 receives the indication that the first terminal has the right to discover the terminal fed back by the server;
  • the fifth request sending module 3508 is configured to send a second request to the base station according to the first request after the first indication receiving module 3512 receives the indication that the first terminal has the right to discover the terminal fed back by the server;
  • the first request includes the identity of the first terminal.
  • the management entity also includes:
  • the sixth identifier sending module 3513 is configured to use the identifier of the first terminal and the first terminal before the fourth request sending module 3507 or the fifth request sending module 3508 sends the second request to the base station according to the first request.
  • the identifier of the application of the discovery service is sent to the server, so that the server verifies whether the first terminal has the right to discover the terminal and whether the application has the use according to the identity of the first terminal and the identifier of the application that uses the discovery service in the first terminal. Permission to discover features;
  • a second indication receiving module 3514 configured to receive, by the server, the first terminal has the right to discover the terminal, and the application has an indication of the right to use the discovery function;
  • the fourth request sending module 3507 is configured to: after the second indication receiving module 3514 receives the right that the first terminal has the discovery terminal fed back by the server, and the application has the indication of the right to use the discovery function, according to the first request, to the base station Send a second request;
  • the fifth request sending module 3508 is configured to: after the second indication receiving module 3514 receives the right of the first terminal to have the discovery terminal fed back by the server, and the application has an indication of the right to use the discovery function, according to the first request, to the base station Send a second request;
  • the first request includes an identity of the first terminal and an identifier of an application that uses the discovery service in the first terminal.
  • the management entity also includes:
  • the fourth request receiving module 3515 is configured to receive, by the eighth identifier receiving module 3501, the third request sent by the second terminal before receiving the identifier of the second terminal sent by the first terminal;
  • the fifth request receiving module 3516 is configured to receive, by the eighth identifier receiving module 3501, the sixth request sent by the server before receiving the identifier of the second terminal sent by the first terminal;
  • the sixth request sending module 3517 is configured to receive the third request in the third request receiving module 3515, or after receiving the sixth request, the fifth requesting module 3516 sends a fourth request to the base station, so that the base station according to the first Four requesting allocation and sending the discovered resource to the second terminal;

Abstract

本发明公开了一种发现终端方法、终端、服务器、基站、管理实体及系统,属于无线通信领域。所述方法包括:获取发现资源;根据所述发现资源监听至少一个第二终端发送的第二消息;根据所述第二消息获取所述第二终端的业务标识;根据所述第二终端的业务标识从服务器获取所述第二终端的描述信息。

Description

发现终端方法、 终端、 服务器、 基站、 管理实体及系统 技术领域
本发明涉及无线通信领域, 特别涉及一种发现终端方法、 终端、 服务器、 基站、 管理实体及系统。 背景技术
D2D ( Device-to-Device, 设备到设备)通信是一种在系统的控制下, 允许 终端之间通过复用小区资源直接进行通信的新型技术, 它能够增加蜂窝通信系 统频谱效率, 降低终端发射功率, 在一定程度上解决无线通信系统频谱资源匮 乏的问题。 在 D2D通信中, 终端的发现是进行 D2D通信的基础。
现有的 D2D发现终端方法中, 各个终端预先向网络侧注册各自的唯一身份 标识。 当第一终端需要发现某一第二终端时, 将该第二终端的唯一身份标识发 送给服务器; 服务器根据该第二终端的唯一身份标识将该第二终端的业务标识 发送给该第一终端, 并触发该第二终端广播自身的业务标识; 第一终端监听包 含有业务标识的广播, 将该第二终端的业务标识与接收到的广播中的业务标识 进行比对, 若两者一致, 则确认该包含有业务标识的广播所对应的终端为该第 二终端。
现有的 D2D发现终端方法中, 第一终端必须预先获知第二终端的唯一身份 标识, 只能用于发现已知的特定终端, 应用范围较小。 发明内容
为了解决现有技术中发现终端必须预先获知第二终端的唯一身份标识的问 题, 本发明实施例提供了一种发现终端方法、 终端、 服务器、 基站、 管理实体 及系统。 所述技术方案如下:
第一方面, 提供了一种发现终端方法, 所述方法包括:
第一终端获取发现资源;
所述第一终端根据所述发现资源监听至少一个第二终端发送的第二消息, 所述第二消息中包含所述第二终端的业务标识;
所述第一终端根据所述第二消息获取所述第二终端的业务标识;
所述第一终端根据所述第二终端的业务标识从服务器获取所述第二终端的 描述信息。
在第一方面的第一种可能实现方式中, 所述第一终端根据所述第二终端的 业务标识从服务器获取所述第二终端的描述信息, 包括:
所述第一终端将所述第二终端的业务标识发送给所述服务器; 或者, 所述 第一终端将所述第二终端的业务标识发送给管理实体, 以便所述管理实体将所 述第二终端的业务标识发送给所述服务器;
所述第一终端接收所述服务器发送的所述第二终端的描述信息, 所述第二 终端的描述信息为所述服务器根据所述第二终端的业务标识获取的信息; 或者, 所述第一终端接收所述管理实体发送的所述第二终端的描述信息, 所述第 二终端的描述信息为所述服务器根据所述第二终端的业务标识获取并发送给所 述管理实体的信息。
结合第一方面的第一种可能实现方式, 在第一方面的第二种可能实现方式 中, 在所述第一终端接收所述服务器发送的所述第二终端的描述信息之前, 或 者, 在所述第一终端接收所述管理实体发送的所述第二终端的描述信息之前, 所述方法还包括:
所述第一终端将所述第一终端的业务标识发送给所述服务器, 以便所述服 务器在根据所述第一终端的业务标识验证所述第一终端拥有发现所述第二终端 的权限后, 根据所述第二终端的业务标识获取所述第二终端的描述信息;
或者, 所述第一终端将所述第一终端的业务标识发送给所述管理实体, 以 便所述管理实体将所述第一终端的业务标识发送给所述服务器, 以便所述服务 器在根据所述第一终端的业务标识验证所述第一终端拥有发现所述第二终端的 权限后, 根据所述第二终端的业务标识获取所述第二终端的描述信息。
结合第一方面、 第一方面的第一种可能实现方式或者第一方面的第二种可 能实现方式, 在第一方面的第三种可能实现方式中, 所述第一终端获取发现资 源, 包括:
所述第一终端向管理实体发送第一请求, 以便所述管理实体向基站发送发 现第二请求;
所述第一终端接收所述基站根据所述第二请求发送的所述发现资源; 或者, 所述第一终端接收所述管理实体发送的所述发现资源, 所述发现资源是所述基 站根据所述第二请求发送给所述管理实体的发现资源;
其中, 所述发现资源包括所述第一终端的服务小区的发现资源; 或者, 所 述发现资源包括所述第一终端的服务小区的发现资源以及与所述服务小区相邻 的小区的发现资源。
结合第一方面的第三种可能实现方式, 在第一方面的第四种可能实现方式 中, 所述第一终端接收所述基站根据所述第二请求发送的所述发现资源, 包括: 所述第一终端接收所述基站在接收到所述第二请求后通过 RRC消息发送的 所述发现资源;
其中, 所述第二请求为包含第一指示的 S1-AP消息, 所述第一指示用于指 示所述基站向所述第一终端发送所述发现资源或用于指示所述基站获取所述发 现资源并向所述第一终端发送所述发现资源。
结合第一方面的第三种可能实现方式, 在第一方面的第五种可能实现方式 中, 所述第一终端接收所述管理实体发送的所述发现资源, 包括:
所述第一终端接收所述管理实体通过非接入层消息发送的所述发现资源, 所述发现资源为所述基站在接收到所述第二请求后, 通过容器发送给所述管理 实体的发现资源;
其中, 所述第二请求为包含第二指示的 S1-AP消息, 所述第二指示用于指 示所述基站向所述管理实体发送所述发现资源或用于指示所述基站获取所述发 现资源并向所述管理实体发送所述发现资源。
结合第一方面的第三种可能实现方式, 在第一方面的第六种可能实现方式 中, 所述第一终端向管理实体发送第一请求, 包括:
所述第一终端向所述管理实体发送包含有所述第一终端的身份标识的所述 第一请求, 以便所述管理实体将所述第一终端的身份标识发送给所述服务器, 并在所述服务器根据所述第一终端的身份标识验证所述第一终端拥有发现终端 的权限时, 向所述基站发送所述第二请求。
结合第一方面的第三种可能实现方式, 在第一方面的第七种可能实现方式 中, 所述第一终端向管理实体发送第一请求, 包括:
所述第一终端向所述管理实体发送包含有所述第一终端的身份标识和所述 第一终端中使用发现业务的应用的标识的所述第一请求, 以便所述管理实体将 所述第一终端的身份标识和所述第一终端中使用发现业务的应用的标识发送给 所述服务器, 并在所述服务器根据所述第一终端的身份标识和所述第一终端中 使用发现业务的应用的标识验证所述第一终端拥有发现终端的权限且所述应用 拥有使用发现功能的权限时, 向所述基站发送所述第二请求。 在第一方面的第八种可能实现方式中, 所述第一终端获取发现资源, 包括: 所述第一终端接收所述基站发送的系统信息;
所述第一终端解析所述系统信息中包含的所述发现资源;
其中, 所述发现资源包括所述第一终端的服务小区的发现资源; 或者, 所 述发现资源包括所述第一终端的服务小区的发现资源以及与所述服务小区相邻 的小区的发现资源。
在第一方面的第九种可能实现方式中, 所述第一终端根据所述第二消息获 取所述第二终端的业务标识, 包括:
将所述第二消息中、 符合预定条件的业务标识获取为所述第二终端的业务 标识;
所述预定条件包括下列条件中的至少一种:
所述第二消息的信号强度大于或等于预定强度阔值;
或者, 所述第二消息中包含的第二终端的类别符合预定类别;
或者, 所述第二消息中包含的应用的描述符合预定的应用描述。
在第一方面的第十种可能实现方式中, 所述第一终端根据所述发现资源监 听至少一个第二终端发送的第二消息之前, 还包括:
发送第一消息, 以便所述第二终端在接收到所述第一消息之后, 根据所述 第一消息发送所述第二消息。
第二方面, 提供了一种发现终端方法, 所述方法包括:
第二终端发送包含有所述第二终端的业务标识的第二消息, 以便第一终端 根据所述第二消息获取所述第二终端的业务标识, 并根据所述第二终端的业务 标识从服务器获取所述第二终端的描述信息。
在第二方面的第一种可能实现方式中, 所述第二终端发送包含有所述第二 终端的业务标识的第二消息之前, 还包括:
所述第二终端向管理实体发送第三请求, 以便所述管理实体向基站发送第 四请求; 或者, 所述第二终端向服务器发送第五请求, 以便所述服务器向所述 管理实体发送第六请求, 以便所述管理实体向所述基站发送所述第四请求; 所述第二终端接收所述基站发送的被发现资源; 或者, 所述第二终端接收 所述管理实体发送的、 所述基站发送给所述管理实体的所述被发现资源; 所述 被发现资源为所述基站根据所述第四请求所分配的资源;
所述第二终端发送包含有所述第二终端的业务标识的第二消息, 包括: 所述第二终端根据所述被发现资源发送所述包含有所述第二终端的业务标 识的第二消息。
结合第二方面的第一种可能实现方式, 在第二方面的第二种可能实现方式 中, 所述第二终端接收所述基站发送的被发现资源, 包括:
所述第二终端接收所述基站通过 RRC消息发送的所述被发现资源, 所述被 发现资源是所述基站在接收到所述第四请求后分配的资源;
其中, 所述第四请求为包含第三指示的 S1-AP消息, 所述第三指示用于指 示所述基站分配被发现资源, 或者, 所述第三指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第三指示用于指示所述基站分配被发现资 源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述 基站为所述第二终端分配被发现资源并向所述第二终端发送所述被发现资源。
结合第二方面的第一种可能实现方式, 在第二方面的第三种可能实现方式 中, 所述第二终端接收所述管理实体发送的、 所述基站发送给所述管理实体的 所述被发现资源, 包括:
所述第二终端接收所述管理实体通过非接入层消息发送的所述被发现资 源, 所述被发现资源为所述基站在接收到所述第四请求后, 通过容器发送给所 述管理实体的被发现资源;
其中, 所述第四请求为包含第四指示的 S1-AP消息, 所述第四指示用于指 示所述基站分配被发现资源, 或者, 所述第四指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第四指示用于指示所述基站分配被发现资 源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示用于指示所述 结合第二方面的第一种可能实现方式, 在第二方面的第四种可能实现方式 中, 所述第二终端向管理实体发送第三请求, 包括:
所述第二终端向所述管理实体发送包含有所述第二终端的身份标识的所述 第三请求, 以便所述管理实体将所述第二终端的身份标识发送给所述服务器, 并在所述服务器根据所述第二终端的身份标识验证所述第二终端拥有被发现的 权限时, 向所述基站发送所述第四请求。
结合第二方面的第一种可能实现方式, 在第二方面的第五种可能实现方式 中, 所述第二终端向管理实体发送第三请求, 包括:
所述第二终端向所述管理实体发送包含有所述第二终端的身份标识和所述 第二终端中使用被发现业务的应用的标识的所述第三请求, 以便所述管理实体 将所述第二终端的身份标识和所述第二终端中使用被发现业务的应用的标识发 送给所述服务器, 并在所述服务器根据所述第二终端的身份标识验证所述第二 终端拥有被发现的权限, 且所述应用拥有使用被发现功能的权限时, 向所述基 站发送所述第四请求。
结合第二方面的第一种可能实现方式, 在第二方面的第六种可能实现方式 中, 所述第二终端向服务器发送第五请求, 以便所述服务器向所述管理实体发 送第六请求, 包括:
所述第二终端向所述服务器发送包含有所述第二终端的身份标识的所述第 五请求, 以便所述服务器在根据所述第二终端的身份标识验证所述第二终端拥 有被发现的权限时, 向所述管理实体发送所述第六请求。
结合第二方面的第一种可能实现方式, 在第二方面的第七种可能实现方式 中, 所述第二终端向服务器发送第五请求, 以便所述服务器向所述管理实体发 送第六请求, 包括:
所述第二终端向所述管理实体发送包含有所述第二终端的身份标识和所述 第二终端中使用被发现业务的应用的标识的所述第五请求, 以便所述服务器在 根据所述第二终端的身份标识验证所述第二终端拥有被发现的权限, 且所述应 用拥有使用被发现功能的权限时, 向所述管理实体发送所述第六请求。
结合第二方面的第一种可能实现方式, 在第二方面的第八种可能实现方式 中, 所述第二终端向服务器发送第五请求, 以便所述服务器向所述管理实体发 送第六请求, 以便所述基站发送第四请求, 包括:
所述第二终端向所述服务器发送包含所述第二终端的全球唯一临时标识 GUTI的所述第五请求, 以便所述服务器根据所述 GUTI向所述管理实体发送所 述第六请求。
结合第二方面的第一种可能实现方式, 在第二方面的第九种可能实现方式 中, 所述第二终端发送包含有所述第二终端的业务标识的第二消息, 包括: 所述第二终端在接收到所述被发现资源后, 立即发送所述第二消息; 或者,
所述第二终端接收所述第一终端发送的第一消息, 并根据所述第一消息发 送所述第二消息。
第三方面, 提供了一种发现终端方法, 所述方法包括: 第二终端向管理实体发送第三请求, 以便所述管理实体向基站发送第四请 求; 或者, 所述第二终端向服务器发送第五请求, 以便所述服务器向所述管理 实体发送第六请求, 以便所述管理实体向所述基站发送所述第四请求;
所述第二终端接收所述基站发送的被发现资源; 或者, 所述第二终端接收 所述管理实体发送的、 所述基站发送给所述管理实体的所述被发现资源; 所述 被发现资源为所述基站根据所述第四请求所分配的资源。
在第三方面的第一种可能实现方式中, 所述第二终端接收所述基站发送的 被发现资源, 包括:
所述第二终端接收所述基站通过 RRC消息发送的所述被发现资源, 所述被 发现资源是所述基站在接收到所述第四请求后分配的资源;
其中, 所述第四请求为包含第三指示的 S1-AP消息, 所述第三指示用于指 示所述基站分配被发现资源, 或者, 所述第三指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第三指示用于指示所述基站分配被发现资 源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述 基站为所述第二终端分配被发现资源并向所述第二终端发送所述被发现资源。
在第三方面的第二种可能实现方式中, 所述第二终端接收所述管理实体发 送的、 所述基站发送给所述管理实体的所述被发现资源, 包括:
所述第二终端接收所述管理实体通过非接入层消息发送的所述被发现资 源, 所述被发现资源为所述基站在接收到所述第四请求后, 通过容器发送给所 述管理实体的被发现资源;
其中, 所述第四请求为包含第四指示的 S1-AP消息, 所述第四指示用于指 示所述基站分配被发现资源, 或者, 所述第四指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第四指示用于指示所述基站分配被发现资 源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示用于指示所述 在第三方面的第三种可能实现方式中, 所述第二终端向服务器发送第五请 求, 以便所述服务器向所述管理实体发送第六请求, 以便所述基站发送第四请 求, 包括:
所述第二终端向所述服务器发送包含所述第二终端的全球唯一临时标识 GUTI的所述第五请求, 以便所述服务器根据所述 GUTI向所述管理实体发送所 述第六请求。 第四方面, 提供了一种发现终端方法, 所述方法包括:
服务器接收第一终端的发出的第二终端的业务标识; 所述第二终端的业务 标识由所述第一终端根据至少一个第二终端发送的、 包含有所述第二终端的业 务标识的第二消息所获取;
所述服务器根据所述第二终端的业务标识获取所述第二终端的描述信息; 所述服务器将获取到的所述第二终端的描述信息提供给所述第一终端。 在第四方面的第一种可能实现方式中, 所述服务器接收第一终端的发出的 第二终端的业务标识, 包括:
所述服务器接收所述第一终端发送的、 所述第二终端的业务标识; 或者,
所述服务器接收管理实体发送的、 所述第二终端的业务标识, 所述第二终 端的业务标识是所述第一终端发送给所述管理实体的业务标识。
在第四方面的第二种可能实现方式中, 所述服务器根据所述第二终端的业 务标识获取所述第二终端的描述信息, 包括:
所述服务器本地查询与所述第二终端的业务标识对应的所述第二终端的描 述信息;
或者,
所述服务器根据所述第二终端的业务标识向所述第二终端的归属服务器或 者当前为所述第二终端提供服务的服务器获取所述第二终端的描述信息。
在第四方面的第三种可能实现方式中, 所述服务器将查询到的所述第二终 端的描述信息提供给所述第一终端, 包括:
所述服务器将获取到的所述第二终端的描述信息发送给所述第一终端; 或者,
所述服务器将获取到的所述第二终端的描述信息发送给管理实体, 以便所 述管理实体将所述第二终端的描述信息发送给所述第一终端。
在第四方面的第四种可能实现方式中, 在所述服务器根据所述第二终端的 业务标识获取所述第二终端的描述信息之前, 还包括:
所述服务器接收所述第一终端发送的、 所述第一终端的业务标识; 或者, 所述服务器接收所述管理实体发送的、 所述第一终端的业务标识, 所述第一终 端的业务标识由所述第一终端发送给所述管理实体;
所述服务器根据所述第一终端的业务标识验证所述第一终端是否拥有发现 所述第二终端的权限;
若验证结果为所述第一终端拥有发现所述第二终端的权限, 则所述服务器 执行所述根据所述第二终端的业务标识获取所述第二终端的描述信息的步骤。
在第四方面的第五种可能实现方式中, 在所述服务器接收第一终端的发出 的第二终端的业务标识之前, 所述方法还包括:
所述服务器接收管理实体发送的、 所述第一终端的身份标识, 所述第一终 端的身份标识为包含于所述第一终端发送给所述管理实体的第一请求中的标 识;
所述服务器根据所述第一终端的身份标识验证所述第一终端是否拥有发现 终端的权限;
若验证结果为所述第一终端拥有发现终端的权限, 则所述服务器向所述管 理实体反馈所述第一终端拥有发现终端的权限的指示, 以便所述管理实体在接 收到所述指示后向基站发送第二请求;
其中, 所述第一请求用于请求获取发现资源, 所述第二请求用于请求所述 基站获取并向所述第一终端发送所述发现资源, 所述发现资源为所述第一终端 监听所述第二消息时所使用的资源。
在第四方面的第六种可能实现方式中, 在所述服务器接收第一终端的发出 的第二终端的业务标识之前, 所述方法还包括:
所述服务器接收管理实体发送的、 所述第一终端的身份标识和所述第一终 端中使用发现业务的应用的标识, 所述第一终端的身份标识和所述第一终端中 使用发现业务的应用的标识为包含于所述第一终端发送给所述管理实体的第一 请求中的标识;
所述服务器根据所述第一终端的身份标识验证所述第一终端是否拥有发现 终端的权限, 并根据所述第一终端中使用发现业务的应用的标识验证所述应用 是否拥有使用发现功能的权限;
若验证结果为所述第一终端拥有发现终端的权限且所述应用拥有使用发现 功能的权限, 则所述服务器向所述管理实体反馈所述第一终端拥有发现终端的 权限且所述应用拥有使用发现功能的权限的指示, 以便所述管理实体在接收到 所述指示后向基站发送第二请求;
其中, 所述第一请求用于请求获取发现资源, 所述第二请求用于请求所述 基站获取并向所述第一终端发送所述发现资源, 所述发现资源为所述第一终端 监听所述第二消息时所使用的资源。
在第四方面的第七种可能实现方式中, 在所述服务器接收第一终端的发出 的第二终端的业务标识之前, 所述方法还包括:
所述服务器接收管理实体发送的、 所述第二终端的身份标识, 所述第二终 端的身份标识为包含于所述第二终端发送给所述管理实体的第三请求中的标 识;
所述服务器根据所述第二终端的身份标识验证所述第二终端是否拥有被发 现的权限;
若验证结果为所述第二终端拥有被发现的权限, 则所述服务器向所述管理 实体反馈所述第二终端拥有被发现的权限的指示, 以便所述管理实体在接收到 所述指示后向基站发送第四请求;
其中, 所述第三请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
在第四方面的第八种可能实现方式中, 在所述服务器接收第一终端的发出 的第二终端的业务标识之前, 所述方法还包括:
所述服务器接收管理实体发送的、 所述第二终端的身份标识和所述第二终 端中使用被发现业务的应用的标识, 所述第二终端的身份标识和所述第二终端 中使用被发现业务的应用的标识为包含于所述第二终端发送给所述管理实体的 第三请求中的标识;
所述服务器根据所述第二终端的身份标识验证所述第二终端是否拥有被发 现的权限, 并根据所述第二终端中使用被发现业务的应用的标识验证所述应用 是否拥有使用被发现功能的权限;
若验证结果为所述第一终端拥有被发现的权限且所述应用拥有使用被发现 功能的权限, 则所述服务器向所述管理实体反馈所述第二终端拥有被发现的权 限且所述应用拥有使用被发现功能的权限的指示, 以便所述管理实体在接收到 所述指示后向基站发送第四请求;
其中, 所述第三请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
在第四方面的第九种可能实现方式中, 在所述服务器接收第一终端的发出 的第二终端的业务标识之前, 所述方法还包括:
所述服务器接收所述第二终端发送的第五请求;
所述服务器向管理实体发送第六请求, 以便所述管理实体向基站发送第四 请求;
其中, 所述第五请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
结合第四方面的第九种可能实现方式, 在第四方面的第十种可能实现方式 中, 所述第五请求中包含有所述第二终端的全球唯一临时标识 GUTI;
所述服务器向管理实体发送第六请求, 包括:
所述服务器根据所述 GUTI向所述管理实体发送所述第六请求。
结合第四方面的第九种可能实现方式, 在第四方面的第十一种可能实现方 式中, 所述第五请求中包含有所述第二终端的身份标识; 在所述服务器向管理 实体发送第六请求之前, 还包括:
所述服务器根据所述第二终端的身份标识验证所述第二终端是否拥有被发 现的权限;
若验证结果为所述第二终端拥有被发现的权限, 则所述服务器执行所述向 管理实体发送第六请求的步骤。
结合第四方面的第九种可能实现方式, 在第四方面的第十二种可能实现方 式中, 所述第五请求中包含有所述第二终端的身份标识和所述第二终端中使用 被发现业务的应用的标识; 在所述服务器向管理实体发送第六请求之前, 还包 括:
所述服务器根据所述第二终端的身份标识验证所述第二终端是否拥有被发 现的权限, 并根据所述第二终端中使用被发现业务的应用的标识验证所述应用 是否拥有使用被发现功能的权限;
若验证结果为所述第一终端拥有被发现的权限且所述应用拥有使用被发现 功能的权限, 则所述服务器执行所述向管理实体发送第六请求的步骤。
第五方面, 提供了一种发现终端方法, 所述方法包括:
服务器接收第二终端发送的第五请求;
所述服务器向管理实体发送第六请求, 以便所述管理实体向基站发送第四 请求; 其中, 所述第五请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
在第五方面的第一种可能实现方式中, 所述第五请求中包含有所述第二终 端的全球唯一临时标识 GUTI;
所述服务器向管理实体发送第六请求, 包括:
所述服务器根据所述 GUTI向所述管理实体发送所述第六请求。
第六方面, 提供了一种发现终端方法, 所述方法包括:
基站向第一终端提供发现资源, 以便所述第一终端根据所述发现资源监听 至少一个第二终端发送的第二消息。
在第六方面的第一种可能实现方式中, 所述基站向第一终端提供发现资源, 包括:
所述基站接收管理实体发送的第二请求;
所述基站获取所述发现资源;
所述基站将所述发现资源发送给所述第一终端; 或者, 所述基站将所述发 现资源发送给所述管理实体, 以便所述管理实体将所述发现资源发送给所述第 一终端。
结合第六方面的第一种可能实现方式, 在第六方面的第二种可能实现方式 中, 所述基站接收管理实体发送的第二请求, 包括:
所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第一指示, 所述第一指示用于指示所述基站向所述第一终端发送所述发现资源 或用于指示所述基站获取并向所述第一终端发送所述发现资源;
所述基站将所述发现资源发送给所述第一终端, 包括:
所述基站通过 RRC消息将所述发现资源发送给所述第一终端。
结合第六方面的第一种可能实现方式, 在第六方面的第三种可能实现方式 中, 所述基站接收管理实体发送的第二请求, 包括:
所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第二指示, 所述第二指示用于指示所述基站向所述管理实体发送所述发现资源 或用于指示所述基站获取所述发现资源并向所述管理实体发送所述发现资源; 所述基站将所述发现资源发送给所述管理实体, 以便所述管理实体将所述 发现资源发送给所述第一终端, 包括: 所述基站通过容器将所述发现资源发送给所述管理实体, 以便所述管理实 体通过非接入层消息将所述发现资源发送给所述第一终端。
在第六方面的第四种可能实现方式中, 所述基站向第一终端提供发现资源, 包括:
所述基站获取所述发现资源;
所述基站在所述第一终端所在的小区内发送包含有所述发现资源的系统信 息。
结合第六方面的第一种可能实现方式或者第四种可能实现方式, 在第六方 面的第五种可能实现方式中, 所述基站获取所述发现资源, 包括:
所述基站本地查询所述第一终端当前服务小区的发现资源;
或者, 所述基站本地查询所述第一终端当前服务小区的发现资源以及与所 述服务小区相邻的小区的发现资源;
或者, 所述基站本地查询所述第一终端当前服务小区的发现资源, 并通过 X2接口向相邻基站查询与所述服务小区相邻的小区的发现资源。
在第六方面的第六种可能实现方式中, 所述方法还包括:
所述基站接收管理实体发送的第四请求;
所述基站根据所述第四请求为所述第二终端分配被发现资源, 所述被发现 资源为所述第二终端发送所述第二消息时所使用的资源;
所述基站将所述被发现资源发送给所述第二终端; 或者, 所述基站将所述 被发现资源发送给所述管理实体, 以便所述管理实体将所述被发现资源发送给 所述第二终端。
结合第六方面的第六种可能实现方式, 在第六方面的第七种可能实现方式 中, 所述基站接收管理实体发送的第四请求, 包括:
所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第三指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三 指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第三指示 用于指示所述基站分配被发现资源并向所述第二终端发送所述被发现资源, 或 者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源并向所述 第二终端发送所述被发现资源;
所述基站将所述被发现资源发送给所述第二终端, 包括:
所述基站通过 RRC消息将所述被发现资源发送给所述第二终端。 结合第六方面的第六种可能实现方式, 在第六方面的第八种可能实现方式 中, 所述基站接收管理实体发送的第四请求, 包括:
所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第四指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四 指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第四指示 用于指示所述基站分配被发现资源并向所述管理实体发送所述被发现资源, 或 者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源并向所述 管理实体发送所述被发现资源;
所述基站将所述被发现资源发送给所述管理实体, 以便所述管理实体将所 述被发现资源发送给所述第二终端, 包括:
所述基站通过容器将所述被发现资源发送给所述管理实体, 以便所述管理 实体通过非接入层消息将所述被发现资源发送给所述第二终端。
第七方面, 提供了一种发现终端方法, 所述方法包括:
基站接收管理实体发送的第四请求;
所述基站根据所述第四请求为所述第二终端分配被发现资源, 所述被发现 资源为所述第二终端发送所述第二消息时所使用的资源;
所述基站将所述被发现资源发送给所述第二终端; 或者, 所述基站将所述 被发现资源发送给所述管理实体, 以便所述管理实体将所述被发现资源发送给 所述第二终端。
在第七方面的第一种可能实现方式中, 所述基站接收管理实体发送的第四 请求, 包括:
所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第三指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三 指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第三指示 用于指示所述基站分配被发现资源并向所述第二终端发送所述被发现资源, 或 者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源并向所述 第二终端发送所述被发现资源;
所述基站将所述被发现资源发送给所述第二终端, 包括:
所述基站通过 RRC消息将所述被发现资源发送给所述第二终端。
在第七方面的第二种可能实现方式中, 所述基站接收管理实体发送的第四 请求, 包括: 所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第四指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四 指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第四指示 用于指示所述基站分配被发现资源并向所述管理实体发送所述被发现资源, 或 者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源并向所述 管理实体发送所述被发现资源;
所述基站将所述被发现资源发送给所述管理实体, 以便所述管理实体将所 述被发现资源发送给所述第二终端, 包括:
所述基站通过容器将所述被发现资源发送给所述管理实体, 以便所述管理 实体通过非接入层消息将所述被发现资源发送给所述第二终端。
第八方面, 提供了一种发现终端方法, 所述方法包括:
管理实体接收第一终端发送的、 第二终端的业务标识, 所述第二终端的业 务标识由所述第一终端根据至少一个第二终端发送的、 包含有所述第二终端的 业务标识的第二消息所获取;
所述管理实体将所述第二终端的业务标识发送给所述服务器, 以便所述服 务器根据所述第二终端的业务标识获取并向所述第一终端发送所述第二终端的 描述信息;
或者, 所述管理实体将所述第二终端的业务标识发送给所述服务器, 接收 所述服务器发送的、 所述第二终端的描述信息, 并将所述第二终端的描述信息 发送给所述第一终端, 所述第二终端的描述信息由所述服务器根据所述第二终 端的业务标识获取。
在第八方面的第一种可能实现方式中, 在所述管理实体接收第一终端发送 的、 第二终端的业务标识之前, 所述方法还包括:
所述管理实体接收所述第一终端发送的第一请求;
所述管理实体向基站发送第二请求, 以便所述基站根据所述第二请求向所 述第一终端发送发现资源; 或者, 所述管理实体向基站发送第二请求, 并接收 所述基站根据所述第二请求发送的发现资源, 并将所述发现资源发送给所述第 一终端;
其中, 所述发现资源为所述第一终端监听所述第二消息时所使用的资源。 结合第八方面的第一种可能实现方式, 在第八方面的第二种可能实现方式 中, 所述管理实体向基站发送第二请求, 以便所述基站根据所述第二请求向所 述第一终端发送发现资源, 包括:
所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第一 指示, 所述第一指示用于指示所述基站向所述第一终端发送所述发现资源或用 于指示所述基站获取并向所述第一终端发送所述发现资源, 以便所述基站通过 RRC消息将所述发现资源发送给所述第一终端。
结合第八方面的第一种可能实现方式, 在第八方面的第三种可能实现方式 中, 所述管理实体向基站发送第二请求, 并接收所述基站根据所述第二请求发 送的发现资源, 并将所述发现资源发送给所述第一终端, 包括:
所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第二 指示, 所述第二指示用于指示所述基站向所述管理实体发送所述发现资源或用 于指示所述基站获取所述发现资源并向所述管理实体发送所述发现资源;
所述管理实体接收所述基站通过容器发送的所述发现资源;
所述管理实体通过非接入层消息将所述发现资源发送给所述第一终端。 结合第八方面的第一种可能实现方式, 在第八方面的第四种可能实现方式 中, 所述第一请求中包含有所述第一终端的身份标识; 所述管理实体向基站发 送第二请求之前, 所述方法还包括:
所述管理实体将所述第一终端的身份标识发送给所述服务器, 以便所述服 务器根据所述第一终端的身份标识验证所述第一终端是否拥有发现终端的权 限;
所述管理实体接收所述服务器反馈的所述第一终端拥有发现终端的权限的 指示;
所述管理实体向基站发送第二请求, 包括:
所述管理实体在接收到所述服务器反馈的所述第一终端拥有发现终端的权 限的指示之后, 向基站发送所述第二请求。
结合第八方面的第一种可能实现方式, 在第八方面的第五种可能实现方式 中, 所述第一请求中包含有所述第一终端的身份标识和所述第一终端中使用发 现业务的应用的标识; 在所述管理实体向基站发送第二请求之前, 所述方法还 包括:
所述管理实体将所述第一终端的身份标识和所述第一终端中使用发现业务 的应用的标识发送给所述服务器, 以便所述服务器根据所述第一终端的身份标 识和所述第一终端中使用发现业务的应用的标识验证所述第一终端是否拥有发 现终端的权限以及所述应用是否拥有使用发现功能的权限;
所述管理实体接收所述服务器反馈的所述第一终端拥有发现终端的权限, 且所述应用拥有使用发现功能的权限的指示;
所述管理实体向基站发送第二请求, 包括:
所述管理实体在接收到所述服务器反馈的所述第一终端拥有发现终端的权 限, 且所述应用拥有使用发现功能的权限的指示之后, 向基站发送所述第二请 求。
在第八方面的第六种可能实现方式中, 在所述管理实体接收第一终端发送 的、 第二终端的标识之前, 所述方法还包括:
所述管理实体接收所述第二终端发送的第三请求; 或者, 所述管理实体接 收所述服务器发送的第六请求;
所述管理实体向基站发送第四请求, 以便所述基站根据所述第四请求分配 并向所述第二终端发送被发现资源; 或者, 所述管理实体向所述基站发送第四 请求, 并接收所述基站根据所述第四请求分配并发送的被发现资源, 并将所述 被发现资源发送给所述第二终端;
其中, 所述被发现资源为所述第二终端发送所述第二消息时所使用的资源。 结合第八方面的第六种可能实现方式, 在第八方面的第七种可能实现方式 中, 所述管理实体向基站发送第四请求, 以便所述基站根据所述第四请求分配 并向所述第一终端发送被发现资源, 包括:
所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第三 指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三指示 用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第三指示用于 指示所述基站分配被发现资源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源并向所述第二 终端发送所述被发现资源, 以便所述基站通过 RRC消息将所述被发现资源发送 给所述第二终端。
结合第八方面的第六种可能实现方式, 在第八方面的第八种可能实现方式 中, 所述管理实体向所述基站发送第四请求, 并接收所述基站根据所述第四请 求分配并发送的被发现资源, 并将所述被发现资源发送给所述第二终端, 包括: 所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第四 指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四指示 用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第四指示用于 指示所述基站分配被发现资源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源并向所述管理 实体发送所述被发现资源;
所述管理实体接收所述基站通过容器发送的所述被发现资源;
所述管理实体通过非接入层消息将所述被发现资源发送给所述第二终端。 结合第八方面的第六种可能实现方式, 在第八方面的第九种可能实现方式 中, 所述第三请求中包含有所述第二终端的身份标识; 在所述管理实体向基站 发送第四请求之前, 所述方法还包括:
所述管理实体将所述第二终端的身份标识发送给所述服务器, 以便所述服 务器根据所述第二终端的身份标识验证所述第二终端是否拥有被发现的权限; 所述管理实体接收所述服务器反馈的所述第二终端拥有被发现的权限的指 示;
所述管理实体向基站发送第四请求, 包括:
所述管理实体在接收到所述服务器反馈的所述第二终端拥有被发现的权限 的指示之后, 向基站发送所述第四请求。
结合第八方面的第六种可能实现方式, 在第八方面的第十种可能实现方式 中, 所述第三请求中包含有所述第二终端的身份标识和所述第二终端中使用被 发现业务的应用的标识; 在所述管理实体向基站发送第四请求之前, 所述方法 还包括:
所述管理实体将所述第二终端的身份标识和所述第二终端中使用被发现业 务的应用的标识发送给所述服务器, 以便所述服务器根据所述第二终端的身份 标识和所述第二终端中使用被发现业务的应用的标识验证所述第二终端是否拥 有被发现的权限以及所述应用是否拥有使用被发现功能的权限;
所述管理实体接收所述服务器反馈的所述第二终端拥有被发现的权限, 且 所述应用拥有使用被发现功能的权限的指示;
所述管理实体向基站发送第四请求, 包括:
所述管理实体在接收到所述服务器反馈的所述第二终端拥有被发现的权 限, 且所述应用拥有使用被发现功能的权限的指示之后, 向基站发送第四请求。
结合第八方面的第六种可能实现方式, 在第八方面的第十种可能实现方式 中, 所述方法还包括: 所述管理实体接收所述第一终端发送的、 所述第一终端的业务标识; 所述管理实体将所述第一终端的业务标识发送给所述服务器, 以便所述服 务器在根据所述第一终端的业务标识验证所述第一终端拥有发现所述第二终端 的权限后, 根据所述第二终端的业务标识获取所述第二终端的描述信息。
第九方面, 提供了一种发现终端方法, 所述方法包括:
管理实体接收第二终端发送的第三请求; 或者, 所述管理实体接收服务器 发送的第六请求;
所述管理实体向基站发送第四请求, 以便所述基站根据所述第四请求分配 并向所述第二终端发送被发现资源; 或者, 所述管理实体向所述基站发送第四 请求, 并接收所述基站根据所述第四请求分配并发送的被发现资源, 并将所述 被发现资源发送给所述第二终端;
其中, 所述被发现资源为所述第二终端发送所述第二消息时所使用的资源。 在第九方面的第一种可能实现方式中, 所述管理实体向基站发送第四请求, 以便所述基站根据所述第四请求分配并向所述第一终端发送被发现资源, 包括: 所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第三 指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三指示 用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第三指示用于 指示所述基站分配被发现资源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源并向所述第二 终端发送所述被发现资源, 以便所述基站通过 RRC消息将所述被发现资源发送 给所述第二终端。
在第九方面的第二种可能实现方式中, 所述管理实体向所述基站发送第四 请求, 并接收所述基站根据所述第四请求分配并发送的被发现资源, 并将所述 被发现资源发送给所述第二终端, 包括:
所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第四 指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四指示 用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第四指示用于 指示所述基站分配被发现资源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源并向所述管理 实体发送所述被发现资源;
所述管理实体接收所述基站通过容器发送的所述被发现资源; 所述管理实体通过非接入层消息将所述被发现资源发送给所述第二终端。 第十方面, 提供了一种第一终端, 所述第一终端包括:
发现资源获取模块, 用于获取发现资源;
消息监听模块, 用于根据所述发现资源获取模块获取到的发现资源监听至 少一个第二终端发送的第二消息, 所述第二消息中包含有所述第二终端的业务 标识;
业务标识获取模块, 用于根据所述消息监听模块监听到的所述第二消息获 取所述第二终端的业务标识;
描述信息获取模块, 用于根据所述业务标识获取模块获取到的第二终端的 业务标识从服务器获取所述第二终端的描述信息。
在第十方面的第一种可能实现方式中, 所述描述信息获取模块, 包括: 第一标识发送单元, 用于将所述第二终端的业务标识发送给所述服务器; 第二标识发送单元, 用于将所述第二终端的业务标识发送给管理实体, 以 便所述管理实体将所述第二终端的业务标识发送给所述服务器;
第一信息接收单元, 用于接收所述服务器发送的所述第二终端的描述信息, 所述第二终端的描述信息为所述服务器根据所述第二终端的业务标识获取并发 送的信息;
第二信息接收单元, 用于接收所述管理实体发送的所述第二终端的描述信 息, 所述第二终端的描述信息为所述服务器根据所述第二终端的业务标识获取 并发送给所述管理实体的信息。
结合第十方面的第一种可能实现方式, 在第十方面的第二种可能实现方式 中, 所述第一终端还包括:
第一标识发送模块, 用于在所述第一信息接收单元接收所述服务器发送的 所述第二终端的描述信息, 或者, 所述第二信息接收单元接收所述管理实体发 送的所述第二终端的描述信息之前, 将所述第一终端的业务标识发送给所述服 务器, 以便所述服务器在根据所述第一终端的业务标识验证所述第一终端拥有 发现所述第二终端的权限后, 根据所述第二终端的业务标识获取所述第二终端 的描述信息;
第二标识发送模块, 用于在所述第一信息接收单元接收所述服务器发送的 所述第二终端的描述信息, 或者, 所述第二信息接收单元接收所述管理实体发 送的所述第二终端的描述信息之前, 将所述第一终端的业务标识发送给所述管 理实体, 以便所述管理实体将所述第一终端的业务标识发送给所述服务器, 以 便所述服务器在根据所述第一终端的业务标识验证所述第一终端拥有发现所述 第二终端的权限后, 根据所述第二终端的业务标识获取所述第二终端的描述信 息。
在第十方面的第三种可能实现方式中, 所述发现资源获取模块, 包括: 第一请求发送单元, 用于向管理实体发送第一请求, 以便所述管理实体向 所述基站发送第二请求;
第一发现资源接收单元, 用于接收所述基站根据所述第二请求发送的所述 发现资源;
第二发现资源接收单元, 用于接收所述管理实体发送的所述发现资源; 所 述发现资源是所述基站根据所述第二请求发送给所述管理实体的发现资源; 其中, 所述发现资源包括所述第一终端的服务小区的发现资源; 或者, 所 述发现资源包括所述第一终端的服务小区的发现资源以及与所述服务小区相邻 的小区的发现资源。
结合第十方面的第三种可能实现方式, 在第十方面的第四种可能实现方式 中, 所述第一发现资源接收单元, 用于接收所述基站通过 RRC消息发送的所述 发现资源, 所述发现资源是所述基站在接收到所述第二请求后发送的发现资源; 其中, 所述第二请求为包含第一指示的 S1-AP消息, 所述第一指示用于指 示所述基站向所述第一终端发送所述发现资源或用于指示所述基站获取并向所 述第一终端发送所述发现资源。
结合第十方面的第三种可能实现方式, 在第十方面的第五种可能实现方式 中, 所述第二发现资源接收单元, 用于接收所述管理实体通过非接入层消息发 送的所述发现资源, 所述发现资源为所述基站在接收到所述第二请求后, 通过 容器发送给所述管理实体的发现资源;
其中, 所述第二请求为包含第二指示的 S1-AP消息, 所述第二指示用于指 示所述基站向所述第一终端发送所述发现资源或用于指示所述基站获取所述发 现资源并向所述管理实体发送所述发现资源。
结合第十方面的第三种可能实现方式, 在第十方面的第六种可能实现方式 中, 所述第一请求发送单元, 用于向所述管理实体发送包含有所述第一终端的 身份标识的所述第一请求, 以便所述管理实体将所述第一终端的身份标识发送 给所述服务器, 并在所述服务器根据所述第一终端的身份标识验证所述第一终 端拥有发现终端的权限时, 向所述基站发送所述第二请求。
结合第十方面的第三种可能实现方式, 在第十方面的第七种可能实现方式 中, 所述第一请求发送单元, 用于向所述管理实体发送包含有所述第一终端的 身份标识和所述第一终端中使用发现业务的应用的标识的所述第一请求, 以便 所述管理实体将所述第一终端的身份标识和所述第一终端中使用发现业务的应 用的标识发送给所述服务器, 并在所述服务器根据所述第一终端的身份标识和 所述第一终端中使用发现业务的应用的标识验证所述第一终端拥有发现终端的 权限且所述应用拥有使用发现功能的权限时, 向所述基站发送所述第二请求。
在第十方面的第八种可能实现方式中, 所述发现资源获取模块, 包括: 系统信息接收单元, 用于接收所述基站发送的系统信息;
发现资源解析单元, 用于解析所述系统信息接收单元接收到的系统信息中 包含的所述发现资源;
其中, 所述发现资源包括所述第一终端的服务小区的发现资源; 或者, 所 述发现资源包括所述第一终端的服务小区的发现资源以及与所述服务小区相邻 的小区的发现资源。
在第十方面的第九种可能实现方式中,
所述业务标识获取模块, 用于将监听到的所述第二消息中、 符合预定条件 的业务标识获取为所述第二终端的业务标识;
所述预定条件包括下列条件中的至少一种:
所述第二消息的信号强度大于或等于预定强度阔值;
或者, 所述第二消息中包含的第二终端的类别符合预定类别;
或者, 所述第二消息中包含的应用的描述符合预定的应用描述。
在第十方面的第十种可能实现方式中, 所述第一终端还包括:
第一消息发送模块, 用于在所述消息监听模块根据所述发现资源监听至少 一个第二终端发送的第二消息之前, 发送第一消息, 以便所述第二终端在接收 到所述第一消息之后, 根据所述第一消息发送所述第二消息。
第十一方面, 提供了一种第二终端, 所述第二终端包括:
第二消息发送模块, 用于发送包含有所述第二终端的业务标识的第二消息, 以便第一终端根据所述第二消息获取所述第二终端的业务标识, 并根据所述第 二终端的业务标识从服务器获取所述第二终端的描述信息。
在第十一方面的第一种可能实现方式中, 所述第二终端还包括: 第一请求发送模块, 用于在所述第二消息发送模块发送包含有所述第二终 端的业务标识的第二消息之前, 向管理实体发送第三请求, 以便所述管理实体 向基站发送第四请求;
第二请求发送模块, 用于在所述第二消息发送模块发送包含有所述第二终 端的业务标识的第二消息之前, 向服务器发送第五请求, 以便所述服务器向所 述管理实体发送第六请求, 以便所述管理实体向所述基站发送所述第四请求; 第一被发现资源接收模块, 用于接收所述基站发送的被发现资源; 所述被 发现资源为所述基站根据所述第四请求所分配的资源;
第二被发现资源接收模块, 用于接收所述管理实体发送的、 所述基站发送 给所述管理实体的所述被发现资源; 所述被发现资源为所述基站根据所述第四 请求所分配的资源;
所述第二消息发送模块, 用于根据所述第一被发现资源接收模块或者所述 第二被发现资源接收模块接收到的所述被发现资源发送所述包含有所述业务标 识的第二消息。
结合第十一方面的第一种可能实现方式, 在第十一方面的第二种可能实现 方式中, 所述第一被发现资源接收模块, 用于接收所述基站通过 RRC消息发送 的所述被发现资源, 所述被发现资源是所述基站在接收到所述第四请求后分配 的资源;
其中, 所述第四请求为包含第三指示的 S1-AP消息, 所述第三指示用于指 示所述基站分配被发现资源, 或者, 所述第三指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第三指示用于指示所述基站分配被发现资 源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述 基站为所述第二终端分配被发现资源并向所述第二终端发送所述被发现资源。
结合第十一方面的第一种可能实现方式, 在第十一方面的第三种可能实现 方式中, 所述第二被发现资源接收模块, 用于接收所述管理实体通过非接入层 消息发送的所述被发现资源, 所述被发现资源为所述基站在接收到所述第四请 求后, 通过容器发送给所述管理实体的被发现资源;
其中, 所述第四请求为包含第四指示的 S1-AP消息, 所述第四指示用于指 示所述基站分配被发现资源, 或者, 所述第四指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第四指示用于指示所述基站分配被发现资 源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示用于指示所述 结合第十一方面的第一种可能实现方式, 在第十一方面的第四种可能实现 方式中, 所述第一请求发送模块, 用于向所述管理实体发送包含有所述第二终 端的身份标识的所述第三请求, 以便所述管理实体将所述第二终端的身份标识 发送给所述服务器, 并在所述服务器根据所述第二终端的身份标识验证所述第 二终端拥有被发现的权限时, 向所述基站发送所述第四请求。
结合第十一方面的第一种可能实现方式, 在第十一方面的第五种可能实现 方式中, 所述第一请求发送模块, 用于向所述管理实体发送包含有所述第二终 端的身份标识和所述第二终端中使用被发现业务的应用的标识的所述第三请 求, 以便所述管理实体将所述第二终端的身份标识和所述第二终端中使用被发 现业务的应用的标识发送给所述服务器, 并在所述服务器根据所述第二终端的 身份标识和所述第二终端中使用被发现业务的应用的标识验证所述第二终端拥 有被发现的权限, 且所述应用拥有使用被发现功能的权限时, 向所述基站发送 所述第四请求。
结合第十一方面的第一种可能实现方式, 在第十一方面的第六种可能实现 方式中, 所述第二请求发送模块, 用于向所述服务器发送包含有所述第二终端 的身份标识的所述第五请求, 以便所述服务器在根据所述第二终端的身份标识 验证所述第二终端拥有被发现的权限时, 向所述管理实体发送所述第六请求。
结合第十一方面的第一种可能实现方式, 在第十一方面的第七种可能实现 方式中, 所述第二请求发送模块, 用于向所述管理实体发送包含有所述第二终 端的身份标识和所述第二终端中使用被发现业务的应用的标识的所述第五请 求, 以便所述服务器在根据所述第二终端的身份标识验证所述第二终端拥有被 发现的权限, 且所述应用拥有使用被发现功能的权限时, 向所述管理实体发送 所述第六请求。
结合第十一方面的第一种可能实现方式, 在第十一方面的第八种可能实现 方式中, 所述第二请求发送模块, 用于向所述服务器发送包含所述第二终端的 全球唯一临时标识 GUTI的所述第五请求,以便所述服务器根据所述 GUTI向所 述管理实体发送所述第六请求。
结合第十一方面的第一种可能实现方式, 在第十一方面的第九种可能实现 方式中, 所述第二消息发送模块, 包括:
第一消息发送单元, 用于在所述第一被发现资源接收模块或者所述第二被 发现资源接收模块接收到所述被发现资源后, 立即发送所述第二消息; 第一消息接收单元, 用于接收所述第一终端发送的第一消息;
第二消息发送单元, 用于根据所述第一消息接收单元接收到的第一消息发 送所述第二消息。
第十二方面, 提供了一种第二终端, 所述第二终端包括:
第一请求发送模块, 用于向管理实体发送第三请求, 以便所述管理实体向 基站发送第四请求;
第二请求发送模块, 用于向服务器发送第五请求, 以便所述服务器向所述 管理实体发送第六请求, 以便所述管理实体向所述基站发送所述第四请求; 第一被发现资源接收模块, 用于接收所述基站发送的被发现资源; 所述被 发现资源为所述基站根据所述第四请求所分配的资源;
第二被发现资源接收模块, 用于接收所述管理实体发送的、 所述基站发送 给所述管理实体的所述被发现资源; 所述被发现资源为所述基站根据所述第四 请求所分配的资源。
在第十二方面的第一种可能实现方式中, 所述第一被发现资源接收模块, 用于接收所述基站通过 RRC消息发送的所述被发现资源, 所述被发现资源是所 述基站在接收到所述第四请求后分配的资源;
其中, 所述第四请求为包含第三指示的 S1-AP消息, 所述第三指示用于指 示所述基站分配被发现资源, 或者, 所述第三指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第三指示用于指示所述基站分配被发现资 源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述 基站为所述第二终端分配被发现资源并向所述第二终端发送所述被发现资源。
在第十二方面的第二种可能实现方式中, 所述第二被发现资源接收模块, 用于接收所述管理实体通过非接入层消息发送的所述被发现资源, 所述被发现 资源为所述基站在接收到所述第四请求后, 通过容器发送给所述管理实体的被 发现资源;
其中, 所述第四请求为包含第四指示的 S1-AP消息, 所述第四指示用于指 示所述基站分配被发现资源, 或者, 所述第四指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第四指示用于指示所述基站分配被发现资 源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示用于指示所述 在第十二方面的第三种可能实现方式中, 所述第二请求发送模块, 用于向 所述服务器发送包含所述第二终端的全球唯一临时标识 GUTI的所述第五请求, 以便所述服务器根据所述 GUTI向所述管理实体发送所述第六请求。
第十三方面, 提供了一种服务器, 所述服务器包括:
第一标识接收模块, 用于接收第一终端的发出的第二终端的业务标识; 所 述第二终端的业务标识由所述第一终端根据至少一个第二终端发送的、 包含有 所述第二终端的业务标识的第二消息所获取;
信息获取模块, 用于根据所述第一标识接收模块接收到的第二终端的业务 标识获取所述第二终端的描述信息;
信息提供模块, 用于将所述信息获取模块获取到的所述第二终端的描述信 息提供给所述第一终端。
在第十三方面的第一种可能实现方式中, 所述第一标识接收模块, 包括: 第一标识接收单元, 用于接收所述第一终端发送的、 所述第二终端的业务 标识;
第二标识接收单元, 用于接收管理实体发送的、 所述第二终端的业务标识, 所述第二终端的业务标识是所述第一终端发送给所述管理实体的业务标识。
在第十三方面的第二种可能实现方式中, 所述信息获取模块, 包括: 第一查询单元, 用于本地查询与所述第二终端的业务标识对应的所述第二 终端的描述信息;
第二查询单元, 用于根据所述第二终端的业务标识向所述第二终端的归属 服务器或者当前为所述第二终端提供服务的服务器获取所述第二终端的描述信 息。
在第十三方面的第三种可能实现方式中, 所述信息提供模块包括: 第一信息发送单元, 用于将所述信息获取模块获取到的所述第二终端的描 述信息发送给所述第一终端;
第二信息发送单元, 用于将所述信息获取模块获取到的所述第二终端的描 述信息发送给管理实体, 以便所述管理实体将所述第二终端的描述信息发送给 所述第一终端。
在第十三方面的第四种可能实现方式中, 所述服务器还包括:
第二标识接收模块, 用于在所述信息获取模块获取与所述第二终端的业务 标识相对应的第二终端的描述信息之前, 接收所述第一终端发送的、 所述第一 终端的业务标识;
第三标识接收模块, 用于在所述信息获取模块获取与所述第二终端的业务 标识相对应的第二终端的描述信息之前, 接收所述管理实体发送的、 所述第一 终端的业务标识, 所述第一终端的业务标识由所述第一终端发送给所述管理实 体;
第一验证模块, 用于根据所述第二标识接收模块或者所述第三标识接收模 块接收到的第一终端的业务标识验证所述第一终端是否拥有发现所述第二终端 的权限;
所述信息获取模块, 用于若所述第一验证模块的验证结果为所述第一终端 拥有发现所述第二终端的权限, 则执行所述根据所述第二终端的业务标识获取 所述第二终端的描述信息的步骤。
在第十三方面的第五种可能实现方式中, 所述服务器还包括:
第四标识接收模块, 用于在所述第一标识接收模块接收第一终端的发出的 第二终端的业务标识之前, 接收管理实体发送的、 所述第一终端的身份标识, 所述第一终端的身份标识为包含于所述第一终端发送给所述管理实体的第一请 求中的标识;
第二验证模块, 用于根据所述第一终端的身份标识验证所述第一终端是否 拥有发现终端的权限;
第一指示反馈模块, 用于若所述第二验证模块的验证结果为所述第一终端 拥有发现终端的权限, 则向所述管理实体反馈所述第一终端拥有发现终端的权 限的指示, 以便所述管理实体在接收到所述指示后向基站发送第二请求;
其中, 所述第一请求用于请求获取发现资源, 所述第二请求用于请求所述 基站获取并向所述第一终端发送所述发现资源, 所述发现资源为所述第一终端 监听所述第二消息时所使用的资源。
在第十三方面的第六种可能实现方式中, 所述服务器还包括:
第五标识接收模块, 用于在所述第一标识接收模块接收第一终端的发出的 第二终端的业务标识之前, 接收管理实体发送的、 所述第一终端的身份标识和 所述第一终端中使用发现业务的应用的标识, 所述第一终端的身份标识和所述 第一终端中使用发现业务的应用的标识为包含于所述第一终端发送给所述管理 实体的第一请求中的标识;
第三验证模块, 用于根据所述第一终端的身份标识验证所述第一终端是否 拥有发现终端的权限;
第四验证模块, 用于根据所述第一终端中使用发现业务的应用的标识验证 所述应用是否拥有使用发现功能的权限;
第二指示反馈模块, 用于若所述第三验证模块的验证结果为所述第一终端 拥有发现终端的权限, 且所述第四验证模块的验证结果为所述应用拥有使用发 现功能的权限, 则向所述管理实体反馈所述第一终端拥有发现终端的权限且所 述应用拥有使用发现功能的权限的指示, 以便所述管理实体在接收到所述指示 后向基站发送第二请求;
其中, 所述第一请求用于请求获取发现资源, 所述第二请求用于请求所述 基站获取并向所述第一终端发送所述发现资源, 所述发现资源为所述第一终端 监听所述第二消息时所使用的资源。
在第十三方面的第七种可能实现方式中, 所述服务器还包括:
第六标识接收模块, 用于在所述第一标识接收模块接收第一终端的发出的 第二终端的业务标识之前, 接收管理实体发送的、 所述第二终端的身份标识, 所述第二终端的身份标识为包含于所述第二终端发送给所述管理实体的第三请 求中的标识;
第五验证模块, 用于根据所述第二终端的身份标识验证所述第二终端是否 拥有被发现的权限;
第三指示反馈模块, 用于若所述第五验证模块的验证结果为所述第二终端 拥有被发现的权限, 则向所述管理实体反馈所述第二终端拥有被发现的权限的 指示, 以便所述管理实体在接收到所述指示后向基站发送第四请求;
其中, 所述第三请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
在第十三方面的第八种可能实现方式中, 所述服务器还包括:
第七标识接收模块, 用于在所述第一标识接收模块接收第一终端的发出的 第二终端的业务标识之前, 接收管理实体发送的、 所述第二终端的身份标识和 所述第二终端中使用被发现业务的应用的标识, 所述第二终端的身份标识和所 述第二终端中使用被发现业务的应用的标识为包含于所述第二终端发送给所述 管理实体的第三请求中的标识;
第六验证模块, 用于根据所述第二终端的身份标识验证所述第二终端是否 拥有被发现的权限;
第七验证模块, 用于根据所述第二终端中使用被发现业务的应用的标识验 证所述应用是否拥有使用被发现功能的权限;
第四指示反馈模块, 用于若所述第六验证模块的验证结果为所述第一终端 拥有被发现的权限, 且所述第七验证模块的验证结果为所述应用拥有使用被发 现功能的权限, 则向所述管理实体反馈所述第二终端拥有被发现的权限且所述 应用拥有使用被发现功能的权限的指示, 以便所述管理实体在接收到所述指示 后向基站发送第四请求;
其中, 所述第三请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
在第十三方面的第九种可能实现方式中, 所述服务器还包括:
第一请求接收模块, 用于在所述第一标识接收模块接收第一终端的发出的 第二终端的业务标识之前, 接收所述第二终端发送的第五请求;
第三请求发送模块, 用于向管理实体发送第六请求, 以便所述管理实体向 基站发送第四请求;
其中, 所述第五请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
在第十三方面的第十种可能实现方式中, 所述第五请求中包含有所述第二 终端的全球唯一临时标识 GUTI;
所述第三请求发送模块,用于根据全球唯一临时标识 GUTI向所述管理实体 发送所述第六请求。
在第十三方面的第十一种可能实现方式中, 所述第五请求中包含有所述第 二终端的身份标识; 所述服务器还包括:
第八验证模块, 用于在所述第三请求发送模块向管理实体发送第六请求之 前, 根据所述第二终端的身份标识验证所述第二终端是否拥有被发现的权限; 所述第三请求发送模块, 用于若所述第八验证模块的验证结果为所述第二 终端拥有被发现的权限, 则执行所述向管理实体发送第六请求的步骤。
在第十三方面的第十二种可能实现方式中, 所述第五请求中包含有所述第 二终端的身份标识和所述第二终端中使用被发现业务的应用的标识; 所述服务 器还包括:
第九验证模块, 用于在所述第三请求发送模块向管理实体发送第六请求之 前, 根据所述第二终端的身份标识验证所述第二终端是否拥有被发现的权限; 第十验证模块, 用于在所述第三请求发送模块向管理实体发送第六请求之 前, 根据所述第二终端中使用被发现业务的应用的标识验证所述应用是否拥有 使用被发现功能的权限;
所述第三请求发送模块, 用于若所述第九验证模块的验证结果为所述第一 终端拥有被发现的权限, 且所述第十验证模块的验证结果为所述应用拥有使用 被发现功能的权限, 则执行所述向管理实体发送第六请求的步骤。
第十四方面, 提供了一种服务器, 所述服务器包括:
第一请求接收模块, 用于接收第二终端发送的第五请求;
第三请求发送模块, 用于向管理实体发送第六请求, 以便所述管理实体向 基站发送第四请求;
其中, 所述第五请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
在第十四方面的第一种可能实现方式中, 所述第五请求中包含有所述第二 终端的全球唯一临时标识 GUTI;
所述第三请求发送模块,用于根据所述全球唯一临时标识 GUTI向所述管理 实体发送所述第六请求。
第十五方面, 提供了一种基站, 所述基站包括:
发现资源提供模块, 用于向第一终端提供发现资源, 以便所述第一终端根 据所述发现资源监听至少一个第二终端发送的第二消息。
在第十五方面的第一种可能实现方式中, 所述发现资源提供模块, 包括: 第一请求接收单元, 用于接收管理实体发送的第二请求;
第一获取单元, 用于获取所述发现资源;
第一发现资源发送单元, 用于将所述第一获取单元获取到的发现资源发送 给所述第一终端;
第二发现资源发送单元, 用于将所述第一获取单元获取到的发现资源发送 给所述管理实体, 以便所述管理实体将所述发现资源发送给所述第一终端。
结合第十五方面的第一种可能实现方式, 在第十五方面的第二种可能实现 方式中, 所述第一请求接收单元, 用于接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有第一指示, 所述第一指示用于指示所述基站向所述第 一终端发送所述发现资源或用于指示所述基站获取并向所述第一终端发送所述 发现资源;
所述第一发现资源发送单元, 用于通过 RRC消息将所述发现资源发送给所 述第一终端。
结合第十五方面的第一种可能实现方式, 在第十五方面的第三种可能实现 方式中, 所述第一请求接收单元, 用于接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有第二指示, 所述第二指示用于指示所述基站向所述管 理实体发送所述发现资源或用于指示所述基站获取所述发现资源并向所述管理 实体发送所述发现资源;
所述第二发现资源发送单元, 用于通过容器将所述发现资源发送给所述管 理实体, 以便所述管理实体通过非接入层消息将所述发现资源发送给所述第一 终端。
在第十五方面的第四种可能实现方式中, 所述发现资源提供模块, 包括: 第二获取单元, 用于获取所述发现资源;
系统信息发送单元, 用于在所述第一终端所在的小区内发送包含有所述第 二获取单元获取到的发现资源的系统信息。
结合第十五方面的第一种可能实现方式或者第四种可能实现方式, 在第十 五方面的第五种可能实现方式中,
所述第一获取单元, 包括:
第一查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源; 第二查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源以 及与所述服务小区相邻的小区的发现资源;
第三查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源, 并通过 X2接口向相邻基站查询与所述服务小区相邻的小区的发现资源;
所述第二获取单元, 包括:
第四查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源; 第五查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源以 及与所述服务小区相邻的小区的发现资源;
第六查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源, 并通过 X2接口向相邻基站查询与所述服务小区相邻的小区的发现资源。
在第十五方面的第六种可能实现方式中, 所述基站还包括:
第二请求接收模块, 用于接收管理实体发送的第四请求;
被发现资源分配模块, 用于根据所述第二请求接收模块接收到的第四请求 为所述第二终端分配被发现资源, 所述被发现资源为所述第二终端发送所述第 二消息时所使用的资源;
第一被发现资源发送模块, 用于将所述被发现资源分配模块分配的被发现 资源发送给所述第二终端;
第二被发现资源发送模块, 用于将所述被发现资源分配模块分配的被发现 资源发送给所述管理实体, 以便所述管理实体将所述被发现资源发送给所述第 二终端。
结合第十五方面的第六种可能实现方式, 在第十五方面的第七种可能实现 方式中, 所述第二请求接收模块, 用于接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有第三指示, 所述第三指示用于指示所述基站分配被发 现资源, 或者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资 源, 或者, 所述第三指示用于指示所述基站分配被发现资源并向所述第二终端 发送所述被发现资源, 或者, 所述第三指示用于指示所述基站为所述第二终端 分配被发现资源并向所述第二终端发送所述被发现资源;
所述第一被发现资源发送模块, 用于通过 RRC消息将所述被发现资源发送 给所述第二终端。
结合第十五方面的第六种可能实现方式, 在第十五方面的第八种可能实现 方式中, 所述第二请求接收模块, 用于接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有第四指示, 所述第四指示用于指示所述基站分配被发 现资源, 或者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资 源, 或者, 所述第四指示用于指示所述基站分配被发现资源并向所述管理实体 发送所述被发现资源, 或者, 所述第四指示用于指示所述基站为所述第二终端 所述第二被发现资源发送模块, 用于通过容器将所述被发现资源发送给所 述管理实体, 以便所述管理实体通过非接入层消息将所述被发现资源发送给所 述第二终端。
第十六方面, 提供了一种基站, 所述基站包括: 第二请求接收模块, 用于接收管理实体发送的第四请求;
被发现资源分配模块, 用于根据所述第二请求接收模块接收到的第四请求 为所述第二终端分配被发现资源, 所述被发现资源为所述第二终端发送所述第 二消息时所使用的资源;
第一被发现资源发送模块, 用于将所述被发现资源分配模块分配的被发现 资源发送给所述第二终端;
第二被发现资源发送模块, 用于将所述被发现资源分配模块分配的被发现 资源发送给所述管理实体, 以便所述管理实体将所述被发现资源发送给所述第 二终端。
在第十六方面的第一种可能实现方式中, 所述第一请求接收模块, 用于接 收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有第三指示, 所述 第三指示用于指示所述基站分配被发现资源, 或者, 所述第三指示用于指示所 述基站为所述第二终端分配被发现资源, 或者, 所述第三指示用于指示所述基 站分配被发现资源并向所述第二终端发送所述被发现资源, 或者, 所述第三指 示用于指示所述基站为所述第二终端分配被发现资源并向所述第二终端发送所 述被发现资源;
所述第一被发现资源发送模块, 用于通过 RRC消息将所述被发现资源发送 给所述第二终端。
在第十六方面的第二种可能实现方式中, 所述第一请求接收模块, 用于接 收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有第四指示, 所述 第四指示用于指示所述基站分配被发现资源, 或者, 所述第四指示用于指示所 述基站为所述第二终端分配被发现资源, 或者, 所述第四指示用于指示所述基 站分配被发现资源并向所述管理实体发送所述被发现资源, 或者, 所述第四指 示用于指示所述基站为所述第二终端分配被发现资源并向所述管理实体发送所 述被发现资源;
所述第二被发现资源发送模块, 用于通过容器将所述被发现资源发送给所 述管理实体, 以便所述管理实体通过非接入层消息将所述被发现资源发送给所 述第二终端。
第十七方面, 提供了一种管理实体, 所述管理实体包括:
第八标识接收模块, 用于接收第一终端发送的、 第二终端的业务标识, 所 述第二终端的业务标识由所述第一终端根据至少一个第二终端发送的、 包含有 所述第二终端的业务标识的第二消息所获取;
第三标识发送模块, 用于将所述第八标识接收模块接收到的第二终端的业 务标识发送给所述服务器, 以便所述服务器根据所述第二终端的业务标识获取 并向所述第一终端发送所述第二终端的描述信息;
第四标识发送模块, 用于将所述第八标识接收模块接收到的第二终端的业 务标识发送给所述服务器;
第三信息接收模块, 用于接收所述服务器发送的、 所述第二终端的描述信 息;
第三信息发送模块, 用于将所述第二终端的描述信息发送给所述第一终端, 所述第二终端的描述信息由所述服务器根据所述第四标识发送模块发送的第二 终端的业务标识获取。
在第十七方面的第一种可能实现方式中, 所述管理实体还包括:
第二请求接收模块, 用于在所述第八标识接收模块接收第一终端发送的、 第二终端的业务标识之前, 接收所述第一终端发送的第一请求;
第二请求发送模块, 用于向基站发送第二请求, 以便所述基站根据所述第 二请求向所述第一终端发送发现资源;
第三请求发送模块, 用于向基站发送第二请求;
发现资源接收模块, 用于接收所述基站发送模块发送的第二请求所发送的 发现资源;
发现资源发送模块, 用于将所述发现资源接收模块接收到的发现资源发送 给所述第一终端;
其中, 所述发现资源为所述第一终端监听所述第二消息时所使用的资源。 结合第十七方面的第一种可能实现方式, 在第十七方面的第二种可能实现 方式中, 所述第二请求发送模块,用于向所述基站发送 S1-AP消息,所述 S1-AP 消息中包含有第一指示, 所述第一指示用于指示所述基站向所述第一终端发送 所述发现资源或用于指示所述基站获取并向所述第一终端发送所述发现资源, 以便所述基站通过 RRC消息将所述发现资源发送给所述第一终端。
结合第十七方面的第一种可能实现方式, 在第十七方面的第三种可能实现 方式中, 所述第三请求发送模块,用于向所述基站发送 S1-AP消息,所述 S1-AP 消息中包含有第二指示, 所述第二指示用于指示所述基站向所述管理实体发送 所述发现资源或用于指示所述基站获取所述发现资源并向所述管理实体发送所 述发现资源;
所述发现资源接收模块, 用于接收所述基站通过容器发送的所述发现资源; 所述发现资源发送模块, 用于通过非接入层消息将所述发现资源发送给所 述第一终端。
结合第十七方面的第一种可能实现方式, 在第十七方面的第四种可能实现 方式中, 所述管理实体还包括:
第五标识发送模块, 用于在所述第二请求发送模块向基站发送第二请求之 前, 将所述第一终端的身份标识发送给所述服务器, 以便所述服务器根据所述 第一终端的身份标识验证所述第一终端是否拥有发现终端的权限;
第一指示接收模块, 用于接收所述服务器反馈的所述第一终端拥有发现终 端的权限的指示;
所述第二请求发送模块, 用于在所述第一指示接收模块接收到所述服务器 反馈的所述第一终端拥有发现终端的权限的指示之后, 向基站发送所述第二请 求;
其中, 所述第一请求中包含有所述第一终端的身份标识。
结合第十七方面的第一种可能实现方式, 在第十七方面的第五种可能实现 方式中, 所述管理实体还包括:
第六标识发送模块, 用于在所述第二请求发送模块向基站发送第二请求之 前, 将所述第一终端的身份标识和所述第一终端中使用发现业务的应用的标识 发送给所述服务器, 以便所述服务器根据所述第一终端的身份标识和所述第一 终端中使用发现业务的应用的标识验证所述第一终端是否拥有发现终端的权限 以及所述应用是否拥有使用发现功能的权限;
第二指示接收模块, 用于接收所述服务器反馈的所述第一终端拥有发现终 端的权限, 且所述应用拥有使用发现功能的权限的指示;
所述第二请求发送模块, 用于在所述第二指示接收模块接收到所述服务器 反馈的所述第一终端拥有发现终端的权限, 且所述应用拥有使用发现功能的权 限的指示之后, 向基站发送所述第二请求;
其中, 所述第一请求中包含有所述第一终端的身份标识和所述第一终端中 使用发现业务的应用的标识。
在第十七方面的第六种可能实现方式中, 所述管理实体还包括:
第三请求接收模块, 用于在所述第八标识接收模块接收第一终端发送的、 第二终端的标识之前, 接收所述第二终端发送的第三请求;
第四请求发送模块, 用于向基站发送第四请求, 以便所述基站根据所述第 四请求分配并向所述第二终端发送被发现资源;
第五请求发送模块, 用于向所述基站发送第四请求;
第三被发现资源接收模块, 用于接收所述基站根据所述第五请求发送模块 发送的第四请求分配并发送的被发现资源;
第三被发现资源发送模块, 用于将所述第三被发现资源接收模块接收到的 被发现资源发送给所述第二终端;
其中, 所述被发现资源为所述第二终端发送所述第二消息时所使用的资源。 结合第十七方面的第六种可能实现方式, 在第十七方面的第七种可能实现 方式中, 所述第四请求发送模块,用于向所述基站发送 S1-AP消息,所述 S1-AP 消息中包含有第三指示, 所述第三指示为被发现资源分配指示, 或者, 所述第 三指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第三指 示用于指示所述基站分配被发现资源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源并向所 述第二终端发送所述被发现资源, 以便所述基站通过 RRC消息将所述被发现资 源发送给所述第二终端。
结合第十七方面的第六种可能实现方式, 在第十七方面的第八种可能实现 方式中,
所述第五请求发送模块, 用于向所述基站发送 S1-AP消息, 所述 S1-AP消 息中包含有第四指示, 所述第四指示为被发现资源分配指示, 或者, 所述第四 指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第四指示 用于指示所述基站分配被发现资源并向所述管理实体发送所述被发现资源, 或 者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源并向所述 管理实体发送所述被发现资源;
所述第三被发现资源接收模块, 用于接收所述基站通过容器发送的所述被 发现资源;
所述第三被发现资源发送模块, 用于通过非接入层消息将所述被发现资源 发送给所述第二终端。
结合第十七方面的第六种可能实现方式, 在第十七方面的第九种可能实现 方式中, 所述管理实体还包括: 第七标识发送模块, 用于在所述第四请求发送模块向基站发送第四请求之 前, 将所述第二终端的身份标识发送给所述服务器, 以便所述服务器根据所述 第二终端的身份标识验证所述第二终端是否拥有被发现的权限;
第三指示接收模块, 用于接收所述服务器反馈的所述第二终端拥有被发现 的权限的指示;
所述第四请求发送模块, 用于在所述第三指示接收模块接收到所述服务器 反馈的所述第二终端拥有被发现的权限的指示之后, 向基站发送所述第四请求; 其中, 所述第三请求中包含有所述第二终端的身份标识。
结合第十七方面的第六种可能实现方式, 在第十七方面的第十种可能实现 方式中, 所述管理实体还包括:
第八标识发送模块, 用于在所述第四请求发送模块向基站发送第四请求之 前, 将所述第二终端的身份标识和所述第二终端中使用被发现业务的应用的标 识发送给所述服务器, 以便所述服务器根据所述第二终端的身份标识和所述第 二终端中使用被发现业务的应用的标识验证所述第二终端是否拥有被发现的权 限以及所述应用是否拥有使用被发现功能的权限;
第四指示接收模块, 用于接收所述服务器反馈的所述第二终端拥有被发现 的权限, 且所述应用拥有使用被发现功能的权限的指示;
所述第四请求发送模块, 用于在所述第四指示接收模块接收到所述服务器 反馈的所述第二终端拥有被发现的权限, 且所述应用拥有使用被发现功能的权 限的指示之后, 向基站发送第四请求;
其中, 所述第三请求中包含有所述第二终端的身份标识和所述第二终端中 使用被发现业务的应用的标识。
在第十七方面的第十一种可能实现方式中, 所述管理实体还包括: 第九标识接收模块, 用于接收所述第一终端发送的、 所述第一终端的业务 标识;
第九标识发送模块, 用于将所述第九标识接收模块接收到的第一终端的业 务标识发送给所述服务器, 以便服务器在根据所述第一终端的业务标识验证所 述第一终端拥有发现所述第二终端的权限后, 根据所述第二终端的业务标识获 取所述第二终端的描述信息。
第十八方面, 提供了一种管理实体, 所述管理实体包括:
第三请求接收模块, 用于接收第二终端发送的第三请求; 第四请求发送模块, 用于向基站发送第四请求, 以便所述基站根据所述第 四请求分配并向所述第二终端发送被发现资源;
第五请求发送模块, 用于向所述基站发送第四请求;
第三被发现资源接收模块, 用于接收所述基站根据所述第五请求发送模块 发送的第四请求分配并发送的被发现资源;
第三被发现资源发送模块, 用于将所述第三被发现资源接收模块接收到的 被发现资源发送给所述第二终端;
其中, 所述被发现资源为所述第二终端发送所述第二消息时所使用的资源。 在第十八方面的第一种可能实现方式中, 所述第四请求发送模块, 用于向 所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第三指示, 所述第三指示 为被发现资源分配指示, 或者, 所述第三指示用于指示所述基站为所述第二终 端分配被发现资源, 或者, 所述第三指示用于指示所述基站分配被发现资源并 向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述基站 为所述第二终端分配被发现资源并向所述第二终端发送所述被发现资源, 以便 所述基站通过 RRC消息将所述被发现资源发送给所述第二终端。
在第十八方面的第二种可能实现方式中, 所述第五请求发送模块, 用于向 所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第四指示, 所述第四指示 为被发现资源分配指示, 或者, 所述第四指示用于指示所述基站为所述第二终 端分配被发现资源, 或者, 所述第四指示用于指示所述基站分配被发现资源并 向所述管理实体发送所述被发现资源, 或者, 所述第四指示用于指示所述基站 所述第三被发现资源接收模块, 用于接收所述基站通过容器发送的所述被 发现资源;
所述第三被发现资源发送模块, 用于通过非接入层消息将所述被发现资源 发送给所述第二终端。
第十九方面, 提供了一种发现终端系统, 其特征在于, 所述系统包括: 如上述第十方面所述的第一终端、 至少一个如上述第十一方面所述的第二 终端、 如上述第十三方面所述的服务器、 如上述第十五方面所述的基站以及如 上述第十七方面所述的管理实体。
本发明实施例提供的技术方案带来的有益效果是:
通过获取发现资源, 根据该发现资源监听至少一个第二终端发送的、 包含 有第二终端的业务标识的消息并获取该第二终端的标识; 根据该第二终端的标 识从服务器获取该第二终端的描述信息, 解决了现有技术中第一终端必须预先 获知第二终端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识 未知的终端, 扩展应用范围的目的。 附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所 需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明一个实施例提供的发送终端方法的方法流程图;
图 2是本发明另一实施例提供的发送终端方法的方法流程图;
图 3是本发明一个实施例提供的发送终端方法的方法流程图;
图 4是本发明另一实施例提供的发送终端方法的方法流程图;
图 5是本发明一个实施例提供的发送终端方法的方法流程图;
图 6是本发明另一实施例提供的发送终端方法的方法流程图;
图 7是本发明一个实施例提供的发送终端方法的方法流程图;
图 8是本发明另一实施例提供的发送终端方法的方法流程图;
图 9是本发明一个实施例提供的发送终端方法的方法流程图;
图 10是本发明另一实施例提供的发送终端方法的方法流程图;
图 11是本发明一个实施例提供的发送终端方法的方法流程图;
图 12是本发明另一实施例提供的发送终端方法的方法流程图;
图 13是本发明一个实施例提供的发送终端方法的方法流程图;
图 14是本发明另一实施例提供的发送终端方法的方法流程图;
图 15是本发明一个实施例提供的发送终端方法的方法流程图;
图 16是本发明另一实施例提供的发送终端方法的方法流程图;
图 17是本发明一个实施例提供的发送终端方法的方法流程图;
图 18是本发明另一实施例提供的发送终端方法的方法流程图;
图 19是本发明一个实施例提供的发送终端方法的方法流程图;
图 20是本发明一个实施例提供的业务标识获取过程的方法流程图; 图 21是本发明一个实施例提供的被发现资源获取过程的方法流程图; 图 22是本发明一个实施例提供的发现资源获取过程的方法流程图; 图 23是本发明一个实施例提供的第一终端的设备构成图; 图 24是本发明另一实施例提供的第一终端的设备构成图; 图 25是本发明一个实施例提供的第一终端的设备构成图; 图 26是本发明另一实施例提供的第一终端的设备构成图; 图 27是本发明一个实施例提供的第二终端的设备构成图; 图 28是本发明另一实施例提供的第二终端的设备构成图; 图 29是本发明一个实施例提供的第二终端的设备构成图; 图 30是本发明另一实施例提供的第二终端的设备构成图; 图 31是本发明一个实施例提供的第二终端的设备构成图; 图 32是本发明另一实施例提供的第二终端的设备构成图; 图 33是本发明一个实施例提供的服务器的设备构成图;
图 34是本发明另一实施例提供的服务器的设备构成图;
图 35是本发明一个实施例提供的服务器的设备构成图;
图 36是本发明另一实施例提供的服务器的设备构成图;
图 37是本发明一个实施例提供的服务器的设备构成图;
图 38是本发明另一实施例提供的服务器的设备构成图;
图 39是本发明一个实施例提供的基站的设备构成图;
图 40是本发明另一实施例提供的基站的设备构成图;
图 41是本发明一个实施例提供的基站的设备构成图;
图 42是本发明另一实施例提供的基站的设备构成图;
图 43是本发明一个实施例提供的基站的设备构成图;
图 44是本发明另一实施例提供的基站的设备构成图;
图 45是本发明一个实施例提供的管理实体的设备构成图; 图 46是本发明另一实施例提供的管理实体的设备构成图; 图 47是本发明一个实施例提供的管理实体的设备构成图; 图 48是本发明另一实施例提供的管理实体的设备构成图; 图 49是本发明一个实施例提供的管理实体的设备构成图; 图 50是本发明另一实施例提供的管理实体的设备构成图; 图 51是本发明一个实施例提供的终端发现系统的系统构成图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明 实施方式作进一步地详细描述。
请参考图 1, 其示出了本发明一个实施例提供的发现终端方法的方法流程 图。 该发现终端方法可以应用于在 D2D系统的第一终端中发现第二终端。 该发 现终端方法可以包括:
步骤 102, 第一终端获取发现资源;
步骤 104, 第一终端根据该发现资源监听至少一个第二终端发送的第二消 息, 该第二消息中包含有第二终端的业务标识;
步骤 106, 第一终端根据该第二消息获取该第二终端的业务标识; 该第二终端的标识可以是一个或多个第二终端的标识;
步骤 108,第一终端根据该第二终端的业务标识从服务器获取该第二终端的 描述信息。
综上所述, 本发明实施例提供的发现终端方法, 通过获取发现资源, 根据 该发现资源监听至少一个第二终端发送的、 包含有第二终端的业务标识的消息 并获取该第二终端的标识; 根据该第二终端的标识从服务器获取该第二终端的 描述信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一身份标识 的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范围的 目的。 基于上述图 1所示的发现终端方法的更为优选的方法,请参考图 2, 其示出 了本发明另一实施例提供的发现终端方法的方法流程图。 该发现终端方法可以 应用于在 D2D系统的第一终端中发现第二终端。 该发现终端方法可以包括: 步骤 202, 第一终端获取发现资源;
具体的, 第一终端可以向管理实体发送第一请求, 该第一请求用于请求获 取发现资源 ( discovery resource 或 radio resource 或 monitoring resource 或 discovery radio resource或 monitoring radio resource ), 该发现资源、用于第一终端 获知如何对第二终端进行监听。 该管理实体向基站发送第二请求。
该第二请求用于指示基站向第一终端发送发现资源, 第一终端可以直接接 收基站根据该第二请求发送的发现资源, 比如, 第一终端接收基站通过 RRC( adio Resource Control , 无线资源控制)消息, 比如 RRC Connection Reconfiguration消息发送的发现资源,该发现资源是基站在接收到该第二请求后 发送的资源。 其中, 该第二请求可以是包含第一指示的 S1-AP ( Application Protocol应用协议) 消息, 基站收到该 S1-AP消息后, 通过 RRC消息将发现资 源发送给第一终端。 该第一指示用于指示基站向第一终端发送发现资源或用于 指示基站获取并向第一终端发送发现资源, 具体可以是发现资源发送指示。
或者, 该第二请求用于指示基站向管理实体发送发现资源, 第一终端可以 接收管理实体发送的、 该基站根据第二请求发送给该管理实体的发现资源, 比 如, 该第一终端可以接收管理实体通过非接入层 NAS(Non-Access Stratum非接 入层)消息发送的发现资源。 其中, 该第二请求可以是包含第二指示的 S1-AP消 息, 基站收到该 S1-AP消息后, 通过 container (容器)将发现资源发送给管理 实体, 管理实体通过 NAS消息将包含有发现资源的 container发送给第一终端。 该第二指示用于指示基站向管理实体发送发现资源或用于指示基站获取并向管 理实体发送发现资源, 具体可以是发现资源发送指示。
或者, 第一终端也可以接收基站发送的系统信息, 并解析系统信息中包含 的该发现资源。
其中, 该发现资源包括第一终端的服务小区的发现资源; 或者, 该发现资 源包括该第一终端的服务小区的发现资源以及与该服务小区相邻的小区的发现 资源。
该发现资源包括一个小区内用于第二终端发送第二消息所使用的频段和 /或 时间点和 /或编码方式等信息。
此外, 第一终端向管理实体发送第一请求时, 还可以在该第一请求中包含 该第一终端的身份标识, 其中, 该身份标识可以是该第一终端的电话号码; 该 身份标识可以是该第一终端的设备标识; 或者, 该身份标识可以是服务器为该 第一终端分配的标识; 或者, 该身份标识可以是该第一终端的业务标识; 或者, 该身份标识可以是预配在终端中, 用于发现和被发现的标识。 管理实体将该第 一终端的身份标识发送给服务器, 服务器根据该第一终端的身份标识验证该第 一终端是否拥有发现终端的权限, 管理实体在服务器验证该第一终端有发现终 端的权限时, 向基站发送第二请求。
或者, 第一终端向管理实体发送第一请求时, 还可以在该第一请求中包含 该第一终端的身份标识和第一终端中使用发现业务的应用的标识 (Application ID ), 管理实体将该第一终端的身份标识和第一终端中使用发现业务的应用的标 识发送给服务器, 服务器根据该第一终端的身份标识和应用标识验证该第一终 端是否拥有发现终端的权限, 以及该应用是否拥有使用发现功能的权限, 管理 实体在服务器验证结果为该第一终端拥有发现终端的权限, 以及该应用拥有使 用发现功能的权限时, 向基站发送第二请求。
步骤 204, 第一终端根据该发现资源监听至少一个第二终端发送的第二消 息;
具体的, 第一终端可以根据该发现资源监听第二终端以广播的方式发送的 第二消息 ( discovered broadcasting message )或宣告消息 ( announcing message ); 该第二消息中包含有第二终端的业务标识, 第二终端的业务标识可以是以下一 种或多种的组合: D2D编码( D2D code )、 表示编码( expression code )、 宣告编 码(Announcing Code ) 、 第二终端的标识、 应用标识。 例如, 第二终端的业务 标识可以是第二终端的标识加表示编码或第二终端的业务标识可以是第二终端 的标识加应用标识或第二终端的业务标识可以是第二终端的标识加应用标识加 表示编码。 该业务标识可用于在无线信道上对第二终端进行标识。 该服务器可 以是 D2D服务器或者 ProSe ( Proximity Services, 接近业务)服务器或者 PDCF ( Proximity Discovery and Communication Function , 近巨离发现和通信功能 )。 该服务器可以为第二终端分配业务标识。
其中, 系统中可以只包含一个服务器, 用于为所有的第一终端和第二终端 提供服务。 或者, 系统中也可以包含有多个服务器, 分别为第一终端和第二终 端各自归属的服务器, 或者, 分别为第一终端或者第二终端提供服务的服务器。 当包含有多个服务器时, 第一终端和第二终端分别从各自归属的服务器或者当 前提供服务的服务器来获取业务标识。
第一终端可以根据发现资源中的频段、 时间点或编码方式等信息监听第二 终端发送的第二消息。
优选的, 第一终端可以触发周围一定范围内的第二终端发送第二消息, 比 如, 第一终端可以发送第一消息 (例如发现广播消息 discovery broadcasting message或触发消息 trigger message等), 以便第二终端在接收到该第一消息之 后, 根据该第一消息发送该第二消息。 其中, 第一终端发送第一消息时所使用 的资源也可以按照与步骤 202类似的方式从基站获取, 此处不再赘述。 进一步, 第一终端可以在第一消息中包含希望发现的终端的描述信息, 比如, 希望发现 的终端的类别 (比如个人、 饭店或者商店等), 或希望发现的终端所使用的应用 的标识(比如 QQ, 微博, Skype等的标识 ), 或希望发现的终端的限制方式(比 如, 所有人都可以发现, 只允许特定人发现); 以便符合描述信息的第二终端发 送被发现信息, 而其他终端不发送。
本发明实施例提供的方案, 根据获取到的发现资源对第二消息进行监听, 无需监听发现资源所包含频段或时间点之外的广播消息, 可以减小终端负担, 节约终端电量。
步骤 206, 第一终端根据监听到的该第二消息获取该第二终端的业务标识; 第一终端可以将监听到的至少一个第二终端发送的第二消息中、 符合预定 条件的业务标识进行过滤后, 获取至少一个第二终端的业务标识; 其中, 该预 定条件包括下列条件中的至少一种: 该第二消息的信号强度大于或等于预定强 度阔值; 或者, 该第二消息中包含的第二终端的类别符合预定类别; 或者, 该 第二消息中包含的应用的描述符合预定的应用的描述。
其中, 第一终端对监听到的第二消息进行过滤, 获取满足预定要求的至少 一个第二终端的业务标识。 比如, 将信号强度大于或等于某一阔值的第二消息 中的业务标识获取为第二终端的业务标识; 或者, 若该包含该业务标识的第二 消息中包含有该第二消息对应终端的类别(比如个人、饭店或者商店等); 或者, 若该包含该业务标识的第二消息中包含有该第二消息对应的应用的描述, 这里 应用的描述包括应用的名称(比如 QQ, Skype,微信等),或应用标识( Application ID ), 或应用的类别 (例如即时消息类, VoIP类, 流媒体类等)。 则获取预定类 别对应的业务标识。
步骤 208,第一终端根据该第二终端的业务标识从服务器获取该第二终端的 描述信息。
第一终端可以将获取到的该第二终端的业务标识发送给服务器, 也可以先 将该第二终端的业务标识发送给管理实体, 比如 MME ( Mobile Management Entity, 移动管理实体), 由管理实体将该第二终端的业务标识发送给服务器。 其中, 第一终端可以将第二终端的业务标识直接发送给服务器, 也可以将第二 终端的业务标识以一个业务标识数组或者以一个业务标识列表(list ) 的形式发 送给服务器。
第一终端可以接收服务器发送的、 与该第二终端的业务标识相对应的第二 终端的描述信息, 该第二终端的描述信息由服务器根据该第二终端的业务标识 获得并发送给第一终端。 或者, 第一终端也可以接收管理实体发送的、 与该第 二终端的业务标识相对应的第二终端的描述信息, 该第二终端的描述信息由服 务器根据该第二终端的业务标识获得并发送给该管理实体。
其中, 服务器根据该第二终端的业务标识获得第二终端的描述信息的方法 可以是, 服务器根据自身存储的各终端的业务标识和描述信息的对应关系, 本 地查询与该第二终端的业务标识对应存储的、 该第二终端的描述信息。 另外, 当系统中存在多个服务器, 且当前为第一终端服务的服务器与为第二终端服务 的服务器不是同一服务器时, 为第一终端提供服务的服务器可以根据该第二终 端的业务标识向该第二终端的归属服务器或者当前为该第二终端提供服务的服 务器查询该第二终端的描述信息, 比如, 服务器根据第二终端的业务标识获得 该第二终端归属的服务器或为第二终端提供服务的服务器, 并向该第二终端归 属的服务器或为第二终端提供服务的服务器发送第二终端的业务标识, 由该第 二终端归属的服务器或为第二终端提供服务的服务器根据第二终端的业务标识 获得后反馈给该服务器。
其中, 该第二终端的描述信息中包含以下一种或多种的组合: 第二终端的 名称、 第二终端的标识(identity ), 第二终端的电话号码、 第二终端的临时标识、 应用标识(Application ID )、 应用用户标识(例如, QQ账号, 微博账号, Skype 账号等)等信息, 以便第一终端的用户能够准确辨别需要建立 D2D通信的第二 终端。
优选的, 第一终端还可以将自身的业务标识发送给服务器, 比如第一终端 可以直接通过 IP层通道将自身的业务标识发送给服务器, 以便服务器在根据该 第一终端的业务标识验证该第一终端拥有发现权限以及拥有发现该第二终端的 业务标识对应的第二终端允许被发现后, 根据该第二终端的业务标识获得并发 送第二终端的描述信息。
或者, 第一终端还可以将自身的业务标识发送给管理实体, 由管理实体将 该第一终端的业务标识发送给服务器, 以便服务器在根据该第一终端的业务标 识验证该第一终端拥有发现权限以及拥有发现该第二终端的业务标识对应的第 二终端允许被发现后, 根据该第二终端的业务标识获得并发送第二终端的描述 信息。
具体比如, 为了保护第二终端的隐私, 第二终端可以预先设置发现权限, 比如, 第一终端发送的多个第二终端的业务标识中的某一个业务标识所对应的 第二终端预先设置只能被好友发现。 第一终端在向管理实体发送该第二终端的 业务标识的同时, 还将自身的业务标识发送给服务器, 若服务器根据该第一终 端的业务标识验证该第一终端不是该第二终端的好友, 则验证该第一终端没有 权限发现该第二终端, 服务器便不会将该第二终端的描述信息发送给第一终端。
综上所述, 本发明实施例提供的发现终端方法, 通过获取发现资源, 根据 该发现资源监听至少一个第二终端发送的、 包含有第二终端的业务标识的消息 并获取该第二终端的标识, 根据该第二终端的标识从服务器获取该第二终端的 描述信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一身份标识 的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范围的 目的; 另外, 本发明实施例提供的发现终端方法, 通过根据获取到的发现资源 监听第二终端发送的第二消息, 达到减小终端负担, 节约终端电量的目的; 最 后, 本发明实施例提供的发现终端方法, 通过将第一终端的业务标识发送给管 理实体, 以便服务器根据该第一终端的业务标识验证该第一终端是否拥有发现 该第二终端的权限, 达到有针对性的保护第二终端的隐私的目的。 请参考图 3, 其示出了本发明一个实施例提供的发现终端方法的方法流程 图。 该发现终端方法可以应用于 D2D系统的第二终端中。 该发现终端方法可以 包括:
步骤 302, 第二终端发送包含有该第二终端的业务标识的第二消息, 以便第 一终端根据该第二消息获取该第二终端的业务标识, 并根据该第二终端的业务 标识从服务器获取该第二终端的描述信息。
综上所述, 本发明实施例提供的方法, 第二终端通过发送包含有第二终端 的业务标识的第二消息, 以便第一终端根据第二终端的标识从服务器获取该第 二终端的描述信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一 身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应 用范围的目的。 基于上述图 3所示的发现终端方法的更为优选的方案,请参考图 4, 其示出 了本发明另一实施例提供的发现终端方法的方法流程图。 该发现终端方法可以 应用于 D2D系统的第二终端中。 该发现终端方法可以包括:
步骤 402, 第二终端获取该第二终端的业务标识;
具体的, 第二终端可以向服务器请求分配业务标识, 或者, 通过管理实体 向服务器请求分配业务标识。 服务器将为第二终端分配的业务标识发送给该第 二终端, 或者, 通过管理实体发送给第二终端。
另外, 第二终端还可以向管理实体发送该第二终端的描述信息, 以便服务 器将第二终端的描述信息与分配给该第二终端的业务标识对应存储。 或者, 第 二终端将该第二终端的描述信息发送给管理实体, 以便管理实体将该第二终端 的描述信息发送给服务器, 以便服务器将该第二终端的描述信息与分配给该第 二终端的业务标识对应存储。
需要说明的是, 当系统中包含多个服务器时, 第二终端可以从该第二终端 归属的服务器或当前为该第二终端提供服务的服务器获取业务标识。
步骤 404, 第二终端获取被发现资源;
具体的, 第二终端可以向管理实体发送第三请求, 该第三请求用于请求获 取被发现资源 ( discovered resource或 radio resource或 announcing resource或 discovered radio resource或 announcing radio resource ),该被发现资源、用于第二终 端进行广播, 从而可以使第一终端监听到第二终端。 管理实体可以根据该第三 请求后向基站发送第四请求。
或者, 具体的, 第二终端可以向服务器发送第五请求, 服务器收到第五请 求后, 向管理实体发送第六请求。 管理实体可以根据该第六请求后向基站发送 第四请求。
该第四请求用于指示基站为第二终端分配被发现资源。 第二终端可以直接 接收基站发送的被发现资源, 比如, 第二终端可以接收基站通过 RRC消息发送 的被发现资源, 该被发现资源是该基站在接收到该第四请求后发送的资源。 该 第四请求可以是包含第三指示的 S1-AP消息, 基站收到该 S1-AP消息后, 通过 RRC消息将被发现资源发送给第二终端。 该第三指示用于指示基站分配被发现 资源或为第二终端分配被发现资源或分配被发现资源并向第二终端发送被发现 资源或为第二终端分配被发现资源并向第二终端发送被发现资源, 具体可以是 被发现资源分配指示或被发现资源发送指示。
或者, 该第四请求用于指示基站为第二终端分配被发现资源, 并将该被发 现资源发送给管理实体, 第二终端可以接收管理实体发送的、 基站发送给管理 实体的被发现资源; 该被发现资源为基站根据第四请求所分配的资源。 接收管 理实体通过非接入层 NAS消息发送的该被发现资源, 该被发现资源为该基站在 接收到该第四请求后, 通过容器 container发送给该管理实体的被发现资源; 该 第四请求可以是包含第四指示的 Sl-AP消息, 基站收到该 S1-AP消息后, 通过 容器 container将被发现资源发送给管理实体, 管理实体通过 NAS 消息将该 container发送给第二终端。 该第四指示用于指示基站分配被发现资源或为第二 终端分配被发现资源或分配被发现资源并向管理实体发送被发现资源或为第二 终端分配被发现资源并向管理实体发送被发现资源, 具体可以是被发现资源分 配指示或被发现资源发送指示。
此外, 第二终端向管理实体发送第三请求时, 可以向管理实体发送包含有 该第二终端的身份标识的第三请求, 该身份标识可以是该第二终端的电话号码; 或者, 该身份标识可以是该第二终端的设备标识; 或者, 该身份标识可以是服 务器为该第二终端分配的标识; 或者, 该身份标识可以是该第二终端的业务标 识; 或者, 该身份标识也可以是预配在终端中, 用于发现和被发现的标识。 管 理实体将该第二终端的身份标识发送给服务器, 服务器根据该第二终端的身份 标识验证该第二终端是否有被发现的权限, 管理实体在服务器验证该第二终端 拥有被发现的权限时, 向基站发送发现第四请求。
或者, 第二终端向管理实体发送第三请求时, 向管理实体发送包含有该第 二终端的身份标识和该第二终端中使用被发现业务的应用的标识的第三请求 ( Application ID ), 管理实体将该第二终端的身份标识和该应用的标识发送给服 务器, 服务器根据该第二终端的身份标识和应用标识验证该第二终端是否拥有 被其他终端发现的权限, 以及该应用是否拥有使用被发现功能的权限, 当管理 实体在服务器验证结果为该第二终端拥有被其他终端发现的权限, 并且该应用 拥有使用被发现功能的权限时, 向基站发送发现第四请求。
或者, 此外, 第二终端向服务器发送第五请求时, 可以在第五请求中包含 有该第二终端的 GUTI(Globally Unique Temporary Identity全球唯一临时标识), 服务器根据该 GUTI向管理实体发送第六消息。管理实体收到该第六请求后向基 站发送第四请求。
进一步, 第二终端向服务器发送第五请求时, 可以向服务器发送包含有该 第二终端的身份标识的第五请求, 以便服务器在根据第二终端的身份标识验证 该第二终端拥有被发现的权限时, 向管理实体发送第六请求。
或者, 第二终端向服务器发送第五请求时, 可以向管理实体发送包含有该 第二终端的身份标识和该第二终端中使用被发现业务的应用的标识的第五请 求, 以便服务器在根据该第二终端的身份标识验证该第二终端拥有被发现的权 限, 且该应用拥有使用被发现功能的权限时, 向管理实体发送所述第六请求。 其中, 该被发现资源可以包括该第二终端发送第二消息的频段、 时间点或 编码方式等信息。
步骤 406,第二终端根据该被发现资源发送包含有该第二终端的业务标识的 第二消息, 以便第一终端根据该第二终端的业务标识从服务器获取该第二终端 的描述信息。
第二终端根据被发现资源中的频段、 时间点或编码方式等发送包含有该第 二终端的业务标识的第二消息。
具体的, 第二终端可以在接收到被发现资源后, 立即发送第二消息; 或者, 第二终端也可以在接收到第一终端发送的第一消息后, 根据该第一消息发送第 二消息。
进一步的, 若第一终端在第一消息中包含希望发现的终端的描述信息, 比 如, 希望发现的终端的类别 (比如个人、 饭店或者商店等), 或希望发现的终端 所使用的应用的标识(比如 QQ, 微博, Skype等标识), 或希望发现的终端的 限制方式(比如, 所有人都可以发现, 只允许特定人发现), 则第二终端首先判 断该第一终端的描述信息是否满足特定的条件, 若是, 则开始发送被发现信息。 具体例如, 第二终端接收到第一终端发送的第一消息后, 解析该第一消息包含 的描述信息中、 第一终端的类别是否为个人, 若是, 则以广播的方式发送第二 消息。
在本发明实施例提供的方案中, 第二终端获取基站分配的被发现资源, 并 根据该被发现资源发送第二消息, 基站可以通过为多个第二终端分配不同的被 发现资源, 以减少各个第二终端发送第二消息时的干扰。
综上所述, 本发明实施例提供的发现终端方法, 通过发送包含有第二终端 的业务标识的第二消息, 以便第一终端根据第二终端的标识从服务器获取该第 二终端的描述信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一 身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应 用范围的目的; 另外, 本发明实施例提供的发现终端方法, 通过获取基站分配 的被发现资源, 并根据获取到的被发现资源发送第二消息, 达到减少终端之间 干扰的目的。 对应于图 4中的步骤 404, 请参考图 5, 其示出了本发明一个实施例提供的 发现终端方法的方法流程图。 该发现终端方法可以应用于在第二终端中为该第 二终端获取被发现资源, 以便第二终端根据该被发现资源发送第二消息, 该发 现终端方法可以包括:
步骤 404a, 第二终端向管理实体发送第三请求, 以便管理实体根据该第三 请求向基站发送第四请求; 或者, 第二终端向服务器发送第五请求, 以便服务 器向管理实体发送第六请求, 以便管理实体向基站发送第四请求;
步骤 404b, 第二终端接收基站发送的被发现资源; 或者, 第二终端接收管 理实体发送的、 基站发送给管理实体的被发现资源; 该被发现资源为基站根据 该第四请求所分配的资源。
综上所述, 本发明实施例提供的发现终端方法, 通过向管理实体发送第三 请求, 以便管理实体根据该第三请求向基站发送第四请求; 接收基站发送的被 发现资源; 或者, 接收管理实体发送的、 基站发送给管理实体的被发现资源, 以便第二终端根据该被发现资源发送第二消息, 达到减少终端之间干扰的目的。 基于上述图 5所示的发现终端方法的更为优选的方案,请参考图 6, 其示出 了本发明另一实施例提供的发现终端方法的方法流程图。 该发现终端方法可以 应用于在第二终端中为该第二终端获取被发现资源, 以便第二终端根据该被发 现资源发送第二消息, 该发现终端方法可以包括:
步骤 404A, 第二终端向管理实体发送第三请求, 以便管理实体根据该第三 请求向基站发送第四请求; 或者, 第二终端向服务器发送第五请求, 以便服务 器收到第五请求后, 向管理实体发送第六请求, 以便管理实体可以根据该第六 请求后向基站发送第四请求。
具体的, 第二终端可以向管理实体发送第三请求, 该第三请求用于请求获 取被发现资源 ( discovered resource或 radio resource或 announcing resource ), 该 发现资源用于第二终端进行广播, 从而可以使第一终端监听到第二终端。 其中, 基站可以通过为多个第二终端分配不同的被发现资源, 以减少各个第二终端发 送第二消息时的干扰。
具体的, 第二终端向服务器发送第五请求时, 可以在第五请求中包含有该 第二终端的 GUTI(Globally Unique Temporary Identity全球唯一临时标识), 服务 器根据该 GUTI向管理实体发送第六消息。管理实体收到该第六请求后向基站发 送第四请求。 进一步, 第二终端向服务器发送第五请求时, 还可以包含第二终端的身份 标识, 服务器将第一终端的业务标识通过第六请求发送给管理实体, 管理实体 通过第四请求发送给基站, 以使基站为该第二终端的身份标识分配被发现资源。
步骤 404B, 第二终端接收基站发送的被发现资源; 或者, 第二终端接收管 理实体发送的、 基站发送给管理实体的被发现资源; 该被发现资源为基站根据 该第四请求所分配的资源。
其中, 该第四请求用于指示基站为第二终端分配被发现资源。 第二终端可 以直接接收基站发送的被发现资源, 比如, 第二终端可以接收基站通过 RRC消 息发送的被发现资源, 该被发现资源是该基站在接收到该第四请求后发送的资 源。该第四请求可以是包含第三指示的 S1-AP消息,基站收到该 S1-AP消息后, 通过 RRC消息将被发现资源发送给第二终端。 该第三指示用于指示基站分配被 发现资源或为第二终端分配被发现资源或分配被发现资源并向第二终端发送被 发现资源或为第二终端分配被发现资源并向第二终端发送被发现资源, 具体可 以是被发现资源分配指示或被发现资源发送指示。
或者, 该第四请求用于指示基站为第二终端分配被发现资源, 并将该被发 现资源发送给管理实体, 第二终端可以接收管理实体发送的、 基站发送给管理 实体的被发现资源; 该被发现资源为基站根据第四请求所分配的资源。 接收管 理实体通过非接入层 NAS消息发送的该被发现资源, 该被发现资源为该基站在 接收到该第四请求后, 通过容器 container发送给该管理实体的被发现资源; 该 第四请求可以是包含第四指示的 S1-AP消息, 基站收到该 S1-AP消息后, 通过 容器 container将被发现资源发送给管理实体, 管理实体通过 NAS 消息将该 container发送给第二终端。 该第四指示用于指示基站分配被发现资源或为第二 终端分配被发现资源或分配被发现资源并向管理实体发送被发现资源或为第二 终端分配被发现资源并向管理实体发送被发现资源, 具体可以是被发现资源分 配指示或被发现资源发送指示。
综上所述, 本发明实施例提供的发现终端方法, 通过向管理实体发送第三 请求, 以便管理实体根据该第三请求向基站发送第四请求; 接收基站发送的被 发现资源; 或者, 接收管理实体发送的、 基站发送给管理实体的被发现资源, 以便第二终端根据该被发现资源发送第二消息, 达到减少终端之间干扰的目的。 请参考图 7, 其示出了本发明一个实施例提供的发现终端方法的方法流程 图。 该发现终端方法可以应用于 D2D系统的服务器中。 该发现终端方法可以包 括:
步骤 502, 服务器接收第一终端的发出的第二终端的业务标识; 该第二终端 的业务标识由该第一终端根据至少一个第二终端发送的、 包含有该第二终端的 业务标识的第二消息所获取;
步骤 504, 服务器根据该第二终端的业务标识获取该第二终端的描述信息; 步骤 506, 服务器将获得的该第二终端的描述信息提供给该第一终端。
综上所述, 本发明实施例提供的发现终端方法, 通过接收第一终端的发出 的第二终端的业务标识, 获得与该第二终端的业务标识相对应的第二终端的描 述信息并提供给该第一终端, 解决了现有技术中第一终端必须预先获知第二终 端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范围的目的。 基于上述图 7所示的发现终端方法的更为优选的方案,请参考图 8, 其示出 了本发明另一实施例提供的发现终端方法的方法流程图。 该发现终端方法可以 应用于 D2D系统的服务器中。 该发现终端方法可以包括:
步骤 602, 服务器接收第一终端的发出的第二终端的业务标识;
该第二终端的业务标识由该第一终端根据至少一个第二终端发送的、 包含 有该第二终端的业务标识的第二消息所获取;
其中, 该业务标识为该服务器为第二终端分配的标识。
其中, 服务器可以接收第一终端通过 IP层通道发送的该第二终端的业务标 识。 或者, 服务器也可以接收管理实体发送的、 该第二终端的业务标识, 该第 二终端的业务标识由第一终端发送给该管理实体。
服务器在接收该第二终端的业务标识之前, 还可以为该第二终端分配业务 标识, 并将为第二终端分配的业务标识发送给第二终端, 或者, 通过管理实体 将为第二终端分配的业务标识发送给第二终端。
优选的, 该服务器还可以接收该第二终端发送的、 该第二终端的描述信息; 或者, 该服务器还可以接收管理实体发送的、 该第二终端的描述信息, 该第二 终端的描述信息由第二终端发送给该管理实体。 该服务器为第二终端分配业务 标识之后, 还将该第二终端的描述信息与分配给该第二终端的描述信息对应存 储。 步骤 604,服务器获取与该至少一个第二终端的业务标识相对应的第二终端 的描述信息;
服务器可以本地查询与该第二终端的业务标识对应存储的、 该第二终端的 描述信息。
需要说明的是, 本实施例提供的方法, 以 D2D系统中只存在一个服务器为 所有的第一终端和第二终端提供服务进行说明, 实际应用中, D2D 系统中可以 包含有多个同类服务器, 分别为各自归属的终端或者指定小区内的终端提供服 务。 当系统中包含多个同类服务器时, 第一终端和第二终端分别从各自归属的 服务器或者当前提供服务的服务器获取业务标识; 第二终端将该第二终端的描 述信息直接, 或者通过管理实体间接发送给该第二终端的归属服务器或当前为 该第二终端服务的服务器, 以便该第二终端的归属服务器或当前为该第二终端 服务的服务器将该第二终端的描述信息与分配给该第二终端的描述信息对应存 储; 若当前为第一终端提供服务的服务器未存储该第二终端的描述信息, 则该 服务器可以根据该第二终端的业务标识向该第二终端的归属服务器或者当前为 该第二终端提供服务的服务器查询该第二终端的描述信息。
优选的, 服务器在获取与至少一个第二终端的标识相对应的第二终端的描 述信息之前, 还可以接收该第一终端发送的、 该第一终端的业务标识, 比如, 接收第一终端通过 IP层通道发送的该第一终端的业务标识; 或者, 服务器也可 以接收管理实体发送的、 该第一终端的业务标识, 该第一终端的业务标识由第 一终端发送给管理实体; 服务器根据该第一终端的业务标识验证第一终端是否 拥有发现与该第二终端的业务标识相对应的第二终端的权限, 若验证结果为第 一终端拥有发现该第二终端的权限, 则服务器执行查询与该第二终端的业务标 识对应存储的、 该第二终端的描述信息的步骤。 第一终端的业务标识可以是以 下一种或多种的组合: D2D编码( D2D code )、 表示编码( expression code )、 第 一终端的标识、 应用标识。 例如, 第一终端的业务标识可以是第一终端的标识 加表示编码或第一终端的业务标识可以是第一终端的标识加应用标识或第一终 端的业务标识可以是第一终端的标识加应用标识加表示编码。
具体比如, 为了保护第二终端的隐私, 第二终端可以预先设置发现权限, 比如, 第一终端发送的多个第二终端的标识中的某一个业务标识所对应的第二 终端预先设置只能被好友发现。 第一终端在向管理实体发送该第二终端的业务 标识的同时, 还将自身的业务标识发送给服务器, 若服务器根据该第一终端的 业务标识验证该第一终端不是该第二终端的好友, 则验证该第一终端没有权限 发现该第二终端, 服务器便不会将该第二终端的描述信息发送给第一终端。
步骤 606, 服务器将获得的该第二终端的描述信息提供给第一终端。
服务器可以将获得的该第二终端的描述信息发送给该第一终端; 或者, 服 务器也可以将获得的该第二终端的描述信息发送给管理实体, 以便该管理实体 将该第二终端的描述信息发送给该第一终端。
具体的, 服务器可以通过 IP层通道将获得的第二终端的描述信息发送给第 一终端; 服务器可以将该第二终端的描述信息发送给管理实体, 以便管理实体 将该第二终端的描述信息发送给第一终端。
优选的, 为了减少第二终端之间的干扰, 以及减小第一终端负担, 节约第 一终端电量, 第一终端根据从基站获取到的发现资源监听第二终端通过基站分 配的被发现资源发送的第二消息。 其中, 第一终端获取发现资源以及第二终端 获取被发现资源时, 都需要进行权限验证, 具体如下:
在第一终端获取发现资源时, 服务器可以接收管理实体发送的、 该第一终 端的身份标识, 该第一终端的身份标识为包含于该第一终端发送给管理实体的 第一请求中的标识; 服务器根据该第一终端的身份标识验证该第一终端是否拥 有发现终端的权限; 若验证结果为该第一终端拥有发现终端的权限, 则服务器 向管理实体反馈第一终端拥有发现终端的权限的指示, 以便管理实体在接收到 该指示后向基站发送第二请求; 其中, 该第一请求用于请求获取发现资源, 该 第二请求用于请求基站获取并向该第一终端发送发现资源, 该发现资源为第一 终端监听第二消息时所使用的资源。
或者, 在第一终端获取发现资源时, 服务器可以接收管理实体发送的、 第 一终端的身份标识和第一终端中使用发现业务的应用的标识, 该第一终端的身 份标识和该第一终端中使用发现业务的应用的标识为包含于第一终端发送给管 理实体的第一请求中的标识; 服务器根据该第一终端的身份标识验证该第一终 端是否拥有发现终端的权限, 并根据该第一终端中使用发现业务的应用的标识 验证该应用是否拥有使用发现功能的权限; 若验证结果为该第一终端拥有发现 终端的权限且该应用拥有使用发现功能的权限, 则服务器向管理实体反馈第一 终端拥有发现终端的权限且应用拥有使用发现功能的权限的指示, 以便管理实 体在接收到该指示后向基站发送第二请求; 其中, 第一请求用于请求获取发现 资源, 第二请求用于请求基站获取并向第一终端发送发现资源, 发现资源为第 一终端监听第二消息时所使用的资源。
在第二终端获取被发现资源时, 服务器可以接收管理实体发送的、 第二终 端的身份标识, 该第二终端的身份标识为包含于第二终端发送给管理实体的第 三请求中的标识; 服务器根据该第二终端的身份标识验证该第二终端是否拥有 被发现的权限; 若验证结果为该第二终端拥有被发现的权限, 则服务器向管理 实体反馈第二终端拥有被发现的权限的指示, 以便管理实体在接收到指示后向 基站发送第四请求; 其中, 该第三请求用于请求获取被发现资源, 该第四请求 用于请求基站分配并向第二终端发送被发现资源, 该被发现资源为第二终端发 送第二消息时所使用的资源。
或者, 在第二终端获取被发现资源时, 服务器可以接收管理实体发送的、 该第二终端的身份标识和该第二终端中使用被发现业务的应用的标识, 该第二 终端的身份标识和该第二终端中使用被发现业务的应用的标识为包含于第二终 端发送给管理实体的第三请求中的标识; 服务器根据第二终端的身份标识验证 第二终端是否拥有被发现的权限, 并根据该第二终端中使用被发现业务的应用 的标识验证应用是否拥有使用被发现功能的权限; 若验证结果为第一终端拥有 被发现的权限且应用拥有使用被发现功能的权限, 则服务器向管理实体反馈第 二终端拥有被发现的权限且应用拥有使用被发现功能的权限的指示, 以便管理 实体在接收到该指示后向基站发送第四请求; 其中, 第三请求用于请求获取被 发现资源, 第四请求用于请求基站分配并向第二终端发送被发现资源, 被发现 资源为第二终端发送第二消息时所使用的资源。
另外, 在第二终端获取被发现资源时, 服务器还可以接收第二终端发送的 第五请求; 服务器在接收到第五请求后, 向管理实体发送第六请求, 以便管理 实体向基站发送第四请求;
其中, 第五请求用于请求获取被发现资源, 第四请求用于请求基站分配并 向第二终端发送被发现资源, 被发现资源为第二终端发送第二消息时所使用的 资源。
该第五请求中可以包含有第二终端的全球唯一临时标识 GUTI;服务器可以 根据 GUTI向管理实体发送第六请求。
另外, 该第五请求中还可以包含有第二终端的身份标识; 在服务器向管理 实体发送第六请求之前, 服务器可以根据第二终端的身份标识验证第二终端是 否拥有被发现的权限; 若验证结果为第二终端拥有被发现的权限, 则服务器执 行向管理实体发送第六请求的步骤。
或者, 第五请求中包含有第二终端的身份标识和第二终端中使用被发现业 务的应用的标识; 在服务器向管理实体发送第六请求之前, 服务器还可以根据 第二终端的身份标识验证第二终端是否拥有被发现的权限, 并根据第二终端中 使用被发现业务的应用的标识验证应用是否拥有使用被发现功能的权限; 若验 证结果为第一终端拥有被发现的权限且应用拥有使用被发现功能的权限, 则服 务器执行向管理实体发送第六请求的步骤。
综上所述, 本发明实施例提供的发现终端方法, 通过接收第一终端的发出 的第二终端的业务标识, 获得与该第二终端的业务标识相对应的第二终端的描 述信息并提供给该第一终端, 解决了现有技术中第一终端必须预先获知第二终 端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范围的目的; 此外, 本发明实施例提供的发现终端方法, 通过接收管 理实体发送的、 该第一终端的业务标识, 并根据第一终端的业务标识验证第一 终端是否拥有发现与至少一个第二终端的标识中的业务标识相对应的第二终端 的权限, 达到保护第二终端的隐私的目的。 请参考图 9, 其示出了本发明一个实施例提供的发现终端方法的方法流程 图。 该发现终端方法可以应用于在 D2D系统的服务器中为第二终端请求被发现 资源, 以便第二终端根据该被发现资源发送第二信息。 该发现终端方法可以包 括:
步骤 601a, 服务器接收第二终端发送的第五请求;
步骤 601b, 服务器向管理实体发送第六请求, 以便管理实体向基站发送第 四请求;
其中, 该第五请求用于请求获取被发现资源, 该第四请求用于请求基站分 配并向该第二终端发送被发现资源, 该被发现资源为第二终端发送第二消息时 所使用的资源。
综上所述, 本发明实施例提供的发现终端方法, 服务器通过接收第二终端 发送的第五请求, 并向管理实体发送第六请求, 以便管理实体向基站发送请求 基站分配并向该第二终端发送被发现资源的第四请求, 以便第二终端根据基站 分配的该被发现资源发送第二消息, 达到减少终端之间干扰的目的。 基于上述图 9所示的发现终端方法的更为优选的方案, 请参考图 10, 其示 出了本发明一个实施例提供的发现终端方法的方法流程图。 该发现终端方法可 以应用于在 D2D系统的服务器中为第二终端请求被发现资源, 以便第二终端根 据该被发现资源发送第二信息。 该发现终端方法可以包括:
步骤 601A, 服务器接收第二终端发送的第五请求;
步骤 601B, 服务器向管理实体发送第六请求, 以便管理实体向基站发送第 四请求;
其中, 该第五请求用于请求获取被发现资源, 该第四请求用于请求基站分 配并向该第二终端发送被发现资源, 该被发现资源为第二终端发送第二消息时 所使用的资源。
另外, 该第五请求中包含有该第二终端的全球唯一临时标识 GUTI; 服务器 可以根据该 GUTI向管理实体发送第六请求。
综上所述, 本发明实施例提供的发现终端方法, 服务器通过接收第二终端 发送的第五请求, 并向管理实体发送第六请求, 以便管理实体向基站发送请求 基站分配并向该第二终端发送被发现资源的第四请求, 以便第二终端根据基站 分配的该被发现资源发送第二消息, 达到减少终端之间干扰的目的。 请参考图 11, 其示出了本发明一个实施例提供的发现终端方法的方法流程 图。该发现终端方法可以应用于 D2D系统的基站中。该发现终端方法可以包括: 步骤 702,基站向第一终端提供发现资源, 以便该第一终端根据该发现资源 监听至少一个第二终端发送的第二消息。
具体的, 第一终端可以根据该至少一个第二终端发送的第二消息获取该至 少一个第二终端的业务标识, 并根据该至少一个第二终端的业务标识的获取该 第二终端的描述信息。
综上所述, 本发明实施例提供的发现终端方法, 通过向第一终端提供发现 资源, 以便该第一终端根据该发现资源监听至少一个第二终端发送的第二消息, 并根据该第二消息获取该第二终端的业务标识, 并根据该第二终端的业务标识 的获取该第二终端的描述信息, 解决了现有技术中第一终端必须预先获知第二 终端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终 端, 扩展应用范围的目的。 基于上述图 11所示的发现终端方法的更为优选的方案, 请参考图 12, 其示 出了本发明另一实施例提供的发现终端方法的方法流程图。 该发现终端方法可 以应用于 D2D系统的基站中。 该发现终端方法可以包括:
步骤 802,基站为第二终端分配被发现资源, 以便第二终端根据该被发现资 源发送包含有该第二终端的业务标识的被发现信息;
具体的, 基站可以接收管理实体发送的第四请求, 该第四请求由管理实体 根据该第二终端发送的第三请求所发送或者由管理实体根据服务器发送的第六 请求所发送; 基站根据该第四请求为第二终端分配被发现资源, 该被发现资源 为第二终端发送第二消息时所使用的资源。
基站可以将该被发现资源直接发送给第二终端。 具体的, 该第四请求可以 是包含第三指示的 S1-AP消息, 基站接收管理实体发送的该 S1-AP消息后, 为 该第二终端分配被发现资源, 通过 RRC消息将被发现资源发送给第二终端。 该 第三指示用于指示基站分配被发现资源或为第二终端分配被发现资源或分配被 发现资源并向第二终端发送被发现资源或为第二终端分配被发现资源并向第二 终端发送被发现资源, 具体可以是被发现资源分配指示或被发现资源发送指示。
或者, 基站将该被发现资源发送给管理实体, 以便管理实体将被发现资源 发送给第二终端, 具体的, 该第四请求可以是包含第四指示的 S1-AP消息, 基 站接收管理实体发送的该 S1-AP消息后, 通过 container (容器)将被发现资源 发送给管理实体, 管理实体通过 NAS 消息将该包含有被发现资源的 container 发送给第二终端。 该第四指示用于指示基站分配被发现资源或为第二终端分配 被发现资源或分配被发现资源并向管理实体发送被发现资源或为第二终端分配 被发现资源并向管理实体发送被发现资源, 具体可以是被发现资源分配指示或 被发现资源发送指示。
其中, 该被发现资源可以是第二终端发送被发送消息的频段、 时间点或编 码方式等。
步骤 804,基站向第一终端提供发现资源, 以便该第一终端根据该发现资源 监听至少一个第二终端发送的第二消息, 并根据该第二消息获取该第二终端的 业务标识, 并根据该第二终端的业务标识从服务器获取该第二终端的描述信息。
具体的, 基站可以接收管理实体发送的第二请求, 该第二请求由管理实体 发送; 基站可以在接收到该第二请求之后获取发现资源。
基站可以将获取的该发现资源直接发送给第一终端。 具体的, 该第二请求 可以是包含第一指示的 S 1-AP消息, 基站接收到管理实体发送的该 S1 -AP消息 后, 通过 RRC消息将发现资源发送给第一终端。 该第一指示用于指示基站向第 一终端发送发现资源或用于指示基站获取并向第一终端发送发现资源, 具体可 以是发现资源发送指示。
或者, 基站可以将获取到的该发现资源发送给管理实体, 以便管理实体将 该发现资源发送给第一终端。具体的,该第二请求可以是包含第二指示的 S1-AP 消息, 基站接收到管理实体发送的该 S1 -AP消息后, 可以通过 container (容器 ) 将发现资源发送给管理实体, 管理实体通过 NAS 消息将包含有发现资源的 container发送给第一终端。 该第二指示用于指示基站向管理实体发送发现资源 或用于指示基站获取并向管理实体发送发现资源, 具体可以是发现资源发送指 示
或者, 基站可以获取与该第一终端相对应的发现资源; 并在该第一终端所 在的小区内发送包含有发现资源的系统信息, 以便该第一终端解析该系统信息 中的发现资源。
需要说明的是, 发现资源包括第一终端的服务小区的发现资源; 或者, 发 现资源包括第一终端的服务小区的发现资源以及与服务小区相邻的小区的发现 资源。
基站获取与该第一终端相对应的发现资源时, 可以本地查询第一终端当前 服务小区的发现资源; 或者, 基站可以本地查询该第一终端当前服务小区的发 现资源以及与该服务小区相邻的小区的发现资源; 或者, 基站可以本地查询该 第一终端当前服务小区的发现资源,并通过 X2接口向相邻基站查询与该服务小 区相邻的小区的发现资源。
具体的, 相邻基站之间通过 X2接口连接。 若各基站之间相互交换了各自维 护的小区的发现资源, 或者, 当一个基站中某个小区的发现资源发生变化时告 知相邻基站, 则基站中存储有该基站维护的各个小区以及该基站维护的各个小 区的相邻小区的发现资源, 此时, 基站可以直接在本地查询该第一终端当前服 务小区的发现资源以及与该服务小区相邻的小区的发现资源。 若基站中只存储 有该基站维护的各个小区的发现资源, 并没有存储该基站维护的各个小区的相 邻小区的发现资源,则基站可以通过 X2接口向相邻基站查询与该第一终端的服 务小区相邻的小区的发现资源。
本发明实施例提供的方案, 通过为第二终端分配被发现资源, 为第一终端 分配发现资源, 以便第一终端根据该发现资源监听第二终端根据被发现资源发 送的第二消息。 由于第一终端只需要监听发现资源对应的频段、 时间点或特定 编码方式的第二消息, 能够减小终端负担, 节约终端电量; 并且, 当各第二终 端对应的被发现资源不相同时, 也能够有效减少各个第二终端发送的第二消息 之间的干扰。
综上所述, 本发明实施例提供的发现终端方法, 通过向第一终端提供发现 资源, 以便该第一终端根据该发现资源监听至少一个第二终端发送的第二消息, 并根据该第二消息获取该第二终端的业务标识, 并根据该第二终端的业务标识 获取该第二终端的描述信息, 解决了现有技术中第一终端必须预先获知第二终 端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范围的目的; 此外, 本发明实施例提供的发现终端方法, 通过为第二 终端分配被发现资源, 并为第一终端分配发现资源, 以便第一终端根据该发现 资源监听第二终端根据被发现资源发送的第二消息, 达到减小终端负担, 节约 终端电量, 同时有效减少干扰, 节约硬件资源的目的。 对应于上述图 12中的步骤 802, 请参考图 13, 其示出了本发明一个实施例 提供的发现终端方法的方法流程图。 该第一终端的方法可以应用于在基站中为 该第二终端分配被发现资源, 以便第二终端根据该被发现资源发送第二消息, 该发现终端方法可以包括:
步骤 802a, 接收管理实体发送的第四请求, 该第四请求由管理实体根据该 第二终端发送的第三请求所发送或者由管理实体根据服务器发送的第六请求所 发送;
步骤 802b, 根据该第四请求为第二终端分配被发现资源, 该被发现资源为 第二终端发送第二消息时所使用的资源;
步骤 802c, 将该被发现资源发送给第二终端; 或者, 将该被发现资源发送 给管理实体, 以便管理实体将该被发现资源发送给第二终端。
综上所述, 本发明实施例提供的发现终端方法, 通过根据管理实体发送的 第四请求为第二终端分配被发现资源, 并将被发现资源发送给第二终端, 或者, 将被发现资源通过管理实体发送给第二终端, 以便第二终端根据该被发现资源 发送第二消息, 达到减少终端之间干扰的目的。 基于上述图 13所示的方法的更为优选的方案, 请参考图 14, 其示出了本发 明另一实施例提供的发现终端方法的方法流程图。 该第一终端的方法可以应用 于在基站中为该第二终端分配被发现资源, 以便第二终端根据该被发现资源发 送第二消息, 该发现终端方法可以包括:
步骤 802A, 基站接收管理实体发送的第四请求, 该第四请求由管理实体根 据该第二终端发送的第三请求所发送或者由管理实体根据服务器发送的第六请 求所发送;
其中, 该第四请求可以是管理实体发送的 S1-AP消息。
具体的, 基站可以接收管理实体发送的 S1-AP消息, 该 S1-AP消息中包含 有第三指示, 该第三指示用于指示基站分配被发现资源或为第二终端分配被发 现资源或分配被发现资源并向第二终端发送被发现资源或为第二终端分配被发 现资源并向第二终端发送被发现资源。
或者, 基站可以接收管理实体发送的 S1-AP消息, 该 S1-AP消息中包含有 第四指示, 该第四指示用于指示基站分配被发现资源或为第二终端分配被发现 资源或分配被发现资源并向管理实体发送被发现资源或为第二终端分配被发现 资源并向管理实体发送被发现资源。
步骤 802B, 基站根据该第四请求为第二终端分配被发现资源, 该被发现资 源为第二终端发送第二消息时所使用的资源;
其中, 该被发现资源可以包括该第二终端发送第二消息的频段、 时间点或 编码方式等信息。
步骤 802C, 基站将该被发现资源发送给第二终端; 或者, 将该被发现资源 发送给管理实体, 以便管理实体将该被发现资源发送给第二终端。
当该第四请求为包含第三指示的 S1-AP消息时,基站通过 RRC消息将被发 现资源发送给第二终端。
当该第四请求为包含第四指示的 S1-AP消息时, 基站通过容器 container将 被发现资源发送给管理实体, 以便管理实体通过非接入层 NAS消息将被发现资 源发送给第二终端。
综上所述, 本发明实施例提供的发现终端方法, 通过根据管理实体发送的 第四请求为第二终端分配被发现资源, 并将被发现资源发送给第二终端, 或者, 将被发现资源通过管理实体发送给第二终端, 以便第二终端根据该被发现资源 发送第二消息, 达到减少终端之间干扰的目的。 请参考图 15, 其示出了本发明一个实施例提供的发现终端方法的方法流程 图。 该发现终端方法可以应用于 D2D系统的管理实体中。 该发现终端方法可以 包括:
步骤 902, 管理实体接收第一终端发送的、 第二终端的业务标识, 该第二终 端的业务标识由该第一终端根据至少一个第二终端发送的、 包含有该第二终端 的业务标识的第二消息所获取;
步骤 904, 管理实体将该第二终端的业务标识发送给该服务器, 以便该服务 器根据该第二终端的业务标识获取并向该第一终端发送该第二终端的描述信 息;
步骤 906, 管理实体将该第二终端的业务标识发送给服务器,接收服务器发 送的、 该第二终端的描述信息, 并将该第二终端的描述信息发送给第一终端, 该第二终端的描述信息由服务器根据该第二终端的业务标识获取。
综上所述, 本发明实施例提供的发现终端方法, 通过接收第一终端发送的、 第二终端的业务标识并发送给服务器, 以便服务器根据该第二终端的业务标识 向第一终端提供该第二终端的描述信息, 解决了现有技术中第一终端必须预先 获知第二终端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识 未知的终端, 扩展应用范围的目的。 基于上述图 15所示的发现终端方法的更为优选的方案,请参考图 16, 其示 出了本发明另一实施例提供的发现终端方法的方法流程图。 该发现终端方法可 以应用于 D2D系统的管理实体中。 该发现终端方法可以包括:
步骤 1002, 管理实体接收第一终端发送的、 第二终端的业务标识; 其中, 该至少一个第二终端的业务标识为第一终端根据至少一个第二终端 发送的、 包含有该第二终端的业务标识的第二消息所获取到的。
优选的, 管理实体可以预先为第一终端请求发现资源, 并为第二终端请求 被发现资源。 具体如下:
管理实体为第一终端请求发现资源时, 接收第一终端发送的第一请求, 该 第一请求用于请求获取发现资源; 管理实体根据该第一请求向基站发送第二请 求, 该第二请求用于指示基站向第一终端发送发现资源, 基站可以根据该第二 请求将发现资源直接发送给第一终端。 或者, 该第二请求用于指示基站向管理 实体发送发现资源, 管理实体收到基站发送的发现资源后, 将该发现资源发送 给第一终端; 其中, 该发现资源为第一终端监听第二消息时所使用的资源。
其中, 该第二请求可以是 S1-AP消息。 具体的, 管理实体可以根据第一请 求向基站发送 S1-AP消息, 该 S1-AP消息中包含有第一指示, 该第一指示用于 指示基站向第一终端发送发现资源或用于指示基站获取并向第一终端发送发现 资源, 以便基站通过 RRC消息将发现资源发送给第一终端。 或者, 管理实体可 以根据第一请求向基站发送 S1-AP消息, 该 S1-AP消息中包含有第二指示, 该 第二指示用于指示基站向管理实体发送发现资源或用于指示基站获取并向管理 实体发送发现资源; 管理实体接收基站通过容器 container发送的发现资源, 并 通过非接入层 NAS消息将发现资源发送给第一终端。
优选的, 该第一请求中还可以包含有第一终端的身份标识; 管理实体根据 第一请求向基站发送第二请求之前, 还可以将第一终端的身份标识发送给服务 器, 以便服务器根据第一终端的身份标识验证该第一终端是否拥有发现终端的 权限; 管理实体可以接收服务器反馈的该第一终端拥有发现终端的权限的指示; 并在接收到服务器反馈的该第一终端拥有发现终端的权限的指示之后, 根据第 一请求向基站发送第二请求, 否则, 不发送该第二请求。
或者, 该第一请求中还可以包含有第一终端的身份标识和第一终端中使用 发现业务的应用的标识; 管理实体根据第一请求向基站发送第二请求之前, 还 可以将第一终端的身份标识和第一终端中使用发现业务的应用的标识发送给服 务器, 以便服务器根据第一终端的身份标识和第一终端中使用发现业务的应用 的标识验证该第一终端是否拥有发现终端的权限以及该应用是否拥有使用发现 功能的权限; 管理实体可以接收服务器反馈的第一终端拥有发现终端的权限, 且应用拥有使用发现功能的权限的指示; 管理实体可以在接收到服务器反馈的 第一终端拥有发现终端的权限, 且应用拥有使用发现功能的权限的指示之后, 根据第一请求向基站发送第二请求, 否则, 不发送该第二请求。
另外, 管理实体为第二终端请求分配被发现资源时, 还可以接收第二终端 发送的第三请求, 并根据该第三请求向基站发送第四请求, 以便基站根据该第 四请求分配并向该第二终端发送被发现资源; 或者, 管理实体根据该第三请求 向基站发送第四请求, 并接收基站根据该第四请求分配并发送的被发现资源, 并将该被发现资源发送给该第二终端; 或者, 管理实体为第二终端请求分配被 发现资源时, 还可以接收服务器发送的第六请求, 并根据该第六请求向基站发 送第四请求, 以便基站根据该第四请求分配并向该第二终端发送被发现资源; 或者, 管理实体根据该第六请求向基站发送第四请求, 并接收基站根据该第四 请求分配并发送的被发现资源, 并将该被发现资源发送给该第二终端。 其中, 该被发现资源为第二终端发送第二消息是所使用的资源。
其中, 该第四请求可以是 S1-AP消息。 具体的, 管理实体可以根据第三请 求向基站发送 S1-AP消息, 该 S1-AP消息中包含有第三指示, 该第三指示用于 指示基站分配被发现资源或为第二终端分配被发现资源或分配被发现资源并向 第二终端发送被发现资源或为第二终端分配被发现资源并向第二终端发送被发 现资源, 以便基站通过 RRC消息将被发现资源发送给第二终端。
或者, 管理实体可以根据第三请求向基站发送 S1-AP消息, 该 S1-AP消息 中包含有第四指示, 该第四指示用于指示基站分配被发现资源或为第二终端分 配被发现资源或分配被发现资源并向管理实体发送被发现资源或为第二终端分 配被发现资源并向管理实体发送被发现资源; 管理实体接收基站通过容器 container发送的被发现资源, 并通过非接入层 NAS消息将被发现资源发送给第 二终端。
优选的, 该第三请求中可以包含有第二终端的身份标识; 管理实体在根据 第三请求向基站发送第四请求之前, 还可以将第二终端的身份标识发送给服务 器, 以便服务器根据第二终端的身份标识验证该第二终端是否拥有被发现的权 限; 管理实体可以接收服务器反馈的该第二终端拥有被发现的权限的指示; 管 理实体可以在接收到服务器反馈的该第二终端拥有被发现的权限的指示之后, 根据第三请求向基站发送第四请求, 否则, 不发送该第四请求。
或者, 该第三请求中包含有第二终端的身份标识和第二终端中使用被发现 业务的应用的标识; 管理实体在根据第三请求向基站发送第四请求之前, 还可 以将第二终端的身份标识和第二终端中使用被发现业务的应用的标识发送给服 务器, 以便服务器根据第二终端的身份标识和第二终端中使用被发现业务的应 用的标识验证该第二终端是否拥有被发现的权限以及该应用是否拥有使用被发 现功能的权限; 管理实体可以接收服务器反馈的该第二终端拥有被发现的权限, 且该应用拥有使用被发现功能的权限的指示; 管理实体可以在接收到服务器反 馈的该第二终端拥有被发现的权限, 且该应用拥有使用被发现功能的权限的指 示之后, 根据第三请求向基站发送第四请求, 否则, 不发送该第四请求。
步骤 1004, 管理实体将该第二终端的业务标识发送给该服务器, 以便该服 务器根据该第二终端的业务标识获取并向该第一终端发送该第二终端的描述信 息;
步骤 1006, 管理实体接收服务器发送的、 该第二终端的描述信息, 并将该 第二终端的描述信息发送给第一终端。
其中, 该第二终端的描述信息由服务器根据该第二终端的业务标识查询获 付。
优选的, 管理实体还可以接收第一终端发送的、 该第一终端的业务标识; 并将该第一终端的业务标识发送给服务器, 以便服务器根据该第一终端的业务 标识验证该第一终端是否拥有发现的权限以及该第二终端是否允许被发现。
管理实体可以接收服务器在验证结果为该第一终端拥有发现该第二终端的 权限时, 获取并发送的该第二终端的描述信息。
具体比如, 为了保护第二终端的隐私, 第二终端可以预先设置发现权限, 比如, 第一终端发送的多个第二终端的某一个第二终端的业务标识所对应的第 二终端预先设置只能被好友发现。 第一终端在向管理实体发送该第二终端的业 务标识的同时, 还将自身的业务标识发送给服务器, 若服务器根据该第一终端 的业务标识验证该第一终端不是该第二终端的好友, 则验证该第一终端没有权 限发现该第二终端, 服务器便不会将该第二终端的描述信息发送给第一终端。
本发明实施例提供的方案, 通过为第一终端请求分配发现资源, 为第二终 端请求分配被发现资源, 以便第一终端根据该发现资源监听第二终端根据被发 现资源发送的第二消息。 由于第一终端只需要监听发现资源对应的频段和时间 点的第二消息, 能够减小终端负担, 节约终端电量; 并且, 当各第二终端对应 的被发现资源不相同时, 也能够有效减少各个第二终端发送的第二消息之间的 干扰。
综上所述, 本发明实施例提供的发现终端方法, 通过接收第一终端发送的、 第二终端的业务标识并发送给服务器, 以便服务器根据该第二终端的业务标识 向第一终端提供该第二终端的描述信息, 解决了现有技术中第一终端必须预先 获知第二终端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识 未知的终端, 扩展应用范围的目的; 此外, 本发明实施例提供的发现终端方法, 通过为第一终端请求分配发现资源, 并为第二终端请求分配被发现资源, 以便 第一终端根据该发现资源监听第二终端根据被发现资源发送的第二消息, 达到 减小终端负担, 节约终端电量, 有效减少各个第二终端发送的第二消息之间的 干扰的目的; 最后, 本发明实施例提供的发现终端方法, 还通过接收第一终端 发送的该第一终端的业务标识, 并将该业务标识发送给服务器, 以便服务器根 据该第一终端的业务标识验证该第一终端是否拥有发现与该至少一个第二终端 的至少一个第二终端的标识业务标识相对应的第二终端的权限, 达到保护第二 终端的隐私的目的。 对应于上述图 16中步骤 1002之前管理实体预先为第二终端请求被发现资 源的步骤, 请参考图 17, 其示出了本发明一个实施例提供的发现终端方法的方 法流程图。 该发现终端方法可以应用于在管理实体中为第二终端请求被发现资 源, 以便第二终端根据该被发现资源发送第二消息。 该方法可以包括:
步骤 1001a, 管理实体接收第二终端发送的第三请求; 或者, 管理实体接收 服务器发送的第六请求;
步骤 1001b, 管理实体根据该第三请求或第六请求向基站发送第四请求, 以 便基站根据该第四请求分配并向第二终端发送被发现资源; 或者, 管理实体根 据该第三请求或第六请求向基站发送第四请求, 并接收基站根据该第四请求分 配并发送的被发现资源, 并将该被发现资源发送给第二终端;
其中, 该被发现资源为第二终端发送第二消息时所使用的资源。
综上所述, 本发明实施例提供的发现终端方法, 通过接收第二终端发送的 第三请求或者接收服务器发送的第六请求; 根据该第三请求或第六请求向基站 发送第四请求, 以便基站根据该第四请求分配并向第二终端发送被发现资源; 或者, 根据该第三请求或第六请求向基站发送第四请求, 并接收基站根据该第 四请求分配并发送的被发现资源, 并将该被发现资源发送给第二终端; 以便第 二终端根据该被发现资源发送第二消息, 达到减少终端之间干扰的目的。 基于上述图 17所示的发现终端方法的更为优选的方案,请参考图 18, 其示 出了本发明另一实施例提供的发现终端方法, 该发现终端方法可以应用于在管 理实体中为第二终端请求被发现资源, 以便第二终端根据该被发现资源发送第 二消息。 该方法可以包括:
步骤 1001A, 管理实体接收第二终端发送的第三请求; 或者, 管理实体接 收服务器发送的第六请求;
步骤 1001B ,管理实体根据该第三请求或第六请求向基站发送第四请求, 以 便基站根据该第四请求分配并向第二终端发送被发现资源; 或者, 管理实体根 据该第三请求向基站发送第四请求, 并接收基站根据该第四请求分配并发送的 被发现资源, 并将该被发现资源发送给第二终端;
其中, 该被发现资源为第二终端发送第二消息时所使用的资源。
其中, 该第四请求可以是 S1-AP消息。
具体的, 管理实体可以根据第三请求向基站发送 S1-AP消息, 该 S1-AP消 息中包含有第三指示, 该第三指示用于指示基站分配被发现资源或为第二终端 分配被发现资源或分配被发现资源并向第二终端发送被发现资源或为第二终端 分配被发现资源并向第二终端发送被发现资源, 以便基站通过 RRC消息将被发 现资源发送给第二终端。
或者, 管理实体可以根据第三请求向基站发送 S1-AP消息, 该 S1-AP消息 中包含有第四指示, 该第四指示用于指示基站分配被发现资源或为第二终端分 配被发现资源或分配被发现资源并向管理实体发送被发现资源或为第二终端分 配被发现资源并向管理实体发送被发现资源; 管理实体可以接收基站通过容器 container发送的被发现资源, 并通过非接入层 NAS消息将被发现资源发送给第 二终端。
综上所述, 本发明实施例提供的发现终端方法, 通过接收第二终端发送的 第三请求或者, 接收服务器发送的第六请求; 根据该第三请求或第六请求向基 站发送第四请求, 以便基站根据该第四请求分配并向第二终端发送被发现资源; 或者, 根据该第三请求或第六请求向基站发送第四请求, 并接收基站根据该第 四请求分配并发送的被发现资源, 并将该被发现资源发送给第二终端; 以便第 二终端根据该被发现资源发送第二消息, 达到减少终端之间干扰的目的。 请参考图 19, 其示出了本发明一个实施例提供的发现终端方法的方法流程 图。 该发现终端方法可应用于包含有第一终端、 第二终端、 管理实体、 服务器 以及基站的 D2D通信系统中。 该发现终端方法可以包括:
步骤 1102, 第二终端获取服务器分配的、 该第二终端的业务标识; 具体的, 请参考图 20, 其示出了本实施例提供的业务标识获取过程的方法 流程图, 其中, 第二终端获取服务器分配的、 该第二终端的业务标识的具体过 程如下:
步骤 1102a, 第二终端向管理实体发送业务标识获取请求; 该业务标识获取请求中可以包含有该第二终端的身份标识和描述信息。 步骤 1102b,管理实体根据该业务标识获取请求向服务器发送业务标识分配 请求;
该业务标识分配请求中可以包含有该第二终端的身份标识和描述信息。 其 中, 该第二终端的身份标识可以是该第二终端发送的业务标识获取请求中包含 的标识; 该第二终端的描述信息可以是该第二终端发送的业务标识获取请求中 包含的描述信息, 也可以是管理实体预先存储的该第二终端的描述信息。
步骤 1102c, 服务器根据该业务标识分配请求分配该第二终端的业务标识, 并发送给管理实体;
服务器可以首先根据该业务标识分配请求中包含的、 该第二终端的身份标 识验证该第二终端是否拥有被其他终端发现的权限, 若该第二终端拥有被其他 终端发现的权限, 则为该第二终端分配业务标识。
服务器在为第二终端分配业务标识之后, 还将该第二终端的业务标识和该 第二终端的描述信息对应存储。
其中, 该业务标识可以是 D2D code或者 expression code。
步骤 1102d, 管理实体将该第二终端的业务标识发送给该第二终端; 管理实体可以 NAS消息将该第二终端的业务标识发送给该第二终端。
或者,
步骤 1102e, 管理实体将该第二终端的业务标识发送给基站;
管理实体可以通过 S1-AP消息将该第二终端的业务标识发送给基站。
步骤 1102f, 基站将该第二终端的业务标识发送给该第二终端。
基站可以通过 RRC消息将该第二终端的业务标识发送给该第二终端。
步骤 1104, 第二终端获取基站分配的、 该第二终端的被发现资源; 具体的, 请参考图 21, 其示出了本实施例提供的被发现资源获取过程的方 法流程图。 其中, 第二终端获取基站分配的、 该第二终端的被发现资源的具体 过程如下:
步骤 1104a, 第二终端向管理实体发送第三请求;
第二终端可以在发送的被发现资源获取请求中包含该第二终端的身份标 识。
步骤 1104b, 管理实体向基站发送第四请求;
管理实体在向基站发送第四请求之前, 还可以将该第二终端的身份标识发 送给基站, 并在基站根据该第二终端的身份标识验证该第二终端拥有获取被发 现资源的权限时, 向基站发送第四请求。
步骤 1104c, 基站将分配的被发现资源发送给该第二终端;
基站可以通过 RRC消息将该被发现资源发送给该第二终端。
或者,
步骤 1104d, 基站将分配的被发现资源发送给管理实体;
基站可以通过 S1-AP消息将该被发现资源发送给管理实体。
步骤 1104e, 管理实体将该被发现资源发送给该第二终端。
管理实体通过 NAS消息将该被发现资源发送给该第二终端。
其中, 该被发现资源可以包括第二终端发送广播的频段和时间点等信息。 步骤 1106, 第一终端获取基站下发的发现资源;
具体的, 请参考图 22, 其示出了本实施例提供的发现资源获取过程的方法 流程图。 其中, 第一终端获取基站下发的发现资源的具体过程如下:
步骤 1106a, 第一终端向管理实体发送第一请求;
第一终端可以在发送的第一请求中包含该第一终端的身份标识。
步骤 1106b, 管理实体向基站发送第二请求;
管理实体向基站发送第二请求之前, 可以将该第一终端的身份标识发送给 服务器, 并在服务器根据该第一终端的身份标识验证该第一终端拥有发现其他 终端的权限时, 向基站发送该第二请求。
步骤 1106c, 基站将发现资源发送给该第一终端;
基站可以查询与该第一终端对应的发现资源, 并通过 RRC消息将该发现资 源发送给该第一终端。
或者,
步骤 1106d, 基站将发现资源发送给管理实体;
基站可以查询与该第一终端对应的发现资源, 并通过 S1-AP消息将该发现 资源发送给管理实体。
步骤 1106e, 管理实体将发现资源发送给该第一终端。
管理实体通过 NAS消息将该发现资源发送给该第二终端。
其中, 该发现资源可以包括第一终端监听第二消息的频段、 时间点以及编 码方式等信息。
另外, 该发现资源包括该第一终端当前服务小区的发现资源; 或者, 该发 现资源包括该第一终端当前服务小区的发现资源以及与该服务小区相邻的小区 的发现资源。
基站查询与该第一终端相对应的发现资源时, 可以本地查询该第一终端当 前服务小区的发现资源以及与该服务小区相邻的小区的发现资源; 或者, 基站 可以本地查询该第一终端当前服务小区的发现资源, 并向相邻的其他基站查询 与该服务小区相邻的小区的发现资源。
具体的, 相邻基站之间通过 X2接口连接。 若各基站之间相互交换了各自维 护的小区的发现资源, 或者, 当一个基站中某个小区的发现资源发生变化时告 知相邻基站, 则基站中存储有该基站维护的各个小区以及该基站维护的各个小 区的相邻小区的发现资源, 此时, 基站可以直接在本地查询该第一终端当前服 务小区的发现资源以及与该服务小区相邻的小区的发现资源。 若基站中只存储 有该基站维护的各个小区的发现资源, 并没有存储该基站维护的各个小区的相 邻小区的发现资源,则基站可以通过 X2接口向相邻基站查询与该第一终端的服 务小区相邻的小区的发现资源。
或者,
步骤 1106f, 第一终端接收基站发送的系统信息, 并解析系统用信息中包含 的该发现资源。
基站可以主动向第一终端发送该发现资源, 具体的, 基站可以对现有的系 统信息进行增强, 在系统信息中包含该发现资源, 并将包含有该发现资源的系 统信息发送给该第一终端。
步骤 1108, 第一终端根据该发现资源监听第二终端根据该被发现资源发送 的、 包含有该第二终端的业务标识的第二消息;
其中, 第二终端可以在获取到基站分配的被发现资源之后立刻发送给第一 消息, 也可以在接收到第一终端发送的第一消息后发送该第二消息。
其中, 第二终端根据被发现资源中包含的频段、 时间点以及编码方式等信 息发送第二消息, 该第二消息中包含有该被发现设备的业务标识。
第一终端根据发现资源中包含的频段、 时间点以及编码方式等信息监听周 围一定范围内的其他终端发送的第二消息。
步骤 1110, 第一终端将该第二终端的业务标识发送给管理实体, 并由管理 实体发送给服务器;
具体的, 第一终端可以对监听到的所有第二消息中包含的业务标识进行过 滤获得该第二终端的业务标识。 比如, 将信号强度达到一定阔值的第二消息中 包含的业务标识获取为该第二终端的业务标识, 或者, 检测业务标识中的类别, 将符合预定类别的业务标识获取为该第二终端的业务标识。
第一终端将该第二终端的业务标识和该第一终端自身的业务标识发送给管 理实体, 并由管理实体发送给服务器。
其中, 第一终端的业务标识的获取方式与步骤 1102中第二终端获取业务标 识的方式类似, 此处不再赘述。
步骤 1112, 第一终端接收管理实体发送的、 由服务器发送给管理实体的该 第二终端的描述信息。
服务器接收到管理设备发送的该第二终端的业务标识和该第一终端的业务 标识后, 首先可以根据该第一终端的业务标识验证该第一终端是否有权限发现 该第二终端。 若验证结果为该第一终端有权限发现该第二终端, 则查询与该第 二终端的业务标识对应存储的第二终端的描述信息。
需要说明的是, 本发明实施例提供的发现终端方法, 第一终端将获取到的 第二终端的业务标识以及自身的业务标识经由管理实体发送给服务器, 并经由 管理实体接收服务器查询并发送的、 该第二终端的描述信息。 在实际应用中, 第一终端还可以不通过管理实体, 直接将获取到的第二终端的业务标识以及自 身的业务标识发送给服务器, 并直接接收服务器查询并发送的、 第二终端的业 务标识。
综上所述, 本发明实施例提供的发现终端方法, 第一终端通过监听至少一 个第二终端发送的、 包含有第二终端的业务标识的广播并获取该第二终端的业 务标识; 根据该第二终端的业务标识从服务器获取该第二终端的描述信息, 解 决了现有技术中第一终端必须预先获知第二终端的唯一身份标识的问题, 达到 可以发现周围一定范围内身份标识未知的终端, 扩展应用范围的目的; 另外, 本发明实施例提供的发现终端方法, 第一终端根据获取到的发现资源监听第二 终端根据被发现资源发送的第二消息, 达到减小终端负担, 节约终端电量, 有 效减少各个第二终端发送的第二消息之间的干扰的目的; 最后, 本发明实施例 提供的发现终端方法, 第一终端通过将第一终端的业务标识发送给管理实体, 以便服务器根据该第一终端的业务标识验证该第一终端是否拥有发现该第二终 端的权限, 达到有针对性的保护第二终端的隐私的目的。 请参考图 23, 其示出了本发明一个实施例提供的第一终端的设备构成图。 该第一终端可以包括:
发现资源获取模块 1201, 用于获取发现资源;
消息监听模块 1202,用于根据发现资源获取模块 1201获取到的发现资源监 听至少一个第二终端发送的第二消息, 该第二消息中包含有该第二终端的业务 标识;
业务标识获取模块 1203,用于根据消息监听模块 1202监听到的该第二消息 获取该第二终端的业务标识;
描述信息获取模块 1204,用于根据业务标识获取模块 1203获取到的第二终 端的业务标识从服务器获取该第二终端的描述信息。
综上所述, 本发明实施例提供的第一终端, 通过获取发现资源, 根据该发 现资源监听至少一个第二终端发送的、 包含有第二终端的业务标识的消息并获 取该第二终端的标识; 根据该第二终端的标识从服务器获取该第二终端的描述 信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一身份标识的问 题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范围的目的。 基于上述图 23所示的第一终端的更为优选的方案,请参考图 24, 其示出了 本发明另一实施例提供的第一终端的设备构成图。 该第一终端可以包括:
发现资源获取模块 1301, 用于获取发现资源;
消息监听模块 1302,用于根据发现资源获取模块 1301获取到的发现资源监 听至少一个第二终端发送的第二消息, 该第二消息中包含有该第二终端的业务 标识;
业务标识获取模块 1303,用于根据消息监听模块 1302监听到的该第二消息 获取该第二终端的业务标识;
描述信息获取模块 1304,用于根据业务标识获取模块 1303获取到的第二终 端的业务标识从服务器获取该第二终端的描述信息。
其中, 描述信息获取模块 1304, 包括:
第一标识发送单元 1304a, 用于将第二终端的业务标识发送给服务器; 第二标识发送单元 1304b, 用于将第二终端的业务标识发送给管理实体, 以 便管理实体将第二终端的业务标识发送给服务器;
第一信息接收单元 1304c, 用于接收服务器发送的第二终端的描述信息, 该 第二终端的描述信息为服务器根据第二终端的业务标识获取并发送的信息; 第二信息接收单元 1304d, 用于接收管理实体发送的第二终端的描述信息, 第二终端的描述信息为服务器根据第二终端的业务标识获取并发送给管理实体 的信息。
该第一终端还包括:
第一标识发送模块 1305, 用于在第一信息接收单元 1304c接收服务器发送 的该第二终端的描述信息, 或者, 第二信息接收单元 1304d接收管理实体发送 的该第二终端的描述信息之前, 将该第一终端的业务标识发送给服务器, 以便 服务器在根据该第一终端的业务标识验证该第一终端拥有发现该第二终端的权 限后, 根据该第二终端的业务标识获取该第二终端的描述信息;
第二标识发送模块 1306, 用于在第一信息接收单元 1304c接收服务器发送 的该第二终端的描述信息, 或者, 第二信息接收单元 1304d接收管理实体发送 的该第二终端的描述信息之前, 将该第一终端的业务标识发送给管理实体, 以 便管理实体将该第一终端的业务标识发送给服务器, 以便服务器在根据该第一 终端的业务标识验证该第一终端拥有发现该第二终端的权限后, 根据该第二终 端的业务标识获取该第二终端的描述信息。
发现资源获取模块 1301, 包括:
第一请求发送单元 1301a, 用于向管理实体发送第一请求, 以便管理实体根 据该第一请求向基站发送第二请求;
第一发现资源接收单元 1301b,用于接收基站根据该第二请求发送的该发现 资源;
第二发现资源接收单元 1301c, 用于接收管理实体发送的该发现资源; 该发 现资源由基站根据该第二请求发送给管理实体;
其中, 该发现资源包括该第一终端的服务小区的发现资源; 或者, 该发现 资源包括该第一终端的服务小区的发现资源以及与该服务小区相邻的小区的发 现资源。
第一发现资源接收单元 1301b, 用于接收基站通过 RRC消息发送的发现资 源, 该发现资源是基站在接收到该第二请求后发送的资源;
其中, 该第二请求为包含第一指示的 S1-AP消息, 该第一指示用于指示基 站向第一终端发送发现资源或用于指示基站获取并向第一终端发送发现资源。
第二发现资源接收单元 1301c, 用于接收管理实体通过非接入层 NAS消息 发送的发现资源,该发现资源为基站在接收到该第二请求后,通过容器 container 发送给管理实体的发现资源;
其中, 该第二请求为包含第二指示的 S1-AP消息, 该第二指示用于指示基 站向管理实体发送发现资源或用于指示基站获取并向管理实体发送发现资源。
发现资源获取模块 1301, 包括:
系统信息接收单元 1301d, 用于接收基站发送的系统信息;
发现资源解析单元 1301e,用于解析系统信息接收单元 1301d接收到的系统 信息中包含的该发现资源;
其中, 该发现资源包括该第一终端的服务小区的发现资源; 或者, 该发现 资源包括该第一终端的服务小区的发现资源以及与该服务小区相邻的小区的发 现资源。
其中, 第一请求发送单元 1301a, 用于向管理实体发送包含有该第一终端的 身份标识的第一请求, 以便管理实体将该第一终端的身份标识发送给服务器, 并在服务器根据该第一终端的身份标识验证该第一终端拥有发现终端的权限 时, 向基站发送第二请求。
第一请求发送单元 1301a,用于向管理实体发送包含有该第一终端的身份标 识和该第一终端中使用发现业务的应用的标识的第一请求, 以便该管理实体将 该第一终端的身份标识和该第一终端中使用发现业务的应用的标识发送给服务 器, 并在服务器根据该第一终端的身份标识和该第一终端中使用发现业务的应 用的标识验证该第一终端拥有发现终端的权限且该应用拥有使用发现功能的权 限时, 向基站发送第二请求。
业务标识获取模块 1303, 用于将监听到的该第二消息中、 符合预定条件的 业务标识获取为该第二终端的业务标识;
该预定条件包括下列条件中的至少一种:
该第二消息的信号强度大于或等于预定强度阔值;
或者, 该第二消息中包含的第二终端的类别符合预定类别;
或者, 该第二消息中包含的应用的描述符合预定的应用描述。
该第一终端还包括:
第一消息发送模块 1307,用于在第二消息监听模块 1302根据该发现资源监 听至少一个第二终端发送的第二消息之前, 发送第一消息, 以便第二终端在接 收到该第一消息之后, 根据该第一消息发送该第二消息。 综上所述, 本发明实施例提供的第一终端, 通过获取发现资源, 根据该发 现资源监听至少一个第二终端发送的、 包含有第二终端的业务标识的消息并获 取该第二终端的标识, 根据该第二终端的标识从服务器获取该第二终端的描述 信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一身份标识的问 题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范围的目的; 另外, 本发明实施例提供的第一终端, 通过根据获取到的发现资源监听第二终 端发送的第二消息, 达到减小终端负担, 节约终端电量的目的; 最后, 本发明 实施例提供的第一终端, 通过将第一终端的业务标识发送给管理实体, 以便服 务器根据该第一终端的业务标识验证该第一终端是否拥有发现该第二终端的权 限, 达到有针对性的保护第二终端的隐私的目的。 请参考图 25, 其示出了本发明一个实施例提供的第一终端的设备构成图。。 该第一终端可以包括: 处理器 1401、 接收机 1402和发射机 1403;
处理器 1401, 用于控制接收机 1402和发射机 1403获取发现资源; 接收机 1402, 用于根据获取到的发现资源监听至少一个第二终端发送的第 二消息, 该第二消息中包含有该第二终端的业务标识;
处理器 1401,用于根据被接收机 1402监听到的该第二消息获取该第二终端 的业务标识;
处理器 1401, 用于控制接收机 1402和发射机 1403, 根据获取到的第二终 端的业务标识从服务器获取该第二终端的描述信息。
综上所述, 本发明实施例提供的第一终端, 通过获取发现资源, 根据该发 现资源监听至少一个第二终端发送的、 包含有第二终端的业务标识的消息并获 取该第二终端的标识; 根据该第二终端的标识从服务器获取该第二终端的描述 信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一身份标识的问 题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范围的目的。 基于上述图 25所示的第一终端的更为优选的方案,请参考图 26, 其示出了 本发明另一实施例提供的第一终端的设备构成图。 该第一终端可以包括: 处理 器 1501、 接收机 1502和发射机 1503 ;
处理器 1501, 用于控制接收机 1502和发射机 1503获取发现资源; 接收机 1502, 用于根据获取到的发现资源监听至少一个第二终端发送的第 二消息, 该第二消息中包含有该第二终端的业务标识;
处理器 1501,用于根据被接收机 1502监听到的该第二消息获取该第二终端 的业务标识;
处理器 1501, 用于控制接收机 1502和发射机 1503, 根据获取到的第二终 端的业务标识从服务器获取该第二终端的描述信息。
其中, 处理器 1501, 用于控制发射机 1503将第二终端的业务标识发送给服 务器;
处理器 1501,用于控制发射机 1503将第二终端的业务标识发送给管理实体, 以便管理实体将第二终端的业务标识发送给服务器;
接收机 1502, 用于接收服务器发送的第二终端的描述信息, 该第二终端的 描述信息为服务器根据第二终端的业务标识获取并发送的信息;
接收机 1502, 用于接收管理实体发送的第二终端的描述信息, 第二终端的 描述信息为服务器根据第二终端的业务标识获取并发送给管理实体的信息。
处理器 1501,还用于在接收机 1502接收服务器发送的该第二终端的描述信 息, 或者, 接收管理实体发送的该第二终端的描述信息之前, 控制发射机 1503 将该第一终端的业务标识发送给服务器, 以便服务器在根据该第一终端的业务 标识验证该第一终端拥有发现该第二终端的权限后, 根据该第二终端的业务标 识获取该第二终端的描述信息;
处理器 1501,还用于在接收机 1502接收服务器发送的该第二终端的描述信 息, 或者, 接收管理实体发送的该第二终端的描述信息之前, 控制发射机 1503 将该第一终端的业务标识发送给管理实体, 以便管理实体将该第一终端的业务 标识发送给服务器, 以便服务器在根据该第一终端的业务标识验证该第一终端 拥有发现该第二终端的权限后, 根据该第二终端的业务标识获取该第二终端的 描述信息。
处理器 1501, 用于控制发射机 1503向管理实体发送第一请求, 以便管理实 体根据该第一请求向基站发送第二请求;
接收机 1502 , 用于接收基站根据该第二请求发送的该发现资源;
接收机 1502, 用于接收管理实体发送的该发现资源; 该发现资源由基站根 据该第二请求发送给管理实体;
其中, 该发现资源包括该第一终端的服务小区的发现资源; 或者, 该发现 资源包括该第一终端的服务小区的发现资源以及与该服务小区相邻的小区的发 现资源。
接收机 1502, 用于接收基站通过 RRC消息发送的发现资源, 该发现资源是 基站在接收到该第二请求后发送的资源;
其中, 该第二请求为包含第一指示的 S1-AP消息, 该第一指示用于指示基 站向第一终端发送发现资源或用于指示基站获取并向第一终端发送发现资源。
接收机 1502 , 用于接收管理实体通过非接入层 NAS消息发送的发现资源, 该发现资源为基站在接收到该第二请求后, 通过容器 container发送给管理实体 的发现资源;
其中, 该第二请求为包含第二指示的 S1-AP消息, 该第二指示用于指示基 站向管理实体发送发现资源或用于指示基站获取并向管理实体发送发现资源。
接收机 1502 , 用于接收基站发送的系统信息;
处理器 1501,用于解析接收机 1502接收到的系统信息中包含的该发现资源; 其中, 该发现资源包括该第一终端的服务小区的发现资源; 或者, 该发现 资源包括该第一终端的服务小区的发现资源以及与该服务小区相邻的小区的发 现资源。
其中, 处理器 1501, 用于控制发射机 1503向管理实体发送包含有该第一终 端的身份标识的第一请求, 以便管理实体将该第一终端的身份标识发送给服务 器, 并在服务器根据该第一终端的身份标识验证该第一终端拥有发现终端的权 限时, 向基站发送第二请求。
处理器 1501,用于控制发射机 1503向管理实体发送包含有该第一终端的身 份标识和该第一终端中使用发现业务的应用的标识的第一请求, 以便该管理实 体将该第一终端的身份标识和该第一终端中使用发现业务的应用的标识发送给 服务器, 并在服务器根据该第一终端的身份标识和该第一终端中使用发现业务 的应用的标识验证该第一终端拥有发现终端的权限且该应用拥有使用发现功能 的权限时, 向基站发送该第二请求。
处理器 1501, 用于将监听到的该第二消息中、 符合预定条件的业务标识获 取为该第二终端的业务标识;
该预定条件包括下列条件中的至少一种:
该第二消息的信号强度大于或等于预定强度阔值;
或者, 该第二消息中包含的第二终端的类别符合预定类别;
或者, 该第二消息中包含的应用的描述符合预定的应用描述。 处理器 1501,还用于在接收机 1502根据该发现资源监听至少一个第二终端 发送的第二消息之前, 控制发射机 1503发送第一消息, 以便第二终端在接收到 该第一消息之后, 根据该第一消息发送该第二消息。
综上所述, 本发明实施例提供的第一终端, 通过获取发现资源, 根据该发 现资源监听至少一个第二终端发送的、 包含有第二终端的业务标识的消息并获 取该第二终端的标识, 根据该第二终端的标识从服务器获取该第二终端的描述 信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一身份标识的问 题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范围的目的; 另外, 本发明实施例提供的第一终端, 通过根据获取到的发现资源监听第二终 端发送的第二消息, 达到减小终端负担, 节约终端电量的目的; 最后, 本发明 实施例提供的第一终端, 通过将第一终端的业务标识发送给管理实体, 以便服 务器根据该第一终端的业务标识验证该第一终端是否拥有发现该第二终端的权 限, 达到有针对性的保护第二终端的隐私的目的。 请参考图 27, 其示出了本发明一个实施例提供的第二终端的设备构成图。 该第二终端可以包括:
第二消息发送模块 1601, 用于发送包含有该第二终端的业务标识的第二消 息, 以便第一终端根据该第二消息获取该第二终端的业务标识, 并根据该第二 终端的业务标识从 ^!良务器获取该第二终端的描述信息。
综上所述, 本发明实施例提供的第二终端, 通过发送包含有第二终端的业 务标识的第二消息, 以便第一终端根据第二终端的标识从服务器获取该第二终 端的描述信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一身份 标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范 围的目的。 基于上述图 27所示的第二终端的更为优选的方案,请参考图 28, 其示出了 本发明另一实施例提供的第二终端的设备构成图。 该第二终端可以包括:
第二消息发送模块 1701, 用于发送包含有该第二终端的业务标识的第二消 息, 以便第一终端根据该第二消息获取该第二终端的业务标识, 并根据该第二 终端的业务标识从 ^!良务器获取该第二终端的描述信息。
该第二终端还包括: 第一请求发送模块 1702,用于在第二消息发送模块 1701发送包含有第二终 端的业务标识的第二消息之前, 向管理实体发送第三请求, 以便管理实体根据 该第三请求向基站发送第四请求;
第二请求发送模块 1703,用于在第二消息发送模块 1701发送包含有该第二 终端的业务标识的第二消息之前, 向服务器发送第五请求, 以便服务器向管理 实体发送第六请求, 以便管理实体向基站发送第四请求;
第一被发现资源接收模块 1704, 用于接收基站发送的被发现资源; 该被发 现资源为基站根据该第四请求所分配的资源;
第二被发现资源接收模块 1705, 用于接收管理实体发送的、 基站发送给管 理实体的被发现资源; 该被发现资源为基站根据该第四请求所分配的资源; 第二消息发送模块 1701,用于根据第一被发现资源接收模块 1704或者第二 被发现资源接收模块 1705接收到的该被发现资源发送包含有业务标识的第二消 息。
第一被发现资源接收模块 1704,用于接收基站通过 RRC消息发送的被发现 资源, 该被发现资源是基站在接收到第四请求后发送的资源;
其中, 该第四请求为包含第三指示的 S1-AP消息, 该第三指示用于指示基 站分配被发现资源或为第二终端分配被发现资源或分配被发现资源并向第二终 端发送被发现资源或为第二终端分配被发现资源并向第二终端发送被发现资 源。
第二被发现资源接收模块 1705,用于接收管理实体通过非接入层 NAS消息 发送的被发现资源,该被发现资源为基站接收到第四请求后,通过容器 container 发送给管理实体的被发现资源;
其中, 该第四请求为包含第四指示的 S1-AP消息, 该第四指示用于指示基 站分配被发现资源或为第二终端分配被发现资源或分配被发现资源并向管理实 体发送被发现资源或为第二终端分配被发现资源并向管理实体发送被发现资 源。
第一请求发送模块 1702, 用于向管理实体发送包含有第二终端的身份标识 的第三请求, 以便管理实体将该第二终端的身份标识发送给服务器, 并在服务 器根据该第二终端的身份标识验证该第二终端拥有被发现的权限时, 向基站发 送第四请求。
第一请求发送模块 1702, 用于向管理实体发送包含有该第二终端的身份标 识和该第二终端中使用被发现业务的应用的标识的第三请求, 以便管理实体将 该第二终端的身份标识和该第二终端中使用被发现业务的应用的标识发送给服 务器, 并在服务器根据该第二终端的身份标识和该第二终端中使用被发现业务 的应用的标识验证该第二终端拥有被发现的权限, 且该应用拥有使用被发现功 能的权限时, 向基站发送第四请求。
第二请求发送模块 1702, 用于向服务器发送包含有第二终端的身份标识的 第五请求, 以便服务器在根据该第二终端的身份标识验证该第二终端拥有被发 现的权限时, 向管理实体发送该第六请求。
第二请求发送模块 1702, 用于向服务器发送包含有该第二终端的身份标识 和该第二终端中使用被发现业务的应用的标识的第五请求, 以便服务器在根据 该第二终端的身份标识验证该第二终端拥有被发现的权限, 且该应用拥有使用 被发现功能的权限时, 向管理实体发送第六请求。
第二请求发送模块 1702, 用于向服务器发送包含该第二终端的全球唯一临 时标识 GUTI的第五请求, 以便服务器根据该 GUTI向管理实体发送第六请求。
第二消息发送模块 1701, 包括:
第一消息发送单元 1701a, 用于在第一被发现资源接收模块 1705或者第二 被发现资源接收模块 1706接收到被发现资源后, 立即发送该第二消息;
第一消息接收单元 1701b, 用于接收该第一终端发送的第一消息; 第二消息发送单元 1701c,用于根据第一消息接收单元 1701b接收到的第一 消息发送该第二消息。
综上所述, 本发明实施例提供的第二终端, 通过发送包含有第二终端的业 务标识的第二消息, 以便第一终端根据第二终端的标识从服务器获取该第二终 端的描述信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一身份 标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范 围的目的; 另外, 本发明实施例提供的第二终端, 通过获取基站分配的被发现 资源, 并根据获取到的被发现资源发送第二消息, 达到减少第二终端之间干扰 的目的。 请参考图 29, 其示出了本发明一个实施例提供的第二终端的设备构成图。 该第二终端可以包括:
第一请求发送模块 1801, 用于向管理实体发送第三请求, 以便管理实体根 据该第三请求向基站发送第四请求;
第二请求发送模块 1802, 用于向服务器发送第五请求, 以便所述服务器向 所述管理实体发送第六请求, 以便所述管理实体向所述基站发送所述第四请求; 第一被发现资源接收模块 1803, 用于接收基站发送的被发现资源; 该被发 现资源为基站根据第四请求所分配的资源;
第二被发现资源接收模块 1804, 用于接收管理实体发送的、 基站发送给管 理实体的被发现资源; 该被发现资源为基站根据第四请求所分配的资源。
综上所述, 本发明实施例提供的第二终端, 通过向管理实体发送第三请求, 以便管理实体根据该第三请求向基站发送第四请求; 接收基站发送的被发现资 源; 或者, 接收管理实体发送的、 基站发送给管理实体的被发现资源, 以便第 二终端根据该被发现资源发送第二消息, 达到减少终端之间干扰的目的。 基于上述图 29所示的第二终端的更为优选的方案,请参考图 30, 其示出了 本发明另一实施例提供的第二终端的设备构成图。 该第二终端可以包括:
第一请求发送模块 1901, 用于向管理实体发送第三请求, 以便管理实体根 据该第三请求向基站发送第四请求;
第二请求发送模块 1902, 用于向服务器发送第五请求, 以便所述服务器向 所述管理实体发送第六请求, 以便所述管理实体向所述基站发送所述第四请求; 第一被发现资源接收模块 1903, 用于接收基站发送的被发现资源; 该被发 现资源为基站根据第四请求所分配的资源;
第二被发现资源接收模块 1904, 用于接收管理实体发送的、 基站发送给管 理实体的被发现资源; 该被发现资源为基站根据第四请求所分配的资源。
其中, 第二请求发送模块 1902, 用于向服务器发送包含该第二终端的全球 唯一临时标识 GUTI的所述第五请求,以便该服务器根据该 GUTI向管理实体发 送该第六请求。
第一被发现资源接收模块 1903,用于接收基站通过 RRC消息发送的被发现 资源, 该被发现资源是基站在接收到第四请求后发送的资源;
其中, 该第四请求为包含第三指示的 S1-AP消息该第三指示用于指示基站 分配被发现资源或为第二终端分配被发现资源或分配被发现资源并向第二终端 发送被发现资源或为第二终端分配被发现资源并向第二终端发送被发现资源。
第二被发现资源接收模块 1904,用于接收管理实体通过非接入层 NAS消息 发送的被发现资源,该被发现资源为基站在接收第四请求后,通过容器 container 发送给管理实体的被发现资源;
其中, 该第四请求为包含第四指示的 S1-AP消息, 该第四指示用于指示基 站分配被发现资源或为第二终端分配被发现资源或分配被发现资源并向管理实 体发送被发现资源或为第二终端分配被发现资源并向管理实体发送被发现资 源。
综上所述, 本发明实施例提供的第二终端, 通过向管理实体发送第三请求, 以便管理实体根据该第三请求向基站发送第四请求; 接收基站发送的被发现资 源; 或者, 接收管理实体发送的、 基站发送给管理实体的被发现资源, 以便第 二终端根据该被发现资源发送第二消息, 达到减少终端之间干扰的目的。 请参考图 31, 其示出了本发明一个实施例提供的第二终端的设备构成图。 该第二终端可以包括: 处理器 2001和发射机 2002;
处理器 2001,用于控制发射机 2002发送包含有该第二终端的业务标识的第 二消息, 以便第一终端根据该第二消息获取该第二终端的业务标识, 并根据该 第二终端的业务标识从服务器获取该第二终端的描述信息, 该业务标识为服务 器分配的标识。
综上所述, 本发明实施例提供的第二终端, 通过发送包含有第二终端的业 务标识的第二消息, 以便第一终端根据第二终端的标识从服务器获取该第二终 端的描述信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一身份 标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范 围的目的。 基于上述图 31所示的第二终端的更为优选的方案,请参考图 32, 其示出了 本发明另一实施例提供的第二终端的设备构成图。 该第二终端可以包括: 处理 器 2101、 发射机 2102和接收机 2103 ;
处理器 2101,用于控制发射机 2102发送包含有该第二终端的业务标识的第 二消息, 以便第一终端根据该第二消息获取该第二终端的业务标识, 并根据该 第二终端的业务标识从服务器获取该第二终端的描述信息, 该业务标识为服务 器分配的标识。
处理器 2101,用于在控制发射机 2102发送包含有第二终端的业务标识的第 二消息之前, 控制发射机 2102向管理实体发送第三请求, 以便管理实体根据该 第三请求向基站发送第四请求;
处理器 2101,用于在控制发射机 2102发送包含有第二终端的业务标识的第 二消息之前, 控制发射机 2102向服务器发送第五请求, 以便服务器向管理实体 发送第六请求, 以便管理实体向基站发送第四请求;
接收机 2103, 用于接收基站发送的被发现资源; 该被发现资源为基站根据 该第四请求所分配的资源;
接收机 2103, 用于接收管理实体发送的、 基站发送给管理实体的被发现资 源; 该被发现资源为基站根据该第四请求所分配的资源;
处理器 2101, 用于在控制发射机 2102根据接收机 2103接收到的该被发现 资源发送包含有业务标识的第二消息。
接收机 2103, 用于接收基站通过 RRC消息发送的被发现资源, 该被发现资 源是基站在接收到第四请求后发送的资源;
其中, 该第四请求为包含第三指示的 S1-AP消息, 该第三指示用于指示基 站分配被发现资源或为第二终端分配被发现资源或分配被发现资源并向第二终 端发送被发现资源或为第二终端分配被发现资源并向第二终端发送被发现资 源。
接收机 2103, 用于接收管理实体通过非接入层 ( NAS ) 消息发送的被发现 资源, 该被发现资源为基站接收到第四请求后, 通过容器 container发送给管理 实体的被发现资源;
其中, 该第四请求为包含第四指示的 S1-AP消息, 该第四指示用于指示基 站分配被发现资源或为第二终端分配被发现资源或分配被发现资源并向管理实 体发送被发现资源或为第二终端分配被发现资源并向管理实体发送被发现资 源。
处理器 2101,用于控制发射机 2102向管理实体发送包含有第二终端的身份 标识的第三请求, 以便管理实体将该第二终端的身份标识发送给服务器, 并在 服务器根据该第二终端的身份标识验证该第二终端拥有被发现的权限时, 向基 站发送第四请求。
处理器 2101,用于控制发射机 2102向管理实体发送包含有该第二终端的身 份标识和该第二终端中使用被发现业务的应用的标识的第三请求, 以便管理实 体将该第二终端的身份标识和该第二终端中使用被发现业务的应用的标识发送 给服务器, 并在服务器根据该第二终端的身份标识和该第二终端中使用被发现 业务的应用的标识验证该第二终端拥有被发现的权限, 且该应用拥有使用被发 现功能的权限时, 向基站发送第四请求。
处理器 2101,用于控制发射机 2102向服务器发送包含有第二终端的身份标 识的第五请求, 以便服务器在根据该第二终端的身份标识验证该第二终端拥有 被发现的权限时, 向管理实体发送该第六请求。
处理器 2101,用于控制发射机 2102向服务器发送包含有该第二终端的身份 标识和该第二终端中使用被发现业务的应用的标识的第五请求, 以便服务器在 根据该第二终端的身份标识验证该第二终端拥有被发现的权限, 且该应用拥有 使用被发现功能的权限时, 向管理实体发送第六请求。
处理器 2101,用于控制发射机 2102向服务器发送包含该第二终端的全球唯 一临时标识 GUTI的第五请求,以便服务器根据该 GUTI向管理实体发送第六请 求。
处理器 2101, 用于在接收机 2103接收到被发现资源后, 控制发射机 2102 立即发送该第二消息;
接收机 2103, 用于接收该第一终端发送的第一消息;
处理器 2101, 用于根据接收机 2103接收到的第一消息, 控制发射机 2102 发送该第二消息。
综上所述, 本发明实施例提供的第二终端, 通过发送包含有第二终端的业 务标识的第二消息, 以便第一终端根据第二终端的标识从服务器获取该第二终 端的描述信息, 解决了现有技术中第一终端必须预先获知第二终端的唯一身份 标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展应用范 围的目的; 另外, 本发明实施例提供的第二终端, 通过获取基站分配的被发现 资源, 并根据获取到的被发现资源发送第二消息, 达到减少第二终端之间干扰 的目的。 请参考图 33, 其示出了本发明一个实施例提供的服务器的设备构成图。 该 服务器可以包括:
第一标识接收模块 2201,用于接收第一终端的发出的第二终端的业务标识; 该第二终端的业务标识由第一终端根据至少一个第二终端发送的、 包含有该第 二终端的业务标识的第二消息所获取; 信息获取模块 2202,用于根据第一标识接收模块 2201接收到的第二终端的 业务标识获取该第二终端的描述信息;
信息提供模块 2203,用于将信息获取模块 2202获取到的该第二终端的描述 信息提供给第一终端。
综上所述, 本发明实施例提供的服务器, 通过接收第一终端的发出的第二 终端的业务标识, 查询与该第二终端的业务标识相对应的第二终端的描述信息 并提供给该第一终端, 解决了现有技术中第一终端必须预先获知第二终端的唯 一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展 应用范围的目的。 基于上述图 33所示的服务器的更为优选的方案,请参考图 34, 其示出了本 发明另一实施例提供的服务器的设备构成图。 该服务器可以包括:
第一标识接收模块 2301,用于接收第一终端的发出的第二终端的业务标识; 该第二终端的业务标识由第一终端根据至少一个第二终端发送的、 包含有该第 二终端的业务标识的第二消息所获取;
信息获取模块 2302,用于根据第一标识接收模块 2301接收到的第二终端的 业务标识获取该第二终端的描述信息;
信息提供模块 2303,用于将信息获取模块 2302获取到的该第二终端的描述 信息提供给第一终端。
第一标识接收模块 2301, 包括:
第一标识接收单元 2301a, 用于接收第一终端发送的、 该第二终端的业务标 识;
第二标识接收单元 2301b, 用于接收管理实体发送的、该第二终端的业务标 识, 该第二终端的业务标识是第一终端发送给管理实体的业务标识。
信息获取模块 2302, 包括:
第一查询单元 2302a,用于本地查询与该第二终端的业务标识对应的该第二 终端的描述信息;
第二查询单元 2302b,用于根据该第二终端的业务标识向该第二终端的归属 服务器或者当前为该第二终端提供服务的服务器查询该第二终端的描述信息。
信息提供模块 2303包括:
第一信息发送单元 2303a, 用于将信息获取模块 2302获取到的该第二终端 的描述信息发送给第一终端;
第二信息发送单元 2303b, 用于将信息获取模块 2102获取到的该第二终端 的描述信息发送给管理实体, 以便管理实体将该第二终端的描述信息发送给第 一终端。
该服务器还包括:
第二标识接收模块 2304,用于在信息获取模块 2302获取与该第二终端的业 务标识相对应的第二终端的描述信息之前, 接收第一终端发送的、 该第一终端 的业务标识;
第三标识接收模块 2305,用于在信息获取模块 2302获取与该第二终端的业 务标识相对应的第二终端的描述信息之前, 接收管理实体发送的、 该第一终端 的业务标识, 该第一终端的业务标识由第一终端发送给管理实体;
第一验证模块 2306,用于根据第二标识接收模块 2304或者第三标识接收模 块 2305接收到的第一终端的业务标识验证该第一终端是否拥有发现该第二终端 的权限;
信息获取模块 2302,用于若第一验证模块 2306的验证结果为该第一终端拥 有发现该第二终端的权限, 则执行根据该第二终端的业务标识获取该第二终端 的描述信息的步骤。
该服务器还包括:
第四标识接收模块 2307,用于在第一标识接收模块 2301接收第一终端的发 出的第二终端的业务标识之前, 接收管理实体发送的、 该第一终端的身份标识, 该第一终端的身份标识为包含于第一终端发送给管理实体的第一请求中的标 识;
第二验证模块 2308, 用于根据该第一终端的身份标识验证第一终端是否拥 有发现终端的权限;
第一指示反馈模块 2309,用于若第二验证模块 2308的验证结果为第一终端 拥有发现终端的权限, 则向管理实体反馈该第一终端拥有发现终端的权限的指 示, 以便管理实体在接收到该指示后向基站发送第二请求;
其中, 该第一请求用于请求获取发现资源, 该第二请求用于请求基站获取 并向第一终端发送发现资源, 该发现资源为第一终端监听第二消息时所使用的 资源。
该服务器还包括: 第五标识接收模块 2310,用于在第一标识接收模块 2301接收第一终端的发 出的第二终端的业务标识之前, 接收管理实体发送的、 该第一终端的身份标识 和该第一终端中使用发现业务的应用的标识, 该第一终端的身份标识和该第一 终端中使用发现业务的应用的标识为包含于该第一终端发送给管理实体的第一 请求中的标识;
第三验证模块 2311, 用于根据该第一终端的身份标识验证该第一终端是否 拥有发现终端的权限;
第四验证模块 2312, 用于根据该第一终端中使用发现业务的应用的标识验 证该应用是否拥有使用发现功能的权限;
第二指示反馈模块 2313,用于若第三验证模块 2311的验证结果为该第一终 端拥有发现终端的权限, 且第四验证模块 2312的验证结果为该应用拥有使用发 现功能的权限, 则向管理实体反馈该第一终端拥有发现终端的权限且该应用拥 有使用发现功能的权限的指示, 以便管理实体在接收到该指示后向基站发送第 二请求;
其中, 该第一请求用于请求获取发现资源, 该第二请求用于请求基站获取 并向第一终端发送发现资源, 该发现资源为第一终端监听第二消息时所使用的 资源。
该服务器还包括:
第六标识接收模块 2314,用于在第一标识接收模块 2312接收第一终端的发 出的第二终端的业务标识之前, 接收管理实体发送的、 该第二终端的身份标识, 该第二终端的身份标识为包含于该第二终端发送给管理实体的第三请求中的标 识;
第五验证模块 2315, 用于根据该第二终端的身份标识验证该第二终端是否 拥有被发现的权限;
第三指示反馈模块 2316,用于若第五验证模块 2315的验证结果为该第二终 端拥有被发现的权限, 则向管理实体反馈该第二终端拥有被发现的权限的指示, 以便管理实体在接收到该指示后向基站发送第四请求;
其中, 该第三请求用于请求获取被发现资源, 该第四请求用于请求基站分 配并向第二终端发送被发现资源, 该被发现资源为第二终端发送第二消息时所 使用的资源。
该服务器还包括: 第七标识接收模块 2317,用于在第一标识接收模块 2301接收第一终端的发 出的第二终端的业务标识之前, 接收管理实体发送的、 该第二终端的身份标识 和该第二终端中使用被发现业务的应用的标识, 该第二终端的身份标识和该第 二终端中使用被发现业务的应用的标识为包含于第二终端发送给管理实体的第 三请求中的标识;
第六验证模块 2318, 用于根据该第二终端的身份标识验证该第二终端是否 拥有被发现的权限;
第七验证模块 2319, 用于根据该第二终端中使用被发现业务的应用的标识 验证该应用是否拥有使用被发现功能的权限;
第四指示反馈模块 2320,用于若第六验证模块 2318的验证结果为该第一终 端拥有被发现的权限, 且第七验证模块 2319的验证结果为该应用拥有使用被发 现功能的权限, 则向管理实体反馈该第二终端拥有被发现的权限且该应用拥有 使用被发现功能的权限的指示, 以便管理实体在接收到该指示后向基站发送第 四请求;
其中, 该第三请求用于请求获取被发现资源, 该第四请求用于请求基站分 配并向第二终端发送被发现资源, 该被发现资源为第二终端发送第二消息时所 使用的资源。
该服务器还包括:
第一请求接收模块 2321,用于在第一标识接收模块 2301接收第一终端的发 出的第二终端的业务标识之前, 接收第二终端发送的第五请求;
第三请求发送模块 2322, 用于向管理实体发送第六请求, 以便该管理实体 向基站发送第四请求;
其中, 该第五请求用于请求获取被发现资源, 该第四请求用于请求该基站 分配并向该第二终端发送被发现资源, 该被发现资源为第二终端发送第二消息 时所使用的资源。
其中, 该第五请求中包含有该第二终端的全球唯一临时标识 GUTI;
第三请求发送模块 2322, 用于根据该 GUTI向管理实体发送该第六请求。 该第五请求中还包含有该第二终端的身份标识; 该服务器还包括: 第八验证模块 2323,用于在该第三请求发送模块 2322向管理实体发送第六 请求之前, 根据该第二终端的身份标识验证该第二终端是否拥有被发现的权限; 第三请求发送模块 2322,用于若第八验证模块 2323的验证结果为该第二终 端拥有被发现的权限, 则执行向管理实体发送第六请求的步骤。
该第五请求中还可以包含有该第二终端的身份标识和该第二终端中使用被 发现业务的应用的标识; 该服务器还包括:
第九验证模块 2324,用于在第三请求发送模块 2322向管理实体发送第六请 求之前, 根据该第二终端的身份标识验证该第二终端是否拥有被发现的权限; 第十验证模块 2325,用于在第三请求发送模块 2322向管理实体发送第六请 求之前, 根据该第二终端中使用被发现业务的应用的标识验证该应用是否拥有 使用被发现功能的权限;
第三请求发送模块 2322,用于若该第九验证模块 2324的验证结果为该第一 终端拥有被发现的权限, 且该第十验证模块 2325的验证结果为该应用拥有使用 被发现功能的权限, 则执行向管理实体发送第六请求的步骤。
综上所述, 本发明实施例提供的服务器, 通过接收第一终端的发出的第二 终端的业务标识, 查询与该第二终端的业务标识相对应的第二终端的描述信息 并提供给该第一终端, 解决了现有技术中第一终端必须预先获知第二终端的唯 一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展 应用范围的目的; 此外, 本发明实施例提供的服务器, 通过接收管理实体发送 的、 该第一终端的业务标识, 并根据第一终端的业务标识验证第一终端是否拥 有发现与至少一个第二终端的标识中的业务标识相对应的第二终端的权限, 达 到保护第二终端的隐私的目的。 请参考图 35, 其示出了本发明一个实施例提供的服务器的设备构成图。 该 服务器可以包括:
第一请求接收模块 2401, 用于接收第二终端发送的第五请求;
第三请求发送模块 2402, 用于向管理实体发送第六请求, 以便该管理实体 向基站发送第四请求;
其中, 该第五请求用于请求获取被发现资源, 该第四请求用于请求基站分 配并向该第二终端发送被发现资源, 该被发现资源为该第二终端发送该第二消 息时所使用的资源。
综上所述, 本发明实施例提供的服务器, 通过在接收到第二终端发送的第 五请求后, 向管理实体发送第六请求, 以便该管理实体向基站发送请求基站分 配并向该第二终端发送被发现资源的第四请求, 以便该第二终端根据该被发现 资源发送第二消息, 达到减少终端之间干扰的目的。 基于上述图 35所示的服务器的更为优选的方案,请参考图 36, 其示出了本 发明另一实施例提供的服务器的设备构成图。 该服务器可以包括:
第一请求接收模块 2501, 用于接收第二终端发送的第五请求;
第三请求发送模块 2502, 用于向管理实体发送第六请求, 以便该管理实体 向基站发送第四请求;
其中, 该第五请求用于请求获取被发现资源, 该第四请求用于请求基站分 配并向该第二终端发送被发现资源, 该被发现资源为该第二终端发送该第二消 息时所使用的资源。
另外, 该第五请求中包含有该第二终端的全球唯一临时标识 GUTI; 第三请 求发送模块 2502, 用于根据该 GUTI向该管理实体发送该第六请求。
综上所述, 本发明实施例提供的服务器, 通过在接收到第二终端发送的第 五请求后, 向管理实体发送第六请求, 以便该管理实体向基站发送请求基站分 配并向该第二终端发送被发现资源的第四请求, 以便该第二终端根据该被发现 资源发送第二消息, 达到减少终端之间干扰的目的。 请参考图 37, 其示出了本发明一个实施例提供的服务器的设备构成图。 该 月良务器可以包括: 接收机 2601、 处理器 2602和发射机 2603;
接收机 2601 , 用于接收第一终端的发出的第二终端的业务标识; 该第二终 端的业务标识由第一终端根据至少一个第二终端发送的、 包含有该第二终端的 业务标识的第二消息所获取;
处理器 2602,用于根据接收机 2601接收到的第二终端的业务标识获取该第 二终端的描述信息;
处理器 2602,用于控制发射机 2603将获取到的该第二终端的描述信息提供 给第一终端。
综上所述, 本发明实施例提供的服务器, 通过接收第一终端的发出的第二 终端的业务标识, 查询与该第二终端的业务标识相对应的第二终端的描述信息 并提供给该第一终端, 解决了现有技术中第一终端必须预先获知第二终端的唯 一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展 应用范围的目的。 基于上述图 37所示的服务器的更为优选的方案,请参考图 38, 其示出了本 发明另一实施例提供的服务器的设备构成图。 该服务器可以包括: 接收机 2701、 处理器 2702、 发射机 2703和存储器 2704;
接收机 2701, 用于接收第一终端的发出的第二终端的业务标识; 该第二终 端的业务标识由第一终端根据至少一个第二终端发送的、 包含有该第二终端的 业务标识的第二消息所获取;
处理器 2702,用于根据接收机 2701接收到的第二终端的业务标识查询该第 二终端的描述信息;
处理器 2702,用于控制发射机 2703将查询到的该第二终端的描述信息提供 给第一终端。
接收机 2701, 用于接收第一终端发送的、 该第二终端的业务标识; 接收机 2701, 用于接收管理实体发送的、 该第二终端的业务标识, 该第二 终端的业务标识是第一终端发送给管理实体的业务标识。
处理器 2702, 用于本地查询与该第二终端的业务标识对应的该第二终端的 描述信息;
处理器 2702, 用于根据该第二终端的业务标识向该第二终端的归属服务器 或者当前为该第二终端提供服务的服务器查询该第二终端的描述信息。
处理器 2702,用于控制发射机 2703将获取到的该第二终端的描述信息发送 给第一终端;
处理器 2702,用于控制发射机 2703将获取到的该第二终端的描述信息发送 给管理实体, 以便管理实体将该第二终端的描述信息发送给第一终端。
接收机 2701,用于在处理器 2702获取与该第二终端的业务标识相对应的第 二终端的描述信息之前, 接收第一终端发送的、 该第一终端的业务标识;
接收机 2701,用于在处理器 2702查询与该第二终端的业务标识相对应的第 二终端的描述信息之前, 接收管理实体发送的、 该第一终端的业务标识, 该第 一终端的业务标识由第一终端发送给管理实体;
处理器 2702,用于根据接收机 2701接收到的第一终端的业务标识验证该第 一终端是否拥有发现该第二终端的权限;
处理器 2702, 用于若验证结果为该第一终端拥有发现该第二终端的权限, 则执行根据该第二终端的业务标识查询该第二终端的描述信息的步骤。 接收机 2701, 用于在接收第一终端的发出的第二终端的业务标识之前, 接 收管理实体发送的、 该第一终端的身份标识, 该第一终端的身份标识为包含于 第一终端发送给管理实体的第一请求中的标识;
处理器 2702, 用于根据该第一终端的身份标识验证第一终端是否拥有发现 终端的权限;
处理器 2702, 用于若验证结果为第一终端拥有发现终端的权限, 则控制发 射机 2703向管理实体反馈该第一终端拥有发现终端的权限的指示, 以便管理实 体在接收到该指示后向基站发送第二请求;
其中, 该第一请求用于请求获取发现资源, 该第二请求用于请求基站获取 并向第一终端发送发现资源, 该发现资源为第一终端监听第二消息时所使用的 资源。
接收机 2701, 用于在接收第一终端的发出的第二终端的业务标识之前, 接 收管理实体发送的、 该第一终端的身份标识和该第一终端中使用发现业务的应 用的标识, 该第一终端的身份标识和该第一终端中使用发现业务的应用的标识 为包含于该第一终端发送给管理实体的第一请求中的标识;
处理器 2702, 用于根据该第一终端的身份标识验证该第一终端是否拥有发 现终端的权限;
处理器 2702, 用于根据该第一终端中使用发现业务的应用的标识验证该应 用是否拥有使用发现功能的权限;
处理器 2702, 用于若验证结果为该第一终端拥有发现终端的权限, 且该应 用拥有使用发现功能的权限, 则控制发射机 2703向管理实体反馈该第一终端拥 有发现终端的权限且该应用拥有使用发现功能的权限的指示, 以便管理实体在 接收到该指示后向基站发送第二请求;
其中, 该第一请求用于请求获取发现资源, 该第二请求用于请求基站获取 并向第一终端发送发现资源, 该发现资源为第一终端监听第二消息时所使用的 资源。
接收机 2701, 用于在接收第一终端的发出的第二终端的业务标识之前, 接 收管理实体发送的、 该第二终端的身份标识, 该第二终端的身份标识为包含于 该第二终端发送给管理实体的第三请求中的标识;
处理器 2702, 用于根据该第二终端的身份标识验证该第二终端是否拥有被 发现的权限; 处理器 2702, 用于若验证结果为该第二终端拥有被发现的权限, 则控制发 射机 2703向管理实体反馈该第二终端拥有被发现的权限的指示, 以便管理实体 在接收到该指示后向基站发送第四请求;
其中, 该第三请求用于请求获取被发现资源, 该第四请求用于请求基站分 配并向第二终端发送被发现资源, 该被发现资源为第二终端发送第二消息时所 使用的资源。
接收机 2701, 用于在接收第一终端的发出的第二终端的业务标识之前, 接 收管理实体发送的、 该第二终端的身份标识和该第二终端中使用被发现业务的 应用的标识, 该第二终端的身份标识和该第二终端中使用被发现业务的应用的 标识为包含于第二终端发送给管理实体的第三请求中的标识;
处理器 2702, 用于根据该第二终端的身份标识验证该第二终端是否拥有被 发现的权限;
处理器 2702, 用于根据该第二终端中使用被发现业务的应用的标识验证该 应用是否拥有使用被发现功能的权限;
处理器 2702, 用于若验证结果为该第一终端拥有被发现的权限, 且该应用 拥有使用被发现功能的权限, 则控制发射机 2703向管理实体反馈该第二终端拥 有被发现的权限且该应用拥有使用被发现功能的权限的指示, 以便管理实体在 接收到该指示后向基站发送第四请求;
其中, 该第三请求用于请求获取被发现资源, 该第四请求用于请求基站分 配并向第二终端发送被发现资源, 该被发现资源为第二终端发送第二消息时所 使用的资源。
接收机 2701, 用于在接收第一终端的发出的第二终端的业务标识之前, 接 收第二终端发送的第五请求;
处理器 2702, 用于控制发射机 2703向管理实体发送第六请求, 以便该管理 实体向基站发送第四请求;
其中, 该第五请求用于请求获取被发现资源, 该第四请求用于请求该基站 分配并向该第二终端发送被发现资源, 该被发现资源为第二终端发送第二消息 时所使用的资源。
其中, 该第五请求中包含有该第二终端的全球唯一临时标识 GUTI;
处理器 2702, 用于根据该 GUTI, 控制发射机 2703向管理实体发送该第六 请求。 该第五请求中还包含有该第二终端的身份标识;
处理器 2702, 用于在控制发射机 2703向管理实体发送第六请求之前,根据 该第二终端的身份标识验证该第二终端是否拥有被发现的权限;
处理器 2702, 用于若验证结果为该第二终端拥有被发现的权限, 则执行控 制发射机 2703向管理实体发送第六请求的步骤。
该第五请求中还可以包含有该第二终端的身份标识和该第二终端中使用被 发现业务的应用的标识;
处理器 2702, 用于在控制发射机 2703向管理实体发送第六请求之前,根据 该第二终端的身份标识验证该第二终端是否拥有被发现的权限;
处理器 2703, 用于在控制发射机 2703向管理实体发送第六请求之前,根据 该第二终端中使用被发现业务的应用的标识验证该应用是否拥有使用被发现功 能的权限;
处理器 2703, 用于若验证结果为该第一终端拥有被发现的权限, 且该应用 拥有使用被发现功能的权限, 则执行控制发射机 2703向管理实体发送第六请求 的步骤。
综上所述, 本发明实施例提供的服务器, 通过接收第一终端的发出的第二 终端的业务标识, 查询与该第二终端的业务标识相对应的第二终端的描述信息 并提供给该第一终端, 解决了现有技术中第一终端必须预先获知第二终端的唯 一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展 应用范围的目的; 此外, 本发明实施例提供的服务器, 通过接收管理实体发送 的、 该第一终端的业务标识, 并根据第一终端的业务标识验证第一终端是否拥 有发现与至少一个第二终端的标识中的业务标识相对应的第二终端的权限, 达 到保护第二终端的隐私的目的。 请参考图 39, 其示出了本发明一个实施例提供的基站的设备构成图。 该基 站可以包括:
发现资源提供模块 2801, 用于向第一终端提供发现资源, 以便该第一终端 根据该发现资源监听至少一个第二终端发送的第二消息;
第一终端可以根据该第二消息获取该第二终端的业务标识, 并根据该第二 终端的业务标识从 ^!良务器获取该第二终端的描述信息。
综上所述, 本发明实施例提供的基站, 通过向第一终端提供发现资源, 以 便该第一终端根据该发现资源监听至少一个第二终端发送的第二消息, 并根据 该第二消息获取该第二终端的业务标识, 并根据该第二终端的业务标识的获取 该第二终端的描述信息, 解决了现有技术中第一终端必须预先获知第二终端的 唯一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩 展应用范围的目的。 基于上述图 39所示的基站的更为优选的方案, 请参考图 40, 其示出了本发 明另一实施例提供的基站的设备构成图。 该基站可以包括:
发现资源提供模块 2901, 用于向第一终端提供发现资源, 以便该第一终端 根据该发现资源监听至少一个第二终端发送的第二消息;
该第一终端可以根据该第二消息获取该第二终端的业务标识, 并根据该第 二终端的业务标识从服务器获取该第二终端的描述信息。
发现资源提供模块 2901, 包括:
第一请求接收单元 2901a, 用于接收管理实体发送的第二请求, 该第二请求 由管理实体根据第一终端发送的第一请求所发送;
第一获取单元 2901b, 用于获取该发现资源;
第一发现资源发送单元 2901c,用于将第一获取单元 2901b获取到的发现资 源发送给第一终端;
第二发现资源发送单元 2901d,用于将第一获取单元 2901b获取到的发现资 源发送给管理实体, 以便管理实体将该发现资源发送给第一终端;
其中, 该发现资源包括第一终端的服务小区的发现资源; 或者, 该发现资 源包括第一终端的服务小区的发现资源以及与服务小区相邻的小区的发现资 源。
第一请求接收单元 2901a, 用于接收管理实体发送的 S1-AP消息, 该 S1-AP 消息中包含有第一指示, 该第一指示用于指示基站向第一终端发送发现资源或 用于指示基站获取并向第一终端发送发现资源;
第一发现资源发送单元 2901c, 用于通过 RRC消息将该发现资源发送给第 一终端。
第一请求接收单元 2901a, 用于接收管理实体发送的 S1-AP消息, 该 S1-AP 消息中包含有第二指示, 该第二指示用于指示基站向管理实体发送发现资源或 用于指示基站获取并向管理实体发送发现资源; 第二发现资源发送单元 2901d, 用于通过容器 container将该发现资源发送 给管理实体,以便管理实体通过非接入层 NAS消息将发现资源发送给第一终端。
发现资源提供模块 2901, 包括:
第二获取单元 2901e, 用于获取与第一终端相对应的发现资源;
系统信息发送单元 2901f, 用于在该第一终端所在的小区内发送包含有第二 获取单元 2901 e获取到的发现资源的系统信息;
其中, 该发现资源包括该第一终端的服务小区的发现资源; 或者, 该发现 资源包括该第一终端的服务小区的发现资源以及与该服务小区相邻的小区的发 现资源。
第一获取单元 2901b, 包括:
第一查询子单元 2901ba, 用于本地查询该第一终端当前服务小区的发现资 源;
第二查询子单元 2901bb, 用于本地查询该第一终端当前服务小区的发现资 源以及与该服务小区相邻的小区的发现资源;
第三查询子单元 2901bc, 用于本地查询该第一终端当前服务小区的发现资 源, 并通过 X2接口向相邻基站查询与该服务小区相邻的小区的发现资源;
第二获取单元 2901e, 包括:
第四查询子单元 2901ea, 用于本地查询该第一终端当前服务小区的发现资 源;
第五查询子单元 2901eb, 用于本地查询该第一终端当前服务小区的发现资 源以及与该服务小区相邻的小区的发现资源;
第六查询子单元 2901ec, 用于本地查询该第一终端当前服务小区的发现资 源, 并通过 X2接口向相邻基站查询与该服务小区相邻的小区的发现资源。
具体的, 相邻基站之间通过 X2接口连接。 若各基站之间相互交换了各自维 护的小区的发现资源, 或者, 当一个基站中某个小区的发现资源发生变化时告 知相邻基站, 则基站中存储有该基站维护的各个小区以及该基站维护的各个小 区的相邻小区的发现资源, 此时, 基站可以直接在本地查询该第一终端当前服 务小区的发现资源以及与该服务小区相邻的小区的发现资源。 若基站中只存储 有该基站维护的各个小区的发现资源, 并没有存储该基站维护的各个小区的相 邻小区的发现资源,则基站可以通过 X2接口向相邻基站查询与该第一终端的服 务小区相邻的小区的发现资源。 该基站还包括:
第二请求接收模块 2902, 用于接收管理实体发送的第四请求, 该第四请求 由管理实体根据第二终端发送的第三请求所发送;
被发现资源分配模块 2903,用于根据第二请求接收模块 2902接收到的第四 请求为该第二终端分配被发现资源, 该被发现资源为该第二终端发送第二消息 时所使用的资源;
第一被发现资源发送模块 2904,用于将被发现资源分配模块 2903分配的被 发现资源发送给第二终端;
第二被发现资源发送模块 2905,用于将被发现资源分配模块 2903分配的被 发现资源发送给管理实体, 以便管理实体将该被发现资源发送给第二终端。
第二请求接收模块 2902, 用于接收管理实体发送的 S1-AP消息, 该 S1-AP 消息中包含有第三指示, 该第三指示用于指示基站分配被发现资源或为第二终 端分配被发现资源或分配被发现资源并向第二终端发送被发现资源或为第二终 端分配被发现资源并向第二终端发送被发现资源;
第一被发现资源发送模块 2904,用于通过 RRC消息将被发现资源发送给第 二终端。
第二请求接收模块 2902, 用于接收管理实体发送的 S1-AP消息, 该 S1-AP 消息中包含有第四指示, 该第四指示用于指示基站分配被发现资源或为第二终 端分配被发现资源或分配被发现资源并向管理实体发送被发现资源或为第二终 端分配被发现资源并向管理实体发送被发现资源;
第二被发现资源发送模块 2905, 用于通过容器 container将被发现资源发送 给管理实体, 以便管理实体通过非接入层 NAS消息将被发现资源发送给第二终 端。
综上所述, 本发明实施例提供的基站, 通过向第一终端提供发现资源, 以 便该第一终端根据该发现资源监听至少一个第二终端发送的第二消息, 并根据 该第二消息获取该第二终端的业务标识, 并根据该第二终端的业务标识获取该 第二终端的描述信息, 解决了现有技术中第一终端必须预先获知第二终端的唯 一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展 应用范围的目的; 此外, 本发明实施例提供的基站, 通过为第二终端分配被发 现资源, 并为第一终端分配发现资源, 以便第一终端根据该发现资源监听第二 终端根据被发现资源发送的第二消息, 达到减小终端负担, 节约终端电量, 同 时有效减少干扰, 节约硬件资源的目的。 请参考图 41, 其示出了本发明一个实施例提供的基站的设备构成图。 该基 站可以包括:
第二请求接收模块 3001, 用于接收管理实体发送的第四请求, 该第四请求 由管理实体根据第二终端发送的第三请求所发送;
被发现资源分配模块 3002,用于根据第二请求接收模块 3001接收到的第四 请求为第二终端分配被发现资源, 该被发现资源为第二终端发送第二消息时所 使用的资源;
第一被发现资源发送模块 3003,用于将被发现资源分配模块 3002分配的被 发现资源发送给第二终端;
第二被发现资源发送模块 3004,用于将被发现资源分配模块 3002分配的被 发现资源发送给管理实体, 以便管理实体将被发现资源发送给第二终端。
综上所述, 本发明实施例提供的基站, 通过根据管理实体发送的第四请求 为第二终端分配被发现资源, 并将被发现资源发送给第二终端, 或者, 将被发 现资源通过管理实体发送给第二终端, 以便第二终端根据该被发现资源发送第 二消息, 达到减少终端之间干扰的目的。 基于上述图 41所示的基站的更为优选的方案, 请参考图 42, 其示出了其示 出了本发明另一实施例提供的基站的设备构成图。 该基站可以包括:
第二请求接收模块 3101, 用于接收管理实体发送的第四请求, 该第四请求 由管理实体根据第二终端发送的第三请求所发送;
被发现资源分配模块 3102,用于根据第二请求接收模块 3101接收到的第四 请求为第二终端分配被发现资源, 该被发现资源为第二终端发送第二消息时所 使用的资源;
第一被发现资源发送模块 3103,用于将被发现资源分配模块 3102分配的被 发现资源发送给第二终端;
第二被发现资源发送模块 3104,用于将被发现资源分配模块 3102分配的被 发现资源发送给管理实体, 以便管理实体将被发现资源发送给第二终端。
第二请求接收模块 3101, 用于接收管理实体发送的 S1-AP消息, 该 S1-AP 消息中包含有第三指示, 该第三指示用于指示基站分配被发现资源或为第二终 端分配被发现资源或分配被发现资源并向第二终端发送被发现资源或为第二终 端分配被发现资源并向第二终端发送被发现资源;
第一被发现资源发送模块 2903,用于通过 RRC消息将被发现资源发送给第 二终端。
第二请求接收模块 3101, 用于接收管理实体发送的 S1-AP消息, 该 S1-AP 消息中包含有第四指示, 该第四指示用于指示基站分配被发现资源或为第二终 端分配被发现资源或分配被发现资源并向管理实体发送被发现资源或为第二终 端分配被发现资源并向管理实体发送被发现资源;
第二被发现资源发送模块 2904, 用于通过容器 container将被发现资源发送 给管理实体, 以便管理实体通过非接入层 NAS消息将被发现资源发送给第二终 端。 请参考图 43, 其示出了本发明一个实施例提供的基站的设备构成图。 该基 站可以包括: 处理器 3201、 接收机 3202和发射机 3203 ;
处理器 3201, 用于控制接收机 3202和发射机 3203向第一终端提供发现资 源, 以便该第一终端根据该发现资源监听至少一个第二终端发送的第二消息, 并根据该第二消息获取该第二终端的业务标识;
第一终端可以根据该第二终端的业务标识从服务器获取该第二终端的描述 信息。
综上所述, 本发明实施例提供的基站, 通过向第一终端提供发现资源, 以 便该第一终端根据该发现资源监听至少一个第二终端发送的第二消息, 并根据 该第二消息获取该第二终端的业务标识, 并根据该第二终端的业务标识获取该 第二终端的描述信息, 解决了现有技术中第一终端必须预先获知第二终端的唯 一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展 应用范围的目的。 基于上述图 43所示的基站的更为优选的方案, 请参考图 44, 其示出了本发 明另一实施例提供的基站的设备构成图。 该基站可以包括: 处理器 3301、 接收 机 3302和发射机 3303;
处理器 3301, 用于控制接收机 3302和发射机 3303向第一终端提供发现资 源, 以便该第一终端根据该发现资源监听至少一个第二终端发送的第二消息; 该第一终端可以根据该第二消息获取该第二终端的业务标识, 并根据该第 二终端的业务标识从服务器获取该第二终端的描述信息。
接收机 3302, 用于接收管理实体发送的第二请求, 该第二请求由管理实体 根据第一终端发送的第一请求所发送;
处理器 3301, 用于获取该发现资源;
处理器 3301, 用于控制发射机 3303将获取到的发现资源发送给第一终端; 处理器 3301, 用于控制发射机 3303将获取到的发现资源发送给管理实体, 以便管理实体将该发现资源发送给第一终端;
其中, 该发现资源包括第一终端的服务小区的发现资源; 或者, 该发现资 源包括第一终端的服务小区的发现资源以及与服务小区相邻的小区的发现资 源。
接收机 3302, 用于接收管理实体发送的 S1-AP消息, 该 S1-AP消息中包含 有第一指示, 该第一指示用于指示基站向第一终端发送发现资源或用于指示基 站获取并向第一终端发送发现资源;
处理器 3301, 用于控制发射机 3303通过 RRC消息将该发现资源发送给第 一终端。
接收机 3302, 用于接收管理实体发送的 S1-AP消息, 该 S1-AP消息中包含 有第二指示, 该第二指示用于指示基站向管理实体发送发现资源或用于指示基 站获取并向管理实体发送发现资源;
处理器 3301, 用于控制发射机 3303通过容器 container将该发现资源发送 给管理实体,以便管理实体通过非接入层 NAS消息将发现资源发送给第一终端。
处理器 3301, 用于获取与第一终端相对应的发现资源;
处理器 3301,用于控制发射机 3303在该第一终端所在的小区内发送包含有 获取到的发现资源的系统信息;
其中, 该发现资源包括该第一终端的服务小区的发现资源; 或者, 该发现 资源包括该第一终端的服务小区的发现资源以及与该服务小区相邻的小区的发 现资源。
处理器 3301, 用于本地查询该第一终端当前服务小区的发现资源; 处理器 3301, 用于本地查询该第一终端当前服务小区的发现资源以及与该 服务小区相邻的小区的发现资源;
处理器 3301, 用于本地查询该第一终端当前服务小区的发现资源, 并控制 接收机 3302和发射机 3303通过 X2接口向相邻基站查询与该服务小区相邻的小 区的发现资源。
具体的, 相邻基站之间通过 X2接口连接。 若各基站之间相互交换了各自维 护的小区的发现资源, 或者, 当一个基站中某个小区的发现资源发生变化时告 知相邻基站, 则基站中存储有该基站维护的各个小区以及该基站维护的各个小 区的相邻小区的发现资源, 此时, 基站可以直接在本地查询该第一终端当前服 务小区的发现资源以及与该服务小区相邻的小区的发现资源。 若基站中只存储 有该基站维护的各个小区的发现资源, 并没有存储该基站维护的各个小区的相 邻小区的发现资源,则基站可以通过 X2接口向相邻基站查询与该第一终端的服 务小区相邻的小区的发现资源。
接收机 3302, 用于接收管理实体发送的第四请求, 该第四请求由管理实体 根据第二终端发送的第三请求所发送;
处理器 3301,用于根据接收机 3302接收到的第四请求为该第二终端分配被 发现资源, 该被发现资源为该第二终端发送第二消息时所使用的资源;
处理器 3301, 用于控制发射机 3303将分配的被发现资源发送给第二终端; 处理器 3301, 用于控制发射机 3303将分配的被发现资源发送给管理实体, 以便管理实体将该被发现资源发送给第二终端。
接收机 3302, 用于接收管理实体发送的 S1-AP消息, 该 S1-AP消息中包含 有第三指示, 该第三指示用于指示基站分配被发现资源或为第二终端分配被发 现资源或分配被发现资源并向第二终端发送被发现资源或为第二终端分配被发 现资源并向第二终端发送被发现资源;
处理器 3301, 用于控制发射机 3303通过 RRC消息将被发现资源发送给第 二终端。
接收机 3302, 用于接收管理实体发送的 S1-AP消息, 该 S1-AP消息中包含 有第四指示, 该第四指示用于指示基站分配被发现资源或为第二终端分配被发 现资源或分配被发现资源并向管理实体发送被发现资源或为第二终端分配被发 现资源并向管理实体发送被发现资源;
处理器 3301, 用于控制发射机 3303通过容器 container将被发现资源发送 给管理实体, 以便管理实体通过非接入层 NAS消息将被发现资源发送给第二终 端。
综上所述, 本发明实施例提供的基站, 通过向第一终端提供发现资源, 以 便该第一终端根据该发现资源监听至少一个第二终端发送的第二消息, 并根据 该第二消息获取该第二终端的业务标识, 并根据该第二终端的业务标识获取该 第二终端的描述信息, 解决了现有技术中第一终端必须预先获知第二终端的唯 一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终端, 扩展 应用范围的目的; 此外, 本发明实施例提供的基站, 通过为第二终端分配被发 现资源, 并为第一终端分配发现资源, 以便第一终端根据该发现资源监听第二 终端根据被发现资源发送的第二消息, 达到减小终端负担, 节约终端电量, 同 时有效减少干扰, 节约硬件资源的目的。 请参考图 45, 其示出了本发明一个实施例提供的管理实体的设备构成图。 该管理实体可以包括:
第八标识接收模块 3401, 用于接收第一终端发送的、 第二终端的业务标识, 该第二终端的业务标识由该第一终端根据至少一个第二终端发送的、 包含有该 第二终端的业务标识的第二消息所获取;
第三标识发送模块 3402,用于将第八标识接收模块 3401接收到的第二终端 的业务标识发送给服务器, 以便服务器根据该第二终端的业务标识获取并向第 一终端发送该第二终端的描述信息;
第四标识发送模块 3403,用于将第八标识接收模块 3401接收到的第二终端 的业务标识发送给服务器;
第三信息接收模块 3404, 用于接收服务器发送的、该第二终端的描述信息; 第三信息发送模块 3405, 用于将该第二终端的描述信息发送给第一终端, 该第二终端的描述信息由服务器根据第四标识发送模块 3403发送的第二终端的 业务标识获取。
综上所述, 本发明实施例提供的管理实体, 通过接收第一终端发送的、 第 二终端的业务标识并发送给服务器, 以便服务器根据该第二终端的业务标识向 第一终端提供该第二终端的描述信息, 解决了现有技术中第一终端必须预先获 知第二终端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识未 知的终端, 扩展应用范围的目的。 基于上述图 45所示的管理实体的更为优选的方案,请参考图 46, 其示出了 本发明另一实施例提供的管理实体的设备构成图。 该管理实体可以包括: 第八标识接收模块 3501, 用于接收第一终端发送的、 第二终端的业务标识, 该第二终端的业务标识由该第一终端根据至少一个第二终端发送的、 包含有该 第二终端的业务标识的第二消息所获取;
第三标识发送模块 3502,用于将第八标识接收模块 3501接收到的第二终端 的业务标识发送给服务器, 以便服务器根据该第二终端的业务标识获取并向第 一终端发送该第二终端的描述信息;
第四标识发送模块 3503,用于将第八标识接收模块 3501接收到的第二终端 的业务标识发送给服务器;
第三信息接收模块 3504, 用于接收服务器发送的、该第二终端的描述信息; 第三信息发送模块 3505, 用于将该第二终端的描述信息发送给第一终端, 该第二终端的描述信息由服务器根据第四标识发送模块 3503发送的第二终端的 业务标识获取。
该管理实体还包括:
第三请求接收模块 3506,用于在第八标识接收模块 3501接收第一终端发送 的、 第二终端的业务标识之前, 接收第一终端发送的第一请求;
第四请求发送模块 3507,用于根据第三请求接收模块 3506接收到的第一请 求向基站发送第二请求, 以便基站根据该第二请求向第一终端发送发现资源; 第五请求发送模块 3508,用于根据第三请求接收模块 3506接收到的第一请 求向基站发送第二请求;
发现资源接收模块 3509,用于接收基站根据第五请求发送模块 3508发送的 第二请求所发送的发现资源;
发现资源发送模块 3510,用于将发现资源接收模块 3509接收到的发现资源 发送给第一终端;
其中, 发现资源为第一终端监听第二消息时所使用的资源。
第四请求发送模块 3507, 用于根据第一请求向基站发送 S1-AP 消息, 该 S 1 -AP消息中包含有第一指示,该第一指示用于指示基站向第一终端发送发现资 源或用于指示基站获取并向第一终端发送发现资源, 以便基站通过 RRC消息将 发现资源发送给第一终端。
第五请求发送模块 3508, 用于根据第一请求向基站发送 S1-AP 消息, 该 S1-AP消息中包含有第二指示,该第二指示用于指示基站向管理实体发送发现资 源或用于指示基站获取并向管理实体发送发现资源; 发现资源接收模块 3509,用于接收基站通过容器 container发送的发现资源; 发现资源发送模块 3510,用于通过非接入层 NAS消息将发现资源发送给第 一终端。
该管理实体还包括:
第五标识发送模块 3511,用于在第四请求发送模块 3507或者第五请求发送 模块 3508根据第一请求向基站发送第二请求之前, 将该第一终端的身份标识发 送给服务器, 以便服务器根据第一终端的身份标识验证第一终端是否拥有发现 终端的权限;
第一指示接收模块 3512, 用于接收服务器反馈的该第一终端拥有发现终端 的权限的指示;
第四请求发送模块 3507,用于在第一指示接收模块 3512接收到服务器反馈 的该第一终端拥有发现终端的权限的指示之后, 根据第一请求向基站发送第二 请求;
第五请求发送模块 3508,用于在第一指示接收模块 3512接收到服务器反馈 的该第一终端拥有发现终端的权限的指示之后, 根据第一请求向基站发送第二 请求;
其中, 该第一请求中包含有该第一终端的身份标识。
该管理实体还包括:
第六标识发送模块 3513,用于在第四请求发送模块 3507或者第五请求发送 模块 3508根据第一请求向基站发送第二请求之前, 将该第一终端的身份标识和 该第一终端中使用发现业务的应用的标识发送给服务器, 以便服务器根据该第 一终端的身份标识和该第一终端中使用发现业务的应用的标识验证该第一终端 是否拥有发现终端的权限以及该应用是否拥有使用发现功能的权限;
第二指示接收模块 3514, 用于接收服务器反馈的该第一终端拥有发现终端 的权限, 且该应用拥有使用发现功能的权限的指示;
第四请求发送模块 3507,用于在第二指示接收模块 3514接收到服务器反馈 的该第一终端拥有发现终端的权限, 且该应用拥有使用发现功能的权限的指示 之后, 根据第一请求向基站发送第二请求;
第五请求发送模块 3508,用于在第二指示接收模块 3514接收到服务器反馈 的该第一终端拥有发现终端的权限, 且该应用拥有使用发现功能的权限的指示 之后, 根据第一请求向基站发送第二请求; 其中, 该第一请求中包含有该第一终端的身份标识和该第一终端中使用发 现业务的应用的标识。
该管理实体还包括:
第四请求接收模块 3515,用于在第八标识接收模块 3501接收第一终端发送 的、 第二终端的标识之前, 接收第二终端发送的第三请求;
第五请求接收模块 3516,用于在第八标识接收模块 3501接收第一终端发送 的、 第二终端的标识之前, 接收服务器发送的第六请求;
第六请求发送模块 3517, 用于在第三请求接收模块 3515接收到第三请求, 或者, 第五请求模块 3516接收到所述第六请求之后, 向基站发送第四请求, 以 便基站根据该第四请求分配并向第二终端发送被发现资源;
第七请求发送模块 3518, 用于在第三请求接收模块 3515接收到第三请求, 或者, 第五请求模块 3516接收到所述第六请求之后, 向基站发送第四请求; 第三被发现资源接收模块 3519, 用于接收基站根据第七请求发送模块 3518 发送的第四请求分配并发送的被发现资源;
第三被发现资源发送模块 3520,用于将第三被发现资源接收模块 3519接收 到的被发现资源发送给第二终端;
其中, 该被发现资源为第二终端发送第二消息时所使用的资源。
第六请求发送模块 3517, 用于根据第三请求向基站发送 S1-AP 消息, 该 S 1 -AP消息中包含有第三指示,该第三指示用于指示基站分配被发现资源或为第 二终端分配被发现资源或分配被发现资源并向第二终端发送被发现资源或为第 二终端分配被发现资源并向第二终端发送被发现资源, 以便基站通过 RRC消息 将被发现资源发送给第二终端。
第七请求发送模块 3518, 用于根据第三请求向基站发送 S1-AP 消息, 该 S1-AP消息中包含有第四指示,该第四指示用于指示基站分配被发现资源或为第 二终端分配被发现资源或分配被发现资源并向管理实体发送被发现资源或为第 二终端分配被发现资源并向管理实体发送被发现资源;
第三被发现资源接收模块 3519, 用于接收基站通过容器 container发送的被 发现资源;
第三被发现资源发送模块 3520,用于通过非接入层 NAS消息将被发现资源 发送给第二终端。
该管理实体还包括: 第七标识发送模块 3521,用于在第六请求发送模块 3517或者第七请求发送 模块 3518根据第三请求向基站发送第四请求之前, 将该第二终端的身份标识发 送给服务器, 以便服务器根据该第二终端的身份标识验证该第二终端是否拥有 被发现的权限;
第三指示接收模块 3522, 用于接收服务器反馈的该第二终端拥有被发现的 权限的指示;
第六请求发送模块 3517,用于在第三指示接收模块 3522接收到服务器反馈 的第二终端拥有被发现的权限的指示之后, 根据第三请求向基站发送第四请求; 第七请求发送模块 3518,用于在第三指示接收模块 3522接收到服务器反馈 的第二终端拥有被发现的权限的指示之后, 根据第三请求向基站发送第四请求; 其中, 该第三请求中包含有该第二终端的身份标识。
该管理实体还包括:
第八标识发送模块 3523,用于在第六请求发送模块 3517或者第七请求发送 模块 3518根据第三请求向基站发送第四请求之前, 将该第二终端的身份标识和 该第二终端中使用被发现业务的应用的标识发送给服务器, 以便服务器根据该 第二终端的身份标识和该第二终端中使用被发现业务的应用的标识验证该第二 终端是否拥有被发现的权限以及该应用是否拥有使用被发现功能的权限;
第四指示接收模块 3524, 用于接收服务器反馈的该第二终端拥有被发现的 权限, 且该应用拥有使用被发现功能的权限的指示;
第六请求发送模块 3517,用于在第四指示接收模块 3524接收到服务器反馈 的该第二终端拥有被发现的权限, 且该应用拥有使用被发现功能的权限的指示 之后, 根据第三请求向基站发送第四请求;
第七请求发送模块 3518,用于在第四指示接收模块 3524接收到服务器反馈 的该第二终端拥有被发现的权限, 且该应用拥有使用被发现功能的权限的指示 之后, 根据第三请求向基站发送第四请求;
其中, 该第三请求中包含有该第二终端的身份标识和该第二终端中使用被 发现业务的应用的标识。
该管理实体还包括:
第九标识接收模块 3525, 用于接收第一终端发送的、 该第一终端的业务标 识;
第九标识发送模块 3526,用于将第九标识接收模块 3525接收到的第一终端 的业务标识发送给服务器, 以便服务器在根据该第一终端的业务标识验证该第 一终端拥有发现该第二终端的权限后, 根据该第二终端的业务标识获取该第二 终端的描述信息。
综上所述, 本发明实施例提供的管理实体, 通过接收第一终端发送的、 第 二终端的业务标识并发送给服务器, 以便服务器根据该第二终端的业务标识向 第一终端提供该第二终端的描述信息, 解决了现有技术中第一终端必须预先获 知第二终端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识未 知的终端, 扩展应用范围的目的; 此外, 本发明实施例提供的管理实体, 通过 为第一终端请求分配发现资源, 并为第二终端请求分配被发现资源, 以便第一 终端根据该发现资源监听第二终端根据被发现资源发送的第二消息, 达到减小 终端负担, 节约终端电量, 有效减少各个第二终端发送的第二消息之间的干扰 的目的; 最后, 本发明实施例提供的管理实体, 还通过接收第一终端发送的该 第一终端的业务标识, 并将该业务标识发送给服务器, 以便服务器根据该第一 终端的业务标识验证该第一终端是否拥有发现与该至少一个第二终端的至少一 个第二终端的标识业务标识相对应的第二终端的权限, 达到保护第二终端的隐 私的目的。 请参考图 47, 其示出了本发明一个实施例提供的管理实体的设备构成图。 该第二终端可以包括:
第四请求接收模块 3601, 用于接收第二终端发送的第三请求;
第五请求接收模块 3602, 用于接收服务器发送的第六请求;
第六请求发送模块 3603,用于根据第四请求接收模块 3601接收到的第三请 求或者第五请求接收模块 3602接收到的第六请求向基站发送第四请求, 以便基 站根据该第四请求分配并向第二终端发送被发现资源;
第七请求发送模块 3604,用于根据第四请求接收模块 3601接收到的第三请 求或者第五请求接收模块 3602接收到的第六请求向基站发送第四请求;
第三被发现资源接收模块 3605, 用于接收基站根据第七请求发送模块 3604 发送的第四请求分配并发送的被发现资源;
第三被发现资源发送模块 3606,用于将第三被发现资源接收模块 3605接收 到的被发现资源发送给第二终端;
其中, 该被发现资源为第二终端发送第二消息时所使用的资源。 综上所述, 本发明实施例提供的管理实体, 通过接收第二终端发送的第三 请求; 根据该第三请求向基站发送第四请求, 以便基站根据该第四请求分配并 向第二终端发送被发现资源; 或者, 根据该第三请求向基站发送第四请求, 并 接收基站根据该第四请求分配并发送的被发现资源, 并将该被发现资源发送给 第二终端; 以便第二终端根据该被发现资源发送第二消息, 达到减少终端之间 干扰的目的。 基于上述图 47所示的管理实体的更为优选的方案,请参考图 48, 其示出了 本发明另一实施例提供的管理实体的设备构成图。 该第二终端可以包括:
第四请求接收模块 3701, 用于接收第二终端发送的第三请求;
第五请求接收模块 3702, 用于接收服务器发送的第六请求;
第六请求发送模块 3703,用于根据第四请求接收模块 3701接收到的第三请 求或者第五请求接收模块 3702接收到的第六请求向基站发送第四请求, 以便基 站根据该第四请求分配并向第二终端发送被发现资源;
第七请求发送模块 3704,用于根据第三请求接收模块 3701接收到的第三请 求或者第五请求接收模块 3702接收到的第六请求向基站发送第四请求;
第三被发现资源接收模块 3705, 用于接收基站根据第七请求发送模块 3704 发送的第四请求分配并发送的被发现资源;
第三被发现资源发送模块 3706,用于将第三被发现资源接收模块 3705接收 到的被发现资源发送给第二终端;
其中, 该被发现资源为第二终端发送第二消息时所使用的资源。
第六请求发送模块 3703, 用于根据第三请求向基站发送 S1-AP 消息, 该 S 1 -AP消息中包含有第三指示,该第三指示用于指示基站分配被发现资源或为第 二终端分配被发现资源或分配被发现资源并向第二终端发送被发现资源或为第 二终端分配被发现资源并向第二终端发送被发现资源, 以便基站通过 RRC消息 将被发现资源发送给第二终端。
第七请求发送模块 3704, 用于根据第三请求向基站发送 S1-AP 消息, 该 S1-AP消息中包含有第四指示,该第四指示用于指示基站分配被发现资源或为第 二终端分配被发现资源或分配被发现资源并向管理实体发送被发现资源或为第 二终端分配被发现资源并向管理实体发送被发现资源;
第三被发现资源接收模块 3705, 用于接收基站通过容器 container发送的被 发现资源;
第三被发现资源发送模块 3706,用于通过非接入层 NAS消息将被发现资源 发送给第二终端。
综上所述, 本发明实施例提供的管理实体, 通过接收第二终端发送的第三 请求; 根据该第三请求向基站发送第四请求, 以便基站根据该第四请求分配并 向第二终端发送被发现资源; 或者, 根据该第三请求向基站发送第四请求, 并 接收基站根据该第四请求分配并发送的被发现资源, 并将该被发现资源发送给 第二终端; 以便第二终端根据该被发现资源发送第二消息, 达到减少终端之间 干扰的目的。 请参考图 49, 其示出了本发明一个实施例提供的管理实体的设备构成图。 该管理实体可以包括: 接收机 3801、 处理器 3802和发射机 3803;
接收机 3801, 用于接收第一终端发送的、 第二终端的业务标识, 该第二终 端的业务标识由该第一终端根据至少一个第二终端发送的、 包含有该第二终端 的业务标识的第二消息所获取, 该业务标识为服务器分配的标识;
处理器 3802, 用于控制发射机 3803将接收机 3801接收到的第二终端的业 务标识发送给服务器, 以便服务器根据该第二终端的业务标识查询并向第一终 端发送该第二终端的描述信息;
处理器 3802, 用于控制发射机 3803将接收机 3801接收到的第二终端的业 务标识发送给服务器;
接收机 3801, 用于接收服务器发送的、 该第二终端的描述信息;
处理器 3802,用于控制发射机 3803将该第二终端的描述信息发送给第一终 端, 该第二终端的描述信息由服务器根据发射机 3803发送的第二终端的业务标 识查询获得。
综上所述, 本发明实施例提供的管理实体, 通过接收第一终端发送的、 第 二终端的业务标识并发送给服务器, 以便服务器根据该第二终端的业务标识向 第一终端提供该第二终端的描述信息, 解决了现有技术中第一终端必须预先获 知第二终端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识未 知的终端, 扩展应用范围的目的。 基于上述图 49所示的管理实体的更为优选的方案,请参考图 50, 其示出了 本发明另一实施例提供的管理实体的设备构成图。 该管理实体可以应用于 D2D 系统中。 该管理实体可以包括: 接收机 3901、 处理器 3902和发射机 3903 ; 接收机 3901, 用于接收第一终端发送的、 第二终端的业务标识, 该第二终 端的业务标识由该第一终端根据至少一个第二终端发送的、 包含有该第二终端 的业务标识的第二消息所获取, 该业务标识为服务器分配的标识;
处理器 3902, 用于控制发射机 3903将接收机 3901接收到的第二终端的业 务标识发送给服务器, 以便服务器根据该第二终端的业务标识查询并向第一终 端发送该第二终端的描述信息;
处理器 3902, 用于控制发射机 3903将接收机 3901接收到的第二终端的业 务标识发送给服务器;
接收机 3901, 用于接收服务器发送的、 该第二终端的描述信息;
处理器 3902,用于控制发射机 3903将该第二终端的描述信息发送给第一终 端, 该第二终端的描述信息由服务器根据发射机 3903发送的第二终端的业务标 识查询获得。
接收机 3901, 用于在接收第一终端发送的、 第二终端的业务标识之前, 接 收第一终端发送的第一请求;
处理器 3902, 用于根据接收机 3901接收到的第一请求, 控制发射机 3903 向基站发送第二请求, 以便基站根据该第二请求向第一终端发送发现资源; 处理器 3902, 用于根据接收机 3901接收到的第一请求, 控制发射机 3903 向基站发送第二请求;
接收机 3901,用于接收基站根据发射机 3903发送的第二请求所发送的发现 资源;
处理器 3902, 用于控制发射机 3903将接收机 3901接收到的发现资源发送 给第一终端;
其中, 发现资源为第一终端监听第二消息时所使用的资源。
处理器 3902, 用于控制发射机 3903根据第一请求向基站发送 S1-AP消息, 该 S1-AP消息中包含有第一指示, 该第一指示用于指示基站向第一终端发送发 现资源或用于指示基站获取并向第一终端发送发现资源, 以便基站通过 RRC消 息将发现资源发送给第一终端。
处理器 3902, 用于控制发射机 3903根据第一请求向基站发送 S1-AP消息, 该 S1-AP消息中包含有第二指示, 该第二指示用于指示基站向管理实体发送发 现资源或用于指示基站获取并向管理实体发送发现资源;
接收机 3901, 用于接收基站通过容器 container发送的发现资源;
处理器 3902, 用于控制发射机 3903通过非接入层 NAS消息将发现资源发 送给第一终端。
处理器 3902,用于在控制发射机 3903根据第一请求向基站发送第二请求之 前, 控制发射机 3903将该第一终端的身份标识发送给服务器, 以便服务器根据 第一终端的身份标识验证第一终端是否拥有发现终端的权限;
接收机 3901, 用于接收服务器反馈的该第一终端拥有发现终端的权限的指 示;
处理器 3902,用于在接收机 3901接收到服务器反馈的该第一终端拥有发现 终端的权限的指示之后, 控制发射机 3903根据第一请求向基站发送第二请求; 其中, 该第一请求中包含有该第一终端的身份标识。
处理器 3902,用于在控制发射机 3903根据第一请求向基站发送第二请求之 前, 控制发射机 3903将该第一终端的身份标识和该第一终端中使用发现业务的 应用的标识发送给服务器, 以便服务器根据该第一终端的身份标识和该第一终 端中使用发现业务的应用的标识验证该第一终端是否拥有发现终端的权限以及 该应用是否拥有使用发现功能的权限;
接收机 3901, 用于接收服务器反馈的该第一终端拥有发现终端的权限, 且 该应用拥有使用发现功能的权限的指示;
处理器 3902,用于在接收机 3901接收到服务器反馈的该第一终端拥有发现 终端的权限, 且该应用拥有使用发现功能的权限的指示之后, 控制发射机 3903 根据第一请求向基站发送第二请求;
其中, 该第一请求中包含有该第一终端的身份标识和该第一终端中使用发 现业务的应用的标识。
接收机 3901, 用于在接收第一终端发送的、 第二终端的标识之前, 接收第 二终端发送的第三请求;
接收机 3901, 还用于在接收第一终端发送的、 第二终端的标识之前, 接收 服务器发送的第六请求;
处理器 3902, 用于在接收机 3901接收到的第三请求或第六请求之后,控制 发射机 3903向基站发送第四请求, 以便基站根据该第四请求分配并向第二终端 发送被发现资源; 处理器 3902,还用于在接收机 3901接收到的第三请求或第六请求之后,控 制发射机 3903向基站发送第四请求;
接收机 3901,用于接收基站根据发射机 3903发送的第四请求分配并发送的 被发现资源;
处理器 3902, 用于控制发射机 3903将接收机 3901接收到的被发现资源发 送给第二终端;
其中, 该被发现资源为第二终端发送第二消息时所使用的资源。
处理器 3902,用于根据第三请求,控制发射机 3903向基站发送 S1-AP消息, 该 S1-AP消息中包含有第三指示, 该第三指示用于指示基站分配被发现资源或 为第二终端分配被发现资源或分配被发现资源并向第二终端发送被发现资源或 为第二终端分配被发现资源并向第二终端发送被发现资源, 以便基站通过 RRC 消息将被发现资源发送给第二终端。
处理器 3902,用于根据第三请求,控制发射机 3903向基站发送 S1-AP消息, 该 S1-AP消息中包含有第四指示, 该第四指示用于指示基站分配被发现资源或 为第二终端分配被发现资源或分配被发现资源并向管理实体发送被发现资源或 为第二终端分配被发现资源并向管理实体发送被发现资源;
接收机 3901, 用于接收基站通过容器 container发送的被发现资源; 处理器 3902, 用于控制发射机 3903通过非接入层 NAS消息将被发现资源 发送给第二终端。
该管理实体还包括:
处理器 3902,用于在根据第三请求控制发射机 3903向基站发送第四请求之 前, 控制发射机 3903将该第二终端的身份标识发送给服务器, 以便服务器根据 该第二终端的身份标识验证该第二终端是否拥有被发现的权限;
接收机 3901,用于接收服务器反馈的该第二终端拥有被发现的权限的指示; 处理器 3902,用于在接收机 3901接收到服务器反馈的第二终端拥有被发现 的权限的指示之后, 根据第三请求控制发射机 3903向基站发送第四请求;
其中, 该第三请求中包含有该第二终端的身份标识。
该管理实体还包括:
处理器 3902,用于在根据第三请求控制发射机 3903向基站发送第四请求之 前, 控制发射机 3903将该第二终端的身份标识和该第二终端中使用被发现业务 的应用的标识发送给服务器, 以便服务器根据该第二终端的身份标识和该第二 终端中使用被发现业务的应用的标识验证该第二终端是否拥有被发现的权限以 及该应用是否拥有使用被发现功能的权限;
接收机 3901, 用于接收服务器反馈的该第二终端拥有被发现的权限, 且该 应用拥有使用被发现功能的权限的指示;
处理器 3902,用于在接收机 3901接收到服务器反馈的该第二终端拥有被发 现的权限, 且该应用拥有使用被发现功能的权限的指示之后, 控制发射机 3903 根据第三请求向基站发送第四请求;
其中, 该第三请求中包含有该第二终端的身份标识和该第二终端中使用被 发现业务的应用的标识。
接收机 3901, 用于在接收服务器发送的、 第二终端的描述信息之前, 接收 第一终端发送的、 该第一终端的业务标识;
处理器 3902, 用于控制发射机 3903将接收机 3901接收到的第一终端的业 务标识发送给服务器, 以便服务器在根据该第一终端的业务标识验证该第一终 端拥有发现该第二终端的权限后, 根据该第二终端的业务标识查询该第二终端 的描述信息。
综上所述, 本发明实施例提供的管理实体, 通过接收第一终端发送的、 第 二终端的业务标识并发送给服务器, 以便服务器根据该第二终端的业务标识向 第一终端提供该第二终端的描述信息, 解决了现有技术中第一终端必须预先获 知第二终端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识未 知的终端, 扩展应用范围的目的; 此外, 本发明实施例提供的管理实体, 通过 为第一终端请求分配发现资源, 并为第二终端请求分配被发现资源, 以便第一 终端根据该发现资源监听第二终端根据被发现资源发送的第二消息, 达到减小 终端负担, 节约终端电量, 有效减少各个第二终端发送的第二消息之间的干扰 的目的; 最后, 本发明实施例提供的管理实体, 还通过接收第一终端发送的该 第一终端的业务标识, 并将该业务标识发送给服务器, 以便服务器根据该第一 终端的业务标识验证该第一终端是否拥有发现与该至少一个第二终端的至少一 个第二终端的标识业务标识相对应的第二终端的权限, 达到保护第二终端的隐 私的目的 请参考图 51, 其示出了本发明一个实施例提供的终端发现系统的系统构成 图。 该终端发现系统可以包括: 如图 23或 24所示的第一终端 001、 至少一个如 图 27或 28所示的第二终端 002、 如图 33或 34所示的月良务器 003、 如图 39或 40所示的基站 004以及如图 45或 46所示的管理实体 005。
综上所述, 本发明实施例提供的终端发现系统, 第一终端通过获取发现资 源, 根据该发现资源监听至少一个第二终端发送的、 包含有第二终端的业务标 识的第二消息并获取该第二终端的业务标识; 根据该第二终端的标识从服务器 获取与该第二终端的描述信息, 解决了现有技术中第一终端必须预先获知第二 终端的唯一身份标识的问题, 达到可以发现周围一定范围内身份标识未知的终 端, 扩展应用范围的目的; 另外, 本发明实施例提供的终端发现系统, 第一终 端通过根据获取到的发现资源监听第二终端通过被发现资源发送的第二消息, 达到减小终端负担, 节约终端电量, 同时有效减少干扰, 节约硬件资源的目的; 最后, 本发明实施例提供的终端发现系统, 第一终端通过将第一终端的业务标 识发送给管理实体, 以便服务器根据该第一终端的业务标识验证该第一终端是 否拥有发现该第二终端的权限, 达到有针对性的保护第二终端的隐私的目的。 需要说明的是: 上述实施例提供的第一终端、 第二终端、 服务器、 基站以 及管理实体在进行发现终端时, 仅以上述各功能模块的划分进行举例说明, 实 际应用中, 可以根据需要而将上述功能分配由不同的功能模块完成, 即将设备 的内部结构划分成不同的功能模块, 以完成以上描述的全部或者部分功能。 另 夕卜, 上述实施例提供的第一终端、 第二终端、 服务器、 基站以及管理实体与发 现终端方法实施例属于同一构思, 其具体实现过程详见方法实施例, 这里不再 赘述。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过 硬件来完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储于 一种计算机可读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或 光盘等。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的 精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的 保护范围之内。

Claims

权 利 要 求
1、 一种发现终端方法, 其特征在于, 所述方法包括:
第一终端获取发现资源;
所述第一终端根据所述发现资源监听至少一个第二终端发送的第二消息, 所述第二消息中包含所述第二终端的业务标识;
所述第一终端根据所述第二消息获取所述第二终端的业务标识;
所述第一终端根据所述第二终端的业务标识从服务器获取所述第二终端的 描述信息。
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一终端根据所述第二 终端的业务标识从服务器获取所述第二终端的描述信息, 包括:
所述第一终端将所述第二终端的业务标识发送给所述服务器; 或者, 所述 第一终端将所述第二终端的业务标识发送给管理实体, 以便所述管理实体将所 述第二终端的业务标识发送给所述服务器;
所述第一终端接收所述服务器发送的所述第二终端的描述信息, 所述第二 终端的描述信息为所述服务器根据所述第二终端的业务标识获取的信息; 或者, 所述第一终端接收所述管理实体发送的所述第二终端的描述信息, 所述第二终 端的描述信息为所述服务器根据所述第二终端的业务标识获取并发送给所述管 理实体的信息。
3、 根据权利要求 2所述的方法, 其特征在于, 在所述第一终端接收所述服 务器发送的所述第二终端的描述信息之前, 或者, 在所述第一终端接收所述管 理实体发送的所述第二终端的描述信息之前, 所述方法还包括:
所述第一终端将所述第一终端的业务标识发送给所述服务器, 以便所述服 务器在根据所述第一终端的业务标识验证所述第一终端拥有发现所述第二终端 的权限后, 根据所述第二终端的业务标识获取所述第二终端的描述信息;
或者, 所述第一终端将所述第一终端的业务标识发送给所述管理实体, 以 便所述管理实体将所述第一终端的业务标识发送给所述服务器, 以便所述服务 器在根据所述第一终端的业务标识验证所述第一终端拥有发现所述第二终端的 权限后, 根据所述第二终端的业务标识获取所述第二终端的描述信息。
4、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 所述第一终端获 取发现资源, 包括:
所述第一终端向管理实体发送第一请求, 以便所述管理实体向基站发送发 现第二请求;
所述第一终端接收所述基站根据所述第二请求发送的所述发现资源; 或者, 所述第一终端接收所述管理实体发送的所述发现资源, 所述发现资源是所述基 站根据所述第二请求发送给所述管理实体的发现资源;
其中, 所述发现资源包括所述第一终端的服务小区的发现资源; 或者, 所 述发现资源包括所述第一终端的服务小区的发现资源以及与所述第一终端的服 务小区相邻的小区的发现资源。
5、 根据权利要求 4所述的方法, 其特征在于, 所述第一终端接收所述基站 根据所述第二请求发送的所述发现资源, 包括:
所述第一终端接收所述基站在接收到所述第二请求后通过 RRC消息发送的 所述发现资源;
其中, 所述第二请求为包含第一指示的 S1-AP消息, 所述第一指示用于指 示所述基站向所述第一终端发送所述发现资源或用于指示所述基站获取所述发 现资源并向所述第一终端发送所述发现资源。
6、 根据权利要求 4所述的方法, 其特征在于, 所述第一终端接收所述管理 实体发送的所述发现资源, 包括:
所述第一终端接收所述管理实体通过非接入层消息发送的所述发现资源, 所述发现资源为所述基站在接收到所述第二请求后, 通过容器发送给所述管理 实体的发现资源;
其中, 所述第二请求为包含第二指示的 S1-AP消息, 所述第二指示用于指 示所述基站向所述管理实体发送所述发现资源或用于指示所述基站获取所述发 现资源并向所述管理实体发送所述发现资源。
7、 根据权利要求 4所述的方法, 其特征在于, 所述第一终端向管理实体发 送第一请求, 包括: 所述第一终端向所述管理实体发送包含有所述第一终端的身份标识的所述 第一请求, 以便所述管理实体将所述第一终端的身份标识发送给所述服务器, 并在所述服务器根据所述第一终端的身份标识验证所述第一终端拥有发现所述 第二终端的权限时, 向所述基站发送所述第二请求。
8、 根据权利要求 4所述的方法, 其特征在于, 所述第一终端向管理实体发 送第一请求, 包括:
所述第一终端向所述管理实体发送包含有所述第一终端的身份标识和所述 第一终端中使用发现业务的应用的标识的所述第一请求, 以便所述管理实体将 所述第一终端的身份标识和所述第一终端中使用发现业务的应用的标识发送给 所述服务器, 并在所述服务器根据所述第一终端的身份标识和所述第一终端中 使用发现业务的应用的标识验证所述第一终端拥有发现所述第二终端的权限且 所述应用拥有使用发现功能的权限时, 向所述基站发送所述第二请求。
9、根据权利要求 1所述的方法, 其特征在于, 所述第一终端获取发现资源, 包括:
所述第一终端接收所述基站发送的系统信息;
所述第一终端解析所述系统信息中包含的所述发现资源;
其中, 所述发现资源包括所述第一终端的服务小区的发现资源; 或者, 所 述发现资源包括所述第一终端的服务小区的发现资源以及与所述第一终端的服 务小区相邻的小区的发现资源。
10、 根据权利要求 1 所述的方法, 其特征在于, 所述第一终端根据所述第 二消息获取所述第二终端的业务标识, 包括:
将所述第二消息中、 符合预定条件的业务标识确定为所述第二终端的业务 标识;
所述预定条件包括下列条件中的至少一种:
所述第二消息的信号强度大于或等于预定强度阔值;
或者, 所述第二消息中包含的所述第二终端的类别符合预定类别; 或者, 所述第二消息中包含的应用的描述符合预定的应用描述。
11、 根据权利要求 1 所述的方法, 其特征在于, 所述第一终端根据所述发 现资源监听第二终端发送的第二消息之前, 还包括:
发送第一消息, 以便所述第二终端在接收到所述第一消息之后, 根据所述 第一消息发送所述第二消息。
12、 一种发现终端方法, 其特征在于, 所述方法包括:
第二终端发送包含有所述第二终端的业务标识的第二消息, 以便第一终端 根据所述第二消息获取所述第二终端的业务标识, 并根据所述第二终端的业务 标识从服务器获取所述第二终端的描述信息。
13、 根据权利要求 12所述的方法, 其特征在于, 所述第二终端发送包含有 所述第二终端的业务标识的第二消息之前, 还包括:
所述第二终端向管理实体发送第三请求, 以便所述管理实体向基站发送第 四请求; 或者, 所述第二终端向所述服务器发送第五请求, 以便所述服务器向 所述管理实体发送第六请求, 以便所述管理实体向所述基站发送所述第四请求; 所述第二终端接收所述基站发送的被发现资源; 或者, 所述第二终端接收 所述管理实体发送的、 所述基站发送给所述管理实体的所述被发现资源; 所述 被发现资源为所述基站根据所述第四请求所分配的资源;
所述第二终端发送包含有所述第二终端的业务标识的第二消息, 包括: 所述第二终端根据所述被发现资源发送所述包含有所述第二终端的业务标 识的第二消息。
14、 根据权利要求 13所述的方法, 其特征在于, 所述第二终端接收所述基 站发送的被发现资源, 包括:
所述第二终端接收所述基站通过 RRC消息发送的所述被发现资源, 所述被 发现资源是所述基站在接收到所述第四请求后分配的资源;
其中, 所述第四请求为包含第三指示的 S1-AP消息, 所述第三指示用于指 示所述基站分配所述被发现资源, 或者, 所述第三指示用于指示所述基站为所 述第二终端分配所述被发现资源, 或者, 所述第三指示用于指示所述基站分配 所述被发现资源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示 用于指示所述基站为所述第二终端分配所述被发现资源并向所述第二终端发送 所述被发现资源
15、 根据权利要求 13所述的方法, 其特征在于, 所述第二终端接收所述管 理实体发送的、 所述基站发送给所述管理实体的所述被发现资源, 包括:
所述第二终端接收所述管理实体通过非接入层消息发送的所述被发现资 源, 所述被发现资源为所述基站在接收到所述第四请求后, 通过容器发送给所 述管理实体的被发现资源;
其中, 所述第四请求为包含第四指示的 S1-AP消息, 所述第四指示用于指 示所述基站分配所述被发现资源, 或者, 所述第四指示用于指示所述基站为所 述第二终端分配所述被发现资源, 或者, 所述第四指示用于指示所述基站分配 所述被发现资源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示 用于指示所述基站为所述第二终端分配所述被发现资源并向所述管理实体发送 所述被发现资源。
16、 根据权利要求 13所述的方法, 其特征在于, 所述第二终端向管理实体 发送第三请求, 包括:
所述第二终端向所述管理实体发送包含有所述第二终端的身份标识的所述 第三请求, 以便所述管理实体将所述第二终端的身份标识发送给所述服务器, 并在所述服务器根据所述第二终端的身份标识验证所述第二终端拥有被发现的 权限时, 向所述基站发送所述第四请求。
17、 根据权利要求 13所述的方法, 其特征在于, 所述第二终端向管理实体 发送第三请求, 包括:
所述第二终端向所述管理实体发送包含有所述第二终端的身份标识和所述 第二终端中使用被发现业务的应用的标识的所述第三请求, 以便所述管理实体 将所述第二终端的身份标识和所述第二终端中使用被发现业务的应用的标识发 送给所述服务器, 并在所述服务器根据所述第二终端的身份标识验证所述第二 终端拥有被发现的权限, 且所述应用拥有使用被发现功能的权限时, 向所述基 站发送所述第四请求。
18、 根据权利要求 13所述的方法, 其特征在于, 所述第二终端向服务器发 送第五请求, 以便所述服务器向所述管理实体发送第六请求, 包括: 所述第二终端向所述服务器发送包含有所述第二终端的身份标识的所述第 五请求, 以便所述服务器在根据所述第二终端的身份标识验证所述第二终端拥 有被发现的权限时, 向所述管理实体发送所述第六请求。
19、 根据权利要求 13所述的方法, 其特征在于, 所述第二终端向服务器发 送第五请求, 以便所述服务器向所述管理实体发送第六请求, 包括:
所述第二终端向所述管理实体发送包含有所述第二终端的身份标识和所述 第二终端中使用被发现业务的应用的标识的所述第五请求, 以便所述服务器在 根据所述第二终端的身份标识验证所述第二终端拥有被发现的权限, 且所述应 用拥有使用被发现功能的权限时, 向所述管理实体发送所述第六请求。
20、 根据权利要求 13所述的方法, 其特征在于, 所述第二终端向服务器发 送第五请求, 以便所述服务器向所述管理实体发送第六请求, 以便所述基站发 送第四请求, 包括:
所述第二终端向所述服务器发送包含所述第二终端的全球唯一临时标识
GUTI的所述第五请求, 以便所述服务器根据所述 GUTI向所述管理实体发送所 述第六请求。
21、 根据权利要求 13所述的方法, 其特征在于, 所述第二终端发送包含有 所述第二终端的业务标识的第二消息, 包括:
所述第二终端在接收到所述被发现资源后, 立即发送所述第二消息; 或者,
所述第二终端接收所述第一终端发送的第一消息, 并根据所述第一消息发 送所述第二消息。
22、 一种发现终端方法, 其特征在于, 所述方法包括:
第二终端向管理实体发送第三请求, 以便所述管理实体向基站发送第四请 求; 或者, 所述第二终端向服务器发送第五请求, 以便所述服务器向所述管理 实体发送第六请求, 以便所述管理实体向所述基站发送所述第四请求;
所述第二终端接收所述基站发送的被发现资源; 或者, 所述第二终端接收 所述管理实体发送的、 所述基站发送给所述管理实体的所述被发现资源; 所述 被发现资源为所述基站根据所述第四请求所分配的资源。
23、 根据权利要求 22所述的方法, 其特征在于, 所述第二终端接收所述基 站发送的被发现资源, 包括:
所述第二终端接收所述基站通过 RRC消息发送的所述被发现资源, 所述被 发现资源是所述基站在接收到所述第四请求后分配的资源;
其中, 所述第四请求为包含第三指示的 S1-AP消息, 所述第三指示用于指 示所述基站分配所述被发现资源, 或者, 所述第三指示用于指示所述基站为所 述第二终端分配所述被发现资源, 或者, 所述第三指示用于指示所述基站分配 所述被发现资源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示 用于指示所述基站为所述第二终端分配所述被发现资源并向所述第二终端发送 所述被发现资源。
24、 根据权利要求 22所述的方法, 其特征在于, 所述第二终端接收所述管 理实体发送的、 所述基站发送给所述管理实体的所述被发现资源, 包括:
所述第二终端接收所述管理实体通过非接入层消息发送的所述被发现资 源, 所述被发现资源为所述基站在接收到所述第四请求后, 通过容器发送给所 述管理实体的被发现资源;
其中, 所述第四请求为包含第四指示的 S1-AP消息, 所述第四指示用于指 示所述基站分配所述被发现资源, 或者, 所述第四指示用于指示所述基站为所 述第二终端分配所述被发现资源, 或者, 所述第四指示用于指示所述基站分配 所述被发现资源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示 用于指示所述基站为所述第二终端分配所述被发现资源并向所述管理实体发送 所述被发现资源。
25、 根据权利要求 22所述的方法, 其特征在于, 所述第二终端向服务器发 送第五请求, 以便所述服务器向所述管理实体发送第六请求, 以便所述基站发 送第四请求, 包括:
所述第二终端向所述服务器发送包含所述第二终端的全球唯一临时标识 GUTI的所述第五请求, 以便所述服务器根据所述 GUTI向所述管理实体发送所 述第六请求 c
26、 一种发现终端方法, 其特征在于, 所述方法包括:
服务器接收第一终端的发出的第二终端的业务标识; 所述第二终端的业务 标识由所述第一终端根据所述第二终端发送的包含有所述第二终端的业务标识 的第二消息获取;
所述服务器根据所述第二终端的业务标识获取所述第二终端的描述信息; 所述服务器将获取到的所述第二终端的描述信息提供给所述第一终端。
27、 根据权利要求 26所述的方法, 其特征在于, 所述服务器接收第一终端 的发出的第二终端的业务标识, 包括:
所述服务器接收所述第一终端发送的所述第二终端的业务标识;
或者,
所述服务器接收管理实体发送的所述第二终端的业务标识, 所述第二终端 的业务标识是所述第一终端发送给所述管理实体的业务标识。
28、 根据权利要求 26所述的方法, 其特征在于, 所述服务器根据所述第二 终端的业务标识获取所述第二终端的描述信息, 包括:
所述服务器本地查询与所述第二终端的业务标识对应的所述第二终端的描 述信息;
或者,
所述服务器根据所述第二终端的业务标识向所述第二终端的归属服务器或 者当前为所述第二终端提供服务的服务器获取所述第二终端的描述信息。
29、 根据权利要求 26所述的方法, 其特征在于, 所述服务器将查询到的所 述第二终端的描述信息提供给所述第一终端, 包括:
所述服务器将获取到的所述第二终端的描述信息发送给所述第一终端; 或者,
所述服务器将获取到的所述第二终端的描述信息发送给管理实体, 以便所 述管理实体将所述第二终端的描述信息发送给所述第一终端。
30、 根据权利要求 26所述的方法, 其特征在于, 在所述服务器根据所述第 二终端的业务标识获取所述第二终端的描述信息之前, 还包括:
所述服务器接收所述第一终端发送的、 所述第一终端的业务标识; 或者, 所述服务器接收所述管理实体发送的、 所述第一终端的业务标识, 所述第一终 端的业务标识由所述第一终端发送给所述管理实体;
所述服务器根据所述第一终端的业务标识验证所述第一终端是否拥有发现 所述第二终端的权限;
若验证结果为所述第一终端拥有发现所述第二终端的权限, 则所述服务器 执行所述根据所述第二终端的业务标识获取所述第二终端的描述信息的步骤。
31、 根据权利要求 26所述的方法, 其特征在于, 在所述服务器接收第一终 端的发出的第二终端的业务标识之前, 所述方法还包括:
所述服务器所述接收管理实体发送的所述第一终端的身份标识, 所述第一 终端的身份标识为包含于所述第一终端发送给所述管理实体的第一请求中的标 识;
所述服务器根据所述第一终端的身份标识验证所述第一终端是否拥有发现 终端的权限;
若验证结果为所述第一终端拥有发现终端的权限, 则所述服务器向所述管 理实体反馈所述第一终端拥有发现终端的权限的指示, 以便所述管理实体在接 收到所述指示后向基站发送第二请求;
其中, 所述第一请求用于请求获取发现资源, 所述第二请求用于请求所述 基站获取并向所述第一终端发送所述发现资源, 所述发现资源为所述第一终端 监听所述第二消息时所使用的资源。
32、 根据权利要求 26所述的方法, 其特征在于, 在所述服务器接收第一终 端的发出的第二终端的业务标识之前, 所述方法还包括:
所述服务器接收管理实体发送的、 所述第一终端的身份标识和所述第一终 端中使用发现业务的应用的标识, 所述第一终端的身份标识和所述第一终端中 使用发现业务的应用的标识为包含于所述第一终端发送给所述管理实体的第一 请求中的标识;
所述服务器根据所述第一终端的身份标识验证所述第一终端是否拥有发现 终端的权限, 并根据所述第一终端中使用发现业务的应用的标识验证所述应用 是否拥有使用发现功能的权限;
若验证结果为所述第一终端拥有发现终端的权限且所述应用拥有使用发现 功能的权限, 则所述服务器向所述管理实体反馈所述第一终端拥有发现终端的 权限且所述应用拥有使用发现功能的权限的指示, 以便所述管理实体在接收到 所述指示后向基站发送第二请求;
其中, 所述第一请求用于请求获取发现资源, 所述第二请求用于请求所述 基站获取并向所述第一终端发送所述发现资源, 所述发现资源为所述第一终端 监听所述第二消息时所使用的资源。
33、 根据权利要求 26所述的方法, 其特征在于, 在所述服务器接收第一终 端的发出的第二终端的业务标识之前, 所述方法还包括:
所述服务器接收管理实体发送的、 所述第二终端的身份标识, 所述第二终 端的身份标识为包含于所述第二终端发送给所述管理实体的第三请求中的标 识;
所述服务器根据所述第二终端的身份标识验证所述第二终端是否拥有被发 现的权限;
若验证结果为所述第二终端拥有被发现的权限, 则所述服务器向所述管理 实体反馈所述第二终端拥有被发现的权限的指示, 以便所述管理实体在接收到 所述指示后向基站发送第四请求;
其中, 所述第三请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
34、 根据权利要求 26所述的方法, 其特征在于, 在所述服务器接收第一终 端的发出的第二终端的业务标识之前, 所述方法还包括:
所述服务器接收管理实体发送的、 所述第二终端的身份标识和所述第二终 端中使用被发现业务的应用的标识, 所述第二终端的身份标识和所述第二终端 中使用被发现业务的应用的标识为包含于所述第二终端发送给所述管理实体的 第三请求中的标识;
所述服务器根据所述第二终端的身份标识验证所述第二终端是否拥有被其 他第一终端发现的权限, 并根据所述第二终端中使用被发现业务的应用的标识 验证所述应用是否拥有使用被发现功能的权限;
若验证结果为所述第一终端拥有被其他第一终端发现的权限且所述应用拥 有使用被发现功能的权限, 则所述服务器向所述管理实体反馈所述第二终端拥 有被其他第一终端发现的权限且所述应用拥有使用被发现功能的权限的指示, 以便所述管理实体在接收到所述指示后向基站发送第四请求;
其中, 所述第三请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
35、 根据权利要求 26所述的方法, 其特征在于, 在所述服务器接收第一终 端的发出的第二终端的业务标识之前, 所述方法还包括:
所述服务器接收所述第二终端发送的第五请求;
所述服务器向管理实体发送第六请求, 以便所述管理实体向基站发送第四 请求;
其中, 所述第五请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
36、 根据权利要求 35所述的方法, 其特征在于, 所述第五请求中包含有所 述第二终端的全球唯一临时标识 GUTI;
所述服务器向管理实体发送第六请求, 包括:
所述服务器根据所述 GUTI向所述管理实体发送所述第六请求。
37、 根据权利要求 35所述的方法, 其特征在于, 所述第五请求中包含有所 述第二终端的身份标识; 在所述服务器向管理实体发送第六请求之前, 还包括: 所述服务器根据所述第二终端的身份标识验证所述第二终端是否拥有被其 他第一终端发现的权限;
若验证结果为所述第二终端拥有被发现的权限, 则所述服务器执行所述向 管理实体发送第六请求的步骤。
38、 根据权利要求 35所述的方法, 其特征在于, 所述第五请求中包含有所 述第二终端的身份标识和所述第二终端中使用被发现业务的应用的标识; 在所 述服务器向管理实体发送第六请求之前, 还包括:
所述服务器根据所述第二终端的身份标识验证所述第二终端是否拥有被发 现的权限, 并根据所述第二终端中使用被发现业务的应用的标识验证所述应用 是否拥有使用被发现功能的权限;
若验证结果为所述第一终端拥有被发现的权限且所述应用拥有使用被发现 功能的权限, 则所述服务器执行所述向管理实体发送第六请求的步骤。
39、 一种发现终端方法, 其特征在于, 所述方法包括:
服务器接收第二终端发送的第五请求;
所述服务器向管理实体发送第六请求, 以便所述管理实体向基站发送第四 请求;
其中, 所述第五请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
40、 根据权利要求 39所述的方法, 其特征在于, 所述第五请求中包含有所 述第二终端的全球唯一临时标识 GUTI;
所述服务器向管理实体发送第六请求, 包括:
所述服务器根据所述 GUTI向所述管理实体发送所述第六请求。
41、 一种发现终端方法, 其特征在于, 所述方法包括:
基站向第一终端提供发现资源, 以便所述第一终端根据所述发现资源监听 至少一个第二终端发送的第二消息。
42、 根据权利要求 41所述的方法, 其特征在于, 所述基站向第一终端提供 发现资源, 包括:
所述基站接收管理实体发送的第二请求;
所述基站获取所述发现资源;
所述基站将所述发现资源发送给所述第一终端; 或者, 所述基站将所述发 现资源发送给所述管理实体, 以便所述管理实体将所述发现资源发送给所述第 一终端。
43、 根据权利要求 42所述的方法, 其特征在于, 所述基站接收管理实体发 送的第二请求, 包括:
所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第一指示, 所述第一指示用于指示所述基站向所述第一终端发送所述发现资源 或用于指示所述基站获取并向所述第一终端发送所述发现资源;
所述基站将所述发现资源发送给所述第一终端, 包括:
所述基站通过 RRC消息将所述发现资源发送给所述第一终端。
44、 根据权利要求 42所述的方法, 其特征在于, 所述基站接收管理实体发 送的第二请求, 包括:
所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第二指示, 所述第二指示用于指示所述基站向所述管理实体发送所述发现资源 或用于指示所述基站获取所述发现资源并向所述管理实体发送所述发现资源; 所述基站将所述发现资源发送给所述管理实体, 以便所述管理实体将所述 发现资源发送给所述第一终端, 包括:
所述基站通过容器将所述发现资源发送给所述管理实体, 以便所述管理实 体通过非接入层消息将所述发现资源发送给所述第一终端。
45、 根据权利要求 41所述的方法, 其特征在于, 所述基站向第一终端提供 发现资源, 包括:
所述基站获取所述发现资源;
所述基站在所述第一终端所在的小区内发送包含有所述发现资源的系统信 息。
46、 根据权利要求 42或 45所述的方法, 其特征在于, 所述基站获取所述 发现资源, 包括:
所述基站本地查询所述第一终端当前服务小区的发现资源;
或者, 所述基站本地查询所述第一终端当前服务小区的发现资源以及与所 述服务小区相邻的小区的发现资源;
或者, 所述基站本地查询所述第一终端当前服务小区的发现资源, 并通过
X2接口向相邻基站查询与所述服务小区相邻的小区的发现资源。
47、 根据权利要求 41所述的方法, 其特征在于, 所述方法还包括: 所述基站接收管理实体发送的第四请求;
所述基站根据所述第四请求为所述第二终端分配被发现资源, 所述被发现 资源为所述第二终端发送所述第二消息时所使用的资源;
所述基站将所述被发现资源发送给所述第二终端; 或者, 所述基站将所述 被发现资源发送给所述管理实体, 以便所述管理实体将所述被发现资源发送给 所述第二终端。
48、 根据权利要求 47所述的方法, 其特征在于, 所述基站接收管理实体发 送的第四请求, 包括:
所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第三指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三 指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第三指示 用于指示所述基站分配被发现资源并向所述第二终端发送所述被发现资源, 或 者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源并向所述 第二终端发送所述被发现资源;
所述基站将所述被发现资源发送给所述第二终端, 包括:
所述基站通过 RRC消息将所述被发现资源发送给所述第二终端。
49、 根据权利要求 47所述的方法, 其特征在于, 所述基站接收管理实体发 送的第四请求, 包括:
所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第四指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四 指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第四指示 用于指示所述基站分配被发现资源并向所述管理实体发送所述被发现资源, 或 者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源并向所述 管理实体发送所述被发现资源; 所述基站将所述被发现资源发送给所述管理实体, 以便所述管理实体将所 述被发现资源发送给所述第二终端, 包括:
所述基站通过容器将所述被发现资源发送给所述管理实体, 以便所述管理 实体通过非接入层消息将所述被发现资源发送给所述第二终端。
50、 一种发现终端方法, 其特征在于, 所述方法包括:
基站接收管理实体发送的第四请求;
所述基站根据所述第四请求为所述第二终端分配被发现资源, 所述被发现 资源为所述第二终端发送所述第二消息时所使用的资源;
所述基站将所述被发现资源发送给所述第二终端; 或者, 所述基站将所述 被发现资源发送给所述管理实体, 以便所述管理实体将所述被发现资源发送给 所述第二终端。
51、 根据权利要求 50所述的方法, 其特征在于, 所述基站接收管理实体发 送的第四请求, 包括:
所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第三指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三 指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第三指示 用于指示所述基站分配被发现资源并向所述第二终端发送所述被发现资源, 或 者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源并向所述 第二终端发送所述被发现资源;
所述基站将所述被发现资源发送给所述第二终端, 包括:
所述基站通过 RRC消息将所述被发现资源发送给所述第二终端。
52、 根据权利要求 50所述的方法, 其特征在于, 所述基站接收管理实体发 送的第四请求, 包括:
所述基站接收所述管理实体发送的 S1-AP消息, 所述 S1-AP消息中包含有 第四指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四 指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第四指示 用于指示所述基站分配被发现资源并向所述管理实体发送所述被发现资源, 或 者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源并向所述 管理实体发送所述被发现资源;
所述基站将所述被发现资源发送给所述管理实体, 以便所述管理实体将所 述被发现资源发送给所述第二终端, 包括:
所述基站通过容器将所述被发现资源发送给所述管理实体, 以便所述管理 实体通过非接入层消息将所述被发现资源发送给所述第二终端。
53、 一种发现终端方法, 其特征在于, 所述方法包括:
管理实体接收第一终端发送的、 第二终端的业务标识, 所述第二终端的业 务标识由所述第一终端根据至少一个第二终端发送的、 包含有所述第二终端的 业务标识的第二消息所获取;
所述管理实体将所述第二终端的业务标识发送给所述服务器, 以便所述服 务器根据所述第二终端的业务标识获取并向所述第一终端发送所述第二终端的 描述信息;
或者, 所述管理实体将所述第二终端的业务标识发送给所述服务器, 接收 所述服务器发送的、 所述第二终端的描述信息, 并将所述第二终端的描述信息 发送给所述第一终端, 所述第二终端的描述信息由所述服务器根据所述第二终 端的业务标识获取。
54、 根据权利要求 53所述的方法, 其特征在于, 在所述管理实体接收第一 终端发送的、 第二终端的业务标识之前, 所述方法还包括:
所述管理实体接收所述第一终端发送的第一请求;
所述管理实体向基站发送第二请求, 以便所述基站根据所述第二请求向所 述第一终端发送发现资源; 或者, 所述管理实体向基站发送第二请求, 并接收 所述基站根据所述第二请求发送的发现资源, 并将所述发现资源发送给所述第 一终端;
其中, 所述发现资源为所述第一终端监听所述第二消息时所使用的资源。
55、 根据权利要求 54所述的方法, 其特征在于, 所述管理实体向基站发送 第二请求, 以便所述基站根据所述第二请求向所述第一终端发送发现资源, 包 括:
所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第一 指示, 所述第一指示用于指示所述基站向所述第一终端发送所述发现资源或用 于指示所述基站获取并向所述第一终端发送所述发现资源, 以便所述基站通过
RRC消息将所述发现资源发送给所述第一终端。
56、 根据权利要求 54所述的方法, 其特征在于, 所述管理实体向基站发送 第二请求, 并接收所述基站根据所述第二请求发送的发现资源, 并将所述发现 资源发送给所述第一终端, 包括:
所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第二 指示, 所述第二指示用于指示所述基站向所述管理实体发送所述发现资源或用 于指示所述基站获取所述发现资源并向所述管理实体发送所述发现资源;
所述管理实体接收所述基站通过容器发送的所述发现资源;
所述管理实体通过非接入层消息将所述发现资源发送给所述第一终端。
57、 根据权利要求 54所述的方法, 其特征在于, 所述第一请求中包含有所 述第一终端的身份标识; 所述管理实体向基站发送第二请求之前, 所述方法还 包括:
所述管理实体将所述第一终端的身份标识发送给所述服务器, 以便所述服 务器根据所述第一终端的身份标识验证所述第一终端是否拥有发现终端的权 限;
所述管理实体接收所述服务器反馈的所述第一终端拥有发现终端的权限的 指示;
所述管理实体向基站发送第二请求, 包括:
所述管理实体在接收到所述服务器反馈的所述第一终端拥有发现终端的权 限的指示之后, 向基站发送所述第二请求。
58、 根据权利要求 54所述的方法, 其特征在于, 所述第一请求中包含有所 述第一终端的身份标识和所述第一终端中使用发现业务的应用的标识; 在所述 管理实体向基站发送第二请求之前, 所述方法还包括:
所述管理实体将所述第一终端的身份标识和所述第一终端中使用发现业务 的应用的标识发送给所述服务器, 以便所述服务器根据所述第一终端的身份标 识和所述第一终端中使用发现业务的应用的标识验证所述第一终端是否拥有发 现终端的权限以及所述应用是否拥有使用发现功能的权限;
所述管理实体接收所述服务器反馈的所述第一终端拥有发现终端的权限, 且所述应用拥有使用发现功能的权限的指示;
所述管理实体向基站发送第二请求, 包括:
所述管理实体在接收到所述服务器反馈的所述第一终端拥有发现终端的权 限, 且所述应用拥有使用发现功能的权限的指示之后, 向基站发送所述第二请 求。
59、 根据权利要求 53所述的方法, 其特征在于, 在所述管理实体接收第一 终端发送的、 第二终端的标识之前, 所述方法还包括:
所述管理实体接收所述第二终端发送的第三请求; 或者, 所述管理实体接 收所述服务器发送的第六请求;
所述管理实体向基站发送第四请求, 以便所述基站根据所述第四请求分配 并向所述第二终端发送被发现资源; 或者, 所述管理实体向所述基站发送第四 请求, 并接收所述基站根据所述第四请求分配并发送的被发现资源, 并将所述 被发现资源发送给所述第二终端;
其中, 所述被发现资源为所述第二终端发送所述第二消息时所使用的资源。
60、 根据权利要求 59所述的方法, 其特征在于, 所述管理实体向基站发送 第四请求, 以便所述基站根据所述第四请求分配并向所述第一终端发送被发现 资源, 包括:
所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第三 指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三指示 用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第三指示用于 指示所述基站分配被发现资源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源并向所述第二 终端发送所述被发现资源, 以便所述基站通过 RRC消息将所述被发现资源发送 给所述第二终端。
61、 根据权利要求 59所述的方法, 其特征在于, 所述管理实体向所述基站 发送第四请求, 并接收所述基站根据所述第四请求分配并发送的被发现资源, 并将所述被发现资源发送给所述第二终端, 包括:
所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第四 指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四指示 用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第四指示用于 指示所述基站分配被发现资源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源并向所述管理 实体发送所述被发现资源;
所述管理实体接收所述基站通过容器发送的所述被发现资源;
所述管理实体通过非接入层消息将所述被发现资源发送给所述第二终端。
62、 根据权利要求 59所述的方法, 其特征在于, 所述第三请求中包含有所 述第二终端的身份标识; 在所述管理实体向基站发送第四请求之前, 所述方法 还包括:
所述管理实体将所述第二终端的身份标识发送给所述服务器, 以便所述服 务器根据所述第二终端的身份标识验证所述第二终端是否拥有被发现的权限; 所述管理实体接收所述服务器反馈的所述第二终端拥有被发现的权限的指 示;
所述管理实体向基站发送第四请求, 包括:
所述管理实体在接收到所述服务器反馈的所述第二终端拥有被发现的权限 的指示之后, 向基站发送所述第四请求。
63、 根据权利要求 59所述的方法, 其特征在于, 所述第三请求中包含有所 述第二终端的身份标识和所述第二终端中使用被发现业务的应用的标识; 在所 述管理实体向基站发送第四请求之前, 所述方法还包括:
所述管理实体将所述第二终端的身份标识和所述第二终端中使用被发现业 务的应用的标识发送给所述服务器, 以便所述服务器根据所述第二终端的身份 标识和所述第二终端中使用被发现业务的应用的标识验证所述第二终端是否拥 有被发现的权限以及所述应用是否拥有使用被发现功能的权限;
所述管理实体接收所述服务器反馈的所述第二终端拥有被发现的权限, 且 所述应用拥有使用被发现功能的权限的指示;
所述管理实体向基站发送第四请求, 包括: 所述管理实体在接收到所述服务器反馈的所述第二终端拥有被发现的权 限, 且所述应用拥有使用被发现功能的权限的指示之后, 向基站发送第四请求。
64、 根据权利要求 53所述的方法, 其特征在于, 所述方法还包括: 所述管理实体接收所述第一终端发送的、 所述第一终端的业务标识; 所述管理实体将所述第一终端的业务标识发送给所述服务器, 以便所述服 务器在根据所述第一终端的业务标识验证所述第一终端拥有发现所述第二终端 的权限后, 根据所述第二终端的业务标识获取所述第二终端的描述信息。
65、 一种发现终端方法, 其特征在于, 所述方法包括:
管理实体接收第二终端发送的第三请求; 或者, 所述管理实体接收服务器 发送的第六请求;
所述管理实体向基站发送第四请求, 以便所述基站根据所述第四请求分配 并向所述第二终端发送被发现资源; 或者, 所述管理实体向所述基站发送第四 请求, 并接收所述基站根据所述第四请求分配并发送的被发现资源, 并将所述 被发现资源发送给所述第二终端;
其中, 所述被发现资源为所述第二终端发送所述第二消息时所使用的资源。
66、 根据权利要求 65所述的方法, 其特征在于, 所述管理实体向基站发送 第四请求, 以便所述基站根据所述第四请求分配并向所述第一终端发送被发现 资源, 包括:
所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第三 指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三指示 用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第三指示用于 指示所述基站分配被发现资源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源并向所述第二 终端发送所述被发现资源, 以便所述基站通过 RRC消息将所述被发现资源发送 给所述第二终端。
67、 根据权利要求 65所述的方法, 其特征在于, 所述管理实体向所述基站 发送第四请求, 并接收所述基站根据所述第四请求分配并发送的被发现资源, 并将所述被发现资源发送给所述第二终端, 包括:
所述管理实体向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第四 指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四指示 用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述第四指示用于 指示所述基站分配被发现资源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源并向所述管理 实体发送所述被发现资源;
所述管理实体接收所述基站通过容器发送的所述被发现资源;
所述管理实体通过非接入层消息将所述被发现资源发送给所述第二终端。
68、 一种第一终端, 其特征在于, 所述第一终端包括:
发现资源获取模块, 用于获取发现资源;
消息监听模块, 用于根据所述发现资源获取模块获取到的发现资源监听至 少一个第二终端发送的第二消息, 所述第二消息中包含有所述第二终端的业务 标识;
业务标识获取模块, 用于根据所述消息监听模块监听到的所述第二消息获 取所述第二终端的业务标识;
描述信息获取模块, 用于根据所述业务标识获取模块获取到的第二终端的 业务标识从服务器获取所述第二终端的描述信息。
69、 根据权利要求 68所述的第一终端, 其特征在于, 所述描述信息获取模 块, 包括:
第一标识发送单元, 用于将所述第二终端的业务标识发送给所述服务器; 第二标识发送单元, 用于将所述第二终端的业务标识发送给管理实体, 以 便所述管理实体将所述第二终端的业务标识发送给所述服务器;
第一信息接收单元, 用于接收所述服务器发送的所述第二终端的描述信息, 所述第二终端的描述信息为所述服务器根据所述第二终端的业务标识获取并发 送的信息;
第二信息接收单元, 用于接收所述管理实体发送的所述第二终端的描述信 息, 所述第二终端的描述信息为所述服务器根据所述第二终端的业务标识获取 并发送给所述管理实体的信息。
70、根据权利要求 69所述的第一终端, 其特征在于, 所述第一终端还包括: 第一标识发送模块, 用于在所述第一信息接收单元接收所述服务器发送的 所述第二终端的描述信息, 或者, 所述第二信息接收单元接收所述管理实体发 送的所述第二终端的描述信息之前, 将所述第一终端的业务标识发送给所述服 务器, 以便所述服务器在根据所述第一终端的业务标识验证所述第一终端拥有 发现所述第二终端的权限后, 根据所述第二终端的业务标识获取所述第二终端 的描述信息;
第二标识发送模块, 用于在所述第一信息接收单元接收所述服务器发送的 所述第二终端的描述信息, 或者, 所述第二信息接收单元接收所述管理实体发 送的所述第二终端的描述信息之前, 将所述第一终端的业务标识发送给所述管 理实体, 以便所述管理实体将所述第一终端的业务标识发送给所述服务器, 以 便所述服务器在根据所述第一终端的业务标识验证所述第一终端拥有发现所述 第二终端的权限后, 根据所述第二终端的业务标识获取所述第二终端的描述信 息。
71、 根据权利要求 68所述的第一终端, 其特征在于, 所述发现资源获取模 块, 包括:
第一请求发送单元, 用于向管理实体发送第一请求, 以便所述管理实体向 所述基站发送第二请求;
第一发现资源接收单元, 用于接收所述基站根据所述第二请求发送的所述 发现资源;
第二发现资源接收单元, 用于接收所述管理实体发送的所述发现资源; 所 述发现资源是所述基站根据所述第二请求发送给所述管理实体的发现资源; 其中, 所述发现资源包括所述第一终端的服务小区的发现资源; 或者, 所 述发现资源包括所述第一终端的服务小区的发现资源以及与所述服务小区相邻 的小区的发现资源。
72、 根据权利要求 71所述的第一终端, 其特征在于, 所述第一发现资源接 收单元, 用于接收所述基站通过 RRC消息发送的所述发现资源, 所述发现资源 是所述基站在接收到所述第二请求后发送的发现资源; 其中, 所述第二请求为包含第一指示的 Sl-AP消息, 所述第一指示用于指 示所述基站向所述第一终端发送所述发现资源或用于指示所述基站获取并向所 述第一终端发送所述发现资源。
73、 根据权利要求 71所述的第一终端, 其特征在于, 所述第二发现资源接 收单元, 用于接收所述管理实体通过非接入层消息发送的所述发现资源, 所述 发现资源为所述基站在接收到所述第二请求后, 通过容器发送给所述管理实体 的发现资源;
其中, 所述第二请求为包含第二指示的 S1-AP消息, 所述第二指示用于指 示所述基站向所述第一终端发送所述发现资源或用于指示所述基站获取所述发 现资源并向所述管理实体发送所述发现资源。
74、 根据权利要求 71所述的第一终端, 其特征在于, 所述第一请求发送单 元, 用于向所述管理实体发送包含有所述第一终端的身份标识的所述第一请求, 以便所述管理实体将所述第一终端的身份标识发送给所述服务器, 并在所述服 务器根据所述第一终端的身份标识验证所述第一终端拥有发现终端的权限时, 向所述基站发送所述第二请求。
75、 根据权利要求 71所述的第一终端, 其特征在于, 所述第一请求发送单 元, 用于向所述管理实体发送包含有所述第一终端的身份标识和所述第一终端 中使用发现业务的应用的标识的所述第一请求, 以便所述管理实体将所述第一 终端的身份标识和所述第一终端中使用发现业务的应用的标识发送给所述服务 器, 并在所述服务器根据所述第一终端的身份标识和所述第一终端中使用发现 业务的应用的标识验证所述第一终端拥有发现终端的权限且所述应用拥有使用 发现功能的权限时, 向所述基站发送所述第二请求。
76、 根据权利要求 68所述的第一终端, 其特征在于, 所述发现资源获取模 块, 包括:
系统信息接收单元, 用于接收所述基站发送的系统信息;
发现资源解析单元, 用于解析所述系统信息接收单元接收到的系统信息中 包含的所述发现资源; 其中, 所述发现资源包括所述第一终端的服务小区的发现资源; 或者, 所 述发现资源包括所述第一终端的服务小区的发现资源以及与所述服务小区相邻 的小区的发现资源。
77、 根据权利要求 68所述的第一终端, 其特征在于,
所述业务标识获取模块, 用于将所述第二消息中、 符合预定条件的业务标 识获取为所述第二终端的业务标识;
所述预定条件包括下列条件中的至少一种:
所述第二消息的信号强度大于或等于预定强度阔值;
或者, 所述第二消息中包含的第二终端的类别符合预定类别;
或者, 所述第二消息中包含的应用的描述符合预定的应用描述。
78、根据权利要求 68所述的第一终端, 其特征在于, 所述第一终端还包括: 第一消息发送模块, 用于在所述消息监听模块根据所述发现资源监听至少 一个第二终端发送的第二消息之前, 发送第一消息, 以便所述第二终端在接收 到所述第一消息之后, 根据所述第一消息发送所述第二消息。
79、 一种第二终端, 其特征在于, 所述第二终端包括:
第二消息发送模块, 用于发送包含有所述第二终端的业务标识的第二消息, 以便第一终端根据所述第二消息获取所述第二终端的业务标识, 并根据所述第 二终端的业务标识从服务器获取所述第二终端的描述信息。
80、根据权利要求 79所述的第二终端, 其特征在于, 所述第二终端还包括: 第一请求发送模块, 用于在所述第二消息发送模块发送包含有所述第二终 端的业务标识的第二消息之前, 向管理实体发送第三请求, 以便所述管理实体 向基站发送第四请求;
第二请求发送模块, 用于在所述第二消息发送模块发送包含有所述第二终 端的业务标识的第二消息之前, 向服务器发送第五请求, 以便所述服务器向所 述管理实体发送第六请求, 以便所述管理实体向所述基站发送所述第四请求; 第一被发现资源接收模块, 用于接收所述基站发送的被发现资源; 所述被 发现资源为所述基站根据所述第四请求所分配的资源; 第二被发现资源接收模块, 用于接收所述管理实体发送的、 所述基站发送 给所述管理实体的所述被发现资源; 所述被发现资源为所述基站根据所述第四 请求所分配的资源;
所述第二消息发送模块, 用于根据所述第一被发现资源接收模块或者所述 第二被发现资源接收模块接收到的所述被发现资源发送所述包含有所述业务标 识的第二消息。
81、 根据权利要求 80所述的第二终端, 其特征在于, 所述第一被发现资源 接收模块, 用于接收所述基站通过 RRC消息发送的所述被发现资源, 所述被发 现资源是所述基站在接收到所述第四请求后分配的资源;
其中, 所述第四请求为包含第三指示的 S1-AP消息, 所述第三指示用于指 示所述基站分配被发现资源, 或者, 所述第三指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第三指示用于指示所述基站分配被发现资 源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述 基站为所述第二终端分配被发现资源并向所述第二终端发送所述被发现资源。
82、 根据权利要求 80所述的第二终端, 其特征在于, 所述第二被发现资源 接收模块, 用于接收所述管理实体通过非接入层消息发送的所述被发现资源, 所述被发现资源为所述基站在接收到所述第四请求后, 通过容器发送给所述管 理实体的被发现资源;
其中, 所述第四请求为包含第四指示的 S1-AP消息, 所述第四指示用于指 示所述基站分配被发现资源, 或者, 所述第四指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第四指示用于指示所述基站分配被发现资 源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示用于指示所述
83、 根据权利要求 80所述的第二终端, 其特征在于, 所述第一请求发送模 块, 用于向所述管理实体发送包含有所述第二终端的身份标识的所述第三请求, 以便所述管理实体将所述第二终端的身份标识发送给所述服务器, 并在所述服 务器根据所述第二终端的身份标识验证所述第二终端拥有被发现的权限时, 向 所述基站发送所述第四请求。
84、 根据权利要求 80所述的第二终端, 其特征在于, 所述第一请求发送模 块, 用于向所述管理实体发送包含有所述第二终端的身份标识和所述第二终端 中使用被发现业务的应用的标识的所述第三请求, 以便所述管理实体将所述第 二终端的身份标识和所述第二终端中使用被发现业务的应用的标识发送给所述 服务器, 并在所述服务器根据所述第二终端的身份标识和所述第二终端中使用 被发现业务的应用的标识验证所述第二终端拥有被发现的权限, 且所述应用拥 有使用被发现功能的权限时, 向所述基站发送所述第四请求。
85、 根据权利要求 80所述的第二终端, 其特征在于, 所述第二请求发送模 块, 用于向所述服务器发送包含有所述第二终端的身份标识的所述第五请求, 以便所述服务器在根据所述第二终端的身份标识验证所述第二终端拥有被发现 的权限时, 向所述管理实体发送所述第六请求。
86、 根据权利要求 80所述的第二终端, 其特征在于, 所述第二请求发送模 块, 用于向所述服务器发送包含有所述第二终端的身份标识和所述第二终端中 使用被发现业务的应用的标识的所述第五请求, 以便所述服务器在根据所述第 二终端的身份标识验证所述第二终端拥有被发现的权限, 且所述应用拥有使用 被发现功能的权限时, 向所述管理实体发送所述第六请求。
87、 根据权利要求 80所述的第二终端, 其特征在于, 所述第二请求发送模 块,用于向所述服务器发送包含所述第二终端的全球唯一临时标识 GUTI的所述 第五请求, 以便所述服务器根据所述 GUTI向所述管理实体发送所述第六请求。
88、 根据权利要求 82所述的第二终端, 其特征在于, 所述第二消息发送模 块, 包括:
第一消息发送单元, 用于在所述第一被发现资源接收模块或者所述第二被 发现资源接收模块接收到所述被发现资源后, 立即发送所述第二消息;
第一消息接收单元, 用于接收所述第一终端发送的第一消息;
第二消息发送单元, 用于根据所述第一消息接收单元接收到的第一消息发 送所述第二消息。
89、 一种第二终端, 其特征在于, 所述第二终端包括:
第一请求发送模块, 用于向管理实体发送第三请求, 以便所述管理实体向 基站发送第四请求;
第二请求发送模块, 用于向服务器发送第五请求, 以便所述服务器向所述 管理实体发送第六请求, 以便所述管理实体向所述基站发送所述第四请求; 第一被发现资源接收模块, 用于接收所述基站发送的被发现资源; 所述被 发现资源为所述基站根据所述第四请求所分配的资源;
第二被发现资源接收模块, 用于接收所述管理实体发送的、 所述基站发送 给所述管理实体的所述被发现资源; 所述被发现资源为所述基站根据所述第四 请求所分配的资源。
90、 根据权利要求 89所述的第二终端, 其特征在于, 所述第一被发现资源 接收模块, 用于接收所述基站通过 RRC消息发送的所述被发现资源, 所述被发 现资源是所述基站在接收到所述第四请求后分配的资源;
其中, 所述第四请求为包含第三指示的 S1-AP消息, 所述第三指示用于指 示所述基站分配被发现资源, 或者, 所述第三指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第三指示用于指示所述基站分配被发现资 源并向所述第二终端发送所述被发现资源, 或者, 所述第三指示用于指示所述 基站为所述第二终端分配被发现资源并向所述第二终端发送所述被发现资源。
91、 根据权利要求 89所述的第二终端, 其特征在于, 所述第二被发现资源 接收模块, 用于接收所述管理实体通过非接入层消息发送的所述被发现资源, 所述被发现资源为所述基站在接收到所述第四请求后, 通过容器发送给所述管 理实体的被发现资源;
其中, 所述第四请求为包含第四指示的 S1-AP消息, 所述第四指示用于指 示所述基站分配被发现资源, 或者, 所述第四指示用于指示所述基站为所述第 二终端分配被发现资源, 或者, 所述第四指示用于指示所述基站分配被发现资 源并向所述管理实体发送所述被发现资源, 或者, 所述第四指示用于指示所述
92、 根据权利要求 89所述的第二终端, 其特征在于, 所述第二请求发送模 块,用于向所述服务器发送包含所述第二终端的全球唯一临时标识 GUTI的所述 第五请求, 以便所述服务器根据所述 GUTI向所述管理实体发送所述第六请求。
93、 一种服务器, 其特征在于, 所述服务器包括:
第一标识接收模块, 用于接收第一终端的发出的第二终端的业务标识; 所 述第二终端的业务标识由所述第一终端根据至少一个第二终端发送的、 包含有 所述第二终端的业务标识的第二消息所获取;
信息获取模块, 用于根据所述第一标识接收模块接收到的第二终端的业务 标识获取所述第二终端的描述信息;
信息提供模块, 用于将所述信息获取模块获取到的所述第二终端的描述信 息提供给所述第一终端。
94、根据权利要求 93所述的服务器, 其特征在于, 所述第一标识接收模块, 包括:
第一标识接收单元, 用于接收所述第一终端发送的、 所述第二终端的业务 标识;
第二标识接收单元, 用于接收管理实体发送的、 所述第二终端的业务标识, 所述第二终端的业务标识是所述第一终端发送给所述管理实体的业务标识。
95、 根据权利要求 93所述的服务器, 其特征在于, 所述信息获取模块, 包 括:
第一查询单元, 用于本地查询与所述第二终端的业务标识对应的所述第二 终端的描述信息;
第二查询单元, 用于根据所述第二终端的业务标识向所述第二终端的归属 服务器或者当前为所述第二终端提供服务的服务器获取所述第二终端的描述信 息。
96、根据权利要求 93所述的服务器, 其特征在于, 所述信息提供模块包括: 第一信息发送单元, 用于将所述信息获取模块获取到的所述第二终端的描 述信息发送给所述第一终端; 第二信息发送单元, 用于将所述信息获取模块获取到的所述第二终端的描 述信息发送给管理实体, 以便所述管理实体将所述第二终端的描述信息发送给 所述第一终端。
97、 根据权利要求 93所述的服务器, 其特征在于, 所述服务器还包括: 第二标识接收模块, 用于在所述信息获取模块获取与所述第二终端的业务 标识相对应的第二终端的描述信息之前, 接收所述第一终端发送的、 所述第一 终端的业务标识;
第三标识接收模块, 用于在所述信息获取模块获取与所述第二终端的业务 标识相对应的第二终端的描述信息之前, 接收所述管理实体发送的、 所述第一 终端的业务标识, 所述第一终端的业务标识由所述第一终端发送给所述管理实 体;
第一验证模块, 用于根据所述第二标识接收模块或者所述第三标识接收模 块接收到的第一终端的业务标识验证所述第一终端是否拥有发现所述第二终端 的权限;
所述信息获取模块, 用于若所述第一验证模块的验证结果为所述第一终端 拥有发现所述第二终端的权限, 则执行所述根据所述第二终端的业务标识获取 所述第二终端的描述信息的步骤。
98、 根据权利要求 93所述的服务器, 其特征在于, 所述服务器还包括: 第四标识接收模块, 用于在所述第一标识接收模块接收第一终端的发出的 第二终端的业务标识之前, 接收管理实体发送的、 所述第一终端的身份标识, 所述第一终端的身份标识为包含于所述第一终端发送给所述管理实体的第一请 求中的标识;
第二验证模块, 用于根据所述第一终端的身份标识验证所述第一终端是否 拥有发现终端的权限;
第一指示反馈模块, 用于若所述第二验证模块的验证结果为所述第一终端 拥有发现终端的权限, 则向所述管理实体反馈所述第一终端拥有发现终端的权 限的指示, 以便所述管理实体在接收到所述指示后向基站发送第二请求;
其中, 所述第一请求用于请求获取发现资源, 所述第二请求用于请求所述 基站获取并向所述第一终端发送所述发现资源, 所述发现资源为所述第一终端 监听所述第二消息时所使用的资源。
99、 根据权利要求 93所述的服务器, 其特征在于, 所述服务器还包括: 第五标识接收模块, 用于在所述第一标识接收模块接收第一终端的发出的 第二终端的业务标识之前, 接收管理实体发送的、 所述第一终端的身份标识和 所述第一终端中使用发现业务的应用的标识, 所述第一终端的身份标识和所述 第一终端中使用发现业务的应用的标识为包含于所述第一终端发送给所述管理 实体的第一请求中的标识;
第三验证模块, 用于根据所述第一终端的身份标识验证所述第一终端是否 拥有发现终端的权限;
第四验证模块, 用于根据所述第一终端中使用发现业务的应用的标识验证 所述应用是否拥有使用发现功能的权限;
第二指示反馈模块, 用于若所述第三验证模块的验证结果为所述第一终端 拥有发现终端的权限, 且所述第四验证模块的验证结果为所述应用拥有使用发 现功能的权限, 则向所述管理实体反馈所述第一终端拥有发现终端的权限且所 述应用拥有使用发现功能的权限的指示, 以便所述管理实体在接收到所述指示 后向基站发送第二请求;
其中, 所述第一请求用于请求获取发现资源, 所述第二请求用于请求所述 基站获取并向所述第一终端发送所述发现资源, 所述发现资源为所述第一终端 监听所述第二消息时所使用的资源。
100、 根据权利要求 93所述的服务器, 其特征在于, 所述服务器还包括: 第六标识接收模块, 用于在所述第一标识接收模块接收第一终端的发出的 第二终端的业务标识之前, 接收管理实体发送的、 所述第二终端的身份标识, 所述第二终端的身份标识为包含于所述第二终端发送给所述管理实体的第三请 求中的标识;
第五验证模块, 用于根据所述第二终端的身份标识验证所述第二终端是否 拥有被发现的权限;
第三指示反馈模块, 用于若所述第五验证模块的验证结果为所述第二终端 拥有被发现的权限, 则向所述管理实体反馈所述第二终端拥有被发现的权限的 指示, 以便所述管理实体在接收到所述指示后向基站发送第四请求; 其中, 所述第三请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
101、 根据权利要求 93所述的服务器, 其特征在于, 所述服务器还包括: 第七标识接收模块, 用于在所述第一标识接收模块接收第一终端的发出的 第二终端的业务标识之前, 接收管理实体发送的、 所述第二终端的身份标识和 所述第二终端中使用被发现业务的应用的标识, 所述第二终端的身份标识和所 述第二终端中使用被发现业务的应用的标识为包含于所述第二终端发送给所述 管理实体的第三请求中的标识;
第六验证模块, 用于根据所述第二终端的身份标识验证所述第二终端是否 拥有被发现的权限;
第七验证模块, 用于根据所述第二终端中使用被发现业务的应用的标识验 证所述应用是否拥有使用被发现功能的权限;
第四指示反馈模块, 用于若所述第六验证模块的验证结果为所述第一终端 拥有被发现的权限, 且所述第七验证模块的验证结果为所述应用拥有使用被发 现功能的权限, 则向所述管理实体反馈所述第二终端拥有被发现的权限且所述 应用拥有使用被发现功能的权限的指示, 以便所述管理实体在接收到所述指示 后向基站发送第四请求;
其中, 所述第三请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
102、 根据权利要求 93所述的服务器, 其特征在于, 所述服务器还包括: 第一请求接收模块, 用于在所述第一标识接收模块接收第一终端的发出的 第二终端的业务标识之前, 接收所述第二终端发送的第五请求;
第三请求发送模块, 用于向管理实体发送第六请求, 以便所述管理实体向 基站发送第四请求;
其中, 所述第五请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
103、 根据权利要求 93 所述的服务器, 其特征在于, 所述第五请求中包含 有所述第二终端的全球唯一临时标识 GUTI;
所述第三请求发送模块,用于根据所述 GUTI向所述管理实体发送所述第六 请求。
104、 根据权利要求 93 所述的服务器, 其特征在于, 所述第五请求中包含 有所述第二终端的身份标识; 所述服务器还包括:
第八验证模块, 用于在所述第三请求发送模块向管理实体发送第六请求之 前, 根据所述第二终端的身份标识验证所述第二终端是否拥有被发现的权限; 所述第三请求发送模块, 用于若所述第八验证模块的验证结果为所述第二 终端拥有被发现的权限, 则执行所述向管理实体发送第六请求的步骤。
105、 根据权利要求 93 所述的服务器, 其特征在于, 所述第五请求中包含 有所述第二终端的身份标识和所述第二终端中使用被发现业务的应用的标识; 所述服务器还包括:
第九验证模块, 用于在所述第三请求发送模块向管理实体发送第六请求之 前, 根据所述第二终端的身份标识验证所述第二终端是否拥有被发现的权限; 第十验证模块, 用于在所述第三请求发送模块向管理实体发送第六请求之 前, 根据所述第二终端中使用被发现业务的应用的标识验证所述应用是否拥有 使用被发现功能的权限;
所述第三请求发送模块, 用于若所述第九验证模块的验证结果为所述第一 终端拥有被发现的权限, 且所述第十验证模块的验证结果为所述应用拥有使用 被发现功能的权限, 则执行所述向管理实体发送第六请求的步骤。
106、 一种服务器, 其特征在于, 所述服务器包括:
第一请求接收模块, 用于接收第二终端发送的第五请求;
第三请求发送模块, 用于向管理实体发送第六请求, 以便所述管理实体向 基站发送第四请求;
其中, 所述第五请求用于请求获取被发现资源, 所述第四请求用于请求所 述基站分配并向所述第二终端发送所述被发现资源, 所述被发现资源为所述第 二终端发送所述第二消息时所使用的资源。
107、 根据权利要求 106所述的服务器, 其特征在于, 所述第五请求中包含 有所述第二终端的全球唯一临时标识 GUTI;
所述第三请求发送模块,用于根据所述 GUTI向所述管理实体发送所述第六 请求。
108、 一种基站, 其特征在于, 所述基站包括:
发现资源提供模块, 用于向第一终端提供发现资源, 以便所述第一终端根 据所述发现资源监听至少一个第二终端发送的第二消息。
109、根据权利要求 108所述的基站, 其特征在于, 所述发现资源提供模块, 包括:
第一请求接收单元, 用于接收管理实体发送的第二请求;
第一获取单元, 用于获取所述发现资源;
第一发现资源发送单元, 用于将所述第一获取单元获取到的发现资源发送 给所述第一终端;
第二发现资源发送单元, 用于将所述第一获取单元获取到的发现资源发送 给所述管理实体, 以便所述管理实体将所述发现资源发送给所述第一终端。
110、根据权利要求 109所述的基站, 其特征在于, 所述第一请求接收单元, 用于接收所述管理实体发送的 S1-AP消息,所述 S1-AP消息中包含有第一指示, 所述第一指示用于指示所述基站向所述第一终端发送所述发现资源或用于指示 所述基站获取并向所述第一终端发送所述发现资源;
所述第一发现资源发送单元, 用于通过 RRC消息将所述发现资源发送给所 述第一终端。
111、根据权利要求 109所述的基站, 其特征在于, 所述第一请求接收单元, 用于接收所述管理实体发送的 S1-AP消息,所述 S1-AP消息中包含有第二指示, 所述第二指示用于指示所述基站向所述管理实体发送所述发现资源或用于指示 所述基站获取所述发现资源并向所述管理实体发送所述发现资源; 所述第二发现资源发送单元, 用于通过容器将所述发现资源发送给所述管 理实体, 以便所述管理实体通过非接入层消息将所述发现资源发送给所述第一 终端。
112、根据权利要求 108所述的基站, 其特征在于, 所述发现资源提供模块, 包括:
第二获取单元, 用于获取所述发现资源;
系统信息发送单元, 用于在所述第一终端所在的小区内发送包含有所述第 二获取单元获取到的发现资源的系统信息。
113、 根据权利要求 109或 112所述的基站, 其特征在于,
所述第一获取单元, 包括:
第一查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源; 第二查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源以 及与所述服务小区相邻的小区的发现资源;
第三查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源, 并通过 X2接口向相邻基站查询与所述服务小区相邻的小区的发现资源;
所述第二获取单元, 包括:
第四查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源; 第五查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源以 及与所述服务小区相邻的小区的发现资源;
第六查询子单元, 用于本地查询所述第一终端当前服务小区的发现资源, 并通过 X2接口向相邻基站查询与所述服务小区相邻的小区的发现资源。
114、 根据权利要求 108所述的基站, 其特征在于, 所述基站还包括: 第二请求接收模块, 用于接收管理实体发送的第四请求, 所述第四请求由 所述管理实体接收到所述第二终端发送的第三请求后所发送;
被发现资源分配模块, 用于根据所述第二请求接收模块接收到的第四请求 为所述第二终端分配被发现资源, 所述被发现资源为所述第二终端发送所述第 二消息时所使用的资源;
第一被发现资源发送模块, 用于将所述被发现资源分配模块分配的被发现 资源发送给所述第二终端;
第二被发现资源发送模块, 用于将所述被发现资源分配模块分配的被发现 资源发送给所述管理实体, 以便所述管理实体将所述被发现资源发送给所述第 二终端。
115、根据权利要求 114所述的基站, 其特征在于, 所述第二请求接收模块, 用于接收所述管理实体发送的 S1-AP消息,所述 S1-AP消息中包含有第三指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三指示用于指 示所述基站为所述第二终端分配被发现资源, 或者, 所述第三指示用于指示所 述基站分配被发现资源并向所述第二终端发送所述被发现资源, 或者, 所述第 三指示用于指示所述基站为所述第二终端分配被发现资源并向所述第二终端发 送所述被发现资源;
所述第一被发现资源发送模块, 用于通过 RRC消息将所述被发现资源发送 给所述第二终端。
116、根据权利要求 114所述的基站, 其特征在于, 所述第二请求接收模块, 用于接收所述管理实体发送的 S1-AP消息,所述 S1-AP消息中包含有第四指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四指示用于指 示所述基站为所述第二终端分配被发现资源, 或者, 所述第四指示用于指示所 述基站分配被发现资源并向所述管理实体发送所述被发现资源, 或者, 所述第 四指示用于指示所述基站为所述第二终端分配被发现资源并向所述管理实体发 送所述被发现资源;
所述第二被发现资源发送模块, 用于通过容器将所述被发现资源发送给所 述管理实体, 以便所述管理实体通过非接入层消息将所述被发现资源发送给所 述第二终端。
117、 一种基站, 其特征在于, 所述基站包括:
第二请求接收模块, 用于接收管理实体发送的第四请求;
被发现资源分配模块, 用于根据所述第二请求接收模块接收到的第四请求 为所述第二终端分配被发现资源, 所述被发现资源为所述第二终端发送所述第 二消息时所使用的资源; 第一被发现资源发送模块, 用于将所述被发现资源分配模块分配的被发现 资源发送给所述第二终端;
第二被发现资源发送模块, 用于将所述被发现资源分配模块分配的被发现 资源发送给所述管理实体, 以便所述管理实体将所述被发现资源发送给所述第 二终端。
118、根据权利要求 117所述的基站, 其特征在于, 所述第二请求接收模块, 用于接收所述管理实体发送的 S1-AP消息,所述 S1-AP消息中包含有第三指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三指示用于指 示所述基站为所述第二终端分配被发现资源, 或者, 所述第三指示用于指示所 述基站分配被发现资源并向所述第二终端发送所述被发现资源, 或者, 所述第 三指示用于指示所述基站为所述第二终端分配被发现资源并向所述第二终端发 送所述被发现资源;
所述第一被发现资源发送模块, 用于通过 RRC消息将所述被发现资源发送 给所述第二终端。
119、根据权利要求 117所述的基站, 其特征在于, 所述第二请求接收模块, 用于接收所述管理实体发送的 S1-AP消息,所述 S1-AP消息中包含有第四指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四指示用于指 示所述基站为所述第二终端分配被发现资源, 或者, 所述第四指示用于指示所 述基站分配被发现资源并向所述管理实体发送所述被发现资源, 或者, 所述第 四指示用于指示所述基站为所述第二终端分配被发现资源并向所述管理实体发 送所述被发现资源;
所述第二被发现资源发送模块, 用于通过容器将所述被发现资源发送给所 述管理实体, 以便所述管理实体通过非接入层消息将所述被发现资源发送给所 述第二终端。
120、 一种管理实体, 其特征在于, 所述管理实体包括:
第八标识接收模块, 用于接收第一终端发送的、 第二终端的业务标识, 所 述第二终端的业务标识由所述第一终端根据至少一个第二终端发送的、 包含有 所述第二终端的业务标识的第二消息所获取; 第三标识发送模块, 用于将所述第八标识接收模块接收到的第二终端的业 务标识发送给所述服务器, 以便所述服务器根据所述第二终端的业务标识获取 并向所述第一终端发送所述第二终端的描述信息;
第四标识发送模块, 用于将所述第八标识接收模块接收到的第二终端的业 务标识发送给所述服务器;
第三信息接收模块, 用于接收所述服务器发送的、 所述第二终端的描述信 息;
第三信息发送模块, 用于将所述第二终端的描述信息发送给所述第一终端, 所述第二终端的描述信息由所述服务器根据所述第四标识发送模块发送的第二 终端的业务标识获取。
121、 根据权利要求 120所述的管理实体, 其特征在于, 所述管理实体还包 括:
第三请求接收模块, 用于在所述第八标识接收模块接收第一终端发送的、 第二终端的业务标识之前, 接收所述第一终端发送的第一请求;
第四请求发送模块, 用于向基站发送第二请求, 以便所述基站根据所述第 二请求向所述第一终端发送发现资源;
第五请求发送模块, 用于向基站发送第二请求;
发现资源接收模块, 用于接收所述基站根据所述第五请求发送模块发送的 第二请求所发送的发现资源;
发现资源发送模块, 用于将所述发现资源接收模块接收到的发现资源发送 给所述第一终端;
其中, 所述发现资源为所述第一终端监听所述第二消息时所使用的资源。
122、 根据权利要求 121所述的管理实体, 其特征在于, 所述第四请求发送 模块, 用于向所述基站发送 S1-AP消息, 所述 S1-AP消息中包含有第一指示, 所述第一指示用于指示所述基站向所述第一终端发送所述发现资源或用于指示 所述基站获取并向所述第一终端发送所述发现资源, 以便所述基站通过 RRC消 息将所述发现资源发送给所述第一终端。
123、 根据权利要求 121所述的管理实体, 其特征在于, 所述第五请求发送 模块, 用于向所述基站发送 Sl-AP消息, 所述 S1-AP消息中包含有第二指示, 所述第二指示用于指示所述基站向所述管理实体发送所述发现资源或用于指示 所述基站获取所述发现资源并向所述管理实体发送所述发现资源;
所述发现资源接收模块, 用于接收所述基站通过容器发送的所述发现资源; 所述发现资源发送模块, 用于通过非接入层消息将所述发现资源发送给所 述第一终端。
124、 根据权利要求 121所述的管理实体, 其特征在于, 所述管理实体还包 括:
第五标识发送模块, 用于在所述第四请求发送模块或者所述第五请求发送 模块向基站发送第二请求之前, 将所述第一终端的身份标识发送给所述服务器, 以便所述服务器根据所述第一终端的身份标识验证所述第一终端是否拥有发现 终端的权限;
第一指示接收模块, 用于接收所述服务器反馈的所述第一终端拥有发现终 端的权限的指示;
所述第四请求发送模块, 用于在所述第一指示接收模块接收到所述服务器 反馈的所述第一终端拥有发现终端的权限的指示之后, 向基站发送所述第二请 求;
所述第五请求发送模块, 用于在所述第一指示接收模块接收到所述服务器 反馈的所述第一终端拥有发现终端的权限的指示之后, 向基站发送所述第二请 求;
其中, 所述第一请求中包含有所述第一终端的身份标识。
125、 根据权利要求 121所述的管理实体, 其特征在于, 所述管理实体还包 括:
第六标识发送模块, 用于在所述第四请求发送模块或者所述第五请求发送 模块向基站发送第二请求之前, 将所述第一终端的身份标识和所述第一终端中 使用发现业务的应用的标识发送给所述服务器, 以便所述服务器根据所述第一 终端的身份标识和所述第一终端中使用发现业务的应用的标识验证所述第一终 端是否拥有发现终端的权限以及所述应用是否拥有使用发现功能的权限;
第二指示接收模块, 用于接收所述服务器反馈的所述第一终端拥有发现终 端的权限, 且所述应用拥有使用发现功能的权限的指示;
所述第四请求发送模块, 用于在所述第二指示接收模块接收到所述服务器 反馈的所述第一终端拥有发现终端的权限, 且所述应用拥有使用发现功能的权 限的指示之后, 向基站发送所述第二请求;
所述第五请求发送模块, 用于在所述第二指示接收模块接收到所述服务器 反馈的所述第一终端拥有发现终端的权限, 且所述应用拥有使用发现功能的权 限的指示之后, 向基站发送所述第二请求;
其中, 所述第一请求中包含有所述第一终端的身份标识和所述第一终端中 使用发现业务的应用的标识。
126、 根据权利要求 120所述的管理实体, 其特征在于, 所述管理实体还包 括:
第四请求接收模块, 用于在所述第八标识接收模块接收第一终端发送的、 第二终端的标识之前, 接收所述第二终端发送的第三请求;
第五请求接收模块, 用于在所述第八标识接收模块接收第一终端发送的、 第二终端的标识之前, 接收服务器发送的第六请求;
第六请求发送模块, 用于在所述第四请求接收模块接收到所述第三请求, 或者, 所述第五请求模块接收到所述第六请求之后, 向基站发送第四请求, 以 便所述基站根据所述第四请求分配并向所述第二终端发送被发现资源;
第七请求发送模块, 用于在所述第四请求接收模块接收到所述第三请求, 或者, 所述第五请求模块接收到所述第六请求之后, 向所述基站发送第四请求; 第三被发现资源接收模块, 用于接收所述基站根据所述第七请求发送模块 发送的第四请求分配并发送的被发现资源;
第三被发现资源发送模块, 用于将所述第三被发现资源接收模块接收到的 被发现资源发送给所述第二终端;
其中, 所述被发现资源为所述第二终端发送所述第二消息时所使用的资源。
127、 根据权利要求 126所述的管理实体, 其特征在于,
所述第六请求发送模块, 用于向所述基站发送 S1-AP消息, 所述 S1-AP消 息中包含有第三指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述 第三指示用于指示所述基站分配被发现资源并向所述第二终端发送所述被发现 资源, 或者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源 并向所述第二终端发送所述被发现资源, 以便所述基站通过 RRC消息将所述被 发现资源发送给所述第二终端。
128、 根据权利要求 126所述的管理实体, 其特征在于,
所述第七请求发送模块, 用于向所述基站发送 S1-AP消息, 所述 S1-AP消 息中包含有第四指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述 第四指示用于指示所述基站分配被发现资源并向所述管理实体发送所述被发现 资源, 或者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源 并向所述管理实体发送所述被发现资源;
所述第三被发现资源接收模块, 用于接收所述基站通过容器发送的所述被 发现资源;
所述第三被发现资源发送模块, 用于通过非接入层消息将所述被发现资源 发送给所述第二终端。
129、 根据权利要求 126所述的管理实体, 其特征在于, 所述管理实体还包 括:
第七标识发送模块, 用于在所述第六请求发送模块或者所述第七请求发送 模块向基站发送第四请求之前, 将所述第二终端的身份标识发送给所述服务器, 以便所述服务器根据所述第二终端的身份标识验证所述第二终端是否拥有被发 现的权限;
第三指示接收模块, 用于接收所述服务器反馈的所述第二终端拥有被发现 的权限的指示;
所述第六请求发送模块, 用于在所述第三指示接收模块接收到所述服务器 反馈的所述第二终端拥有被发现的权限的指示之后, 向基站发送所述第四请求; 所述第七请求发送模块, 用于在所述第三指示接收模块接收到所述服务器 反馈的所述第二终端拥有被发现的权限的指示之后, 向基站发送所述第四请求; 其中, 所述第三请求中包含有所述第二终端的身份标识。
130、 根据权利要求 126所述的管理实体, 其特征在于, 所述管理实体还包 括:
第八标识发送模块, 用于在所述第六请求发送模块或者所述第七请求发送 模块向基站发送第四请求之前, 将所述第二终端的身份标识和所述第二终端中 使用被发现业务的应用的标识发送给所述服务器, 以便所述服务器根据所述第 二终端的身份标识和所述第二终端中使用被发现业务的应用的标识验证所述第 二终端是否拥有被发现的权限以及所述应用是否拥有使用被发现功能的权限; 第四指示接收模块, 用于接收所述服务器反馈的所述第二终端拥有被发现 的权限, 且所述应用拥有使用被发现功能的权限的指示;
所述第六请求发送模块, 用于在所述第四指示接收模块接收到所述服务器 反馈的所述第二终端拥有被发现的权限, 且所述应用拥有使用被发现功能的权 限的指示之后, 向基站发送第四请求;
所述第七请求发送模块, 用于在所述第四指示接收模块接收到所述服务器 反馈的所述第二终端拥有被发现的权限, 且所述应用拥有使用被发现功能的权 限的指示之后, 向基站发送第四请求;
其中, 所述第三请求中包含有所述第二终端的身份标识和所述第二终端中 使用被发现业务的应用的标识。
131、 根据权利要求 120所述的管理实体, 其特征在于, 所述管理实体还包 括:
第九标识接收模块, 用于接收所述第一终端发送的、 所述第一终端的业务 标识;
第九标识发送模块, 用于将所述第九标识接收模块接收到的第一终端的业 务标识发送给所述服务器, 以便服务器在根据所述第一终端的业务标识验证所 述第一终端拥有发现所述第二终端的权限后, 根据所述第二终端的业务标识获 取所述第二终端的描述信息。
132、 一种管理实体, 其特征在于, 所述管理实体包括:
第四请求接收模块, 用于接收第二终端发送的第三请求;
第五请求接收模块, 用于接收服务器发送的第六请求;
第六请求发送模块, 用于根据所述第三请求或所述第六请求向基站发送第 四请求, 以便所述基站根据所述第四请求分配并向所述第二终端发送被发现资 源;
第七请求发送模块, 用于根据所述第三请求或所述第六请求向所述基站发 送第四请求;
第三被发现资源接收模块, 用于接收所述基站根据所述第七请求发送模块 发送的第四请求分配并发送的被发现资源;
第三被发现资源发送模块, 用于将所述第三被发现资源接收模块接收到的 被发现资源发送给所述第二终端;
其中, 所述被发现资源为所述第二终端发送所述第二消息时所使用的资源。
133、 根据权利要求 132所述的管理实体, 其特征在于,
所述第六请求发送模块, 用于向所述基站发送 S1-AP消息, 所述 S1-AP消 息中包含有第三指示, 所述第三指示用于指示所述基站分配被发现资源, 或者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述 第三指示用于指示所述基站分配被发现资源并向所述第二终端发送所述被发现 资源, 或者, 所述第三指示用于指示所述基站为所述第二终端分配被发现资源 并向所述第二终端发送所述被发现资源, 以便所述基站通过 RRC消息将所述被 发现资源发送给所述第二终端。
134、 根据权利要求 132所述的管理实体, 其特征在于,
所述第七请求发送模块, 用于向所述基站发送 S1-AP消息, 所述 S1-AP消 息中包含有第四指示, 所述第四指示用于指示所述基站分配被发现资源, 或者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源, 或者, 所述 第四指示用于指示所述基站分配被发现资源并向所述管理实体发送所述被发现 资源, 或者, 所述第四指示用于指示所述基站为所述第二终端分配被发现资源 并向所述管理实体发送所述被发现资源;
所述第三被发现资源接收模块, 用于接收所述基站通过容器发送的所述被 发现资源;
所述第三被发现资源发送模块, 用于通过非接入层消息将所述被发现资源 发送给所述第二终端。
135、 一种发现终端系统, 其特征在于, 所述系统包括:
如权利要求 68至 78任一所述的第一终端、 至少一个如权利要求 79至 88 任一所述的第二终端、如权利要求 93至 105任一所述的服务器、如权利要求 106 至 116任一所述的基站以及如权利要求 120至 131任一所述的管理实体。
PCT/CN2014/077654 2013-05-20 2014-05-16 发现终端方法、终端、服务器、基站、管理实体及系统 WO2014187276A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
EP14801134.9A EP2925075A4 (en) 2013-05-20 2014-05-16 RECOGNITION PROCEDURES FOR TERMINAL DEVICE, DEVICE, SERVER, BASE STATION AND MANAGEMENT UNIT AS WELL AS SYSTEM
EP21209464.3A EP4027672A1 (en) 2013-05-20 2014-05-16 Terminal discovery method, terminal, server, base station, management entity, and system
EP18166470.7A EP3410751B1 (en) 2013-05-20 2014-05-16 Terminal discovery methods, terminals, and server
US14/798,805 US9838949B2 (en) 2013-05-20 2015-07-14 Terminal discovery method, terminal, server, base station, management entity, and system
US15/815,177 US10492122B2 (en) 2013-05-20 2017-11-16 Terminal discovery method, terminal, server, base station, management entity, and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310188555.9 2013-05-20
CN201310188555.9A CN104185162B (zh) 2013-05-20 2013-05-20 发现终端方法、终端、服务器、基站、管理实体及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/798,805 Continuation US9838949B2 (en) 2013-05-20 2015-07-14 Terminal discovery method, terminal, server, base station, management entity, and system

Publications (1)

Publication Number Publication Date
WO2014187276A1 true WO2014187276A1 (zh) 2014-11-27

Family

ID=51932848

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077654 WO2014187276A1 (zh) 2013-05-20 2014-05-16 发现终端方法、终端、服务器、基站、管理实体及系统

Country Status (4)

Country Link
US (2) US9838949B2 (zh)
EP (3) EP4027672A1 (zh)
CN (1) CN104185162B (zh)
WO (1) WO2014187276A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019158071A1 (zh) * 2018-02-13 2019-08-22 华为技术有限公司 信号传输的方法和装置

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135499A (zh) * 2016-02-26 2017-09-05 华为技术有限公司 数据传输方法、网络设备以及终端
US10965733B2 (en) * 2016-08-28 2021-03-30 Vmware, Inc. Efficient, automated distributed-search methods and systems
DE102020201788A1 (de) 2019-02-13 2020-08-13 Apple Inc. Funkressourcenverwaltung für netzwerkunterstützte new-radio-v2x-sidelink-ressourcenzuweisung
CN116567707A (zh) * 2019-02-13 2023-08-08 苹果公司 网络辅助的新无线电v2x侧链路资源分配的无线电资源管理
CN110267359B (zh) * 2019-06-25 2021-01-08 江西省高速公路联网管理中心 一种资源分配方法、路侧单元及存储介质
EP4152771A4 (en) * 2020-05-14 2024-02-14 Beijing Xiaomi Mobile Software Co Ltd METHOD AND APPARATUS FOR TRACKING TERMINAL, AND STORAGE MEDIUM

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013025057A2 (ko) * 2011-08-16 2013-02-21 엘지전자 주식회사 무선 접속 시스템에서 단말 간 통신 수행 방법 및 이를 위한 장치
WO2013044885A1 (zh) * 2011-09-30 2013-04-04 华为技术有限公司 内容发布方法和用户设备

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1527621A (zh) * 2003-03-07 2004-09-08 皇家飞利浦电子股份有限公司 无线通信网络中建立点到点对等通信的方法和装置
US7836484B2 (en) * 2004-05-11 2010-11-16 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for providing access to an identity service
CN101621385B (zh) * 2008-06-30 2012-05-23 Tcl集团股份有限公司 一种智能设备组的管理方法
US8938201B2 (en) * 2010-04-16 2015-01-20 Spirent Communications, Inc. WiFi positioning bench test method and instrument
US8509105B2 (en) * 2010-06-23 2013-08-13 Nokia Corporation Method and apparatus for device-to-device network coordination
CN102457829B (zh) 2010-10-20 2014-06-04 华为终端有限公司 鉴权和会话管理实体及其使用漫游地网络业务的方法
EP2730125B1 (en) * 2011-07-05 2017-03-01 Telefonaktiebolaget LM Ericsson (publ) Utran to lte (rsrvcc) handover
CN104025475B (zh) * 2011-10-03 2018-04-13 英特尔公司 装置到装置(d2d)通信机制
CN103096503B (zh) * 2011-11-04 2016-03-30 华为技术有限公司 通信匹配方法、用户设备和基站
GB2497741A (en) * 2011-12-19 2013-06-26 Renesas Mobile Corp A verification system for use in requesting access to a D2D communication service
US9867026B2 (en) * 2012-07-18 2018-01-09 Lg Electronics Inc. Method for discovering device in wireless access system and device therefor
CN102857901A (zh) * 2012-09-12 2013-01-02 中兴通讯股份有限公司 终端的发现、发现处理方法及装置
KR20150067202A (ko) * 2012-10-09 2015-06-17 엘지전자 주식회사 무선 통신 시스템에서 단말간 통신을 수행하는 방법 및 장치
US20140204847A1 (en) * 2013-01-18 2014-07-24 Telefonaktiebolaget L M Ericsson (Publ) Network-assisted d2d communication using d2d capability information
CN104066070B (zh) * 2013-03-20 2018-10-26 中兴通讯股份有限公司 终端注册方法、终端发现方法、终端及装置
CN104105155B (zh) * 2013-04-01 2019-07-16 中兴通讯股份有限公司 接收设备发现信息、发送设备发现信息的方法和用户设备
KR102043006B1 (ko) 2013-05-14 2019-11-13 삼성전자주식회사 무선 통신시스템에서의 UEs간 통신 방법

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013025057A2 (ko) * 2011-08-16 2013-02-21 엘지전자 주식회사 무선 접속 시스템에서 단말 간 통신 수행 방법 및 이를 위한 장치
WO2013044885A1 (zh) * 2011-09-30 2013-04-04 华为技术有限公司 内容发布方法和用户设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2925075A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019158071A1 (zh) * 2018-02-13 2019-08-22 华为技术有限公司 信号传输的方法和装置
US11627530B2 (en) 2018-02-13 2023-04-11 Huawei Technologies Co., Ltd. Reducing power consumption of a terminal device in which the terminal device discovers or measures a network device

Also Published As

Publication number Publication date
EP2925075A1 (en) 2015-09-30
EP2925075A4 (en) 2016-03-23
US9838949B2 (en) 2017-12-05
US10492122B2 (en) 2019-11-26
EP3410751B1 (en) 2021-12-29
US20180077628A1 (en) 2018-03-15
EP4027672A1 (en) 2022-07-13
EP3410751A1 (en) 2018-12-05
CN104185162B (zh) 2018-10-19
CN104185162A (zh) 2014-12-03
US20150319673A1 (en) 2015-11-05

Similar Documents

Publication Publication Date Title
US11627515B2 (en) Method for supporting lawful interception of remote ProSe UE in network
CN110268753B (zh) 基于预先配置的接入类别来接入采用网络切片的通信系统
CN109151906B (zh) 通信方法、网络设备、终端设备和系统
US10492122B2 (en) Terminal discovery method, terminal, server, base station, management entity, and system
US9532224B2 (en) Method of device-to-device discovery and apparatus thereof
US10009712B2 (en) Method and device for short range unicast communication
EP2601770B1 (en) A network, and method for operating it
JP2022554017A (ja) Wtru-ネットワークリレー
WO2014040506A1 (zh) 终端的发现、发现处理方法及装置
US20140126489A1 (en) Managing operating parameters for communication bearers in a wireless network
KR20180021650A (ko) 네트워크를 슬라이스로 구성하여 단말에게 서비스를 제공하는 방법 및 장치
JP2018129803A (ja) 通信方法、無線端末及びプロセッサ
WO2014032592A1 (zh) 设备到设备通信系统的通信方法、装置及系统
KR20130064677A (ko) 무선접속시스템에서 mac 제어 메시지를 방송하는 방법 및 장치
CN110650454A (zh) V2x通信方法、装置及系统
US20160302052A1 (en) Method, apparatus and system for d2d device discovery
CN104918233A (zh) 一种接近业务中的ue配置方法
WO2015149463A1 (zh) D2d发现的处理方法及装置
US20220279480A1 (en) User equipment and scheduling node
EP2942990A1 (en) Method, system and equipment for realizing cluster group call session in long term evolution
KR102233595B1 (ko) 단말 간 근접 발견을 위한 방법 및 장치
KR20210115470A (ko) 이동통신 시스템에서 mbs 설정과 수신을 위한 방법 및 장치
WO2014101203A1 (zh) 邻近身份指示码的发送方法、用户设备及基站
WO2018054336A1 (zh) 消息的发送方法和装置
Tsolkas et al. A device discovery scheme for proximity services in LTE networks

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2014801134

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE